/* ============================================================
   LOGOS AGENCY — style.css
   Palette, spacing, and motion tokens per brand spec.
   ============================================================ */

:root {
  --black: #000;
  --white: #fff;
  --grey-1: #8A8A8A;
  --grey-2: #3A3A3A;
  --grey-3: #141414;
  --iris: linear-gradient(100deg, #8FD8FF, #C6A9FF, #FFB3D9, #FFD9A0, #A9FFE0);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.4s;
  --dur-med: 0.8s;
  --dur-slow: 1.2s;

  /* modular space scale, ~1.6 ratio */
  --s-1: 8px;  --s-2: 16px;  --s-3: 24px;  --s-4: 40px;
  --s-5: 64px; --s-6: 104px; --s-7: 168px; --s-8: 272px;

  --maxw: 1440px;
  --gutter: clamp(20px, 5vw, 80px);
}

/* ---------- Reset / base ---------- */

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

body {
  background: var(--black);
  color: var(--white);
  font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul, ol { list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 10001;
  background: var(--white); color: var(--black);
  padding: 10px 18px; font-size: 0.875rem;
  transform: translateY(-300%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

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

h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; }

.hero-headline { font-size: clamp(3.5rem, 11vw, 12rem); line-height: 0.9; }
.section-heading { font-size: clamp(2.5rem, 7vw, 7rem); line-height: 0.92; margin-bottom: var(--s-5); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.05; }

p { max-width: 62ch; }

.overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--grey-1);
  margin-bottom: var(--s-3);
}

.iris-text {
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons & links ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 36px;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: letter-spacing var(--dur-fast) var(--ease-out);
}

/* gradient border via pseudo-element + mask; grey by default, iridescent on hover */
.btn::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  background: var(--grey-2);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  background: var(--iris);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.btn:hover, .btn:focus-visible { letter-spacing: 0.06em; }
.btn:hover::after, .btn:focus-visible::after { opacity: 1; }

.btn-large { padding: 18px 52px; font-size: 1rem; }

.text-link {
  position: relative;
  display: inline-block;
  min-height: 24px;
}
.text-link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.text-link:hover::after, .text-link:focus-visible::after { transform: scaleX(1); }

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

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--gutter);
  background: transparent;
  transition: background var(--dur-fast) linear;
}
.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s linear;
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header > * { position: relative; }

.wordmark, .footer-wordmark {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.wordmark-dot { color: var(--grey-1); }

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.header-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 12px 0;
}
.header-link::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--iris);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.header-link:hover::after, .header-link:focus-visible::after { transform: scaleX(1); }
.header-link.is-active::after { transform: scaleX(1); } /* iridescent active underline */

.nav-short { display: none; }
@media (max-width: 768px) {
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .header-nav { gap: var(--s-3); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; background: var(--black); }
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--black); /* pure black behind poster load — never a white flash */
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 32%, rgba(0,0,0,0.05) 65%);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s-7);
}

.hl-line { display: block; overflow: hidden; }
.hl-line-inner { display: block; }

.hero-sub {
  color: var(--grey-1);
  max-width: 42ch;
  margin: var(--s-4) 0 var(--s-4);
}

.scroll-indicator {
  position: absolute;
  left: var(--gutter);
  bottom: var(--s-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
}
.scroll-indicator-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--grey-1);
  writing-mode: vertical-rl;
}
.scroll-indicator-line {
  width: 1px; height: 56px;
  background: var(--grey-2);
  position: relative;
  overflow: hidden;
}
.scroll-indicator-line::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  background: var(--white);
  animation: scroll-draw 2.4s var(--ease-inout) infinite;
}
@keyframes scroll-draw {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Stats strip ---------- */

.stats { border-top: 1px solid var(--grey-2); border-bottom: 1px solid var(--grey-2); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
}

.stat-cell {
  padding: var(--s-5) var(--s-4);
  border-left: 1px solid var(--grey-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.stat-cell:first-child { border-left: none; }

.stat-value {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-value-text { font-size: clamp(1.6rem, 3vw, 2.8rem); }
.stat-value .char { display: inline-block; }

.stat-label { color: var(--grey-1); font-size: 0.875rem; }

/* ---------- Mission ---------- */

.mission { position: relative; }

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* the media column is pinned by ScrollTrigger on desktop */
.mission-media {
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100dvh;
}
.mission-video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--black); }

.mission-copy {
  padding: var(--s-8) 0 var(--s-8) var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Desktop: the copy column sets the pin duration — make it tall enough
   that the scene-form video scrubs across a real stretch of scroll. */
@media (min-width: 1025px) {
  .mission-copy { min-height: 240vh; }
}

.mission-statement {
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: var(--s-4);
}
.ms-line { display: block; }
.mission-statement .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.mission-statement .word > span { display: inline-block; }

.mission-body { color: var(--grey-1); max-width: 52ch; }

/* ---------- Pillars ---------- */

.pillars {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-7) var(--gutter);
}
.pillars-overline { margin-bottom: var(--s-5); }

.pillar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5) var(--s-3);
  border-top: 1px solid var(--grey-2);
  transition: background var(--dur-fast) var(--ease-out);
}
.pillar:last-child { border-bottom: 1px solid var(--grey-2); }
.pillar:hover, .pillar:focus-visible { background: var(--grey-3); }

.pillar-num {
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--white);
  transition: color var(--dur-fast) var(--ease-out);
}
.pillar:hover .pillar-num, .pillar:focus-visible .pillar-num {
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pillar-title { margin-bottom: var(--s-2); }
.pillar-text { color: var(--grey-1); max-width: 52ch; }

/* ---------- Approach ---------- */

.approach {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-7) var(--gutter);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  counter-reset: step;
  margin-top: var(--s-2);
}

.approach-step { position: relative; padding-top: var(--s-4); }

.step-connector {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  overflow: visible;
}
.step-connector line {
  stroke: var(--grey-2);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.step-index {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--grey-1);
  margin-bottom: var(--s-3);
}

.step-title { font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: var(--s-2); }
.step-text { color: var(--grey-1); font-size: 0.9375rem; }

/* ---------- Deliverables ---------- */

.deliverables {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-7) var(--gutter);
}

.deliverables-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--s-5);
}

.deliverable {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--grey-2);
  color: var(--white);
}
.deliverable-mark {
  flex: none;
  width: 14px; height: 1px;
  background: var(--grey-1);
  transform: translateY(-4px);
}

.deliverables-note {
  margin-top: var(--s-5);
  color: var(--grey-1);
}
.deliverables-note .text-link { color: var(--white); }

/* ---------- Featured work ---------- */

.work { position: relative; }

.work-pin {
  padding: var(--s-6) 0 var(--s-6);
  overflow: hidden;
}

.work-head {
  max-width: var(--maxw);
  margin: 0 auto var(--s-5);
  padding: 0 var(--gutter);
}
.work-head .section-heading { margin-bottom: var(--s-3); }
.work-sub { color: var(--grey-1); }

/*
  HORIZONTAL TRACK — the pin/scrub in script.js translates .work-track.
  To add real case studies later: edit the CONTENTS of .work-card elements
  only. Card count can change freely — the scroll distance is computed
  from track width at runtime.
*/
.work-viewport { width: 100%; }

.work-track {
  display: flex;
  gap: var(--s-4);
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}

.work-card {
  width: min(520px, 78vw);
  flex: none;
  background: var(--grey-3);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 480px;
}

.work-card-tag {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--grey-1);
}
.work-card-caption { color: var(--grey-1); font-size: 0.875rem; margin-top: auto; }

/* card 1 — type specimen */
.specimen { display: flex; align-items: center; gap: var(--s-4); flex: 1; }
.specimen-glyph {
  font-size: clamp(6rem, 10vw, 10rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.specimen-scale {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  border-left: 1px solid var(--grey-2);
  padding-left: var(--s-3);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* card 2 — grid study */
.grid-study {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-2);
  min-height: 260px;
}
.gs-col { border-left: 1px solid var(--grey-2); height: 100%; }
.gs-block { position: absolute; background: var(--grey-2); opacity: 0.6; }
.gs-block-a { left: 0;   top: 8%;  width: 48%; height: 26%; }
.gs-block-b { left: 52%; top: 22%; width: 48%; height: 12%; }
.gs-block-c { left: 17%; top: 58%; width: 66%; height: 22%; background: var(--iris); opacity: 0.25; }

/* card 3 — device frame */
.device-frame {
  position: relative;
  width: 150px;
  margin: 0 auto;
  flex: 1;
  min-height: 300px;
  border: 1px solid var(--grey-2);
  border-radius: 22px;
  padding: 28px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.df-notch {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 5px;
  border-radius: 3px;
  background: var(--grey-2);
}
.df-bar { height: 8px; background: var(--grey-2); border-radius: 2px; }
.df-bar-hero { height: 54px; background: linear-gradient(120deg, #16161a, #202027); }
.df-bar-w60 { width: 60%; }
.df-bar-w80 { width: 80%; }
.df-bar-w40 { width: 40%; }
.df-split { display: flex; gap: 8px; }
.df-split span { flex: 1; height: 34px; background: var(--grey-2); opacity: 0.55; border-radius: 2px; }
.df-btn {
  margin-top: auto;
  height: 22px; width: 70%;
  border: 1px solid var(--grey-1);
  border-radius: 2px;
  align-self: center;
}

/* card 4 — invitation */
.work-card-next { justify-content: center; align-items: flex-start; gap: var(--s-5); }
.work-card-next-line {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.cta-media { position: absolute; inset: 0; background: var(--black); }
.cta-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  background: var(--black);
}
.cta-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 25%, rgba(0,0,0,0.85) 78%, #000 100%);
}

.cta-content {
  position: relative;
  padding: var(--s-7) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-headline {
  font-size: clamp(3rem, 9.5vw, 11rem);
  line-height: 0.92;
  max-width: 10ch;
  margin-bottom: var(--s-4);
}
.cta-headline .char { display: inline-block; }

.cta-sub { color: var(--grey-1); margin-bottom: var(--s-5); }
.cta-alt { color: var(--grey-1); font-size: 0.875rem; margin-top: var(--s-4); }
.cta-alt .text-link { color: var(--white); }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--grey-2);
  padding: var(--s-6) var(--gutter) var(--s-4);
  overflow: hidden;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
  max-width: var(--maxw);
  margin: 0 auto var(--s-6);
  position: relative;
  z-index: 1;
}
.footer-tagline { color: var(--grey-1); font-size: 0.9375rem; margin-top: var(--s-2); max-width: 34ch; }
.footer-links { display: flex; gap: var(--s-4); font-size: 0.9375rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  max-width: var(--maxw);
  margin: 0 auto;
  color: var(--grey-1);
  font-size: 0.8125rem;
  position: relative;
  z-index: 1;
}

/* giant clipped wordmark flourish */
.footer-giant {
  position: absolute;
  left: 50%;
  bottom: -0.34em;
  transform: translateX(-50%);
  font-size: clamp(8rem, 24vw, 24rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--grey-3);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */

.page-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--s-7) + 72px) var(--gutter) var(--s-6);
}

.page-headline {
  font-size: clamp(2.8rem, 8vw, 8.5rem);
  line-height: 0.92;
}

.page-hero .hero-sub { margin: var(--s-4) 0 var(--s-4); }

.info-note {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  border: 1px solid var(--grey-2);
  padding: 10px 18px;
  font-size: 0.8125rem;
  color: var(--grey-1);
}
.info-note::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--iris);
  flex: none;
}

/* Build fee — spec-sheet row */
.build-fee {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-6) var(--gutter);
  border-top: 1px solid var(--grey-2);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-5);
}
.build-fee-label .overline { margin-bottom: var(--s-2); }
.build-fee-quote {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.build-fee-copy > h2 { margin-bottom: var(--s-3); }
.build-fee-copy p { color: var(--grey-1); max-width: 52ch; }
.build-fee-copy .text-link { color: var(--white); }

/* Plans */
.plans {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-6) var(--gutter) var(--s-7);
  border-top: 1px solid var(--grey-2);
}
.plans > .section-heading { max-width: 16ch; }

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.plan-card {
  position: relative;
  background: var(--grey-3);
  border: 1px solid var(--grey-2);
  padding: var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.plan-tag {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--grey-1);
  font-weight: 400;
}

.plan-price-row { display: flex; align-items: baseline; gap: var(--s-2); }
.plan-price {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-period { color: var(--grey-1); font-size: 0.9375rem; }

.plan-rule { height: 1px; background: var(--grey-2); border: none; }

.plan-copy { color: var(--grey-1); font-size: 0.9375rem; }

/* Pricing bottom CTA */
.pricing-cta {
  border-top: 1px solid var(--grey-2);
  padding: var(--s-7) var(--gutter);
  text-align: center;
}
.pricing-cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pricing-cta .section-heading { margin-bottom: var(--s-3); }
.pricing-cta-sub { color: var(--grey-1); margin-bottom: var(--s-5); }

@media (max-width: 1024px) {
  .build-fee { grid-template-columns: 1fr; gap: var(--s-4); }
}
@media (max-width: 768px) {
  .plans-grid { grid-template-columns: 1fr; }
}

/* ---------- Film grain ---------- */

.grain {
  position: fixed;
  inset: -100px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  animation: grain-shift 0.667s steps(8) infinite; /* 8 frames at ~12fps */
}
@keyframes grain-shift {
  0%   { background-position: 0 0; }
  12.5%{ background-position: -70px 30px; }
  25%  { background-position: 40px -90px; }
  37.5%{ background-position: -110px -40px; }
  50%  { background-position: 80px 60px; }
  62.5%{ background-position: -30px 100px; }
  75%  { background-position: 120px -20px; }
  87.5%{ background-position: -60px -80px; }
  100% { background-position: 0 0; }
}

/* ---------- Custom cursor ---------- */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  pointer-events: none;
  border-radius: 50%;
  display: none; /* enabled by JS on (pointer:fine) only */
}
.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--white);
}
.cursor-ring {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--white);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.cursor-ring.is-active {
  transform: scale(2.5);
  background: var(--white);
  mix-blend-mode: difference;
}
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------- JS-gated initial states ----------
   Only applied when JS is running (html.js) and motion is allowed
   (html.motion-ok). With JS disabled, everything renders visible. */

html.js.motion-ok .hl-line-inner,
html.js.motion-ok .hero-sub,
html.js.motion-ok .hero-cta { opacity: 0; }
html.js.motion-ok .hl-line-inner { transform: translateY(110%); opacity: 1; }

html.js.motion-ok [data-reveal] { opacity: 0; transform: translateY(40px); }
html.js.motion-ok .step-connector line { stroke-dasharray: 100; stroke-dashoffset: 100; }

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

@media (max-width: 1024px) {
  .mission-inner { grid-template-columns: 1fr; }
  .mission-media { height: auto; padding-top: var(--s-6); }
  .mission-copy { padding: var(--s-5) 0 var(--s-7); }

  .approach-steps { grid-template-columns: 1fr 1fr; row-gap: var(--s-5); }

  /* horizontal track becomes a vertical stack */
  .work-track { width: auto; flex-direction: column; align-items: stretch; }
  .work-card { width: 100%; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-left: none; border-top: 1px solid var(--grey-2); }
  .stat-cell:nth-child(-n+2) { border-top: none; }
  .stat-cell:nth-child(even) { border-left: 1px solid var(--grey-2); }
  .stat-cell { padding: var(--s-4) var(--s-3); }

  .pillar { grid-template-columns: 1fr; gap: var(--s-3); }

  .deliverables-list { grid-template-columns: 1fr; }

  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .approach-steps { grid-template-columns: 1fr; }
  .scroll-indicator { display: none; }
}

/* ============================================================
   REDUCED MOTION — kill everything, show final states
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .scroll-indicator-line::after { animation: none; transform: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
