:root {
  color-scheme: dark;
  --bg: #090a0d;
  --surface: #111217;
  --surface-strong: #17181f;
  --ink: #f5f2eb;
  --muted: #aaa69d;
  --faint: #908b82;
  --line: rgba(232, 211, 157, .15);
  --line-strong: rgba(232, 211, 157, .34);
  --gold: #d7b65d;
  --gold-light: #f0d995;
  --green: #7ed5a6;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 78% 4%, rgba(215, 182, 93, .09), transparent 42%);
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
::selection { color: #090a0d; background: var(--gold-light); }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: #090a0d;
  background: var(--gold-light);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section[id] { scroll-margin-top: 92px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--gold-light);
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--gold); }
.section-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.section-lede { max-width: 620px; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 46px;
}
.section-head .section-lede { max-width: 430px; margin: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 13, .88);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 15px; font-weight: 850; letter-spacing: -.02em; }
.desktop-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; font-weight: 650; }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; }
.mobile-nav { display: none; }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 750;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.button:hover { border-color: var(--line-strong); background: var(--surface-strong); transform: translateY(-1px); }
.button.primary { color: #11100b; border-color: var(--gold-light); background: var(--gold-light); }
.button.primary:hover { background: #ffe6a2; }
.button.quiet { color: var(--muted); background: transparent; }
.button.small { min-height: 40px; padding: 8px 13px; font-size: 12px; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .75fr);
  align-items: center;
  gap: clamp(46px, 7vw, 90px);
  padding-block: 72px 88px;
}
.hero-role {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-role::before { content: ""; flex: 0 0 34px; height: 1px; background: var(--gold); }
.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 7.2vw, 88px);
  line-height: .96;
  letter-spacing: -.06em;
}
.hero h1 span { color: var(--gold-light); }
.hero-copy { max-width: 690px; margin: 25px 0 0; color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.hero-copy strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--faint); font: 600 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.trust-line span::before { content: "•"; margin-right: 8px; color: var(--gold); }

.portrait-card { position: relative; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.portrait-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 38%; }
.portrait-card::after { content: ""; position: absolute; inset: 40% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(6, 7, 9, .84)); }
.portrait-caption { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 15, 19, .88); backdrop-filter: blur(16px); }
.caption-kicker { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 5px; color: var(--faint); font: 700 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; }
.caption-kicker span:last-child { color: var(--green); }
.portrait-caption strong { display: block; font-size: 18px; }
.portrait-caption p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.proof-strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-item { min-width: 0; padding: 26px 30px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item:last-child { padding-right: 0; }
.proof-value { display: block; color: var(--gold-light); font-size: 26px; font-weight: 850; letter-spacing: -.035em; }
.proof-label { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.case-list { display: grid; gap: 18px; }
.case-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.25fr) minmax(240px, .75fr);
  gap: 28px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s ease, transform .2s ease;
}
.case-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.case-index { color: var(--gold); font: 700 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.case-main h3 { margin: 0; font-size: clamp(25px, 3vw, 35px); line-height: 1.1; letter-spacing: -.035em; }
.case-main p { max-width: 680px; margin: 12px 0 0; color: var(--muted); }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(255, 255, 255, .018); font: 650 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.case-proof { min-width: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.case-proof strong { display: block; margin-bottom: 8px; color: var(--gold-light); font-size: 13px; }
.case-proof p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.text-link { display: inline-flex; min-height: 32px; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.text-link:hover { color: var(--gold-light); }

.project-index-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 24px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.project-index-cta strong { display: block; font-size: 15px; }
.project-index-cta p { max-width: 650px; margin: 4px 0 0; color: var(--faint); font-size: 12px; }

.projects-hero { padding-block: 92px 76px; }
.projects-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 70px; align-items: end; }
.projects-hero h1 { max-width: 800px; margin: 0; font-size: clamp(48px, 7vw, 82px); line-height: .98; letter-spacing: -.055em; }
.projects-hero h1 span { color: var(--gold-light); }
.projects-hero-grid > p { margin: 0 0 5px; color: var(--muted); font-size: 17px; }
.project-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 68px; border-block: 1px solid var(--line); }
.project-summary div { padding: 22px 24px; border-left: 1px solid var(--line); }
.project-summary div:first-child { padding-left: 0; border-left: 0; }
.project-summary strong { display: block; color: var(--gold-light); font-size: 28px; line-height: 1; }
.project-summary span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.projects-directory { padding-top: 84px; }
.projects-toolbar { display: flex; justify-content: space-between; gap: 38px; align-items: end; margin-bottom: 36px; }
.projects-toolbar h2 { margin: 0; font-size: clamp(34px, 4.5vw, 52px); line-height: 1; letter-spacing: -.045em; }
.project-filter-wrap { display: grid; justify-items: end; gap: 9px; }
.project-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.project-filter { min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.project-filter .filter-count { margin-left: 4px; color: var(--faint); font: 650 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.filter-label-short { display: none; }
.project-filter:hover { color: var(--ink); border-color: var(--line-strong); }
.project-filter[aria-pressed="true"] { color: #11100b; border-color: var(--gold-light); background: var(--gold-light); }
.project-filter[aria-pressed="true"] span { color: #4d401e; }
.project-filter-status { margin: 0; color: var(--faint); font-size: 11px; }
.project-list { border-top: 1px solid var(--line-strong); }
.project-row { display: grid; grid-template-columns: 145px minmax(0, 1fr) minmax(175px, .32fr); gap: 30px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.project-row[hidden] { display: none; }
.project-row-meta { display: grid; gap: 14px; align-content: start; }
.project-row-meta > span { color: var(--gold); font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.project-stage { width: fit-content; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: 700 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.project-stage.live, .project-stage.public { color: var(--green); border-color: rgba(126, 213, 166, .27); background: rgba(126, 213, 166, .055); }
.project-stage.development { color: var(--gold-light); border-color: rgba(215, 182, 93, .28); background: rgba(215, 182, 93, .055); }
.project-stage.early { color: #bdb7ad; border-color: rgba(189, 183, 173, .22); }
.project-row-main h3 { margin: 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.05; letter-spacing: -.035em; }
.project-row-main p { max-width: 720px; margin: 10px 0 0; color: var(--muted); }
.project-row-main .case-tags { margin-top: 16px; }
.project-links { display: grid; gap: 8px; padding-top: 1px; justify-items: stretch; }
.project-links .text-link { min-height: 44px; justify-content: space-between; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; }
.project-links .text-link:first-child { border-color: var(--line); background: rgba(255, 255, 255, .018); }
.project-links .text-link:hover { border-color: var(--line-strong); background: var(--surface); }
.project-links .secondary { color: var(--faint); }
.project-availability { min-height: 44px; display: flex; align-items: center; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 9px; color: var(--faint); font-size: 11px; line-height: 1.5; }
.projects-end-cta { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-top: 70px; padding: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.projects-end-cta h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1; letter-spacing: -.04em; }
.projects-end-cta p:not(.eyebrow) { max-width: 680px; margin: 13px 0 0; color: var(--muted); }

.capability-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: 70px; }
.sticky-intro { position: sticky; top: 110px; align-self: start; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.capability-card { padding: 25px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.capability-number { color: var(--gold); font: 700 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.capability-card h3 { margin: 40px 0 9px; font-size: 19px; }
.capability-card p { margin: 0; color: var(--muted); font-size: 13px; }

.writing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.writing-card { display: flex; min-height: 270px; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.writing-card:hover { border-color: var(--line-strong); }
.writing-meta { color: var(--gold-light); font: 700 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.writing-card h3 { margin: 38px 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.writing-card p { margin: 0; color: var(--muted); font-size: 13px; }
.writing-card .text-link { margin-top: auto; padding-top: 25px; }
.archive-cta { margin-top: 22px; }

.about-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: center; }
.about-photo { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
.about-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-copy h2 { margin: 0; font-size: clamp(34px, 4.6vw, 55px); line-height: 1.05; letter-spacing: -.045em; }
.about-copy > p { margin: 20px 0 0; color: var(--muted); font-size: 16px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.principle { padding-top: 14px; border-top: 1px solid var(--line); }
.principle strong { font-size: 13px; }
.principle p { margin: 6px 0 0; color: var(--faint); font-size: 12px; }

.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 44px; align-items: center; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.contact-card h2 { max-width: 760px; margin: 0; font-size: clamp(36px, 5.7vw, 66px); line-height: 1; letter-spacing: -.05em; }
.contact-card p { max-width: 670px; margin: 18px 0 0; color: var(--muted); }
.contact-actions { display: flex; flex-direction: column; gap: 10px; min-width: 190px; }
.contact-socials { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(120px, .65fr)); gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-social { min-width: 0; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 650; transition: color .2s ease, background .2s ease; }
.contact-social:hover { color: var(--gold-light); background: rgba(255, 255, 255, .025); }
.contact-social svg { flex: 0 0 18px; width: 18px; height: 18px; }
.contact-social span { min-width: 0; overflow-wrap: anywhere; }

.site-footer { padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--ink); }

/* Native résumé and CV views */
.document-page::before { height: 460px; }
.document-shell { width: min(980px, calc(100% - 48px)); margin-inline: auto; }
.document-main { padding: 72px 0 100px; }
.document-topline { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.document-switcher { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.document-switcher a { min-height: 36px; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.document-switcher a:hover { color: var(--ink); }
.document-switcher a[aria-current="page"] { color: #11100b; background: var(--gold-light); }
.document-updated { margin: 0; color: var(--faint); font: 650 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.document-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .46fr); gap: 48px; padding: 42px; border: 1px solid var(--line-strong); border-radius: 24px; background: linear-gradient(135deg, rgba(215, 182, 93, .07), rgba(17, 18, 23, .96) 46%); box-shadow: var(--shadow); }
.document-kicker { margin: 0 0 10px; color: var(--gold-light); font: 750 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; }
.document-intro h1 { margin: 0; font-size: clamp(48px, 7vw, 78px); line-height: .94; letter-spacing: -.055em; }
.document-role { max-width: 620px; margin: 17px 0 0; color: var(--muted); font-size: 18px; line-height: 1.5; }
.document-contact { display: grid; align-content: end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.document-contact a, .document-contact span { min-height: 34px; display: flex; align-items: center; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.document-contact a:hover { color: var(--gold-light); }
.document-contact li + li { border-top: 1px solid var(--line); }
.document-summary { max-width: 810px; margin: 42px 0 0; color: #d5d1c8; font-size: 17px; line-height: 1.75; }
.document-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(245px, .55fr); gap: 60px; margin-top: 64px; }
.document-layout.single { grid-template-columns: 1fr; max-width: 860px; }
.document-column { min-width: 0; }
.document-section { padding: 34px 0; border-top: 1px solid var(--line-strong); }
.document-section:first-child { padding-top: 0; border-top: 0; }
.document-section h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; color: var(--gold-light); font: 800 12px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.document-section h2::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.document-entry + .document-entry { margin-top: 32px; }
.document-entry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.document-entry h3 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.document-entry-head time, .document-status { flex: 0 0 auto; color: var(--faint); font: 700 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.document-entry-meta { margin: 4px 0 0; color: var(--gold-light); font-size: 12px; font-weight: 700; }
.document-entry p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.document-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.document-list li { position: relative; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.document-list li::before { content: ""; position: absolute; top: .75em; left: 0; width: 6px; height: 1px; background: var(--gold); }
.document-facts { display: grid; gap: 19px; margin: 0; }
.document-facts div { padding-top: 15px; border-top: 1px solid var(--line); }
.document-facts div:first-child { padding-top: 0; border-top: 0; }
.document-facts dt { color: var(--ink); font-size: 12px; font-weight: 800; }
.document-facts dd { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.document-projects { display: grid; gap: 12px; }
.document-project { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .014); }
.document-project .document-entry-head { align-items: center; }
.document-project h3 { font-size: 17px; }
.document-project p { margin: 8px 0 0; }
.document-project-tech { display: block; margin-top: 10px; color: var(--faint); font: 650 10px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; }
.document-note { margin: -13px 0 25px; color: var(--faint); font-size: 12px; }
.document-note.after-projects { margin: 18px 0 0; }

@media print {
  :root { color-scheme: light; }
  body.document-page { color: #111; background: #fff; font-size: 10pt; }
  body.document-page::before, .document-page .site-header, .document-page .site-footer, .document-topline { display: none; }
  .document-main { padding: 0; }
  .document-shell { width: 100%; }
  .document-intro { padding: 0 0 20px; border: 0; border-bottom: 2px solid #111; border-radius: 0; background: none; box-shadow: none; }
  .document-intro h1, .document-entry h3, .document-facts dt { color: #111; }
  .document-kicker, .document-section h2, .document-entry-meta { color: #665000; }
  .document-role, .document-summary, .document-contact a, .document-contact span, .document-entry p, .document-list li, .document-facts dd, .document-note, .document-project-tech { color: #333; }
  .document-layout { margin-top: 28px; gap: 34px; }
  .document-section { padding: 18px 0; border-color: #bbb; break-inside: avoid; }
  .document-section h2 { margin-bottom: 14px; }
  .document-section h2::after, .document-contact li + li, .document-facts div { border-color: #ccc; }
  .document-project { padding: 12px; border-color: #bbb; background: none; break-inside: avoid; }
}

@media (max-width: 900px) {
  .shell { width: min(100% - 32px, var(--max)); }
  .desktop-nav, .header-actions > .button.quiet { display: none; }
  .menu-button { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); }
  .mobile-nav { padding: 8px 16px 20px; border-top: 1px solid var(--line); background: rgba(9, 10, 13, .98); }
  .mobile-nav:not([hidden]) { display: grid; }
  .mobile-nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 700; }
  .mobile-nav .button { margin-top: 14px; color: #11100b; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 62px 72px; }
  .portrait-card { width: min(540px, 100%); }
  .case-card { grid-template-columns: 52px minmax(0, 1fr); }
  .case-proof { grid-column: 2; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .projects-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-row { grid-template-columns: 115px minmax(0, 1fr); }
  .project-links { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-end-cta { align-items: start; flex-direction: column; }
  .capability-layout { grid-template-columns: 1fr; gap: 36px; }
  .sticky-intro { position: static; }
  .writing-grid { grid-template-columns: 1fr 1fr; }
  .writing-card:last-child { grid-column: 1 / -1; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { max-width: 560px; }
  .contact-card { grid-template-columns: 1fr; gap: 30px; }
  .contact-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .contact-socials { grid-template-columns: 1fr 1fr; }
  .document-intro { grid-template-columns: 1fr; gap: 28px; }
  .document-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-contact li + li { border-top: 0; }
  .document-contact li { border-top: 1px solid var(--line); }
  .document-layout { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .header-inner { min-height: 64px; }
  .section-head { display: block; }
  .section-head .section-lede { margin-top: 16px; }
  .header-actions .button.primary { display: none; }
  .hero { gap: 38px; padding-block: 48px 64px; }
  .hero-role { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(44px, 15vw, 64px); }
  .hero-copy { margin-top: 20px; font-size: 16px; }
  .hero-actions { gap: 9px; margin-top: 24px; }
  .hero-actions .button { flex: 1 1 100%; min-height: 48px; }
  .trust-line { gap: 8px 14px; margin-top: 22px; }
  .portrait-card { border-radius: 20px; }
  .portrait-caption { left: 12px; right: 12px; bottom: 12px; padding: 14px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item, .proof-item:first-child, .proof-item:last-child { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .proof-item:first-child { border-top: 0; }
  .case-card { grid-template-columns: 1fr; gap: 18px; padding: 22px; border-radius: 16px; }
  .case-proof { grid-column: auto; }
  .case-proof .text-link { width: 100%; min-height: 44px; justify-content: space-between; padding-block: 8px; }
  .project-index-cta, .projects-toolbar { align-items: stretch; flex-direction: column; }
  .project-index-cta .button { width: 100%; }
  .projects-hero { padding-block: 50px 40px; }
  .projects-hero-grid { gap: 16px; }
  .projects-hero h1 { font-size: clamp(40px, 13vw, 54px); line-height: .96; }
  .projects-hero-grid > p { margin: 0; font-size: 15px; line-height: 1.62; }
  .project-summary { margin-top: 34px; }
  .project-summary div { min-width: 0; padding: 16px 8px; }
  .project-summary div:first-child { padding-left: 0; }
  .project-summary strong { font-size: 23px; }
  .project-summary span { font-size: 10px; line-height: 1.35; }
  .projects-directory { padding-top: 56px; }
  .projects-toolbar { gap: 24px; margin-bottom: 26px; }
  .project-filter-wrap { width: 100%; justify-items: stretch; gap: 8px; }
  .project-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .project-filter { width: 100%; min-height: 48px; padding: 7px 4px; border: 0; border-radius: 10px; line-height: 1.15; }
  .filter-label-wide { display: none; }
  .filter-label-short { display: inline; }
  .project-filter .filter-count { margin-left: 2px; font-size: 9px; }
  .project-filter-status { min-height: 18px; }
  .project-row { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .project-row-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .project-row-main h3 { font-size: 29px; }
  .project-row-main p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
  .project-row-main .case-tags { margin-top: 14px; }
  .project-links { grid-column: auto; grid-template-columns: 1fr; gap: 8px; margin-top: 2px; }
  .project-links .text-link { min-height: 48px; padding: 10px 13px; border-color: var(--line); background: rgba(255, 255, 255, .018); }
  .projects-end-cta { margin-top: 48px; padding: 24px; }
  .capability-grid, .writing-grid, .principles { grid-template-columns: 1fr; }
  .writing-card:last-child { grid-column: auto; }
  .writing-card { min-height: 240px; }
  .contact-card { gap: 26px; padding: 24px; border-radius: 20px; }
  .contact-card h2 { font-size: clamp(34px, 11vw, 44px); }
  .contact-card p { margin-top: 14px; font-size: 15px; }
  .contact-actions, .contact-actions .button { width: 100%; }
  .contact-actions .button { min-height: 48px; }
  .contact-socials { grid-template-columns: 1fr; }
  .contact-socials { gap: 2px; padding-top: 18px; }
  .contact-social { min-height: 44px; padding-inline: 4px; }
  .footer-inner { flex-direction: column; }
  .footer-links a { min-height: 40px; display: inline-flex; align-items: center; }
  .document-shell { width: min(100% - 28px, 980px); }
  .document-main { padding: 34px 0 70px; }
  .document-topline { align-items: flex-start; flex-direction: column-reverse; gap: 12px; margin-bottom: 22px; }
  .document-switcher { width: 100%; }
  .document-switcher a { flex: 1; justify-content: center; min-height: 42px; }
  .document-intro { gap: 24px; padding: 25px 22px; border-radius: 17px; }
  .document-intro h1 { font-size: clamp(43px, 14vw, 60px); }
  .document-role { margin-top: 13px; font-size: 16px; }
  .document-contact { grid-template-columns: 1fr; gap: 0; }
  .document-contact li + li { border-top: 1px solid var(--line); }
  .document-contact a, .document-contact span { min-height: 40px; }
  .document-summary { margin-top: 30px; font-size: 15px; line-height: 1.7; }
  .document-layout { margin-top: 43px; }
  .document-section { padding: 28px 0; }
  .document-section h2 { margin-bottom: 21px; }
  .document-entry-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .document-entry h3 { font-size: 19px; }
  .document-project { padding: 17px; }
  .document-project .document-entry-head { flex-direction: column; align-items: flex-start; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
