/* ===========================================================================
   Regulars — full-stack studio, Aruba · Bonaire · Curaçao

   Two faces, one job each:
     Fraunces  display only, set LIGHT (300–400) and large. Italic carries the
               accent word in a headline. Never 600+ above 2rem.
     Figtree   everything read carefully: body, UI, figures.

   One accent, orange. --brand is a fill and is never body text; --brand-ink
   is the same hue darkened until it passes at body size. The sea colours
   (--sea, --lagoon) live in the hero shader and in diagrams, never in text.

   Light is the ground. The one dark band (.night) is used for the AI section
   and the closing call, and flips its own tokens rather than the page's.
   =========================================================================== */

:root {
  --paper:    #FCF9F6;
  --paper-2:  #F5EEE7;
  --paper-3:  #EFE3D9;
  --line:     #E6D8CD;
  --line-2:   #CDB6A7;
  --ink:      #1A0E0B;
  --ink-2:    #55392F;
  --muted:    #7B5B4D;
  --brand:    #E85D04;
  --brand-ink:#A63700;
  --brand-soft:#FBEADD;
  --sea:      #0B6E6E;
  --lagoon:   #3CC6C0;
  --night:    #0F0B0A;
  --night-2:  #1A1412;
  --night-line:#2E2421;
  --night-ink:#F7F1EC;
  --night-muted:#B49C8E;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-xs:  .8125rem;
  --t-sm:  .9375rem;
  --t-base:1.0625rem;
  --t-lg:  1.25rem;
  --t-xl:  clamp(1.35rem, 1.8vw, 1.6rem);
  --t-2xl: clamp(1.7rem, 2.8vw, 2.4rem);
  --t-3xl: clamp(2.3rem, 4.6vw, 4.4rem);
  --t-hero:clamp(3.1rem, 8.2vw, 8.6rem);

  --pad: clamp(20px, 4vw, 56px);
  --wrap: 1400px;
  --gap: clamp(6rem, 11vw, 11rem);
  --r: 14px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::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(--paper);
  color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; color: var(--paper); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: calc(var(--gap) / 2); position: relative; }

/* ------------------------------------------------------------------ type */

.display, h1, h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -.03em;
  line-height: .98;
}
h1 { font-size: var(--t-hero); letter-spacing: -.045em; line-height: .92; }
h2 { font-size: var(--t-3xl); }
h1 em, h2 em, .display em { font-style: italic; font-weight: 300; color: var(--brand-ink); }
h3 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.6rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.lede { font-size: var(--t-lg); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.statement {
  font-family: var(--f-display); font-weight: 300; font-variation-settings: "opsz" 96;
  font-size: var(--t-2xl); line-height: 1.18; letter-spacing: -.02em; max-width: 30ch;
}
.statement em { font-style: italic; color: var(--brand-ink); }
.statement .dim { color: #A38878; }  /* 3.15:1 on paper; passes for large text */
.small { font-size: var(--t-sm); color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 var(--t-sm)/1 var(--f-text); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .4s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(252, 249, 246, .6); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-orange { background: var(--brand); color: var(--ink); }  /* ink on orange 5.4:1; white was 3.5:1 */
.btn-orange:hover { background: var(--paper); color: var(--ink); }
.btn .arw { transition: transform .4s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------------------------------------------------------------- header */

.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .35s, box-shadow .35s, transform .45s var(--ease);
}
.site-head .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.site-head.scrolled { background: rgba(252, 249, 246, .95); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { width: 30px; height: 30px; color: var(--brand); }
.wordmark { font-family: var(--f-display); font-size: 1.45rem; font-weight: 400; letter-spacing: -.02em; }

.site-nav ul { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(252, 249, 246, .7); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.site-nav a { display: block; padding: 9px 16px; border-radius: 999px; font-size: var(--t-sm); font-weight: 500; text-decoration: none; color: var(--ink-2); transition: background-color .2s, color .2s; }
.site-nav a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav a[aria-current] { color: var(--ink); background: var(--paper-3); }

.head-actions { display: flex; align-items: center; gap: 10px; }
.head-actions .btn { height: 44px; padding: 0 20px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* Nav parts measure ~820px; below 900 the list collapses into a sheet. */
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav { position: fixed; inset: 76px 12px auto 12px; display: none; }
  .site-nav[data-open] { display: block; }
  .site-nav ul { flex-direction: column; padding: 10px; border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 20px 60px rgba(26, 14, 11, .14); }
  .site-nav a { padding: 14px 16px; font-size: var(--t-base); }
}
@media (max-width: 520px) { .head-actions .cta-head { display: none; } }

/* ------------------------------------------------------------------ hero */

.hero {
  min-height: 100svh; padding: 0; display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; }
.hero-canvas canvas { width: 100% !important; height: 100% !important; }
/* Static stand-in: shows before the shader loads, and stays when WebGL or
   motion is unavailable. Same rings, same palette, no movement. */
.hero-canvas::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--paper) 18%, rgba(252, 249, 246, 0) 62%),
    repeating-radial-gradient(ellipse 120% 90% at 72% 22%,
      var(--paper) 0 26px, #E8DCCD 30px, #7FD3CC 33px, #F2C49B 36px, var(--paper) 40px 64px);
  opacity: .9;
}
.hero-canvas.live::before { opacity: 0; transition: opacity 1.2s; }

.hero-body { padding-top: 140px; padding-bottom: clamp(28px, 4vw, 48px); }
.hero h1 { max-width: 11ch; }
.hero-foot { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 32px 64px; align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.hero-foot .lede { margin: 0 0 24px; color: var(--ink-2); }
.hero-bar {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: clamp(32px, 5vw, 64px); padding-top: 16px; border-top: 1px solid rgba(26, 14, 11, .16);
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero-bar a { text-decoration: none; }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; } }

/* Entrance — words rise once on load. Transform/opacity only. */
.rise-in { opacity: 0; transform: translateY(24px); animation: rise-in 1.1s var(--ease) forwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .45s; } .d4 { animation-delay: .6s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

/* Scroll reveal — set by js/site.js; without script everything is visible. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise-in, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------- statement */

.intro { padding-block: var(--gap) calc(var(--gap) / 2); }
.intro .statement { font-size: var(--t-3xl); max-width: 22ch; line-height: 1.06; letter-spacing: -.03em; }
.intro-grid { display: grid; grid-template-columns: 180px 1fr; gap: 32px; }
@media (max-width: 760px) { .intro-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- the stack */

.stack-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.stack-list > li {
  display: grid; grid-template-columns: 56px 1fr; gap: 0 16px;
  padding: 28px 0; border-top: 1px solid var(--line);
  transition: opacity .4s;
}
.stack-list > li:last-child { border-bottom: 1px solid var(--line); }
.stack-list .no { font-size: var(--t-sm); font-weight: 600; color: var(--muted); padding-top: .55em; font-variant-numeric: tabular-nums; }
.stack-list h3 { font-family: var(--f-display); font-weight: 300; font-size: var(--t-2xl); letter-spacing: -.02em; margin-bottom: .45rem; }
.stack-list p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.stack-list .tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: var(--t-xs); font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.js .stack-list > li { opacity: .38; }
.js .stack-list > li.on { opacity: 1; }
.js .stack-list > li.on .no { color: var(--brand-ink); }

.stack-figure { position: sticky; top: 110px; margin: 0; }
.stack-figure svg { width: 100%; height: auto; overflow: visible; }
.stack-figure .layer { transition: transform .7s var(--ease); }
.stack-figure .layer path.top { fill: var(--paper-2); stroke: var(--line-2); stroke-width: 1; transition: fill .5s, stroke .5s; }
.stack-figure .layer path.side { fill: var(--paper-3); stroke: var(--line-2); stroke-width: 1; transition: fill .5s; }
.stack-figure .layer text { font: 600 13px var(--f-text); fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; transition: fill .5s; }
.stack-figure .layer .glyph { stroke: var(--line-2); fill: none; stroke-width: 1.4; transition: stroke .5s; }
.stack-figure .layer.on { transform: translateY(-14px); }
.stack-figure .layer.on path.top { fill: var(--brand); stroke: var(--brand); }
.stack-figure .layer.on path.side { fill: #B84A03; }
.stack-figure .layer.on text { fill: var(--ink); }
.stack-figure .layer.on .glyph { stroke: #fff; }
.stack-figure figcaption { margin-top: 20px; }
@media (max-width: 900px) {
  .stack-grid { grid-template-columns: 1fr; }
  .stack-figure { position: relative; top: 0; order: -1; max-width: 460px; }
  .js .stack-list > li { opacity: 1; }
}

/* ---------------------------------------------------------------- night */

.night {
  background: var(--night); color: var(--night-ink);
  --line: var(--night-line); --muted: var(--night-muted); --ink-2: #D9C8BE; --brand-ink: #FF9A52;
  --paper-2: var(--night-2);
}
.night h2 em, .night .statement em { color: #FF9A52; }
.night .eyebrow { color: var(--night-muted); }
.night a:hover { color: #FF9A52; }

.ai-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 110px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.caps li { padding: 26px 0; border-top: 1px solid var(--night-line); display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.caps li:last-child { border-bottom: 1px solid var(--night-line); }
.caps .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--night-2); color: #FF9A52; }
.caps .ico svg { width: 20px; height: 20px; }
.caps h3 { font-size: var(--t-lg); margin-bottom: .35rem; }
.caps p { margin: 0; color: #CDB9AD; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }

/* The drawn conversation. HTML, not a screenshot, and labelled as one. */
.chat {
  border-radius: var(--r-lg); background: linear-gradient(180deg, #1C1513, #15100E);
  border: 1px solid var(--night-line); padding: 20px; box-shadow: 0 40px 120px rgba(0, 0, 0, .45);
}
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 16px; border-bottom: 1px solid var(--night-line); }
.chat-who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--t-sm); }
.chat-who .av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: #fff; }
.chat-who .av svg { width: 20px; height: 20px; }
.chat-who small { display: block; font-weight: 500; color: var(--night-muted); font-size: var(--t-xs); }
.langs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: #0F0B0A; border: 1px solid var(--night-line); }
.langs button { border: 0; background: none; color: var(--night-muted); font: 600 var(--t-xs)/1 var(--f-text); letter-spacing: .06em; padding: 8px 11px; border-radius: 999px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--night-ink); color: var(--night); }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 4px 6px; min-height: 360px; }
.msg { max-width: 82%; padding: 12px 15px; border-radius: 18px; font-size: var(--t-sm); line-height: 1.45; }
.msg.guest { align-self: flex-end; background: #2A211E; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--night-ink); color: var(--night); border-bottom-left-radius: 6px; }
.tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); font-weight: 600; color: var(--lagoon); padding: 4px 2px; }
.tool::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lagoon); box-shadow: 0 0 0 4px rgba(60, 198, 192, .15); }
.js .chat-body > * { opacity: 0; transform: translateY(10px); }
.chat-body > .shown { opacity: 1 !important; transform: none !important; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.chat-note { margin: 14px 4px 0; font-size: var(--t-xs); color: var(--night-muted); }

/* ---------------------------------------------------------------- process */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.steps li { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 28px; }
.steps li:last-child { border-right: 0; }
.steps .big { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 5vw, 4.6rem); line-height: 1; color: var(--brand); letter-spacing: -.04em; margin-bottom: 28px; }
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3) { padding-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; padding-right: 0; border-right: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------ built here */

.here-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(40px, 5vw, 72px); }
.trades { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.trades li { font-family: var(--f-display); font-weight: 300; font-size: var(--t-xl); padding: 12px 22px; border: 1px solid var(--line-2); border-radius: 999px; transition: background-color .3s, color .3s, border-color .3s; }
.trades li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts div { background: var(--paper); padding: 26px; }
.facts h3 { font-size: var(--t-base); margin-bottom: .4rem; }
.facts p { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 900px) { .here-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- faq */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: var(--t-lg); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 1.8rem; line-height: .7; color: var(--brand); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 26px; max-width: 60ch; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- closing */

.closing { padding-block: var(--gap); overflow: hidden; }
.closing h2 { font-size: clamp(2.8rem, 7.4vw, 7.4rem); letter-spacing: -.045em; line-height: .95; max-width: 13ch; }
.closing .btn-row { margin-top: clamp(32px, 4vw, 56px); }
.closing .btn-ghost { background: transparent; color: var(--night-ink); border-color: var(--night-line); }
.closing .btn-ghost:hover { border-color: var(--night-ink); color: var(--night-ink); }
.closing .rings { position: absolute; right: -14vw; top: 50%; width: min(70vw, 900px); transform: translateY(-50%); opacity: .5; pointer-events: none; }
.closing .wrap { position: relative; }

/* ------------------------------------------------------------ inner pages */

.page-hero { padding-top: clamp(150px, 18vw, 220px); padding-bottom: calc(var(--gap) / 2); }
.page-hero h1 { font-size: clamp(2.8rem, 6.6vw, 6.4rem); max-width: 14ch; }
.page-hero .lede { margin-top: 28px; }
.page-hero { overflow: hidden; }
.page-rings { position: absolute; right: -8vw; top: 50%; width: min(56vw, 720px); transform: translateY(-46%); opacity: .55; pointer-events: none; z-index: -1; }
@media (max-width: 760px) { .page-rings { right: -40vw; width: 110vw; opacity: .3; } }

.service { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 80px); padding-block: 56px; border-top: 1px solid var(--line); }
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service .no { font-family: var(--f-display); font-weight: 300; font-size: 3rem; line-height: 1; color: var(--brand); }
.service h2 { font-size: var(--t-2xl); margin-bottom: 1rem; }
.service p { color: var(--ink-2); }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; } }

.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
@media (max-width: 900px) { .cols-2 { grid-template-columns: 1fr; } }

.card { background: var(--paper-2); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
.card h3 { margin-bottom: .6rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.night .card { background: var(--night-2); }

.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font-size: var(--t-sm); font-weight: 600; color: var(--brand-ink); padding-top: .3em; }
.timeline h3 { margin-bottom: .4rem; }
.timeline p { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }

/* ------------------------------------------------------------------- form */

.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: var(--t-sm); font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--t-base); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.checks legend { font-size: var(--t-sm); font-weight: 600; margin-bottom: 8px; padding: 0; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--t-sm); cursor: pointer; }
.checks input { accent-color: var(--brand); }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: var(--t-sm); color: var(--muted); margin: 0; }

/* --------------------------------------------------------- floating pill */

.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  background: var(--ink); color: var(--paper); border-radius: 999px; text-decoration: none;
  box-shadow: 0 18px 50px rgba(26, 14, 11, .28);
  transform: translateY(120px); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
}
.float-cta.show { transform: none; opacity: 1; }
.float-cta:hover { color: var(--paper); background: var(--brand); }
.float-cta .wa { width: 36px; height: 36px; border-radius: 50%; background: #25D366; display: grid; place-items: center; }
.float-cta .wa svg { width: 20px; height: 20px; color: #fff; }
.float-cta b { display: block; font-size: var(--t-sm); line-height: 1.2; }
.float-cta small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
@media (max-width: 520px) { .float-cta { right: 12px; bottom: 12px; } .float-cta small { display: none; } }

/* ----------------------------------------------------------------- footer */

.site-foot { padding-block: 72px 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid h2 { font-family: var(--f-text); font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--brand-ink); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
.foot-legal p { margin: 0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ utils */

.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt2 { margin-top: 1rem; } .mt3 { margin-top: 1.5rem; } .mt4 { margin-top: 2.5rem; } .mt5 { margin-top: 4rem; }
@media (max-width: 640px) { .hide-sm { display: none; } }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.head-row .lede { margin: 0; }

/* ------------------------------------------------------------------ print */

@media print {
  .site-head, .float-cta, .hero-canvas, .nav-toggle, .closing .rings { display: none !important; }
  .night { background: #fff; color: #000; }
  .js .reveal, .js .stack-list > li, .js .chat-body > * { opacity: 1 !important; transform: none !important; }
  .hero { min-height: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
