/* Shared foundation for every direction: tokens, type, links, buttons, chrome, blocks and motion primitives.
   Rules from the brief: navy, off-white and sky only; Host Grotesk; six type sizes; one small radius; hairlines
   instead of boxes; one easing curve and three durations; transform and opacity only; still under reduced motion. */
@font-face { font-family: "Host Grotesk"; src: url(/assets/fonts/host-grotesk.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --navy: #0B1220; --paper: #F3F3F1; --sky: #8FD3FF;
  --f: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t1: 200ms; --t2: 600ms; --t3: 900ms;           /* hover, reveal, hero */
  --r: 4px;
  --s1: .9375rem;                                     /* captions, legal */
  --s2: clamp(1.0625rem, 1rem + .2vw, 1.1875rem);    /* body */
  --s3: clamp(1.25rem, 1.1rem + .55vw, 1.625rem);    /* lead, h3 */
  --s4: clamp(1.875rem, 1.35rem + 2.1vw, 3.25rem);   /* h2 */
  --sq: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem);      /* review quote */
  --s5: clamp(2.5rem, 1.4rem + 4.4vw, 5.75rem);      /* display */
  --s6: clamp(3.25rem, .9rem + 9.2vw, 11rem);        /* h1 */
  --gut: clamp(20px, 5.2vw, 88px);
  --max: 1720px;
  --sp1: 8px; --sp2: 16px; --sp3: 24px; --sp4: 40px; --sp5: clamp(48px, 6vw, 88px); --sp6: clamp(64px, 7vw, 112px);
  --mbar: 0px;
}
.t-dark, :root { --bg: var(--navy); --fg: var(--paper); --muted: color-mix(in srgb, var(--paper) 80%, var(--navy)); --btn-bg: var(--sky); --btn-fg: var(--navy); --btn-hv: color-mix(in srgb, var(--sky) 80%, var(--navy)); --focus: var(--sky); --line: color-mix(in srgb, var(--paper) 20%, transparent); }
.t-light { --bg: var(--paper); --fg: var(--navy); --muted: color-mix(in srgb, var(--navy) 74%, var(--paper)); --btn-bg: var(--navy); --btn-fg: var(--paper); --btn-hv: color-mix(in srgb, var(--navy) 82%, var(--sky)); --focus: var(--navy); --line: color-mix(in srgb, var(--navy) 18%, transparent); }
.t-sky { --bg: var(--sky); --fg: var(--navy); --muted: color-mix(in srgb, var(--navy) 78%, var(--sky)); --btn-bg: var(--navy); --btn-fg: var(--paper); --btn-hv: color-mix(in srgb, var(--navy) 84%, var(--sky)); --focus: var(--navy); --line: color-mix(in srgb, var(--navy) 24%, transparent); }
.t-dark, .t-light, .t-sky { background: var(--bg); color: var(--fg); }
.t-sky ::selection { background: var(--navy); color: var(--sky); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; scroll-padding-bottom: calc(var(--mbar) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--s2)/1.55 var(--f); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding-bottom: var(--mbar); overflow-x: clip; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
main { display: block; outline: none; }
::selection { background: var(--sky); color: var(--navy); }

/* ---- type: six sizes, one family ---- */
.h1 { font-size: var(--s6); line-height: .94; letter-spacing: -.045em; font-weight: 540; text-wrap: balance; }
.display { font-size: var(--s5); line-height: .98; letter-spacing: -.038em; font-weight: 520; text-wrap: balance; }
.h2 { font-size: var(--s4); line-height: 1.06; letter-spacing: -.028em; font-weight: 520; text-wrap: balance; }
.h3, h3 { font-size: var(--s3); line-height: 1.22; letter-spacing: -.012em; font-weight: 540; text-wrap: balance; }
.lead { font-size: var(--s3); line-height: 1.42; letter-spacing: -.01em; text-wrap: pretty; max-width: 40ch; }
p, dd, figcaption { text-wrap: pretty; }
li, dt { text-wrap: balance; }
.cap, figcaption { font-size: var(--s1); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.fig { font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }
.h1-sub { display: block; margin-top: .9em; font-size: var(--s3); line-height: 1.4; letter-spacing: -.01em; font-weight: 400; max-width: 34ch; color: var(--muted); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; background: var(--sky); color: var(--navy); border-radius: var(--r); transform: translateY(-160%); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* ---- links: underline draws on hover; ↗ only on links that leave the site ---- */
.link { position: relative; text-decoration: none; }
a[href^="tel:"] { white-space: nowrap; } /* a phone number never breaks across lines */
.link::before, .link::after { content: ""; position: absolute; left: var(--tapx, 0px); right: var(--tapx, 0px); bottom: calc(var(--tap, 0px) - .14em); height: 1px; background: currentColor; }
/* Standalone links: a 44 px tap target with the underline still under the text. */
.tap { --tap: max(10px, calc((44px - 1.2em) / 2)); --tapx: 5px; display: inline-block; min-height: 44px; line-height: 1.2; padding: var(--tap) var(--tapx); margin-inline: calc(var(--tapx) * -1); }
.link::before { opacity: .38; }
.link::after { transform: scaleX(0); transform-origin: left; transition: transform var(--t1) var(--ease); }
.link:hover::after { transform: scaleX(1); }
.arr { display: inline-block; width: .62em; height: .62em; margin-left: .28em; vertical-align: .06em; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: var(--r); background: var(--btn-bg); color: var(--btn-fg); font-weight: 560; text-decoration: none; letter-spacing: -.005em; transition: background-color var(--t1) var(--ease); }
.btn:hover { background: var(--btn-hv); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: var(--s1); }

/* ---- header ---- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line); transition: transform var(--t2) var(--ease); }
.hdr.hdr-hide { transform: translateY(-101%); }
.hdr-in { display: flex; align-items: center; gap: var(--sp4); min-height: 76px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.mark { width: 30px; height: 30px; flex: none; }
.wm { font-size: var(--s3); font-weight: 560; letter-spacing: -.012em; line-height: 1; }
.nav ul { display: flex; gap: var(--sp4); }
.nav-a { --tapx: 5px; position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--tapx); margin-inline: calc(var(--tapx) * -1); text-decoration: none; font-size: var(--s1); }
.nav-a::after { content: ""; position: absolute; left: var(--tapx); right: var(--tapx); bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t1) var(--ease); }
.nav-a:hover::after, .nav-a[aria-current]::after { transform: scaleX(1); }
.hdr-act { display: flex; align-items: center; gap: var(--sp3); font-size: var(--s1); }
.menu-btn { display: none; min-height: 44px; min-width: 64px; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: var(--s1); }
.menu { border-top: 1px solid var(--line); padding: var(--sp3) 0 var(--sp4); }
.menu ul { display: grid; gap: 4px; margin-bottom: var(--sp3); }
.menu ul a { display: block; padding: 10px 0; font-size: var(--s3); text-decoration: none; }
@media (max-width: 1080px) { .nav, .hdr-act { display: none; } .menu-btn { display: inline-block; } .hdr-in { min-height: 64px; } }

/* ---- footer and phone bar ---- */
.ftr { padding: var(--sp6) 0 var(--sp5); border-top: 1px solid var(--line); font-size: var(--s1); }
.ftr-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp4); padding-bottom: var(--sp5); }
.ftr-contact { display: grid; gap: 6px; font-size: var(--s2); }
.ftr-contact span { color: var(--muted); }
.ftr-social { display: flex; gap: var(--sp3); margin-top: var(--sp2); }
.si-a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.si { width: 20px; height: 20px; }
.ftr-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp4); padding: var(--sp4) 0; border-top: 1px solid var(--line); }
.ftr-h { font-size: var(--s1); font-weight: 560; margin-bottom: var(--sp2); }
.ftr-legal, .ftr-marks { color: var(--muted); max-width: 90ch; }
.ftr-legal { padding-top: var(--sp4); border-top: 1px solid var(--line); margin-bottom: 8px; }
@media (max-width: 760px) { .ftr-cols { grid-template-columns: 1fr; } }
.mbar { display: none; }
@media (max-width: 760px) {
  :root { --mbar: calc(60px + env(safe-area-inset-bottom)); }
  .mbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; padding-bottom: env(safe-area-inset-bottom); background: var(--navy); border-top: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 60px; font-weight: 560; text-decoration: none; color: var(--paper); }
  .mbar-go { background: var(--sky); color: var(--navy) !important; }
}

/* ---- frames: our work, plain ---- */
.frame { display: block; overflow: hidden; border-radius: var(--r); outline: 1px solid var(--line); outline-offset: -1px; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); }
.frame img { width: 100%; transition: transform var(--t1) var(--ease); }
a:hover .frame img, .frame-link:hover img { transform: scale(1.02); }

/* ---- blocks (directions restyle these) ---- */
.price-main { display: flex; align-items: baseline; gap: .4em; flex-wrap: wrap; }
.price-main .fig { font-size: var(--s4); font-weight: 520; line-height: 1; }
.price-alt { margin-top: 6px; font-size: var(--s2); }
.price-note { margin-top: var(--sp2); font-size: var(--s1); color: var(--muted); max-width: 46ch; }
.ticks li { padding: 10px 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.sms p { font-size: var(--s3); line-height: 1.4; letter-spacing: -.01em; max-width: 30ch; }
.ai-q { font-size: var(--s2); color: var(--muted); max-width: 40ch; }
.ai-a { margin-top: var(--sp2); font-size: var(--s3); line-height: 1.4; letter-spacing: -.01em; max-width: 32ch; }
.ads-t { font-weight: 560; margin-bottom: var(--sp2); }
.ads-lines div { display: flex; justify-content: space-between; gap: var(--sp3); padding: 10px 0; border-top: 1px solid var(--line); }
.ads-lines dd { color: var(--muted); text-align: right; font-size: var(--s2); }
@media (max-width: 560px) { .ads-lines div { display: grid; gap: 4px; } .ads-lines dd { text-align: left; } }
.proof .cap { margin-top: var(--sp2); max-width: 52ch; }
.rv-q p { font-size: var(--sq); line-height: 1.2; letter-spacing: -.018em; max-width: 30ch; }
.rv-q p + p { margin-top: 1em; font-size: var(--s3); line-height: 1.42; letter-spacing: -.01em; max-width: 40ch; }
.rv-by { margin-top: var(--sp3); }
.rating { display: flex; align-items: center; gap: 10px; font-size: var(--s1); }
.g { width: 18px; height: 18px; flex: none; }
.steps { counter-reset: s; display: grid; gap: 0; }
.step { counter-increment: s; display: grid; grid-template-columns: 2ch minmax(0, 1fr); gap: 0 var(--sp3); padding: var(--sp3) 0; border-top: 1px solid var(--line); }
.step::before { content: counter(s); grid-row: span 2; font-size: var(--s3); line-height: 1.22; font-weight: 540; color: var(--muted); }
.step p { color: var(--muted); max-width: 52ch; margin-top: 6px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { position: relative; list-style: none; cursor: pointer; padding: 20px 48px 20px 0; font-size: var(--s3); line-height: 1.3; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: currentColor; transition: transform var(--t1) var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa-a { padding: 0 0 var(--sp3); color: var(--muted); max-width: 68ch; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp4); }
.chip { min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--line); background: none; cursor: pointer; font-size: var(--s1); transition: opacity var(--t1) var(--ease); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--sp5) var(--sp4); }
.work[hidden] { display: none; }
.work-a { display: grid; text-decoration: none; }
.work-a .frame { order: -1; margin-bottom: var(--sp2); }
.work-name { font-size: var(--s3); letter-spacing: -.012em; font-weight: 520; }
.work-meta { font-size: var(--s1); color: var(--muted); }

/* ---- shared block defaults (directions restyle) ---- */
.sec { padding: var(--sp6) 0; }
.svc { padding: var(--sp6) 0; }
.svc-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; gap: var(--sp4); }
.svc-h { font-size: var(--s5); line-height: .98; letter-spacing: -.038em; font-weight: 520; text-wrap: balance; }
.svc-line { margin-top: var(--sp3); font-size: var(--s3); line-height: 1.4; letter-spacing: -.01em; max-width: 32ch; }
.proof-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp3); }
.frame-link { display: grid; gap: 10px; text-decoration: none; }
.frame-cap { font-size: var(--s1); color: var(--muted); }
.pkg { padding: var(--sp6) 0; }
.pkg .lead { margin-top: var(--sp3); }
.pkg-incl { display: flex; flex-wrap: wrap; gap: var(--sp1) var(--sp4); margin: var(--sp4) 0; font-size: var(--s3); }
.pkg-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pkg-opt { padding: var(--sp4) var(--sp4) var(--sp4) 0; }
.pkg-opt + .pkg-opt { border-left: 1px solid var(--line); padding-left: var(--sp4); }
.pkg-k { margin-bottom: var(--sp2); }
.pkg-fig .fig { font-size: var(--s4); font-weight: 520; }
.pkg-note { margin: var(--sp3) 0; font-size: var(--s1); color: var(--muted); max-width: 64ch; }
.people { padding: var(--sp6) 0; }
.people-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp5); align-items: center; }
.people-img img { width: 100%; border-radius: var(--r); }
.people-txt p { margin-top: var(--sp3); max-width: 46ch; }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp4) var(--sp5); align-items: start; }
.faq { padding: var(--sp6) 0; }
.cta { padding: var(--sp6) 0; }
.cta-in { display: grid; gap: var(--sp3); justify-items: start; }
.cta-h { max-width: 16ch; }
.cta-text { font-size: var(--s3); line-height: 1.42; max-width: 36ch; }
.cta-act { margin-top: var(--sp2); }
.cta-talk { font-size: var(--s1); }
.stub { padding: var(--sp6) 0; min-height: 60vh; }
.stub .lead { margin: var(--sp3) 0 var(--sp4); }
.stub-links { display: grid; gap: 4px; }
.stub-now { display: grid; justify-items: start; gap: var(--sp3); max-width: 60ch; margin: var(--sp4) 0 var(--sp5); }
.stub-now .lead { margin: 0; }
@media (max-width: 900px) { .faq-in, .people-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pkg-opts, .proof-work { grid-template-columns: minmax(0, 1fr); } .pkg-opt + .pkg-opt { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }

/* ---- motion: one curve, three durations, transform and opacity only ---- */
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > span { display: inline-block; }
.js .ln > span { animation: rise var(--t3) var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 60ms); }
@keyframes rise { from { transform: translateY(108%); } }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease); }
.js [data-reveal="img"] { transform: scale(1.04); }
.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; }
.js [data-reveal].in { opacity: 1; transform: none; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t2); animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
@media print { .hdr, .mbar, .menu-btn { display: none; } }
