/*
 * Revamp layer — evidence-first editorial engineering.
 * Keeps the original semantic HTML and routes while replacing the visual system.
 */

:root {
  --paper: #fcfbf7;
  --paper-soft: #f3f0e8;
  --paper-deep: #e9e5dc;
  --ink: #171815;
  --muted: #4e504a;
  --line: rgba(23, 24, 21, .18);
  --line-strong: rgba(23, 24, 21, .48);
  --line-on-dark: rgba(252, 251, 247, .34);
  --signal: #e95524;
  --signal-hover: #d2481d;
  --focus: #185da8;
  --surface-raised-dark: #242520;
  --shadow-sticky: 0 1px 0 rgba(23,24,21,.12), 0 10px 30px rgba(40,34,24,.07);
  --shadow-floating: 0 20px 60px rgba(40,34,24,.13);
  --ease: cubic-bezier(.2,.8,.2,1);
  --shell: min(1440px, calc(100% - 96px));
  --gutter: clamp(24px, 3vw, 48px);
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

body {
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.page-curtain,
.cursor-dot,
.cursor-ring { display: none !important; }

.noise { opacity: .022; }
.scroll-progress { height: 2px; }
.reveal,
.reveal.is-visible { opacity: 1; transform: none; transition: none; }

.topbar {
  height: 72px;
  padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2));
  background: rgba(252,251,247,.92);
  border-color: var(--line);
}

.brand {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 14px;
}
.brand span:first-child { font-size: 20px; letter-spacing: -.06em; }
.brand span:last-child { font: 650 10px/1 var(--mono); letter-spacing: .12em; opacity: .62; }
.nav { gap: clamp(20px, 2.4vw, 38px); }
.nav a,
.contact-mini { min-height: 44px; display: inline-flex; align-items: center; font: 700 12px/1 var(--mono); letter-spacing: .06em; }
.contact-mini {
  padding: 0 18px;
  background: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 4px;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}
.contact-mini::after { display: none; }
.contact-mini:hover { background: var(--signal-hover); transform: translateY(-1px); }
.contact-mini:active { transform: translateY(1px); }
.menu-button { min-width: 44px; min-height: 44px; place-items: center; }

.chapter-label,
.eyebrow { font: 700 12px/1.4 var(--mono); letter-spacing: .08em; }
.chapter-label::before { width: 24px; background: var(--signal); height: 2px; }

/* Hero */
.hero {
  min-height: min(860px, 100dvh);
  padding: 112px max(var(--gutter), calc((100vw - 1440px) / 2)) 48px;
  background:
    radial-gradient(circle at 82% 42%, rgba(233,85,36,.09), transparent 28%),
    var(--paper);
}
.hero::before {
  background:
    linear-gradient(90deg, transparent calc(25% - .5px), rgba(23,24,21,.055) 25%, transparent calc(25% + .5px)),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(23,24,21,.055) 50%, transparent calc(50% + .5px)),
    linear-gradient(90deg, transparent calc(75% - .5px), rgba(23,24,21,.055) 75%, transparent calc(75% + .5px));
}
.hero-meta { max-width: 1440px; width: 100%; margin-inline: auto; }
.hero-title { width: min(100%, 1440px); margin: clamp(72px, 9vh, 112px) auto 0; }
.hero-title h1 {
  max-width: 1040px;
  font-size: clamp(86px, 13vw, 190px);
  line-height: .73;
  letter-spacing: -.078em;
  font-weight: 800;
}
.hero-title .outline { margin-left: clamp(2rem, 8vw, 8rem); }
.hero-title .signal-word {
  right: 0;
  top: .75rem;
  max-width: 220px;
  writing-mode: initial;
  transform: none;
  font: 700 12px/1.45 var(--mono);
  letter-spacing: .08em;
  color: var(--muted);
}
.hero-signal { right: max(-5vw, calc((100vw - 1540px) / 2)); opacity: .62; }
.hero-bottom {
  width: min(100%, 1440px);
  margin-inline: auto;
  grid-template-columns: minmax(320px, 1.2fr) .8fr;
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
  padding-top: 28px;
}
.hero-statement { max-width: 700px; font-size: clamp(23px, 2.2vw, 34px); line-height: 1.16; font-weight: 500; }
.hero-statement em { font-family: var(--serif); font-weight: 400; }
.hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 12px/1 var(--mono);
  letter-spacing: .05em;
  transition: transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}
.primary-action { padding: 0 22px; background: var(--signal); color: var(--ink); border: 1px solid var(--signal); border-radius: 4px; }
.primary-action:hover { background: var(--signal-hover); transform: translateY(-2px); }
.primary-action:active { transform: translateY(1px); }
.secondary-action { border-bottom: 1px solid currentColor; }
.secondary-action:hover { color: var(--signal-hover); }
.copy-email {
  min-width: 44px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 700 12px/1 var(--mono);
  letter-spacing: .05em;
  transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.copy-email:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.copy-email:active { transform: translateY(1px); }

/* Immediate portfolio path */
.project-jump {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) 2.45fr;
  gap: 32px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.project-jump-label { font: 700 11px/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.project-jump-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.project-jump-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  font: 700 11px/1 var(--mono);
  letter-spacing: .03em;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}
.project-jump-links a:hover { background: var(--paper-deep); color: var(--signal-hover); }
.project-jump-links span { color: var(--signal-hover); font-variant-numeric: tabular-nums; }

/* Positioning and proof */
.positioning { padding: clamp(96px, 10vw, 144px) 0; }
.positioning-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
.positioning-grid > .chapter-label { grid-column: 1 / 3; }
.positioning h2 { grid-column: 3 / -1; font-size: clamp(48px, 6.2vw, 88px); line-height: .98; letter-spacing: -.05em; font-weight: 700; }
.positioning h2 em { font-family: var(--serif); }
.positioning-detail { grid-column: 3 / -1; grid-template-columns: 1.25fr .75fr; gap: 48px; margin-top: 56px; }
.positioning-detail p { max-width: 62ch; font-size: clamp(18px, 1.5vw, 22px); }
.positioning-note { min-height: 44px; align-items: center; padding: 10px 0; font-size: 11px; }

.impact-index { background: var(--paper-soft); border-color: var(--line-strong); }
.impact-index .shell { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.impact-row {
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 32px;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.impact-row:first-child { padding-left: 0; }
.impact-row:last-child { padding-right: 0; border-right: 0; }
.impact-number { font: 750 clamp(54px, 6vw, 86px)/.9 var(--sans); letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.impact-label { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.08; }
.impact-context { max-width: 28ch; font-size: 14px; line-height: 1.5; }

/* Faster work comparison */
.work-intro { padding: clamp(96px, 10vw, 144px) 0 72px; }
.section-head { grid-template-columns: repeat(12, 1fr); gap: 24px; }
.section-head > .chapter-label { grid-column: 1 / 3; }
.section-head h2 { grid-column: 3 / 9; font-size: clamp(54px, 7vw, 96px); line-height: .88; letter-spacing: -.06em; }
.section-head p { grid-column: 10 / -1; font-size: 17px; }

.theme-hive { --theme-bg: #dedbd2; --theme-fg: var(--ink); --theme-accent: var(--signal); --theme-accent-on-dark: var(--signal); }
.theme-field { --theme-bg: #e1e7f6; --theme-fg: var(--ink); --theme-accent: var(--signal); --theme-accent-on-dark: var(--signal); }
.theme-banking { --theme-bg: #dcece5; --theme-fg: var(--ink); --theme-accent: var(--signal); --theme-accent-on-dark: var(--signal); }
.theme-pillar { --theme-bg: #e8e2f6; --theme-fg: var(--ink); --theme-accent: var(--signal); --theme-accent-on-dark: var(--signal); }
.theme-placement { --theme-bg: #f4e1d6; --theme-fg: var(--ink); --theme-accent: var(--signal); --theme-accent-on-dark: var(--signal); }
.theme-trace { --theme-bg: #e8edce; --theme-fg: var(--ink); --theme-accent: var(--signal); --theme-accent-on-dark: var(--signal); }

.work-item { min-height: auto; border-top: 1px solid rgba(23,24,21,.34); scroll-margin-top: 88px; }
.work-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--signal); }
.work-item-inner { min-height: auto; padding: 64px 0 36px; }
.work-meta { grid-template-columns: repeat(12, 1fr); gap: 24px; padding-bottom: 16px; }
.work-meta span:first-child { grid-column: 1 / 5; }
.work-meta span:nth-child(2) { grid-column: 5 / 9; }
.work-meta span:last-child { grid-column: 10 / -1; }
.work-meta span { font-size: 11px; letter-spacing: .07em; }
.work-main { grid-template-columns: 1.08fr .92fr; gap: clamp(48px, 7vw, 104px); padding: 48px 0 36px; }
.work-copy h3 { font-size: clamp(54px, 7vw, 94px); line-height: .84; letter-spacing: -.065em; font-weight: 750; }
.work-copy .project-kicker { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 25px); }
.work-copy .project-description { max-width: 48ch; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.35; }
.work-link { min-height: 48px; margin-top: 28px; font-size: 12px; }
.work-link .arrow-disc { width: 46px; height: 46px; border-radius: 4px; }
.work-link:hover .arrow-disc { background: var(--signal); color: var(--ink); transform: translateX(4px); }
.work-visual { min-height: 360px; }
.work-visual::before { inset: 13%; animation: none; }
.work-visual::after { animation: none; }
.project-art { max-height: 480px; }
.art-pulse { animation: none; }
.work-proof { grid-template-columns: repeat(4, 1fr); }
.proof-cell { min-height: 82px; }
.proof-cell small { font-size: 10px; }
.proof-cell strong { font-size: clamp(14px, 1.1vw, 17px); }

.work-item.compact .work-item-inner { grid-template-rows: auto auto auto; padding-top: 48px; }
.work-item.compact .work-main { grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 5vw, 72px); padding: 34px 0; }
.work-item.compact .work-visual { display: flex; min-height: 260px; align-items: center; justify-content: center; }
.work-item.compact .project-art { max-height: 320px; }
.work-item.compact .work-copy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px 40px; align-items: end; }
.work-item.compact .project-kicker { grid-column: 1; }
.work-item.compact .work-copy h3 { grid-column: 1; margin: 0; font-size: clamp(44px, 5vw, 70px); }
.work-item.compact .project-description { grid-column: 2; grid-row: 1 / 3; align-self: end; }
.work-item.compact .work-link { grid-column: 1; grid-row: 3; align-self: end; }

/* Evidence, experience, profile */
.evidence { padding: clamp(104px, 11vw, 160px) 0; }
.evidence-title { grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: 56px; }
.evidence-title > .chapter-label { grid-column: 1 / 3; }
.evidence-title > div { grid-column: 3 / 10; }
.evidence-title h2 { font-size: clamp(48px, 6vw, 84px); line-height: .94; }
.ledger-row { grid-template-columns: 56px 1fr 1.15fr; gap: 32px; padding: 26px 0; }
.ledger-row .plus { display: none; }
.ledger-row h3 { font-size: clamp(20px, 2vw, 28px); }
.archive { padding-bottom: clamp(96px, 10vw, 144px); }
.archive-head h2 { font-size: clamp(42px, 5vw, 68px); }
.archive-row { grid-template-columns: 56px 1.15fr 1fr 150px; min-height: 68px; align-items: center; }

.experience { padding: clamp(104px, 11vw, 160px) 0; background: #1d1e1a; }
.experience-head h2 { font-size: clamp(52px, 7vw, 96px); }
.career-row p { max-width: 48ch; opacity: .78; }

.profile { padding: clamp(104px, 11vw, 160px) 0; }
.profile-quote { max-width: 1220px; font-size: clamp(48px, 7vw, 98px); line-height: .98; }
.profile-quote em { font-family: var(--serif); }
.profile-grid { margin-top: 72px; }
.profile-grid p { max-width: 56ch; }
.profile-list div { min-height: 44px; align-items: center; font-size: 11px; }

.contact { min-height: 720px; padding: 96px max(var(--gutter), calc((100vw - 1440px) / 2)) 36px; background: var(--signal); }
.contact h2 { max-width: 1300px; margin: clamp(72px, 10vh, 110px) 0; font-size: clamp(60px, 9vw, 132px); line-height: .8; }
.contact h2 em { font-family: var(--serif); }
.contact-links { grid-template-columns: 1.25fr 1fr .8fr .8fr; }
.contact-links a,
.contact-links .copy-email { min-height: 64px; font-size: 16px; transition: padding 180ms var(--ease), background 180ms var(--ease); }
.contact-links .copy-email { justify-content: space-between; gap: 12px; padding: 0 0 0 24px; border: 0; border-right: 1px solid var(--ink); border-radius: 0; font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; }
.contact-links a:hover,
.contact-links .copy-email:hover { padding-inline: 18px; background: rgba(252,251,247,.2); color: var(--ink); transform: none; }
.copy-email-status { min-height: 24px; margin: 12px 0 -12px; font: 700 11px/1.4 var(--mono); letter-spacing: .04em; }
.contact-foot { font-size: 11px; }

/* Case studies */
.case-page {
  --case-bg: #1d1e1a;
  --case-fg: #fcfbf7;
  --case-accent: var(--signal);
  --surface: #1d1e1a;
  --foreground: #fcfbf7;
}
.case-hero { min-height: min(880px, 100dvh); padding: 112px max(var(--gutter), calc((100vw - 1440px) / 2)) 42px; }
.case-hero-main { grid-template-columns: 1.08fr .92fr; gap: 64px; padding: 48px 0; }
.case-hero h1 { font-size: clamp(64px, 9vw, 130px); line-height: .8; letter-spacing: -.065em; font-weight: 750; }
.case-hero h1 em { font-family: var(--serif); font-size: .48em; line-height: .92; }
.case-hero .case-art::before { animation: none; }
.case-hero-summary small { font-size: 10px; }
.case-hero-summary strong { font-size: 16px; }
.case-nav { top: 72px; background: rgba(252,251,247,.95); }
.case-nav-inner { gap: 0; }
.case-nav a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 18px; font: 700 11px/1 var(--mono); letter-spacing: .05em; }
.case-nav a:first-child { padding-left: 0; margin-right: 14px; color: var(--muted); }
.case-nav a[aria-current="location"] { color: var(--ink); background: var(--paper-deep); box-shadow: inset 0 -3px 0 var(--signal); }
.case-section { scroll-margin-top: 122px; padding: clamp(88px, 9vw, 136px) 0; }
.case-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
.case-grid > .chapter-label { grid-column: 1 / 3; }
.case-grid > h2 { grid-column: 3 / 7; }
.case-grid > .case-copy { grid-column: 8 / -1; }
.case-section h2 { font-size: clamp(44px, 5vw, 72px); line-height: .98; letter-spacing: -.045em; }
.case-copy { max-width: 62ch; }
.case-copy p { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; }
.case-copy .lede { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.2; }
.architecture-board { border-radius: 8px; margin-top: 56px; }
.architecture-board::before { background-size: 40px 40px; }
.arch-node { border-radius: 4px; min-height: 160px; }
.skill-cloud span { border-radius: 4px; font-size: 10px; }
.outcome-quote { font-size: clamp(42px, 6vw, 82px); line-height: .98; }
.outcome-quote em { font-family: var(--serif); }
.case-contact {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: end;
  padding: clamp(80px, 9vw, 128px) max(var(--gutter), calc((100vw - 1440px) / 2));
  background: var(--signal);
  color: var(--ink);
}
.case-contact small { font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.case-contact h2 { max-width: 850px; margin: 22px 0 0; font-size: clamp(44px, 6vw, 84px); line-height: .92; letter-spacing: -.055em; }
.case-contact-actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; }
.case-contact .primary-action { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.case-contact .primary-action:hover { background: #30312d; }
.case-contact .copy-email { min-width: 44px; color: var(--ink); }
.case-contact-actions .secondary-action { min-width: 44px; }
.next-project { padding: clamp(64px, 7vw, 96px) max(var(--gutter), calc((100vw - 1440px) / 2)); background: var(--paper-soft); color: var(--ink); }
.next-project h2 { font-size: clamp(48px, 7vw, 96px); }

/* 404 */
.error-page { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; padding-top: 72px; }
.error-main { display: grid; place-items: center; padding: 96px var(--gutter); }
.error-card { width: min(900px, 100%); }
.error-code { font: 700 12px/1 var(--mono); letter-spacing: .12em; color: var(--signal-hover); }
.error-card h1 { margin: 24px 0; font-size: clamp(56px, 9vw, 124px); line-height: .9; letter-spacing: -.07em; }
.error-card p { max-width: 54ch; font-size: 20px; color: var(--muted); }
.error-actions { display: flex; gap: 24px; align-items: center; margin-top: 40px; }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 64px, 1100px); --gutter: 32px; }
  .topbar { height: 68px; }
  .nav, .contact-mini { display: none; }
  .menu-button { display: grid; }
  .hero { padding-top: 104px; }
  .hero-title h1 { font-size: clamp(80px, 18vw, 152px); }
  .hero-bottom { grid-template-columns: 1fr auto; }
  .positioning-grid,
  .section-head,
  .evidence-title { display: grid; grid-template-columns: repeat(8, 1fr); gap: 20px; }
  .positioning-grid > .chapter-label,
  .section-head > .chapter-label,
  .evidence-title > .chapter-label { grid-column: 1 / 3; }
  .positioning h2 { grid-column: 3 / -1; }
  .positioning-detail { grid-column: 3 / -1; }
  .section-head h2 { grid-column: 3 / -1; }
  .section-head p { grid-column: 3 / 7; margin-top: 24px; }
  .evidence-title > div { grid-column: 3 / -1; }
  .impact-row { min-height: 240px; padding-inline: 24px; }
  .work-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .work-visual { min-height: 300px; }
  .project-jump { grid-template-columns: 1fr; gap: 14px; }
  .project-jump-links { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .project-jump-links a:nth-child(4) { border-left: 0; }
  .work-item.compact .work-copy { grid-template-columns: 1fr 1fr; }
  .work-item.compact .work-link { grid-column: 1; grid-row: 3; }
  .case-hero { padding-top: 100px; }
  .case-hero-main { grid-template-columns: 1fr 1fr; }
  .case-nav { top: 68px; }
  .case-grid { grid-template-columns: repeat(8, 1fr); gap: 20px; }
  .case-grid > .chapter-label { grid-column: 1 / 3; }
  .case-grid > h2 { grid-column: 3 / 6; }
  .case-grid > .case-copy { grid-column: 6 / -1; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 40px); --gutter: 20px; }
  .brand span:last-child { display: none; }
  .mobile-menu { padding: 20px; }
  .mobile-menu a { min-height: 52px; display: flex; align-items: center; font-size: clamp(42px, 13vw, 64px); }
  .hero { min-height: 760px; padding: 98px 20px 32px; }
  .hero-meta { align-items: flex-start; gap: 20px; }
  .hero-meta > :last-child { max-width: 155px; }
  .hero-title { margin-top: 92px; }
  .hero-title h1 { font-size: clamp(72px, 24vw, 96px); line-height: .72; }
  .hero-title .outline { margin-left: 0; }
  .hero-title .signal-word { display: none; }
  .hero-signal { width: 108vw; height: 108vw; right: -58vw; top: 24%; opacity: .46; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .hero-statement { font-size: 23px; }
  .hero-actions { justify-content: flex-start; flex-wrap: wrap; gap: 18px; }
  .primary-action { min-height: 48px; }
  .project-jump { padding: 16px 0; }
  .project-jump-links { grid-template-columns: 1fr 1fr; }
  .project-jump-links a { min-height: 52px; padding-inline: 12px; border-bottom: 1px solid var(--line); }
  .project-jump-links a:nth-child(odd) { border-left: 0; }
  .project-jump-links a:nth-last-child(-n+2) { border-bottom: 0; }
  .positioning { padding: 80px 0; }
  .positioning-grid,
  .section-head,
  .evidence-title { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .positioning-grid > .chapter-label,
  .section-head > .chapter-label,
  .evidence-title > .chapter-label { grid-column: 1 / -1; margin-bottom: 24px; }
  .positioning h2,
  .section-head h2,
  .evidence-title > div { grid-column: 1 / -1; }
  .positioning h2 { font-size: 44px; }
  .positioning-detail { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .impact-index .shell { grid-template-columns: 1fr 1fr; }
  .impact-row { min-height: 225px; padding: 30px 20px; border-bottom: 1px solid var(--line); }
  .impact-row:nth-child(odd) { padding-left: 0; }
  .impact-row:nth-child(even) { padding-right: 0; border-right: 0; }
  .impact-row:nth-last-child(-n+2) { border-bottom: 0; }
  .impact-number { font-size: 54px; }
  .impact-label { font-size: 17px; }
  .impact-context { font-size: 13px; }
  .work-intro { padding: 80px 0 56px; }
  .section-head h2 { font-size: 54px; }
  .section-head p { grid-column: 1 / -1; margin-top: 20px; }
  .work-item::before { width: 3px; }
  .work-item-inner { width: calc(100% - 40px); padding: 48px 0 28px; }
  .work-meta { grid-template-columns: 1fr auto; gap: 16px; }
  .work-meta span:first-child,
  .work-meta span:last-child { grid-column: auto; }
  .work-meta span:nth-child(2) { display: none; }
  .work-main { grid-template-columns: 1fr; padding: 38px 0 26px; }
  .work-copy h3 { font-size: 52px; }
  .work-copy .project-description { font-size: 18px; }
  .work-visual { min-height: 260px; }
  .work-proof { grid-template-columns: 1fr 1fr; }
  .proof-cell { min-width: 0; min-height: 96px; }
  .work-item.compact .work-copy { display: block; }
  .work-item.compact .work-main { grid-template-columns: 1fr; gap: 18px; }
  .work-item.compact .work-visual { min-height: 220px; }
  .work-item.compact .project-art { max-height: 260px; }
  .work-item.compact .project-description { margin-top: 24px; }
  .work-item.compact .work-link { margin-top: 24px; }
  .evidence { padding: 88px 0; }
  .ledger-row { grid-template-columns: 36px 1fr; gap: 14px; }
  .ledger-row p { grid-column: 2; }
  .archive-row { grid-template-columns: 34px 1fr; }
  .archive-row p,
  .archive-row .status { grid-column: 2; text-align: left; }
  .archive-row .status { grid-row: auto; }
  .profile-quote { font-size: 46px; }
  .experience-head { grid-template-columns: minmax(0, 1fr); }
  .experience-head h2 { min-width: 0; font-size: 46px; overflow-wrap: anywhere; }
  .contact { min-height: 680px; padding: 80px 20px 28px; }
  .contact-top { align-items: flex-start; gap: 20px; }
  .contact h2 { font-size: 58px; margin: 80px 0; }
  .contact-links a { min-height: 56px; }
  .contact-links .copy-email { min-height: 56px; }
  .case-hero { min-height: auto; padding: 92px 20px 32px; }
  .case-hero-main { grid-template-columns: 1fr; gap: 20px; padding: 42px 0 30px; }
  .case-hero h1 { font-size: 58px; }
  .case-hero .case-art { max-width: 330px; }
  .case-hero-summary { grid-template-columns: 1fr 1fr; }
  .case-nav a { min-height: 48px; padding-inline: 14px; }
  .case-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .case-grid > .chapter-label,
  .case-grid > h2,
  .case-grid > .case-copy { grid-column: 1 / -1; }
  .case-grid > .chapter-label { margin-bottom: 12px; }
  .case-section { padding: 72px 0; }
  .case-section h2 { font-size: 42px; margin-bottom: 26px; }
  .architecture-board { margin-top: 40px; border-radius: 4px; }
  .arch-flow { grid-template-columns: 1fr !important; }
  .arch-node { min-height: 116px; }
  .decision { grid-template-columns: 34px 1fr; gap: 14px; }
  .decision p { grid-column: 2; }
  .outcome-quote { font-size: 40px; }
  .case-contact { grid-template-columns: 1fr; gap: 40px; padding: 72px 20px; }
  .case-contact h2 { font-size: 46px; }
  .case-contact-actions { justify-content: flex-start; flex-wrap: wrap; }
  .next-project { padding: 64px 20px; }
  .error-main { padding-inline: 20px; }
  .error-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
