/* ==========================================================================
   Cairnford Systems — design system v2 (dark-first)
   Palette: midnight ink, warm ivory, burnished copper, muted sage
   Type:    Geist (display/body), Geist Mono (labels), Instrument Serif (hero accent only)
   ========================================================================== */

:root {
  --night: #0d171e;
  --ink: #15242e;
  --ink-2: #1a2c38;
  --ink-3: #223845;
  --ivory: #f3f0e9;
  --ivory-2: #ebe6db;
  --ivory-3: #ddd6c7;
  --copper: #b77953;
  --copper-hi: #cf9470;
  --copper-lo: #9a5f3a;
  --sage: #82918c;
  --green: #7fae8f;

  /* default = dark context */
  --bg: var(--night);
  --surface: var(--ink);
  --surface-2: var(--ink-2);
  --text: var(--ivory);
  --text-2: rgba(243, 240, 233, 0.68);
  --text-3: rgba(243, 240, 233, 0.44);
  --line: rgba(243, 240, 233, 0.09);
  --line-2: rgba(243, 240, 233, 0.18);
  --accent: var(--copper-hi);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  --maxw: 1280px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --r: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.light {
  --bg: var(--ivory);
  --surface: #fbf9f5;
  --surface-2: var(--ivory-2);
  --text: var(--ink);
  --text-2: rgba(21, 36, 46, 0.7);
  --text-3: rgba(21, 36, 46, 0.5);
  --line: rgba(21, 36, 46, 0.1);
  --line-2: rgba(21, 36, 46, 0.2);
  --accent: var(--copper-lo);
  background: var(--bg);
  color: var(--text);
}
.dark { background: var(--bg); color: var(--text); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--ivory);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--copper); color: var(--night); }
:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ivory); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */
.label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); display: inline-flex; align-items: center; gap: .75rem; }
.label.rule::before { content: ""; width: 1.25rem; height: 1px; background: currentColor; opacity: .7; }
.label.accent { color: var(--accent); }
.display { font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(2.6rem, 5.4vw, 4.75rem); text-wrap: balance; }
.display-2 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; font-size: clamp(2.2rem, 4.2vw, 3.6rem); text-wrap: balance; }
.h2 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(1.9rem, 3.4vw, 2.75rem); text-wrap: balance; }
.h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; font-size: clamp(1.5rem, 2.4vw, 2rem); text-wrap: balance; }
.h4 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; font-size: 1.2rem; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.18rem); line-height: 1.5; color: var(--text-2); max-width: 46ch; text-wrap: pretty; }
.body { color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
.body + .body { margin-top: 1rem; }
.small { font-size: .9rem; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.dim { color: var(--text-3); }
.hl { color: var(--text); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section.tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.hr { border: 0; height: 1px; background: var(--line); margin: 0; }
.head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
@media (min-width: 960px) {
  .head.row { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 4rem; }
}
.cols-2 { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 960px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-2.wide-left { grid-template-columns: 1.2fr .8fr; } .cols-2.wide-right { grid-template-columns: .8fr 1.2fr; } }
.cols-3 { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.cols-3 > * { background: var(--bg); }
@media (min-width: 900px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cols-4 { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.cols-4 > * { background: var(--bg); }
@media (min-width: 640px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.cell { padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem) clamp(1.75rem, 3vw, 2.5rem) 0; }
@media (min-width: 900px) { .cols-3 .cell + .cell { padding-left: clamp(1.25rem, 2.5vw, 2rem); } }
@media (min-width: 640px) and (max-width: 1079px) { .cols-4 .cell:nth-child(even) { padding-left: clamp(1.25rem, 2.5vw, 2rem); } }
@media (min-width: 1080px) { .cols-4 .cell + .cell { padding-left: clamp(1.25rem, 2.5vw, 2rem); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.2rem; border-radius: 999px; font-weight: 500; font-size: .95rem; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); white-space: nowrap; }
.btn .ar { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; margin-right: -.2rem; transition: transform .3s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }
.btn-primary { background: var(--copper); color: var(--night); }
.btn-primary:hover { background: var(--copper-hi); }
.btn-line { border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; color: var(--text); }
.link svg { transition: transform .25s var(--ease); color: var(--accent); }
.link:hover svg { transform: translateX(3px); }
.link:hover { color: var(--accent); }

/* ---------- Logo (monogram tile, carried over from the original site) ---------- */
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ivory); }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: .65rem; background: var(--copper); color: var(--night); font-weight: 800; font-size: .8rem; letter-spacing: .02em; }
.brand-name { font-size: .88rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 23, 30, .72); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid rgba(243,240,233,.07); color: var(--ivory); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1.5rem; }
.nav { display: none; gap: 2rem; }
.nav a { text-decoration: none; font-size: .93rem; font-weight: 500; color: rgba(243,240,233,.66); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }
.header-cta { display: none !important; padding: .7rem 1rem .7rem 1.15rem; font-size: .9rem; }
.menu-btn { background: none; border: 1px solid rgba(243,240,233,.2); border-radius: 999px; padding: .5rem .95rem; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--ivory); }
@media (min-width: 980px) { .nav { display: flex; } .header-cta { display: inline-flex !important; } .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid rgba(243,240,233,.08); }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav .wrap { display: grid; padding-block: .5rem 1.5rem; }
.mobile-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; padding: .8rem 0; border-bottom: 1px solid rgba(243,240,233,.08); }
.mobile-nav .btn { margin-top: 1.25rem; justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); border-top: 1px solid var(--line); padding-block: clamp(4rem, 8vw, 6rem) 2rem; }
.site-footer a { text-decoration: none; color: var(--text-2); }
.site-footer a:hover { color: var(--ivory); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.footer-grid ul { display: grid; gap: .6rem; font-size: .95rem; }
.footer-bottom { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--text-3); font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(4rem, 9vw, 8rem); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 78% 8%, rgba(183,121,83,.22), transparent 70%),
    radial-gradient(40% 35% at 10% 0%, rgba(130,145,140,.12), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(243,240,233,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(243,240,233,.035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent); }
.hero .wrap { position: relative; z-index: 1; }
.hero-top { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .hero-top { grid-template-columns: 1fr auto; align-items: end; gap: 4rem; } }
.hero-side { display: grid; gap: 1.75rem; max-width: 28rem; }
.hero-side .lede { font-size: 1.15rem; }
.hero-art { margin-top: clamp(3rem, 6vw, 5rem); position: relative; }
.hero-art::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 16%; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.caption { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--text-3); margin-top: 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.facts li { display: inline-flex; align-items: center; gap: .5rem; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--copper); }

/* ---------- Stage: fixed-size art scaled to its container ---------- */
.stage { position: relative; width: 100%; }
.stage-inner { position: absolute; top: 0; left: 0; transform: translateX(var(--x, 0px)) scale(var(--s, 1)); transform-origin: 0 0; font-size: 14px; line-height: 1.45; color: var(--ivory); }
html:not(.js) .stage { overflow-x: auto; }

/* App window chrome */
.win { position: absolute; background: #111d25; border: 1px solid rgba(243,240,233,.1); border-radius: 14px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.3); }
.win.paper { background: #faf8f4; color: var(--ink); border-color: rgba(21,36,46,.12); }
.win-bar { height: 40px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid rgba(243,240,233,.07); font-family: var(--mono); font-size: 11.5px; color: rgba(243,240,233,.42); }
.win.paper .win-bar { border-color: rgba(21,36,46,.08); color: rgba(21,36,46,.45); background: #f1ede5; }
.win-bar .dots { display: flex; gap: 7px; }
.win-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(243,240,233,.14); }
.win.paper .win-bar .dots i { background: rgba(21,36,46,.14); }
.win-bar .url { flex: 1; text-align: center; }
.win-bar .url span { background: rgba(243,240,233,.05); padding: 4px 14px; border-radius: 6px; }
.win.paper .win-bar .url span { background: #fff; }

/* App shell */
.app { display: grid; grid-template-columns: 196px 1fr; height: calc(100% - 40px); }
.app-side { border-right: 1px solid rgba(243,240,233,.07); padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; background: rgba(0,0,0,.12); }
.ws { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; font-weight: 600; font-size: 13.5px; }
.ws b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--sage); color: var(--night); font-size: 11px; }
.nav-i { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 7px; color: rgba(243,240,233,.6); font-size: 13px; }
.nav-i.on { background: rgba(243,240,233,.07); color: var(--ivory); }
.nav-i em { font-style: normal; font-family: var(--mono); font-size: 11px; color: rgba(243,240,233,.4); }
.nav-sep { height: 1px; background: rgba(243,240,233,.06); margin: 10px 4px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 8px; font-size: 12.5px; color: rgba(243,240,233,.7); }
.av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-3); color: var(--ivory); font-size: 10px; font-weight: 600; flex: none; }
.av.c { background: var(--copper); color: var(--night); }
.av.s { background: var(--sage); color: var(--night); }
.app-main { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-head h5 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(243,240,233,.12); font-size: 11.5px; color: rgba(243,240,233,.65); }
.chip .live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(127,174,143,.18); }
.app-btn { margin-left: auto; padding: 7px 12px; border-radius: 8px; background: var(--ivory); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { border: 1px solid rgba(243,240,233,.08); border-radius: 10px; padding: 12px 14px; background: rgba(243,240,233,.02); }
.kpi .k { font-size: 11.5px; color: rgba(243,240,233,.5); }
.kpi .v { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; margin-top: 2px; }
.kpi .d { font-family: var(--mono); font-size: 10.5px; color: var(--green); margin-left: 6px; }

/* Kanban */
.board { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; flex: 1; }
.col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.col-h { display: flex; justify-content: space-between; font-size: 12px; color: rgba(243,240,233,.55); padding: 0 2px 2px; }
.col-h em { font-style: normal; font-family: var(--mono); font-size: 11px; color: rgba(243,240,233,.35); }
.slot { height: 122px; border-radius: 10px; border: 1px dashed rgba(243,240,233,.1); }
.kc { border-radius: 10px; padding: 12px 13px; background: #182934; border: 1px solid rgba(243,240,233,.07); display: grid; gap: 8px; font-size: 12.5px; }
.kc .t { font-weight: 600; font-size: 13px; }
.kc .s { color: rgba(243,240,233,.5); font-size: 11.5px; }
.kc .f { display: flex; justify-content: space-between; align-items: center; }
.kc .val { font-family: var(--mono); font-size: 11.5px; color: rgba(243,240,233,.75); }
.tg { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; background: rgba(243,240,233,.06); color: rgba(243,240,233,.6); margin-right: 4px; }
.tg.u { background: rgba(207,148,112,.16); color: var(--copper-hi); }
.tg.g { background: rgba(127,174,143,.14); color: var(--green); }
.live-card { position: absolute; top: 26px; left: 0; height: 122px; z-index: 2; background: #1f3341; border-color: rgba(207,148,112,.55); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6), 0 0 0 4px rgba(183,121,83,.1); transition: transform .9s var(--ease); }
.live-card .st { color: var(--copper-hi); font-family: var(--mono); font-size: 10.5px; }

/* Phone */
.phone { position: absolute; border-radius: 40px; background: #050a0d; padding: 11px; box-shadow: 0 50px 90px -25px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(243,240,233,.12); }
.phone-scr { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #f6f3ec; color: var(--ink); position: relative; }
.phone-scr .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: #050a0d; z-index: 2; }

/* Toast */
.toast { position: absolute; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(31, 51, 65, .92); border: 1px solid rgba(243,240,233,.12); backdrop-filter: blur(12px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); font-size: 12.5px; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.toast .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--copper); color: var(--night); display: grid; place-items: center; flex: none; font-weight: 700; font-size: 12px; }
.toast b { display: block; font-size: 13px; }
.toast span { color: rgba(243,240,233,.62); }
.toast.off { opacity: 0; transform: translateY(-8px); }

/* Mini site (contractor concept) */
.site { font-size: 13px; }
.site-nav { display: flex; align-items: center; gap: 22px; padding: 16px 28px; border-bottom: 1px solid rgba(21,36,46,.08); font-size: 12.5px; color: rgba(21,36,46,.7); }
.site-nav .wm { font-weight: 800; letter-spacing: .12em; color: var(--ink); font-size: 13px; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.site-nav .wm i { width: 18px; height: 18px; background: var(--ink); clip-path: polygon(50% 8%, 100% 55%, 86% 55%, 86% 92%, 14% 92%, 14% 55%, 0 55%); }
.site-nav .cta { background: var(--copper-lo); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.site-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; padding: 34px 28px 26px; }
.site-hero .eb { font-family: var(--mono); font-size: 11px; color: var(--copper-lo); letter-spacing: .04em; }
.site-hero h6 { margin: 10px 0 12px; font-size: 38px; line-height: 1; letter-spacing: -0.04em; font-weight: 600; color: var(--ink); }
.site-hero p { color: rgba(21,36,46,.66); font-size: 13.5px; line-height: 1.5; }
.site-ctas { display: flex; gap: 8px; margin-top: 18px; }
.site-ctas span { padding: 10px 15px; border-radius: 9px; font-weight: 600; font-size: 12.5px; }
.site-ctas .p { background: var(--ink); color: var(--ivory); }
.site-ctas .s { border: 1px solid rgba(21,36,46,.2); }
.site-trust { display: flex; gap: 16px; margin-top: 20px; font-size: 11.5px; color: rgba(21,36,46,.6); }
.site-trust span::before { content: "✓ "; color: var(--copper-lo); font-weight: 700; }
.photo { border-radius: 12px; overflow: hidden; position: relative; min-height: 230px; background: linear-gradient(180deg, #c9d3d0 0%, #e9e1d2 70%); }
.photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 28px 28px; }
.site-cards div { border: 1px solid rgba(21,36,46,.1); border-radius: 10px; padding: 14px; background: #fff; }
.site-cards b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.site-cards span { font-size: 11.5px; color: rgba(21,36,46,.6); }

/* Flow canvas */
.canvas { position: absolute; inset: 0; background-color: #0f1b22; background-image: radial-gradient(rgba(243,240,233,.08) 1px, transparent 1px); background-size: 22px 22px; border-radius: 14px; border: 1px solid rgba(243,240,233,.08); }
.node { position: absolute; width: 196px; padding: 12px 14px; border-radius: 12px; background: #182934; border: 1px solid rgba(243,240,233,.1); box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); }
.node .nk { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,240,233,.42); display: flex; justify-content: space-between; }
.node .nt { font-weight: 600; font-size: 13.5px; margin-top: 4px; }
.node .ns { font-size: 11.5px; color: rgba(243,240,233,.52); margin-top: 2px; }
.node.trig { border-color: rgba(207,148,112,.5); }
.node.trig .nk { color: var(--copper-hi); }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.wire { fill: none; stroke: rgba(207,148,112,.55); stroke-width: 1.6; stroke-dasharray: 5 6; animation: flow 1.2s linear infinite; }
.wire.base { stroke: rgba(243,240,233,.1); stroke-dasharray: none; animation: none; stroke-width: 3; }
@keyframes flow { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .wire { animation: none; } .live-card, .toast { transition: none; } }
.runlog { position: absolute; padding: 16px; border-radius: 14px; background: #131f27; border: 1px solid rgba(243,240,233,.1); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); }
.runlog h6 { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.runlog .meta { font-family: var(--mono); font-size: 10.5px; color: rgba(243,240,233,.45); margin-bottom: 12px; }
.runlog li { display: grid; grid-template-columns: 14px 1fr auto; gap: 9px; align-items: center; padding: 7px 0; border-top: 1px solid rgba(243,240,233,.06); font-size: 12px; }
.runlog li i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.runlog li em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: rgba(243,240,233,.42); }

/* Chart + table inside art */
.panel { border: 1px solid rgba(243,240,233,.08); border-radius: 10px; padding: 14px 16px; background: rgba(243,240,233,.02); }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: rgba(243,240,233,.6); margin-bottom: 10px; }
.panel-h b { color: var(--ivory); font-weight: 600; font-size: 13.5px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 400; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(243,240,233,.4); padding: 6px 8px; border-bottom: 1px solid rgba(243,240,233,.07); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid rgba(243,240,233,.05); color: rgba(243,240,233,.82); }
.tbl td:first-child { color: var(--ivory); font-weight: 500; }
.hbar { display: grid; grid-template-columns: 80px 1fr 28px; gap: 10px; align-items: center; font-size: 12px; color: rgba(243,240,233,.7); padding: 5px 0; }
.hbar .tr { height: 7px; border-radius: 999px; background: rgba(243,240,233,.07); overflow: hidden; }
.hbar .tr b { display: block; height: 100%; border-radius: 999px; background: var(--copper); }
.hbar .tr b.s { background: var(--sage); }
.hbar em { font-style: normal; font-family: var(--mono); font-size: 11px; text-align: right; }

/* ---------- Statement band ---------- */
.statement { font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(2.2rem, 5.6vw, 5rem); text-wrap: balance; max-width: 18ch; }
.statement .dim { color: var(--text-3); }

/* ---------- Service chapters ---------- */
.chapter { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line); }
.chapter-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) { .chapter-head { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; } }
.chapter-meta { display: grid; gap: 1.5rem; }
.chapter-foot { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.price-tag { font-family: var(--mono); font-size: .85rem; color: var(--text-3); }
.price-tag b { color: var(--text); font-weight: 500; font-size: 1rem; }
.num { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .06em; }

/* ---------- Lab tiles ---------- */
.lab-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .lab-grid { grid-template-columns: repeat(3, 1fr); } }
.lab-tile { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.lab-tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.lab-prev { aspect-ratio: 16 / 11; background: var(--night); position: relative; overflow: hidden; color: var(--ivory); }
.lab-body { padding: 1.5rem 1.5rem 1.75rem; display: grid; gap: .6rem; flex: 1; align-content: start; }
.lab-body .h4 { font-size: 1.3rem; }

/* ---------- Work index ---------- */
.index { border-top: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 3rem 1fr; gap: .5rem 1rem; align-items: center; padding: 1.75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease), background .35s; }
@media (min-width: 900px) { .index a { grid-template-columns: 4rem 1.4fr 1fr 1fr 2rem; } }
.index a:hover { padding-inline: 1rem; background: var(--surface); }
.index .t { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.03em; }
.index .c { color: var(--text-2); font-size: .95rem; }
.index .ar { color: var(--accent); justify-self: end; display: none; }
@media (max-width: 899px) { .index .c, .index .badge { grid-column: 2; } .index .c { margin-top: -.25rem; } }
@media (min-width: 900px) { .index .ar { display: block; } }
.badge { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.badge.on { color: var(--accent); }
.badge.on::before { background: currentColor; }

/* ---------- Outcomes ---------- */
.outcome .k { font-family: var(--mono); font-size: .75rem; color: var(--accent); }
.outcome h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 1.25rem 0 .75rem; }
.outcome p { color: var(--text-2); font-size: .97rem; }

/* ---------- Process ---------- */
.process { display: grid; gap: 2.5rem; position: relative; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); gap: 2rem; } .process::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--line-2); } }
.process li { position: relative; display: grid; gap: .75rem; align-content: start; }
@media (max-width: 899px) { .process .dot { display: none; } }
.process .dot { width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); position: relative; z-index: 1; margin-bottom: .75rem; }
.process .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.process h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.025em; }
.process p { color: var(--text-2); font-size: .97rem; }

/* ---------- Pricing ---------- */
.plan { display: grid; gap: 1.5rem; align-content: start; }
.plan .amt { font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.plan .amt small { font-size: .38em; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin-right: .35rem; vertical-align: .35em; }
.plan ul { display: grid; gap: .6rem; color: var(--text-2); font-size: .97rem; }
.plan li { display: grid; grid-template-columns: 1rem 1fr; gap: .6rem; }
.plan li::before { content: ""; width: 9px; height: 1px; background: var(--accent); margin-top: .8em; }
.terms { display: grid; gap: 2rem; margin-top: 3rem; }
@media (min-width: 900px) { .terms { grid-template-columns: repeat(3, 1fr); } }
.terms p { color: var(--text-2); font-size: .95rem; }
.terms b { display: block; color: var(--text); font-weight: 600; margin-bottom: .35rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.3rem 0; font-weight: 500; font-size: 1.05rem; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--accent), var(--accent)) center / 12px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 1.5rem; color: var(--text-2); max-width: 64ch; }

/* ---------- Founder card ---------- */
.founder { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); max-width: 26rem; }
.founder img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.founder b { display: block; font-weight: 600; }
.founder span { color: var(--text-2); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 60% at 85% 100%, rgba(183,121,83,.25), transparent 70%); pointer-events: none; }
.cta .wrap { position: relative; display: grid; gap: 2.5rem; }

/* ---------- Page head (interior) ---------- */
.page-head { padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 50% at 85% 0%, rgba(183,121,83,.16), transparent 70%); pointer-events: none; }
.page-head .wrap { position: relative; display: grid; gap: 3rem; }
@media (min-width: 1000px) { .page-head .wrap { grid-template-columns: 1.35fr .65fr; align-items: end; gap: 5rem; } }
.page-head .copy { display: grid; gap: 1.75rem; }
.page-head .display-2 { max-width: 14ch; }
.crumbs { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); display: flex; gap: .6rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.factsheet { border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(243,240,233,.025); padding: .5rem 1.5rem; }
.factsheet div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.factsheet div:last-child { border-bottom: 0; }
.factsheet dt { color: var(--text-3); font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .15rem; }
.factsheet dd { text-align: right; font-weight: 500; }
.factsheet dd a { color: var(--accent); text-decoration: none; }

/* ---------- Generic content blocks ---------- */
.checks { display: grid; gap: 1.1rem; }
.checks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .85rem; color: var(--text-2); }
.checks li::before { content: ""; width: 1.25rem; height: 1.25rem; margin-top: .15rem; border-radius: 50%; border: 1px solid var(--accent); background: radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px); }
.checks strong { color: var(--text); font-weight: 600; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; gap: .5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .step { grid-template-columns: 4rem 1fr 1.5fr; gap: 2rem; } }
.step .n { font-family: var(--mono); font-size: .78rem; color: var(--accent); padding-top: .3rem; }
.step h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.step p { color: var(--text-2); }
.note { font-size: .85rem; color: var(--text-3); display: flex; gap: .6rem; align-items: baseline; }
.note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); flex: none; transform: translateY(-1px); }
.boundary { border-left: 1px solid var(--accent); padding-left: 1.25rem; }
.boundary b { display: block; font-weight: 600; margin-bottom: .4rem; }
.boundary p { color: var(--text-2); font-size: .95rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 1.1rem .75rem 1.1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 400; }
.table td { color: var(--text-2); }
.table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.table td:last-child { font-family: var(--mono); font-size: .9rem; color: var(--text); white-space: nowrap; }
.tiles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tiles > div { background: var(--bg); padding: 1.75rem; }
.tiles h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: .5rem; }
.tiles p { color: var(--text-2); font-size: .95rem; }
.portrait { width: 100%; max-width: 380px; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); filter: saturate(.9); }

/* ---------- Forms ---------- */
.form-card { background: var(--ivory); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.75rem); --accent: var(--copper-lo); }
.form { display: grid; gap: 1.35rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: rgba(21,36,46,.55); }
.field input, .field select, .field textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid rgba(21,36,46,.18); border-radius: 10px; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper-lo); box-shadow: 0 0 0 4px rgba(183,121,83,.18); }
.field .error { display: none; color: #a4473a; font-size: .85rem; }
.field.has-error .error { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #a4473a; }
.honeypot { position: absolute; left: -9999px; }

.form-card .btn-line { border-color: rgba(21,36,46,.2); color: var(--ink); }
.optional { font-weight: 400; color: rgba(21,36,46,.5); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } .lab-tile, .btn, .index a { transition: none; } }

/* ==========================================================================
   Lab demo components
   ========================================================================== */
.frame { background: #111d25; color: var(--ivory); border: 1px solid rgba(243,240,233,.1); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.frame.paper { background: #faf8f4; color: var(--ink); border-color: rgba(21,36,46,.12); }
.frame-bar { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid rgba(243,240,233,.08); font-family: var(--mono); font-size: .7rem; color: rgba(243,240,233,.45); }
.frame.paper .frame-bar { background: #f1ede5; border-color: rgba(21,36,46,.08); color: rgba(21,36,46,.5); }
.frame-bar .dots { display: flex; gap: .35rem; }
.frame-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(243,240,233,.16); display: block; }
.frame.paper .frame-bar .dots i { background: rgba(21,36,46,.14); }
.frame-bar .title { margin-left: auto; }
.frame-body { padding: 1.1rem; }
.pill { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .55rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; opacity: .9; }
.pill.ok { color: #3b7a53; } .pill.info { color: #5d6c67; } .pill.warn { color: var(--copper-lo); } .pill.done { color: rgba(21,36,46,.5); }
.frame:not(.paper) .pill.ok { color: var(--green); } .frame:not(.paper) .pill.info { color: var(--sage); } .frame:not(.paper) .pill.warn { color: var(--copper-hi); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; font-size: .9rem; }
.kv dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; color: rgba(21,36,46,.5); align-self: center; }
.kv dd { font-weight: 500; }

/* Before/after */
.ba { display: grid; gap: 1.5rem; }
.ba-toggle { display: inline-flex; justify-self: start; border: 1px solid var(--line-2); border-radius: 999px; padding: .25rem; gap: .25rem; }
.ba-toggle button { border: 0; background: transparent; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--text-2); }
.ba-toggle button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
.ba-stage { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .ba-stage { grid-template-columns: 1.3fr .7fr; } }
.ba-notes { display: grid; gap: 1rem; }
.ba-notes li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .75rem; color: var(--text-2); font-size: .95rem; }
.ba-notes li b { color: var(--text); font-weight: 600; }
.ba-notes .n { font-family: var(--mono); font-size: .75rem; color: var(--accent); padding-top: .2rem; }
.bad-site { font-family: Arial, Helvetica, sans-serif; background: #fff; color: #222; font-size: .85rem; }
.bad-site .bad-top { background: #1a3a8a; color: #fff; padding: .7rem 1rem; font-weight: bold; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.bad-site .bad-top span { font-weight: normal; font-size: .75rem; }
.bad-site .bad-hero { background: linear-gradient(#ffe066, #ffd23f); padding: 1.6rem 1rem; text-align: center; }
.bad-site .bad-hero h3 { font-size: 1.3rem; margin: 0 0 .3rem; color: #c00; text-shadow: 1px 1px #fff; }
.bad-site .bad-body { padding: 1rem; display: grid; gap: .6rem; line-height: 1.4; }
.bad-site .bad-cta { display: inline-block; background: #e00; color: #fff; padding: .4rem .7rem; font-weight: bold; text-decoration: underline; }
.bad-site .bad-foot { background: #ddd; padding: .6rem 1rem; font-size: .7rem; }

/* Dashboard demo */
.dash { display: grid; gap: 1rem; }
@media (min-width: 900px) { .dash { grid-template-columns: 210px 1fr; } }
.dash-side { display: grid; gap: .25rem; align-content: start; }
.dash-side button { text-align: left; border: 1px solid transparent; background: transparent; padding: .65rem .8rem; border-radius: 9px; font-weight: 500; font-size: .92rem; cursor: pointer; color: rgba(21,36,46,.65); display: flex; justify-content: space-between; }
.dash-side button[aria-selected="true"] { background: #fff; color: var(--ink); border-color: rgba(21,36,46,.1); font-weight: 600; }
.dash-side .cnt { font-family: var(--mono); font-size: .72rem; }
.dash-main { display: grid; gap: 1rem; min-width: 0; }
.dash-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 760px) { .dash-tiles { grid-template-columns: repeat(4, 1fr); } }
.dash-tile { background: #fff; border: 1px solid rgba(21,36,46,.1); border-radius: 10px; padding: .85rem 1rem; }
.dash-tile .k { font-size: .75rem; color: rgba(21,36,46,.55); }
.dash-tile .v { font-weight: 600; font-size: 1.4rem; letter-spacing: -0.03em; }
.dash-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; }
.dash-toolbar input, .dash-toolbar select { font-size: .9rem; padding: .6rem .85rem; border-radius: 9px; border: 1px solid rgba(21,36,46,.18); background: #fff; color: var(--ink); }
.dash-toolbar input { flex: 1; min-width: 10rem; }
.dash-scroll { overflow-x: auto; border: 1px solid rgba(21,36,46,.1); border-radius: 10px; background: #fff; }
.dash-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .88rem; }
.dash-table th, .dash-table td { padding: .7rem .8rem; border-bottom: 1px solid rgba(21,36,46,.07); text-align: left; }
.dash-table th { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(21,36,46,.5); font-weight: 400; }
.dash-table tbody tr { cursor: pointer; }
.dash-table tbody tr:hover { background: #f6f3ec; }
.dash-table tbody tr[aria-selected="true"] { background: rgba(183,121,83,.12); }
.dash-table .sub { font-size: .8rem; color: rgba(21,36,46,.55); }
.dash-detail { display: grid; gap: 1rem; background: #fff; border: 1px solid rgba(21,36,46,.1); border-radius: 12px; padding: 1.25rem; }
.dash-note { display: grid; gap: .5rem; }
.dash-note textarea { font-size: .9rem; padding: .65rem .85rem; border-radius: 9px; border: 1px solid rgba(21,36,46,.18); min-height: 4rem; resize: vertical; color: var(--ink); }
.dash-note button { justify-self: start; border: 0; background: var(--ink); color: var(--ivory); padding: .65rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.timeline { display: grid; gap: .55rem; }
.timeline li { display: grid; grid-template-columns: 3.25rem 1fr; gap: .75rem; font-size: .88rem; color: rgba(21,36,46,.7); }
.timeline time { font-family: var(--mono); font-size: .72rem; color: rgba(21,36,46,.45); padding-top: .12rem; }

/* Workflow demo */
.flow { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .flow { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.flow-log { display: grid; gap: .5rem; font-size: .9rem; }
.flow-log li { display: grid; grid-template-columns: 3rem 1fr; gap: .75rem; padding: .7rem .85rem; border-radius: 10px; background: rgba(243,240,233,.03); border: 1px solid rgba(243,240,233,.07); color: rgba(243,240,233,.82); }
.flow-log li time { font-family: var(--mono); font-size: .7rem; color: rgba(243,240,233,.42); padding-top: .15rem; }
.flow-log li.hot { border-color: rgba(207,148,112,.45); }
.flow-log strong { color: var(--ivory); font-weight: 600; }
.flow-empty { color: rgba(243,240,233,.5); font-size: .9rem; padding: 1.25rem; border: 1px dashed rgba(243,240,233,.16); border-radius: 10px; }
.email-preview { border-radius: 14px; background: #fff; color: var(--ink); padding: 1.1rem 1.2rem; font-size: .9rem; display: grid; gap: .6rem; }
.email-preview .meta { font-family: var(--mono); font-size: .7rem; color: rgba(21,36,46,.5); display: grid; gap: .15rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(21,36,46,.08); }
.ui-list { display: grid; gap: .5rem; }
.ui-row { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; padding: .75rem .9rem; border-radius: 10px; background: rgba(243,240,233,.03); border: 1px solid rgba(243,240,233,.07); }
.ui-row .name { font-weight: 600; font-size: .92rem; }
.ui-row .sub { font-size: .8rem; color: rgba(243,240,233,.52); }

.ink { --bg: var(--ink); --surface: var(--ink-2); background: var(--bg); color: var(--text); }
.hero-caption { position: relative; z-index: 2; margin-top: 1.25rem; }
@media (min-width: 1000px) {
  .page-head.form-layout { overflow: visible; }
  .page-head.form-layout .wrap { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .page-head.form-layout .copy { position: sticky; top: 7rem; }
}


/* ==========================================================================
   v3 — patterns from Linear, thoughtbot, basement.studio
   ========================================================================== */
.hero-head { display: grid; gap: 1.25rem; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.hero-sub p { color: var(--text-2); max-width: 46ch; font-size: 1.05rem; }
.newlink { font-size: .9rem; color: var(--text-2); text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }
.newlink b { color: var(--text); font-weight: 500; }
.newlink:hover { color: var(--text); }
.hero-frame { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(6px, 1vw, 12px); border-radius: 22px; background: linear-gradient(180deg, rgba(243,240,233,.02), rgba(243,240,233,.09)); border: 1px solid rgba(243,240,233,.06); }
.hero-frame::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -60px; height: 140px; background: radial-gradient(50% 60% at 50% 0%, rgba(183,121,83,.28), transparent 70%); filter: blur(10px); z-index: -1; }
.hero-frame .stage { border-radius: 14px; overflow: hidden; }
.hero { overflow: visible; padding-top: clamp(3.5rem, 7vw, 6rem); }

/* Bordered tool grid (basement) */
.grid-cells { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 640px) { .grid-cells { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-cells { grid-template-columns: repeat(6, 1fr); } }
.grid-cells > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 5.5rem; display: grid; place-items: center; padding: 1rem; text-align: center; color: var(--text-2); font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; transition: color .25s, background .25s; }
.grid-cells > *:hover { color: var(--text); background: rgba(243,240,233,.025); }
.grid-caption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* Two-tone statement (Linear) */
.twotone { font-size: clamp(1.7rem, 3.4vw, 2.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; max-width: 30ch; text-wrap: pretty; }
.twotone span { color: var(--text-3); }
.trio { display: grid; gap: 2.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 0; } .trio > * + * { border-left: 1px solid var(--line); padding-left: 2rem; } .trio > * { padding-right: 2rem; } }
.trio .num { display: block; margin-bottom: 1.75rem; }
.trio h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: .4rem; }
.trio p { color: var(--text-2); font-size: .95rem; }

/* Linear section template */
.lsec { padding-block: clamp(4.5rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.lsec-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .lsec-head { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.lsec-head .h2 { max-width: 14ch; }
.lsec-head p { color: var(--text-2); max-width: 44ch; }
.lsec-head .link { margin-top: 1rem; }
.featrow { display: grid; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; font-size: .9rem; color: var(--text-2); }
@media (min-width: 900px) { .featrow { grid-template-columns: 1fr 1fr 1fr 1fr; } }
.featrow .label { padding-top: .1rem; }

/* thoughtbot case strip */
.strip-label { display: flex; align-items: center; gap: .75rem; font-family: var(--mono); font-size: .8rem; color: var(--text-2); margin-bottom: 1.5rem; }
.strip-label::before { content: ""; width: 10px; height: 14px; border-left: 1.5px solid currentColor; border-top: 0; background: linear-gradient(currentColor, currentColor) 0 50% / 100% 1.5px no-repeat; }
.strip-label::after { content: ""; flex: 0 0 min(30vw, 260px); height: 1.5px; background: currentColor; border-radius: 2px; }
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 24px var(--gutter); background: var(--ink); border-block: 1px solid var(--line); scroll-snap-type: x mandatory; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: 0 0 auto; width: 260px; height: 470px; border-radius: 14px; overflow: hidden; scroll-snap-align: start; background: #faf8f4; color: var(--ink); position: relative; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.strip > .dk { background: #111d25; color: var(--ivory); border: 1px solid rgba(243,240,233,.1); }
.strip > .wide { width: 420px; }
.case { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .case { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills span { font-family: var(--mono); font-size: .75rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(127,174,143,.45); color: var(--green); }
.light .pills span { color: #3b7a53; }
.bigquote { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; letter-spacing: -0.015em; font-weight: 400; text-wrap: pretty; }

/* basement project rows */
.proj { display: grid; gap: 1.25rem; padding-block: 1.25rem; border-top: 1px solid var(--line); text-decoration: none; }
.proj:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .proj { grid-template-columns: 1.15fr 1fr; gap: 2rem; } }
.proj-img { border-radius: 6px; overflow: hidden; background: var(--ink); position: relative; transition: opacity .3s; }
.proj:hover .proj-img { opacity: .88; }
.proj-body { display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; }
.proj-top { display: flex; justify-content: space-between; gap: 1.5rem; align-items: start; }
.proj-top p { color: var(--text-2); font-size: .95rem; max-width: 34ch; }
.proj-top h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.025em; text-align: right; white-space: nowrap; }
.proj-tags { font-family: var(--mono); font-size: .72rem; color: var(--text-3); display: grid; gap: .2rem; }

/* contact block (basement + thoughtbot) */
.contact-big { display: grid; gap: 2rem; }
.contact-big .q { font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.03; max-width: 16ch; }
.contact-big .mail { font-size: clamp(1.6rem, 4.6vw, 4.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.03; color: var(--copper-hi); text-decoration: none; word-break: break-word; }
.contact-big .mail:hover { color: var(--ivory); }

/* footer giant wordmark (basement) */
.wordmark { display: block; font-weight: 800; letter-spacing: -0.06em; line-height: .78; font-size: 17.6vw; color: rgba(243,240,233,.92); margin: clamp(3rem, 6vw, 5rem) 0 0; white-space: nowrap; overflow: hidden; user-select: none; }
.site-footer { padding-bottom: 0; overflow: hidden; }
.site-footer .footer-bottom { margin-top: 3rem; }
@media (max-width: 899px) {
  .proj-top { flex-direction: column-reverse; gap: .6rem; }
  .proj-top h3 { text-align: left; white-space: normal; }
  .proj-top p { max-width: none; }
}

/* ==========================================================================
   v4 — light editorial theme (overrides everything above)
   Ivory paper, Fraunces display serif, Inter text, copper accents
   ========================================================================== */
:root {
  --bg: var(--ivory); --surface: #fbf9f5; --surface-2: var(--ivory-2);
  --text: var(--ink); --text-2: rgba(21,36,46,.66); --text-3: rgba(21,36,46,.48);
  --line: rgba(21,36,46,.14); --line-2: rgba(21,36,46,.26); --accent: var(--copper-lo);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}
.ink, .light { --bg: var(--ivory-2); --surface: #fbf9f5; --text: var(--ink); --text-2: rgba(21,36,46,.66); --text-3: rgba(21,36,46,.48); --line: rgba(21,36,46,.14); --line-2: rgba(21,36,46,.26); --accent: var(--copper-lo); background: var(--bg); color: var(--text); }
.dark { --bg: var(--ink); --surface: var(--ink-2); --text: var(--ivory); --text-2: rgba(243,240,233,.7); --text-3: rgba(243,240,233,.5); --line: rgba(243,240,233,.14); --line-2: rgba(243,240,233,.26); --accent: var(--copper-hi); background: var(--bg); color: var(--text); }
body { background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; font-feature-settings: normal; }
::selection { background: var(--copper); color: #fff; }
:focus-visible { outline-color: var(--copper-lo); }

/* type */
.display, .display-2, .h2, .h3, .q, .twotone, .statement, .plan .amt, .index .t, .proj-top h3, .contact-big .mail, .wordmark, .ed-h, .svc-ix h3 { font-family: var(--display); font-weight: 300; }
.display { font-size: clamp(3rem, 8.2vw, 8.4rem); line-height: .97; letter-spacing: -.035em; max-width: 13ch; }
.display-2 { font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.03em; }
.h2 { font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1.03; letter-spacing: -.028em; }
.h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.08; letter-spacing: -.02em; }
.display em, .display-2 em, .h2 em, .ed-h em { font-style: italic; color: var(--copper-lo); }
.label { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; color: var(--text-3); font-weight: 500; }
.label.accent { color: var(--text-3); }
.lede { font-size: clamp(1.1rem, 1.45vw, 1.3rem); color: var(--text-2); }
.outcome h3, .process h3, .step h3, .tiles h3, .h4 { font-family: var(--sans); font-weight: 500; letter-spacing: -.01em; }
.outcome .k, .num, .step .n { font-family: var(--sans); color: var(--text-3); font-size: .8rem; letter-spacing: .08em; }
.plan .amt { font-size: clamp(2.4rem, 3.6vw, 3.2rem); letter-spacing: -.03em; }
.plan li::before { background: var(--ink); }

/* buttons & links */
.btn { font-family: var(--sans); font-weight: 500; padding: .9rem 1.4rem; border-radius: 999px; }
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--ink-3); }
.dark .btn-primary { background: var(--ivory); color: var(--ink); }
.btn-line { border-color: var(--line-2); color: var(--text); }
.link { border-bottom: 1px solid currentColor; padding-bottom: 2px; font-weight: 500; }
.link svg { color: inherit; }
.link:hover { color: var(--copper-lo); }

/* header */
.site-header { background: rgba(243,240,233,.86); border-bottom: 1px solid rgba(21,36,46,.08); color: var(--ink); }
.site-header .wrap { min-height: 4.75rem; }
.brand { color: var(--ink); }
.brand-mark { background: var(--ink); color: var(--ivory); border-radius: .6rem; font-weight: 600; }
.brand-name { font-weight: 500; letter-spacing: .18em; font-size: .82rem; }
.nav a { color: rgba(21,36,46,.62); font-weight: 400; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-cta { background: var(--ink) !important; color: var(--ivory) !important; }
.menu-btn { color: var(--ink); border-color: rgba(21,36,46,.25); }
.mobile-nav { border-color: rgba(21,36,46,.1); background: var(--ivory); }
.mobile-nav a:not(.btn) { border-color: rgba(21,36,46,.1); font-family: var(--display); font-weight: 300; font-size: 1.8rem; }

/* footer */
.site-footer { background: var(--ivory-2); border-top: 1px solid var(--line); color: var(--ink); }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .muted, .site-footer .faint { color: var(--text-2); }
.footer-grid h4 { font-family: var(--sans); font-weight: 500; letter-spacing: .16em; color: var(--text-3); }
.footer-bottom { border-color: var(--line); color: var(--text-3); }
.wordmark { color: rgba(21,36,46,.08); font-weight: 300; letter-spacing: -.05em; font-size: 16.5vw; line-height: .8; text-align: center; }

/* page heads & misc */
.page-head::before, .hero::before, .hero::after, .cta::before { display: none; }
.page-head { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); }
.page-head .display-2 { max-width: 15ch; }
.crumbs { font-family: var(--sans); letter-spacing: .12em; }
.factsheet { background: #fbf9f5; border-color: var(--line); }
.factsheet dt { font-family: var(--sans); letter-spacing: .12em; }
.factsheet dd a { color: var(--copper-lo); }
.form-card { background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(21,36,46,.35); }
.lab-tile { background: #fbf9f5; }
.index a:hover { background: #fbf9f5; }
.founder { background: #fbf9f5; }
.faq summary { font-weight: 500; }
.faq summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; }
.checks li::before { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 3px, transparent 3.5px); }
.boundary { border-color: var(--ink); }
.note::before { background: var(--copper-lo); }
.pills span { color: var(--ink); border-color: var(--line-2); }
.ba-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.caption { font-family: var(--sans); font-size: .82rem; letter-spacing: 0; }
.contact-big .q { font-size: clamp(2.8rem, 6.4vw, 6rem); max-width: 14ch; letter-spacing: -.035em; line-height: 1; }
.contact-big .mail { color: var(--copper-lo); font-style: italic; font-size: clamp(1.8rem, 3.6vw, 3.2rem); border-bottom: 1px solid currentColor; justify-self: start; }
.contact-big .mail:hover { color: var(--ink); }
.cta { background: var(--ivory-2); }
.grid-cells > * { color: var(--text-2); }
.grid-cells > *:hover { background: #fbf9f5; color: var(--ink); }

/* ---------- v4 homepage ---------- */
.ed-hero { padding-top: clamp(3rem, 6vw, 5rem); }
.ed-intro { display: grid; gap: 2rem; margin: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .ed-intro { grid-template-columns: 1fr auto; align-items: end; } }
.ed-intro p { font-size: clamp(1.1rem, 1.45vw, 1.3rem); color: var(--text-2); max-width: 40ch; margin: 0; }
.ed-intro .side { display: grid; gap: 1rem; justify-items: start; }
@media (min-width: 900px) { .ed-intro .side { justify-items: end; text-align: right; } }
.ed-intro .meta { font-size: .9rem; color: var(--text-3); line-height: 1.8; }
.ed-photo { position: relative; margin-inline: clamp(.75rem, 2vw, 1.5rem); border-radius: 6px; overflow: hidden; background: #c9c4b8; }
.ed-photo img { display: block; width: 100%; height: min(78vh, 760px); min-height: 420px; object-fit: cover; }
.ed-photo.tall img { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
.chip { position: absolute; display: flex; gap: .8rem; align-items: center; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 14px; padding: .85rem 1.05rem; box-shadow: 0 24px 50px -18px rgba(0,0,0,.45); font-size: .9rem; line-height: 1.35; max-width: 20rem; backdrop-filter: blur(8px); }
.chip .ic { width: 2.2rem; height: 2.2rem; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; font-size: .9rem; }
.chip b { display: block; font-weight: 600; font-size: .92rem; }
.chip span { color: var(--text-2); font-size: .82rem; }
.chip.c1 { left: clamp(1rem, 4vw, 3rem); bottom: clamp(5.5rem, 12vw, 9rem); }
.chip.c2 { right: clamp(1rem, 4vw, 3rem); bottom: clamp(1rem, 4vw, 2.5rem); }
@media (max-width: 640px) { .chip.c1 { left: .75rem; right: .75rem; bottom: 5.25rem; max-width: none; } .chip.c2 { left: .75rem; right: .75rem; bottom: .75rem; max-width: none; } }
.ed-cap { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--text-3); padding: .9rem clamp(.75rem, 2vw, 1.5rem) 0; }
.ed-sec { padding-block: clamp(5rem, 10vw, 8.5rem); }
.ed-h { font-size: clamp(2.4rem, 4.8vw, 4.4rem); line-height: 1.02; letter-spacing: -.03em; margin: 1.1rem 0 0; max-width: 16ch; }
.svc-ix { margin-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.svc-ix a { display: grid; grid-template-columns: 3rem 1fr; gap: .5rem 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .4s var(--ease), background .4s; align-items: baseline; }
@media (min-width: 900px) { .svc-ix a { grid-template-columns: 4rem 1.1fr 1.2fr 9rem; } }
.svc-ix a:hover { padding-left: 1rem; }
.svc-ix .n { color: var(--text-3); font-size: .85rem; }
.svc-ix h3 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.02em; line-height: 1.05; margin: 0; }
.svc-ix p { color: var(--text-2); margin: 0; max-width: 38ch; grid-column: 2; }
.svc-ix .p { grid-column: 2; font-size: .95rem; }
@media (min-width: 900px) { .svc-ix p, .svc-ix .p { grid-column: auto; } .svc-ix .p { text-align: right; } }
.ed-split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .ed-split { grid-template-columns: 1.05fr 1fr; } }
.ed-split .ed-photo { margin: 0; }
.ed-split p { color: var(--text-2); font-size: 1.12rem; max-width: 38ch; }
.ed-steps { display: grid; gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 760px) { .ed-steps { grid-template-columns: repeat(4, 1fr); } }
.ed-steps div { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.ed-steps b { display: block; font-weight: 500; margin-bottom: .4rem; }
.ed-steps span { color: var(--text-2); font-size: .95rem; }
.ed-prices { display: grid; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-2); font-size: .95rem; }
@media (min-width: 760px) { .ed-prices { grid-template-columns: repeat(3, 1fr); } }
.ed-prices b { color: var(--ink); font-weight: 500; display: block; }
.lab-mini { display: grid; gap: 1.25rem; margin-top: clamp(3rem, 6vw, 4rem); }
@media (min-width: 900px) { .lab-mini { grid-template-columns: repeat(3, 1fr); } }
.lab-mini a { text-decoration: none; display: grid; gap: 1rem; }
.lab-mini .prev { border-radius: 6px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 11; }
.lab-mini > a > b { font-weight: 500; font-size: 1.05rem; }
.lab-mini > a > span { color: var(--text-2); font-size: .95rem; }
.ben { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .ben { grid-template-columns: .8fr 1.2fr; } }
.ben img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.ben p { color: var(--text-2); font-size: 1.12rem; max-width: 44ch; }
.ben ul { display: grid; gap: .7rem 2rem; margin-top: 1.75rem; }
@media (min-width: 600px) { .ben ul { grid-template-columns: 1fr 1fr; } }
.ben li { display: flex; gap: .6rem; font-size: .97rem; }
.ben li::before { content: "—"; color: var(--copper-lo); }

/* ==========================================================================
   v5 — Mercury layout system (overrides everything above)
   ========================================================================== */
:root {
  --m-dark: #15202a; --m-dark-2: #1d2a35; --m-dark-3: #26343f;
  --m-warm: #f6f5f2; --m-cool: #fbfcfd; --m-card: #ebe9e4; --m-mist: #d3dfe2;
  --cta: #a85f37; --cta-hi: #96532f;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--sans);
  --mw: 1024px;
}
body { font-family: var(--sans); font-size: 1rem; background: var(--m-warm); color: #1c1c22; letter-spacing: -.003em; }
.wrap { width: min(100% - 2 * var(--gutter), 1200px); }
.mw { width: min(100% - 2 * var(--gutter), var(--mw)); margin-inline: auto; }

/* Type: understated, medium weight, Mercury scale */
.display, .display-2, .h2, .h3, .q, .twotone, .statement, .plan .amt, .index .t, .proj-top h3, .contact-big .mail, .ed-h, .svc-ix h3 { font-family: var(--sans); font-weight: 450; font-style: normal; letter-spacing: -.02em; }
.display { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.08; max-width: 18ch; }
.display-2 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.12; }
.h2, .ed-h { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.18; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.display em, .display-2 em, .h2 em, .ed-h em { font-style: normal; color: inherit; }
.lede { font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.55; }
.label { letter-spacing: .02em; text-transform: none; font-size: .85rem; font-weight: 500; }
.plan .amt { font-size: clamp(2rem, 3vw, 2.6rem); }
.contact-big .q { font-family: var(--sans); font-weight: 450; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.025em; line-height: 1.08; }
.contact-big .mail { font-family: var(--sans); font-style: normal; font-weight: 450; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--cta); }

/* Buttons: pills, single CTA color */
.btn { border-radius: 999px; font-weight: 500; font-size: .95rem; padding: .72rem 1.25rem; gap: .45rem; }
.btn .ar { display: none; }
.btn-primary, .header-cta { background: var(--cta) !important; color: #fff !important; border-color: var(--cta) !important; }
.btn-primary:hover, .header-cta:hover { background: var(--cta-hi) !important; }
.btn-line { background: rgba(21,32,42,.06); border-color: transparent; color: inherit; }
.btn-line:hover { background: rgba(21,32,42,.1); border-color: transparent; }
.btn-glass { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.26); }
.link { border-bottom: 1px solid currentColor; font-weight: 500; }
.link svg { display: none; }

/* Header */
.site-header { background: rgba(246,245,242,.85); border-bottom: 1px solid rgba(21,32,42,.08); }
.site-header .wrap { min-height: 4.25rem; }
.brand-mark { background: var(--m-dark); color: #fff; width: 2rem; height: 2rem; border-radius: .55rem; font-size: .72rem; }
.brand-name { letter-spacing: .2em; font-size: .8rem; font-weight: 600; }
.nav { gap: 2.25rem; }
.nav a { font-size: .92rem; color: rgba(28,28,34,.72); font-weight: 450; }
.hdr-right { display: none; align-items: center; gap: 1.25rem; }
.hdr-mail { text-decoration: none; font-size: .92rem; color: rgba(28,28,34,.75); }
.hdr-mail:hover { color: #1c1c22; }
.header-cta { display: inline-flex !important; padding: .6rem 1.1rem; font-size: .9rem; }
@media (min-width: 980px) { .hdr-right { display: flex; } }
.is-home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .35s, border-color .35s; }
.is-home .site-header .brand, .is-home .site-header .nav a, .is-home .site-header .hdr-mail, .is-home .site-header .menu-btn { color: #fff; }
.is-home .site-header .brand-mark { background: rgba(255,255,255,.95); color: var(--m-dark); }
.is-home .site-header .nav a:hover { color: #fff; opacity: .8; }
.is-home .site-header .menu-btn { border-color: rgba(255,255,255,.4); }
.is-home .site-header.scrolled { background: rgba(21,32,42,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: rgba(255,255,255,.06); }
.is-home .mobile-nav { background: var(--m-dark); }
.is-home .mobile-nav a:not(.btn) { color: #fff; border-color: rgba(255,255,255,.1); }
.mobile-nav a:not(.btn) { font-family: var(--sans); font-weight: 450; font-size: 1.35rem; }

/* Footer (dark mega footer) */
.site-footer { background: var(--m-dark); color: #fff; border: 0; padding: clamp(4.5rem, 9vw, 7rem) 0 3rem; }
.site-footer a { color: rgba(255,255,255,.88); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-cols { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, 1fr); width: min(100%, var(--mw)); margin-inline: auto; }
@media (min-width: 860px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-cols h4 { margin: 0 0 1rem; font-size: .92rem; font-weight: 450; color: rgba(255,255,255,.55); letter-spacing: 0; text-transform: none; font-family: var(--sans); }
.foot-cols ul { display: grid; gap: .65rem; font-size: .95rem; }
.foot-legal { width: min(100%, var(--mw)); margin: clamp(4rem, 8vw, 6rem) auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 1.5rem; font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.6; }
@media (min-width: 860px) { .foot-legal { grid-template-columns: 1fr 2fr; } }
.foot-legal p { margin: 0; }
.foot-legal .brand { color: #fff; }
.foot-legal .brand-mark { background: #fff; color: var(--m-dark); }
.brand-row { display: grid; gap: .75rem; align-content: start; }
.wordmark { display: none; }

/* Page heads & sections on interior pages */
.page-head { background: var(--m-warm); }
.page-head .display-2 { max-width: 18ch; }
.factsheet, .lab-tile, .founder, .form-card { background: #fff; }
.cta { background: var(--m-warm); }
.ink, .light { --bg: var(--m-cool); background: var(--m-cool); }

/* ==========================================================================
   v5 homepage
   ========================================================================== */
.m-hero { position: relative; min-height: max(640px, 100vh); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: #3b4a55; }
.m-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,22,30,.62) 0%, rgba(15,22,30,.28) 38%, rgba(15,22,30,.08) 62%, rgba(15,22,30,.45) 100%); }
.m-hero-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1rem; padding: 7rem var(--gutter) 9rem; width: min(100%, 760px); }
.m-hero h1 { margin: 0; font-weight: 450; font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.m-hero p { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.5; color: rgba(255,255,255,.88); max-width: 34rem; text-wrap: balance; }
.m-cap { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.25rem; }
.m-email { display: flex; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: .3rem .3rem .3rem 1.1rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.m-email input { background: transparent; border: 0; color: #fff; font: inherit; font-size: .95rem; width: 13rem; outline: none; }
.m-email input::placeholder { color: rgba(255,255,255,.72); }
.m-email:focus-within { border-color: rgba(255,255,255,.6); }
.m-email .btn { padding: .62rem 1.1rem; }
.m-note { position: absolute; z-index: 1; left: 50%; bottom: 2rem; transform: translateX(-50%); width: min(100% - 2rem, 640px); background: rgba(15,22,30,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 8px; padding: .55rem 1rem; font-size: .78rem; color: rgba(255,255,255,.9); }
@media (max-width: 560px) { .m-email { width: 100%; } .m-email input { width: 100%; } }

.m-dark { background: var(--m-dark); color: #fff; }
.m-warm { background: var(--m-warm); }
.m-cool { background: var(--m-cool); }
.m-sec { padding-block: clamp(5rem, 10vw, 8.5rem); }
.m-title { margin: 0; font-weight: 450; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.018em; max-width: 26ch; text-wrap: balance; }
.m-center { text-align: center; margin-inline: auto; }
.m-rule { border-top: 1px solid rgba(28,28,34,.18); padding-top: 1.5rem; }
.m-dark .m-rule { border-color: rgba(255,255,255,.18); }

/* accordion + visual */
.m-acc-wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .m-acc-wrap { grid-template-columns: .9fr 1.1fr; gap: 4rem; } .m-acc-wrap.rev > :first-child { order: 2; } }
.m-acc { margin-top: 3rem; border-top: 1px solid currentColor; }
.m-dark .m-acc { border-color: rgba(255,255,255,.85); }
.m-acc button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(28,28,34,.12); padding: 1rem 0 1rem 0; cursor: pointer; color: inherit; font: inherit; font-size: .95rem; font-weight: 500; position: relative; opacity: .7; }
.m-dark .m-acc button { border-color: rgba(255,255,255,.12); }
.m-acc button[aria-selected="true"] { opacity: 1; }
.m-acc button[aria-selected="true"]::before { content: ""; position: absolute; left: -1.1rem; top: 1.45rem; width: 6px; height: 6px; border-radius: 50%; background: var(--cta); }
.m-acc .more { display: none; font-weight: 400; font-size: .92rem; line-height: 1.55; opacity: .78; margin-top: .3rem; max-width: 40ch; }
.m-acc button[aria-selected="true"] .more { display: block; }
.m-acc + .link { display: inline-block; margin-top: 1.75rem; font-size: .92rem; }
.m-vis { position: relative; border-radius: 12px; overflow: hidden; }
.m-vis > [data-panel] { transition: opacity .5s var(--ease); }
.m-vis > [data-panel][hidden] { display: block !important; position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.m-dark .m-vis { background: var(--m-dark-2); padding: clamp(1rem, 2.5vw, 1.75rem); border: 1px solid rgba(255,255,255,.06); }

/* proof */
.m-proof { text-align: center; padding-top: clamp(4rem, 8vw, 6rem); }
.m-marq { overflow: hidden; margin-top: 2.5rem; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.m-marq div { display: inline-flex; gap: 3.5rem; white-space: nowrap; animation: m-marq 40s linear infinite; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: rgba(255,255,255,.62); }
@keyframes m-marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .m-marq div { animation: none; } }
.m-straddle { background: linear-gradient(var(--m-dark) 62%, var(--m-warm) 62%); padding-top: 3rem; }
.m-car { position: relative; aspect-ratio: 16 / 8; border-radius: 10px; overflow: hidden; background: #333; }
.m-car figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s var(--ease); }
.m-car figure.on { opacity: 1; }
.m-car img { width: 100%; height: 100%; object-fit: cover; }
.m-car figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,20,.7), rgba(10,14,20,.15) 55%, transparent); }
.m-car figcaption { position: absolute; z-index: 1; left: clamp(1.25rem, 3vw, 1.75rem); right: 40%; bottom: clamp(1.25rem, 3vw, 2rem); color: #fff; display: grid; gap: 1rem; }
.m-car blockquote { margin: 0; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; line-height: 1.4; }
.m-car .who { font-size: .95rem; line-height: 1.4; }
.m-car .who span { display: block; color: rgba(255,255,255,.72); }
.m-car .tagp { position: absolute; z-index: 1; top: 1.25rem; left: 1.25rem; background: rgba(15,22,30,.75); color: #fff; font-size: .75rem; padding: .3rem .55rem; border-radius: 4px; }
@media (max-width: 700px) { .m-car { aspect-ratio: 4 / 5; } .m-car figcaption { right: 1.25rem; } .m-car figure::after { background: linear-gradient(0deg, rgba(10,14,20,.8), transparent 70%); } }
.m-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.m-dots button { width: 7.5rem; height: 2px; border: 0; background: rgba(28,28,34,.18); cursor: pointer; padding: 0; }
.m-dots button[aria-current="true"] { background: #1c1c22; }

/* feature cards */
.m-grid { display: grid; gap: 2.5rem 1.75rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .m-grid { grid-template-columns: 1fr 1fr; } }
.m-grid.three { }
@media (min-width: 900px) { .m-grid.three { grid-template-columns: repeat(3, 1fr); } }
.m-card { display: grid; gap: .9rem; text-decoration: none; color: inherit; }
.m-art { position: relative; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--m-card); display: grid; place-items: center; }
.m-art.tall { aspect-ratio: 4 / 5; }
.m-art.mist { background: var(--m-mist); }
.m-art.ink { background: radial-gradient(120% 90% at 50% 40%, #3a4650, #1d2730); }
.m-card b { font-weight: 500; font-size: .98rem; display: block; }
.m-card span.d { color: rgba(28,28,34,.68); font-size: .95rem; line-height: 1.55; display: block; margin-top: .15rem; }
.m-dark .m-card span.d { color: rgba(255,255,255,.66); }
.m-dark .m-art { background: var(--m-dark-2); }

/* soft UI used inside cards */
.ui-card { background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 40px -18px rgba(20,30,40,.35); color: #1c1c22; font-size: .82rem; }
.ui-pill { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px; padding: .45rem .8rem; font-size: .78rem; box-shadow: 0 10px 24px -10px rgba(20,30,40,.35); color: #1c1c22; position: absolute; }
.ui-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cta); }
.ui-row2 { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; border-top: 1px solid rgba(0,0,0,.06); }
.ui-row2:first-child { border-top: 0; }
.ui-k { color: rgba(28,28,34,.55); font-size: .72rem; }
.ui-field { border: 1px solid rgba(0,0,0,.12); border-radius: 6px; padding: .45rem .6rem; font-size: .8rem; }
.ui-toggle { width: 28px; height: 16px; border-radius: 999px; background: var(--cta); position: relative; flex: none; }
.ui-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }

/* quote & statement */
.m-quote { text-align: center; max-width: 46rem; margin-inline: auto; }
.m-quote blockquote { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.4; font-weight: 400; color: rgba(28,28,34,.72); text-wrap: balance; }
.m-quote cite { display: block; margin-top: 1.75rem; font-style: normal; font-size: 1rem; }
.m-quote cite b { display: block; font-weight: 500; color: #1c1c22; }
.m-quote cite span { color: rgba(28,28,34,.6); }
.m-statement { text-align: center; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 450; letter-spacing: -.02em; line-height: 1.15; max-width: 22ch; margin-inline: auto; text-wrap: balance; }

/* abstract light art (CSS only) */
.glow-beam { position: absolute; inset: 0; background: radial-gradient(60% 35% at 50% 100%, rgba(170,205,215,.55), transparent 70%), linear-gradient(#2b3540, #3a4652); }
.glow-beam::before { content: ""; position: absolute; left: 50%; top: 14%; bottom: 0; width: 1.5px; transform: translateX(-50%); background: linear-gradient(rgba(255,255,255,.95), rgba(255,255,255,.2)); box-shadow: 0 0 18px rgba(255,255,255,.5); }
.glow-beam::after { content: ""; position: absolute; left: 50%; top: 14%; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 0 0 10px rgba(255,255,255,.1), 0 0 0 22px rgba(255,255,255,.05), 0 0 40px rgba(255,255,255,.7); }
.glow-beam i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; }
.rings { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 50%, rgba(28,28,34,.0) 0 26px, rgba(28,28,34,.07) 27px 28px), radial-gradient(circle at 50% 50%, #f7f6f1, #e8e6df); }
.rings b { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #f4f2ec; border: 1.5px solid rgba(28,28,34,.45); box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset; }
.rings b::before, .rings b::after { content: ""; position: absolute; inset: 0 30%; border: 1.5px solid rgba(28,28,34,.45); border-radius: 50%; }
.rings b::after { inset: 0 49.5%; border-width: 0 0 0 1.5px; border-radius: 0; }
.orbs { position: absolute; inset: 0; background: radial-gradient(circle at 36% 50%, rgba(220,230,235,.55), transparent 32%), radial-gradient(circle at 64% 50%, rgba(220,230,235,.45), transparent 32%), radial-gradient(circle at 50% 50%, rgba(255,255,255,.35), transparent 45%), linear-gradient(90deg, #2c3640, #59656f 50%, #2c3640); filter: blur(.5px); }
.halo { position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, transparent 30%, rgba(255,255,255,.28) 31%, transparent 34%, transparent 48%, rgba(255,255,255,.2) 49%, transparent 52%), radial-gradient(circle at 50% 50%, #3a4652, #222c35); }
.dots3 { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 8px; }
.dots3 i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }

/* stats & trust */
.m-stats { display: grid; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 800px) { .m-stats { grid-template-columns: repeat(4, 1fr); } .m-stats > * + * { border-left: 1px solid rgba(255,255,255,.18); } }
.m-stats div { padding: 1rem 1rem 1.5rem; }
.m-stats b { display: block; font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 450; letter-spacing: -.03em; line-height: 1.05; }
.m-stats span { color: rgba(255,255,255,.7); font-size: .9rem; }
.m-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 22%; padding: 14% 16% 10%; }
.m-bars div { width: 34%; border-radius: 10px; background: linear-gradient(#fff, #e9eef0); box-shadow: 0 0 40px rgba(255,255,255,.35); position: relative; height: 82%; }
.m-bars div:last-child { background: linear-gradient(#cfd8dc, #9aa6ad); box-shadow: none; height: 82%; opacity: .75; }
.m-bars span { position: absolute; top: -2.4rem; left: 0; right: 0; text-align: center; font-size: .72rem; color: rgba(255,255,255,.75); line-height: 1.3; }
.m-key { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 62%, transparent 0 9px, rgba(255,255,255,.22) 10px 11px), radial-gradient(circle at 50% 62%, #4a5560, #26303a 70%); mask-image: radial-gradient(circle at 50% 62%, #000 46%, transparent 60%); -webkit-mask-image: radial-gradient(circle at 50% 62%, #000 46%, transparent 60%); }
.m-toggles { position: absolute; inset: 0; display: grid; align-content: center; gap: 14px; padding: 0 14%; }
.m-toggles i { height: 34px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35); position: relative; }
.m-toggles i::after { content: ""; position: absolute; left: 4px; top: 50%; width: 24px; height: 24px; transform: translateY(-50%); border-radius: 50%; background: rgba(255,255,255,.4); }
.m-toggles i.on { background: #f3f0e9; border-color: #f3f0e9; box-shadow: 0 0 30px rgba(255,255,255,.3); }
.m-toggles i.on::after { left: auto; right: 4px; background: #9aa6ad; }
.m-who { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .m-who { grid-template-columns: repeat(3, 1fr); } }
.m-who a { background: var(--m-dark-2); border-radius: 10px; padding: 1.5rem; display: grid; gap: 1.5rem; text-decoration: none; color: #fff; min-height: 15rem; align-content: space-between; }
.m-who a:hover { background: var(--m-dark-3); }
.m-who .tile { height: 6.5rem; border-radius: 6px; background: rgba(255,255,255,.05); display: grid; place-items: center; font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; color: rgba(255,255,255,.7); }
.m-who h3 { margin: 0; font-weight: 450; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; }
.m-who .go { width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.m-final { text-align: center; display: grid; gap: 1.75rem; justify-items: center; }
.m-two { display: grid; gap: 1.5rem; margin-top: 3rem; text-align: left; width: 100%; }
@media (min-width: 800px) { .m-two { grid-template-columns: 1fr 1fr; } }
.m-two > div { background: var(--m-dark-2); border-radius: 10px; padding: 1.75rem; display: grid; gap: 1rem; justify-items: start; }
.m-two h3 { margin: 0; font-weight: 450; font-size: 1.45rem; letter-spacing: -.015em; }
.m-two p { margin: 0; color: rgba(255,255,255,.7); line-height: 1.55; }
.m-dark .btn-line { background: rgba(255,255,255,.1); color: #fff; }
.m-dark .btn-line:hover { background: rgba(255,255,255,.16); }
.m-dark .link { color: #fff; }

.m-hero .m-note { font-size: .8rem; line-height: 1.5; max-width: none; color: rgba(255,255,255,.9); text-shadow: none; }
