/* Newfront — site styles
   Palette and type come straight from brand/BRAND.md. */

@font-face { font-family: "Bricolage Local"; src: url("../fonts/BricolageGrotesque-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Local"; src: url("../fonts/InstrumentSans-600.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0C1B2E;
  --ink-2: #13253C;
  --ink-3: #1B3350;
  --sand: #F4EFE6;
  --sand-2: #EBE4D7;
  --sand-3: #E1D8C7;
  --gold: #E0A93A;
  --gold-2: #C9922B;
  --surf: #2E8B9A;
  --surf-2: #57A9B6;
  --surf-3: #A9D3DA;
  --slate: #5B6675;
  --slate-2: #B8C0CC;
  --white: #FFFFFF;

  --display: "Bricolage Grotesque", "Bricolage Local", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Instrument Local", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-dark-nav { }

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 0; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Grain + backdrop ---------- */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grain 1.4s steps(4) infinite;
  mix-blend-mode: multiply;
}
@keyframes grain { 0% { transform: translate(0,0);} 25% { transform: translate(-3%, 2%);} 50% { transform: translate(2%, -3%);} 75% { transform: translate(-1%, -1%);} 100% { transform: translate(0,0);} }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  font-size: 11.5px; color: var(--slate); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.on-ink .eyebrow { color: var(--slate-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px; border-radius: 999px; font-weight: 600; font-size: 16px; letter-spacing: .005em;
  background: var(--gold); color: var(--ink); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: 0 10px 30px -14px rgba(224,169,58,.9);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover { color: var(--sand); transform: translateY(-2px); box-shadow: 0 18px 40px -18px rgba(12,27,46,.6); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(12,27,46,.22); }
.btn.ghost::before { background: var(--ink); }
.btn.ghost:hover { color: var(--sand); box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-ink .btn.ghost { color: var(--sand); box-shadow: inset 0 0 0 1.5px rgba(244,239,230,.28); }
.on-ink .btn.ghost::before { background: var(--sand); }
.on-ink .btn.ghost:hover { color: var(--ink); }
.btn.big { padding: 24px 40px; font-size: 19px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
  color: var(--ink);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-scrolled { background: rgba(244,239,230,.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.nav.on-ink-page, .nav.over-ink { color: var(--sand); }
.nav.over-ink.is-scrolled { background: rgba(12,27,46,.72); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; }
.brand .word { width: 118px; height: auto; }
.brand .word-dark, .brand .mark-dark { display: none; }
.nav.over-ink .brand .word-light, .nav.over-ink .brand .mark-light { display: none; }
.nav.over-ink .brand .word-dark, .nav.over-ink .brand .mark-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { position: relative; font-weight: 600; font-size: 15px; letter-spacing: .01em; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 13px 22px; font-size: 15px; }
.nav-burger { display: none; width: 44px; height: 44px; position: relative; }
.nav-burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), opacity .3s; }
.nav-burger span:nth-child(1) { top: 16px; }
.nav-burger span:nth-child(2) { top: 26px; }
.menu-open .nav-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .nav-burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--sand);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) 48px;
  clip-path: circle(0 at calc(100% - 38px) 38px); transition: clip-path .9s var(--ease); pointer-events: none;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 38px) 38px); pointer-events: auto; }
.menu a.big-link { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; font-size: clamp(44px, 12vw, 88px); line-height: 1; padding: 6px 0; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.menu-open .menu a.big-link { opacity: 1; transform: none; }
.menu-open .menu a.big-link:nth-child(2) { transition-delay: .12s; }
.menu-open .menu a.big-link:nth-child(3) { transition-delay: .2s; }
.menu-open .menu a.big-link:nth-child(4) { transition-delay: .28s; }
.menu-open .menu a.big-link:nth-child(5) { transition-delay: .36s; }
.menu-open .menu a.big-link:nth-child(6) { transition-delay: .44s; }
.menu .menu-foot { margin-top: 36px; color: var(--slate-2); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.menu .menu-foot a { color: var(--gold); }
.menu .swell { position: absolute; inset: auto 0 0 0; width: 100%; height: 40vh; opacity: .35; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: calc(var(--nav-h) + 40px) 0 0; overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-sun {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(224,169,58,.55), rgba(224,169,58,.18) 45%, rgba(224,169,58,0) 70%);
  filter: blur(10px); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; padding-bottom: clamp(40px, 6vh, 72px); }
.hero h1 { font-size: clamp(44px, 6.9vw, 108px); max-width: 13ch; }
.hero h1 .accent { color: var(--surf); position: relative; display: inline-block; }
.hero .lede { font-size: clamp(17px, 1.35vw, 20px); color: #3B4655; max-width: 54ch; margin-top: 24px; line-height: 1.5; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-aside { justify-self: end; display: grid; gap: 14px; max-width: 360px; }
.hero-card {
  background: rgba(255,255,255,.55); border: 1px solid rgba(12,27,46,.08); border-radius: 18px; padding: 14px 18px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 50px -30px rgba(12,27,46,.45);
  display: block; transition: transform .5s var(--ease), border-color .3s;
}
a.hero-card:hover { transform: translateY(-2px); border-color: rgba(12,27,46,.2); }
.hero-card .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--slate); font-weight: 600; }
.hero-card .v { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: 24px; line-height: 1.05; margin-top: 6px; }
.hero-card .v small { font-family: var(--body); font-weight: 600; letter-spacing: 0; font-size: 14px; color: var(--slate); display: block; margin-top: 4px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue i { display: block; width: 1.5px; height: 40px; background: linear-gradient(var(--ink), transparent); animation: cue 1.6s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Proof strip */
.proof { position: relative; padding: 28px 0 0; border-top: 1px solid rgba(12,27,46,.1); }
.proof .wrap { display: flex; align-items: center; gap: 28px 44px; flex-wrap: wrap; }
.proof .label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--slate); }
.proof .logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.proof .logo { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 20px; color: var(--ink); opacity: .55; transition: opacity .4s; display: inline-flex; align-items: center; gap: 10px; }
.proof .logo:hover { opacity: 1; }
.proof .logo i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- Scallop edges (the awning) ---------- */
.scallop-top, .scallop-bottom { position: relative; }
.scallop-top::before, .scallop-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 26px; z-index: 2; pointer-events: none;
  background-color: var(--edge, var(--ink));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26' preserveAspectRatio='none'><path d='M0 26 V14 Q10 0 20 14 T40 14 V26 Z' fill='black'/></svg>") repeat-x;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26' preserveAspectRatio='none'><path d='M0 26 V14 Q10 0 20 14 T40 14 V26 Z' fill='black'/></svg>") repeat-x;
  -webkit-mask-size: 40px 26px; mask-size: 40px 26px;
}
.scallop-top::before { top: -25px; }
.scallop-bottom::after { bottom: -25px; transform: scaleY(-1); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.section.tight { padding: clamp(64px, 8vw, 110px) 0; }
.on-ink { background: var(--ink); color: var(--sand); }
.on-ink .lede, .on-ink .muted { color: var(--slate-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2 { font-size: clamp(38px, 5.6vw, 84px); }
.section-head .lede { font-size: clamp(17px, 1.3vw, 20px); color: var(--slate); max-width: 46ch; }
.h-xl { font-size: clamp(40px, 6.4vw, 96px); }
.h-lg { font-size: clamp(34px, 4.6vw, 64px); }
.h-md { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.025em; }
.muted { color: var(--slate); }
.gold { color: var(--gold); }
.surf { color: var(--surf); }

/* ---------- Split-text reveal ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(112%); will-change: transform; }
.split.is-in .w > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(28px); }
.no-js [data-reveal], .no-js .split .w > span { opacity: 1; transform: none; }

/* ---------- Work rail (pinned horizontal on desktop) ---------- */
.rail-section { overflow: hidden; }
.rail { display: flex; gap: clamp(20px, 2.5vw, 36px); will-change: transform; }
.rail .card-work { flex: 0 0 auto; height: clamp(340px, 56vh, 640px); width: auto; }
.rail-section.section { padding-top: clamp(64px, 9vh, 110px); padding-bottom: clamp(48px, 6vh, 80px); }
.rail-section .section-head { margin-bottom: clamp(24px, 4vh, 48px); }
.rail-section .section-head h2 { font-size: clamp(34px, 4.6vw, 64px); }
.card-work {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); color: var(--sand);
  aspect-ratio: 16 / 10.5; isolation: isolate; box-shadow: 0 40px 90px -50px rgba(12,27,46,.9);
  transform-style: preserve-3d;
}
.card-work .shot { position: absolute; inset: 0; z-index: 0; }
.card-work .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.card-work:hover .shot img { transform: scale(1.0); }
.card-work .veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12,27,46,0) 40%, rgba(12,27,46,.88) 100%); }
.card-work .meta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 36px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.card-work .meta h3 { font-size: clamp(28px, 3.4vw, 48px); }
.card-work .meta p { color: var(--slate-2); margin-top: 8px; max-width: 42ch; font-size: 15px; }
.card-work .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(244,239,230,.25); color: var(--sand); }
.sand .tag { border-color: rgba(12,27,46,.18); color: var(--ink); }
.card-work .go { width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; flex: 0 0 auto; transition: transform .5s var(--ease), background .3s; }
.card-work:hover .go { transform: rotate(-45deg) scale(1.06); }
.card-work .go svg { width: 22px; height: 22px; }
.card-work .num { position: absolute; z-index: 2; top: 24px; left: 28px; font-size: 12px; letter-spacing: .16em; font-weight: 600; color: var(--slate-2); }
.card-work .live { position: absolute; z-index: 2; top: 22px; right: 24px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 8px 12px; border-radius: 999px; background: rgba(12,27,46,.55); color: var(--sand); backdrop-filter: blur(8px); display: inline-flex; gap: 8px; align-items: center; }
.card-work .live i { width: 7px; height: 7px; border-radius: 50%; background: #58D68D; box-shadow: 0 0 0 0 rgba(88,214,141,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(88,214,141,.6);} 70% { box-shadow: 0 0 0 8px rgba(88,214,141,0);} 100% { box-shadow: 0 0 0 0 rgba(88,214,141,0);} }
.rail-end { flex: 0 0 auto; width: min(60vw, 520px); display: grid; align-content: center; gap: 22px; padding: 0 20px; }
.rail-end h3 { font-size: clamp(32px, 3.6vw, 52px); }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.steps .line { position: absolute; left: 0; right: 0; top: 34px; height: 3px; pointer-events: none; }
.step { position: relative; padding-top: 88px; }
.step .n { position: absolute; top: 0; left: 0; width: 68px; height: 68px; border-radius: 50%; background: var(--sand); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; box-shadow: 0 0 0 6px var(--ink); }
.step h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.03em; }
.step p { color: var(--slate-2); margin-top: 14px; max-width: 36ch; }
.step .fine { display: inline-block; margin-top: 18px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---------- Scroll-fill statement ---------- */
.statement { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(30px, 5.2vw, 76px); max-width: 22ch; }
.statement .fw { color: rgba(12,27,46,.16); transition: color .2s linear; }
.statement .fw.on { color: var(--ink); }
.statement .fw.gold.on { color: var(--gold-2); }
.on-ink .statement .fw { color: rgba(244,239,230,.16); }
.on-ink .statement .fw.on { color: var(--sand); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  position: relative; background: rgba(255,255,255,.55); border: 1px solid rgba(12,27,46,.08); border-radius: 20px; padding: 30px 28px 32px;
  overflow: hidden; transform-style: preserve-3d; transition: box-shadow .5s var(--ease), border-color .4s; min-height: 250px;
  display: flex; flex-direction: column; gap: 14px;
}
.feature:hover { box-shadow: 0 34px 70px -40px rgba(12,27,46,.55); border-color: rgba(12,27,46,.16); }
.feature .glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(224,169,58,.22), transparent 55%); opacity: 0; transition: opacity .4s; }
.feature:hover .glare { opacity: 1; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--gold); display: grid; place-items: center; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 24px; letter-spacing: -.03em; }
.feature p { color: var(--slate); font-size: 15.5px; margin-top: auto; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee .track span { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(34px, 5.4vw, 80px); line-height: 1; padding: 8px 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; }
.marquee .track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.marquee .track span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(12,27,46,.55); }
.on-ink .marquee .track span.o { -webkit-text-stroke-color: rgba(244,239,230,.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonial-free honesty band ---------- */
.plain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.plain div { border-top: 1.5px solid rgba(12,27,46,.14); padding-top: 18px; }
.on-ink .plain div { border-color: rgba(244,239,230,.16); }
.plain b { display: block; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 22px; }
.plain p { color: var(--slate); margin-top: 8px; font-size: 15px; }
.on-ink .plain p { color: var(--slate-2); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta .swell { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; z-index: -1; opacity: .9; }
.cta .inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; align-items: end; }
.cta h2 { font-size: clamp(46px, 8vw, 128px); }
.cta .side { display: grid; gap: 18px; justify-items: start; }
.cta .side .email { font-size: 18px; color: var(--slate-2); }
.cta .side .email a { color: var(--sand); border-bottom: 1.5px solid var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--sand); padding: 60px 0 32px; overflow: hidden; }
.footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 40px; }
.footer .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer .col b { display: block; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 12px; }
.footer .col a { display: block; padding: 4px 0; color: var(--sand); opacity: .85; }
.footer .col a:hover { opacity: 1; color: var(--gold); }
.footer .giant { width: 100%; height: auto; opacity: .95; margin-top: 20px; }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; color: var(--slate-2); font-size: 13px; }
.footer .lockup { width: 220px; }

/* ---------- Page hero (about / work) ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 10vh, 120px)) 0 clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(50px, 10vw, 150px); }
.page-hero .lede { font-size: clamp(18px, 1.6vw, 24px); color: var(--slate); max-width: 46ch; margin-top: 26px; }
.page-hero .hero-sun { top: -40vmax; right: -30vmax; }

/* ---------- Case study ---------- */
.case { position: relative; padding: clamp(56px, 8vw, 120px) 0; border-top: 1px solid rgba(12,27,46,.1); }
.case .grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.case.flip .grid > .stage { order: -1; }
.case h2 { font-size: clamp(40px, 5.4vw, 80px); }
.case .lede { color: var(--slate); margin-top: 18px; font-size: 17.5px; max-width: 46ch; }
.case dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 30px 0 0; }
.case dt { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.case dd { margin: 4px 0 0; font-weight: 600; }
.case .chips { display: flex; gap: 8px; margin-top: 8px; }
.case .chips i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(12,27,46,.14); }
.case .visit { margin-top: 30px; display: inline-flex; }
.stage { position: relative; aspect-ratio: 1 / .82; }
.stage .browser {
  position: absolute; left: 0; top: 6%; width: 86%; border-radius: 14px; overflow: hidden; background: var(--ink-2);
  box-shadow: 0 50px 100px -40px rgba(12,27,46,.7), 0 0 0 1px rgba(12,27,46,.08); will-change: transform;
}
.stage .browser .bar { height: 28px; background: #1B2A40; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.stage .browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(244,239,230,.25); }
.stage .browser .bar em { margin-left: 10px; font-style: normal; font-size: 10px; color: var(--slate-2); letter-spacing: .04em; background: rgba(0,0,0,.25); padding: 3px 10px; border-radius: 6px; }
.stage .browser img { width: 100%; height: auto; }
.stage .phone {
  position: absolute; right: 0; bottom: 0; width: 30%; max-width: 230px; border-radius: 34px; padding: 9px; background: #0A1526;
  box-shadow: 0 40px 80px -30px rgba(12,27,46,.9), inset 0 0 0 1.5px rgba(244,239,230,.15); will-change: transform;
}
.stage .phone .screen { border-radius: 26px; overflow: hidden; aspect-ratio: 390 / 844; background: #000; }
.stage .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stage .phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 34%; height: 18px; background: #0A1526; border-radius: 999px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-grid .sticky { position: sticky; top: calc(var(--nav-h) + 24px); }
.prose p { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.6; color: var(--ink); margin-bottom: 1.2em; }
.prose p.big { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(28px, 3vw, 44px); line-height: 1.08; color: var(--ink); margin-bottom: .8em; }
.on-ink .prose p { color: var(--slate-2); }
.on-ink .prose p.big { color: var(--sand); }
.headland { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); box-shadow: 0 50px 100px -50px rgba(12,27,46,.8); }
.headland canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.headland .cap { position: absolute; left: 22px; bottom: 20px; color: var(--sand); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .85; display: flex; gap: 10px; align-items: center; }
.headland .cap i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.value { border-radius: 20px; padding: 32px 30px; background: rgba(255,255,255,.55); border: 1px solid rgba(12,27,46,.08); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.value .n { font-family: var(--display); font-weight: 800; color: var(--gold-2); letter-spacing: -.02em; font-size: 14px; }
.value h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; }
.value p { color: var(--slate); font-size: 15.5px; }
.on-ink .value { background: rgba(255,255,255,.04); border-color: rgba(244,239,230,.1); }
.on-ink .value p { color: var(--slate-2); }
.on-ink .value .n { color: var(--gold); }

/* ---------- Page transition curtain + loader ---------- */
.curtain { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.curtain .sheet { position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: var(--ink); transform: translateY(101%); }
.curtain .sheet::before { content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26' preserveAspectRatio='none'><path d='M0 26 V14 Q10 0 20 14 T40 14 V26 Z' fill='black'/></svg>") repeat-x; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26' preserveAspectRatio='none'><path d='M0 26 V14 Q10 0 20 14 T40 14 V26 Z' fill='black'/></svg>") repeat-x; -webkit-mask-size: 40px 26px; mask-size: 40px 26px; }
.curtain .sheet::after { content: ""; position: absolute; left: 0; right: 0; bottom: -25px; height: 26px; background: var(--ink); transform: scaleY(-1);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26' preserveAspectRatio='none'><path d='M0 26 V14 Q10 0 20 14 T40 14 V26 Z' fill='black'/></svg>") repeat-x; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 26' preserveAspectRatio='none'><path d='M0 26 V14 Q10 0 20 14 T40 14 V26 Z' fill='black'/></svg>") repeat-x; -webkit-mask-size: 40px 26px; mask-size: 40px 26px; }
.curtain .mark { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); opacity: 0; }
.curtain.is-loading .sheet { transform: none; }
.curtain.is-loading .mark { opacity: 1; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; z-index: 300; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--gold); pointer-events: none; mix-blend-mode: multiply; transition: transform .35s var(--ease), background .3s, opacity .3s; opacity: 0; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { transform: scale(3.2); background: rgba(224,169,58,.55); }
.cursor.is-text { transform: scaleX(.25) scaleY(2.2); }
.on-ink-cursor .cursor { mix-blend-mode: screen; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; display: none; }
.sticky-cta .btn { width: 100%; justify-content: center; box-shadow: 0 16px 40px -10px rgba(12,27,46,.5); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .marquee .track, .scroll-cue i, .card-work .live i { animation: none !important; }
  [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; }
  .statement .fw { color: inherit !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .rail { flex-direction: column; }
  .rail .card-work { width: 100%; height: auto; }
  .rail-end { width: 100%; padding: 24px 0 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps .line { display: none; }
  .step { padding-top: 0; padding-left: 88px; }
  .cta .inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav-links, .nav .btn { display: none; }
  .nav-burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-aside { justify-self: stretch; max-width: none; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 88px); }
  .section-head { grid-template-columns: 1fr; }
  .case .grid { grid-template-columns: 1fr; }
  .case.flip .grid > .stage { order: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .sticky { position: static; }
  .values { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .footer { padding-bottom: 96px; }
  .scroll-cue { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .plain { grid-template-columns: 1fr; }
  .hero-aside { grid-template-columns: 1fr; }
  .hero .actions .btn { width: 100%; justify-content: center; }
  .card-work { aspect-ratio: 4 / 5; }
  .card-work .meta { flex-direction: column; align-items: flex-start; }
  .card-work .go { display: none; }
  .stage { aspect-ratio: 1 / 1; }
  .stage .browser { width: 100%; }
  .stage .phone { width: 38%; }
  .case dl { grid-template-columns: 1fr; }
  .footer .cols { gap: 32px; }
}

/* ---------- Pricing ---------- */
.bill-toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(12,27,46,.07); border: 1px solid rgba(12,27,46,.08); margin: 0 auto clamp(28px, 4vw, 48px); position: relative; left: 50%; transform: translateX(-50%); }
.bill-toggle button { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--slate); transition: background .35s var(--ease), color .3s; }
.bill-toggle button.is-on { background: var(--ink); color: var(--sand); }
.bill-toggle .save { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 5px 9px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.compare { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; max-width: 1180px; margin-inline: auto; }
.compare .row { display: contents; }
.compare .pl { padding: 18px 18px 18px 0; border-top: 1.5px solid rgba(12,27,46,.12); font-weight: 600; font-size: 15.5px; color: var(--ink); display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.compare .pl small { font-weight: 400; color: var(--slate); font-size: 13.5px; }
.compare .pl.top { border-top: 0; }
.compare .ph, .compare .pv { background: rgba(255,255,255,.6); border-inline: 1px solid rgba(12,27,46,.09); }
.compare .ph { position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 3vw, 40px) clamp(22px, 2.6vw, 36px) 30px; border-top: 1px solid rgba(12,27,46,.09); border-radius: 24px 24px 0 0; }
.compare .pv { padding: 18px clamp(22px, 2.6vw, 36px); border-top: 1.5px solid rgba(12,27,46,.1); font-size: 15px; color: #3B4655; display: flex; flex-direction: column; gap: 3px; justify-content: center; }
.compare .pv b { color: var(--ink); font-weight: 600; font-size: 16px; }
.compare .pv span { font-size: 13.5px; color: var(--slate); }
.compare .last .pv { border-bottom: 1px solid rgba(12,27,46,.09); border-radius: 0 0 24px 24px; padding-bottom: 28px; }
.compare .b.ph, .compare .b.pv { background: var(--ink); color: var(--sand); border-color: var(--ink); }
.compare .b.pv { border-top-color: rgba(244,239,230,.14); color: var(--slate-2); }
.compare .b.pv b { color: var(--sand); }
.compare .b.pv span { color: var(--slate-2); }
.compare .ph.b::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(600px circle at 90% -10%, rgba(224,169,58,.22), transparent 55%); }
.compare .flag { position: static; align-self: flex-start; margin-bottom: -8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: var(--gold); color: var(--ink); }
.compare .name { font-size: clamp(28px, 2.8vw, 38px); }
.compare .who { color: var(--slate); margin-top: 8px; font-size: 15.5px; }
.compare .b .who { color: var(--slate-2); }
.compare .price { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1.5px solid rgba(12,27,46,.12); }
.compare .b .price { border-color: rgba(244,239,230,.16); }
.compare .amount { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(56px, 5.6vw, 80px); }
.compare .amount sup { font-size: .42em; line-height: 1; margin-right: 3px; align-self: flex-start; margin-top: .22em; color: var(--gold-2); }
.compare .b .amount sup { color: var(--gold); }
.compare .amount b { font-size: 1em; font-weight: 800; }
.compare .amount small { font-family: var(--body); font-weight: 600; letter-spacing: 0; font-size: 16px; color: var(--slate); margin-left: 6px; }
.compare .b .amount small { color: var(--slate-2); }
.compare .per { font-size: 14px; color: var(--slate); }
.compare .b .per { color: var(--slate-2); }
.compare .amount.bump b { animation: tick .5s var(--ease); }
@keyframes tick { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.compare .ph .btn { justify-content: center; margin-top: auto; }
.compare .b .btn { background: var(--gold); color: var(--ink); }
.compare .b .btn::before { background: var(--sand); }
.compare .b .btn:hover { color: var(--ink); }
.tick { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); position: relative; }
.tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 4px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plans-fine { text-align: center; color: var(--slate); font-size: 14px; max-width: 64ch; margin: 28px auto 0; }
.faq { max-width: 860px; }
.faq details { border-top: 1.5px solid rgba(12,27,46,.14); }
.faq details:last-child { border-bottom: 1.5px solid rgba(12,27,46,.14); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(20px, 2vw, 26px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 4h2v16h-2z M4 11h16v2H4z' fill='black'/></svg>") center / 16px no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 4h2v16h-2z M4 11h16v2H4z' fill='black'/></svg>") center / 16px no-repeat, linear-gradient(#000 0 0); mask-composite: exclude; transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); padding: 0 0 26px; max-width: 60ch; font-size: 16.5px; }
@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .compare .pl { grid-column: 1 / -1; padding: 22px 0 8px; border-top: 0; }
  .compare .pl.top { display: none; }
  .compare .ph { padding: 22px 18px 24px; gap: 16px; }
  .compare .pv { padding: 12px 18px; font-size: 14px; }
  .compare .last .pv { padding-bottom: 22px; }
  .compare .ph .btn { padding: 16px 14px; font-size: 14.5px; }
  .compare .name { font-size: 26px; }
  .compare .amount { font-size: 48px; }
  .bill-toggle { left: 0; transform: none; display: flex; width: 100%; }
  .bill-toggle button { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
  .bill-toggle button { padding: 11px 12px; font-size: 14px; }
  .bill-toggle .save { display: none; }
}
