/* ==========================================================================
   Noodell — shared stylesheet
   Dark-ink surface. Fraunces display, DM Sans text.
   Palette roles per brand-guidelines.md; the two *-br tokens are
   dark-surface variants of Amber and Indigo (the guidelines only define
   light-surface pairs, and both base hexes fail contrast on ink).
   ========================================================================== */

:root{
  --ink:#0c0f0d;
  --panel:#121714;
  --paper:#f8f7f3;
  --muted:#9ba49f;
  --faint:rgba(248,247,243,.13);
  --hair:rgba(248,247,243,.11);

  --green:#1a5c3e;
  --green-br:#52c48a;
  --amber:#c47f2a;        /* graphic use on ink: the thread, rules */
  --amber-br:#e0a45c;     /* dark-surface text variant */
  --indigo-br:#8f92e8;    /* dark-surface text variant */

  --serif:'Fraunces',Georgia,'Times New Roman',serif;
  --sans:'DM Sans',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;

  --gut:clamp(20px,5vw,64px);
  --bay:clamp(72px,11vh,132px);   /* section rhythm */
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:var(--sans);
  font-size:16.5px;
  font-weight:300;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
a{color:inherit}

/* ── layout ───────────────────────────────────────────────────────────── */

.wrap{max-width:1080px;margin:0 auto;padding:0 var(--gut);position:relative;z-index:1}

section{border-top:1px solid var(--hair)}
section:first-of-type{border-top:0}
.bay{padding:var(--bay) 0}

/* the one asymmetry the page leans on: a narrow label rail, a wide text
   column. Everything hangs off it, so nothing needs a card to sit in. */
.rail{display:grid;grid-template-columns:150px minmax(0,1fr);gap:clamp(20px,4vw,56px)}
@media (max-width:760px){.rail{grid-template-columns:1fr;gap:14px}}

/* ── type ─────────────────────────────────────────────────────────────── */

h1,h2,h3{font-family:var(--serif);margin:0;font-synthesis-weight:none}

h1{font-size:clamp(42px,7.6vw,88px);font-weight:900;line-height:.97;letter-spacing:-.035em}
h2{font-size:clamp(29px,4.3vw,50px);font-weight:700;line-height:1.07;letter-spacing:-.022em}
h3{font-size:clamp(19px,2.2vw,23px);font-weight:700;line-height:1.25;letter-spacing:-.012em}

p{margin:0 0 1.05em}
p:last-child{margin-bottom:0}

.lead{font-size:clamp(17.5px,2.05vw,22px);line-height:1.5;font-weight:300;color:var(--paper);max-width:34ch}
.body{color:var(--muted);max-width:56ch}
.tight{max-width:44ch}

/* the only "label" device on the site — small caps, in the rail */
.tag{
  font-size:11px;font-weight:500;letter-spacing:.19em;text-transform:uppercase;
  color:var(--muted);line-height:1.5;margin:0;
}
.tag.amber{color:var(--amber-br)}
.tag.indigo{color:var(--indigo-br)}

.pull{
  font-family:var(--serif);font-weight:300;font-style:italic;
  font-size:clamp(20px,2.7vw,30px);line-height:1.32;letter-spacing:-.015em;
  color:var(--paper);max-width:24ch;margin:0;
}

.dot{color:var(--green-br)}

/* ── header ───────────────────────────────────────────────────────────── */

header{position:sticky;top:0;z-index:40;background:rgba(12,15,13,.86);backdrop-filter:blur(14px);border-bottom:1px solid var(--hair)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:20px;height:66px}
.mark{font-family:var(--serif);font-weight:900;font-size:25px;letter-spacing:-.03em;text-decoration:none;line-height:1;position:relative}
nav{display:flex;align-items:center;gap:clamp(14px,2.4vw,28px)}
nav a{font-size:13.5px;font-weight:300;color:var(--muted);text-decoration:none;transition:color .18s}
nav a:hover,nav a[aria-current]{color:var(--paper)}
@media (max-width:620px){nav .hide-s{display:none}}

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--sans);font-size:14px;font-weight:500;line-height:1;
  padding:14px 26px;border-radius:100px;border:1px solid transparent;
  text-decoration:none;cursor:pointer;transition:transform .16s,background .18s,border-color .18s,color .18s;
}
.btn:active{transform:translateY(1px)}
.btn-p{background:var(--green-br);color:var(--ink)}
.btn-p:hover{background:#6ad39c}
.btn-s{background:transparent;color:rgba(248,247,243,.82);border-color:rgba(248,247,243,.22)}
.btn-s:hover{border-color:rgba(248,247,243,.5);color:var(--paper)}
.btn-nav{padding:8px 15px;font-size:13px;font-weight:400}
.btn-full{width:100%;justify-content:center;background:var(--green-br);color:var(--ink);border:0}
.btn-full:disabled{background:#2b3733;color:#78827d;cursor:not-allowed}
.btns{display:flex;flex-wrap:wrap;gap:12px;align-items:center}

/* ── the thread ───────────────────────────────────────────────────────────
   One continuous amber line down the page, generated in JS against the real
   document height. Ghost stroke always present; the bright stroke traces it
   with scroll. Sits behind everything (.wrap is z-index 1).             */

#thread{position:absolute;top:0;left:0;pointer-events:none;z-index:0;overflow:hidden}
#thread .ghost{fill:none;stroke:var(--amber);stroke-width:2.5;opacity:.17;stroke-linecap:round}
#thread .live{fill:none;stroke:var(--amber);stroke-width:2.5;opacity:.95;stroke-linecap:round}
#thread .cap{fill:var(--green-br)}
@media (prefers-reduced-motion:reduce){
  #thread .live{display:none}
  #thread .ghost{opacity:.4}
}
@media (max-width:1199px){#thread .ghost{opacity:.13}#thread .live{opacity:.75;stroke-width:2}#thread .ghost{stroke-width:2}}

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero{padding:clamp(64px,13vh,140px) 0 clamp(60px,11vh,120px)}
.hero h1{max-width:15ch}
.hero .lead{margin:clamp(24px,3.4vw,34px) 0 clamp(28px,3.6vw,38px)}

/* ── two-up (the problem pair, the service steps) ─────────────────────── */

.duo{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,5vw,72px)}
@media (max-width:760px){.duo{grid-template-columns:1fr;gap:36px}}

.edge{padding-left:18px;border-left:2px solid var(--faint)}
.edge.amber{border-left-color:var(--amber)}
.edge.indigo{border-left-color:var(--indigo-br)}

/* numbered steps — a list, not a card grid */
.steps{list-style:none;margin:0;padding:0;counter-reset:s}
.steps li{
  counter-increment:s;padding:20px 0;border-top:1px solid var(--hair);
  display:grid;grid-template-columns:30px minmax(0,1fr);gap:16px;align-items:baseline;
}
.steps li:last-child{border-bottom:1px solid var(--hair)}
.steps li::before{
  content:counter(s,decimal-leading-zero);
  font-family:var(--serif);font-size:13px;opacity:.38;line-height:1.5;
}
.steps b{font-family:var(--serif);font-weight:700;font-size:19px;letter-spacing:-.01em;display:block;margin-bottom:3px}
.steps span{color:var(--muted);font-size:15.5px;line-height:1.5;display:block}

/* ── figure / portrait ───────────────────────────────────────────────── */

.por{width:100%;max-width:280px;aspect-ratio:4/5;object-fit:cover;filter:grayscale(1) contrast(1.05);border:1px solid var(--hair)}

/* ── stat row ─────────────────────────────────────────────────────────── */

.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1px;background:var(--hair);border:1px solid var(--hair)}
.stats div{background:var(--ink);padding:22px 18px}
.stats b{display:block;font-family:var(--serif);font-size:clamp(30px,4vw,42px);font-weight:900;line-height:1;letter-spacing:-.03em}
.stats span{display:block;margin-top:8px;font-size:12.5px;color:var(--muted);line-height:1.4}

/* ── footer ───────────────────────────────────────────────────────────── */

footer{border-top:1px solid var(--hair);padding:44px 0 52px;font-size:13.5px;color:var(--muted)}
.foot{display:flex;flex-wrap:wrap;gap:18px 32px;align-items:center;justify-content:space-between}
footer a{text-decoration:none;transition:color .18s}
footer a:hover{color:var(--paper)}

/* ── modal ────────────────────────────────────────────────────────────── */

#modal-bg{
  position:fixed;inset:0;z-index:100;display:none;
  background:rgba(6,8,7,.72);backdrop-filter:blur(4px);
  padding:22px;overflow-y:auto;
}
#modal-bg.open{display:flex;align-items:center;justify-content:center}
.modal{
  background:var(--panel);border:1px solid var(--faint);border-radius:5px;
  width:100%;max-width:520px;box-shadow:0 24px 60px rgba(0,0,0,.55);
  animation:rise .22s ease-out;
}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.modal{animation:none}}
.m-head{padding:28px 30px 22px;border-bottom:1px solid var(--hair);position:relative}
.m-head .tag{margin-bottom:10px}
.m-head h3{font-size:27px;font-weight:900;letter-spacing:-.025em}
.m-head p{margin:9px 0 0;font-size:14.5px;color:var(--muted);line-height:1.5}
.m-x{
  position:absolute;top:20px;right:20px;width:32px;height:32px;border-radius:50%;
  background:rgba(248,247,243,.1);border:0;color:var(--paper);cursor:pointer;
  font-size:17px;line-height:1;display:grid;place-items:center;transition:background .18s;
}
.m-x:hover{background:rgba(248,247,243,.2)}
.m-body{padding:24px 30px 28px}
.fg{margin-bottom:15px}
.fg label{display:block;font-size:12.5px;font-weight:500;letter-spacing:.03em;margin-bottom:6px}
.fg label i{font-style:normal;color:var(--muted);font-weight:300}
.fg input{
  width:100%;padding:12px 14px;border:1px solid rgba(248,247,243,.16);border-radius:3px;
  background:rgba(248,247,243,.04);color:var(--paper);
  font-family:var(--sans);font-size:14.5px;font-weight:300;
}
.fg input::placeholder{color:#78827d}
.fg input:focus{outline:0;border-color:var(--green-br);background:rgba(248,247,243,.06)}
.hint{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.4}
.hp{position:absolute;left:-9999px}
.m-note{font-size:12px;color:var(--muted);margin:14px 0 0;text-align:center;line-height:1.45}
.m-thanks{display:none;padding:44px 30px 48px;text-align:center}
.m-thanks.show{display:block}
.m-thanks .tick{width:44px;height:44px;border-radius:50%;background:var(--green-br);color:var(--ink);display:grid;place-items:center;margin:0 auto 18px;font-size:22px}
.m-thanks h3{font-size:25px;font-weight:900;letter-spacing:-.02em}
.m-thanks p{margin:10px auto 0;font-size:14.5px;color:var(--muted);max-width:34ch}

/* ── focus ────────────────────────────────────────────────────────────── */
:focus-visible{outline:2px solid var(--green-br);outline-offset:3px;border-radius:2px}
