/* ==========================================================================
   Fruitstone — design system
   ========================================================================== */

:root {
  --bg: #0a0c09;
  --bg-2: #0f120e;
  --surface: #151913;
  --surface-2: #1b2018;
  --line: rgba(236, 244, 226, 0.09);
  --line-strong: rgba(236, 244, 226, 0.18);
  --text: #eef2e8;
  --muted: #9aa392;
  --faint: #626a5c;
  --accent: #9be15d;
  --accent-deep: #8bc34a;
  --accent-ink: #0a0c09;
  --glow: rgba(155, 225, 93, 0.22);

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Film grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.h-display {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 600;
  margin: 0;
}
.h-section {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 600;
  margin: 18px 0 0;
}
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 46ch; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s, box-shadow .4s;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px) rotate(-45deg); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -10px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -10px rgba(155,225,93,.45); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,.05); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 12, 9, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 21px; letter-spacing: -0.03em; }
.brand img { width: 24px; height: auto; }
.brand b { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 15px; color: var(--muted); transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { width: 16px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.nav.open .menu-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.open .menu-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; background: rgba(10,12,9,.97);
    border-bottom: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .3s, transform .4s var(--ease);
  }
  .nav-links a { font-size: 22px; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none !important; color: var(--text); }
  .nav.open { background: rgba(10,12,9,.97); }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-bg .orb {
  position: absolute; width: 900px; height: 900px; border-radius: 50%;
  left: 50%; top: -380px; transform: translateX(-30%);
  background: radial-gradient(circle, rgba(155,225,93,.20), transparent 62%);
  filter: blur(20px); animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateX(-60%) translateY(60px); } }

.hero-top { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
.hero h1 {
  font-size: clamp(3.2rem, 10.2vw, 9.6rem);
  line-height: 0.9; letter-spacing: -0.05em; font-weight: 600; margin: 26px 0 0;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
.hero h1 .serif { font-size: 1.08em; letter-spacing: -0.03em; color: var(--accent); padding-right: .05em; }
@keyframes rise { to { transform: none; } }
.hero-side { max-width: 380px; padding-bottom: 14px; opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
.hero-side p { color: var(--muted); font-size: 1.1rem; margin: 0 0 26px; }
.hero-side .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { max-width: 520px; }
  .wall { margin-top: 48px; }
}
.hero h1 .line { white-space: nowrap; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.03);
  font-size: 13.5px; color: var(--muted);
  opacity: 0; animation: fade 1s .05s var(--ease) forwards;
}
.hero-badge .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.hero-badge .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink); animation: pulse 2s infinite; }
@keyframes pulse { 50% { transform: scale(.55); } }

/* Screen wall */
.wall {
  position: relative; margin-top: 72px; height: clamp(340px, 42vw, 580px);
  perspective: 1600px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-composite: intersect;
  opacity: 0; animation: fade 1.4s .6s var(--ease) forwards;
}
.wall-tilt {
  position: absolute; left: 50%; top: 0; width: 160%;
  display: flex; flex-direction: column; gap: 22px;
  transform: translateX(-50%) rotateX(28deg) rotateZ(-8deg) translateY(-4%);
  transform-origin: 50% 0;
}
.wall-row { display: flex; gap: 22px; width: max-content; animation: marquee 70s linear infinite; }
.wall-row.rev { animation-direction: reverse; animation-duration: 80s; }
.wall-row.slow { animation-duration: 95s; }
.phone {
  flex: none; width: clamp(150px, 15vw, 210px); aspect-ratio: 1125 / 2436;
  border-radius: 26px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), inset 0 0 0 4px rgba(0,0,0,.6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Ticker / stats ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); position: relative; z-index: 2; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 38px 28px 34px; border-left: 1px solid var(--line); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-num { font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.proof-num sup { font-size: .45em; color: var(--accent); vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.proof-label { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 24ch; }
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item { padding: 28px 20px; }
  .proof-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 13vw, 170px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lede { justify-self: end; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; } .section-head .lede { justify-self: start; } }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.work-card { grid-column: span 6; display: flex; flex-direction: column; }
.work-card.w7 { grid-column: span 7; }
.work-card.w5 { grid-column: span 5; }
.work-card.w12 { grid-column: span 12; }
.work-media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  height: clamp(300px, 33vw, 480px);
}
.work-card.w12 .work-media { height: clamp(320px, 40vw, 580px); }
.work-media > img, .work-media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .6s;
}
.work-card:hover .work-media > img, .work-card:hover .work-media > video { transform: scale(1.04); }
.work-media .tagline {
  position: absolute; left: 18px; top: 18px; z-index: 2;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(10,12,9,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12); color: var(--text);
}
.chip.lime { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.work-media .go {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease), opacity .3s;
}
.work-media .go svg { width: 22px; height: 22px; }
.work-card:hover .go { transform: none; opacity: 1; }
.work-meta { display: flex; justify-content: space-between; gap: 20px; padding: 22px 4px 0; align-items: baseline; }
.work-meta h3 { margin: 0; font-size: clamp(1.4rem, 2.1vw, 1.85rem); letter-spacing: -0.025em; font-weight: 600; line-height: 1.15; }
.work-meta .yr { font-family: var(--font-mono); font-size: 13px; color: var(--faint); white-space: nowrap; }
.work-card p { margin: 8px 4px 0; color: var(--muted); max-width: 52ch; }
.work-card .result { margin: 14px 4px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--text); }
.work-card .result span::before { content: "↗ "; color: var(--accent); }

/* Custom media compositions */
.mc-fan { background: radial-gradient(120% 90% at 50% 0%, #1d2a3a, #0b0f15 70%); }
.mc-fan img { object-fit: cover; }
.mc-phones { display: flex; align-items: center; justify-content: center; gap: 4%; padding: 6% 8% 0; }
.mc-phones .phone { width: 27%; border-radius: 18px; }
.mc-phones .phone:nth-child(2) { transform: translateY(-6%); }
.mc-phones .phone:nth-child(odd) { transform: translateY(8%); }
.mc-ieo, .case-cover.mc-ieo { background: #fff; }
.mc-ieo img.ph { position: absolute; inset: auto; width: auto; height: 92%; left: 50%; top: 50%; transform: translate(-50%, -50%); object-fit: contain; }
.work-card:hover .mc-ieo img.ph { transform: translate(-50%, -52%) scale(1.04); }
.mc-cues, .case-cover.mc-cues { background: #fff; }
.mc-cues .phone { border-color: rgba(0,0,0,.08); box-shadow: 0 30px 60px -25px rgba(0,0,0,.35); }

@media (max-width: 900px) {
  .work-card, .work-card.w7, .work-card.w5, .work-card.w12 { grid-column: span 12; }
  .work-media, .work-card.w12 .work-media { height: auto; aspect-ratio: 16 / 11; }
}

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 90px 1.1fr 1fr 40px; gap: 32px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--line); position: relative;
  transition: padding .5s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: linear-gradient(90deg, rgba(155,225,93,.07), transparent 70%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.svc:hover::before { opacity: 1; }
.svc-num { font-family: var(--font-mono); color: var(--faint); font-size: 14px; padding-top: 10px; }
.svc h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; transition: color .3s; }
.svc:hover h3 { color: var(--accent); }
.svc p { margin: 6px 0 16px; color: var(--muted); }
.svc .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc .tags span { font-size: 13px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.svc-icon { width: 40px; height: 40px; color: var(--accent); padding-top: 6px; opacity: .9; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  .svc-num { padding: 0; }
  .svc-icon { display: none; }
}

/* ---------- Story ---------- */
.story { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.story-quote {
  font-size: clamp(1.9rem, 4.3vw, 3.9rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500;
  margin: 26px 0 0; max-width: 22ch;
}
.story-quote .w { color: var(--faint); transition: color .4s; }
.story-quote .w.on { color: var(--text); }
.story-quote .w.on.hl { color: var(--accent); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: clamp(64px, 8vw, 110px); align-items: start; }
.story-copy p { color: var(--muted); font-size: 1.1rem; margin: 0 0 18px; max-width: 52ch; }
.story-copy p strong { color: var(--text); font-weight: 500; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.principle {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease);
}
.principle:hover { border-color: rgba(155,225,93,.4); transform: translateY(-4px); }
.principle svg { width: 30px; height: 30px; color: var(--accent); }
.principle h4 { margin: 18px 0 6px; font-size: 1.2rem; letter-spacing: -0.02em; font-weight: 600; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

/* Ring mark decoration */
.ring-mark {
  position: absolute; right: -180px; top: 60px; width: 620px; height: 620px; opacity: .06; pointer-events: none;
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); }
.step .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step h4 { margin: 46px 0 8px; font-size: 1.45rem; letter-spacing: -0.025em; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.step .bar { position: absolute; left: 26px; right: 26px; top: 64px; height: 1px; background: var(--line-strong); overflow: hidden; }
.step .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.step.in .bar::after { transform: none; }
.step:nth-child(2) .bar::after { transition-delay: .2s; }
.step:nth-child(3) .bar::after { transition-delay: .4s; }
.step:nth-child(4) .bar::after { transition-delay: .6s; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Stack marquee ---------- */
.stack { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.stack-label { text-align: center; margin-bottom: 28px; }
.stack-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.stack:hover .stack-track { animation-play-state: paused; }
.stack-track span {
  font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; color: var(--faint);
  padding: 0 34px; display: inline-flex; align-items: center; gap: 34px; white-space: nowrap; transition: color .3s;
}
.stack-track span::after { content: "✦"; font-size: .5em; color: var(--accent); }
.stack-track span:hover { color: var(--text); }
.stack-wrap { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 1000px; height: 1000px; left: -300px; bottom: -600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(155,225,93,.14), transparent 60%); pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); position: relative; }
.contact h2 { font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: .95; letter-spacing: -0.045em; font-weight: 600; margin: 22px 0 28px; }
.contact-info { display: grid; gap: 22px; margin-top: 44px; }
.contact-info div { display: grid; gap: 2px; }
.contact-info .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.contact-info a, .contact-info address { font-style: normal; font-size: 1.15rem; }
.contact-info a { border-bottom: 1px solid var(--line-strong); justify-self: start; transition: border-color .3s, color .3s; }
.contact-info a:hover { color: var(--accent); border-color: var(--accent); }

.form { padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 13.5px; color: var(--muted); padding: 0; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 14px 16px; font-size: 16px; transition: border-color .25s, box-shadow .25s; outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(155,225,93,.12); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label {
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer;
  font-size: 14px; color: var(--text); transition: all .25s; user-select: none;
}
.pills input:checked + label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pills input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 13.5px; color: var(--faint); margin: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-top p { color: var(--muted); max-width: 36ch; margin: 16px 0 0; }
.footer-cols { display: flex; gap: clamp(40px, 6vw, 96px); flex-wrap: wrap; }
.footer-cols h5 { margin: 0 0 14px; font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { color: var(--muted); transition: color .25s; }
.footer-cols a:hover { color: var(--accent); }
.footer-giant {
  margin: 72px 0 0; font-size: clamp(4rem, 19vw, 17rem); font-weight: 600; letter-spacing: -0.06em; line-height: .8;
  background: linear-gradient(180deg, rgba(238,242,232,.14), rgba(238,242,232,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
  white-space: nowrap; text-align: center;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ==========================================================================
   Case study pages
   ========================================================================== */
.case-hero { padding: 150px 0 60px; position: relative; }
.crumb { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; transition: color .25s; }
.crumb:hover { color: var(--text); }
.crumb svg { width: 16px; height: 16px; transform: rotate(180deg); }
.case-hero h1 { font-size: clamp(3rem, 9vw, 8rem); line-height: .92; letter-spacing: -0.05em; font-weight: 600; margin: 28px 0 0; }
.case-hero .lede { margin-top: 28px; max-width: 54ch; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.case-meta .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.case-meta .v { font-size: 1.02rem; }
.case-meta a.v { color: var(--accent); border-bottom: 1px solid rgba(155,225,93,.35); }
@media (max-width: 800px) { .case-meta { grid-template-columns: 1fr 1fr; } }

.case-cover { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; }
.case-cover > img, .case-cover > video { width: 100%; height: auto; }
.case-cover.phones { display: flex; justify-content: center; gap: 3%; padding: 6% 5% 0; aspect-ratio: 16/9; overflow: hidden; }
.case-cover.phones .phone { width: 19%; }
.case-cover.phones .phone:nth-child(even) { transform: translateY(10%); }

.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.case-stat { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.case-stat .proof-num { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.case-stat .proof-label { max-width: none; }
@media (max-width: 900px) { .case-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .case-stats { grid-template-columns: 1fr; } }

.case-body { display: grid; grid-template-columns: 300px 1fr; gap: 64px; }
.case-body + .case-body { margin-top: 80px; }
.case-body h2 { margin: 0; font-size: 1rem; font-family: var(--font-mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); position: sticky; top: 110px; }
.case-body .prose p { font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.45; letter-spacing: -0.015em; margin: 0 0 22px; color: var(--text); }
.case-body .prose p.small { font-size: 1.1rem; color: var(--muted); letter-spacing: 0; line-height: 1.65; }
@media (max-width: 900px) { .case-body { grid-template-columns: 1fr; gap: 18px; } .case-body h2 { position: static; } }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature { padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .4s; }
.feature:hover { border-color: rgba(155,225,93,.35); }
.feature .n { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.feature h3 { margin: 36px 0 10px; font-size: 1.6rem; letter-spacing: -0.025em; font-weight: 600; line-height: 1.15; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.gallery { display: flex; justify-content: safe center; gap: 18px; overflow-x: auto; padding: 8px var(--gutter) 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.gallery .phone { width: clamp(180px, 22vw, 260px); scroll-snap-align: start; }
.gallery-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery-wide figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery-wide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .gallery-wide { grid-template-columns: 1fr; } }

.quote-block { text-align: center; max-width: 980px; margin: 0 auto; }
.quote-block blockquote { margin: 0; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: -0.025em; font-weight: 500; }
.quote-block blockquote::before { content: "“"; display: block; font-family: var(--font-serif); color: var(--accent); font-size: 2.4em; line-height: .6; margin-bottom: 18px; }
.quote-block cite { display: block; margin-top: 28px; font-style: normal; color: var(--muted); font-size: 15px; }

.next {
  display: block; border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 120px) 0; position: relative; overflow: hidden;
}
.next .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.next .t { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; }
.next .t span { font-size: clamp(2.6rem, 8vw, 7rem); font-weight: 600; letter-spacing: -0.05em; line-height: .95; transition: color .4s; }
.next .t .arrow { flex: none; width: clamp(64px, 8vw, 110px); height: clamp(64px, 8vw, 110px); border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .4s, border-color .4s, transform .6s var(--ease); }
.next .t .arrow svg { width: 40%; height: 40%; }
.next:hover .t span { color: var(--accent); }
.next:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .wall-row, .stack-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
