/* ==========================================================================
   Kristin Der — Engineering Portfolio
   Dark, technical theme — near-black ground, muted gold + green accents,
   large confident type, quiet grid texture behind the hero.
   ========================================================================== */

:root {
  --bg:        #0D0E10;
  --bg-raised: #131417;
  --panel:     #16181B;
  --panel-alt: #1B1D21;
  --ink:       #F4F3F0;
  --ink-soft:  #ABAEB4;
  --ink-faint: #6D7076;
  --line:      #26282D;
  --line-strong: #34373D;
  --gold:      #C9A24E;
  --gold-soft: rgba(201, 162, 78, 0.14);
  --gold-ink:  #E4C077;
  --green:     #4F9C86;
  --green-soft: rgba(79, 156, 134, 0.14);
  --white:     #FFFFFF;
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 1px 2px rgba(0,0,0,0.2), 0 12px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.3), 0 32px 64px rgba(0,0,0,0.45);
  --display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono:    "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--gold-soft); color: var(--gold-ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -------------------------------------------------------------------------
   Background grid texture — quiet, technical, used behind the hero only
   ------------------------------------------------------------------------- */
.grid-bg {
  position: relative;
  overflow: hidden;
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,243,240,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,243,240,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, black 40%, transparent 85%);
  pointer-events: none;
}
.grid-bg::after {
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 55%; height: 70%;
  background: radial-gradient(circle, rgba(201,162,78,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   Eyebrow / labels
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--green);
}
.eyebrow.gold { color: var(--gold-ink); }
.eyebrow.gold::before { background: var(--gold); }

/* -------------------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 14, 16, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo .logo-mark {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
  flex: none;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a:not(.btn) {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--ink); }
.main-nav a:not(.btn):hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 38px; height: 34px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-5px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   Buttons — rounded pills
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #201804; }
.btn-primary:hover { background: var(--gold-ink); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,162,78,0.25); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: 8px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn svg { width: 14px; height: 14px; flex: none; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  padding: 96px 0 104px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-kicker {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  margin-bottom: 20px;
  color: var(--white);
}
.hero-role {
  font-family: var(--body);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--gold-ink);
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-role strong { color: var(--ink); font-weight: 700; }
.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(244,243,240,0.06);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   Placeholder media block (for photos not yet provided)
   ------------------------------------------------------------------------- */
.placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background:
    repeating-linear-gradient(135deg, transparent, transparent 7px, var(--line) 7px, var(--line) 8px),
    var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  text-align: center;
  padding: 20px;
}
.placeholder-inner { max-width: 260px; }
.placeholder-icon { width: 30px; height: 30px; margin: 0 auto 12px; color: var(--ink-faint); }
.placeholder-label { font-size: 12px; letter-spacing: 0.02em; line-height: 1.6; color: var(--ink-faint); }
.placeholder-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

/* Real photo media — used the same slots as .placeholder */
.media-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-photo.pos-top { object-position: top; }
.media-photo.pos-center { object-position: center; }

/* -------------------------------------------------------------------------
   Section scaffolding
   ------------------------------------------------------------------------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 12px;
  color: var(--white);
}
.section-blurb { color: var(--ink-soft); max-width: 46ch; margin-top: 10px; }
.bg-alt { background: var(--bg-raised); }

/* -------------------------------------------------------------------------
   Experience cards
   ------------------------------------------------------------------------- */
.exp-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.exp-card {
  background: var(--panel);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease);
}
.exp-card:hover { background: var(--panel-alt); }
.exp-card-media { min-height: 220px; overflow: hidden; }
.exp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.exp-card:hover .exp-card-media img { transform: scale(1.04); }
.exp-card-body {
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.exp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.exp-card-org { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--white); transition: color 0.2s var(--ease); }
.exp-card-date { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; letter-spacing: 0.02em; }
.exp-card-role { font-size: 14px; color: var(--gold-ink); font-weight: 600; margin-bottom: 14px; }
.exp-card-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin-bottom: 20px; max-width: 62ch; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
}
.card-link {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
}
.card-link svg { width: 13px; height: 13px; transition: transform 0.2s var(--ease); }
.exp-card:hover .card-link svg { transform: translateX(3px); }
.exp-card:hover .exp-card-org { color: var(--gold-ink); }

/* -------------------------------------------------------------------------
   Project cards (grid)
   ------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color .25s var(--ease);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-strong); }
.project-card-media { aspect-ratio: 4/3; overflow: hidden; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.035); }
.project-card:hover .project-card-media .placeholder { transform: scale(1.035); }
.project-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-card-name { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--white); }
.project-card-challenge { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.project-meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--ink-faint); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.project-result {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 4px 10px;
  width: fit-content;
}

/* -------------------------------------------------------------------------
   About / short blurb
   ------------------------------------------------------------------------- */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-preview p { font-size: 17px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 12px; }

/* -------------------------------------------------------------------------
   Skills / tools
   ------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.skill-item {
  background: var(--panel);
  padding: 22px 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-item::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* -------------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------------- */
.cta-band { text-align: center; padding: 96px 0; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; color: var(--white); }
.cta-band p { color: var(--ink-soft); font-size: 17px; margin-bottom: 32px; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-name { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--ink); }
.footer-meta { font-size: 12px; color: var(--ink-faint); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13.5px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--gold-ink); }

/* -------------------------------------------------------------------------
   Page header (interior pages)
   ------------------------------------------------------------------------- */
.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); margin: 14px 0 18px; color: var(--white); }
.page-hero .section-blurb { font-size: 17px; max-width: 60ch; }

/* -------------------------------------------------------------------------
   About page — compact header with headshot beside name
   ------------------------------------------------------------------------- */
.about-header {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.about-header-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  flex: none;
}
.about-header-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-header h1 { margin: 0; }
.about-intro {
  margin-top: 26px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 68ch;
  line-height: 1.7;
}

.about-body { margin-top: 8px; }
.about-copy h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin: 40px 0 16px; }
.about-copy p { font-size: 16px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 16px; max-width: 68ch; }
.interest-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

.beyond-eng {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  display: grid;
  grid-template-columns: 200px 1fr;
}
.beyond-eng-media { overflow: hidden; }
.beyond-eng-media img { width: 100%; height: 100%; object-fit: cover; }
.beyond-eng-body { padding: 24px 28px; }
.beyond-eng .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.mini-role { border-top: 1px solid var(--line); padding: 24px 0; }
.mini-role-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.mini-role-org { font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--white); }
.mini-role-date { font-size: 12px; color: var(--ink-faint); }
.mini-role-title { font-size: 13px; color: var(--gold-ink); font-weight: 600; margin-bottom: 8px; }
.mini-role ul { color: var(--ink-soft); font-size: 14px; line-height: 1.65; padding-left: 18px; margin: 0; }
.mini-role li { margin-bottom: 4px; }

/* -------------------------------------------------------------------------
   Case-study (experience / project detail) pages
   ------------------------------------------------------------------------- */
.case-meta-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-top: 40px; }
.case-meta-block .title-strip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); background: var(--bg-raised);
}
.case-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.case-meta-grid div { padding: 20px 22px; border-right: 1px solid var(--line); }
.case-meta-grid div:last-child { border-right: none; }
.case-meta-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; display: block; }
.case-meta-value { font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--ink); }

.case-hero-media { margin-top: 44px; aspect-ratio: 16/8; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); }
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }

.highlight-note {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--green); border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 14px; color: var(--ink-soft);
  background: var(--green-soft); margin-bottom: 24px;
}
.highlight-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--green); }
.highlight-note strong { color: var(--ink); }

.case-body { display: grid; grid-template-columns: 220px 1fr; gap: 64px; margin-top: 72px; align-items: start; }
.case-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; }
.case-toc a {
  font-size: 13px; color: var(--ink-faint);
  padding: 7px 0 7px 14px; border-left: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.case-toc a:hover, .case-toc a.active { color: var(--ink); border-left-color: var(--gold); }

.case-section { margin-bottom: 64px; scroll-margin-top: 100px; }
.case-section h2 { font-size: 22px; margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; color: var(--white); }
.case-section h2 .num { font-family: var(--body); font-weight: 700; font-size: 13px; color: var(--gold); }
.case-section p { color: var(--ink-soft); font-size: 16px; line-height: 1.8; margin-bottom: 16px; max-width: 74ch; }
.case-section ul { color: var(--ink-soft); font-size: 16px; line-height: 1.8; padding-left: 20px; margin: 0 0 16px; max-width: 74ch; }
.case-section li { margin-bottom: 6px; }

.callout-stat {
  display: inline-flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 26px; margin: 8px 0 24px; background: var(--bg-raised);
}
.callout-stat .stat-num { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--gold-ink); line-height: 1; }
.callout-stat .stat-label { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

.media-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 22px 0 30px; }
.media-row.single { grid-template-columns: 1fr; }
.media-row.three { grid-template-columns: repeat(3, 1fr); }
.media-item { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-caption { font-size: 12px; color: var(--ink-faint); margin-top: 8px; }

.process-steps { display: flex; flex-wrap: wrap; gap: 0; margin: 8px 0 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process-step { flex: 1; min-width: 130px; padding: 18px 16px; border-right: 1px solid var(--line); background: var(--panel); }
.process-step:last-child { border-right: none; }
.process-step .step-label { font-size: 11px; font-weight: 600; color: var(--gold-ink); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: block; }
.process-step .step-name { font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--ink); }

.confidential-note {
  display: flex; gap: 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 13.5px; color: var(--ink-soft); background: var(--bg-raised); margin-bottom: 24px;
}
.confidential-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink-faint); }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 20px; }

/* -------------------------------------------------------------------------
   Contact page
   ------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.contact-info-item { border-top: 1px solid var(--line); padding: 20px 0; }
.contact-info-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; display: block; }
.contact-info-value { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--ink); }
.contact-info-value a:hover { color: var(--gold-ink); }
.contact-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.contact-buttons .btn { justify-content: center; width: 100%; }

.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 13px 14px; font-family: var(--body); font-size: 15px;
  background: var(--panel); color: var(--ink); transition: border-color 0.2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold); outline: none; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }

/* -------------------------------------------------------------------------
   Reveal-on-scroll
   ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-portrait { max-width: 340px; order: -1; }
  .about-preview { grid-template-columns: 1fr; gap: 32px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-card { grid-template-columns: 1fr; }
  .exp-card-media { min-height: 180px; }
  .case-body { grid-template-columns: 1fr; gap: 36px; }
  .case-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .case-toc a { border-left: none; border-bottom: 1px solid var(--line); padding: 4px 0; }
  .case-toc a:hover, .case-toc a.active { border-bottom-color: var(--gold); }
  .case-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .case-meta-grid div:nth-child(2) { border-right: none; }
  .beyond-eng { grid-template-columns: 1fr; }
  .beyond-eng-media { aspect-ratio: 16/9; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .media-row, .media-row.three { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .header-inner { padding: 16px 20px; }
  .main-nav {
    position: fixed; top: 65px; left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; align-items: flex-start;
    padding: 28px 24px; gap: 22px;
    transform: translateX(100%); transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a:not(.btn) { font-size: 17px; }
  .nav-toggle { display: flex; }
  .hero { padding: 56px 0 64px; }
  section { padding: 60px 0; }
  .cta-band { padding: 64px 0; }
  .project-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .case-meta-grid { grid-template-columns: 1fr; }
  .case-meta-grid div { border-right: none; border-bottom: 1px solid var(--line); }
  .case-meta-grid div:last-child { border-bottom: none; }
  .media-row, .media-row.three { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .about-header { flex-direction: column; align-items: flex-start; gap: 18px; }
}
