/* ============================================================
   Pixels & Code Studio — warm paper theme
   Ivory surfaces, espresso ink, amber accents. Brand palette
   lives in these variables; tweak here to retheme.
   ============================================================ */
:root {
  /* warm paper theme: ivory surfaces, espresso ink, amber accents */
  --bg: #f6f1e6;
  --bg-2: #fdfaf3;
  --panel: #efe7d6;
  --text: #221a12;
  --muted: rgba(34, 26, 18, 0.62);
  --faint: rgba(34, 26, 18, 0.13);
  --orange: #ff9a1f;   /* logo P */
  --gold: #ffc42e;     /* logo C */
  --accent-ink: #9c5400; /* deep amber for small text on paper */
  --grad: linear-gradient(96deg, var(--orange) 10%, var(--gold) 90%);
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: initial; }

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

::selection { background: var(--orange); color: #221a12; }

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

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

/* ===== film grain (static paper texture) =====
   A static overlay: animating a full-viewport layer forced the compositor
   to repaint the whole page every frame, which is the main scroll-lag
   culprit. The texture alone gives the warm paper feel at zero runtime cost. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== custom cursor ===== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--orange);
  z-index: 300;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  /* centering is done via GSAP xPercent/yPercent so motion stays on transforms */
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
  mix-blend-mode: normal;
}
.cursor.is-hover { width: 56px; height: 56px; background: rgba(255, 154, 31, 0.18); border: 1px solid var(--orange); }
.cursor.has-label { width: 84px; height: 84px; background: var(--orange); border: none; }
.cursor-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.has-label .cursor-label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ===== preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  /* failsafe: if JS or the animation CDN never loads, the preloader
     removes itself instead of covering the site forever */
  animation: preloader-bail 0.5s ease 4s forwards;
}
@keyframes preloader-bail {
  to { opacity: 0; visibility: hidden; }
}
.preloader-count {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600;
  color: var(--faint);
}

/* interlocking PC mark (echoes the logo) */
.preloader-mark, .brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.preloader-mark { font-size: 84px; }
.brand-mark { font-size: 44px; }
.mark-p { color: var(--orange); }
.mark-c { color: var(--gold); margin-left: -0.34em; transform: translateY(0.14em); }
.mark-p, .mark-c { display: inline-block; }

/* nav logo pops: glow + lift on hover */
.brand .brand-mark {
  filter: drop-shadow(0 0 14px rgba(255, 154, 31, 0.55)) drop-shadow(0 0 34px rgba(255, 196, 46, 0.25));
  transition: transform 0.35s var(--ease), filter 0.35s;
}
.brand:hover .brand-mark {
  transform: scale(1.12) rotate(-4deg);
  filter: drop-shadow(0 0 20px rgba(255, 154, 31, 0.8)) drop-shadow(0 0 44px rgba(255, 196, 46, 0.4));
}

/* ===== nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(250, 246, 236, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--orange); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.is-current { color: var(--accent-ink); }

/* fixed nav must not cover section tops on anchor jumps */
section[id], [id='founders'], [id='work'], [id='services'] { scroll-margin-top: 96px; }

/* ===== hamburger + mobile menu ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--faint);
  border-radius: 50%;
  cursor: pointer;
  z-index: 320;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.menu-toggle.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(250, 246, 236, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 100px clamp(24px, 8vw, 56px) 48px;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.2;
  transition: color 0.25s;
}
.mobile-menu-links a.is-current, .mobile-menu-links a:hover { color: var(--orange); }
.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.mobile-menu-foot a { color: var(--accent-ink); overflow-wrap: anywhere; }
html.menu-locked { overflow: hidden; }

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn-fill { background: var(--grad); color: #14100a; }
.btn-fill:hover { transform: scale(1.04); }
.btn-ghost { border: 1px solid var(--faint); color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-big {
  font-size: clamp(14px, 2vw, 20px);
  padding: 20px clamp(18px, 3vw, 40px);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  justify-content: center;
}
.arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* top padding keeps centered content clear of the fixed nav on short viewports */
  padding: 110px clamp(20px, 5vw, 72px) 90px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 154, 31, 0.22) 0%, rgba(255, 196, 46, 0.08) 45%, transparent 70%);
  top: 10%; right: -10%;
  pointer-events: none;
  will-change: transform;
}
.hero-inner { width: 100%; will-change: transform; }
.hero-kicker {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(52px, 11vw, 160px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-sub { font-size: clamp(15px, 1.6vw, 19px); color: var(--muted); max-width: 480px; }
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint span {
  display: block;
  width: 48px; height: 1px;
  background: var(--faint);
  position: relative;
  overflow: hidden;
}
.scroll-hint span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  animation: hint-slide 2s var(--ease) infinite;
}
@keyframes hint-slide {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* split text helpers (JS wraps chars/lines in these) */
.split-chars .ch, .split-lines .ln { display: inline-block; will-change: transform; }
.split-lines .ln-mask { display: block; overflow: hidden; }
/* words are grouped so lines wrap between words, never mid-word */
.split-chars .wd-w { display: inline-block; white-space: nowrap; }
/* gradient must be clipped per-char: transformed children break
   background-clip:text on the ancestor, leaving the text invisible */
.grad .ch {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== marquee ===== */
.marquee { overflow: hidden; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 64px);
  text-transform: uppercase;
  padding: 18px 0;
  color: var(--text);
}
.marquee-track.slow { animation-duration: 36s; }
.marquee-track i {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.35em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== sections shared ===== */
section { position: relative; }
.section-head { padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 72px) clamp(40px, 6vh, 80px); }
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

/* ===== services ===== */
.services-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  padding: 0 clamp(20px, 5vw, 72px) 120px;
  align-items: start;
}
.svc-item {
  display: flex;
  gap: clamp(16px, 2.4vw, 36px);
  padding: clamp(28px, 4.4vh, 48px) 0;
  border-bottom: 1px solid var(--faint);
  opacity: 0.32;
  transition: opacity 0.5s var(--ease), padding-left 0.5s var(--ease);
}
.svc-item.is-active { opacity: 1; padding-left: 12px; }
.svc-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  padding-top: 10px;
}
.svc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.05;
  transition: color 0.4s;
}
.svc-item.is-active .svc-title {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.svc-blurb { color: var(--muted); margin: 10px 0 14px; max-width: 460px; }
.svc-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.services-media { position: sticky; top: 12vh; height: 76vh; }
.media-stack { position: relative; width: 100%; height: 100%; }
.media-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--faint);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  display: flex;
  flex-direction: column;
}
.media-card.is-active { opacity: 1; transform: scale(1); }
.media-visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}
.media-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
/* warm brand tint + bottom shade so the number stays readable */
.media-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 7, 0) 40%, rgba(12, 10, 7, 0.65) 100%),
    linear-gradient(135deg, rgba(255, 154, 31, 0.28), rgba(255, 196, 46, 0.08));
  mix-blend-mode: normal;
  pointer-events: none;
}
.media-visual span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(60px, 7vw, 120px);
  line-height: 1;
  padding: 0 24px 10px 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.media-card p {
  padding: 18px 24px;
  font-weight: 600;
  border-top: 1px solid var(--faint);
}
/* per-service gradients remain as the fallback while images load */
.mv-1 { background: linear-gradient(135deg, #ff9a1f, #b4520a); }
.mv-2 { background: linear-gradient(135deg, #ffc42e, #ff9a1f); }
.mv-3 { background: linear-gradient(135deg, #ff7a00, #ffc42e); }
.mv-4 { background: linear-gradient(135deg, #e07f0e, #6b3403); }
.mv-5 { background: linear-gradient(135deg, #ffb347, #c25e00); }
.mv-6 { background: linear-gradient(135deg, #ffd05e, #e07f0e); }
.mv-7 { background: linear-gradient(135deg, #ff8c1a, #ffca45); }

/* ===== showreel ===== */
.reel { padding: 12vh 0; display: flex; justify-content: center; }
.reel-inner {
  width: 100%;
  will-change: transform;
  transform-origin: center;
}
.reel-poster {
  position: relative;
  height: min(78vh, 720px);
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 154, 31, 0.35), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(255, 196, 46, 0.28), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--faint);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
}
.reel-badge {
  position: absolute;
  top: 24px; left: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-sound {
  position: absolute;
  bottom: 24px; right: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 46, 0.35);
  background: rgba(12, 10, 7, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: clamp(60px, 10vh, 120px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 84px);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1;
}
/* Qualitative stat values (phrases, not numbers) need a smaller, wrap-friendly
   size so they sit alongside the one animated number without overflowing. */
.stat-value--text {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.05;
}
.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Small note under a section title (e.g. "Case studies live soon"). */
.section-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* "Why work with us" grid reuses .team-card styling; four columns. */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
  padding: 0 clamp(20px, 5vw, 72px) 140px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* Footer contact email. */
.footer-mail {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.footer-mail:hover { color: var(--orange); }

/* ===== work ===== */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: 0 clamp(20px, 5vw, 72px) 140px;
}
.work-card { display: block; }
.work-visual {
  height: clamp(280px, 42vh, 460px);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--faint);
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-visual { transform: scale(0.985); }
.work-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 9vw, 150px);
  color: rgba(12, 10, 7, 0.32);
  transition: transform 0.6s var(--ease);
}
.work-mark em { font-style: normal; color: rgba(12, 10, 7, 0.18); margin-left: -0.3em; }
.work-card:hover .work-mark { transform: scale(1.1) rotate(-3deg); }
.wv-a { background: linear-gradient(120deg, #ff9a1f 0%, #7a3b04 100%); }
.wv-b { background: linear-gradient(120deg, #ffc42e 0%, #b4520a 100%); }
.wv-c { background: linear-gradient(120deg, #ff7a00 0%, #ffd05e 100%); }
.wv-d { background: linear-gradient(120deg, #e07f0e 0%, #2b1503 100%); }
.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 18px 6px 0;
}
.work-meta h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 26px); }
.work-meta span { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ===== process (horizontal scroll) ===== */
.process { overflow: hidden; }
.process-pin { padding-bottom: 10vh; }
.process-head { padding-bottom: clamp(30px, 5vh, 60px); }
.process-track {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  padding: 0 clamp(20px, 5vw, 72px);
  width: max-content;
  will-change: transform;
}
.process-card {
  width: clamp(280px, 34vw, 460px);
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(150deg, rgba(255, 154, 31, 0.55), rgba(255, 196, 46, 0.06) 55%) border-box;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: clamp(28px, 3vw, 44px);
  min-height: clamp(280px, 40vh, 380px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  transition: border-color 0.4s;
}
.process-card:hover { border-color: var(--orange); }
.process-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: auto;
}
.process-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; }
.process-card p { color: var(--muted); font-size: 15px; }

/* ===== CTA ===== */
.cta {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: center;
  overflow: hidden;
  padding: 0 20px;
}
.cta-glow {
  position: absolute;
  width: 70vw; height: 70vw;
  max-width: 1000px; max-height: 1000px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 154, 31, 0.14) 0%, transparent 65%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 9vw, 130px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.cta-title .line { display: block; overflow: hidden; }

.cta-mails {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}
.cta-mails a { transition: color 0.25s; }
.cta-mails a:hover { color: var(--accent-ink); }
.cta-mails span { color: var(--orange); font-size: 11px; }

/* ===== footer ===== */
.footer { border-top: 1px solid var(--faint); }
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 4vw, 56px) 34px;
  flex-wrap: wrap;
}
.footer-bar p { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--accent-ink); }

/* ===== responsive ===== */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .services-layout { grid-template-columns: 1fr; }
  .services-media { display: none; }
  .svc-item { opacity: 1; }
  .svc-item.is-active { padding-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 18px; }
  .brand-mark { font-size: 36px; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ===== scroll progress ===== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 250;
  pointer-events: none;
}

/* ===== hero particle canvas ===== */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner { position: relative; }

/* ===== rolling nav links ===== */
.roll { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; }
.roll-inner { display: block; transition: transform 0.4s var(--ease); }
.roll-inner span { display: block; height: 1.3em; }
.roll-inner span:last-child { color: var(--accent-ink); }
.roll:hover .roll-inner { transform: translateY(-1.3em); }

/* ===== manifesto ===== */
.manifesto {
  padding: clamp(100px, 16vh, 200px) clamp(20px, 8vw, 140px);
}
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.manifesto-text .wd { display: inline-block; }

/* ===== clients strip ===== */
.clients {
  padding: clamp(50px, 8vh, 90px) 0;
  border-bottom: 1px solid var(--faint);
  overflow: hidden;
}
.clients-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 34px;
}
.clients-track {
  font-size: clamp(20px, 2.6vw, 34px);
  padding: 0;
  align-items: center;
  opacity: 0.5;
}
.clients .cl { white-space: nowrap; transition: opacity 0.3s; margin-right: clamp(40px, 6vw, 100px); }
.c1 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; }
.c2 { font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.c3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.3em; }
.c4 { font-family: var(--font-body); font-weight: 500; text-transform: lowercase; }
.c5 { font-family: var(--font-display); font-weight: 600; }
.c6 { font-family: Georgia, serif; font-weight: 400; letter-spacing: 0.06em; }
.c7 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.22em; }
.c8 { font-family: var(--font-display); font-weight: 500; font-style: italic; }

/* ===== collective ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
  padding: 0 clamp(20px, 5vw, 72px) 140px;
}
.team-card {
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(160deg, rgba(255, 154, 31, 0.4), rgba(255, 196, 46, 0.05) 60%) border-box;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: clamp(22px, 2.4vw, 34px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  transition: transform 0.4s var(--ease);
}
.team-card:hover { transform: translateY(-6px); }
.team-count {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: auto;
}
.team-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.team-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ===== testimonials ===== */
.testimonials {
  padding: clamp(90px, 14vh, 180px) clamp(20px, 8vw, 140px);
  text-align: center;
  border-top: 1px solid var(--faint);
}
.testimonials .section-label { margin-bottom: 40px; }
.tst-stage { position: relative; min-height: clamp(220px, 30vh, 300px); }
.tst {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.tst.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tst-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.35;
  max-width: 900px;
  margin: 0 auto 26px;
}
.tst-who {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.tst-dots { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.tst-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.tst-dot.is-active { background: var(--orange); border-color: var(--orange); transform: scale(1.3); }

/* ===== work card tilt ===== */
.work-grid { perspective: 1200px; }
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ===== footer upgrade ===== */
.footer-giant {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 11.5vw, 190px);
  line-height: 0.95;
  text-align: center;
  letter-spacing: -0.02em;
  padding: clamp(50px, 9vh, 110px) 10px 0;
  background: linear-gradient(180deg, rgba(178, 96, 0, 0.9), rgba(255, 154, 31, 0.16));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.footer-giant em { font-style: normal; }
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(156, 84, 0, 0.4);
  color: var(--accent-ink);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 196, 46, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(255, 196, 46, 0); }
}
.footer-time { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ===== scrollbar ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d9cdb4; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-status { align-items: flex-start; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ===== section-more (link under grids) ===== */
.section-more { padding: 0 clamp(20px, 5vw, 72px) 140px; margin-top: -80px; }

/* ===== reduced motion / no-JS-libraries fallback =====
   The horizontal process rail is driven by scroll animation; when motion
   is off it becomes a native horizontal scroller so no card is lost. */
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint span::after { animation: none; }
  .marquee-track { animation-duration: 120s; }
  * { transition-duration: 0.01ms !important; }
  .preloader { display: none; }
  .process-pin { overflow-x: auto; }
}
html.no-anim .process-pin { overflow-x: auto; }
html.no-anim .preloader { display: none; }
