/* Surge Digital Marketing
   Calm, Apple-like layout in Surge colors: ink black, Surge green #00C062 and the lime glow from the logo.
   Geist for text, Instrument Serif italic for accents. Scroll effects are driven by site.js (--p, --hp, --z). */
:root {
  --bg: #ffffff;
  --soft: #f5f5f7;
  --ink: #0c0f0d;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --body-ink: #3a3d3b;
  --line: #d9dbd8;
  --green: #00c062;
  --green-ink: #007a3d;
  --lime: #d9f46f;
  --night: #070908;
  --m-left: var(--ink);
  --m-right: var(--green);
  --radius: 28px;
  --radius-sm: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --pad: clamp(20px, 5vw, 48px);
  --max: 1180px;
  color-scheme: light;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 em, h2 em { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); margin: 0 0 10px; }

/* ---------- Buttons and links */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--sans); letter-spacing: -0.01em; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .35s var(--ease);
}
.pill:hover { text-decoration: none; transform: translateY(-1px); }
.pill:active { transform: scale(.98); }
.pill-dark { background: var(--ink); color: #fff; }
.pill-dark:hover { background: #000; }
.pill-green { background: var(--green); color: #fff; }
.pill-green:hover { background: #00ad58; box-shadow: 0 10px 30px -10px rgba(0, 192, 98, .6); }
.pill-line { border-color: var(--line); color: var(--ink); background: #fff; }
.pill-line:hover { border-color: var(--ink); }
.pill-sm { min-height: 32px; padding: 0 14px; font-size: 13px; }
.pill-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.text-link { color: var(--green-ink); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
.text-link > span { transition: transform .35s var(--ease); display: inline-block; }
a:hover .text-link > span, .text-link:hover > span { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }

/* ---------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(0, 0, 0, .08); background: rgba(255, 255, 255, .82); }
.site-header.on-dark { background: rgba(7, 9, 8, .72); border-bottom-color: rgba(255, 255, 255, .08); --m-left: #fff; }
.site-header.on-dark .brand, .site-header.on-dark .site-nav a { color: #f5f5f7; }
.site-header.on-dark .header-cta { background: var(--green); }
.site-header.on-dark .nav-toggle span { background: #fff; }
.site-header { transition: border-color .4s, background-color .4s; }
.site-header .brand, .site-header .site-nav a { transition: color .4s, opacity .2s; }
.header-row { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.site-nav a { color: var(--ink); font-size: 14px; opacity: .78; transition: opacity .2s; position: relative; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; text-decoration: none; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--green); }
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; margin-right: -8px; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 56px; margin: 0;
    background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    max-height: 0; overflow: hidden; transition: max-height .5s var(--ease);
  }
  .site-nav.is-open { max-height: 340px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--pad) 22px; }
  .site-nav a { display: block; padding: 12px 0; font-size: 26px; font-weight: 600; letter-spacing: -0.025em; opacity: 1; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--green-ink); }
}

/* ---------- Home hero */
.hero { --hp: 0; padding: clamp(56px, 9vw, 110px) 0 0; text-align: center; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -18%; width: min(1100px, 140vw); aspect-ratio: 1.6; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(217, 244, 111, .38), rgba(0, 192, 98, .08) 55%, transparent 75%);
  pointer-events: none; z-index: -1;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; opacity: calc(1 - var(--hp) * 1.4); transform: translateY(calc(var(--hp) * -60px)); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 26px;
  padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid rgba(0, 0, 0, .06);
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  opacity: 0; animation: fade 1s var(--ease) .05s forwards;
}
.badge-mark { width: 20px; height: auto; }
.hero-slogan {
  margin: 0; font-weight: 600; font-size: clamp(48px, 9.2vw, 120px); line-height: .98;
  letter-spacing: -0.05em; color: var(--ink); max-width: 11ch;
}
.hero-slogan em { display: block; color: var(--green); letter-spacing: -0.03em; font-size: 1.08em; line-height: 1; padding-bottom: .04em; }
.hero-slogan .w {
  display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(10px);
  animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + 160ms);
}
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }
.hero h1 {
  margin: 28px auto 0; max-width: 30ch; font-size: clamp(19px, 2.1vw, 24px); font-weight: 400;
  letter-spacing: -0.015em; line-height: 1.35; color: var(--ink-2);
  opacity: 0; animation: fade 1s var(--ease) .75s forwards;
}
.hero .actions { justify-content: center; opacity: 0; animation: fade 1s var(--ease) .95s forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Velocity plane: rows of work tiles on a tilted surface. It drifts sideways, speeds up with
   scroll speed, and flattens toward the viewer as the hero scrolls away (--hp). */
.velocity {
  position: relative; margin-top: clamp(48px, 7vw, 88px); height: clamp(340px, 46vw, 600px);
  perspective: 1400px; perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 55%, transparent), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
  opacity: 0; animation: fade 1.4s var(--ease) 1.1s forwards;
}
.v-plane {
  position: absolute; left: 50%; top: 0; width: 170%; transform-origin: 50% 0;
  transform: translateX(-50%) rotateX(calc(28deg - var(--hp) * 20deg)) rotateZ(calc(-6deg + var(--hp) * 4deg)) translateY(calc(-30px - var(--hp) * 40px)) scale(calc(1 + var(--hp) * .12));
  display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 22px);
}
.v-row { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.6vw, 22px); width: max-content; will-change: transform; }
.v-row li {
  flex: none; width: clamp(200px, 22vw, 320px); aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--soft);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -18px rgba(0, 0, 0, .25);
}
.v-row img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Statement: words light up as you scroll (site.js wraps them in .sw) */
.statement { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 10vw, 140px); }
.statement-text {
  max-width: 920px; margin: 0 auto; text-align: center;
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.18; font-weight: 600; letter-spacing: -0.03em;
}
.statement-text a { color: var(--ink); background: linear-gradient(var(--green), var(--green)) 0 92% / 100% 2px no-repeat; }
.statement-text a:hover { color: var(--green-ink); text-decoration: none; }
.statement-text .muted { color: var(--ink-2); }
.js .statement-text.reveal { opacity: 1; transform: none; }
.sw { transition: opacity .5s var(--ease); opacity: .16; }
.sw.on { opacity: 1; }

/* ---------- Surge scene: sticky dark moment with the M mark (Surge's own signature) */
.surge-scene { --p: 0; position: relative; height: 240vh; background: var(--night); color: #fff; }
.scene-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; text-align: center; }
.scene-glow {
  position: absolute; left: 50%; top: 50%; width: 90vmax; aspect-ratio: 1; transform: translate(-50%, -50%) scale(calc(.6 + var(--p) * .5));
  background: radial-gradient(closest-side, rgba(217, 244, 111, .22), rgba(0, 192, 98, .14) 45%, transparent 72%);
  opacity: calc(.3 + var(--p) * .9);
}
/* Glass M loop sits under the glow and fades in as the scene opens. */
.scene-film { position: absolute; inset: 0; opacity: calc(.15 + var(--p) * .5); transform: scale(calc(1.12 - var(--p) * .12)); }
.scene-film video { width: 100%; height: 100%; object-fit: cover; }
.scene-film::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7, 9, 8, .35), rgba(7, 9, 8, .92) 75%); }
.scene-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 var(--pad); }
.scene-mark {
  --m-left: #fff; width: clamp(110px, 16vw, 200px); height: auto;
  transform: translateY(calc((1 - min(var(--p) * 2.2, 1)) * 22vh)) scale(calc(2.6 - min(var(--p) * 2.2, 1) * 1.6));
}
.scene-title {
  color: #fff; font-size: clamp(42px, 7vw, 92px); letter-spacing: -0.045em; line-height: 1; margin-top: 40px;
  opacity: clamp(0, (var(--p) - .3) * 6, 1); transform: translateY(calc(clamp(0, (.47 - var(--p)) * 6, 1) * 30px));
}
.scene-title em { color: var(--green); }
.scene-lines { list-style: none; margin: 34px 0 0; padding: 0; font-size: clamp(19px, 2.2vw, 26px); letter-spacing: -0.02em; line-height: 1.4; }
.scene-lines li { color: #f5f5f7; opacity: clamp(0, (var(--p) - var(--at)) * 7, 1); transform: translateY(calc(clamp(0, (var(--at) + .14 - var(--p)) * 7, 1) * 14px)); }
.scene-lines li:nth-child(1) { --at: .5; }
.scene-lines li:nth-child(2) { --at: .62; }
.scene-lines li:nth-child(3) { --at: .74; }
.scene-cta { margin-top: 36px; opacity: clamp(0, (var(--p) - .82) * 8, 1); }

/* ---------- Sections */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head p { margin: 18px auto 0; color: var(--ink-2); font-size: clamp(18px, 1.6vw, 21px); max-width: 40ch; }
.more { margin: 48px 0 0; text-align: center; }

/* ---------- Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: var(--radius); color: var(--ink); min-height: 420px;
  grid-column: span 2; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.bento-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); }
.bento-0, .bento-1 { grid-column: span 3; min-height: 520px; }
.bento-copy { padding: 34px 34px 0; }
.bento-copy h3 { font-size: clamp(22px, 2.2vw, 28px); }
.bento-copy p { color: var(--ink-2); margin: 10px 0 12px; font-size: 16px; }
.bento-media { margin-top: auto; padding: 22px 34px 0; }
.bento-media img, .bento-media video {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px 14px 0 0;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 20px 40px -20px rgba(0, 0, 0, .3);
  transition: transform .9s var(--ease);
}
.bento-card:hover .bento-media img, .bento-card:hover .bento-media video { transform: scale(1.035) translateY(-4px); }
.bento-0 { background: var(--ink); color: #fff; }
.bento-0::before { content: ""; position: absolute; right: -20%; top: -30%; width: 80%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(0, 192, 98, .35), transparent 70%); pointer-events: none; }
.bento-0 h3 { color: #fff; }
.bento-0 .bento-copy p { color: #a1a1a6; }
.bento-0 .text-link { color: var(--green); }
.bento-1 { background: var(--lime); }
.bento-1 .bento-copy p { color: #3d4a1c; }
.bento-1 .text-link { color: var(--ink); }

/* ---------- Showcase: one big zooming still, then a row of three */
.showcase { padding: clamp(80px, 11vw, 150px) 0 0; }
.showcase-head { text-align: center; max-width: 820px; margin-bottom: clamp(36px, 5vw, 60px); }
.showcase-head p { margin: 16px auto 0; color: var(--ink-2); font-size: clamp(18px, 1.6vw, 21px); }
.showcase-media, .studio-media { margin: 0 auto; width: min(1400px, calc(100% - 2 * var(--pad))); border-radius: var(--radius); overflow: hidden; background: var(--night); transform-origin: 50% 50%; }
.showcase-media img, .showcase-media video, .studio-media video { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.showcase-row, .studio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.studio-row { grid-template-columns: 1fr 1fr; }
.showcase-row figure, .studio-row figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.showcase-row img, .showcase-row video, .studio-row img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.showcase-row figure:hover img, .studio-row figure:hover img { transform: scale(1.04); }
.studio-film { padding: 0 0 clamp(64px, 9vw, 120px); }
@media (max-width: 760px) {
  .showcase-row, .studio-row { grid-template-columns: 1fr; }
  .showcase-media img, .showcase-media video, .studio-media video { aspect-ratio: 4 / 3; }
}

/* ---------- Logo marquee */
.logo-wall { padding: clamp(64px, 8vw, 110px) 0; overflow: hidden; }
.logo-wall .eyebrow { margin-bottom: 34px; }
.marquee { -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; width: 200px; height: 136px; border-radius: var(--radius-sm); background: var(--soft); overflow: hidden; }
.marquee-track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { to { transform: translateX(calc(-50% - 11px)); } }

/* ---------- Work cards */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-grid-home { grid-template-columns: repeat(3, 1fr); }
.work-card a { display: block; color: var(--ink); }
.work-card a:hover { text-decoration: none; }
.work-media { border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work-card a:hover .work-media img { transform: scale(1.04); }
.work-meta { padding: 20px 4px 0; }
.work-meta h3 { font-size: 24px; }
.work-meta p:not(.eyebrow) { color: var(--ink-2); margin: 8px 0 12px; font-size: 16px; }
.work-card-big { grid-column: 1 / -1; }
.work-card-big a { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: center; }
.work-card-big .work-media { aspect-ratio: 16 / 10; }
.work-card-big .work-meta { padding: 0; }
.work-card-big h3 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.work-card-big .work-meta p:not(.eyebrow) { font-size: 18px; }

/* Large media eases from slightly inset to full size as it scrolls in (site.js sets --z). */
.zoom { --z: 1; transform: scale(calc(.9 + var(--z) * .1)); transform-origin: 50% 100%; }

/* ---------- Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 34px; }
.step-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 26px;
  border-radius: 50%; background: var(--ink); font: italic 400 26px/1 var(--serif); color: var(--green);
}
.steps p { color: var(--ink-2); margin: 10px 0 0; font-size: 16px; }

/* ---------- FAQ */
.faq { max-width: 860px; }
.faq h2 { text-align: center; margin-bottom: 44px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: clamp(18px, 1.8vw, 21px); font-weight: 500; letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 300; font-size: 28px; color: var(--ink-2); transition: transform .4s var(--ease), color .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--green); }
.faq-list details p { color: var(--ink-2); margin: 0; padding: 0 40px 26px 0; }
.faq-list details[open] p { animation: fade .5s var(--ease); }

/* ---------- Closing CTA */
.closing { padding: clamp(90px, 12vw, 170px) 0; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(217, 244, 111, .35), rgba(0, 192, 98, .06) 50%, transparent 75%); }
.closing-inner h2 { font-size: clamp(42px, 7vw, 92px); letter-spacing: -0.045em; line-height: 1; }
.closing-inner h2 em { display: inline-block; }
.closing-inner p { color: var(--ink-2); font-size: clamp(18px, 1.6vw, 21px); margin: 22px auto 0; max-width: 34ch; }
.closing .actions { justify-content: center; }

/* ---------- Newsletter and footer */
.newsletter { background: var(--soft); padding: 56px 0; }
.nl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { font-size: clamp(26px, 3vw, 34px); }
.newsletter p { color: var(--ink-2); margin: 8px 0 0; }
.nl-inline { display: flex; gap: 10px; }
.nl-inline input { flex: 1; min-width: 0; }
.form-status { font-size: 14px; margin: 10px 0 0; min-height: 1.2em; }
.form-status.is-ok { color: var(--green-ink); }
.form-status.is-err { color: #c2242e; }

.site-footer { background: var(--soft); color: var(--ink-2); font-size: 13px; padding: 0 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding: 40px 0 34px; border-top: 1px solid var(--line); }
.footer-about p { margin: 12px 0 0; max-width: 32ch; }
.footer-about p:first-of-type { font-size: 17px; color: var(--ink); font-weight: 500; letter-spacing: -0.02em; }
.footer-about p:first-of-type em { color: var(--green-ink); font-size: 1.1em; }
.footer-h { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover, .site-footer .brand { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-base p { margin: 0; }
.footer-base a { margin-left: 18px; }
.socials { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 10px; }
.site-footer .socials li { margin: 0; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); transition: background .25s, color .25s; }
.socials a:hover { background: var(--green); color: #fff; }
.socials svg { width: 18px; height: 18px; }

/* Google preferred sources: Google's own button when its script loads, our deeplink pill otherwise. */
.pref-source { margin-top: 22px; }
.pref-source p { font-size: 12px; color: var(--ink-3); margin: 0 0 8px; max-width: none; }
.footer-about .pref-source p:first-of-type { font-size: 12px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.pref-link { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink) !important; font-weight: 500; font-size: 13px; transition: border-color .25s, transform .35s var(--ease); }
.pref-link:hover { border-color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.pref-link svg { width: 16px; height: 16px; }
.pref-source.has-google .pref-link { display: none; }

/* ---------- Inner pages */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -12%; top: -40%; width: min(760px, 110vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(217, 244, 111, .32), rgba(0, 192, 98, .06) 55%, transparent 75%);
  pointer-events: none; z-index: -1;
}
.page-hero h1 { font-size: clamp(42px, 7vw, 84px); letter-spacing: -0.045em; line-height: 1; max-width: 16ch; animation: fade .9s var(--ease) both; }
.page-lede { margin: 24px 0 0; max-width: 34ch; font-size: clamp(21px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -0.02em; color: var(--ink-2); animation: fade .9s var(--ease) .12s both; }
.page-lede em { color: var(--green-ink); }
.crumbs ol { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: var(--ink-2); }
.chips { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; animation: fade .9s var(--ease) .24s both; }
.chips a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 14px; transition: background .25s, color .25s; }
.chips a:hover { background: var(--ink); color: #fff; text-decoration: none; }

.prose { max-width: 62ch; }
.prose p { color: var(--body-ink); }
.prose h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 22px; }
.lede { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink) !important; }

.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.facts { margin: 0; background: var(--soft); border-radius: var(--radius); padding: 10px 30px; }
.facts div, .project-facts div, .contact-card dl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child, .contact-card dl div:last-child { border-bottom: 0; }
dt { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
dd { margin: 0; font-weight: 500; }
.founder { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.founder-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }

.svc-rows { padding-bottom: clamp(40px, 6vw, 80px); }
.svc-row {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center;
  padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px;
}
.svc-row:first-child { border-top: 0; }
.svc-flip .svc-text { order: 2; }
.svc-text h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; }
.svc-text > p { color: var(--body-ink); font-size: 18px; }
.svc-text .eyebrow { margin-top: 26px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--body-ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.svc-media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--soft); position: relative; color: var(--ink); }
.svc-media img, .svc-media video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
a.svc-media:hover img, a.svc-media:hover video { transform: scale(1.04); }
a.svc-media:hover { text-decoration: none; }
.svc-media > span {
  position: absolute; left: 16px; bottom: 16px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

.estimate { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.estimate h2 { margin-bottom: 18px; }
.estimate p { color: var(--ink-2); font-size: 18px; }

/* ---------- Forms */
.form { background: #fff; border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); }
.contact-grid .form { border: 1px solid var(--line); }
.form-title { font-size: 26px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field-full { grid-column: 1 / -1; }
.opt { font-weight: 400; color: var(--ink-3); }
input, select, textarea {
  width: 100%; font: 400 17px/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .25s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 192, 98, .15); }
[aria-invalid="true"] { border-color: #c2242e; }
.nl-inline input { border-radius: 999px; padding: 12px 20px; }

.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-card { background: var(--ink); color: #e8e8ed; border-radius: var(--radius); padding: clamp(26px, 3vw, 36px); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; right: -30%; bottom: -30%; width: 90%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(0, 192, 98, .3), transparent 70%); pointer-events: none; }
.contact-card h2 { font-size: 24px; margin-bottom: 8px; color: #fff; }
.contact-card dl { margin: 0; position: relative; }
.contact-card dl div { border-color: rgba(255, 255, 255, .14); }
.contact-card dt { color: #a1a1a6; }
.contact-card a { color: var(--green); }
.contact-card .socials { position: relative; }
.contact-card .socials a { background: rgba(255, 255, 255, .1); color: #fff; }
.contact-card .socials a:hover { background: var(--green); }
.contact-note { color: #a1a1a6; font-size: 14px; margin: 20px 0 0; position: relative; }

/* ---------- Project pages */
.project-hero h1 { max-width: 20ch; font-size: clamp(38px, 6vw, 72px); }
.project-facts { display: flex; flex-wrap: wrap; gap: 0 48px; margin: 34px 0 0; animation: fade .9s var(--ease) .12s both; }
.project-facts div { border-bottom: 0; border-top: 1px solid var(--line); min-width: 140px; }
.project-body { display: grid; gap: clamp(40px, 6vw, 72px); }
.project-lead { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.project-lead img { width: 100%; max-height: 760px; object-fit: contain; margin: 0 auto; }
.project-prose { margin: 0 auto; font-size: 19px; }
.gallery-h { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 32px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.g-item { margin: 0; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: #fff; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.g-open:hover img { transform: scale(1.05); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: clamp(48px, 6vw, 72px); }
.pager a { display: block; padding: 26px 30px; border-radius: var(--radius); background: var(--soft); color: var(--ink); transition: background .3s, transform .5s var(--ease); }
.pager a:hover { background: #ebebef; text-decoration: none; transform: translateY(-2px); }
.pager a > span:last-child { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pager a[rel="next"] { text-align: right; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--radius-sm); margin: 0 auto; }
.lightbox-cap { color: #e8e8ed; text-align: center; font-size: 14px; margin: 14px 0 0; }
.lightbox-close { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; cursor: pointer; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(48px, 9vw, 110px); letter-spacing: -0.05em; }
.notfound p { color: var(--ink-2); font-size: 20px; margin: 18px 0 0; }
.notfound .actions { justify-content: center; }

/* ---------- Scroll reveal (site.js adds .js to <html> and .in when in view) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(3n+2), .js .steps .reveal:nth-child(2), .js .work-grid .reveal:nth-child(3n+2), .js .gallery .reveal:nth-child(3n+2) { transition-delay: .1s; }
.js .bento .reveal:nth-child(3n), .js .steps .reveal:nth-child(3), .js .work-grid .reveal:nth-child(3n), .js .gallery .reveal:nth-child(3n) { transition-delay: .2s; }

/* ---------- Responsive */
@media (max-width: 1000px) {
  .bento-card, .bento-0, .bento-1 { grid-column: span 3; min-height: 440px; }
  .work-grid-home { grid-template-columns: repeat(2, 1fr); }
  .work-card-big a { grid-template-columns: 1fr; gap: 0; }
  .work-card-big .work-meta { padding: 22px 4px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento-card, .bento-0, .bento-1 { grid-column: auto; min-height: 0; }
  .bento-copy { padding: 26px 24px 0; }
  .bento-media { padding: 20px 24px 0; }
  .work-grid, .work-grid-home { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .steps li { padding: 26px; }
  .nl-row, .about-grid, .founder, .svc-row, .estimate, .contact-grid { grid-template-columns: 1fr; }
  .svc-flip .svc-text { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .nl-inline { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-base a { margin: 0 18px 0 0; }
  .pager { grid-template-columns: 1fr; }
  .pager a[rel="next"] { text-align: left; }
  .velocity { height: 320px; }
  .v-plane { width: 260%; }
  .v-row li { width: 170px; }
  .marquee-track li { width: 150px; height: 102px; }
  .faq-list details p { padding-right: 0; }
  .surge-scene { height: 200vh; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* ---------- Reduced motion: everything visible, nothing moves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-slogan .w, .hero h1, .hero .actions, .velocity, .badge { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track li:has(img[aria-hidden]) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .sw { opacity: 1; }
  .surge-scene { height: auto; }
  .scene-sticky { position: relative; height: auto; padding: 120px 0; }
  .surge-scene, .hero { --p: 1 !important; --hp: 0 !important; }
  .zoom { --z: 1 !important; }
}
::view-transition-group(*) { animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Loops size from CSS, not their width/height attributes. */
video.vid { display: block; height: auto; background: var(--night); }
.scene-film video.vid { height: 100%; }
.svc-example { margin: 26px 0 0; }

/* Landing pages: five-step process */
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps-5 li { padding: 26px; }
@media (max-width: 1000px) { .steps-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps-5 { grid-template-columns: 1fr; } }
