/* ============================================================
   GHOST DIGITAL — cinematic one-pager
   Palette: pure black + brand blue. Gold highlight appears
   exactly 3 times in content (manifesto slam, people headline,
   footer headline) + the gold cursor.
   ============================================================ */

:root {
  --black: #050505;
  --panel: #0a0a0a;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-dim: #20446d;
  --gold: #efc221;
  --text: #e5e5e5;
  --muted: #888888;
  --white: #fafafa;

  --font-head: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slam: cubic-bezier(0.83, 0, 0.17, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (pointer: fine) {
  body { cursor: none; }
  body a, body button { cursor: none; }
}

::selection { background: var(--blue); color: var(--black); }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.02;
}

a { color: inherit; text-decoration: none; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__icon {
  width: clamp(48px, 7vw, 84px);
  animation: pulse 1.6s ease-in-out infinite;
}
.preloader__count {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  color: var(--muted);
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 150;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
  display: none;
}
@media (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: translate(-100px, -100px);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(239, 194, 33, 0.55);
  transform: translate(-100px, -100px);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s, background 0.25s;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: rgba(239, 194, 33, 0.9);
  background: rgba(239, 194, 33, 0.08);
}

/* ---------- Progress line ---------- */
.progress-line {
  position: fixed; top: 0; left: 0; z-index: 140;
  height: 2px; width: 100%;
  background: var(--blue);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 130;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -8%); }
  30% { transform: translate(3%, -12%); }
  50% { transform: translate(9%, 4%); }
  70% { transform: translate(-7%, 8%); }
  90% { transform: translate(5%, 12%); }
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease-out);
}
.site-nav.scrolled {
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-nav.hidden { transform: translateY(-110%); }
.site-nav__brand { display: flex; align-items: center; }
.site-nav__brand img { height: 34px; width: auto; }
.site-nav__links {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem);
  font-family: var(--font-head);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.site-nav__links a { position: relative; padding: 0.3rem 0; color: var(--text); }
.site-nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease-out);
}
.site-nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.site-nav__cta {
  border: 1px solid var(--blue);
  padding: 0.55rem 1.1rem !important;
  color: var(--blue-bright) !important;
  transition: background 0.3s, color 0.3s;
}
.site-nav__cta:hover { background: var(--blue); color: var(--black) !important; }
.site-nav__cta::after { display: none; }

@media (max-width: 640px) {
  .site-nav__links a:not(.site-nav__cta) { display: none; }
}

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.4rem;
}
.section-head { padding: 0 var(--pad); margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-head h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
.section-head .lede {
  margin-top: 1.4rem;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}

/* ---------- Reveal (JS-gated: content stays visible for crawlers / no-JS) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js [data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn--solid { background: var(--blue); color: var(--black); }
.btn--solid:hover { background: var(--blue-bright); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(250,250,250,0.25); color: var(--text); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-bright); }
.btn--full { width: 100%; padding: 1.05rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero-track { height: 420vh; position: relative; }
.hero-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.hero-video.missing { display: none; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(5,5,5,0.55) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.5) 0%, transparent 25%, transparent 70%, var(--black) 100%);
}
.hero-sticky.no-video {
  background:
    radial-gradient(ellipse 90% 70% at 50% 40%, rgba(32,68,109,0.5), transparent 70%),
    var(--black);
}
.hero-content {
  position: relative; z-index: 2;
  width: 80vw;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: clamp(0.6rem, 1.1vw, 0.75rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: clamp(1rem, 2.5vw, 1.8rem);
  text-indent: 0.42em;
}
.hero-lockup {
  width: 100%;
  filter: drop-shadow(0 8px 60px rgba(0, 0, 0, 0.8));
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center;
  margin-top: clamp(1.6rem, 3.5vw, 2.6rem);
}
.hero-typeline {
  margin-top: clamp(1.4rem, 3.5vw, 3rem);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 2rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* optically center against tracking */
  text-transform: uppercase;
  color: var(--blue-bright);
  min-height: 1.6em;
  white-space: nowrap;
}
.hero-caret {
  display: inline-block;
  width: 0.55em; height: 1.05em;
  margin-left: 0.18em;
  vertical-align: text-bottom;
  background: var(--blue);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.hero-cue {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-family: var(--font-head);
  font-size: 0.65rem; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.5s;
}
.hero-cue i {
  width: 1px; height: 52px;
  background: linear-gradient(var(--blue), transparent);
  animation: cue 2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-cue.gone { opacity: 0; }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto-track { height: 500vh; position: relative; background: var(--black); }
.manifesto-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.manifesto-line {
  padding: 0 var(--pad);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
}
/* no-JS fallback: lines stack, statically visible */
html:not(.js) .manifesto-sticky {
  flex-direction: column;
  gap: 2rem;
  height: auto;
  min-height: 100vh;
  padding: 15vh 0;
}
html:not(.js) .manifesto-track { height: auto; }
html.js .manifesto-line {
  position: absolute;
  opacity: 0;
  transform: scale(1.7);
  filter: blur(14px);
  transition: opacity 0.45s var(--ease-slam),
              transform 0.45s var(--ease-slam),
              filter 0.45s var(--ease-slam);
  will-change: transform, opacity, filter;
}
html.js .manifesto-line.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
html.js .manifesto-line.passed {
  opacity: 0;
  transform: scale(0.82);
  filter: blur(10px);
}
/* Gold use 1 of 3 */
.manifesto-line--gold.active,
html:not(.js) .manifesto-line--gold { color: var(--gold); }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
  background: var(--black);
  text-align: center;
}
.stats__lead {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--text);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
}
.stats__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1000px; margin: 0 auto;
}
@media (max-width: 680px) { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }
.stats__grid strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  color: var(--blue-bright);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stats__grid span { font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(59, 130, 246, 0.25);
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
  padding: 1.1rem 0;
  background: var(--black);
}
.ticker__inner {
  display: flex; width: max-content;
  animation: ticker 26s linear infinite;
  font-family: var(--font-head);
  font-size: 0.85rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   WORK
   ============================================================ */
.work { padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 9vw, 8rem); background: var(--black); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem) clamp(1.25rem, 3vw, 3rem);
  padding: 0 var(--pad);
}
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

.case:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
@media (max-width: 760px) { .case:nth-child(even) { margin-top: 0; } }

.case__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 80% at 30% 20%, rgba(32, 68, 109, 0.45), transparent 65%),
    var(--panel);
  outline: 1px solid rgba(59, 130, 246, 0.18);
  outline-offset: -1px;
}
.case__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.6s var(--ease-out), transform 1.2s var(--ease-out);
}
.case__video.missing { display: none; }
/* four distinct crops of clip 2 */
.case__video--1 { object-position: 0% 50%; }
.case__video--2 { object-position: 33% 50%; }
.case__video--3 { object-position: 66% 50%; }
.case__video--4 { object-position: 100% 50%; }
.case__media:hover .case__video,
.case__media:focus-visible .case__video {
  opacity: 1;
  transform: scale(1.02);
}
.case__num {
  position: absolute; top: 1.1rem; left: 1.2rem; z-index: 2;
  font-family: var(--font-head);
  font-size: 0.75rem; letter-spacing: 0.3em;
  color: var(--blue-bright);
  transition: color 0.4s;
}
.case__info { padding: 1.3rem 0.2rem 0; }
.case__info h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin-bottom: 0.45rem; }
.case__tags {
  font-family: var(--font-head);
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.case__desc {
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 0.7rem;
}
.case__stat {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: clamp(5rem, 12vw, 10rem) 0;
  background: var(--panel);
  border-top: 1px solid rgba(59, 130, 246, 0.12);
}
.svc-group {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(2.2rem, 5vw, 4rem) var(--pad);
  border-top: 1px solid rgba(250, 250, 250, 0.08);
}
.svc-group:last-child { border-bottom: 1px solid rgba(250, 250, 250, 0.08); }
@media (max-width: 760px) { .svc-group { grid-template-columns: 1fr; } }
.svc-group__plain {
  font-family: var(--font-head);
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.svc-group__key h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}
.svc-group__key p { color: var(--muted); max-width: 26ch; }
.svc-group__list { list-style: none; }
.svc-group__list li {
  display: flex; gap: clamp(1rem, 2.5vw, 2.2rem);
  padding: 1.4rem 0;
  border-top: 1px dashed rgba(250, 250, 250, 0.1);
  transition: transform 0.4s var(--ease-out);
}
.svc-group__list li:first-child { border-top: none; padding-top: 0.2rem; }
.svc-group__list li:hover { transform: translateX(10px); }
.svc__num {
  font-family: var(--font-head);
  font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--blue-bright);
  padding-top: 0.45rem;
}
.svc-group__list h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 0.4rem; }
.svc-group__list p { color: var(--muted); max-width: 54ch; }

/* ============================================================
   PEOPLE
   ============================================================ */
.people {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: clamp(6rem, 12vw, 10rem) var(--pad);
}
.people__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.people__video.missing { display: none; }
.people__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.55) 55%, rgba(5,5,5,0.25) 100%),
    linear-gradient(180deg, var(--black) 0%, transparent 18%, transparent 82%, var(--black) 100%);
}
.people.no-video {
  background:
    radial-gradient(ellipse 70% 90% at 80% 50%, rgba(32,68,109,0.5), transparent 70%),
    var(--black);
}
.people__content { position: relative; z-index: 2; max-width: 640px; }
.people__content h2 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); margin-bottom: 1.6rem; }
/* Gold use 2 of 3 */
.people__content h2 em { font-style: normal; color: var(--gold); }
.people__copy { font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: var(--text); margin-bottom: 2.6rem; max-width: 52ch; }
.people__stats {
  list-style: none;
  display: flex;
  gap: clamp(1.2rem, 3vw, 3rem);
}
.people__stats li { flex: 1 1 0; min-width: 0; }
@media (max-width: 560px) { .people__stats { flex-direction: column; } }
.people__stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--blue-bright);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.people__stats span {
  font-size: 0.8rem; color: var(--muted);
  letter-spacing: 0.06em;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: clamp(5rem, 12vw, 10rem) 0;
  background: var(--black);
  border-top: 1px solid rgba(59, 130, 246, 0.12);
}
.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0 var(--pad);
}
@media (max-width: 860px) { .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; } }
@media (max-width: 460px) { .process-steps { grid-template-columns: 1fr; } }
.step { padding-top: 1.4rem; border-top: 1px solid rgba(59, 130, 246, 0.3); }
.step__num {
  font-family: var(--font-head);
  font-size: 0.75rem; letter-spacing: 0.25em;
  color: var(--blue-bright);
  display: block; margin-bottom: 1.4rem;
}
.step h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: 0.6rem; }
.step p { color: var(--muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: clamp(5rem, 12vw, 10rem) 0;
  background: var(--panel);
  border-top: 1px solid rgba(59, 130, 246, 0.12);
}
.faq-list { padding: 0 var(--pad); max-width: 900px; }
.faq-item {
  border-top: 1px solid rgba(250, 250, 250, 0.1);
}
.faq-item:last-child { border-bottom: 1px solid rgba(250, 250, 250, 0.1); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-bright); }
.faq-item summary i {
  position: relative; flex: 0 0 auto;
  width: 16px; height: 16px;
}
.faq-item summary i::before, .faq-item summary i::after {
  content: ""; position: absolute; background: var(--blue);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.faq-item summary i::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-item summary i::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item[open] summary i::after { transform: scaleY(0); opacity: 0; }
.faq-item[open] summary { color: var(--blue-bright); }
.faq-item__body {
  padding: 0 0 1.6rem;
  max-width: 68ch;
}
.faq-item__body p { color: var(--muted); font-size: clamp(0.95rem, 1.3vw, 1.05rem); }
.faq-item__body em { font-style: normal; color: var(--text); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(5rem, 12vw, 9rem) var(--pad) clamp(4rem, 8vw, 6rem);
  background: var(--black);
  border-top: 1px solid rgba(59, 130, 246, 0.12);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__headline {
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  text-transform: uppercase;
  letter-spacing: -0.035em;
  margin: 0.4rem 0 1.6rem;
  max-width: 11ch;
}
/* Gold use 3 of 3 */
.contact__headline em { font-style: italic; color: var(--gold); }
.contact__copy { color: var(--text); max-width: 44ch; margin-bottom: 2.2rem; }
.contact__meta { list-style: none; display: grid; gap: 1rem; }
.contact__meta li {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(250, 250, 250, 0.08);
}
.contact__meta span {
  font-family: var(--font-head);
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}
.contact__meta strong { font-weight: 500; color: var(--text); }
.contact__meta a { color: var(--blue-bright); }
.contact__meta a:hover { color: var(--white); }

/* Form */
.contact__form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: 0.5rem; }
.field label, .field legend {
  font-family: var(--font-head);
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(250, 250, 250, 0.2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 3.2em; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--blue);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(136,136,136,0.6); }
.field--choice { border: none; }
.field--choice legend { margin-bottom: 0.8rem; }
.choice {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.55rem 0;
  cursor: pointer;
  color: var(--text);
  border-top: 1px dashed rgba(250,250,250,0.08);
  font-size: 0.95rem;
}
.choice:first-of-type { border-top: none; }
.choice em { font-style: normal; color: var(--muted); }
.choice input {
  appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px; flex: 0 0 auto;
  border: 1px solid var(--muted); border-radius: 50%;
  position: relative; top: 3px;
  transition: border-color 0.2s;
}
.choice input:checked { border-color: var(--blue); }
.choice input:checked::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--blue); border-radius: 50%;
}
.choice:hover input { border-color: var(--blue-bright); }
.form-status { font-size: 0.85rem; color: var(--blue-bright); min-height: 1.2em; margin: 0; }
.form-status.err { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 2.5rem;
  background: var(--panel);
  border-top: 1px solid rgba(59, 130, 246, 0.12);
}
.footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(250, 250, 250, 0.08);
}
.footer__brand img { height: 30px; width: auto; }
.footer__nav, .footer__social { display: flex; flex-wrap: wrap; gap: clamp(1rem, 2.5vw, 2rem); }
.footer__nav a, .footer__social a {
  font-family: var(--font-head);
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.footer__nav a:hover, .footer__social a:hover { color: var(--blue-bright); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 1.6rem;
}
.footer__legal, .footer__tag { font-size: 0.72rem; color: var(--muted); opacity: 0.75; }
.footer__ghost {
  position: absolute;
  right: -3%; bottom: -30%;
  width: clamp(180px, 22vw, 320px);
  opacity: 0.05;
  pointer-events: none;
}

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
.res-hero {
  padding: clamp(8rem, 18vw, 12rem) var(--pad) clamp(3rem, 7vw, 5rem);
  max-width: 1100px;
}
.res-hero__title {
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  text-transform: uppercase;
  letter-spacing: -0.035em;
  margin: 1rem 0 1.8rem;
}
.res-hero__title em { font-style: normal; color: var(--blue); }
.res-hero__sub { color: var(--muted); max-width: 56ch; font-size: clamp(1rem, 1.5vw, 1.2rem); }

.res-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: 0 var(--pad) clamp(4rem, 9vw, 7rem);
}
@media (max-width: 760px) { .res-list { grid-template-columns: 1fr; } }
.res-card {
  border: 1px solid rgba(59, 130, 246, 0.16);
  background:
    radial-gradient(ellipse 90% 70% at 20% 0%, rgba(32, 68, 109, 0.28), transparent 60%),
    var(--panel);
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.res-card:hover { border-color: rgba(59, 130, 246, 0.55); transform: translateY(-4px); }
.res-card__link { display: block; padding: clamp(1.6rem, 3vw, 2.4rem); height: 100%; }
.res-card__cat {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.65rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.2rem;
}
.res-card h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}
.res-card p { color: var(--muted); margin-bottom: 1.4rem; }
.res-card__meta {
  font-family: var(--font-head);
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.res-card--featured { grid-column: 1 / -1; }
.res-card--featured h2 { font-size: clamp(1.5rem, 3.2vw, 2.6rem); max-width: 22ch; }
.res-card--featured p { max-width: 60ch; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.res-card--featured .res-card__meta { color: var(--blue-bright); }

/* Upcoming (not yet published — deliberately not links) */
.res-upcoming { padding: 0 var(--pad) clamp(4rem, 9vw, 7rem); }
.res-upcoming__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.5rem;
}
@media (max-width: 760px) { .res-upcoming__list { grid-template-columns: 1fr; } }
.res-upcoming__list li {
  padding: 1.4rem 0;
  border-top: 1px dashed rgba(250, 250, 250, 0.12);
  opacity: 0.55;
}
.res-upcoming__list h3 {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.25;
  max-width: 40ch;
}
.res-upcoming__list .res-card__cat { margin-bottom: 0.6rem; }

.res-cta {
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
  border-top: 1px solid rgba(59, 130, 246, 0.12);
}
.res-cta h2 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 2.2rem;
}
.res-cta h2 em { font-style: normal; color: var(--blue); }

/* ============================================================
   CASE / SYSTEM PAGES
   ============================================================ */
.case-back { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.case-back a {
  font-family: var(--font-head);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.case-back a:hover { color: var(--blue-bright); }

/* Header banner: generated art, brand-treated, veiled for legibility.
   Veil = dark on the left (where the copy sits) + fade to black at the bottom. */
.case-hero {
  position: relative;
  padding: clamp(7rem, 15vw, 10rem) var(--pad) clamp(4rem, 9vw, 7rem);
  min-height: clamp(420px, 62vh, 640px);
  display: flex; flex-direction: column; justify-content: flex-end;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  background-color: var(--black);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  isolation: isolate;
}
.case-hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    /* copy scrim: darkens the bottom-left block the text sits in, leaves the art alone */
    radial-gradient(ellipse 85% 75% at 0% 100%, rgba(5,5,5,0.88) 0%, rgba(5,5,5,0.55) 45%, transparent 75%),
    linear-gradient(90deg, rgba(5,5,5,0.97) 0%, rgba(5,5,5,0.88) 32%, rgba(5,5,5,0.55) 62%, rgba(5,5,5,0.35) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.25) 28%, rgba(5,5,5,0.30) 62%, var(--black) 100%);
}
/* On narrow screens the copy sits over the whole frame — veil evenly instead */
@media (max-width: 760px) {
  .case-hero { background-position: center; }
  .case-hero::before {
    background:
      linear-gradient(180deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.72) 35%, rgba(5,5,5,0.82) 70%, var(--black) 100%);
  }
}
.case-hero--intake    { background-image: url("/assets/img/case-intake.jpg"); }
.case-hero--leads     { background-image: url("/assets/img/case-leads.jpg"); }
.case-hero--reporting { background-image: url("/assets/img/case-reporting.jpg"); }

/* Reporting's artwork lives up and to the right — lift the top veil so the
   ascending line survives, and lean on the horizontal veil for legibility. */
@media (min-width: 761px) {
  .case-hero--reporting::before {
    background:
      radial-gradient(ellipse 85% 75% at 0% 100%, rgba(5,5,5,0.90) 0%, rgba(5,5,5,0.60) 45%, transparent 75%),
      linear-gradient(90deg, rgba(5,5,5,0.98) 0%, rgba(5,5,5,0.965) 48%, rgba(5,5,5,0.74) 67%, rgba(5,5,5,0.28) 100%),
      linear-gradient(180deg, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.10) 30%, rgba(5,5,5,0.28) 62%, var(--black) 100%);
  }
}
.case-hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin: 1rem 0 2rem;
}
.case-hero__stat { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.case-hero__stat strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--blue-bright);
  line-height: 1;
}
.case-hero__stat span {
  font-family: var(--font-head);
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}

.case-block {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2.2fr;
  gap: clamp(1.2rem, 4vw, 4rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  border-bottom: 1px solid rgba(250, 250, 250, 0.08);
}
@media (max-width: 760px) { .case-block { grid-template-columns: 1fr; } }
.case-block h2 {
  font-family: var(--font-head);
  font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue-bright);
  font-weight: 500;
}
.case-block p {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--text);
  max-width: 62ch;
}

.case-steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.case-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 1.3rem 0;
  border-top: 1px dashed rgba(250, 250, 250, 0.12);
  color: var(--muted);
  max-width: 70ch;
}
.case-steps li:first-child { border-top: none; padding-top: 0; }
.case-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--blue);
  padding-top: 0.25rem;
}

.case-results { list-style: none; display: grid; gap: 0.9rem; }
.case-results li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem;
  color: var(--text);
  max-width: 62ch;
}
.case-results li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
}

.case-cta {
  text-align: center;
  padding: clamp(4.5rem, 11vw, 8rem) var(--pad);
}
.case-cta h2 {
  font-size: clamp(2rem, 6vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.case-cta p { color: var(--muted); margin-bottom: 2.2rem; }

/* Homepage "systems" strip */
.systems {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--black);
  border-top: 1px solid rgba(59, 130, 246, 0.12);
}
.systems-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 0 var(--pad);
}
@media (max-width: 760px) { .systems-grid { grid-template-columns: 1fr; } }
.system-card {
  display: block;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: var(--panel);
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.system-card:hover { border-color: rgba(59, 130, 246, 0.55); transform: translateY(-4px); }
.system-card__stat {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue-bright);
  line-height: 1;
  margin-bottom: 1rem;
}
.system-card h3 { font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.2; margin-bottom: 0.6rem; }
.system-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.system-card__go {
  font-family: var(--font-head);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-bright);
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero-cue i, .preloader__icon { animation: none; }
  .ticker__inner { animation-duration: 90s; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .manifesto-line { transition-duration: 0.01s; }
}
