:root {
  --cream: #f4efe5;
  --paper: #fbf8f2;
  --paper-2: #ebe5da;
  --ink: #202722;
  --muted: #647067;
  --fern: #315f4c;
  --fern-dark: #173b2f;
  --fern-deep: #0c241c;
  --terracotta: #bd6d52;
  --gold: #e3a632;
  --blue: #4f83df;
  --line: rgba(32, 39, 34, 0.15);
  --dark-line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(20, 38, 29, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; width: 100%; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin-top: 0; }
h1, h2 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
h1 { margin-bottom: 24px; font-size: clamp(50px, 6vw, 82px); }
h1 span { color: #c8ddce; }
h2 { margin-bottom: 18px; font-size: clamp(36px, 4.4vw, 58px); }
h3 { margin-bottom: 9px; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.18; }
::selection { color: var(--paper); background: var(--fern); }

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 1000; padding: 11px 16px; color: var(--paper); background: var(--ink); border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 18px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(49, 95, 76, 0.16); background: rgba(244, 239, 229, 0.93); backdrop-filter: blur(16px); }
.nav-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: var(--cream); background: var(--fern); font-size: 12px; font-weight: 800; }
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: 15px; }
.brand-copy span { margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase; }
.nav-links { display: flex; gap: 24px; }
.nav-links a, .portfolio-link { color: #36443b; text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--fern); text-decoration: underline; text-underline-offset: 7px; }
.portfolio-link { justify-self: end; padding: 9px 14px; border: 1px solid rgba(49, 95, 76, 0.28); border-radius: 999px; }
.portfolio-link:hover, .portfolio-link:focus-visible { color: var(--paper); background: var(--fern); }

.hero { position: relative; color: var(--paper); background: radial-gradient(circle at 84% 12%, rgba(189, 109, 82, 0.24), transparent 30rem), linear-gradient(135deg, var(--fern-deep), var(--fern-dark) 58%, #254c3b); overflow: hidden; }
.hero-texture { position: absolute; inset: 0; opacity: 0.13; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(90deg, black, transparent 88%); pointer-events: none; }
.hero-grid { position: relative; min-height: 690px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: clamp(44px, 7vw, 90px); padding-block: 82px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-kicker, .mini-label, .story-number { margin-bottom: 15px; color: var(--terracotta); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: #b9d2c2; }
.lede { max-width: 650px; margin-bottom: 28px; color: #e1e9e4; font-size: clamp(19px, 2vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 23px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--fern-deep); background: var(--cream); }
.button-secondary { color: var(--paper); border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.04); }
.button-secondary:hover, .button-secondary:focus-visible { color: var(--fern-deep); background: var(--paper); }
.scope-note { max-width: 640px; margin-bottom: 0; color: #b7c9bd; font-size: 14px; }
.scope-note strong { color: white; }
.hero-comparison { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 18px 18px 54px; border: 1px solid rgba(255,255,255,.2); border-radius: 26px; background: rgba(255,255,255,.08); box-shadow: 0 34px 90px rgba(4,21,15,.38); transform: rotate(1deg); }
.hero-frame { position: relative; min-width: 0; border-radius: 17px; overflow: hidden; background: #07140f; }
.hero-frame video { height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #07140f; }
.hero-frame span { position: absolute; top: 12px; left: 12px; padding: 7px 10px; border-radius: 999px; color: white; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero-frame-initial span { background: #c86750; }
.hero-frame-approved span { background: #2f8b5d; }
.hero-comparison figcaption { position: absolute; left: 20px; bottom: 16px; margin: 0; color: #c7d7cd; font-size: 13px; }

.section { padding-block: 96px; }
.section-heading h2 { max-width: 820px; }
.section-heading > p:last-child { max-width: 620px; color: var(--muted); font-size: 19px; }
.compact-heading { max-width: 820px; margin-bottom: 46px; }
.compact-heading h2 { margin-bottom: 17px; }

.rationale-section { background: var(--paper); }
.rationale-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 8vw, 110px); align-items: start; }
.rationale-copy { padding-top: 36px; color: #3c493f; }
.rationale-copy .large-copy { color: var(--ink); font-size: 22px; line-height: 1.5; }
.rationale-copy p:last-child { margin-bottom: 0; }
.decision-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--line); }
.decision-summary div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 13px; padding: 24px; background: var(--cream); }
.decision-summary span { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--fern); border-radius: 50%; font-size: 13px; font-weight: 800; }
.decision-summary strong { line-height: 1.25; }
.decision-summary small { margin-top: 4px; color: var(--muted); }

.stills-section { background: var(--cream); }
.still-story { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 12px 34px rgba(20,38,29,.06); }
.still-story + .still-story { margin-top: 30px; }
.still-story .story-number { color: var(--terracotta); }
.still-story .story-heading > p { color: var(--muted); }
.still-comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.still-card { min-width: 0; margin-bottom: 0; overflow: hidden; border: 1px solid rgba(32,39,34,.18); border-radius: 13px; background: #0c1d16; }
.still-card figcaption { min-height: 58px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 12px; color: #d5e1da; background: #0c1d16; font-size: 12px; }
.still-card img { height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #e4e0d8; }

.source-story { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(38px, 6vw, 78px); align-items: center; margin-top: 88px; padding: clamp(30px, 5vw, 58px); border-radius: var(--radius-lg); color: var(--paper); background: var(--fern-dark); }
.source-story-copy h2 { font-size: clamp(34px, 4vw, 52px); }
.source-story-copy p:last-child { margin-bottom: 0; color: #c6d5cc; }
.still-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.still-pair .still-card { border-color: var(--dark-line); }

.motion-section { color: var(--paper); background: radial-gradient(circle at 92% 0%, rgba(79,131,223,.16), transparent 29rem), linear-gradient(145deg, #102219, #12291f 66%, #0b1d16); }
.on-dark .section-kicker { color: #8fb4ff; }
.on-dark > p:last-child { color: #bdcdc4; }
.motion-story { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--dark-line); border-radius: var(--radius-lg); background: rgba(255,255,255,.045); }
.motion-feature + .motion-feature { margin-top: 30px; }
.story-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 42px; align-items: end; margin-bottom: 26px; }
.story-heading h3 { max-width: 680px; margin-bottom: 0; font-size: clamp(28px, 3vw, 42px); }
.story-heading > p { margin-bottom: 0; color: #bdcdc4; }
.story-number { margin-bottom: 10px; color: #8fb4ff; }
.video-grid { display: grid; gap: 16px; }
.video-grid-three { grid-template-columns: repeat(3, 1fr); }
.video-grid-two { grid-template-columns: repeat(2, 1fr); }
.feature-pair { max-width: 820px; margin-inline: auto; }
.clip-card { margin-bottom: 0; min-width: 0; }
.clip-card figcaption { min-height: 55px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 12px; color: #d5e1da; background: #0c1d16; border: 1px solid var(--dark-line); border-bottom: 0; border-radius: 13px 13px 0 0; font-size: 12px; }
.clip-card video { aspect-ratio: 9 / 16; object-fit: cover; border: 1px solid var(--dark-line); border-radius: 0 0 13px 13px; background: #050b08; }

.status { width: fit-content; display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; }
.status-initial { color: #dbe7ff; background: rgba(79,131,223,.24); }
.status-rejected { color: #ffe2dc; background: rgba(189,109,82,.29); }
.status-superseded { color: #ffeec8; background: rgba(227,166,50,.25); }
.status-approved { color: #d7f2e0; background: rgba(76,157,111,.3); }
.status-alternate { color: #e8ddff; background: rgba(130,94,196,.28); }
.status-experimental { color: #d7f4f2; background: rgba(47,151,147,.28); }
.status-unresolved { color: #e4e8e5; background: rgba(148,158,151,.25); }

.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.comparison-story { min-width: 0; }
.comparison-heading { min-height: 190px; margin-bottom: 22px; }
.comparison-heading h3 { font-size: 28px; }
.comparison-heading p:last-child { margin-bottom: 0; color: #bdcdc4; }
.unresolved-note { margin-top: 28px; padding: 19px 22px; border-left: 3px solid var(--gold); color: #c7d5cd; background: rgba(255,255,255,.05); }
.unresolved-note strong { color: white; }

.label-key { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); gap: 50px; margin-top: 78px; padding-top: 60px; border-top: 1px solid var(--dark-line); }
.label-key h2 { margin-bottom: 12px; font-size: clamp(32px, 4vw, 48px); }
.label-key > div > p:last-child { color: #bdcdc4; }
.status-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
.status-legend > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--dark-line); border-radius: 12px; background: rgba(255,255,255,.04); }
.status-legend dt, .status-legend dd { margin-bottom: 0; }
.status-legend dd { color: #bdcdc4; font-size: 13px; text-align: right; }

.results-section { background: var(--paper); }
.results-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(48px, 8vw, 105px); align-items: center; }
.results-grid .section-heading > p:last-child { font-size: 17px; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.result-stats div { min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream); }
.result-stats strong { color: var(--fern); font-family: "Iowan Old Style", Georgia, serif; font-size: 54px; line-height: 1; }
.result-stats span { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.closing-note { display: grid; grid-template-columns: auto 1fr; gap: 22px; margin-top: 54px; padding: 24px 28px; border-radius: 14px; color: white; background: var(--fern); }
.closing-note p { margin-bottom: 0; color: #d5e2da; }

.site-footer { padding-block: 34px; color: #cad8d0; background: #091710; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.footer-inner > div:first-child { display: grid; }
.footer-inner span { color: #8fa399; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; padding-block: 72px; }
  .hero-comparison { width: min(700px, 100%); }
  .source-story { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .comparison-heading { min-height: 0; }
  .label-key { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 30px, var(--shell)); }
  .site-header { position: static; }
  .nav-inner { min-height: 66px; }
  .brand-copy span, .portfolio-link span { display: none; }
  .portfolio-link { padding: 8px 11px; font-size: 12px; }
  .hero-grid { gap: 38px; padding-block: 54px; }
  h1 { font-size: clamp(44px, 14vw, 66px); }
  h2 { font-size: clamp(34px, 10vw, 48px); }
  .section { padding-block: 72px; }
  .rationale-grid, .story-heading { grid-template-columns: 1fr; gap: 16px; }
  .rationale-copy { padding-top: 0; }
  .decision-summary { grid-template-columns: 1fr; }
  .source-story { margin-top: 64px; padding: 26px 20px; }
  .still-story { padding: 22px 14px; }
  .still-comparison { gap: 9px; }
  .still-card figcaption { min-height: 78px; align-content: center; padding: 9px 8px; }
  .still-pair { gap: 10px; }
  .still-pair figcaption > span:last-child { display: none; }
  .motion-story { padding: 22px 14px; }
  .video-grid-three { grid-template-columns: 1fr; }
  .video-grid-two { gap: 9px; }
  .clip-card figcaption { min-height: 78px; align-content: center; padding: 9px 8px; }
  .comparison-grid { gap: 18px; }
  .comparison-heading h3 { font-size: 26px; }
  .status-legend { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: 1fr; }
  .result-stats div { min-height: 140px; }
  .closing-note { grid-template-columns: 1fr; gap: 8px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
