:root {
  --black: #000000;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.72);
  --white-faint: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.03);
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --gutter: clamp(20px, 6vw, 96px);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Background grid, carried over from the original services / work with us pages */
.svc-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 74% 58% at 32% 2%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 42%, rgba(0,0,0,0) 70%),
    radial-gradient(ellipse 60% 46% at 88% 20%, rgba(205,210,220,0.06) 0%, rgba(0,0,0,0) 60%),
    radial-gradient(ellipse 70% 55% at 82% 92%, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 65%),
    linear-gradient(160deg, #050506 0%, #0c0c0e 45%, #060607 100%);
  overflow: hidden;
}

.svc-bg::before {
  content: '';
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.4;
  animation: svcBgDrift 60s linear infinite;
}

.svc-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(100deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}

@keyframes svcBgDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-58px, -58px, 0); }
}

.grain {
  position: fixed;
  inset: -120px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 1.1s steps(6) infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, -3%); }
  40% { transform: translate(3%, 2%); }
  60% { transform: translate(-3%, 3%); }
  80% { transform: translate(2%, -2%); }
}

/* Scroll progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--white);
  z-index: 30;
}

/* Nav */
.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(var(--max), calc(100% - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(10, 10, 12, 0.6);
  border-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo img { display: block; height: 30px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--white-soft);
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { opacity: 0.88; }

.btn-ghost { color: var(--white-soft); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }

.btn-sm { font-size: 14px; padding: 9px 18px; border-radius: 9px; }
.btn-lg { font-size: 16px; padding: 16px 28px; border-radius: 12px; }

.ig { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.ig .fill { fill: currentColor; stroke: none; }

.btn:focus-visible, .nav a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* Layout */
main { position: relative; z-index: 2; }

.hero,
.section,
.cta {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.section {
  padding: clamp(80px, 12vh, 140px) 0;
  border-top: 1px solid var(--line);
}

/* Type */
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--white-soft);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 22px;
}

.eyebrow-line { width: 24px; height: 1px; background: currentColor; }
.eyebrow-center { justify-content: center; }

.h2 {
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h3 {
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.center-text { text-align: center; margin-left: auto; margin-right: auto; }

.section-sub {
  max-width: 52ch;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--white-soft);
}

p { text-wrap: pretty; }

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 90px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-soft);
  margin-bottom: 30px;
}

.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); }

.hero-title {
  font-weight: 500;
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 50ch;
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--white-soft);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 44px;
  font-size: 14px;
  color: var(--white-faint);
}

.hero-points li { display: inline-flex; align-items: center; gap: 9px; }
.hero-points li::before {
  content: '';
  width: 14px;
  height: 14px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-opacity='.6' stroke-width='1.6'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E");
}

/* Industry */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
}

.lede { color: var(--white-soft); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(36px, 5vh, 56px);
}

.fact { padding: 22px 22px 24px; }
.fact dd { font-size: 15px; line-height: 1.6; color: var(--white-soft); }

/* Industry stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px 30px 0;
}

.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }

.stat-num {
  font-weight: 500;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-label { font-size: 15px; line-height: 1.5; color: var(--white-soft); max-width: 30ch; }

/* The numbers */
.funnel {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(40px, 6vh, 64px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
  counter-reset: funnel;
}

.funnel-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 28px;
  background: #0a0a0c;
  counter-increment: funnel;
}

.funnel-step::before {
  content: counter(funnel, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white-faint);
  margin-bottom: 14px;
}

.funnel-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  color: var(--white);
}

.funnel-label { font-size: 14.5px; line-height: 1.5; color: var(--white-soft); }

.funnel-result { background: #f2f2f2; }
.funnel-result::before, .funnel-result .funnel-label { color: rgba(0, 0, 0, 0.6); }
.funnel-result .funnel-num { color: var(--black); }

.formula {
  margin-top: 16px;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 48px);
  text-align: center;
}

.formula .eyebrow { margin-bottom: 20px; }

.formula-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px 14px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.3;
}

.formula-line em { color: var(--white-soft); }
.formula-line .op { font-family: var(--sans); font-size: 0.7em; color: var(--white-faint); }
.formula-result { flex-basis: 100%; white-space: nowrap; margin-top: 4px; }
.formula-total { color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, 0.35); }

.glossary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.glossary dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 6px; }
.glossary dd { font-size: 13.5px; line-height: 1.5; color: var(--white-faint); }

.formula-note { margin-top: 22px; font-size: 12px; color: rgba(255, 255, 255, 0.35); }

/* Why join */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line);
}

.why-item {
  padding: 30px 24px 32px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.why-item:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }

.why-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 36px);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}

.why-item p { font-size: 15px; color: var(--white-soft); }

/* Systems */
.systems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(44px, 6vh, 72px);
}

.system {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}

.system:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.045);
}


.system-num { font-family: var(--mono); font-size: 12px; color: var(--white-faint); margin-bottom: 28px; }


.system-title {
  font-weight: 500;
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.system p { font-size: 15.5px; line-height: 1.65; color: var(--white-soft); }




/* Steps */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 6vh, 64px);
  counter-reset: step;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.step p { font-size: 15px; line-height: 1.6; color: var(--white-soft); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--mono);
  font-size: 13px;
}

/* Production marquee: a continuous, automatic side-to-side strip */
.section-production { padding-bottom: 0; }

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: clamp(40px, 6vh, 64px) 0 clamp(90px, 13vh, 150px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}

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

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 8px), 0, 0); }
}

.slide {
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}

/* Fixed height, natural width: screenshots of any shape show uncropped */
.slide img { display: block; height: clamp(190px, 20vw, 280px); width: auto; }

.slide-empty {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-faint);
}

/* Final CTA */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(100px, 16vh, 180px) 0 clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line);
}

.cta-title {
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.cta .btn { margin-top: 36px; }

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer img { height: 32px; width: auto; opacity: 0.7; }
.footer-meta { font-size: 13px; color: var(--white-faint); }
.footer-meta a { color: var(--white-soft); }
.footer-meta a:hover { color: var(--white); }
.footer-note { font-size: 12px; color: rgba(255, 255, 255, 0.3); max-width: 60ch; }

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* Responsive */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glossary { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-item:not(:nth-child(3n + 1)) { border-left: 0; }
  .why-item:nth-child(even) { border-left: 1px solid var(--line); }
  .facts, .systems { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .why-item { padding: 24px 10px 26px; }
  .why-title { font-size: 25px; }
  .why-item p { font-size: 14px; }
  .funnel-step { padding: 20px 16px 22px; }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .nav-links { display: none; }
  .nav { padding-left: 16px; }
  .nav-logo img { height: 26px; }
  .steps { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-points { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc-bg::before, .grain { animation: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

@media (max-width: 640px) {
  .br-desk { display: none; }
}
