/* ==========================================================================
   Elena Welch — site styles
   Layout concept: an editorial page on warm ivory. A 12-column grid, a narrow
   label column on the left of each section, thin navy rules between items,
   and one signature element — the flowing blue line field — at the top and
   bottom of pages.
   Balance: ~80% ivory, ~15% navy, ~4% blue, ~1% pink.
   ========================================================================== */

:root {
  /* Color */
  --ivory: #FAF8F3;         /* page ground */
  --paper: #F2EFE7;         /* quiet alternate ground + placeholders */
  --navy: #0E1B33;          /* primary text */
  --navy-2: #45506A;        /* secondary text */
  --navy-3: #6B7488;        /* metadata */
  --rule: rgba(14, 27, 51, 0.14);
  --rule-strong: rgba(14, 27, 51, 0.32);
  --blue: #2F6FC4;          /* primary accent */
  --blue-ink: #245AA3;      /* blue used for small text (contrast) */
  --blue-wash: rgba(47, 111, 196, 0.08);
  --pink: #E58CAE;          /* used very sparingly */

  /* Type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-meta: 0.72rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h4: 1.5rem;
  --fs-h3: clamp(1.75rem, 2.6vw, 2.25rem);
  --fs-h2: clamp(2.25rem, 4.6vw, 3.75rem);
  --fs-h1: clamp(3rem, 7vw, 6.25rem);
  --fs-display: clamp(2.75rem, 6.4vw, 5.9rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1320px;
  --section: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }

::selection { background: rgba(47, 111, 196, 0.2); }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--navy); color: var(--ivory);
  padding: .6rem 1rem; font-size: var(--fs-sm); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .65); }
.section--paper { background: var(--paper); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Label column + content column, used across most sections */
.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}
.split > * { min-width: 0; }

/* ---------- Type ---------- */

.meta {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy-3);
  line-height: 1.5;
}
.meta--blue { color: var(--blue-ink); }
.meta .sep { margin-inline: .55em; color: var(--rule-strong); }

.serif { font-family: var(--serif); }
.display {
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: .98;
  letter-spacing: -0.015em;
  font-weight: 400;
  font-variation-settings: "opsz" 42;
}
.h1 { font-family: var(--serif); font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.015em; font-variation-settings: "opsz" 42; }
.h2 { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.01em; font-variation-settings: "opsz" 36; }
.h3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.12; }
.h4 { font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.2; }

.accent-line {
  color: var(--blue);
  white-space: nowrap;
  background: linear-gradient(100deg, var(--blue) 0%, var(--blue) 72%, #5E86D0 88%, #C58DB8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .06em; /* keeps italic overhang from clipping */
}

.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--navy-2); max-width: 36rem; }
.prose { max-width: 38rem; color: var(--navy-2); }
.prose > * + * { margin-top: 1.1em; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose--lg { font-size: var(--fs-lg); line-height: 1.6; }

.pull {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  color: var(--navy);
  max-width: 44rem;
  text-wrap: balance;
}
.pull em { color: var(--blue); }

/* ---------- Links & buttons ---------- */

.arrow-link {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-meta); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--navy);
  padding-block: .35rem;
  border-bottom: 1px solid var(--navy);
}
.arrow-link .arr { display: inline-block; transition: transform .25s var(--ease); }
.arrow-link:hover .arr { transform: translateX(4px); }
.arrow-link--back .arr { order: -1; }
.arrow-link--back:hover .arr { transform: translateX(-4px); }
.arrow-link--blue { color: var(--blue-ink); border-color: var(--blue); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; }
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  min-height: 3rem; padding: .8rem 1.35rem;
  font-size: var(--fs-meta); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--navy);
  color: var(--navy); background: transparent;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--solid { background: var(--navy); color: var(--ivory); }
.btn--solid:hover { background: #1B2C4D; }
.btn:not(.btn--solid):hover { background: var(--navy); color: var(--ivory); }

a.is-unset { cursor: not-allowed; opacity: .55; }

/* Inline placeholder for text that still needs a real value */
.todo {
  font-family: var(--mono);
  font-size: .78em;
  letter-spacing: 0;
  color: var(--blue-ink);
  background: var(--blue-wash);
  padding: .08em .35em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-style: normal;
  text-transform: none;
}

/* ---------- Media + placeholders ----------
   Every image slot is a <figure class="media"> with an <img> and a
   placeholder label behind it. Drop the real file at the path in the
   <img src> and it covers the placeholder; if the file is missing the
   <img> removes itself and the label shows. */

.media {
  position: relative;
  margin: 0;
  background: var(--paper);
  overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 10);
  max-width: 100%;
  border: 1px solid var(--rule);
}
.media > img, .media > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  transition: transform .8s var(--ease);
}
.media .ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem; text-align: center;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 100% 25%, 25% 100%;
  background-position: 0 0;
  opacity: 1;
}
.media .ph b {
  font-size: var(--fs-meta); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy-2); background: var(--paper); padding: .3rem .55rem;
}
.media .ph code {
  font-family: var(--mono); font-size: .7rem; color: var(--navy-3);
  background: var(--paper); padding: .1rem .4rem;
}
.media--portrait { --ratio: 4 / 5; }
.media--tall { --ratio: 3 / 4; }
.media--square { --ratio: 1 / 1; }
.media--wide { --ratio: 16 / 9; }
.media--cine { --ratio: 21 / 9; }
.media--doc { --ratio: 8.5 / 11; }
.ph .play {
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 1px solid var(--navy-2); background: var(--ivory);
  display: grid; place-items: center; margin-bottom: .25rem;
}
.ph .play::after {
  content: ""; margin-left: .2rem;
  border-left: .65rem solid var(--navy); border-top: .42rem solid transparent; border-bottom: .42rem solid transparent;
}

.caption {
  margin-top: .75rem;
  font-size: var(--fs-sm);
  color: var(--navy-3);
}

/* ---------- Signature line field ---------- */

.flow {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  display: block;
}
.flow canvas { width: 100%; height: 100%; display: block; }
.flow--hero { inset: 0; }
.flow--intro { left: 0; right: 0; top: 0; height: 100%; opacity: .8; }
.flow--footer { left: 0; right: 0; top: 0; height: 180px; }
.over-flow { position: relative; z-index: 1; }

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(250, 248, 243, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  height: 4.5rem;
}
.brand {
  font-size: .8rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; color: var(--navy); white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); list-style: none; }
.nav-links a {
  position: relative;
  font-size: var(--fs-meta); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--navy-2);
  padding-block: .5rem;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3rem); }

.social { display: flex; gap: .35rem; list-style: none; }
.social a {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  color: var(--navy-2); transition: color .2s var(--ease);
}
.social a:hover { color: var(--blue); }
.social svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: .5rem 0; cursor: pointer;
  font: 600 var(--fs-meta) / 1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
  align-items: center; gap: .6rem;
}
.menu-toggle .bars { width: 22px; height: 8px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--navy);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle .bars::before { top: 0; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 3px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 3px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 4.5rem 0 0 0; z-index: 49;
  background: var(--ivory);
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-top: 1px solid var(--rule); }
.mobile-menu li:last-child { border-bottom: 1px solid var(--rule); }
.mobile-menu a.big {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: 1rem;
  font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; text-decoration: none; color: var(--navy);
}
.mobile-menu a.big span { font-family: var(--sans); font-size: var(--fs-meta); letter-spacing: .18em; color: var(--navy-3); }
.mobile-menu a.big[aria-current="page"] { color: var(--blue); }
.mobile-menu .social { margin-top: 2rem; }

@media (max-width: 900px) {
  .nav-right { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* ---------- Page-load motion (hero only; content is visible at rest) ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .8s var(--ease) both; }
.rise-2 { animation-delay: .08s; }
.rise-3 { animation-delay: .16s; }
.rise-4 { animation-delay: .24s; }
.rise-5 { animation-delay: .32s; }

/* ==========================================================================
   HOME
   ========================================================================== */

.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero-copy { display: grid; gap: clamp(1.5rem, 2.6vw, 2.25rem); padding-bottom: clamp(0rem, 2vw, 2rem); }
.hero-copy .lede { max-width: 31rem; }
.hero-portrait { position: relative; }
.hero-portrait .media { box-shadow: 0 30px 60px -40px rgba(14, 27, 51, .35); }
.hero-portrait .tag { margin-top: .9rem; }

.section-head {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head > * { min-width: 0; }

/* What I've built */
.work-list { list-style: none; border-bottom: 1px solid var(--rule); }
.work-item {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rule);
  position: relative;
}
.work-item > * { min-width: 0; }
.work-num {
  font-family: var(--serif); font-size: 1.1rem; color: var(--blue);
  font-feature-settings: "lnum"; padding-top: .55rem;
}
.work-body { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.work-title { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.02; letter-spacing: -.01em; }
.work-title a { text-decoration: none; }
.work-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole row clickable */
.work-body p { color: var(--navy-2); max-width: 26rem; }
.work-body .arrow-link { position: relative; z-index: 2; padding-block: .6rem; }
.work-item { cursor: pointer; }
.work-item:hover .arrow-link .arr { transform: translateX(4px); }
.work-item:hover .media > img { transform: scale(1.02); }
.work-media { align-self: start; }

/* Foundation band (Destination Imagination) */
.foundation { position: relative; overflow: hidden; }
.foundation .statement { max-width: 15ch; }
.stat-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.stat-row > div { padding: 1.1rem 1.25rem 0 0; }
.stat-row dt { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; }
.stat-row dd { margin: .35rem 0 0; }
.photo-strip {
  display: grid; grid-template-columns: 5fr 4fr 3fr; gap: clamp(.75rem, 1.6vw, 1.25rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.photo-strip .media { --ratio: auto; height: clamp(12rem, 24vw, 20rem); aspect-ratio: auto; }

/* Beyond the builds */
.beyond-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.beyond-card { display: grid; gap: 1rem; }
.beyond-card h3 { font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.15; }
.beyond-card p { color: var(--navy-2); font-size: .98rem; max-width: 30rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { position: relative; overflow: hidden; padding-top: 150px; }
.footer-inner {
  position: relative; z-index: 1;
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 2rem;
}
.footer-name { font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1; text-decoration: none; letter-spacing: -.01em; }
.footer-links { list-style: none; display: grid; gap: .35rem; }
.footer-links a { text-decoration: none; color: var(--navy-2); font-size: var(--fs-sm); }
.footer-links a:hover { color: var(--blue); }
.footer-base {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.25rem 2rem; border-top: 1px solid var(--rule);
}

/* ==========================================================================
   CASE STUDIES + INNER PAGES
   ========================================================================== */

.page-head { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.page-head .back { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-head .h1 { margin-block: 1rem 1.5rem; max-width: 14ch; }
.page-head .lede { max-width: 38rem; }
.page-head .btn-row { margin-top: 2rem; }
.page-head--quiet .flow { opacity: .55; }

.hero-media { margin-top: 0; }

.cs-section { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.cs-section:first-of-type { border-top: 0; }
.cs-label { display: grid; gap: .5rem; align-content: start; }
.cs-label .num { font-family: var(--serif); color: var(--blue); font-size: 1.1rem; }
.cs-label h2 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; }
.cs-body { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.cs-body > * { min-width: 0; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.pair > *, .trio > * { min-width: 0; }

/* Tag list (roles, tools) — small, typographic, no pills */
.inline-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 0; }
.inline-list li {
  font-size: var(--fs-meta); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-2);
}
.inline-list li + li::before { content: "·"; margin-inline: .8em; color: var(--rule-strong); }

/* Definition-style grid (tools, operations, marketing) */
.def-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.def-grid > div { padding: 1.1rem 1.5rem 1.25rem 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.def-grid dt { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.def-grid dd { margin: .3rem 0 0; font-size: var(--fs-sm); color: var(--navy-3); }
.def-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.def-grid--2 dd { font-size: .95rem; color: var(--navy-2); }

/* Process / flow visualization */
.process {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
  position: relative;
}
.process::before {
  content: ""; position: absolute; left: 0; right: 0; top: .45rem; height: 1px; background: var(--rule-strong);
}
.process li { position: relative; padding: 1.75rem 1.25rem 0 0; counter-increment: step; min-width: 0; }
.process li::before {
  content: ""; position: absolute; top: 0; left: 0; width: .9rem; height: .9rem; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--navy);
}
.process li::after {
  content: "→"; position: absolute; top: -.35rem; right: 1rem; font-size: .9rem; color: var(--navy-3);
}
.process li:last-child::after { content: none; }
.process .step-name {
  display: block; font-size: var(--fs-meta); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.process .step-note { display: block; margin-top: .5rem; font-size: var(--fs-sm); color: var(--navy-2); line-height: 1.55; }
.process li.is-end::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); }
.process li.is-end .step-name { color: var(--blue-ink); }
.process-loop { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--navy-3); }
.process-loop b { color: var(--blue-ink); font-weight: 600; }

/* Checklist of what she actually did (Everlasting) */
.did-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--rule); }
.did-list li { padding: .85rem 0; border-bottom: 1px solid var(--rule); color: var(--navy-2); display: flex; gap: .9rem; }
.did-list li::before { content: "—"; color: var(--blue); }

/* Feedback grid */
.feedback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.feedback > div { border-top: 1px solid var(--rule); padding-block: 1.25rem 1.5rem; min-width: 0; }
.feedback h3 { font-size: var(--fs-meta); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-family: var(--sans); margin-bottom: .6rem; }
.feedback p { color: var(--navy-2); }

/* Metrics (only verified numbers render large) */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.metrics > div { padding: 1.25rem 1.5rem 0 0; min-width: 0; }
.metrics .fig { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; font-feature-settings: "lnum"; }
.metrics .fig .todo { font-size: .9rem; vertical-align: middle; }
.metrics .meta { margin-top: .75rem; display: block; }

/* Brochure viewer */
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 1rem; }
.viewer-main .media { --ratio: 4 / 3; }
.viewer-thumbs { list-style: none; display: grid; gap: .75rem; align-content: start; }
.viewer-thumbs button {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%;
  border: 1px solid var(--rule); background: var(--paper); aspect-ratio: 4 / 3;
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-3);
  display: grid; place-items: center; text-align: center; position: relative; overflow: hidden;
}
.viewer-thumbs button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer-thumbs button[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.viewer-thumbs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Product series (Jess Sports) */
.series { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.series h3 { font-family: var(--serif); font-size: 1.6rem; margin-top: .9rem; }

/* Gallery grid (DI) — aligned, never tilted */
.gallery {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.gallery > figure { margin: 0; min-width: 0; }
.g-7 { grid-column: span 7; } .g-5 { grid-column: span 5; }
.g-4 { grid-column: span 4; } .g-8 { grid-column: span 8; } .g-6 { grid-column: span 6; }
.gallery .media { --ratio: 4 / 3; }
.gallery .g-5 .media, .gallery .g-4 .media { --ratio: auto; aspect-ratio: auto; height: 100%; min-height: 14rem; }
.gallery > figure { display: flex; flex-direction: column; }
.gallery > figure .media { flex: 1; }

.award-list { list-style: none; border-top: 1px solid var(--rule-strong); }
.award-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 1rem; border-bottom: 1px solid var(--rule);
}
.award-list .a-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }

/* Next-project footer nav */
.case-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--rule); padding-block: 2.5rem;
}
.next-link { text-decoration: none; text-align: right; display: grid; gap: .35rem; }
.next-link .h3 { transition: color .2s var(--ease); }
.next-link:hover .h3 { color: var(--blue); }
.next-link .h3 .arr { display: inline-block; transition: transform .25s var(--ease); }
.next-link:hover .h3 .arr { transform: translateX(6px); }

/* Story chapters */
.chapter { padding-block: clamp(2.75rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.chapter .when { font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); font-size: .74rem; line-height: 1.5; margin-bottom: .6rem; }
.chapter h2 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; margin-top: .4rem; }
.chapter .prose { max-width: 36rem; }
.chapter .more { margin-top: 1.5rem; }
.chapter-arrow { display: block; text-align: left; color: var(--rule-strong); font-size: 1rem; }

/* Now */
.now-list { list-style: none; border-top: 1px solid var(--rule-strong); }
.now-list li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem;
  padding-block: 1.4rem; border-bottom: 1px solid var(--rule);
}
.now-list li > * { min-width: 0; }
.now-list .n-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; }
.now-list .n-body { color: var(--navy-2); }

/* Contact */
.contact { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 8rem); min-height: 60vh; }
.contact-links { list-style: none; border-top: 1px solid var(--rule-strong); margin-top: clamp(2.5rem, 5vw, 4rem); max-width: 52rem; }
.contact-links li { border-bottom: 1px solid var(--rule); }
.contact-links a {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; align-items: baseline; gap: 1.5rem;
  padding-block: 1.25rem; text-decoration: none;
}
.contact-links .c-val { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.2; overflow-wrap: anywhere; }
.contact-links .arr { transition: transform .25s var(--ease); color: var(--navy-3); }
.contact-links a:hover .arr { transform: translateX(5px); color: var(--blue); }
.contact-links a:hover .c-val { color: var(--blue); }

/* About */
.about-open { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.quote-block { border-left: 1px solid var(--blue); padding-left: clamp(1.25rem, 3vw, 2.25rem); }
.interests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.interests > div { border-top: 1px solid var(--rule); padding-block: 1.25rem 1.75rem; min-width: 0; }
.interests h3 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: .45rem; }
.interests p { color: var(--navy-2); font-size: .98rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .work-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .work-num { grid-column: 1 / -1; padding-top: 0; }
  .def-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .split, .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-portrait { max-width: 30rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .process::before { left: .45rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process li { padding: 0 0 1.5rem 2.25rem; }
  .process li::after { content: none; }
  .about-open { grid-template-columns: minmax(0, 1fr); }
  .about-open .media { max-width: 30rem; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row > div { padding-bottom: 1.25rem; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metrics > div { padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 680px) {
  :root { --fs-base: 1rem; }
  .work-item { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .work-media { order: 3; }
  .photo-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .photo-strip .media:first-child { grid-column: 1 / -1; }
  .photo-strip .media { height: 12rem; }
  .beyond-grid { grid-template-columns: minmax(0, 1fr); }
  .pair, .trio, .series, .feedback, .interests, .did-list, .def-grid, .def-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .gallery > figure { grid-column: 1 / -1; }
  .gallery .g-5 .media, .gallery .g-4 .media { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
  .viewer { grid-template-columns: minmax(0, 1fr); }
  .viewer-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .now-list li { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .contact-links a { grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; }
  .contact-links a .meta { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .next-link { text-align: left; }
  .case-nav { flex-direction: column-reverse; align-items: flex-start; }
  .award-list li { flex-direction: column; gap: .2rem; }
  .flow--footer { height: 130px; }
  .site-footer { padding-top: 110px; }
}

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

@media print {
  .site-header, .flow, .mobile-menu { display: none !important; }
}

@media (max-width: 380px) { .accent-line { white-space: normal; } }
.mobile-menu[hidden] { display: none; }
.contact .flow { opacity: .55; }


/* Hero emphasis: heavier headline, "And I don't stop." smaller, darker paragraph */
.hero .display {
  font-weight: 600;
  font-variation-settings: "opsz" 28;
  letter-spacing: -0.02em;
}
.hero .accent-line {
  display: inline-block;
  font-size: .6em;
  margin-top: .28em;
  font-weight: 600;
}
.hero .lede {
  color: var(--navy);
  font-weight: 500;
  text-shadow: 0 0 10px var(--ivory), 0 0 4px var(--ivory), 0 0 2px var(--ivory);
}
.hero .meta { color: var(--navy-2); }

/* Heavier Bodoni across the site (matches the homepage headline) */
.display, .h1, .h2, .work-title, .footer-name, .mobile-menu a.big {
  font-weight: 600;
  font-variation-settings: "opsz" 28;
}
.h3, .h4, .cs-label h2, .chapter h2, .beyond-card h3, .interests h3, .series h3,
.def-grid dt, .stat-row dt, .award-list .a-name, .now-list .n-title, .contact-links .c-val,
.pull, .work-num, .cs-label .num {
  font-weight: 500;
  font-variation-settings: "opsz" 24;
}

/* Football photos on About: landscape kick + upright portrait, same height */
.pair--football { grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr); }
.media--landscape { --ratio: 3 / 2; }
.media--upright { --ratio: 2 / 3; }
@media (max-width: 680px) { .pair--football { grid-template-columns: minmax(0, 1fr); } }

/* Gallery items with captions: let the photo fill the row height */
.gallery > figure > div { flex: 1; display: flex; flex-direction: column; }
.gallery > figure > div > .media { flex: 1; }

/* Jess Sports brochure viewer: portrait page + thumbnails beside it */
.brochure {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
}
.brochure > * { min-width: 0; }
.brochure .viewer-main .media { --ratio: 8.5 / 11; box-shadow: 0 30px 60px -45px rgba(14, 27, 51, .45); }
.brochure-side { display: grid; gap: 1.25rem; align-content: start; position: sticky; top: 6.5rem; }
.brochure-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin-top: .25rem; }
.brochure-thumbs button { aspect-ratio: 8.5 / 11; }
.series .meta { margin-top: .35rem; }
@media (max-width: 900px) {
  .brochure { grid-template-columns: minmax(0, 1fr); }
  .brochure-side { position: static; }
}
@media (max-width: 680px) {
  .brochure-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.metrics .fig { font-weight: 600; font-variation-settings: "opsz" 28; }
.media--screen { --ratio: 844 / 628; }
.media--site { --ratio: 1.62 / 1; }
.media--pwsite { --ratio: 1928 / 1648; }
.media--four { --ratio: 4 / 3; }

/* ---------- Project scale (each build bigger than the last) ---------- */
.work-num { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.scale { display: block; width: 7.5rem; height: 2px; background: var(--rule); }
.scale i { display: block; height: 100%; width: calc(var(--s) * 100%); background: var(--blue); }

/* ---------- Homepage intro: type the headline, fizzle in the second line, then show the page ---------- */
html.intro .site-header,
html.intro .hero .meta,
html.intro .hero .lede,
html.intro .hero-copy > p:last-child,
html.intro .hero-portrait,
html.intro main > section:not(.hero),
html.intro .site-footer { opacity: 0; animation: none !important; }
html.intro .type-line .ch { opacity: 0; }
html.intro .accent-line { opacity: 0; }
html.intro .type-line .ch.on { opacity: 1; }

html.intro.reveal .site-header,
html.intro.reveal .hero .meta,
html.intro.reveal .hero .lede,
html.intro.reveal .hero-copy > p:last-child,
html.intro.reveal .hero-portrait,
html.intro.reveal main > section:not(.hero),
html.intro.reveal .site-footer { opacity: 1; transition: opacity 1.6s ease; }
html.intro.accent .accent-line { opacity: 1; transition: opacity 1.3s ease; }
html.intro.reveal .type-line .ch, html.intro.reveal .accent-line { opacity: 1; }
@keyframes fizzle {
  0%   { opacity: 0;   filter: blur(10px); letter-spacing: .06em; }
  25%  { opacity: .7;  filter: blur(4px); }
  38%  { opacity: .15; filter: blur(5px); }
  55%  { opacity: .85; filter: blur(1.5px); }
  68%  { opacity: .45; filter: blur(2px); }
  100% { opacity: 1;   filter: blur(0); letter-spacing: -0.015em; }
}

.caret {
  display: none; width: .06em; height: .82em; margin-left: .04em;
  background: var(--blue); vertical-align: -0.04em;
  animation: caret-blink 1s steps(1) infinite;
}
html.intro .caret { display: inline-block; }
.caret.done { animation: caret-out .5s ease forwards; }
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes caret-out { to { opacity: 0; } }
.media--pwhero { --ratio: 2000 / 1263; }
.media--presence { --ratio: 553 / 558; max-width: 34rem; }

/* Featured tool + findings */
.feature-tool { border-top: 1px solid var(--rule-strong); padding-top: 1.25rem; display: grid; gap: .6rem; }
.findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.findings > div { border-top: 1px solid var(--rule); padding-block: 1.25rem 1.75rem; min-width: 0; }
.findings h3 { font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin-bottom: .6rem; font-weight: 500; }
.findings p { color: var(--navy-2); }
@media (max-width: 680px) { .findings { grid-template-columns: minmax(0, 1fr); } }

/* Copy blocks with several short paragraphs */
.hero-lede p + p, .card-copy p + p, .lede p + p { margin-top: .8em; }
.hero .hero-lede { font-size: 1.08rem; }
.card-copy { color: var(--navy-2); max-width: 30rem; }
.card-metric { display: flex; align-items: baseline; gap: .75rem; }
.card-metric .fig-sm { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--navy); }
.lede-stack > p + p, .prose-stack > p + p { margin-top: 1em; }
.pull--sm { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.metrics--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Wider text on project and inner pages */
.page-head .lede { max-width: 60rem; }
.cs-body .prose, .cs-body .prose--lg, .chapter .prose, .split > .prose { max-width: 56rem; }
.cs-body .pull { max-width: 56rem; }

/* Subheads inside prose */
.prose h3.subhead { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-ink); margin: 2.2em 0 .9em; }
.cs-body > .prose + .process, .cs-body > .process + .prose, .cs-body > .gate, .cs-body > .gate + .prose { margin-top: clamp(2rem,4vw,3rem); }
/* Pass / fail loop */
.gate { display: grid; gap: 1rem; padding: clamp(1.25rem,3vw,2rem); border: 1px solid var(--line, rgba(20,33,61,.15)); border-radius: 4px; background: rgba(255,255,255,.45); }
.gate-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.gate-node { display: inline-block; padding: .55rem .9rem; border: 1px solid rgba(20,33,61,.25); border-radius: 999px; font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--ivory, #fbf8f1); }
.gate-start { justify-self: start; border-color: var(--navy); }
.gate-node.is-end { background: var(--blue); border-color: var(--blue); color: #fff; }
.gate-tag { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; min-width: 3.2rem; }
.gate-pass .gate-tag { color: var(--blue-ink); }
.gate-fail .gate-tag { color: #b24a72; }
.gate-arrow { color: var(--navy-2); }
.gate-loop { font-size: 1.3rem; color: #b24a72; }

/* Tools strip under the opening */
.tools-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.25rem; margin-bottom: clamp(1.5rem,3vw,2.25rem); }
.tools-strip .meta { margin: 0; }
.tools-strip .inline-list { margin: 0; }
.cs-body > .inline-list + .prose { margin-top: 1.5rem; }
.flyer-solo { max-width: 22rem; }

/* Beyond the builds: three even cards, rows lined up */
.beyond-card { grid-row: span 5; grid-template-rows: subgrid; align-content: start; }
.beyond-card .media { --ratio: 4 / 5; }
@media (max-width: 700px) { .beyond-card { grid-row: auto; grid-template-rows: none; } }

/* Everlasting hero video */
.media--video { background: #0b0b0b; }
.media--video > video { object-fit: cover; }
.sound-toggle { position: absolute; left: clamp(.75rem,2vw,1.25rem); bottom: clamp(.75rem,2vw,1.25rem); z-index: 2; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .95rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(14,27,51,.55); color: #fff; font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s; }
.sound-toggle:hover { background: rgba(14,27,51,.8); }
.sound-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sound-icon { width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3z'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3z'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.sound-toggle[aria-pressed="true"] .sound-icon { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 4V5L7 9H3z'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
