@layer reset, base, structure, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; min-width: 320px; }
  img { display: block; max-width: 100%; }
  button, input, textarea, select { font: inherit; }
  button { color: inherit; }
  a { color: inherit; }
  h1, h2, h3, p, figure, dl, dd { margin: 0; }
  ul, ol { margin: 0; padding: 0; list-style: none; }
}

@layer base {
  :root {
    --bg: oklch(0.965 0.012 82);
    --surface: oklch(0.992 0.005 82);
    --fg: oklch(0.205 0.018 255);
    --muted: oklch(0.48 0.018 252);
    --border: oklch(0.80 0.018 78);
    --accent: oklch(0.49 0.095 47);
    --font-display: "Prata", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", "Helvetica Neue", Helvetica, sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    --deep: oklch(0.24 0.045 255);
    --deep-fg: oklch(0.94 0.015 82);
    --deep-muted: oklch(0.75 0.018 82);
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 64px);
    --section-space: clamp(70px, 7vw, 112px);
    --focus-ring: 0 0 0 3px color-mix(in oklch, var(--accent), transparent 46%);
    --ease: cubic-bezier(.22, 1, .36, 1);
  }

  body {
    overflow-x: clip;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
  }

  h1, h2, h3 { color: var(--fg); font-family: var(--font-display); font-weight: 590; text-wrap: balance; }
  h1 { font-size: clamp(3.15rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.028em; }
  h2 { font-size: clamp(2.1rem, 3.4vw, 3rem); line-height: 1.04; letter-spacing: -.022em; }
  h3 { font-size: clamp(1.2rem, 1.65vw, 1.55rem); line-height: 1.16; letter-spacing: -.012em; }
  p { max-width: 68ch; text-wrap: pretty; }
  a, button { touch-action: manipulation; -webkit-tap-highlight-color: color-mix(in oklch, var(--accent), transparent 78%); }
  a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
  section[id] { scroll-margin-top: 92px; }
  ::selection { background: color-mix(in oklch, var(--accent), transparent 70%); color: var(--fg); }

  .skip-link {
    position: fixed;
    z-index: 60;
    left: 18px;
    top: 12px;
    transform: translateY(-160%);
    padding: 10px 14px;
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
    transition: transform .2s var(--ease);
  }
  .skip-link:focus { transform: translateY(0); }
}

@layer structure {
  .section-shell, .header-inner, .site-footer > div {
    width: min(100%, calc(var(--container) + 2 * var(--gutter)));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    background: color-mix(in oklch, var(--bg), var(--surface) 24%);
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    min-height: 68px;
    display: grid;
    grid-template-columns: minmax(210px, .75fr) auto minmax(118px, .35fr);
    align-items: center;
    gap: clamp(22px, 3vw, 46px);
  }

  .brand { font-weight: 590; letter-spacing: -.01em; text-decoration: none; }
  .site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
  .site-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: 13px; font-weight: 550; letter-spacing: .01em; }
  .site-nav a::after { content: ""; position: absolute; inset: auto 0 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .22s var(--ease); }
  .site-nav a:hover::after, .site-nav a[aria-current="location"]::after { transform: scaleX(1); transform-origin: left; }
  .mobile-cv { display: none !important; }
  .header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
  .cv-link { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid var(--fg); text-decoration: none; font-size: 13px; font-weight: 590; letter-spacing: .02em; transition: color .2s ease, border-color .2s ease; }
  .cv-link:hover { color: var(--accent); border-color: var(--accent); }
  .menu-toggle { min-width: 44px; min-height: 44px; display: none; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 0; background: transparent; cursor: pointer; }
  .menu-lines { width: 18px; display: grid; gap: 4px; }
  .menu-lines i { display: block; height: 1px; background: currentColor; transform-origin: center; transition: transform .2s ease, opacity .2s ease; }
  .menu-label { font-size: 11px; font-weight: 550; letter-spacing: .02em; }
  .menu-toggle[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-5px) rotate(-45deg); }

  .hero { padding-top: clamp(28px, 3vw, 42px); padding-bottom: clamp(34px, 4vw, 54px); }
  .hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    grid-template-areas: "intro portrait" "detail portrait";
    column-gap: clamp(40px, 6vw, 92px);
    align-items: start;
  }
  .hero-intro { grid-area: intro; padding-top: 14px; min-width: 0; }
  .hero-detail { grid-area: detail; min-width: 0; }
  .hero-portrait { grid-area: portrait; width: min(100%, 410px); justify-self: end; align-self: start; }
  .hero-portrait picture { display: block; }
  .hero-portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; border: 1px solid var(--border); }
  .hero-portrait figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

  .eyebrow, .section-label, .section-index, .case-number, .case-action > span, .case-result > span, .case-item > div > span, .contact-links span {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .eyebrow { margin-bottom: 14px; color: var(--accent); }
  .hero-position { margin-top: 13px; font-size: clamp(1.35rem, 2.15vw, 1.9rem); line-height: 1.2; letter-spacing: -.012em; }
  .hero-scope { margin-top: 24px; color: var(--muted); font-size: 12px; font-weight: 550; line-height: 1.55; letter-spacing: .02em; text-transform: uppercase; }
  .hero-scope span { margin-inline: 5px; color: var(--border); }
  .hero-statement { margin-top: 16px; max-width: 66ch; font-size: clamp(1rem, 1.25vw, 1.13rem); line-height: 1.52; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

  .button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    border: 1px solid var(--fg);
    text-decoration: none;
    font-size: 13px;
    font-weight: 590;
    letter-spacing: .02em;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  }
  .button-primary { background: var(--fg); color: var(--bg); }
  .button-primary:hover { transform: translateY(-2px); background: oklch(0.28 0.024 255); border-color: oklch(0.28 0.024 255); color: var(--surface); }
  .button-secondary { background: transparent; color: var(--fg); }
  .button-secondary:hover { transform: translateY(-2px); background: var(--surface); color: var(--fg); }
  .button:active { transform: translateY(1px); }

  .hero-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-block: 1px solid var(--fg); }
  .hero-metrics > div { min-width: 0; padding: 16px clamp(14px, 2vw, 24px) 18px; border-right: 1px solid var(--border); }
  .hero-metrics > div:first-child { padding-left: 0; }
  .hero-metrics > div:last-child { padding-right: 0; border-right: 0; }
  .hero-metrics dt { font-family: var(--font-display); font-size: clamp(1.65rem, 2.6vw, 2.4rem); font-weight: 590; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
  .hero-metrics dd { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.35; }

  main > section:not(.hero) { padding-block: var(--section-space); border-top: 1px solid var(--border); }
  .section-heading { display: grid; grid-template-columns: 150px minmax(0, 1.15fr) minmax(270px, .55fr); gap: clamp(30px, 5vw, 72px); align-items: end; margin-bottom: clamp(42px, 5vw, 72px); }
  .section-heading.compact { margin-bottom: clamp(34px, 4vw, 58px); }
  .section-index { display: block; color: var(--accent); font-variant-numeric: tabular-nums; }
  .section-label { margin-top: 8px; color: var(--muted); }
  .section-heading > p { padding-top: 14px; border-top: 1px solid var(--fg); color: var(--muted); font-size: 14px; }

  .results-section { background: color-mix(in oklch, var(--surface), var(--bg) 46%); }
  .case-feature { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(270px, 1.15fr) minmax(230px, .8fr); gap: clamp(28px, 4vw, 60px); padding: 28px 0 32px; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--fg); }
  .case-feature header p { margin-top: 16px; color: var(--muted); font-size: 11px; }
  .case-feature h3 { margin-top: 7px; font-size: clamp(2rem, 3vw, 2.8rem); }
  .case-feature header strong { display: block; margin-top: 14px; font-size: 14px; font-weight: 550; line-height: 1.45; }
  .case-number { color: var(--muted); font-variant-numeric: tabular-nums; }
  .case-action, .case-result { padding-top: 4px; }
  .case-action > span, .case-result > span, .case-item > div > span { color: var(--muted); }
  .case-action p { margin-top: 15px; font-size: 15px; }
  .case-result p { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
  .case-result p strong { color: var(--fg); font-size: 16px; font-variant-numeric: tabular-nums; }
  .case-result a, .case-item > a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; text-decoration: none; font-size: 12px; font-weight: 590; letter-spacing: .02em; }
  .case-result a b, .case-item > a b { font-size: 15px; font-weight: 400; transition: transform .2s ease; }
  .case-result a:hover b, .case-item > a:hover b { transform: translate(2px, -2px); }

  .case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--fg); }
  .case-item { min-width: 0; display: grid; grid-template-rows: auto auto 1fr auto; padding: clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--border); }
  .case-item:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--border); }
  .case-item:nth-child(even) { padding-right: 0; }
  .case-item:nth-last-child(-n+2) { border-bottom: 0; }
  .case-item header { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; gap: 6px 14px; }
  .case-item header .case-number { grid-row: 1 / 3; }
  .case-item header strong { margin-top: 2px; font-size: 13px; font-weight: 550; }
  .case-item > div { margin-top: 22px; }
  .case-item > div p { margin-top: 10px; color: var(--muted); font-size: 13px; }
  .case-item ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 22px; }
  .case-item li { padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; line-height: 1.4; }
  .case-item li strong { display: block; margin-bottom: 3px; color: var(--fg); font-size: 14px; font-variant-numeric: tabular-nums; }
  .section-route { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; border-bottom: 1px solid var(--fg); text-decoration: none; font-weight: 590; }
  .section-route span { transition: transform .2s ease; }
  .section-route:hover span { transform: translateX(4px); }
  .section-route:active, .case-result a:active, .case-item > a:active, .education > a:active { transform: translateY(1px); }

  .expertise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--fg); border-left: 1px solid var(--border); }
  .expertise-grid article { min-width: 0; padding: clamp(20px, 2.5vw, 32px); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .expertise-grid article > span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
  .expertise-grid h3 { margin-top: 24px; font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
  .expertise-grid h3 a { color: inherit; text-decoration: none; transition: color .2s ease; }
  .expertise-grid h3 a b { display: inline-block; margin-left: .2em; color: var(--accent); font-size: .7em; transition: transform .2s ease; }
  .expertise-grid h3 a:hover { color: var(--accent); }
  .expertise-grid h3 a:hover b { transform: translate(2px, -2px); }
  .expertise-grid p { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }

  .experience-section { background: var(--surface); }
  .timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--fg); }
  .timeline li { min-width: 0; padding: 22px clamp(14px, 2vw, 24px) 26px; border-right: 1px solid var(--border); }
  .timeline li:first-child { padding-left: 0; }
  .timeline li:last-child { padding-right: 0; border-right: 0; }
  .timeline li > span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
  .timeline h3 { margin-top: 24px; font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
  .timeline p { margin-top: 14px; color: var(--muted); font-size: 12px; }
  .education { display: grid; grid-template-columns: 1fr 1fr minmax(250px, .8fr); gap: 0; margin-top: 40px; border-block: 1px solid var(--fg); }
  .education > div, .education > a { padding: 20px 24px; border-right: 1px solid var(--border); }
  .education > div:first-child { padding-left: 0; }
  .education > span, .education div > span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  .education strong { display: block; margin-top: 12px; font-size: 14px; }
  .education p { margin-top: 3px; color: var(--muted); font-size: 12px; }
  .education > a { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-right: 0; border-right: 0; text-decoration: none; font-size: 13px; font-weight: 590; }
  .education > a b { font-weight: 400; transition: transform .2s ease; }
  .education > a:hover b { transform: translateX(4px); }

  .fit-layout { display: grid; grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr); gap: clamp(48px, 8vw, 120px); }
  .fit-layout header h2 { max-width: 11ch; margin-top: 20px; }
  .fit-list { border-top: 1px solid var(--fg); }
  .fit-list li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
  .fit-list span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
  .fit-list p { font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.2; }

  .routes-section { background: color-mix(in oklch, var(--surface), var(--bg) 32%); }
  .route-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--fg); border-left: 1px solid var(--border); }
  .route-grid a { min-width: 0; display: grid; grid-template-rows: auto auto 1fr auto; padding: clamp(22px, 2.5vw, 34px); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-decoration: none; transition: background .22s ease, color .22s ease, transform .22s ease; }
  .route-grid a > span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
  .route-grid h3 { margin-top: 38px; }
  .route-grid p { margin-top: 14px; color: var(--muted); font-size: 13px; }
  .route-grid b { justify-self: end; margin-top: 32px; font-size: 19px; font-weight: 400; transition: transform .2s ease; }
  .route-grid a:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }
  .route-grid a:hover h3, .route-grid a:hover p, .route-grid a:hover span { color: var(--bg); }
  .route-grid a:hover b { transform: translateX(4px); }
  .route-grid a:active { transform: translateY(1px); }

  .contact-section { background: var(--deep); color: var(--deep-fg); border-top-color: var(--deep); }
  .contact-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: clamp(60px, 10vw, 150px); align-items: start; }
  .contact-copy h2 { max-width: 12ch; margin-top: 20px; color: var(--deep-fg); }
  .contact-copy > p:last-child { margin-top: 24px; color: var(--deep-muted); }
  .contact-section .section-label { color: oklch(0.72 0.075 55); }
  .contact-links { border-top: 1px solid var(--deep-fg); }
  .contact-links a { min-height: 68px; display: grid; grid-template-columns: minmax(125px, .45fr) minmax(0, 1fr); gap: 24px; align-items: center; border-bottom: 1px solid color-mix(in oklch, var(--deep-fg), transparent 76%); text-decoration: none; transition: background .2s ease, color .2s ease, padding .2s ease; }
  .contact-links span { color: var(--deep-muted); }
  .contact-links strong { min-width: 0; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
  .contact-links a:hover { padding-inline: 12px; background: var(--deep-fg); color: var(--deep); }
  .contact-links a:hover span { color: var(--deep); }
  .contact-links a:active { transform: translateY(1px); }

  .site-footer { background: var(--deep); color: var(--deep-muted); border-top: 1px solid color-mix(in oklch, var(--deep-fg), transparent 76%); }
  .site-footer > div { min-height: 78px; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  .site-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--deep-fg); text-decoration: none; }

  .reveal-section { opacity: 0; transform: translateY(16px); }
  .reveal-section.is-visible { opacity: 1; transform: none; transition: opacity .58s var(--ease), transform .58s var(--ease); }
}

@layer responsive {
  @media (max-width: 1180px) {
    .header-inner { grid-template-columns: 190px auto minmax(105px, .25fr); gap: 22px; }
    .site-nav { gap: 18px; }
    .hero-main { grid-template-columns: minmax(0, 1.25fr) minmax(290px, .65fr); column-gap: 44px; }
    .hero-portrait { width: min(100%, 360px); }
    .section-heading { grid-template-columns: 115px minmax(0, 1fr) minmax(250px, .5fr); gap: 36px; }
    .case-feature { grid-template-columns: minmax(170px, .6fr) minmax(250px, 1fr) minmax(210px, .75fr); gap: 34px; }
    .timeline { grid-template-columns: 1fr; }
    .timeline li, .timeline li:first-child, .timeline li:last-child { display: grid; grid-template-columns: 130px minmax(260px, .75fr) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--border); }
    .timeline li:last-child { border-bottom: 0; }
    .timeline h3, .timeline p { margin-top: 0; }
  }

  @media (max-width: 900px) {
    .header-inner { grid-template-columns: 1fr auto; gap: 16px; }
    .menu-toggle { display: inline-flex; }
    .site-nav {
      position: absolute;
      inset: calc(100% + 1px) 0 auto;
      display: grid;
      gap: 0;
      padding: 12px var(--gutter) 18px;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-8px);
      overscroll-behavior: contain;
      transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
    .site-nav a { border-bottom: 1px solid var(--border); }
    .site-nav a::after { display: none; }
    .site-nav .mobile-cv { display: flex !important; border-bottom: 0; }
    .header-actions { justify-self: end; }
    .hero-main { grid-template-columns: minmax(0, 1fr) minmax(250px, .55fr); column-gap: 34px; }
    .case-feature { grid-template-columns: 1fr 1fr; }
    .case-feature header { grid-column: 1 / -1; display: grid; grid-template-columns: 60px minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px 24px; align-items: baseline; }
    .case-feature header .case-number { grid-row: 1 / 3; }
    .case-feature header p { margin-top: 0; }
    .case-feature header h3 { margin-top: 0; }
    .case-feature header strong { grid-column: 2 / -1; margin-top: 0; }
    .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .education { grid-template-columns: 1fr 1fr; }
    .education > a { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid var(--border); }
    .fit-layout { grid-template-columns: 1fr; gap: 42px; }
    .fit-layout header h2 { max-width: 17ch; }
    .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-layout { gap: 54px; }
  }

  @media (max-width: 760px) {
    :root { --gutter: clamp(18px, 5vw, 28px); --section-space: 68px; }
    .hero-main { grid-template-columns: minmax(0, 1fr) 128px; grid-template-areas: "intro portrait" "detail detail"; column-gap: 20px; align-items: start; }
    .hero-intro { padding-top: 2px; }
    .hero-portrait { width: 128px; aspect-ratio: 1; align-self: start; justify-self: end; overflow: hidden; }
    .hero-portrait picture { width: 100%; height: 100%; }
    .hero-portrait img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 28%; }
    .hero-portrait figcaption { display: none; }
    .hero-detail { margin-top: 16px; }
    .hero-actions { margin-top: 20px; }
    .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; }
    .hero-metrics > div, .hero-metrics > div:first-child, .hero-metrics > div:last-child { padding: 16px 14px; border-right: 1px solid var(--border); }
    .hero-metrics > div:nth-child(even) { border-right: 0; }
    .hero-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .hero-metrics > div:nth-child(odd) { padding-left: 0; }
    .hero-metrics > div:nth-child(even) { padding-right: 0; }
    .section-heading { display: block; }
    .section-heading h2 { margin-top: 24px; }
    .section-heading > p { margin-top: 26px; }
    .case-feature { grid-template-columns: 1fr; gap: 28px; }
    .case-feature header { grid-column: auto; display: block; }
    .case-feature header p { margin-top: 14px; }
    .case-feature header h3 { margin-top: 6px; }
    .case-feature header strong { margin-top: 12px; }
    .case-grid { grid-template-columns: 1fr; }
    .case-item, .case-item:nth-child(odd), .case-item:nth-child(even) { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--border); }
    .case-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .case-item:last-child { border-bottom: 0; }
    .timeline li, .timeline li:first-child, .timeline li:last-child { grid-template-columns: 100px minmax(0, 1fr); gap: 12px 20px; }
    .timeline p { grid-column: 2; }
    .education { grid-template-columns: 1fr; }
    .education > div, .education > div:first-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--border); }
    .education > a { grid-column: auto; }
    .contact-layout { grid-template-columns: 1fr; gap: 46px; }
    .contact-copy h2 { max-width: 15ch; }
  }

  @media (max-width: 520px) {
    h1 { font-size: clamp(2.55rem, 11vw, 3.1rem); }
    h2 { font-size: clamp(2rem, 9.4vw, 2.6rem); }
    .header-inner { min-height: 64px; }
    .brand { font-size: 14px; }
    .cv-link span { display: none; }
    .menu-label { display: none; }
    .hero { padding-top: 22px; padding-bottom: 32px; }
    .hero-main { grid-template-columns: minmax(0, 1fr) clamp(104px, 28vw, 116px); column-gap: clamp(12px, 4vw, 16px); }
    .hero-portrait { width: 100%; }
    .hero-portrait figcaption { display: none; }
    .eyebrow { font-size: 11px; }
    .hero-position { font-size: 1.16rem; }
    .hero-scope { margin-top: 0; font-size: 11px; line-height: 1.5; }
    .hero-statement { font-size: .96rem; }
    .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 18px; }
    .button { width: 100%; }
    .hero-metrics { margin-top: 18px; }
    .hero-metrics dt { font-size: clamp(1.55rem, 8vw, 2rem); }
    .hero-metrics dd { font-size: 11px; }
    .case-result p { display: block; }
    .case-result p strong { display: block; margin-bottom: 3px; }
    .case-item ul { grid-template-columns: 1fr; }
    .expertise-grid { grid-template-columns: 1fr; }
    .expertise-grid article { padding: 24px 0; border-right: 0; }
    .timeline li, .timeline li:first-child, .timeline li:last-child { grid-template-columns: 1fr; }
    .timeline h3, .timeline p { grid-column: 1; }
    .timeline h3 { margin-top: 10px; }
    .timeline p { margin-top: 9px; }
    .fit-list li { grid-template-columns: 32px 1fr; gap: 12px; }
    .route-grid { grid-template-columns: 1fr; }
    .route-grid a { padding: 26px 0; border-right: 0; }
    .contact-links a { grid-template-columns: 1fr; gap: 4px; padding-block: 14px; }
    .contact-links a:hover { padding-inline: 8px; }
    .site-footer > div { min-height: 110px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal-section { opacity: 1; transform: none; }
  }
}
