/* ============================================================
   SYNC RACE — shared stylesheet (v5, dragon curve)
   Every page links this one file.

   IDEA: one strip of paper folded ten times, opened to right angles —
   1,024 steps in one unbroken line that never crosses itself.
   A faint dragon curve sits behind every page and draws with scroll.

   Type: Marcellus caps for headings, Jost for everything else.
   Colour: one warm cream field, charcoal ink, terracotta line.
   Layout: one continuous column, generous air, no hard boxes.
   Token names are kept from v4 so older page-level styles still work.
   ============================================================ */

:root{
  color-scheme:light;
  --paper:    #FBF8F4;   /* the one field */
  --surface:  #FFFFFF;
  --sunk:     #F2EBE4;   /* soft */
  --ink:      #111111;
  --dust:     #4A4744;   /* secondary text — 8.6:1 on paper */
  --hair:     #E7DFD6;

  --lamp:     #C4623A;   /* the line — graphics, fills, large type */
  --lamp-ink: #A24C29;   /* terracotta safe for body text — 5.5:1 */
  --lamp-soft:#F4E4DA;
  --blue:     #C4623A;   /* legacy alias: the old blue is now the line colour */
  --blue-ink: #A24C29;
  --blue-soft:#F2EBE4;
  --green-ink:#3E6B4F;
  --green-soft:#E6EEE7;

  --night:    #FBF8F4;   /* legacy: bands no longer go dark */
  --night-2:  #FFFFFF;
  --night-hair:#E7DFD6;
  --night-dust:#4A4744;

  --lift-1: 0 1px 2px rgba(17,17,17,.03), 0 6px 18px -10px rgba(17,17,17,.12);
  --lift-2: 0 2px 6px rgba(17,17,17,.04), 0 18px 36px -18px rgba(17,17,17,.22);
  --lift-3: 0 4px 12px rgba(17,17,17,.04), 0 30px 60px -28px rgba(17,17,17,.3);
  --lift-4: 0 8px 20px rgba(17,17,17,.05), 0 44px 90px -36px rgba(17,17,17,.38);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --gut:  max(6vw,20px);
  --max:  1180px;
  --display: 'Marcellus', 'Times New Roman', serif;
  --body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: var(--body);
}

*,*::before,*::after{ box-sizing:border-box; min-width:0; }
html{ scroll-behavior:smooth; scroll-padding-top:110px; -webkit-text-size-adjust:100%; }
body{
  margin:0; min-height:100vh; background:var(--paper); color:var(--ink);
  font-family:var(--body); font-weight:400; font-size:17px; line-height:1.7;
  -webkit-font-smoothing:antialiased; display:flex; flex-direction:column; overflow-x:clip;
}
main{ flex:1; }
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; }
b,strong{ font-weight:500; }
:focus-visible{ outline:3px solid color-mix(in srgb,var(--lamp) 55%,transparent); outline-offset:3px; border-radius:6px; }
::selection{ background:var(--lamp-soft); color:var(--ink); }
main,footer,site-nav,site-foot{ position:relative; z-index:1; }

/* ---------- the background curve (drawn by nav.js) ---------- */
/* The curve fills the screen below the nav, one layer behind the page.
   Separation comes from a soft shadow under the line and a paper-coloured
   halo around foreground text (see "foreground separation" below). */
#curve-depth{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
#curve-bg{
  position:absolute; left:0; top:96px; width:100%; height:calc(100% - 96px);
  transform:translate3d(0,var(--drift,0px),0);
  will-change:transform;
}
#curve-depth{ contain:strict; opacity:0; transition:opacity .6s ease; }
#curve-depth.on{ opacity:1; }
@media (prefers-reduced-motion: reduce){ #curve-depth{ transition:none; } }
/* The line's shadow is a second, offset stroke (see nav.js) rather than a CSS
   filter: a filter on a full-screen drawing that changes every frame forced a
   full repaint on every scroll frame. */
#curve-bg .shade{ stroke:rgb(60,30,15); opacity:.07; }
#curve-bg .ghost{ stroke:var(--lamp); opacity:.07; }
#curve-bg .trail{ stroke:var(--lamp); opacity:.26; }
#curve-bg .pen{ fill:var(--lamp); opacity:.7; }

.shell{ max-width:var(--max); margin-inline:auto; padding-inline:var(--gut); width:100%; }

/* ---------- type ---------- */
h1,h2,h3{
  font-family:var(--display); font-weight:400; margin:0; text-wrap:balance;
  text-transform:uppercase; letter-spacing:.04em; line-height:1.14;
}
h1{ font-size:clamp(36px,5.6vw,64px); }
h2{ font-size:clamp(28px,4vw,44px); }
h3{ font-size:19px; line-height:1.3; letter-spacing:.05em; }
p{ margin:0; }
.warm{ color:var(--lamp); }
.blue{ color:var(--lamp-ink); }
.kicker{
  display:inline-flex; align-items:center; gap:.7rem;
  font-size:13px; font-weight:500; letter-spacing:.18em; text-transform:uppercase;
  color:var(--lamp-ink); margin-bottom:1.2rem;
}
.lede{ color:var(--dust); font-size:19px; font-weight:300; line-height:1.7; max-width:60ch; }
.lede strong{ color:var(--ink); font-weight:500; }
.muted{ color:var(--dust); }

/* ---------- layout ---------- */
.band{ padding-block:clamp(44px,7vh,88px); }
.head{ max-width:640px; margin-bottom:clamp(1.75rem,4vw,2.5rem); }
.head p{ color:var(--dust); margin-top:1.2rem; font-size:19px; font-weight:300; }
.page-top{ padding-block:clamp(48px,9vh,104px) clamp(1rem,2vw,1.5rem); }
.split{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:clamp(2rem,5vw,5rem); align-items:center; }
.col{ max-width:640px; }
.right{ margin-left:auto; }

/* Legacy dark band — now part of the same field. */
.night{ background:transparent; color:var(--ink); }
.slant-top{ padding-top:clamp(72px,12vh,140px); }
.slant-bottom{ padding-bottom:clamp(72px,12vh,140px); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem; text-decoration:none;
  min-height:52px; padding:0 28px; border-radius:999px; border:0; cursor:pointer;
  font:inherit; font-weight:500; font-size:16px; background:var(--ink); color:var(--paper);
  box-shadow:0 10px 24px -14px rgba(0,0,0,.5);
  transition:transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:hover{ transform:translateY(-1px); background:var(--lamp-ink); }
.btn .arrow{ transition:transform .3s var(--ease); }
.btn:hover .arrow{ transform:translateX(4px); }
.btn-lamp{ background:var(--ink); color:var(--paper); }
.btn-quiet{ background:transparent; color:var(--ink); box-shadow:none; }
.btn-quiet:hover{ background:var(--sunk); color:var(--ink); }
.btn-link{ background:none; border:0; color:var(--ink); text-decoration:underline; text-underline-offset:.25em; font:inherit; cursor:pointer; padding:.5rem; box-shadow:none; min-height:44px; }
.btn-link:hover{ background:none; color:var(--lamp-ink); }
.hero-btns,.btns,.ctas{ display:flex; flex-wrap:wrap; gap:10px; margin-top:36px; }

/* ---------- cards: flowing text, no frames ---------- */
.cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:48px clamp(32px,5vw,72px); }
.card{
  position:relative; display:block; text-decoration:none; color:inherit;
  background:none; border:0; padding:0; border-radius:0; box-shadow:none;
}
.card p{ color:var(--dust); margin-top:10px; }
.card h3{ margin-top:14px; }
a.card h3{ transition:color .2s var(--ease); }
a.card:hover h3{ color:var(--lamp-ink); }
.card .num{ font-family:var(--display); font-size:17px; color:var(--lamp-ink); letter-spacing:.08em; }
.card .more{ display:inline-flex; gap:.4rem; margin-top:14px; font-size:15px; font-weight:500; color:var(--ink); }
a.card:hover .more{ color:var(--lamp-ink); }

/* ---------- screenshots ---------- */
.frame{ background:var(--surface); border-radius:var(--r-md); overflow:hidden; box-shadow:var(--lift-3); transition:transform .5s var(--ease), box-shadow .5s var(--ease); }
a.work-media:hover .frame{ transform:translateY(-4px); box-shadow:var(--lift-4); }
.frame-bar{ display:flex; align-items:center; gap:.4rem; padding:.7rem 1rem; background:var(--sunk); }
.dot{ width:9px; height:9px; border-radius:50%; background:#DDD3C8; }
.frame-url{ margin-left:.6rem; font-size:13px; color:var(--dust); }
.shot{ width:100%; aspect-ratio:16/10; object-fit:cover; object-position:top center; background:var(--sunk); }
.phone{ border-radius:32px; padding:7px; background:#1A1A1A; box-shadow:var(--lift-3); max-width:300px; }
.phone img{ border-radius:26px; width:100%; aspect-ratio:390/844; object-fit:cover; object-position:top; }

/* ---------- pills ---------- */
.pills{ display:flex; flex-wrap:wrap; gap:.5rem; }
.pill{ display:inline-block; padding:.3rem .85rem; border-radius:999px; font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; background:var(--sunk); color:var(--dust); }
.pill-lamp{ background:var(--lamp-soft); color:var(--lamp-ink); }
.pill-blue{ background:var(--sunk); color:var(--dust); }
.pill-green{ background:var(--green-soft); color:var(--green-ink); }
.pill-ink{ background:var(--ink); color:var(--paper); }

/* ---------- feature lists ---------- */
.wells{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:28px clamp(24px,4vw,56px); }
.well{ padding:0 0 0 18px; position:relative; }
.well::before{ content:''; position:absolute; left:0; top:.55em; width:6px; height:6px; border-radius:50%; background:var(--lamp); }
.well b{ display:block; margin-bottom:.25rem; font-weight:500; }
.well span{ color:var(--dust); font-size:16px; }

/* ---------- hero ---------- */
.hero{ display:flex; flex-direction:column; justify-content:center; padding-block:clamp(56px,11vh,120px) clamp(24px,4vh,48px); }
.hero .lede{ margin-top:20px; }
.scroll-hint{ margin-top:40px; color:var(--dust); font-size:15px; display:flex; align-items:center; gap:10px; }
.scroll-hint i{ display:block; width:1px; height:40px; background:linear-gradient(var(--lamp),transparent); }

/* folds row */
.folds{ display:flex; align-items:flex-end; gap:clamp(10px,2.4vw,28px); flex-wrap:wrap; margin-top:48px; }
.fold{ display:grid; justify-items:center; gap:8px; }
.fold svg{ display:block; }
.fold span{ font-size:13px; color:var(--dust); white-space:nowrap; }

/* service list (home + services) */
.svcs{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:56px clamp(32px,6vw,88px); }
.svc{ display:grid; grid-template-columns:56px minmax(0,1fr); gap:20px; align-items:start; text-decoration:none; color:inherit; }
.svc svg{ width:56px; height:56px; }
.svc p{ color:var(--dust); margin-top:8px; }
.svc small{ display:block; margin-top:10px; font-size:15px; color:var(--ink); opacity:.75; }
.svc .more{ display:inline-flex; gap:.4rem; margin-top:12px; font-size:15px; font-weight:500; }
a.svc:hover h3, a.svc:hover .more{ color:var(--lamp-ink); }
@media(max-width:760px){ .svcs{ grid-template-columns:minmax(0,1fr); } }

/* process (fold icon + text) */
.steps{ display:grid; gap:32px; margin-top:36px; }
.step{ display:grid; grid-template-columns:64px minmax(0,1fr); gap:22px; align-items:center; }
.step svg{ width:64px; height:64px; }
.step b,.step h3{ display:block; font-family:var(--display); font-weight:400; text-transform:uppercase; letter-spacing:.05em; font-size:19px; line-height:1.3; }
.step span,.step p{ display:block; color:var(--dust); margin-top:4px; }

/* deliverables list on service pages */
.list{ list-style:none; margin:28px 0 0; padding:0; display:grid; gap:14px; }
.list li{ position:relative; padding-left:26px; color:var(--dust); }
.list li::before{ content:''; position:absolute; left:0; top:.8em; width:14px; height:1.5px; background:var(--lamp); }
.list li b{ color:var(--ink); }

/* stack line */
.stack{ font-size:clamp(22px,2.6vw,28px); font-weight:300; margin-top:28px; line-height:1.5; max-width:26em; }
.stack b{ font-weight:500; color:var(--lamp-ink); }

/* FAQ */
.faq{ margin-top:40px; display:grid; gap:8px; }
.faq details{ border-bottom:1px solid var(--hair); padding:6px 0 14px; }
.faq summary{ cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:1rem; align-items:center; min-height:48px; font-weight:500; font-size:18px; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:'+'; font-family:var(--display); font-size:24px; color:var(--lamp); transition:transform .25s var(--ease); }
.faq details[open] summary::after{ transform:rotate(45deg); }
.faq p{ color:var(--dust); margin-top:4px; max-width:62ch; }

/* ---------- marquee strip ---------- */
.strip{ overflow:hidden; white-space:nowrap; margin-block:clamp(1rem,3vw,2rem); }
.strip-track{ display:inline-flex; gap:2.6rem; padding:1rem 0; animation:strip 52s linear infinite; }
.strip span{ font-family:var(--display); text-transform:uppercase; letter-spacing:.06em; font-size:clamp(17px,2vw,22px); color:var(--dust); display:inline-flex; align-items:center; gap:2.6rem; }
.strip span::after{ content:''; width:6px; height:6px; border-radius:50%; background:var(--lamp); }
@keyframes strip{ to{ transform:translateX(-50%); } }

/* ---------- meta ---------- */
.meta{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); border-top:1px solid var(--hair); }
.meta > div{ padding:1.1rem 1.2rem 1.2rem 0; border-bottom:1px solid var(--hair); }
.meta dt{ font-size:12px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--dust); }
.meta dd{ margin:.35rem 0 0; font-weight:500; }
.meta a{ color:var(--lamp-ink); text-underline-offset:.2em; }

/* ---------- work rows ---------- */
.work{ display:grid; gap:clamp(4rem,9vw,7rem); }
.work-row{ display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:clamp(2rem,5vw,4.5rem); align-items:center; }
.work-row:nth-child(even){ grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); }
.work-row:nth-child(even) .work-media{ order:2; }
.work-body h3{ font-size:clamp(26px,3.4vw,38px); line-height:1.12; margin-top:1rem; }
.work-body p{ color:var(--dust); margin-top:1rem; font-weight:300; font-size:18px; max-width:52ch; }
.work-body .btns{ margin-top:1.6rem; }
.work-media{ position:relative; text-decoration:none; display:block; }
.work-media .phone{ position:absolute; right:-1rem; bottom:-2.5rem; width:22%; min-width:110px; padding:5px; border-radius:22px; }
.work-media .phone img{ border-radius:18px; }
@media(max-width:900px){
  .work-row,.work-row:nth-child(even){ grid-template-columns:1fr; }
  .work-row:nth-child(even) .work-media{ order:0; }
  .work-media .phone{ right:.5rem; bottom:-1.5rem; width:26%; }
}

/* ---------- case study ---------- */
.case-hero{ padding-block:clamp(72px,12vh,140px) clamp(2rem,5vw,3rem); }
.case-hero h1{ font-size:clamp(38px,6.4vw,72px); }
.case-shot{ margin-top:clamp(2.5rem,6vw,4.5rem); }
.prose{ max-width:64ch; display:grid; gap:1.1rem; font-size:18px; }
.prose p{ color:var(--dust); font-weight:300; }
.prose strong{ color:var(--ink); }
.gallery{ display:grid; grid-template-columns:minmax(0,2.4fr) minmax(0,1fr); gap:clamp(1.5rem,4vw,3rem); align-items:end; }
.gallery .phone{ margin-inline:auto; }
figure{ margin:0; }
figure figcaption{ font-size:14px; color:var(--dust); margin-top:1.3rem; font-style:italic; }
@media(max-width:760px){ .gallery{ grid-template-columns:1fr; } .gallery .phone{ max-width:240px; } }
.next-case{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:1.5rem; text-decoration:none; color:inherit; border-top:1px solid var(--hair); padding-top:2rem; }
.next-case b{ font-family:var(--display); font-weight:400; text-transform:uppercase; letter-spacing:.04em; font-size:clamp(28px,4.6vw,52px); line-height:1.1; transition:color .3s var(--ease); }
.next-case:hover b{ color:var(--lamp-ink); }

/* ---------- call to action: a fold, not a box ---------- */
.cta{ display:grid; grid-template-columns:minmax(0,1.6fr) auto; gap:2rem; align-items:end; padding-block:clamp(40px,6vw,72px); border-top:1px solid var(--hair); }
.cta p{ color:var(--dust); margin-top:1rem; max-width:48ch; font-size:19px; font-weight:300; }
@media(max-width:760px){ .cta{ grid-template-columns:1fr; } }

/* ---------- footer ---------- */
.foot{ margin-top:clamp(3rem,7vw,5rem); color:var(--ink); }
.foot a{ text-decoration:none; }
.foot .foot-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:2rem; padding-block:clamp(3rem,6vw,4.5rem) 2rem; font-size:15px; border-top:1px solid var(--hair); }
.foot-brand .brand{ margin-right:0; }
.foot-brand p{ color:var(--dust); margin-top:1rem; max-width:34ch; font-size:15px; font-weight:300; }
.foot-title{ font-family:var(--body); font-size:12px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:var(--dust); margin:0 0 .8rem; line-height:1.4; }
.foot-col ul{ list-style:none; margin:0; padding:0; display:grid; gap:.1rem; }
.foot-col a{ display:inline-block; padding:.3rem 0; color:var(--ink); font-weight:300; }
.foot-col a:hover,.foot-col a[aria-current="page"]{ color:var(--lamp-ink); text-decoration:underline; text-underline-offset:.2em; }
.foot .foot-base{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:.6rem 2rem; padding-block:1.2rem 2.4rem; font-size:14px; color:var(--dust); }
.foot .foot-word{ display:none; }
@media(max-width:860px){ .foot .foot-grid{ grid-template-columns:1fr 1fr; } .foot-brand{ grid-column:1 / -1; } }

/* ---------- entrance ---------- */
.rise{ opacity:0; transform:translateY(16px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.rise.in{ opacity:1; transform:none; }
@media(prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition-duration:.01ms !important; animation:none !important; }
  .rise{ opacity:1; transform:none; }
}

/* ============================================================
   NAV
   ============================================================ */
.skip{ position:absolute; left:var(--gut); top:-60px; z-index:200; background:var(--ink); color:var(--paper); padding:.7rem 1rem; font-weight:500; text-decoration:none; border-radius:999px; transition:top .2s ease; }
.skip:focus{ top:.75rem; }
site-nav{ position:sticky; top:0; z-index:80; display:block; }
.nav-shade{ background:color-mix(in srgb,var(--paper) 82%,transparent); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.nav-in{
  max-width:var(--max); margin-inline:auto; padding-inline:var(--gut); height:96px;
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:1.5rem;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); }
.brand svg,.brand img{ width:32px; height:32px; flex:none; }
.brand b{ display:block; font-family:var(--display); font-weight:400; font-size:18px; letter-spacing:.08em; line-height:1; text-transform:uppercase; }
.brand em{ display:block; font-style:normal; font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--dust); margin-top:.35rem; }
/* centred lock-up: mark above the name */
.brand-center{ grid-column:2; flex-direction:column; gap:6px; text-align:center; }
.brand-center svg{ width:26px; height:26px; }
.brand-center em{ margin-top:.3rem; }

.nav-links{ display:flex; align-items:center; gap:2px; }
.nav-left{ grid-column:1; justify-self:start; }
.nav-right{ grid-column:3; justify-self:end; }
.nav-links a,.nav-sheet a{ text-decoration:none; padding:10px 14px; min-height:44px; display:inline-flex; align-items:center; border-radius:999px; color:var(--dust); font-size:16px; transition:background .2s,color .2s; }
.nav-links a:hover{ background:var(--sunk); color:var(--ink); }
.nav-links a[aria-current="page"]{ color:var(--ink); background:var(--sunk); }

.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:.6rem; color:var(--ink); min-width:44px; min-height:44px; }
.nav-toggle span{ display:block; width:22px; height:1.5px; background:currentColor; margin:5px 0; transition:transform .3s ease, opacity .3s ease; }
site-nav[data-open] .nav-toggle span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
site-nav[data-open] .nav-toggle span:nth-child(2){ opacity:0; }
site-nav[data-open] .nav-toggle span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }
.nav-sheet{ display:none; }

@media(max-width:900px){
  .nav-in{ height:76px; grid-template-columns:44px 1fr 44px; }
  .nav-left,.nav-right{ display:none; }
  .brand-center{ flex-direction:row; text-align:left; justify-self:center; }
  .nav-toggle{ display:block; grid-column:3; justify-self:end; }
  site-nav[data-open] .nav-sheet{
    display:flex; flex-direction:column; position:absolute; inset:76px 0 auto 0;
    background:var(--paper); box-shadow:var(--lift-2); padding:.4rem 0 1.4rem; max-height:calc(100vh - 76px); overflow:auto;
  }
  .nav-sheet a{ border-radius:0; padding:.9rem var(--gut); font-family:var(--display); text-transform:uppercase; letter-spacing:.06em; font-size:20px; color:var(--ink); }
  .nav-sheet a[aria-current="page"]{ color:var(--lamp-ink); }
}
/* Mobile: header slides away on scroll down, returns on scroll up (nav.js) */
@media(max-width:900px){
  site-nav{ transition:transform .35s cubic-bezier(.22,1,.36,1); }
  site-nav.nav-hidden{ transform:translateY(-100%); }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form{ display:grid; gap:18px; }
.form .row{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
@media(max-width:700px){ .form .row{ grid-template-columns:minmax(0,1fr); } }
.field{ display:grid; gap:8px; }
.field label{ font-weight:500; font-size:15px; }
.field .hint{ font-size:14px; color:var(--dust); font-weight:400; }
.field input,.field select,.field textarea{
  font:inherit; font-size:16px; color:var(--ink); width:100%; min-height:52px;
  padding:14px 18px; border:0; border-radius:16px;
  background:color-mix(in srgb,var(--sunk) 70%,#fff);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 6%,transparent);
  transition:box-shadow .2s var(--ease);
}
.field textarea{ min-height:150px; resize:vertical; }
.field input:focus,.field select:focus,.field textarea:focus{ outline:none; box-shadow:inset 0 0 0 1.5px var(--lamp), 0 0 0 4px var(--lamp-soft); }
.trap{ position:absolute; left:-9999px; opacity:0; pointer-events:none; }
.form-note{ font-size:15px; color:var(--dust); }
.form-note:not(:empty){ color:var(--ink); background:var(--sunk); padding:14px 20px; border-radius:16px; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal{ padding-block:clamp(72px,12vh,120px) clamp(3rem,8vw,5rem); }
.legal-body{ max-width:68ch; }
.legal-body h1{ font-size:clamp(34px,5vw,52px); }
.legal-body .lede{ margin-top:1.2rem; }
.legal-body h2{ font-size:24px; margin:2.8rem 0 .8rem; scroll-margin-top:90px; }
.legal-body h3{ font-family:var(--body); text-transform:none; letter-spacing:0; font-weight:500; font-size:18px; margin:1.6rem 0 .5rem; }
.legal-body p + p{ margin-top:1rem; }
.legal-body ul{ padding-left:1.2rem; margin:.8rem 0 0; display:grid; gap:.5rem; }
.legal-body a{ color:var(--lamp-ink); text-underline-offset:.2em; }
.legal-body .toc{ margin-top:2.2rem; padding:1.3rem 1.5rem; background:var(--sunk); border-radius:var(--r-md); }
.legal-body .toc h2{ margin:0 0 .6rem; font-size:18px; }
.legal-body .toc ol{ margin:0; padding-left:1.3rem; display:grid; gap:.3rem; }
.legal-body .table-wrap{ overflow-x:auto; }
.legal-body table{ width:100%; border-collapse:collapse; margin-top:1rem; font-size:15px; }
.legal-body th,.legal-body td{ text-align:left; padding:.7rem .6rem .7rem 0; border-bottom:1px solid var(--hair); vertical-align:top; }
.legal-body th{ font-weight:500; }
.supply{ background:var(--lamp-soft); color:var(--lamp-ink); font-weight:500; padding:0 .3em; border-radius:4px; }
.legal-body .effective{ margin-top:3rem; padding-top:1.3rem; border-top:1px solid var(--hair); color:var(--dust); font-size:15px; }

/* ============================================================
   ABOUT — the fold explainer
   ============================================================ */
.unfold{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:clamp(2rem,6vw,5rem); align-items:center; margin-top:48px; }
.unfold-stage{ position:relative; aspect-ratio:1/1; width:100%; border-radius:var(--r-lg); background:color-mix(in srgb,var(--sunk) 55%,transparent); }
.unfold-stage svg{ position:absolute; inset:0; width:100%; height:100%; }
.unfold-ctl{ display:grid; gap:18px; }
.unfold-ctl .count{ font-family:var(--display); font-size:clamp(48px,8vw,88px); line-height:1; color:var(--lamp); }
.unfold-ctl .count small{ font-size:.32em; color:var(--dust); letter-spacing:.08em; text-transform:uppercase; margin-left:.4em; }
.unfold-ctl input[type=range]{ width:100%; accent-color:var(--lamp-ink); min-height:44px; }
.unfold-stats{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.unfold-stats div{ font-size:14px; color:var(--dust); }
.unfold-stats b{ display:block; font-size:22px; color:var(--ink); font-weight:500; }
.seq{ font-family:ui-monospace,Menlo,monospace; font-size:14px; letter-spacing:.12em; color:var(--dust); word-break:break-all; line-height:1.8; min-height:3.6em; }
.seq .r{ color:var(--lamp-ink); }
@media(max-width:860px){ .unfold{ grid-template-columns:1fr; } }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.consent{ position:fixed; z-index:150; right:var(--gut); bottom:24px; width:min(440px, calc(100% - 40px)); background:var(--surface); color:var(--ink); border-radius:var(--r-md); padding:1.4rem 1.4rem 1.2rem; box-shadow:var(--lift-4); font-size:15px; }
.consent[hidden],.consent [hidden]{ display:none !important; }
.consent h2{ font-size:20px; margin:0 0 .45rem; }
.consent p{ color:var(--dust); }
.consent p a{ color:var(--lamp-ink); }
.consent fieldset{ border:0; padding:0; margin:1rem 0 0; display:grid; gap:.7rem; }
.consent-opt{ display:grid; grid-template-columns:24px 1fr; gap:.6rem; align-items:start; cursor:pointer; }
.consent-opt input{ width:20px; height:20px; margin:2px 0 0; accent-color:var(--lamp-ink); }
.consent-opt b{ display:block; color:var(--ink); }
.consent-opt span{ color:var(--dust); }
.consent-actions{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.2rem; }
.consent-actions .btn{ white-space:nowrap; padding:0 1.1rem; font-size:14px; min-height:44px; }
.consent-actions .btn-quiet{ box-shadow:inset 0 0 0 1px var(--hair); }
.consent-actions [data-consent="reject"],.consent-actions [data-consent="accept"]{ flex:1 1 0; }
@media(max-width:560px){ .consent{ right:12px; bottom:12px; width:calc(100% - 24px); } }
.sr-only{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* contact layout */
.contact-grid{ display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:clamp(2rem,6vw,5rem); align-items:start; }
@media(max-width:860px){ .contact-grid{ grid-template-columns:minmax(0,1fr); } }

/* rhythm between headings and paragraphs */
h1 + .lede, h2 + .lede, .lede + .lede, h2 + .stack{ margin-top:20px; }
.folds{ gap:clamp(6px,1.5vw,18px); }
@media(max-width:900px){ #curve-bg{ top:76px; height:calc(100% - 76px); } }
@media(max-width:700px){ #curve-bg .trail{ opacity:.22; } #curve-bg .ghost{ opacity:.05; } }
@media(prefers-reduced-motion:reduce){ #curve-bg{ transform:none; } }

/* ============================================================
   EDITORIAL SECTIONS — heading on the left, content on the right,
   the same alignment on every section so the page reads as one column.
   ============================================================ */
.sec{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(24px,5vw,72px); align-items:start; }
.sec-head{ padding-top:4px; }
.sec-head .kicker{ margin-bottom:.9rem; }
.sec-body > :first-child{ margin-top:0 !important; }
.sec-body .steps:first-child{ margin-top:0; }
.sec-body .faq{ margin-top:0; }
.sec-body .folds{ margin-top:32px; }
@media(max-width:860px){
  .sec{ grid-template-columns:minmax(0,1fr); gap:20px; }
  .sec-head{ position:static; }
}

/* ============================================================
   FOREGROUND SEPARATION — a soft paper-coloured halo around text
   lifts it off the curve behind, like ink on a sheet over a drawing.
   ============================================================ */
main h1, main h2, main h3, main p, main li, main summary, main dt, main dd,
main .kicker, main .lede, main .stack, main label, main .fold span, main .more, main td, main th,
.foot-col a, .foot-brand p, .foot-base, .foot-title, .brand b, .brand em, .nav-links a{
  text-shadow:0 0 2px var(--paper), 0 0 12px var(--paper);
}
main .btn, main .btn *, main .pill, .nav-links a[aria-current="page"], .nav-links a:hover{ text-shadow:none; }
/* screenshots and frames float a touch higher than the text */
.frame{ box-shadow:0 2px 6px rgba(17,17,17,.05), 0 30px 60px -24px rgba(17,17,17,.32); }
/* A feathered shade of paper behind each block of text: the curve
   fades out as it passes under the words instead of cutting through them. */
/* The shade hosts are positioned but do NOT form their own stacking
   context, so every shade drops into main's bottom layer (z-index:-1):
   above the curve, below all text, buttons and images. */
.hero .col, .page-top .col, .sec-head, .sec-body, .head, .work-body, .svc > div,
.cta > div, .legal-body, .prose{ position:relative; }
main{ isolation:isolate; }
.hero .col::before, .page-top .col::before, .sec-head::before, .sec-body::before, .head::before,
.work-body::before, .svc > div::before, .cta > div::before, .legal-body::before, .prose::before{
  content:''; position:absolute; z-index:-1; inset:-18px -24px; border-radius:32px; pointer-events:none;
  background:color-mix(in srgb,var(--paper) 78%,transparent);
  box-shadow:0 0 36px 28px color-mix(in srgb,var(--paper) 78%,transparent);
}
@media(max-width:700px){
  .hero .col::before, .page-top .col::before, .sec-head::before, .sec-body::before, .head::before,
  .work-body::before, .svc > div::before, .cta > div::before, .legal-body::before, .prose::before{
    inset:-10px -12px; box-shadow:0 0 18px 8px color-mix(in srgb,var(--paper) 78%,transparent);
  }
}

/* pricing figures */
.prices{ display:flex; flex-wrap:wrap; gap:16px clamp(28px,5vw,56px); margin-top:4px; }
.price b{ display:block; font-family:var(--display); font-weight:400; font-size:clamp(34px,4.4vw,48px); line-height:1.05; color:var(--lamp-ink); letter-spacing:.02em; }
.price span{ display:block; margin-top:6px; font-size:14px; letter-spacing:.14em; text-transform:uppercase; color:var(--dust); }
.sec-body .prices + .lede{ margin-top:24px; }
.sec-body .lede + div .list{ margin-top:20px; }

/* ============================================================
   RESOURCES
   ============================================================ */
.posts{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:56px clamp(32px,6vw,88px); }
.post{ display:grid; grid-template-columns:56px minmax(0,1fr); gap:20px; align-items:start; text-decoration:none; color:inherit; }
.post svg{ width:56px; height:56px; }
.post h3{ margin-top:12px; font-size:21px; }
.post p{ color:var(--dust); margin-top:8px; }
.post small{ display:block; margin-top:10px; font-size:14px; color:var(--dust); }
a.post:hover h3{ color:var(--lamp-ink); }
@media(max-width:760px){ .posts{ grid-template-columns:minmax(0,1fr); } }
.post > div, .post-body, .post-more{ position:relative; }
.post > div::before, .post-body::before, .post-more::before{
  content:''; position:absolute; z-index:-1; inset:-18px -24px; border-radius:32px; pointer-events:none;
  background:color-mix(in srgb,var(--paper) 78%,transparent);
  box-shadow:0 0 36px 28px color-mix(in srgb,var(--paper) 78%,transparent);
}
@media(max-width:700px){ .post > div::before, .post-body::before, .post-more::before{ inset:-10px -12px; box-shadow:0 0 18px 8px color-mix(in srgb,var(--paper) 78%,transparent); } }
.article .page-top{ padding-inline:0; }
.article h1{ font-size:clamp(32px,4.6vw,52px); }
a.kicker{ text-decoration:none; }
.post-meta{ margin-top:16px; font-size:14px; letter-spacing:.06em; color:var(--dust); }
.post-body{ max-width:68ch; display:grid; gap:40px; padding-block:clamp(24px,4vw,40px); }
.post-body h2{ font-size:clamp(22px,2.6vw,28px); margin-bottom:14px; }
.post-body p{ color:var(--ink); font-size:18px; font-weight:300; line-height:1.75; }
.post-body p + p{ margin-top:14px; }
.post-body ul{ margin:14px 0 0; padding-left:1.2rem; display:grid; gap:10px; font-size:18px; font-weight:300; }
.post-body li b{ font-weight:500; }
.post-body a,.post-more a{ color:var(--lamp-ink); text-underline-offset:.2em; }
.post-body code{ font-size:.9em; background:var(--sunk); padding:.1em .35em; border-radius:6px; }
.post-more{ max-width:68ch; padding-top:clamp(24px,4vw,40px); border-top:1px solid var(--hair); }
.post-more h2{ font-size:20px; }
main .post-meta, main .post-body p, main .post-body li, main .post small{ text-shadow:0 0 2px var(--paper), 0 0 8px var(--paper); }
.post-body ul + p{ margin-top:14px; }
.post-meta + .lede{ margin-top:18px; }

/* fold icons: <svg class="fold-icon"><use href="#sr-fold-n"/></svg> */
.sr-defs{ position:absolute; width:0; height:0; overflow:hidden; }
.fold-icon{ fill:none; stroke:var(--lamp); stroke-linejoin:round; stroke-linecap:round; overflow:visible; }

/* breadcrumbs: sit where the page kicker used to, in the same small caps */
.crumbs{ margin-bottom:1.2rem; font-size:13px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--dust); }
.crumbs ol{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; }
.crumbs li{ display:inline-flex; align-items:center; }
.crumbs li + li::before{ content:'/'; content:'/' / ''; margin:0 .6rem; color:var(--dust); font-weight:400; }
.crumbs a{ color:var(--dust); text-decoration:none; display:inline-flex; align-items:center; min-height:32px; }
.crumbs a:hover{ color:var(--lamp-ink); text-decoration:underline; text-underline-offset:.25em; }
.crumbs [aria-current="page"]{ color:var(--lamp-ink); }
.legal-body .crumbs{ margin-bottom:1.4rem; }.foot-base .foot-links{ display:flex; flex-wrap:wrap; gap:.4rem 1.6rem; align-items:center; }
.foot-base a{ color:var(--dust); text-decoration:none; }
.foot-base a:hover{ color:var(--lamp-ink); text-decoration:underline; text-underline-offset:.2em; }

/* Service page link to its Sonoma County page */
.local-link{ margin-top:1.25rem; font-size:15px; color:var(--dust); }
.local-link a{ color:var(--lamp-ink); text-underline-offset:3px; }

/* Editor demo video (websites page) */
.demo-video{ background:var(--sunk); }
.demo-video video{ display:block; width:100%; height:auto; aspect-ratio:16/9; background:var(--paper); }
.demo-video-btns{ margin-top:clamp(1.5rem,3vw,2rem); }
