/* ==========================================================================
   Sparrow — site styles
   Palette: warm white paper, navy ink, blue-gray lines, haint-blue accents,
   logo blue used sparingly.
   ========================================================================== */

:root {
  color-scheme: light;
  --paper: #FBFBF9;
  --white: #FFFFFF;
  --ink: #0F1B26;
  --ink-2: #33414E;
  --muted: #5E6D7A;
  --faint: #8C99A4;
  --line: #DEE5EA;
  --line-strong: #C9D4DC;
  --wash: #F0F5F8;
  --haint: #D5E9EF;
  --haint-deep: #B7D7E1;
  --blue: #0F74DE;
  --blue-deep: #0A4FB8;
  --navy: #0C1822;
  --navy-2: #13222E;
  --danger: #B42318;

  --f-display: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-hero: clamp(3rem, 1.2rem + 7.4vw, 6.4rem);
  --fs-statement: clamp(2.1rem, 1.1rem + 3.6vw, 4.25rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.4vw, 3.4rem);
  --fs-h3: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  --fs-lede: clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .75rem;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1240px;
  --section: clamp(88px, 6rem + 5vw, 176px);
  --r: 6px;
  --r-lg: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--haint); color: var(--ink); }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-wash { background: var(--wash); }
section[id], [id="top"] { scroll-margin-top: calc(var(--header-h) + 8px); }

.eyebrow {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.eyebrow-light { color: var(--haint-deep); }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.028em; max-width: 18ch; }
.dot { color: var(--blue); }
.fine { font-size: var(--fs-small); color: var(--muted); }
.coords { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.5rem;
  font-family: var(--f-display); font-size: 1rem; font-weight: 500; letter-spacing: -.005em;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--r);
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary:hover { --bg: #1C2E3D; --bd: #1C2E3D; }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn-ghost:hover { --bg: var(--white); --bd: var(--ink); }
.btn-light { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn-light:hover { --bg: var(--haint); --bd: var(--haint); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; gap: .45em; align-items: center;
  font-family: var(--f-display); font-weight: 500; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.text-link:hover { border-color: var(--ink); gap: .7em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(251, 251, 249, .9);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 29px; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: translate(2px, -2px); }
.brand-word { font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: .24em; text-transform: uppercase; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 32px; }
.nav-list a:not(.btn) {
  font-family: var(--f-display); font-size: .9375rem; color: var(--ink-2); text-decoration: none;
  position: relative; padding-block: 6px;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-list a:not(.btn):hover { color: var(--ink); }
.nav-list a:not(.btn):hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--ink); }
.nav-cta-mobile { display: none; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r);
    background: var(--white); cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after {
    display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative;
    transition: transform .3s var(--ease), background-color .2s;
  }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; }
  .menu-bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { margin: 0; }
  .nav-list {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(15, 27, 38, .18);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav-list.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a:not(.btn) { display: block; padding: 16px 0; font-size: 1.125rem; color: var(--ink); }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: block; border: 0 !important; padding-top: 20px; }
  .nav-cta-mobile .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 3rem + 5vw, 128px); }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: start;
}
.hero-eyebrow { grid-column: 1 / -1; margin-bottom: clamp(24px, 3vw, 40px); }
.hero-title {
  grid-column: 1 / -1; font-size: var(--fs-hero); line-height: .98; letter-spacing: -.045em; font-weight: 500;
}
.hero-title .line { display: block; }
.hero-title { grid-column: 1 / span 8; grid-row: 2; }
.hero-eyebrow { grid-row: 1; }
.hero-copy { grid-column: 1 / span 6; grid-row: 3; margin-top: clamp(36px, 4vw, 56px); display: grid; gap: 18px; max-width: 34rem; }
.hero-lede { font-family: var(--f-display); font-size: var(--fs-lede); line-height: 1.3; color: var(--ink); letter-spacing: -.015em; font-weight: 500; }
.hero-copy .actions { margin-top: 14px; }
.hero-figure { grid-column: 9 / -1; grid-row: 2 / span 2; align-self: center; }

/* ── Sam, in the hero ──────────────────────────────────────────────────
   Takes the corner the blueprint illustration used to hold. */
.hero-media { grid-column: 9 / -1; grid-row: 2 / span 2; align-self: center; }
.hero-media-frame { position: relative; }
.hero-video-el {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--ink); object-fit: cover;
}
/* The sound control, in the frame rather than in a control bar.
   A muted autoplay only works if turning the sound on is obvious — the native
   mute button is a 16px icon that appears on hover, which is not obvious. */
.sound-toggle {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px 8px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(10,16,24,.62); backdrop-filter: blur(6px);
  color: #fff; font-family: var(--f-display); font-size: var(--fs-label);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.sound-toggle:hover { background: rgba(10,16,24,.8); border-color: rgba(255,255,255,.5); }
.sound-toggle:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.sound-icon { width: 14px; height: 14px; display: block; position: relative; flex: none; }
/* Speaker cone, drawn rather than fetched. */
.sound-icon::before {
  content: ""; position: absolute; left: 0; top: 3px;
  border-style: solid; border-width: 4px 5px 4px 0;
  border-color: transparent currentColor transparent transparent;
}
/* The slash, shown only while muted. */
.sound-icon::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 1.5px;
  background: currentColor; transform: rotate(-38deg); transform-origin: left center;
}
.sound-toggle[aria-pressed="true"] .sound-icon::after { display: none; }

.hero-media figcaption {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 12px;
  font-family: var(--f-display); font-size: var(--fs-label);
  letter-spacing: .14em; text-transform: uppercase;
}
.hero-media-who { color: var(--ink); font-weight: 600; }
.hero-media-what { color: var(--faint); }

/* ── The contact form, now a section of its own at the foot of the page ── */
.home-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.home-contact-lede { margin-top: 14px; color: var(--muted); max-width: 32rem; }
.hero-form-panel { max-width: 34rem; }
.hero-form {
  display: grid; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 28px);
}
.hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-form .btn-submit { justify-self: start; margin-top: 4px; }
.success-compact { padding: clamp(20px, 2.4vw, 28px); }

@media (max-width: 900px) {
  .home-contact-grid { grid-template-columns: 1fr; }
  .hero-form-panel { max-width: none; }
  .hf-row { grid-template-columns: 1fr; }
}

.blueprint {
  position: relative; aspect-ratio: 1 / .86; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background-color: var(--white);
  background-image:
    linear-gradient(var(--wash) 1px, transparent 1px),
    linear-gradient(90deg, var(--wash) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px;
  display: grid; place-items: center; overflow: hidden;
}
.bp-bird { width: 78%; height: auto; overflow: visible; }
.bp-lines { stroke: var(--blue); }
.bp-lines polygon { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }
.bp-tick { position: absolute; background: var(--line-strong); }
.bp-tick-a { left: 22px; right: 22px; bottom: 22px; height: 1px; }
.bp-tick-a::before, .bp-tick-a::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--line-strong); }
.bp-tick-a::before { left: 0; } .bp-tick-a::after { right: 0; }
.bp-tick-b { top: 22px; bottom: 22px; right: 22px; width: 1px; }
.bp-tick-b::before, .bp-tick-b::after { content: ""; position: absolute; left: -4px; height: 1px; width: 9px; background: var(--line-strong); }
.bp-tick-b::before { top: 0; } .bp-tick-b::after { bottom: 0; }
.bp-caption {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-family: var(--f-display); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}

/* Load sequence: draw the lines, then build the facets */
@media (prefers-reduced-motion: no-preference) {
  .bp-lines polygon { animation: bp-draw 1.5s var(--ease) .2s both, bp-fade .8s ease 2.1s forwards; }
  .bp-lines polygon:nth-child(2) { animation-delay: .35s, 2.1s; }
  .bp-lines polygon:nth-child(3) { animation-delay: .5s, 2.1s; }
  .bp-lines polygon:nth-child(4) { animation-delay: .65s, 2.1s; }
  .bp-fill polygon { animation: bp-build .7s var(--ease) both; }
  .bp-fill polygon:nth-child(1) { animation-delay: 1.4s; }
  .bp-fill polygon:nth-child(2) { animation-delay: 1.48s; }
  .bp-fill polygon:nth-child(3) { animation-delay: 1.56s; }
  .bp-fill polygon:nth-child(4) { animation-delay: 1.64s; }
  .bp-fill polygon:nth-child(5) { animation-delay: 1.72s; }
  .bp-fill polygon:nth-child(6) { animation-delay: 1.8s; }
  .bp-fill polygon:nth-child(7) { animation-delay: 1.88s; }
  .bp-fill polygon:nth-child(8) { animation-delay: 1.96s; }
  .bp-fill polygon:nth-child(9) { animation-delay: 2.04s; }
  .hero-title .line, .hero-copy, .hero-eyebrow { animation: rise .9s var(--ease) both; }
  .hero-title .line:nth-child(2) { animation-delay: .08s; }
  .hero-copy { animation-delay: .18s; }
}
@keyframes bp-draw { from { stroke-dashoffset: 1; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes bp-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes bp-build { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(64px, 7vw, 112px);
  padding-block: 22px; background-image: linear-gradient(var(--line), var(--line)); background-repeat: no-repeat; background-size: calc(100% - 2 * var(--gutter)) 1px; background-position: center top;
  font-family: var(--f-display); font-size: var(--fs-small); color: var(--muted);
}
.hero-foot p:first-child { color: var(--ink); }

@media (max-width: 1100px) {
  /* One column below this width, so grid rows become running order. */
  .hero-title, .hero-copy { grid-column: 1 / -1; }
  .hero-media { grid-column: 1 / -1; grid-row: 4; margin-top: 44px; width: 100%; max-width: 560px; }
}

/* ---------- Builds ----------
   A stage and a menu. The stage shows the selected build's walkthrough, or
   says it is coming — which is the honest state until the recordings exist,
   and looks deliberate rather than broken while they don't. */
.builds-layout {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 3vw, 44px);
  align-items: start; margin-top: clamp(40px, 5vw, 72px);
}
.builds-stage {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--navy); overflow: hidden; aspect-ratio: 16 / 9;
}
.builds-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--navy); }
.builds-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 10px; padding: 24px; text-align: center;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.builds-mark { width: 40px; height: 34px; color: var(--haint-deep); opacity: .85; }
.builds-mark use { fill: currentColor; }
.builds-placeholder-title { font-family: var(--f-display); font-size: var(--fs-h3); color: var(--white); letter-spacing: -.02em; }
.builds-placeholder-note {
  font-family: var(--f-display); font-size: var(--fs-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--haint-deep);
}

.builds-menu { display: grid; gap: 12px; }
.build-panel {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; gap: 6px; padding: 18px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  font: inherit; color: inherit;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.build-panel:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.build-panel.is-active { border-color: var(--blue); background: var(--wash); }
.build-name { font-family: var(--f-display); font-size: 1.1rem; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.build-desc { font-size: var(--fs-small); color: var(--muted); }
.build-cue {
  font-family: var(--f-display); font-size: var(--fs-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-deep); margin-top: 2px;
}
.build-panel[data-video=""] .build-cue { color: var(--faint); }

@media (max-width: 900px) {
  .builds-layout { grid-template-columns: 1fr; }
}

/* ---------- Statements (Problem / ROI) ---------- */
.statement {
  font-size: var(--fs-statement); line-height: 1.08; letter-spacing: -.035em; max-width: 20ch;
}
.statement .muted-line { display: block; color: var(--faint); margin-bottom: .1em; }

.problem-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px;
  margin-top: clamp(56px, 6vw, 96px);
}
.problem-copy { grid-column: 1 / span 4; display: grid; gap: 14px; align-content: start; max-width: 30rem; }
.problem-copy .kicker { font-family: var(--f-display); color: var(--ink); font-weight: 500; }
.questions { grid-column: 6 / -1; counter-reset: q; }
.questions li {
  font-family: var(--f-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.25; letter-spacing: -.02em;
  color: var(--ink); padding: 20px 0; border-top: 1px solid var(--line);
}
.questions li:last-child { border-bottom: 1px solid var(--line); }
.questions .q-last { color: var(--blue-deep); }
.turn {
  display: flex; align-items: center; gap: .45em; flex-wrap: wrap;
  margin-top: clamp(96px, 10vw, 168px);
  font-family: var(--f-display); font-weight: 500; color: var(--ink);
  font-size: var(--fs-statement); line-height: 1.05; letter-spacing: -.035em;
}
.turn-mark { width: 1.05em; height: .9em; flex: none; }
@media (max-width: 860px) {
  .problem-copy, .questions { grid-column: 1 / -1; }
}

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 18px; margin-bottom: clamp(48px, 6vw, 88px); }

/* ---------- Core offer ---------- */
.offer-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.offer-step {
  display: grid; gap: 14px; align-content: start;
  padding: 32px clamp(20px, 3vw, 44px) 8px 0;
  border-top: 1px solid var(--ink);
}
.offer-step + .offer-step { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.step-num { font-family: var(--f-display); font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.step-word { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.75rem); line-height: 1; letter-spacing: -.04em; margin: 8px 0 10px; }
.list-label { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.dash-list { display: grid; gap: 6px; }
.dash-list li { position: relative; padding-left: 22px; color: var(--ink); font-size: var(--fs-small); }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--blue); }
.closer {
  margin-top: clamp(72px, 8vw, 128px); padding-top: 36px; border-top: 1px solid var(--line);
  font-family: var(--f-display); color: var(--ink); font-weight: 500;
  font-size: clamp(1.6rem, 1rem + 2.2vw, 2.9rem); line-height: 1.12; letter-spacing: -.03em; max-width: 24ch;
}
@media (max-width: 860px) {
  .offer-steps { grid-template-columns: 1fr; gap: 48px; }
  .offer-step, .offer-step + .offer-step { padding: 28px 0 0; border-left: 0; }
}

/* ---------- What we build ---------- */
.services { border-top: 1px solid var(--ink); }
.service {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4.5fr) minmax(0, 5.5fr); gap: 24px;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(-1 * min(var(--gutter), 28px)); z-index: -1;
  background: var(--white); border-radius: var(--r);
  opacity: 0; transition: opacity .35s var(--ease);
}
.build { position: relative; z-index: 0; }
.service:hover::before { opacity: 1; }
.service-tag {
  font-family: var(--f-display); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding-top: .55em;
}
.service-title { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.02em; transition: transform .35s var(--ease); }
.service:hover .service-title { transform: translateX(6px); }
.service-desc { max-width: 38rem; display: grid; gap: 16px; justify-items: start; }
.service-custom { background: var(--haint); border-radius: var(--r-lg); padding: 40px clamp(20px, 3vw, 36px); margin-top: 24px; border: 0; }
.service-custom::before { display: none; }
.service-custom .service-tag { color: var(--blue-deep); }
.agnostic {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); gap: 24px; align-items: baseline;
  margin-top: clamp(56px, 6vw, 88px);
}
.agnostic-label { white-space: nowrap; font-family: var(--f-display); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); }
.agnostic-text { font-family: var(--f-display); color: var(--ink); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; max-width: 30ch; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .service-tag { padding-top: 0; }
  .service-custom { padding: 28px 20px; }
  .agnostic { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- ROI ---------- */
.roi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 6vw, 96px); }
.roi-item { display: grid; gap: 18px; align-content: start; padding-top: 28px; border-top: 1px solid var(--haint-deep); }
.roi-word { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.2rem); line-height: 1; letter-spacing: -.04em; }
.roi-item p { max-width: 24rem; }
.roi-close {
  margin-top: clamp(64px, 7vw, 112px); max-width: 40rem;
  font-family: var(--f-display); font-size: var(--fs-lede); line-height: 1.35; color: var(--ink); letter-spacing: -.015em;
}
@media (max-width: 860px) { .roi-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Process timeline ---------- */
.timeline {
  --node: 14px;
  position: relative;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px;
  padding-top: 44px;
}
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--node) / 2); height: 1px;
}
.timeline::before { background: var(--line-strong); }
.timeline::after { background: var(--blue); transform-origin: left; transform: scaleX(1); transition: transform 1.8s var(--ease) .2s; }
.timeline.pre::after { transform: scaleX(0); }
/* Scroll-linked: site.js sets --tl-p from 0 to 1 across the section, so the
   rule is drawn by the reader rather than on a timer. The short transition is
   only there to smooth the gap between scroll frames.
   Without JS, or with reduced motion, .is-live is never added and the line is
   simply drawn at full width — the fallback is the finished state, not a blank
   one. */
.timeline.is-live::after { transform: scaleX(var(--tl-p, 0)); transition: transform .12s linear; }
.timeline.is-live .tl-node { transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.timeline.is-live .tl-node.is-on { background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.timeline.is-live .tl-node-final.is-on { background: var(--white); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 16%, transparent); }
.tl-step { position: relative; display: grid; gap: 10px; align-content: start; font-size: var(--fs-small); }
.tl-node {
  position: absolute; top: -44px; left: 0; width: var(--node); height: var(--node);
  border-radius: 50%; background: var(--white); border: 1px solid var(--blue); z-index: 1;
}
.tl-node-final { width: 46px; height: 46px; top: -60px; border-radius: 50%; background: var(--white); display: grid; place-items: center; border-color: var(--blue); }
.tl-node-final svg { width: 26px; height: 22px; }
.tl-num { font-family: var(--f-display); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.tl-title { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.2; }
.tl-qs { display: grid; gap: 6px; margin-top: 4px; }
.tl-qs li { padding-left: 14px; position: relative; color: var(--ink-2); }
.tl-qs li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 1px; background: var(--blue); }
.tl-final {
  background: var(--haint); border-radius: var(--r-lg); padding: 22px 20px 26px;
  margin-top: -22px;
}
.tl-final .tl-node-final { left: 20px; top: -82px; }
.tl-final .tl-title { font-size: 1.6rem; }
.tl-strong { font-family: var(--f-display); color: var(--ink); font-weight: 500; font-size: 1.05rem; line-height: 1.35; }

@media (max-width: 1080px) {
  .timeline { grid-template-columns: 1fr; gap: 40px; padding-top: 0; padding-left: 44px; }
  .timeline::before, .timeline::after { left: calc(var(--node) / 2); right: auto; top: 6px; bottom: 30px; width: 1px; height: auto; }
  .timeline::after { transform-origin: top; transform: scaleY(1); }
  .timeline.pre::after { transform: scaleY(0); }
  .tl-node { top: 4px; left: -44px; }
  .tl-step { max-width: 34rem; }
  .tl-final { margin-top: 0; padding: 24px; }
  .tl-final .tl-node-final { left: -60px; top: 12px; }
}

/* ---------- Charleston ---------- */
.chs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: center; }
.chs-copy { grid-column: 1 / span 6; display: grid; gap: 16px; }
.chs-copy .h2 { margin: 6px 0 14px; }
.chs-copy p:not(.eyebrow) { max-width: 34rem; }
.chs-line {
  margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--f-display); font-size: var(--fs-lede); line-height: 1.3; color: var(--ink); letter-spacing: -.015em;
}
.chs-figure { grid-column: 8 / -1; }
.shutters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; aspect-ratio: 4 / 5; max-width: 100%; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.shutter {
  display: grid; grid-template-rows: 1fr 14px 1.3fr; gap: 0;
  background: var(--haint); border: 8px solid var(--haint); border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--haint-deep);
}
.louvers {
  display: block;
  background: repeating-linear-gradient(180deg,
    var(--haint) 0 9px,
    var(--haint-deep) 9px 10px,
    #E6F2F6 10px 13px,
    var(--haint) 13px 16px);
  border-inline: 1px solid var(--haint-deep);
}
.rail { display: block; background: var(--haint); border-block: 1px solid var(--haint-deep); }
.chs-figure figcaption { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: var(--fs-small); color: var(--muted); max-width: 30rem; }
.chs-figure strong { color: var(--ink); font-weight: 600; }
.swatch { flex: none; width: 14px; height: 14px; margin-top: .3em; border-radius: 3px; background: var(--haint); box-shadow: inset 0 0 0 1px var(--haint-deep); }
@media (max-width: 860px) {
  .chs-copy, .chs-figure { grid-column: 1 / -1; }
  .chs-figure { max-width: 440px; }
}

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px); }
.person { display: grid; gap: 28px; align-content: start; }
.person-offset { margin-top: clamp(0px, 8vw, 120px); }
.portrait {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--wash), var(--haint));
  border: 1px solid var(--line);
}
.portrait::before {
  content: attr(data-initials);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(3rem, 2rem + 4vw, 6rem); letter-spacing: -.04em; color: var(--haint-deep);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.person-body { display: grid; gap: 12px; max-width: 32rem; }
.person-name { font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.2; }
.person-role { font-family: var(--f-display); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 6px; }
.handoff { margin-top: clamp(80px, 9vw, 144px); padding-top: 40px; border-top: 1px solid var(--ink); display: grid; gap: 28px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.flow li { display: grid; gap: 6px; position: relative; padding-right: 28px; }
.flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: 8px; top: 0; color: var(--blue); font-family: var(--f-display); font-size: 1.25rem; line-height: 1.2; }
.flow-step { font-family: var(--f-display); font-size: clamp(1.1rem, .9rem + .8vw, 1.5rem); color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.flow-who { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--f-display); font-weight: 600; }
.handoff-line { font-family: var(--f-display); color: var(--ink); font-weight: 500; font-size: clamp(1.6rem, 1rem + 2.2vw, 2.9rem); line-height: 1.12; letter-spacing: -.03em; max-width: 24ch; margin-top: 24px; }
.handoff-note { max-width: 36rem; color: var(--muted); }
@media (max-width: 760px) {
  .people { grid-template-columns: 1fr; }
  .person-offset { margin-top: 0; }
  .portrait { max-width: 420px; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .flow li:nth-child(2)::after { display: none; }
}

/* ---------- Free blueprint offer ---------- */
.bp-panel {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 5vw, 72px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.bp-copy { display: grid; gap: 16px; justify-items: start; }
.bp-copy .h2 { margin-bottom: 8px; }
.bp-lede { font-family: var(--f-display); font-size: var(--fs-lede); line-height: 1.3; color: var(--ink); letter-spacing: -.015em; }
.bp-copy p { max-width: 34rem; }
.bp-noob { color: var(--ink); font-weight: 500; }
.bp-copy .actions { margin-top: 12px; }
.bp-doc {
  position: relative; align-self: stretch;
  background-color: var(--paper);
  background-image: linear-gradient(var(--wash) 1px, transparent 1px), linear-gradient(90deg, var(--wash) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(24px, 3vw, 36px);
  display: grid; align-content: start; gap: 28px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(15, 27, 38, .35);
  transform: rotate(.8deg);
  transition: transform .5s var(--ease);
}
.bp-panel:hover .bp-doc { transform: rotate(0deg); }
.doc-head { display: flex; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.doc-mark { width: 36px; height: 30px; flex: none; }
.doc-title { font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.doc-for { font-size: .8125rem; color: var(--muted); }
.doc-list { counter-reset: d; display: grid; }
.doc-list li { counter-increment: d; display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px dashed var(--line-strong); color: var(--ink); font-family: var(--f-display); }
.doc-list li::before { content: counter(d, decimal-leading-zero); font-size: var(--fs-label); letter-spacing: .1em; color: var(--blue-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-foot span { font-size: .8125rem; padding: 4px 10px; border-radius: 999px; background: var(--haint); color: var(--ink); font-family: var(--f-display); }
@media (max-width: 900px) {
  .bp-panel { grid-template-columns: 1fr; }
  .bp-doc { transform: none; }
}

/* ---------- Final CTA ---------- */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: #B9C7D2;
  padding-block: clamp(104px, 8rem + 5vw, 200px);
}
.final-bird {
  position: absolute; right: -14%; bottom: -12%; width: min(56vw, 760px); height: auto; aspect-ratio: 910 / 760;
  color: #22394B; opacity: .55; z-index: -1;
}
.final-inner { display: grid; gap: 28px; justify-items: start; }
.final-title { color: var(--white); font-size: var(--fs-statement); line-height: 1.08; letter-spacing: -.035em; max-width: 21ch; }
.final-dim { display: block; color: #7F95A6; margin-bottom: .12em; }
.final-copy { font-family: var(--f-display); font-size: var(--fs-lede); color: #D6E1E8; }
.final .actions { margin-top: 8px; }
.final-fine { font-size: var(--fs-small); color: #8FA3B2; }
.final .btn:focus-visible { outline-color: var(--haint); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding-top: 72px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 56px; }
.footer-brand { display: grid; gap: 18px; }
.footer-brand p { font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 56px; }
.footer-links a { text-decoration: none; font-family: var(--f-display); font-size: var(--fs-small); color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 32px; background-image: linear-gradient(var(--line), var(--line)); background-repeat: no-repeat; background-size: calc(100% - 2 * var(--gutter)) 1px; background-position: center top; font-size: .8125rem; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact { padding-block: clamp(56px, 3rem + 5vw, 128px) var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact-intro { display: grid; gap: 16px; }
.contact-title { font-size: clamp(2.6rem, 1.4rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -.04em; margin: 10px 0 12px; }
.contact-lede { font-family: var(--f-display); font-size: var(--fs-lede); line-height: 1.3; color: var(--ink); letter-spacing: -.015em; }
.next { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.next-title { font-size: 1.25rem; letter-spacing: -.015em; }
.next-list { counter-reset: n; display: grid; gap: 14px; }
.next-list li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; align-items: baseline; color: var(--ink); }
.next-list li::before { content: counter(n); font-family: var(--f-display); font-size: var(--fs-small); color: var(--blue-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
.included { display: grid; gap: 10px; padding: 22px 24px; background: var(--haint); border-radius: var(--r-lg); }
.included li { position: relative; padding-left: 28px; color: var(--ink); font-family: var(--f-display); font-size: var(--fs-small); }
.included li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px;
  border-left: 1.5px solid var(--blue-deep); border-bottom: 1.5px solid var(--blue-deep); transform: rotate(-45deg);
}
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 52px); }
.form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-family: var(--f-display); font-size: .9375rem; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 8px; }
.opt { font-weight: 400; color: var(--faint); font-size: .8125rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 13px 14px; min-height: 50px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 170px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover { border-color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 116, 222, .14); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.err { font-size: .8125rem; color: var(--danger); min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.btn-submit { min-width: 240px; }
.btn-submit[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn-submit[aria-busy="true"] .arrow { animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.form-error { padding: 14px 16px; border-radius: var(--r); background: #FDF1F0; color: var(--danger); font-size: var(--fs-small); border: 1px solid #F4D2CF; }
.success { display: grid; gap: 16px; justify-items: start; padding-block: 12px; }
.success:focus { outline: none; }
.success-mark { width: 52px; height: 44px; margin-bottom: 8px; }
.success-title { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; }
.success p { max-width: 32rem; }
.success .text-link { margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .success:not([hidden]) { animation: rise .6s var(--ease) both; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .next { margin-top: 16px; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; }
}

/* ---------- Reveal on scroll (only for content below the fold at load) ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].pre { opacity: 0; transform: translateY(18px); }
  [data-reveal] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .timeline[data-reveal].pre { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
