/* IngramWorks: design system
   Premium editorial portfolio. Light paper base, ink text,
   deep slate + dusty rose accents (Velvet Storm). */

:root {
  --ink: #0e0e12;
  --ink-soft: #17171d;
  --paper: #f6f4ee;
  --paper-deep: #edeae1;
  --card: #ffffff;
  --slate: #35465a;
  --rose: #a7596c;
  --rose-ink: #8e4759;
  --muted: #6f6f77;
  --faint: #a9a9b0;
  --line: rgba(14, 14, 18, 0.14);
  --line-light: rgba(246, 244, 238, 0.16);
  /* noir editorial: black & warm neutrals */
  --noir: #131216;
  --noir-2: #1c1b20;
  --bone: #ece8dd;
  --bone-dim: #cfc9bc;
  --stone: #8f8a80;
  --stone-faint: #5d5952;
  --line-noir: rgba(236, 232, 221, 0.14);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 10vw, 9rem);
  --radius: 3px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--rose); color: var(--paper); }

img, video { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }

p { margin: 0 0 1.25em; max-width: var(--measure); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.eyebrow .n { color: var(--rose-ink); margin-right: 0.75em; }

.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
}

.small { font-size: 0.875rem; color: var(--muted); }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap-narrow { max-width: 880px; }

section, .section { padding-top: var(--section); padding-bottom: var(--section); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark em { font-style: italic; color: var(--rose-ink); }

.nav-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

body { padding-top: 72px; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(4rem, 8vw, 7rem); }

.hero h1 .italic { font-style: italic; color: var(--slate); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta strong { color: var(--ink); font-weight: 600; }

/* reel */
.reel {
  margin-top: 3.5rem;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel .placeholder-note {
  color: var(--paper);
  text-align: center;
  padding: 2rem;
}

.reel .placeholder-note .eyebrow { color: var(--faint); }

.reel video, .reel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- work index ---------- */

.work-list { list-style: none; margin: 3rem 0 0; padding: 0; border-top: 1px solid var(--line); }

.work-list li { border-bottom: 1px solid var(--line); }

.work-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.75rem 0.5rem;
  text-decoration: none;
  transition: background 0.25s, padding 0.25s;
}

.work-row:hover { background: var(--card); padding-left: 1.25rem; padding-right: 1.25rem; }

.work-row .idx {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--faint);
  font-size: 1rem;
}

.work-row .title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.work-row .meta {
  text-align: right;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.work-row .meta .year { display: block; color: var(--faint); margin-top: 0.25rem; }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-ink);
  border: 1px solid color-mix(in srgb, var(--rose) 45%, transparent);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  margin: 0 0.5rem 0.5rem 0;
}

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.filter-btn {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6em 1.4em;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- dark manifesto ---------- */

.dark {
  background: var(--ink);
  color: var(--paper);
}

.dark .eyebrow { color: var(--faint); }
.dark .lede { color: #d9d6cf; }
.dark .rule { border-color: var(--line-light); }

.manifesto p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.35;
  max-width: 26ch;
  letter-spacing: -0.01em;
}

.manifesto p em { color: var(--rose); font-style: italic; }

/* ---------- capabilities ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: 3rem;
}

.cap { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.cap .n {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose-ink);
  display: block;
  margin-bottom: 0.75rem;
}
.cap h3 { margin-bottom: 0.75rem; }
.cap p { font-size: 0.95rem; color: var(--muted); }

/* ---------- case study ---------- */

.case-hero { padding-top: clamp(3rem, 6vw, 5rem); }

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-facts dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.case-facts dd { margin: 0; font-weight: 500; }

.case-body { display: grid; grid-template-columns: 1fr; gap: 0; }
.case-body h2 { margin-top: 3.5rem; }
.case-body h2:first-child { margin-top: 0; }

.figure {
  margin: 3rem 0;
  background: var(--paper-deep);
  border-radius: var(--radius);
  overflow: hidden;
}

.figure .ph {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.figure figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--line);
}

.next-case {
  display: block;
  margin-top: var(--section);
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.next-case .eyebrow { margin-bottom: 0.75rem; }
.next-case .title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); }
.next-case:hover .title { color: var(--rose-ink); font-style: italic; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: 3rem;
  align-items: start;
}

.portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-deep);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: sticky;
  top: 6rem;
}

.credit-list { list-style: none; margin: 0; padding: 0; }
.credit-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.credit-list .role { color: var(--muted); }

/* ---------- contact ---------- */

.contact-big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.contact-big a {
  color: var(--rose-ink);
  font-style: italic;
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--rose) 50%, transparent);
}

.contact-big a:hover { border-bottom-color: var(--rose-ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2.2em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  transition: all 0.22s;
  cursor: pointer;
}

.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--slate); border-color: var(--slate); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .cap-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; aspect-ratio: 16 / 10; }
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .work-row { grid-template-columns: 2.5rem 1fr; }
  .work-row .meta { display: none; }
  .nav-links { gap: 1.25rem; }
}

/* ---------- case study media ---------- */

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 3rem 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-vertical {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 400px;
  margin: 3rem auto;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-embed-vertical iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery { margin: 3rem 0; display: grid; gap: 2.75rem; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.gallery figcaption {
  padding-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.gallery.two { grid-template-columns: 1fr 1fr; gap: 2rem; }

.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; margin: 3rem 0; }
.video-grid figure { margin: 0; }
.video-grid .video-embed { margin: 0 0 0.9rem; }
.video-grid figcaption { font-size: 0.85rem; color: var(--muted); }

.dark .gallery figcaption { color: var(--faint); }

/* ---------- stat grid ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--rose-ink);
}

.stat .lbl { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

/* ---------- portrait ---------- */

.portrait { overflow: hidden; padding: 0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .gallery.two { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NOIR EDITORIAL: art direction upgrade
   Black & warm neutrals, film grain, ambient motion.
   ============================================================ */

/* ---------- film grain ---------- */

.grain { position: relative; isolation: isolate; }

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  background-size: 180px 180px;
}

/* ---------- theme-aware nav ---------- */

.site-nav { transition: background 0.35s ease, border-color 0.35s ease; }

body.dark-hero { padding-top: 0; }

body.dark-hero .site-nav {
  background: transparent;
  border-bottom-color: transparent;
}

body.dark-hero .site-nav .wordmark { color: var(--bone); }
body.dark-hero .site-nav .wordmark em { color: var(--rose); }
body.dark-hero .nav-links a { color: rgba(236, 232, 221, 0.62); }
body.dark-hero .nav-links a:hover,
body.dark-hero .nav-links a[aria-current="page"] { color: var(--bone); }

body.dark-hero .site-nav.scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.dark-hero .site-nav.scrolled .wordmark { color: var(--ink); }
body.dark-hero .site-nav.scrolled .wordmark em { color: var(--rose-ink); }
body.dark-hero .site-nav.scrolled .nav-links a { color: var(--muted); }
body.dark-hero .site-nav.scrolled .nav-links a:hover,
body.dark-hero .site-nav.scrolled .nav-links a[aria-current="page"] { color: var(--ink); }

/* ---------- noir hero ---------- */

.hero-noir {
  position: relative;
  overflow: hidden;
  background: var(--noir);
  color: var(--bone);
  margin-top: 0;
  padding-top: calc(72px + clamp(4rem, 9vh, 7rem));
  padding-bottom: clamp(4rem, 9vh, 7rem);
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
}

.hero-noir .ambient { position: absolute; inset: -15%; z-index: 0; pointer-events: none; }

.hero-noir .ambient i {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(90px);
}

.hero-noir .blob-a {
  background: radial-gradient(circle, rgba(53, 70, 90, 0.6), transparent 70%);
  top: -18%; left: -12%;
  animation: drift-a 26s ease-in-out infinite alternate;
}

.hero-noir .blob-b {
  background: radial-gradient(circle, rgba(167, 89, 108, 0.26), transparent 70%);
  bottom: -24%; right: -8%;
  animation: drift-b 34s ease-in-out infinite alternate;
}

.hero-noir .blob-c {
  background: radial-gradient(circle, rgba(236, 232, 221, 0.07), transparent 70%);
  top: 30%; left: 40%;
  width: 40vmax; height: 40vmax;
  animation: drift-a 40s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a { to { transform: translate(11vmax, 7vmax) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-9vmax, -6vmax) scale(1.08); } }

.hero-noir .wrap { position: relative; z-index: 2; width: 100%; }

.hero-noir .eyebrow { color: var(--stone); }
.hero-noir .eyebrow .n { color: var(--rose); }

.hero-noir h1 {
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  font-weight: 340;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
  max-width: 14ch;
}

.hero-noir h1 .italic { font-style: italic; color: var(--bone-dim); }
.hero-noir h1 .rose-i { font-style: italic; color: var(--rose); }

.hero-noir .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-noir .line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}

body.loaded .hero-noir .line:nth-child(1) > span { transition-delay: 0.05s; }
body.loaded .hero-noir .line:nth-child(2) > span { transition-delay: 0.16s; }
body.loaded .hero-noir .line:nth-child(3) > span { transition-delay: 0.27s; }
body.loaded .hero-noir .line > span { transform: none; }

.hero-noir .lede { color: var(--bone-dim); max-width: 52ch; }

.hero-noir .hero-meta {
  border-top-color: var(--line-noir);
  color: var(--stone);
  margin-top: 3rem;
}

.hero-noir .hero-meta strong { color: var(--bone); font-weight: 500; }

.hero-noir .scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 3.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}

.hero-noir .scroll-cue::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--stone-faint);
  animation: cue-pulse 2.6s ease-in-out infinite;
}

@keyframes cue-pulse { 50% { opacity: 0.35; transform: scaleX(0.7); transform-origin: left; } }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: var(--paper);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track .dot { color: var(--rose); font-size: 0.8em; }

@keyframes marquee { to { transform: translateX(calc(-50% - 1.75rem)); } }

.marquee.on-noir { background: var(--noir); border-color: var(--line-noir); }
.marquee.on-noir .marquee-track span { color: var(--stone); }

/* ---------- work rows with hover preview ---------- */

.work-row { position: relative; overflow: visible; }

.row-thumb {
  position: absolute;
  z-index: 6;
  right: 6%;
  top: 50%;
  width: min(300px, 30vw);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(0.92) rotate(-2deg);
  transition: opacity 0.32s ease, transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 30px 60px -18px rgba(14, 14, 18, 0.45);
}

@media (hover: hover) and (pointer: fine) {
  .work-row:hover .row-thumb { opacity: 1; transform: translateY(-50%) scale(1) rotate(0deg); }
}

@media (hover: none), (pointer: coarse) {
  .row-thumb { display: none; }
}

.work-row:hover .title { font-style: italic; }

/* ---------- technologist band ---------- */

.tech-band { background: var(--noir); color: var(--bone); }

.tech-band .eyebrow { color: var(--stone); }
.tech-band .eyebrow .n { color: var(--rose); }
.tech-band h2 { color: var(--bone); }
.tech-band .lede { color: var(--bone-dim); }

.tech-rows { margin-top: 3.5rem; border-top: 1px solid var(--line-noir); }

.tech-row {
  display: grid;
  grid-template-columns: 4rem 1fr 2fr;
  gap: 2rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-noir);
}

.tech-row .n {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rose);
  font-size: 1.1rem;
}

.tech-row h3 { color: var(--bone); margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.tech-row p { color: var(--stone); font-size: 0.98rem; margin: 0; }

/* ---------- footer CTA ---------- */

.footer-cta {
  background: var(--noir);
  color: var(--bone);
  text-align: center;
  padding: calc(var(--section) * 1.15) 0;
  overflow: hidden;
}

.footer-cta .eyebrow { color: var(--stone); }
.footer-cta .eyebrow .n { color: var(--rose); }

.footer-cta h2 {
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 340;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--bone);
  margin-bottom: 2.75rem;
}

.footer-cta h2 em { color: var(--rose); }

.btn-ghost-light {
  border-color: rgba(236, 232, 221, 0.4);
  color: var(--bone);
}

.btn-ghost-light:hover { background: var(--bone); border-color: var(--bone); color: var(--noir); }

.site-footer.on-noir {
  background: var(--noir);
  border-top: 1px solid var(--line-noir);
  color: var(--stone);
}

.site-footer.on-noir a { color: var(--stone); }
.site-footer.on-noir a:hover { color: var(--bone); }

/* ---------- unified case template ---------- */

.case-hero-noir {
  position: relative;
  overflow: hidden;
  background: var(--noir);
  color: var(--bone);
  padding-top: calc(72px + clamp(3.5rem, 7vh, 6rem));
  padding-bottom: clamp(3.5rem, 7vh, 6rem);
}

.case-hero-noir .ambient { position: absolute; inset: -15%; z-index: 0; pointer-events: none; }
.case-hero-noir .ambient i {
  position: absolute; width: 55vmax; height: 55vmax;
  border-radius: 50%; filter: blur(90px);
}
.case-hero-noir .blob-a {
  background: radial-gradient(circle, rgba(53, 70, 90, 0.55), transparent 70%);
  top: -20%; right: -10%;
  animation: drift-a 28s ease-in-out infinite alternate;
}
.case-hero-noir .blob-b {
  background: radial-gradient(circle, rgba(167, 89, 108, 0.22), transparent 70%);
  bottom: -25%; left: -8%;
  animation: drift-b 36s ease-in-out infinite alternate;
}

.case-hero-noir .wrap { position: relative; z-index: 2; }

.case-hero-noir .eyebrow { color: var(--stone); }
.case-hero-noir .eyebrow .n { color: var(--rose); }

.case-hero-noir h1 {
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  font-weight: 340;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--bone);
  max-width: 16ch;
}

.case-hero-noir .lede { color: var(--bone-dim); }

.case-hero-noir .case-facts { border-color: var(--line-noir); }
.case-hero-noir .case-facts dt { color: var(--stone); }
.case-hero-noir .case-facts dd { color: var(--bone); }

.case-hero-noir .tag {
  color: var(--bone-dim);
  border-color: rgba(236, 232, 221, 0.28);
}

.feature-media { margin: clamp(3rem, 6vw, 5rem) 0 0; }

.feature-media .video-embed,
.feature-media .figure { margin: 0; }

.pull {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 28ch;
  margin: 0;
}

.pull em { color: var(--rose-ink); }

.tech-band .pull em { color: var(--rose); }

/* gallery motion */
.gallery figure { overflow: hidden; border-radius: var(--radius); }
.gallery img { transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); }
.gallery figure:hover img { transform: scale(1.025); }

/* ---------- count-up stats ---------- */

.stat .num { font-variant-numeric: tabular-nums; }

/* ---------- magnetic buttons ---------- */

.btn { will-change: transform; }

/* ---------- about polish ---------- */

.portrait-frame {
  background: var(--noir);
  padding: clamp(0.6rem, 1.5vw, 1rem);
  border-radius: var(--radius);
}

.portrait-frame .portrait { position: static; margin: 0; }

.portrait-frame figcaption {
  color: var(--stone);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 0.25rem 0.25rem;
}

/* ---------- focus ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- responsive additions ---------- */

@media (max-width: 900px) {
  .tech-row { grid-template-columns: 2.5rem 1fr; }
  .tech-row p { grid-column: 2; }
  .hero-noir { min-height: 92svh; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-noir .ambient i,
  .case-hero-noir .ambient i,
  .marquee-track,
  .hero-noir .scroll-cue::after { animation: none; }
  .hero-noir .line > span { transform: none; transition: none; }
  .gallery img, .row-thumb, .btn { transition: none; }
}
