@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #FAFAF8;
  --ink: #111C18;
  --blue: #314095;
  --yellow: #FBDC11;
  --cream: #F2EED6;
  --muted: rgba(17,28,24,0.4);
  --border: rgba(17,28,24,0.08);
  --border-med: rgba(17,28,24,0.12);
  --fs-hero: clamp(48px, 8vw, 130px);
  --fs-work: clamp(28px, 4.5vw, 64px);
  --fs-xl: clamp(40px, 6vw, 96px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  overflow-x: hidden;
  cursor: auto;
  -webkit-font-smoothing: antialiased;
}

/* ═══ CANVAS BACKGROUND ═══ */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══ CUSTOM CURSOR ═══ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.2s, height 0.2s, margin 0.2s, background 0.2s, opacity 0.2s;
}
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1.5px solid rgba(17,28,24,0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.4s var(--ease-spring), height 0.4s var(--ease-spring), margin 0.4s var(--ease-spring), border-color 0.3s, background 0.3s, opacity 0.3s;
}
body.cursor-hide .cursor-dot,
body.cursor-hide .cursor-ring { opacity: 0; }
body.cursor-hover .cursor-dot { width: 0; height: 0; margin: 0; opacity: 0; }
body.cursor-hover .cursor-ring {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: rgba(251,220,17,0.15);
  border-color: var(--yellow);
}
body.cursor-text .cursor-dot { width: 2px; height: 28px; margin: -14px 0 0 -1px; border-radius: 2px; background: var(--blue); }
body.cursor-text .cursor-ring { width: 0; height: 0; margin: 0; opacity: 0; }

/* ═══ LOADER ═══ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
}

/* Blueprint grid background */
.loader-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17,28,24,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,28,24,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, transparent 20%, black 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, black 85%);
  animation: loaderGridDrift 14s linear infinite;
}
@keyframes loaderGridDrift {
  to { background-position: 60px 60px, 60px 60px; }
}

/* Oversized outlined background wordmark */
.loader-bg-word {
  position: absolute;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(140px, 22vw, 360px);
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(17,28,24,0.12);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  animation: loaderWordDrift 18s ease-in-out infinite alternate;
}
@keyframes loaderWordDrift {
  0%   { transform: translate(-2%, 0) rotate(-2deg); }
  100% { transform: translate(2%, 1%) rotate(2deg); }
}

/* Floating geometric shapes */
.loader-shape {
  position: absolute;
  border: 1.5px solid var(--ink);
  pointer-events: none;
  opacity: 0.18;
}
.loader-shape-1 {
  width: 72px; height: 72px;
  top: 18%; left: 12%;
  animation: loaderShapeFloat 9s ease-in-out infinite;
}
.loader-shape-2 {
  width: 48px; height: 48px;
  border-radius: 50%;
  bottom: 22%; right: 14%;
  animation: loaderShapeFloat 11s ease-in-out infinite 1s;
}
.loader-shape-3 {
  width: 60px; height: 60px;
  top: 70%; left: 22%;
  transform: rotate(45deg);
  animation: loaderShapeFloat 13s ease-in-out infinite 2s;
  border-color: transparent;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink) 50%, transparent 50%);
  opacity: 0.1;
}
.loader-shape-4 {
  width: 88px; height: 2px;
  background: var(--ink);
  top: 28%; right: 18%;
  opacity: 0.22;
  animation: loaderShapeFloat 10s ease-in-out infinite 0.5s;
}
@keyframes loaderShapeFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(18px, -22px) rotate(8deg); }
}

/* Corner stamps */
.loader-corner {
  position: absolute;
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  animation: loaderCornerIn 0.6s var(--ease-out) 0.4s forwards;
}
.loader-corner-label { opacity: 0.5; font-size: 9px; }
.loader-corner-val { font-size: 12px; letter-spacing: 2.5px; display: flex; align-items: center; gap: 6px; }
.loader-corner-tl { top: 32px; left: 32px; }
.loader-corner-tr { top: 32px; right: 32px; text-align: right; align-items: flex-end; }
.loader-corner-bl { bottom: 32px; left: 32px; }
.loader-corner-br { bottom: 32px; right: 32px; text-align: right; align-items: flex-end; }
@keyframes loaderCornerIn { to { opacity: 1; } }
.loader-corner .lcdot {
  width: 7px; height: 7px;
  background: var(--ink);
  border-radius: 50%;
  animation: pulse 1.2s ease infinite;
}

/* Corner bracket decorations */
.loader-corner::before {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid var(--ink);
  opacity: 0.4;
}
.loader-corner-tl::before { top: -18px; left: -18px; border-right: 0; border-bottom: 0; }
.loader-corner-tr::before { top: -18px; right: -18px; border-left: 0; border-bottom: 0; }
.loader-corner-bl::before { bottom: -18px; left: -18px; border-right: 0; border-top: 0; }
.loader-corner-br::before { bottom: -18px; right: -18px; border-left: 0; border-top: 0; }

/* Center content above bg */
.loader-logo, .loader-bar-track, .loader-pct, .loader-status { position: relative; z-index: 2; }

/* Cycling build-status line under percentage */
.loader-status {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(17,28,24,0.55);
  height: 14px;
  overflow: hidden;
  position: relative;
  width: 240px;
  text-align: center;
  margin-top: -20px;
}
.loader-status span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: loaderStatusCycle 6s steps(1) infinite;
}
.loader-status span:nth-child(1) { animation-delay: 0s; }
.loader-status span:nth-child(2) { animation-delay: 1s; }
.loader-status span:nth-child(3) { animation-delay: 2s; }
.loader-status span:nth-child(4) { animation-delay: 3s; }
.loader-status span:nth-child(5) { animation-delay: 4s; }
.loader-status span:nth-child(6) { animation-delay: 5s; }
@keyframes loaderStatusCycle {
  0%, 14%  { opacity: 1; transform: translateY(0); }
  16%, 100% { opacity: 0; transform: translateY(-8px); }
}
.loader.done {
  animation: loaderExit 0.8s var(--ease-out) forwards;
}
@keyframes loaderExit {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); }
}
.loader-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 8px;
  text-transform: uppercase;
  overflow: hidden;
  display: flex;
}
.loader-logo span {
  display: inline-block;
  transform: translateY(110%);
  animation: loaderLetterIn 0.5s var(--ease-out) forwards;
}
@keyframes loaderLetterIn { to { transform: translateY(0); } }
.loader-bar-track {
  width: 220px;
  height: 2px;
  background: rgba(17,28,24,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: var(--ink);
  border-radius: 2px;
  animation: loaderFill 2s var(--ease-out) forwards;
}
@keyframes loaderFill { to { width: 100%; } }
.loader-pct {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  color: rgba(17,28,24,0.45);
  letter-spacing: 3px;
}

/* ═══ GRAIN ═══ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.02;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
  animation: grainShift 0.3s steps(1) infinite;
}
@keyframes grainShift {
  0%   { background-position: 0 0; }
  25%  { background-position: -30px 20px; }
  50%  { background-position: 20px -25px; }
  75%  { background-position: -50px 10px; }
}

/* ═══ NAV ═══ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.5s, backdrop-filter 0.5s, box-shadow 0.5s;
}
nav.scrolled {
  background: rgba(250,250,248,0.82);
  backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-spring);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(90deg) scale(1.2); }
}
.nav-logo:hover .nav-logo-dot { transform: rotate(180deg) scale(1.5); animation: none; }
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--ink);
  transition: width 0.4s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { width: 100%; background: var(--yellow); height: 2px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: white;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  border: none;
  cursor: auto;
}
.nav-cta:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(49,64,149,0.2);
}
.nav-cta .arrow { transition: transform 0.3s var(--ease-out); font-size: 14px; }
.nav-cta:hover .arrow { transform: translateX(3px); }

/* ═══ PROGRESS DOTS ═══ */
.progress-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.progress-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-med);
  transition: all 0.5s var(--ease-spring);
  cursor: auto;
}
.progress-dot.active {
  background: var(--ink);
  transform: scale(1.8);
  box-shadow: 0 0 0 4px rgba(17,28,24,0.06);
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 48px 80px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(17,28,24,0.03);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 44px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.02;
  color: var(--ink);
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
  padding-bottom: 0.08em;
  text-align: center;
}
.hero-headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero-headline .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
.hero-headline.animated .word-inner { transform: translateY(0); }
.hero-headline .highlight {
  position: relative;
  display: inline-block;
}
.hero-headline .highlight::after {
  content: '';
  position: absolute;
  bottom: 5%; left: -3%; right: -3%;
  height: 30%;
  background: var(--yellow);
  z-index: -1;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out) 0.6s;
}
.hero-headline.animated .highlight::after { transform: scaleX(1) skewX(-2deg); opacity: 0.7; }
.hero-headline .outline-text {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
  transition: color 0.4s, -webkit-text-stroke 0.4s;
}
.hero-headline .outline-text:hover { color: var(--ink); -webkit-text-stroke: 0; }

.hero-sub {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--muted);
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 400;
  text-align: center;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: auto;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
  border-radius: 100px;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary span { position: relative; z-index: 1; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--border-med);
  cursor: auto;
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(17,28,24,0.03); }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-width: 900px;
}
.hero-stat {
  flex: 1;
  padding: 28px 0;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: rgba(17,28,24,0.015); }
.hero-stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 48px;
  background: var(--border-med);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 50%;
  background: linear-gradient(to bottom, transparent, var(--ink));
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 150%; } }

/* ═══ PAGE HERO (smaller hero for sub-pages) ═══ */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 200px 48px 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero .hero-headline {
  font-size: clamp(44px, 7vw, 104px);
  margin-bottom: 28px;
}
.page-hero .hero-sub {
  margin-bottom: 0;
}

/* ═══ SECTION HEADING ═══ */
.section-heading {
  position: relative;
  z-index: 1;
  padding: 140px 48px 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--yellow);
  display: block;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-work);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--ink);
}

/* ═══ WORK GRID ═══ */
.work-grid {
  position: relative;
  z-index: 1;
  padding: 0 48px 140px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.work-grid.staggered .work-card:nth-child(2) { transform: translateY(60px); }
.work-grid.staggered .work-card:nth-child(3) { transform: translateY(-30px); }
.work-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: auto;
  --card-color: var(--yellow);
  --card-ink: var(--ink);
}
.work-card-img {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  transition: transform 1.2s var(--ease-out), filter 0.6s;
}
.work-card:hover .work-card-img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.05);
}

/* Color-wash overlay — the Kubix look */
.work-card-overlay {
  position: absolute; inset: 0;
  background: var(--card-color);
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
  display: block;
  mix-blend-mode: multiply;
  z-index: 1;
}
.work-card:hover .work-card-overlay { opacity: 0.82; }

/* Content sits above the wash */
.work-card-overlay > * { mix-blend-mode: normal; }
.work-card-content {
  position: absolute; inset: 0;
  padding: 28px 32px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out) 0.1s;
  pointer-events: none;
}
.work-card:hover .work-card-content { opacity: 1; }

/* Category pill (top-left) */
.work-card-cat {
  position: absolute;
  top: 24px; left: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #111C18;
  background: #FAFAF8;
  padding: 8px 14px;
  border-radius: 10px;
  transform: translateY(-8px);
  transition: transform 0.5s var(--ease-spring) 0.12s;
}
.work-card:hover .work-card-cat { transform: translateY(0); }

/* "+" sigil (top-right) */
.work-card-plus {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  background: #FAFAF8;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #111C18;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transform: scale(0.6) rotate(-45deg);
  opacity: 0;
  transition: transform 0.55s var(--ease-spring) 0.15s, opacity 0.4s 0.15s;
}
.work-card:hover .work-card-plus {
  transform: scale(1) rotate(0);
  opacity: 1;
}
.work-card:hover:has(.work-card-plus:hover) .work-card-plus,
.work-card .work-card-plus:hover {
  transform: rotate(90deg);
  background: var(--card-ink);
  color: var(--card-color);
}

/* Center wordmark — big, ink, editorial */
.work-card-title {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  color: var(--card-ink);
  letter-spacing: -2.5px;
  line-height: 0.95;
  margin: 0;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  transition: transform 0.7s var(--ease-spring) 0.08s, opacity 0.5s 0.08s;
  pointer-events: none;
}
.work-card:hover .work-card-title {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Tag pills — bottom row, ink style */
.work-card-tags {
  position: absolute;
  bottom: 24px; left: 24px; right: 80px;
  display: flex; gap: 6px;
  flex-wrap: wrap;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease-spring) 0.2s;
}
.work-card:hover .work-card-tags { transform: translateY(0); }
.work-card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #FAFAF8;
  background: #111C18;
  backdrop-filter: none;
  padding: 6px 12px;
  border-radius: 8px;
}

/* Hide the old center-logo watermark and the redundant CTA pill — the new overlay replaces both */
.work-card-logo { display: none; }
.work-card .work-card-cta { display: none; }

/* Per-card colors */
.wc-1 { --card-color: #1e2a6b; --card-ink: #F2EED6; }  /* Nelo — deep blue, cream text */
.wc-2 { --card-color: #F2EED6; --card-ink: #111C18; }  /* Scoop — cream, ink text */
.wc-3 { --card-color: #314095; --card-ink: #FAFAF8; }
.wc-4 { --card-color: #111C18; --card-ink: #FBDC11; }
.wc-5 { --card-color: #e85a7a; --card-ink: #111C18; }
.wc-6 { --card-color: #56B746; --card-ink: #111C18; }
.work-card-status {
  position: absolute;
  top: 24px; left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 100px;
  z-index: 2;
}
.work-card-status::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
.wc-1 .work-card-img {
  background:
    url('previews/nelocutz-preview.jpg') center center / cover no-repeat,
    linear-gradient(135deg, #111C18, #1a3a2e 40%, #56B746);
}
.wc-2 .work-card-img {
  background:
    url('previews/certified-scoop-preview.jpg') center center / cover no-repeat,
    linear-gradient(135deg, #0f1a3d, #314095 50%, #5a72cc);
}
.wc-3 .work-card-img { background: linear-gradient(135deg, #3d2e0a, #c4941a 50%, #FBDC11); }
.wc-4 .work-card-img { background: linear-gradient(135deg, #1a1a1a, #444 50%, #777); }
.wc-5 .work-card-img { background: linear-gradient(135deg, #2a0f3d, #6b2699 50%, #b47cd9); }
.wc-6 .work-card-img { background: linear-gradient(135deg, #3d0f1f, #991f3b 50%, #e85a7a); }

/* ═══ LIVE PREVIEW BROWSER FRAME ═══ */
.preview-section {
  position: relative;
  z-index: 1;
  padding: 0 48px 140px;
}
.preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.preview-head-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.preview-head-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
}
.preview-head-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-top: 12px;
  color: var(--ink);
}
.preview-head-sub {
  max-width: 380px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.65;
}
.browser-frame {
  position: relative;
  background: #F5F1E8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(17,28,24,0.08),
    0 30px 80px -20px rgba(17,28,24,0.25),
    0 10px 30px -10px rgba(17,28,24,0.15);
  transform: perspective(1800px) rotateX(0deg);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.browser-frame:hover {
  transform: perspective(1800px) rotateX(0deg) translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(17,28,24,0.1),
    0 40px 100px -20px rgba(17,28,24,0.3),
    0 15px 40px -10px rgba(17,28,24,0.18);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #EDE6D4 0%, #E4DCC6 100%);
  border-bottom: 1px solid rgba(17,28,24,0.08);
  position: relative;
  z-index: 2;
}
.browser-dots {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.browser-dots span:nth-child(1) { background: #FF5F57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15); }
.browser-dots span:nth-child(2) { background: #FEBC2E; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15); }
.browser-dots span:nth-child(3) { background: #28C840; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15); }
.browser-url {
  flex: 1;
  max-width: 420px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(17,28,24,0.06);
  border-radius: 8px;
  padding: 8px 14px 8px 34px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  opacity: 0.78;
  letter-spacing: -0.1px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 12px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111C18' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.browser-url strong {
  color: var(--ink);
  opacity: 1;
  font-weight: 500;
}
.browser-tab-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.55;
  flex-shrink: 0;
}
.browser-tab-meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28C840;
  box-shadow: 0 0 6px rgba(40,200,64,0.5);
}
.preview-viewport {
  position: relative;
  width: 100%;
  height: 720px;
  background: #F5F1E8;
  overflow: hidden;
}
.preview-viewport iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #F5F1E8;
}
.preview-scroll-hint {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(17,28,24,0.92);
  backdrop-filter: blur(12px);
  color: #F5F1E8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 10px 30px -10px rgba(17,28,24,0.4);
  pointer-events: none;
  opacity: 0.95;
  animation: previewHintPulse 2.6s ease-in-out infinite;
}
.preview-scroll-hint::after {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F1E8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M19 12l-7 7-7-7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
@keyframes previewHintPulse {
  0%, 100% { transform: translateY(0); opacity: 0.95; }
  50% { transform: translateY(4px); opacity: 0.7; }
}
.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.preview-foot-note {
  font-size: 12px;
  color: var(--ink);
  opacity: 0.55;
  letter-spacing: 0.2px;
}
.preview-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.preview-foot-link:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
@media (max-width: 900px) {
  .preview-section { padding: 0 24px 100px; }
  .preview-viewport { height: 560px; }
  .browser-url { max-width: none; font-size: 11px; }
  .browser-tab-meta { display: none; }
  .preview-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ═══ MARQUEE ═══ */
.marquee-section {
  position: relative; z-index: 1;
  padding: 50px 0; overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 700; white-space: nowrap;
  padding: 0 20px; letter-spacing: -2px;
  color: var(--border-med); transition: color 0.4s;
}
.marquee-item:hover { color: var(--ink); }
.marquee-dot {
  display: inline-flex; align-items: center; padding: 0 20px;
}
.marquee-dot::after {
  content: ''; width: 10px; height: 10px;
  background: var(--yellow); border-radius: 2px;
  display: block; animation: marqueDotSpin 4s linear infinite;
}
@keyframes marqueDotSpin { to { transform: rotate(360deg); } }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══ SERVICES ═══ */
.services {
  position: relative; z-index: 1;
  padding: 0 48px 140px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 24px;
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 52px 36px;
  cursor: auto;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background 0.4s;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--yellow);
  transition: width 0.6s var(--ease-out);
}
.service-card:hover::before { width: 100%; }
.service-card:hover { background: rgba(17,28,24,0.015); }
.service-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px; font-weight: 700;
  color: var(--border); line-height: 1;
  margin-bottom: 28px; transition: color 0.5s;
}
.service-card:hover .service-number { color: var(--yellow); }
.service-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px; letter-spacing: -0.3px;
}
.service-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }
.service-arrow {
  position: absolute; top: 36px; right: 36px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--muted);
  transition: all 0.4s var(--ease-out);
  transform: rotate(-45deg);
}
.service-card:hover .service-arrow {
  background: var(--ink); border-color: var(--ink);
  color: white; transform: rotate(0deg);
}

/* ═══ SERVICE DETAIL (services page) ═══ */
.service-detail {
  position: relative;
  z-index: 1;
  padding: 0 48px 48px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 48px;
}
.service-detail + .service-detail { padding-top: 48px; border-top: 1px solid var(--border); }
.service-detail-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.service-detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}
.service-detail-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}
.service-detail-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.service-detail-list li {
  font-size: 14px;
  color: var(--ink);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}
.service-detail-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 2px;
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ═══ PROOF ═══ */
.proof-section {
  position: relative; z-index: 1;
  padding: 120px 48px; text-align: center;
  overflow: hidden;
}
.proof-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3.5vw, 48px);
  font-weight: 600; letter-spacing: -1px;
  line-height: 1.3; color: var(--ink);
  max-width: 900px; margin: 0 auto 36px;
}
.proof-author { font-size: 14px; color: var(--muted); font-weight: 500; }
.proof-author strong { color: var(--ink); font-weight: 600; }
.proof-section::before {
  content: '\201C';
  position: absolute; top: 60px; left: 10%;
  font-family: Georgia, serif; font-size: 240px;
  color: var(--border); line-height: 1; pointer-events: none;
}

/* ═══ PROCESS ═══ */
.process-section {
  position: relative; z-index: 1;
  padding: 0 48px 140px;
}
.process-timeline {
  display: flex; gap: 0;
  border-top: 2px solid var(--ink);
  position: relative;
}
.process-step {
  flex: 1;
  padding: 40px 28px 0;
  position: relative;
  cursor: auto;
}
.process-step::before {
  content: '';
  position: absolute; top: -8px; left: 28px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--ink);
  transition: background 0.3s, transform 0.4s var(--ease-spring), box-shadow 0.3s;
}
.process-step:hover::before {
  background: var(--yellow);
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(251,220,17,0.15);
}
.process-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--muted); margin-bottom: 14px;
}
.process-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 10px; letter-spacing: -0.3px;
}
.process-step-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }
.process-step-duration {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  background: rgba(17,28,24,0.04);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══ PROCESS DETAIL (process page) ═══ */
.process-detail {
  position: relative;
  z-index: 1;
  padding: 0 48px 48px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 48px;
}
.process-detail + .process-detail { padding-top: 48px; border-top: 1px solid var(--border); }
.process-detail-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 700;
  color: var(--border-med);
  line-height: 0.9;
  letter-spacing: -4px;
}
.process-detail-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}
.process-detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
}
.process-detail-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.process-detail-deliverables {
  list-style: none;
}
.process-detail-deliverables li {
  font-size: 13px;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: center;
}
.process-detail-deliverables li strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 120px;
}

/* ═══ ABOUT / MANIFESTO ═══ */
.manifesto {
  position: relative;
  z-index: 1;
  padding: 0 48px 140px;
}
.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-statement {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--ink);
}
.manifesto-statement .highlight-word {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.manifesto-statement .highlight-word::after {
  content: '';
  position: absolute;
  bottom: 6%; left: -3%; right: -3%;
  height: 30%;
  background: var(--yellow);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-2deg);
  opacity: 0.7;
}
.manifesto-statement .outline-text {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}

.story-section {
  position: relative;
  z-index: 1;
  padding: 0 48px 140px;
}
.story-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.story-body p {
  font-size: 16px;
  color: rgba(17,28,24,0.7);
  line-height: 1.85;
  margin-bottom: 24px;
}
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--ink); font-weight: 600; }

/* ═══ PRINCIPLES / VALUES ═══ */
.principles {
  position: relative;
  z-index: 1;
  padding: 0 48px 140px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 24px;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}
.principle-card {
  background: var(--bg);
  padding: 52px 40px;
  position: relative;
  cursor: auto;
  transition: background 0.4s;
}
.principle-card:hover { background: rgba(17,28,24,0.015); }
.principle-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--yellow);
  transition: width 0.6s var(--ease-out);
}
.principle-card:hover::before { width: 100%; }
.principle-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 20px;
}
.principle-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 12px;
}
.principle-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ═══ MARKETS (UK + Trinidad) ═══ */
.markets {
  position: relative;
  z-index: 1;
  padding: 0 48px 140px;
}
.markets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.market-card {
  background: var(--ink);
  color: white;
  border-radius: 20px;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  cursor: auto;
}
.market-card:nth-child(2) { background: var(--blue); }
.market-card::after {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,220,17,0.14), transparent 70%);
  pointer-events: none;
  transition: transform 0.8s var(--ease-out);
}
.market-card:hover::after { transform: translate(-30px, 30px) scale(1.1); }
.market-flag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.market-flag::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--yellow);
  display: block;
}
.market-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.market-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ═══ CTA ═══ */
.cta-section {
  position: relative; z-index: 1;
  padding: 140px 48px; text-align: center;
  background: var(--ink); color: white;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(49,64,149,0.2), transparent 70%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute; bottom: -150px; left: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,220,17,0.08), transparent 70%);
  pointer-events: none;
}
.cta-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--fs-xl); font-weight: 700;
  letter-spacing: -3px; line-height: 1;
  margin-bottom: 24px; position: relative;
}
.cta-sub {
  font-size: 16px; color: rgba(255,255,255,0.45);
  max-width: 440px; margin: 0 auto 44px;
  line-height: 1.65; position: relative;
}
.btn-yellow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink);
  padding: 18px 44px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; border: none; cursor: auto;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  position: relative;
}
.btn-yellow:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(251,220,17,0.3);
}

/* ═══ CONTACT FORM ═══ */
.contact-wrap {
  position: relative;
  z-index: 1;
  padding: 0 48px 140px;
}
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info-block {
  margin-bottom: 48px;
}
.contact-info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-info-label::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--yellow);
  display: block;
}
.contact-info-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.3s var(--ease-out);
}
a.contact-info-value:hover { gap: 16px; color: var(--blue); }
.contact-info-value-sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 30px 80px rgba(17,28,24,0.04);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--border-med);
  padding: 12px 2px;
  outline: none;
  transition: border-color 0.3s;
  cursor: auto;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--ink);
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.form-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.form-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border-med);
  color: var(--ink);
  cursor: auto;
  transition: all 0.25s;
  background: var(--bg);
}
.form-chip input { display: none; }
.form-chip:hover { border-color: var(--ink); }
.form-chip.checked,
.form-chip:has(input:checked) {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  padding: 18px 40px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: auto;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  margin-top: 12px;
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease-out);
  border-radius: 100px;
}
.form-submit:hover::before { transform: translateY(0); }
.form-submit span { position: relative; z-index: 1; }

/* ═══ FAQ ═══ */
.faq {
  position: relative;
  z-index: 1;
  padding: 0 48px 140px;
}
.faq-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  cursor: auto;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  transition: color 0.3s;
}
.faq-item:hover .faq-question { color: var(--blue); }
.faq-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: all 0.4s var(--ease-out);
}
.faq-item.open .faq-toggle {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), margin-top 0.5s var(--ease-out);
}
.faq-item.open .faq-answer { max-height: 320px; margin-top: 20px; }
.faq-answer p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 760px;
}

/* ═══ STAT STRIP (for secondary pages) ═══ */
.stat-strip {
  position: relative;
  z-index: 1;
  padding: 0 48px 140px;
}
.stat-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-strip-item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.stat-strip-item:last-child { border-right: none; }
.stat-strip-item:hover { background: rgba(17,28,24,0.015); }
.stat-strip-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-strip-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ═══ FOOTER ═══ */
footer {
  position: relative; z-index: 1;
  background: var(--ink);
  padding: 80px 48px 40px;
  color: rgba(255,255,255,0.5);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  color: white; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.footer-brand-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 2px; }
.footer-tagline {
  font-size: 14px; line-height: 1.7;
  color: rgba(255,255,255,0.35);
  max-width: 300px; margin-bottom: 24px;
}
.footer-email-link {
  color: white; text-decoration: none; font-weight: 500; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.3s var(--ease-out);
}
.footer-email-link:hover { gap: 16px; }
.footer-col-title {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.25); margin-bottom: 20px;
}
.footer-col-links {
  list-style: none; display: flex;
  flex-direction: column; gap: 12px;
}
.footer-col-links a {
  color: rgba(255,255,255,0.45); text-decoration: none;
  font-size: 14px; transition: color 0.2s, padding-left 0.3s; cursor: auto;
}
.footer-col-links a:hover { color: white; padding-left: 6px; }
.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-social {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: all 0.3s var(--ease-out);
  cursor: auto;
}
.footer-social:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; padding-top: 36px;
  font-size: 12px; color: rgba(255,255,255,0.2);
}
.footer-bottom a {
  color: rgba(255,255,255,0.2); text-decoration: none;
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 500; transition: color 0.2s; cursor: auto;
}
.footer-bottom a:hover { color: white; }

/* ═══ REVEAL ANIMATIONS ═══ */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-grid.staggered .work-card:nth-child(2),
  .work-grid.staggered .work-card:nth-child(3) { transform: none; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 50%; }
  .story-grid, .contact-grid, .service-detail, .process-detail { grid-template-columns: 1fr; gap: 40px; }
  .service-detail-list { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; }
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-strip-item:nth-child(2) { border-right: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-field { margin-bottom: 24px; }
}
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  .page-hero { padding: 140px 24px 80px; }
  .section-heading, .work-grid, .services, .process-section, .proof-section, .cta-section,
  .manifesto, .story-section, .principles, .markets, .contact-wrap, .faq, .stat-strip,
  .service-detail, .process-detail { padding-left: 24px; padding-right: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  footer { padding: 60px 24px 32px; }
  .process-timeline { flex-direction: column; border-top: none; border-left: 2px solid var(--ink); }
  .process-step { padding: 0 0 36px 40px; }
  .process-step::before { top: 0; left: -8px; }
  .contact-form { padding: 32px 24px; }
  .progress-dots, .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ============================================================
   BOUNDARY-PUSHING ANIMATION LAYER
   ============================================================ */

/* ---- View Transitions API (Chrome/Edge/Safari TP) ---- */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: vt-out 0.42s cubic-bezier(0.7, 0, 0.84, 0) both;
}
::view-transition-new(root) {
  animation: vt-in 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes vt-out {
  to { opacity: 0; transform: scale(0.985) translateY(-8px); filter: blur(6px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: scale(1.02) translateY(16px); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ---- Scroll progress bar (top of viewport) ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--blue) 60%, var(--yellow) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
  box-shadow: 0 0 18px rgba(255, 217, 0, 0.55);
  mix-blend-mode: normal;
}

/* ---- Split-text hero reveal ---- */
.hero-headline.split-ready .char,
.hero-headline.split-ready .char-space {
  display: inline-block;
  will-change: transform, opacity;
}
.hero-headline.split-ready .char {
  opacity: 0;
  transform: translate3d(0, 110%, 0) rotate(6deg) skewY(4deg);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s var(--ease-spring);
  transition-delay: calc(var(--char-i, 0) * 22ms + 120ms);
}
.hero-headline.split-ready.split-revealed .char {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0) skewY(0);
}
.char-space { width: 0.24em; display: inline-block; }

/* protect the clip-path .word-inner from being split */
.hero-headline .highlight .word .word-inner { display: inline-block; }

/* ---- 3D tilt surface (browser frame etc.) ---- */
.tilt-surface {
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
  position: relative;
}
.tilt-surface.tilt-active {
  transition: transform 0.12s linear;
}
.tilt-gloss {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.04) 30%,
    transparent 55%
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  z-index: 3;
}
.tilt-surface.tilt-active .tilt-gloss { opacity: 1; }

/* override the default :hover lift so JS has authority on tilt */
.browser-frame.tilt-surface:hover { transform: none; }

/* ---- Velocity-driven marquee takes over CSS animation ---- */
.marquee-track {
  animation: none !important;
  will-change: transform;
}

/* ---- Nav link scramble effect ---- */
.nav-link.scrambling,
.nav-cta.scrambling span:first-child {
  font-variant-ligatures: none;
  letter-spacing: 0.01em;
}

/* ---- Hero scrub helpers ---- */
.hero-headline, .hero-sub, .scroll-hint {
  will-change: transform, opacity, filter;
}

/* ---- Clip-path reveal variant ---- */
.reveal-mask {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-out);
}
.reveal-mask.visible {
  clip-path: inset(0 0 0 0);
}

/* ---- Reduced motion overrides ---- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .hero-headline.split-ready .char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .tilt-surface { transform: none !important; transition: none !important; }
  .tilt-gloss { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .reveal-mask { clip-path: none !important; }
}


/* ═══ CONTACT FORM SUCCESS TOAST ═══ */
.form-success-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 40px);
  z-index: 10050;
  width: min(560px, calc(100% - 32px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.4s var(--ease-spring);
}
.form-success-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.form-success-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  background: var(--ink);
  color: var(--bg);
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(17,28,24,0.28), 0 2px 6px rgba(17,28,24,0.18);
  border: 1px solid rgba(255,255,255,0.08);
}
.form-success-check {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.form-success-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
}
.form-success-sub {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(250,250,248,0.72);
}
.form-success-sub a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-success-close {
  background: none;
  border: none;
  color: rgba(250,250,248,0.5);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.2s;
}
.form-success-close:hover { color: var(--bg); }
@media (max-width: 640px) {
  .form-success-toast { bottom: 16px; }
  .form-success-inner { padding: 14px 16px; gap: 12px; }
  .form-success-title { font-size: 14px; }
  .form-success-sub { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM UPGRADES (v2)
   ═══════════════════════════════════════════════════════════ */

/* View Transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fadeOut 0.25s ease forwards; }
::view-transition-new(root) { animation: fadeIn 0.35s ease forwards; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── NOW strip (hero badge replacement) ─── */
.now-strip {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(17,28,24,0.04);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 44px;
  backdrop-filter: blur(10px);
  font-family: 'Space Grotesk', sans-serif;
}
.now-strip .now-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}
.now-strip .now-sep {
  width: 4px; height: 4px;
  background: var(--border-med);
  border-radius: 50%;
}
.now-strip .now-clock {
  font-family: 'Space Grotesk', monospace;
  color: var(--muted);
  letter-spacing: 1px;
}
.now-strip .now-highlight {
  color: var(--ink);
  font-weight: 600;
}

/* ─── Oversized section number watermarks ─── */
.section-heading { position: relative; overflow: hidden; }
.section-heading .section-num-watermark {
  position: absolute;
  right: 48px;
  top: 40px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(120px, 18vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-med);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.9;
}
.section-heading > * { position: relative; z-index: 1; }

/* ─── Section labels (sticky removed — they stacked on top of each other) ─── */
.section-heading {
  position: relative;
  z-index: 2;
}

/* ─── Dual-row marquee ─── */
.marquee-section.dual {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  overflow: hidden;
}
.marquee-row {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee-row-outline {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  font-weight: 800;
}
.marquee-row-solid {
  color: var(--ink);
  font-weight: 700;
}
.marquee-row-a { animation: marqueeLeft 38s linear infinite; }
.marquee-row-b { animation: marqueeRight 48s linear infinite; margin-top: 14px; }
@keyframes marqueeLeft { to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee-row .marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 7vw, 96px);
  letter-spacing: -0.03em;
  padding: 0 0.5em;
  flex-shrink: 0;
}
.marquee-row .marquee-dot {
  width: 14px; height: 14px;
  background: var(--yellow);
  border-radius: 50%;
  align-self: center;
  flex-shrink: 0;
  margin: 0 0.3em;
}

/* ─── Client wordmarks strip ─── */
.clients-strip {
  padding: 100px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-strip-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.clients-wordmark-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  flex-wrap: wrap;
}
.client-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: transform 0.3s var(--ease-spring);
  line-height: 1;
}
.client-wordmark:hover { transform: translateY(-4px); }
.client-wordmark::after {
  content: attr(data-status);
  position: absolute;
  top: -18px;
  right: -8px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 100px;
}

/* ─── Horizontal-scroll services rail ─── */
.services-rail {
  position: relative;
  padding: 0 0 140px 48px;
  overflow: hidden;
}
.services-rail-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 30px;
  padding-right: 48px;
  scrollbar-width: none;
}
.services-rail-track::-webkit-scrollbar { display: none; }
.services-rail-card {
  flex: 0 0 clamp(320px, 38vw, 540px);
  aspect-ratio: 4/5;
  background: var(--cream);
  border-radius: 24px;
  padding: 44px 40px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-spring), background 0.4s;
  border: 1px solid var(--border);
}
.services-rail-card:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-6px);
}
.services-rail-card:hover .services-rail-num { color: var(--yellow); }
.services-rail-card:nth-child(even) { background: var(--ink); color: var(--bg); }
.services-rail-card:nth-child(even):hover { background: var(--yellow); color: var(--ink); }
.services-rail-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--muted);
  transition: color 0.3s;
}
.services-rail-card:nth-child(even) .services-rail-num { color: rgba(250,250,248,0.5); }
.services-rail-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 3.4vw, 54px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-top: auto;
  margin-bottom: 20px;
}
.services-rail-card-desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 320px;
}
.services-rail-arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: transform 0.3s;
}
.services-rail-card:hover .services-rail-arrow { transform: rotate(-45deg) scale(1.1); }
.services-rail-hint {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 18px;
  padding-right: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.services-rail-hint::after { content: '←  drag  →'; }

/* ─── Scroll-bound dark sections ─── */
body.dark-mode {
  background: var(--ink);
  color: var(--bg);
  transition: background 0.8s var(--ease-out), color 0.8s var(--ease-out);
}
body {
  transition: background 0.8s var(--ease-out), color 0.8s var(--ease-out);
}
body.dark-mode .section-title,
body.dark-mode .cta-headline,
body.dark-mode .hero-headline { color: var(--bg); }
body.dark-mode .section-tag,
body.dark-mode .cta-sub,
body.dark-mode .muted,
body.dark-mode .hero-sub { color: rgba(250,250,248,0.55); }
body.dark-mode nav.scrolled {
  background: rgba(17,28,24,0.8);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
body.dark-mode .nav-link { color: rgba(250,250,248,0.5); }
body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active { color: var(--bg); }
body.dark-mode .nav-logo { color: var(--bg); }
body.dark-mode .nav-cta { background: var(--yellow); color: var(--ink); }
body.dark-mode .nav-cta:hover { background: var(--bg); color: var(--ink); }

/* ─── Activity ticker ─── */
.activity-ticker {
  background: var(--ink);
  color: var(--bg);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.activity-ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: marqueeLeft 50s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}
.activity-ticker-inner > span {
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.activity-ticker-inner .act-dot {
  width: 7px; height: 7px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
.activity-ticker-inner strong { color: var(--yellow); font-weight: 600; }

/* ─── MEGA FOOTER ─── */
.mega-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 48px 40px;
  position: relative;
  overflow: hidden;
}
.mega-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 11vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--bg);
  margin-bottom: 60px;
  user-select: none;
  position: relative;
}
.mega-wordmark .haus-highlight {
  position: relative;
  display: inline-block;
}
.mega-wordmark .haus-highlight::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 6%;
  height: 22%;
  background: var(--yellow);
  z-index: -1;
  transform: skewX(-3deg);
}
.mega-wordmark .dot {
  display: inline-block;
  width: 0.18em; height: 0.18em;
  background: var(--yellow);
  border-radius: 50%;
  vertical-align: baseline;
  margin-left: 0.02em;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mega-col-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(250,250,248,0.4);
  margin-bottom: 20px;
}
.mega-col a {
  color: var(--bg);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 14px;
  transition: color 0.2s, transform 0.2s;
  font-weight: 400;
}
.mega-col a:hover { color: var(--yellow); transform: translateX(4px); }
.mega-tagline {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(250,250,248,0.7);
  max-width: 380px;
  margin-bottom: 24px;
}
.mega-contact-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
  transition: opacity 0.2s;
}
.mega-contact-link:hover { opacity: 0.8; }
.mega-clock {
  font-family: 'Space Grotesk', monospace;
  font-size: 15px;
  color: var(--bg);
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mega-clock:last-child { border-bottom: none; }
.mega-clock .mega-clock-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250,250,248,0.4);
  font-family: 'Inter', sans-serif;
}

.mega-footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(250,250,248,0.4);
}
.mega-footer-bottom a {
  color: rgba(250,250,248,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.mega-footer-bottom a:hover { color: var(--yellow); }

@media (max-width: 900px) {
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .mega-footer { padding: 60px 24px 32px; }
  .mega-footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 50px; }
  .clients-strip { padding: 60px 24px; }
  .section-heading .section-num-watermark { right: 24px; font-size: clamp(80px, 28vw, 180px); }
  .services-rail { padding-left: 24px; }
}

/* ─── Kinetic hero letters ─── */
.hero-headline .kinetic-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(30%) rotate(4deg);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.hero-headline.animated .kinetic-letter {
  opacity: 1;
  transform: translateY(0) rotate(0);
}
.hero-headline .kinetic-letter:hover {
  transform: translateY(-4px) rotate(-2deg);
  color: var(--blue);
  transition: transform 0.3s var(--ease-spring), color 0.2s;
}

/* Magnetic elements: make sure transitions are smooth */
.magnetic { will-change: transform; transition: transform 0.3s var(--ease-out); }

/* ─── Mid-scroll conversion band ─── */
.convert-band {
  margin: 0 48px 120px;
  padding: 56px clamp(32px, 5vw, 72px);
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.convert-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(251,220,17,0.18), transparent 70%);
  pointer-events: none;
}
.convert-band-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.convert-band-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
.convert-band-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  color: var(--bg);
}
.convert-band-sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(250,250,248,0.65);
  max-width: 520px;
}
.convert-band-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.convert-band-ctas .btn-yellow {
  white-space: nowrap;
}
.convert-band-micro {
  font-size: 12px;
  color: rgba(250,250,248,0.5);
  letter-spacing: 0.5px;
}
@media (max-width: 820px) {
  .convert-band {
    grid-template-columns: 1fr;
    margin: 0 24px 80px;
    padding: 40px 28px;
  }
  .convert-band-ctas { align-items: flex-start; }
}

/* ─── Work card "Read case study" pill ─── */
.work-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  width: fit-content;
  transition: transform 0.3s var(--ease-spring);
}
.work-card:hover .work-card-cta { transform: translateX(6px); }

/* ─── Per-service inline CTA (services.html) ─── */
.service-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--border-med);
  color: var(--ink);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring);
}
.service-inline-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.service-inline-cta .arrow {
  transition: transform 0.3s var(--ease-spring);
}
.service-inline-cta:hover .arrow { transform: translateX(4px); }
