/* ═══════════════════════════════════════════════════════════
   DOODLESAVE INC — doodlesaveinc.com
   Redesign: warm light paper, mint→azure brand gradient drawn
   from the logo spiral, geometric grotesque display type,
   pill buttons, floating capsule nav. Light-first.
   ═══════════════════════════════════════════════════════════ */

/* ── fonts: self-hosted (SIL OFL), latin + latin-ext, variable files.
   The *Fallback faces are Arial / Courier New resized to the web fonts'
   metrics, so text barely moves when the real font swaps in. */
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/Raleway-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/Raleway-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway Fallback"; src: local("Arial"); size-adjust: 104.16%; ascent-override: 90.25%; descent-override: 22.47%; line-gap-override: 0%; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/JetBrainsMono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/JetBrainsMono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono Fallback"; src: local("Courier New"); size-adjust: 99.98%; ascent-override: 102.02%; descent-override: 30.00%; line-gap-override: 0%; }

:root {
  /* paper & ink */
  --paper:      #f8f7f3;   /* warm page ground */
  --paper-2:    #f1f0ea;   /* tinted bands */
  --paper-3:    #e9f4ef;   /* table group rows — mint whisper */
  --surface:    #ffffff;
  --line:       #e5e2d8;
  --line-soft:  #eeece4;

  --ink:        #101b26;   /* headings */
  --body:       #45535f;   /* body copy */
  --muted:      #7c8894;   /* captions, meta */

  /* brand accents — from the logo spiral */
  --blue:       #2f7cf0;
  --blue-ink:   #2465d2;
  --blue-soft:  #e7f0fe;
  --green:      #12b586;
  --green-ink:  #0c9770;
  --green-soft: #e2f6ee;

  --grad: linear-gradient(120deg, #12b586, #2f7cf0);

  --shadow-sm: 0 1px 2px rgba(16, 27, 38, 0.05);
  --shadow-md: 0 16px 38px -26px rgba(16, 27, 38, 0.4);
  --shadow-lg: 0 30px 70px -42px rgba(16, 27, 38, 0.5);

  --font-display: "Raleway", "Raleway Fallback", system-ui, sans-serif;
  --font-sans:  "Raleway", "Raleway Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:  "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: var(--font-display); /* legacy alias */

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

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1440px;
  --nav-h: 92px; /* floating capsule + its top gap */
}

html[data-theme="dark"] {
  --paper:      #0d141c;
  --paper-2:    #111a24;
  --paper-3:    #12222198;
  --surface:    #131e29;
  --line:       #24313e;
  --line-soft:  #1b2733;

  --ink:        #edf3f8;
  --body:       #a7b5c2;
  --muted:      #77879a;

  --blue:       #6ba7ff;
  --blue-ink:   #92bfff;
  --blue-soft:  rgba(107, 167, 255, 0.13);
  --green:      #3cd6a4;
  --green-ink:  #67e0b8;
  --green-soft: rgba(60, 214, 164, 0.13);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 38px -26px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 30px 70px -42px rgba(0, 0, 0, 0.9);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); font-size: clamp(16px, 0.24vw + 12.9px, 17.5px); }

body {
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  font-variant-numeric: lining-nums;   /* Raleway defaults to old-style figures; keep prices and stats level */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* the canvas is never flat: soft brand washes under everything */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(110% 70% at 92% -10%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 55%),
    radial-gradient(90% 70% at -10% 105%, color-mix(in srgb, var(--green) 8%, transparent), transparent 55%),
    var(--paper);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

main p a:not(.btn):not(.link-arrow),
main li a:not(.btn):not(.link-arrow),
.callout a:not(.btn) {
  color: var(--blue-ink); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--blue) 45%, transparent);
  transition: text-decoration-color 0.2s ease;
}
main p a:not(.btn):not(.link-arrow):hover,
main li a:not(.btn):not(.link-arrow):hover,
.callout a:not(.btn):hover { text-decoration-color: var(--blue); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

/* ── typography primitives ───────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
}
h1, h2, h3, .display, .h2, .h3 { text-wrap: balance; }
.lede, .sub { text-wrap: pretty; }

.display   { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.032em; max-width: 24ch; }
.h2        { font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.026em; max-width: 34ch; }
.h3        { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }

/* a word set on the brand gradient */
.mark-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-ink);
  box-shadow: var(--shadow-sm);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
}
.eyebrow--green { color: var(--green-ink); }
.eyebrow--muted { color: var(--muted); }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.68;
  color: var(--body);
  max-width: 78ch;
}
.lede--hero {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  max-width: 52ch;
  line-height: 1.6;
}

.sub { color: var(--muted); max-width: 82ch; font-size: 1.04rem; line-height: 1.62; }

.mono { font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.02em; }
.serif-em { font-family: var(--font-display); font-style: italic; }
strong, b { color: var(--ink); font-weight: 600; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(22px, 4.2vw, 60px); }
.wrap--narrow { max-width: 1000px; }

main { padding-top: var(--nav-h); }
/* a page that opens on a stage runs it up behind the floating nav —
   no strip of bare page peeking above the panel */
.hero-dark main, .snap-page main,
main:has(> .stage:first-child) { padding-top: 0; }

.section { padding-block: clamp(56px, 7.5vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 60px); }
.section--tint {
  background: color-mix(in srgb, var(--surface) 62%, var(--paper-2));
  border-block: 1px solid var(--line-soft);
}
html[data-theme="dark"] .section--tint { background: rgba(255, 255, 255, 0.02); }

.section__head { margin-bottom: clamp(28px, 3.2vw, 46px); }
.section__head .h2 { margin-bottom: 12px; }
.section__head .eyebrow { margin-bottom: 18px; }

.rule { height: 1px; background: var(--line); border: 0; }

/* editorial split: heading column beside the content */
.split-section { display: grid; grid-template-columns: minmax(320px, 1fr) 2.2fr; gap: clamp(30px, 3.4vw, 70px); align-items: start; }
.split-section > .section__head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 20px); }
.split-section .h2 { max-width: 16ch; }
.split-section .sub { max-width: 38ch; }
@media (max-width: 1000px) { .split-section { grid-template-columns: 1fr; } .split-section > .section__head { position: static; } }

/* ── nav: floating capsule ───────────────────────────────── */

/* at rest the header is part of the hero — full-bleed and
   transparent. The first scroll morphs it into the floating
   capsule: it narrows, lifts off the edge, rounds, frosts.    */
.nav {
  position: fixed; z-index: 80;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%;
  height: 76px;
  display: flex; align-items: center; gap: clamp(12px, 2vw, 26px);
  padding-inline: clamp(18px, 3.4vw, 46px);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  transition:
    top 0.5s var(--ease), width 0.5s var(--ease), height 0.5s var(--ease),
    padding 0.5s var(--ease), border-radius 0.5s var(--ease),
    background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}
.nav.is-scrolled {
  top: 14px;
  width: min(var(--wrap) - 28px, calc(100% - 24px));
  height: 64px;
  padding-inline: clamp(14px, 2vw, 24px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px) saturate(1.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  border-color: var(--line);
  border-radius: 100px;
  box-shadow: 0 18px 40px -28px rgba(16, 27, 38, 0.5);
}
/* the old dark-hero variant follows the base nav */
.nav--over { background: transparent; }
.nav--over.is-scrolled { background: color-mix(in srgb, var(--surface) 92%, transparent); }

.nav__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__logo img { width: 34px; height: 34px; animation: logo-spin 18s linear infinite; }
@keyframes logo-spin { to { transform: rotate(360deg); } }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__logo-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: 0; color: var(--ink);
}
.nav__logo-sub {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--muted); text-transform: uppercase;
}

/* inline links retired in favour of the curved drawer menu;
   the markup stays in every page as the crawlable nav list */
.nav__links { display: none; }
.nav__links a {
  position: relative; padding: 8px 13px; border-radius: 100px;
  font-size: 0.9rem; font-weight: 500; color: var(--body);
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav__links a.is-active { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--ink) 7%, transparent); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* client portal entry: a quiet outlined pill ahead of the theme
   toggle; on phones it folds down to its lock icon */
.nav__login {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px 0 12px;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 0.86rem; font-weight: 600; color: var(--body); white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.nav__login svg { width: 16px; height: 16px; flex: none; }
.nav__login:hover { color: var(--ink); border-color: var(--green); }
.nav__login:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.theme-toggle {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.4s var(--ease);
}
.theme-toggle:hover { color: var(--blue); border-color: var(--blue); transform: rotate(35deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-moon { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-moon { display: block; }

/* burger retired: navigation lives in the floating liquid menu */
.nav__burger { display: none; }
.nav .nav__actions { margin-left: auto; }
.nav__burger span {
  display: block; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav__burger span + span { margin-top: 5px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; z-index: 70;
  top: 86px; left: 50%;
  width: min(var(--wrap) - 28px, calc(100% - 24px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px 22px 20px;
  transform: translate(-50%, -16px); opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.3s ease, visibility 0s linear 0.4s;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.is-open {
  transform: translate(-50%, 0); opacity: 1; visibility: visible;
  transition: transform 0.4s var(--ease), opacity 0.3s ease, visibility 0s;
}
.mobile-menu a {
  display: block; padding: 12px 2px; font-size: 1.02rem; font-weight: 500;
  color: var(--body); border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a.is-active { color: var(--ink); font-weight: 600; }
.mobile-menu .btn { display: inline-flex; margin-top: 12px; width: 100%; justify-content: center; border-bottom: 0; }
.mobile-menu a.btn--primary { color: var(--paper); }
html[data-theme="dark"] .mobile-menu a.btn--primary { color: #0d141c; }

/* tap-to-call and tap-to-email, side by side above the CTA */
.mobile-menu__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mobile-menu__contact a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 10px; border: 1px solid var(--line); border-radius: 100px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--ink);
}
.mobile-menu__contact svg { width: 16px; height: 16px; color: var(--green-ink); flex-shrink: 0; }

/* ── liquid morph menu (in the header) ───────────────────────
   The "Menu" pill sits in the nav capsule beside the CTA and
   morphs downward into a card: a dark panel wipes in as a
   circle from the top, links stagger in, and each label rolls
   character by character on hover. Built entirely by site.js. */

:root { --lm-panel: #101b26; --lm-text: #f8f7f3; }
html[data-theme="dark"] { --lm-panel: #0b141d; }

.liquid-menu { position: relative; width: 40px; height: 40px; }

.liquid-menu__card {
  position: absolute; top: 0; right: 0;
  width: 40px; height: 40px; border-radius: 72px;
  background: var(--grad);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--green) 70%, var(--blue));
  transition:
    width 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.15s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.liquid-menu:not(.is-open) .liquid-menu__card:hover { transform: scale(1.05); }
.liquid-menu.is-open .liquid-menu__card {
  width: min(320px, calc(100vw - 40px));
  height: 394px; border-radius: 26px;
  box-shadow: 0 34px 80px -32px rgba(4, 10, 16, 0.65);
  transition:
    width 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

/* the dark panel arrives as a circle dropping in from the top */
.liquid-menu__circle {
  position: absolute; left: 50%; top: -200%;
  width: 200%; height: 200%; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--lm-panel);
  transition: top 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.liquid-menu.is-open .liquid-menu__circle { top: -20%; transition-delay: 0.1s; }

.liquid-menu__bar {
  position: relative; z-index: 1;
  flex: 0 0 40px; height: 40px; width: 100%;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 0 9px 0 0;
  cursor: pointer;
  transition: padding 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.liquid-menu.is-open .liquid-menu__bar { padding: 6px 22px 0 0; }
.liquid-menu__bar:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 20px; }

/* three bars folding into an X */
.liquid-menu__ham { position: relative; width: 22px; height: 22px; display: block; }
.liquid-menu__ham i {
  position: absolute; left: 2px; top: 50%;
  width: 18px; height: 2px; border-radius: 2px;
  background: #fff; display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.liquid-menu__ham i:nth-child(1) { transform: translateY(-7px); }
.liquid-menu__ham i:nth-child(2) { transform: translateY(-1px); }
.liquid-menu__ham i:nth-child(3) { transform: translateY(5px); }
.liquid-menu.is-open .liquid-menu__ham i:nth-child(1) { transform: translateY(-1px) rotate(45deg); }
.liquid-menu.is-open .liquid-menu__ham i:nth-child(2) { opacity: 0; transform: translateY(-1px) scaleX(0.4); }
.liquid-menu.is-open .liquid-menu__ham i:nth-child(3) { transform: translateY(-1px) rotate(-45deg); }

.liquid-menu__items {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 17px;
  opacity: 0; pointer-events: none; overflow: hidden;
}
.liquid-menu.is-open .liquid-menu__items { opacity: 1; pointer-events: auto; }

.liquid-menu__item {
  display: flex; align-items: flex-start; height: 1em; overflow: hidden;
  font-family: var(--font-display); font-weight: 600;
  font-size: 21px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--lm-text);
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.liquid-menu.is-open .liquid-menu__item {
  opacity: 1; transform: none;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) calc(0.4s + var(--i, 0) * 0.08s),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) calc(0.4s + var(--i, 0) * 0.08s);
}
.liquid-menu__item.is-active { color: var(--green); }
.liquid-menu__item:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* each character is a two-storey column; .is-rolling (set by JS,
   held until the cascade completes) rolls the columns up. Both
   storeys are the same glyph, so the instant reset after a full
   roll is invisible. */
.liquid-menu__item .roll {
  display: inline-flex; flex-direction: column;
  flex: 0 0 auto; height: 2em;
  transform: translateY(0);
  transition: transform 0ms;
}
.liquid-menu__item .roll span { display: block; height: 1em; line-height: 1em; }
.liquid-menu__item.is-rolling .roll,
.liquid-menu__item:focus-visible .roll {
  transform: translateY(-50%);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--c, 0) * 30ms);
}

@media (prefers-reduced-motion: reduce) {
  .liquid-menu__item .roll { transition: none !important; transition-delay: 0s !important; }
  .liquid-menu.is-open .liquid-menu__item { transition-delay: 0s !important; }
}

/* ── floating water section ──────────────────────────────────
   A canvas of drifting current lines behind the content; the
   flow direction follows the pointer's movement (site.js).    */
.section--water { position: relative; overflow: hidden; }
.section--water > .wrap { position: relative; z-index: 1; }
.water-fx {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(115% 115% at 50% 50%, #000 55%, transparent 99%);
          mask-image: radial-gradient(115% 115% at 50% 50%, #000 55%, transparent 99%);
}

/* ── buttons: liquid glass pills ─────────────────────────────
   Frosted pills: a translucent tinted ground, backdrop blur,
   a light top edge and an inner shade for depth. White-ground
   buttons keep a visible white tint rather than reading clear. */

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px; border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.94rem; font-weight: 600; letter-spacing: 0.005em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s;
}
.btn svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* primary: dark glass on the light theme */
.btn--primary {
  background: color-mix(in srgb, var(--ink) 84%, transparent);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 2px rgba(0, 0, 0, 0.22),
    0 14px 30px -16px rgba(16, 27, 38, 0.55);
}
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg); transition: left 0.6s var(--ease);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 2px rgba(0, 0, 0, 0.22),
    0 20px 40px -18px rgba(16, 27, 38, 0.6);
}
.btn--primary:hover::after { left: 125%; }

/* primary: white glass on the dark theme — a tad of white, never clear */
html[data-theme="dark"] .btn--primary {
  background: rgba(255, 255, 255, 0.74);
  color: #0d141c;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 2px rgba(13, 20, 28, 0.2),
    0 16px 34px -16px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .btn--primary:hover {
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(13, 20, 28, 0.2),
    0 20px 44px -18px rgba(0, 0, 0, 0.65);
}

/* ghost: light frosted glass with a soft white tint */
.btn--ghost {
  /* only the translucent button shows its frosting; on solid buttons the blur was invisible cost */
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  background: rgba(255, 255, 255, 0.55);
  border-color: color-mix(in srgb, #ffffff 55%, var(--line));
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 2px rgba(16, 27, 38, 0.06),
    0 10px 24px -16px rgba(16, 27, 38, 0.35);
}
.btn--ghost:hover {
  border-color: var(--green); color: var(--green-ink);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}
html[data-theme="dark"] .btn--ghost {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 24px -16px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .btn--ghost:hover {
  border-color: var(--green); color: var(--green-ink);
  background: rgba(255, 255, 255, 0.14);
}

.btn--small { padding: 9px 18px; font-size: 0.88rem; }
.btn--large { padding: 15px 30px; font-size: 1rem; }
.btn--large svg { width: 16px; height: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.92rem; color: var(--blue-ink);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── the stage: a light canvas with drifting brand light ──
   Inner-page heroes still say  class="page-hero stage"  —
   it now reads as a bright panel, never a dark one.        */

.stage {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(90% 120% at 85% -20%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 55%),
    radial-gradient(80% 110% at 8% 115%, color-mix(in srgb, var(--green) 10%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 55%, var(--paper));
  border-bottom: 1px solid var(--line-soft);
}
.stage > .wrap { position: relative; z-index: 2; }

.stage__fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stage__fx i { position: absolute; display: block; border-radius: 50%; }

/* the kinetic lattice drawn behind the home hero */
.stage__matrix {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(130% 130% at 50% 38%, #000 55%, transparent 98%);
          mask-image: radial-gradient(130% 130% at 50% 38%, #000 55%, transparent 98%);
}
.orb--a {
  width: 44vw; height: 44vw; max-width: 580px; max-height: 580px;
  top: -16%; right: -6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 22%, transparent), color-mix(in srgb, var(--blue) 7%, transparent) 42%, transparent 70%);
  animation: orb-a 18s ease-in-out infinite;
}
.orb--b {
  width: 36vw; height: 36vw; max-width: 500px; max-height: 500px;
  bottom: -22%; left: -5%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 20%, transparent), color-mix(in srgb, var(--green) 6%, transparent) 42%, transparent 70%);
  animation: orb-b 22s ease-in-out infinite;
}
@keyframes orb-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-5%, 6%) scale(1.12); }
}
@keyframes orb-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(7%, -8%) scale(1.1); }
}

/* ── heroes ──────────────────────────────────────────────── */

.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(34px, 5vw, 58px); overflow: hidden; }
.hero .eyebrow { margin-bottom: 24px; }
.hero .display { margin-bottom: 24px; }
.hero .lede { margin-bottom: 30px; }

.page-hero { padding-block: clamp(40px, 6vw, 74px) clamp(26px, 3.4vw, 42px); }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero .display { margin-bottom: 22px; }
.page-hero.stage {
  padding-top: calc(var(--nav-h) + clamp(30px, 4.5vw, 64px));
  padding-bottom: clamp(38px, 5vw, 66px);
}
.page-hero__grid .display { margin-bottom: clamp(18px, 2vw, 26px); }
.page-hero__grid .lede { max-width: 84ch; }

/* home hero */
.hero--home { padding-block: clamp(30px, 4vw, 56px); }
.snap-page .hero.stage,
.hero--home.stage {
  padding-top: calc(var(--nav-h) + clamp(22px, 5vh, 72px));
  padding-bottom: clamp(28px, 4vh, 58px);
  border-bottom: 0;
}
.hero__title { margin-bottom: clamp(24px, 3vw, 38px); max-width: 15ch; }
.hero__split {
  display: grid; grid-template-columns: 1.06fr 1fr;
  gap: clamp(28px, 4.5vw, 70px); align-items: center;
}
.hero__split .lede--hero { max-width: 46ch; }

/* headline lands word by word */
.hero__title .w {
  display: inline-block;
  animation: word-up 0.85s var(--ease) both;
  animation-delay: calc(var(--i) * 65ms + 120ms);
}
@keyframes word-up {
  from { opacity: 0; transform: translateY(0.42em); }
  to   { opacity: 1; transform: none; }
}
.hero__title .mark { display: inline-block; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  margin-top: clamp(20px, 2.6vw, 30px);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }

/* availability pill */
.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 13px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--ink);
  box-shadow: var(--shadow-sm);
  margin-bottom: clamp(18px, 3vh, 34px);
}
.status i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(18, 181, 134, 0.6); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(18, 181, 134, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(18, 181, 134, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 181, 134, 0); }
}

/* legacy hero panel (inner pages) */
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero__panel {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  box-shadow: var(--shadow-md); padding: 8px clamp(18px, 2vw, 26px);
}
.hero__panel h2 {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  padding: 16px 0 12px; border-bottom: 1px solid var(--line-soft);
}
.hero__panel dl { display: grid; }
.hero__panel div { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.hero__panel div:last-child { border-bottom: 0; }
.hero__panel dt { font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.hero__panel dd { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

.strip {
  display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 2.4vw, 32px); align-items: center;
  margin-top: clamp(20px, 2.6vw, 32px); padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.strip b { color: var(--ink); font-weight: 500; letter-spacing: 0.14em; }

/* ── hero showcase: real work, framed ────────────────────── */

.heroview { position: relative; min-height: 380px; }
.heroview__frame {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.heroview__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface) 60%, var(--paper-2));
}
.heroview__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.heroview__bar i:nth-child(1) { background: #f0a3a3; }
.heroview__bar i:nth-child(2) { background: #f3d493; }
.heroview__bar i:nth-child(3) { background: #a4dcbf; }
.heroview__bar span {
  margin-left: 10px; padding: 3px 14px; border-radius: 20px; background: var(--paper);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em;
}
.heroview__frame img { width: 100%; aspect-ratio: 1.92; object-fit: cover; object-position: top center; }

.heroview__frame--main {
  width: 88%;
  animation: float-a 9s ease-in-out infinite;
}
.heroview__frame--sub {
  position: absolute; right: -2%; bottom: -8%; width: 52%; z-index: 2;
  animation: float-b 9s ease-in-out infinite; animation-delay: 1.2s;
}
.heroview__frame--sub img { aspect-ratio: 1.6; object-position: top left; }
@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

.heroview__chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--ink);
  animation: chip-float 6s ease-in-out infinite;
}
.heroview__chip b { color: var(--green-ink); font-weight: 600; }
/* chips sit clear of the address labels so both domains stay readable */
.heroview__chip--a { top: 4%; right: 2%; animation-delay: 0.4s; }
.heroview__chip--b { bottom: -13%; right: 6%; animation-delay: 2.2s; }
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ── note cards ──────────────────────────────────────────── */

.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(18px, 1.7vw, 28px); }
.note {
  position: relative; padding: 20px 24px 22px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.note::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: var(--grad);
}
.note--green::before { background: var(--green); }
.note__label {
  display: block; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 8px;
}
.note--green .note__label { color: var(--green-ink); }
.note p { font-size: 0.95rem; }

/* ── cards ───────────────────────────────────────────────── */

.cards { display: grid; gap: clamp(18px, 1.7vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(265px, 100%), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  position: relative; overflow: hidden; padding: clamp(22px, 1.7vw, 30px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
  box-shadow: var(--shadow-md);
}
/* light rakes across a card as the pointer arrives */
.card::before, .scenario::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--green) 9%, transparent), transparent 62%);
  opacity: 0; transition: opacity 0.45s ease;
}
.card:hover::before, .scenario:hover::before { opacity: 1; }
.card > *, .scenario > * { position: relative; z-index: 1; }

.card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.card__meta {
  display: block; font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--green-ink); margin-bottom: 11px; letter-spacing: 0.01em;
}
.card__meta--blue { color: var(--blue-ink); }
.card p { font-size: 0.95rem; line-height: 1.62; }
.card__index {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 12px;
}
.card__foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--muted);
}
.card__foot b { color: var(--ink); font-weight: 500; }
.card--feature { padding: clamp(26px, 2vw, 36px); }
.card--feature h3 { font-size: clamp(1.3rem, 2.1vw, 1.62rem); margin-bottom: 10px; }
.card--feature p { font-size: 0.96rem; }

/* a person's name with a round profile photo beside it (about page) */
.person { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.person .card__index { margin-bottom: 6px; }
.person h3 { margin-bottom: 0; }
.person__photo {
  flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  background: var(--paper-2);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--green) 55%, var(--line));
}

.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 14px; color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--green) 70%, var(--blue));
  transition: transform 0.45s var(--ease);
}
.card__icon svg { width: 22px; height: 22px; }
.card:hover .card__icon { transform: translateY(-2px) rotate(-5deg) scale(1.07); }

.card--service { padding-top: 24px; }
.card--service .card__no {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.2em;
  color: var(--muted);
}
.card--service::after {
  content: ""; position: absolute; right: 18px; bottom: 18px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-soft);
  opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.4s var(--ease);
}
.card--service:hover::after { opacity: 1; transform: scale(1); }

/* on scroll, a service card lands as a small choreography: the card
   rises, the icon springs in, then number, title, meta and copy
   settle one after another. Rides the .reveal observer; the delays
   stack on the same --i stagger the grid already uses. */
.card--service.reveal:not(.is-in) { transform: translateY(34px) scale(0.96); }

.card--service.reveal.is-in .card__icon {
  animation: card-icon-in 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 140ms);
}
.card--service.reveal.is-in h3 {
  animation: card-rise-in 0.6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 220ms);
}
.card--service.reveal.is-in .card__no {
  animation: card-slide-in 0.55s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 300ms);
}
.card--service.reveal.is-in .card__meta {
  animation: card-rise-in 0.6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 300ms);
}
.card--service.reveal.is-in p {
  animation: card-rise-in 0.6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 380ms);
}
@keyframes card-icon-in {
  from { opacity: 0; transform: translateY(12px) scale(0.45) rotate(-12deg); }
}
@keyframes card-rise-in {
  from { opacity: 0; transform: translateY(12px); }
}
@keyframes card-slide-in {
  from { opacity: 0; transform: translateX(12px); }
}

/* ── numbered steps ──────────────────────────────────────── */

.steps { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.step { border-top: 2px solid var(--line); padding-top: 18px; transition: border-color 0.3s ease; }
.step:hover { border-top-color: var(--green); }
.step__num {
  display: inline-block; font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 12px;
}
.step h3 { font-size: clamp(1.12rem, 1.6vw, 1.32rem); margin-bottom: 8px; }
.step p { font-size: 0.95rem; line-height: 1.62; }

.flow { position: relative; }
.flow__line {
  position: absolute; left: 0; right: 0; top: 1px; height: 2px; background: var(--line);
  overflow: hidden;
}
.flow__line i {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.32, 0.72, 0, 1);
}
.flow.is-in .flow__line i { transform: scaleX(1); }
.flow .steps { position: relative; }

/* ── spec tables ─────────────────────────────────────────────
   Elevated panels: a brand hairline across the top, soft brand
   washes in the corners, generous rows with glowing accent
   bars, and prices set in pill chips instead of bare text.    */

.table {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(120% 150% at 100% 0%, color-mix(in srgb, var(--blue) 5%, transparent), transparent 52%),
    radial-gradient(120% 150% at 0% 100%, color-mix(in srgb, var(--green) 5%, transparent), transparent 52%),
    var(--surface);
  box-shadow: var(--shadow-md);
}
.table::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); z-index: 1;
}

.table__head, .row {
  display: grid; gap: 18px; align-items: start;
  padding: 15px clamp(18px, 1.8vw, 30px);
}
.table--2 .table__head, .table--2 .row { grid-template-columns: 1fr 180px; }
.table--3 .table__head, .table--3 .row { grid-template-columns: 1fr 150px 170px; }
.table--3b .table__head, .table--3b .row { grid-template-columns: 1.15fr 1fr 140px; }
.table--4 .table__head, .table--4 .row { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

.table__head {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  padding-block: 16px;
}
.table__head span:first-child { color: var(--blue-ink); }

.table__group {
  display: flex; align-items: center; gap: 10px;
  padding: 12px clamp(18px, 1.8vw, 30px);
  background: linear-gradient(90deg, var(--green-soft), transparent 75%);
  border-block: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green-ink); font-weight: 500;
}
.table__group::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); flex-shrink: 0;
  box-shadow: 0 0 10px color-mix(in srgb, var(--green) 60%, transparent);
}

.row {
  border-bottom: 1px solid var(--line-soft); position: relative;
  transition: background-color 0.25s ease; padding-block: 20px;
}
.row:last-child { border-bottom: 0; }
.row:hover {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--green) 7%, transparent),
    color-mix(in srgb, var(--blue) 4%, transparent) 55%, transparent);
}

.row__title {
  position: relative; display: block; padding-left: 18px;
  font-family: var(--font-display);
  font-weight: 600; color: var(--ink); font-size: 1.04rem; line-height: 1.35;
  transition: color 0.25s ease;
}
.row__title::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 5px; height: 17px; border-radius: 4px; background: var(--grad);
  box-shadow: 0 0 12px color-mix(in srgb, var(--green) 55%, transparent);
  transition: transform 0.35s var(--ease); transform-origin: center;
}
.row:hover .row__title { color: var(--green-ink); }
.row:hover .row__title::before { transform: scaleY(1.45); }
.row--green .row__title::before { background: var(--green); }
.row__desc { padding-left: 18px; font-size: 0.9rem; line-height: 1.55; color: var(--muted); margin-top: 5px; max-width: 92ch; }
.row__col { font-family: var(--font-mono); font-size: 0.84rem; color: var(--body); padding-top: 4px; font-variant-numeric: tabular-nums; }
.row__col strong { font-weight: 500; color: var(--ink); }

/* prices read as figures, not decoration: larger mono, set in ink */
.row__col--price {
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}
.row:hover .row__col--price { color: var(--blue-ink); }
.row--green:hover .row__col--price { color: var(--green-ink); }
.row__col--price a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-ink); font-weight: 600; text-decoration: none;
}
.row__col--price a::after { content: "→"; transition: translate 0.3s var(--ease); }
.row__col--price a:hover::after { translate: 3px 0; }

.row__col--who { font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.row__col--text { font-family: var(--font-sans); font-size: 0.9rem; line-height: 1.55; color: var(--body); }
.row__col-label { display: none; }

.table__total {
  display: grid; gap: 18px; align-items: center;
  padding: 16px clamp(18px, 1.8vw, 30px);
  background: linear-gradient(100deg, color-mix(in srgb, var(--green) 24%, var(--ink)), var(--ink) 60%);
  color: var(--paper);
}
html[data-theme="dark"] .table__total {
  background: linear-gradient(100deg, #14382e, #1c2c3c 60%);
  color: var(--ink);
}
.table--4 .table__total { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.table__total b { font-family: var(--font-sans); font-weight: 600; color: inherit; }
.table__total span { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; }

/* ── numbered panel ("how we work") — light editorial ────── */

.numbered {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(26px, 3vw, 44px);
  box-shadow: var(--shadow-md);
}
.numbered::before, .numbered::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.numbered::before { background: var(--line); }
.numbered::after {
  background: var(--grad);
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.numbered.is-in::after { transform: scaleY(1); }
.numbered__head { margin-bottom: 22px; }
.numbered__head .h2 { margin-bottom: 8px; }
.n-row {
  display: grid; grid-template-columns: 34px 190px 1fr; gap: 16px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line-soft);
}
.n-row:first-of-type { border-top: 0; padding-top: 4px; }
.n-row__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--green-ink); }
.n-row__label { font-weight: 600; color: var(--ink); font-size: 0.97rem; line-height: 1.35; }
.n-row p { font-size: 0.95rem; }

/* ── dash list ───────────────────────────────────────────── */

.dashlist {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 6px clamp(18px, 2.6vw, 26px); box-shadow: var(--shadow-sm); list-style: none;
}
.dashlist li {
  padding: 15px 0; border-top: 1px solid var(--line-soft); font-size: 0.95rem;
  transition: padding-left 0.35s var(--ease);
}
.dashlist li:first-child { border-top: 0; }
.dashlist li::before {
  content: "—"; display: inline-block; margin-right: 10px;
  color: var(--green); transform-origin: left center;
  transition: transform 0.35s var(--ease), color 0.25s ease;
}
.dashlist b { color: var(--ink); }

/* on scroll the rows slide in one after another, each dash
   drawing itself a beat behind its row */
.dashlist.reveal.is-in li { animation: dash-row-in 0.55s var(--ease) backwards; }
.dashlist.reveal.is-in li::before { animation: dash-mark-in 0.5s var(--ease) backwards; }
.dashlist.reveal.is-in li:nth-child(1) { animation-delay: 0.2s; }
.dashlist.reveal.is-in li:nth-child(2) { animation-delay: 0.29s; }
.dashlist.reveal.is-in li:nth-child(3) { animation-delay: 0.38s; }
.dashlist.reveal.is-in li:nth-child(4) { animation-delay: 0.47s; }
.dashlist.reveal.is-in li:nth-child(5) { animation-delay: 0.56s; }
.dashlist.reveal.is-in li:nth-child(6) { animation-delay: 0.65s; }
.dashlist.reveal.is-in li:nth-child(1)::before { animation-delay: 0.34s; }
.dashlist.reveal.is-in li:nth-child(2)::before { animation-delay: 0.43s; }
.dashlist.reveal.is-in li:nth-child(3)::before { animation-delay: 0.52s; }
.dashlist.reveal.is-in li:nth-child(4)::before { animation-delay: 0.61s; }
.dashlist.reveal.is-in li:nth-child(5)::before { animation-delay: 0.7s; }
.dashlist.reveal.is-in li:nth-child(6)::before { animation-delay: 0.79s; }
@keyframes dash-row-in {
  from { opacity: 0; transform: translateX(-22px); }
}
@keyframes dash-mark-in {
  from { transform: scaleX(0); }
}

/* hover: the row steps forward and its dash reaches out */
.dashlist li:hover { padding-left: 10px; }
.dashlist li:hover::before { transform: scaleX(1.6); color: var(--green-ink); }

@media (prefers-reduced-motion: reduce) {
  .dashlist.reveal.is-in li, .dashlist.reveal.is-in li::before { animation: none; }
}

/* ── scenarios / pricing highlights ──────────────────────── */

.scenarios { display: grid; gap: clamp(18px, 1.7vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.scenario {
  position: relative; overflow: hidden;
  padding: clamp(22px, 1.8vw, 30px); border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.scenario:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.scenario--featured {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
  box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--green) 45%, rgba(16, 27, 38, 0.5));
}
.scenario--featured::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad);
}
.scenario__tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 12px;
}
.scenario--featured .scenario__tag { color: var(--green-ink); }
.scenario h3 { font-size: clamp(1.35rem, 1.9vw, 1.6rem); margin-bottom: 8px; }
.scenario p { font-size: 0.92rem; min-height: 3.4em; }
.scenario__price {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  color: var(--ink); letter-spacing: -0.03em; margin-top: 16px; line-height: 1.1;
}
.scenario__price small { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.scenario__year { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.bar { height: 5px; border-radius: 5px; background: var(--green); margin-top: 16px; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; background: var(--blue); }
.bar-key { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
@media (max-width: 760px) { .scenario p { min-height: 0; } }

/* ── currency switch ─────────────────────────────────────── */

.cur-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.cur-switch button {
  padding: 8px 17px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--muted); transition: background-color 0.2s, color 0.2s;
}
.cur-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .cur-switch button[aria-pressed="true"] { color: #0d141c; }
body[data-currency="cad"] .cur-inr { display: none; }
body[data-currency="inr"] .cur-cad { display: none; }

/* ── product / work showcase ─────────────────────────────── */

.showcase { display: grid; grid-template-columns: 320px 1fr; gap: clamp(24px, 4vw, 54px); align-items: center; }
.showcase--form { grid-template-columns: 1fr 330px; align-items: start; }
/* iPhone-style mockup: gradient frame that contrasts the theme
   (dark ink frame on the light site, silver frame on the dark
   site), home indicator, inner screen vignette. Proportions
   follow the 393×852 device spec scaled to 262px.             */
.phone {
  position: relative; width: 262px; margin-inline: auto;
  border-radius: 43px; padding: 8px;
  background: linear-gradient(135deg, #26343f 0%, #101b26 40%, #0a121a 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.22);
}
html[data-theme="dark"] .phone {
  background: linear-gradient(135deg, #7e8894 0%, #5f6a76 40%, #454e59 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.phone__screen {
  position: relative; border-radius: 35px; overflow: hidden;
  background: #000; aspect-ratio: 393 / 852;
}
.phone__screen::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  z-index: 1; pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 10px 20px rgba(0, 0, 0, 0.25),
    inset 0 -8px 16px rgba(0, 0, 0, 0.2);
}
.phone__screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; z-index: 0;
}
.phone__home {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 4px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
  opacity: 0.9; z-index: 2; pointer-events: none;
}
.phone__shot--dark { display: none; }
html[data-theme="dark"] .phone__shot--light { display: none; }
html[data-theme="dark"] .phone__shot--dark { display: block; }

.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-head img { width: 54px; height: 54px; border-radius: 14px; box-shadow: var(--shadow-md); }
.app-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
/* "Save" matches the Doodle Save app's royal blue */
.brand-save { color: #1848a8; }
html[data-theme="dark"] .brand-save { color: #7fa6ff; }
/* "Inventory" matches the Doodle Inventory app's green */
.brand-inv { color: #178060; }
html[data-theme="dark"] .brand-inv { color: #4fd1a8; }

/* Browser-window frame for full-width desktop screenshots */
.browser {
  margin: 0 0 clamp(18px, 1.7vw, 28px);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-md);
}
.browser__bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser__bar span {
  margin-left: 10px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted);
  background: var(--surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { display: block; width: 100%; height: auto; }

/* Product close-ups: transparent PNGs of single screens on a mint tile */
.shots { display: grid; gap: clamp(18px, 1.7vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.shot {
  margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.shot:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); box-shadow: var(--shadow-md); }
.shot__img {
  --pad: clamp(4px, 0.8vw, 10px);
  position: relative; aspect-ratio: 16 / 9;
  background: linear-gradient(160deg, #eaf8f3 0%, #d6f0e6 100%);
}
html[data-theme="dark"] .shot__img { background: linear-gradient(160deg, #173229 0%, #0f211c 100%); }
/* absolutely placed so every tile is the same height whatever the screenshot's proportions */
.shot__img img {
  position: absolute; top: var(--pad); left: var(--pad);
  width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad)); object-fit: contain;
}
.shot figcaption { padding: 18px clamp(18px, 2vw, 24px) 22px; }
.shot h3 { font-size: 1.18rem; margin-bottom: 6px; }
.shot p { font-size: 0.95rem; line-height: 1.62; }

.work-card {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.work-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--green) 40%, var(--line)); box-shadow: var(--shadow-md); }
.work-card__shot { position: relative; background: var(--paper-2); overflow: hidden; }
.work-card__shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 45%);
}
.work-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; min-height: 190px; transition: transform 0.7s var(--ease); }
.work-card:hover .work-card__shot img { transform: scale(1.03); }
/* screenshots whose logo and headline sit on the left keep that side in frame when cropped */
.work-card__shot img.shot-left { object-position: left top; }
.work-card__body { padding: 24px clamp(18px, 2.4vw, 28px) 26px 0; }
.work-card__body .eyebrow { margin-bottom: 12px; }
.work-card__body h3 { font-size: 1.3rem; margin-bottom: 8px; }
.work-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.work-card__tags span {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted);
  background: var(--paper);
}
.stack { display: grid; gap: clamp(18px, 1.7vw, 26px); }

/* ── quiet blocks ────────────────────────────────────────── */

.callout {
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-left: 4px solid var(--blue);
  border-radius: var(--r-sm); background: var(--blue-soft);
  padding: 18px 22px; font-size: 0.95rem;
}
.callout--green {
  border-color: color-mix(in srgb, var(--green) 26%, var(--line));
  border-left-color: var(--green); background: var(--green-soft);
}
.callout b { display: inline; }

.fineprint { font-size: 0.9rem; color: var(--muted); max-width: 78ch; }
.fineprint + .fineprint { margin-top: 10px; }

.kv { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.kv__item { border-top: 2px solid var(--line); padding-top: 14px; transition: border-color 0.3s ease; }
.kv__item:hover { border-top-color: var(--green); }
.kv__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.kv__value { font-size: 1.04rem; font-weight: 600; color: var(--ink); font-family: var(--font-display); }
.kv__value a:hover { color: var(--blue-ink); }
.kv__note { font-size: 0.88rem; color: var(--muted); margin-top: 3px; }

/* ── stats ───────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.stat { border-top: 2px solid var(--line); padding-top: 16px; transition: border-color 0.3s ease; }
.stat:hover { border-top-color: var(--green); }
.stat__num {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(2.6rem, 4.4vw, 3.6rem); line-height: 1; color: var(--ink);
}
.stat__num small { font-size: 0.45em; font-weight: 600; letter-spacing: 0; color: var(--green-ink); }
.stat__label { margin-top: 8px; font-size: 0.92rem; color: var(--body); max-width: 26ch; }

.stats--inline {
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(24px, 3.4vw, 42px); padding-top: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}
.stats--inline .stat { border-top: 0; padding-top: 0; }
.stats--inline .stat__num { font-size: clamp(1.9rem, 2.8vw, 2.5rem); }
.stats--inline .stat__label { font-size: 0.84rem; color: var(--muted); margin-top: 4px; }

/* ── sector ticker ───────────────────────────────────────── */

.ticker {
  margin-top: clamp(22px, 3vw, 38px); padding-top: 18px; border-top: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__seq { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); padding-right: clamp(20px, 3vw, 42px); }
.ticker__seq span {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.ticker__seq span::before { content: "✦"; margin-right: clamp(20px, 3vw, 42px); color: var(--green); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── checklist band ("every build includes") ─────────────── */

.checklist { display: grid; gap: 14px clamp(18px, 2vw, 30px); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.checklist li {
  list-style: none;
  display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
  padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); font-size: 0.95rem; line-height: 1.55;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.checklist li:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.checklist li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 1px; }
.checklist__tick {
  display: grid; place-items: center; width: 26px; height: 26px; margin-top: 2px;
  border-radius: 50%; background: var(--grad); color: #fff; flex-shrink: 0;
}
.checklist__tick svg { width: 13px; height: 13px; }
@media (min-width: 1100px) { .checklist { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── FAQ ─────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0;
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--font-sans); font-weight: 400; font-size: 1.1rem; color: var(--muted);
  transition: transform 0.35s var(--ease), background-color 0.2s, color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--green-soft); color: var(--green-ink); border-color: transparent; }
.faq details > p { padding: 0 22px 20px; font-size: 0.95rem; max-width: 90ch; }

/* ── CTA band ────────────────────────────────────────────── */

.cta-band {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 6.5vw, 84px);
  background:
    radial-gradient(80% 130% at 90% -20%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 55%),
    radial-gradient(70% 120% at 6% 120%, color-mix(in srgb, var(--green) 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 55%, var(--paper-2));
  border-block: 1px solid var(--line-soft);
}
.cta-band > .wrap { position: relative; z-index: 2; }
.cta-band__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; max-width: 22ch; }
.cta-band p { max-width: 56ch; }

/* ── contact form ────────────────────────────────────────── */

.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 7px; padding: 12px 15px;
  /* never below 16px: iOS Safari auto-zooms the page on focus of
     any field smaller than that */
  font: inherit; font-size: max(1rem, 16px); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: 0.75; }
.form__honey { position: absolute; left: -9999px; opacity: 0; }
.form__note { font-size: 0.86rem; color: var(--muted); }
.form__sent { display: none; padding: 14px 18px; border-radius: var(--r-sm); background: var(--green-soft); color: var(--green-ink); font-weight: 600; font-size: 0.92rem; }
.form__sent.is-visible { display: block; }
.form__error { display: none; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid rgba(229, 72, 77, 0.35); background: rgba(229, 72, 77, 0.08); color: #d23c41; font-weight: 600; font-size: 0.9rem; }
.form__error.is-visible { display: block; }

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

.footer { border-top: 1px solid var(--line); padding-block: clamp(38px, 5vw, 58px) 26px; background: color-mix(in srgb, var(--surface) 45%, var(--paper-2)); }
html[data-theme="dark"] .footer { background: rgba(255, 255, 255, 0.02); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer__brand img { width: 36px; height: 36px; }
.footer__brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.footer p { font-size: 0.92rem; max-width: 42ch; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--green) 70%, var(--blue));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.footer__social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--green) 80%, var(--blue));
}
.footer__social svg { width: 18px; height: 18px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { font-size: 0.92rem; color: var(--body); transition: color 0.2s; }
.footer ul a:hover { color: var(--green-ink); }
.footer__base {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: clamp(28px, 4vw, 42px); padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted);
}

/* ── scroll progress ─────────────────────────────────────── */

.progress {
  position: fixed; top: 0; left: 0; z-index: 120; height: 3px; width: 100%;
  background: var(--grad);
  border-radius: 0 3px 3px 0;
  transform: scaleX(0); transform-origin: left center; will-change: transform;
}

/* ── cursor ──────────────────────────────────────────────── */

.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 300;
  pointer-events: none; border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0; will-change: transform;
}
html.cursor-on .cursor, html.cursor-on .cursor-dot { opacity: 1; }

.cursor {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.4px solid #fff;
  transition:
    opacity 0.3s ease,
    width 0.38s var(--ease), height 0.38s var(--ease), margin 0.38s var(--ease),
    background-color 0.3s ease, border-color 0.3s ease;
}
.cursor-dot {
  width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff;
  transition: opacity 0.25s ease;
}
.cursor__label {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; white-space: nowrap;
  opacity: 0; transform: scale(0.7); transition: opacity 0.25s ease, transform 0.3s var(--ease);
}
.cursor.is-hover {
  width: 62px; height: 62px; margin: -31px 0 0 -31px;
  background: rgba(255, 255, 255, 0.22); border-color: transparent;
}
.cursor.has-label { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.cursor.has-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
html.cursor-on .cursor.is-text,
html.cursor-on .cursor.is-text + .cursor-dot { opacity: 0; }
html.cursor-on .cursor-dot.is-hidden { opacity: 0; }
html.cursor-on.is-out .cursor, html.cursor-on.is-out .cursor-dot { opacity: 0; }

html.cursor-on body { cursor: none; }
html.cursor-on a, html.cursor-on button, html.cursor-on .card,
html.cursor-on label, html.cursor-on summary { cursor: none; }
html.cursor-on input, html.cursor-on textarea, html.cursor-on select { cursor: auto; }

/* ── reveals ─────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(26px) scale(0.992); filter: blur(7px); }
.reveal.is-in {
  opacity: 1; transform: none; filter: none;
  transition:
    opacity 0.85s var(--ease),
    transform 0.95s var(--ease),
    filter 0.7s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ── responsive ──────────────────────────────────────────── */

@media (min-width: 1001px) {
  .mobile-menu { display: none; }
}

@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .showcase, .showcase--form, .hero__grid, .hero__split { grid-template-columns: 1fr; }

  /* the hero keeps its proof on small screens: one full-width work
     frame with the two floating chips, instead of disappearing */
  .heroview { min-height: 0; margin-top: 14px; }
  .heroview__frame--main { width: 100%; }
  .heroview__frame--sub { display: none; }
  /* the short chip takes the top so the address label stays clear */
  .heroview__chip--a { top: auto; right: auto; bottom: -14px; left: 10px; }
  .heroview__chip--b { top: -14px; right: 10px; bottom: auto; }

  .work-card { grid-template-columns: 1fr; }
  .work-card__shot img { aspect-ratio: 16 / 9; min-height: 0; }
  .work-card__body { padding: 22px clamp(18px, 4vw, 26px) 26px; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding-block: clamp(52px, 13vw, 78px); }
  .cards, .scenarios, .steps, .notes, .checklist { gap: 16px; }
  .wrap { padding-inline: 22px; }
  .card { padding: 22px; }

  /* stats sit two-up instead of one long column */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .stat__num { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .stat__label { font-size: 0.85rem; }

  /* pill labels are allowed to wrap without breaking their shape */
  .eyebrow { white-space: normal; align-items: flex-start; line-height: 1.5; max-width: 100%; }
  .eyebrow::before { margin-top: 5px; }
  .table__head { display: none; }
  .table--2 .row, .table--3 .row, .table--3b .row, .table--4 .row,
  .table--4 .table__total { grid-template-columns: 1fr; gap: 8px; }
  .row__col--text { padding-left: 16px; }
  .row__col { display: flex; gap: 8px; align-items: baseline; }
  .row__col-label {
    display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); min-width: 72px;
  }
  .table__total { gap: 6px; }
  .n-row { grid-template-columns: 30px 1fr; }
  .n-row p { grid-column: 2; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --nav-h: 80px; }
  .nav { height: 66px; }
  .nav.is-scrolled { top: 10px; height: 58px; width: calc(100% - 20px); }
  .mobile-menu { top: 76px; width: calc(100% - 20px); }
  .nav__actions > .btn { display: none; }
  .nav__login { width: 38px; padding: 0; }
  .nav__login span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .nav__logo-name { font-size: 0.92rem; }
  .nav__logo img { width: 30px; height: 30px; }
  .nav__logo-sub { display: none; }

  /* primary actions run full width, where a thumb expects them */
  .btn-row { width: 100%; }
  .btn-row .btn--large { width: 100%; justify-content: center; }
}

/* ── touch ergonomics ────────────────────────────────────────
   On touch devices the round controls grow to the 44px tap
   guideline and text links in the footer gain thumb padding. */
@media (pointer: coarse) {
  .theme-toggle { width: 44px; height: 44px; }
  .nav__login { height: 44px; }
  .liquid-menu, .liquid-menu__card { width: 44px; height: 44px; }
  .liquid-menu__bar { flex: 0 0 44px; height: 44px; padding: 0 11px 0 0; }
  .footer__social a { width: 44px; height: 44px; }
  .footer ul { gap: 4px; }
  .footer ul a { display: inline-block; padding-block: 6px; }
}

/* ── reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .card--service .card__icon, .card--service .card__no,
  .card--service h3, .card--service .card__meta, .card--service p { animation: none; }
  .numbered::after { transform: scaleY(1); }
  .hero__title .w { opacity: 1; transform: none; }
  .ticker__track { display: none; }
  .stage__fx i, .status i { animation: none; }
  .flow__line i { transform: scaleX(1); }
}

/* links that wait for a value (e.g. the call-booking link in site.js) */
[hidden] { display: none !important; }

/* price line on home service cards */
.card__price {
  display: block; margin-top: 14px; font-weight: 700; font-size: 1.12rem;
  color: var(--ink); font-variant-numeric: lining-nums;
}
.card__price small { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; color: var(--muted); margin-left: 6px; }

/* two status pills side by side in the home hero */
.status-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(18px, 3vh, 34px); }
.status-row .status { margin-bottom: 0; }
.status-row .status { white-space: nowrap; }
@media (max-width: 420px) {
  .status-row .status { font-size: 0.68rem; letter-spacing: 0.03em; padding: 6px 12px 6px 11px; }
}

/* client quotes (home proof section) */
.quote { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.02rem, 0.4vw + 0.92rem, 1.15rem); line-height: 1.6; color: var(--ink); }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { margin-top: auto; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.quote figcaption b { display: block; font-family: var(--font-sans); font-size: 0.98rem; color: var(--ink); letter-spacing: 0; margin-bottom: 2px; }

/* ── home intro ───────────────────────────────────────────────
   index.html only. An inline head script sets html.intro-on on the
   first visit of a session (never with reduced motion), so this
   cover is there from the first paint; intro.js animates it and
   removes it. The hero underneath renders normally (keeps LCP
   early) and replays its entrance when the cover opens.
   The root flag is html.intro-on, never html.intro: .intro is the
   cover itself, so a root class of "intro" would match it and hide
   the whole page.                                              */
.intro { display: none; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 200; overflow: hidden; }
.intro__bg {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(90% 120% at 85% -20%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 55%),
    radial-gradient(80% 110% at 8% 115%, color-mix(in srgb, var(--green) 10%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 55%, var(--paper));
}
.intro__grid {
  position: absolute; inset: 0; opacity: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center;
  -webkit-mask-image: radial-gradient(58% 62% at 50% 50%, #000 15%, transparent 100%);
          mask-image: radial-gradient(58% 62% at 50% 50%, #000 15%, transparent 100%);
}
.intro__orb { position: absolute; border-radius: 50%; }
.intro__orb--a {
  width: 44vw; height: 44vw; max-width: 580px; max-height: 580px; top: -16%; right: -6%;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 22%, transparent), transparent 65%);
}
.intro__orb--b {
  width: 36vw; height: 36vw; max-width: 500px; max-height: 500px; bottom: -22%; left: -5%;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 20%, transparent), transparent 65%);
}
.intro__lockup {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  column-gap: clamp(16px, 2.2vw, 30px);
}
.intro__mark { position: relative; flex: none; width: clamp(84px, 9vw, 132px); aspect-ratio: 1; will-change: transform; }
.intro__mark svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; overflow: visible; }
.intro__glow {
  position: absolute; inset: -70%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 34%, transparent), transparent 64%);
}
.intro__pulse { position: absolute; inset: -6%; border-radius: 50%; opacity: 0; border: 2px solid color-mix(in srgb, var(--green) 75%, transparent); }
.intro__type { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 12px); will-change: transform, opacity; }
.intro__name {
  display: flex; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5.4vw, 78px);
  line-height: 1; letter-spacing: 0.005em; color: var(--ink);
}
.intro__name span { display: inline-block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.intro__name span.sp { width: 0.28em; }
.intro__name i { display: inline-block; font-style: normal; transform: translateY(110%); will-change: transform; }
.intro__sub {
  font-family: var(--font-mono); font-size: clamp(10px, 0.95vw, 13px); letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap; opacity: 0;
}
.intro__line { display: block; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left center; }
.intro__ring {
  position: absolute; left: 0; top: 0; border-radius: 50%; opacity: 0; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--green) 85%, transparent);
  box-shadow: 0 0 46px color-mix(in srgb, var(--green) 45%, transparent), inset 0 0 46px color-mix(in srgb, var(--blue) 22%, transparent);
}
.intro__skip {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px);
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); opacity: 0;
}
@media (max-width: 640px) { .intro__sub span { display: none; } }
@media (max-width: 420px) { .intro__mark { width: 70px; } .intro__name { font-size: 26px; } }

/* while the cover is up: nav hidden, nav logo parked where the intro mark will land */
html.intro-on:not(.intro-out) .nav { opacity: 0; }
html.intro-on .nav__logo img { visibility: hidden; animation-play-state: paused; }
/* the hero replays its entrance as the cover opens */
.hero__title.replay .w { animation-name: word-up-replay; }
@keyframes word-up-replay {
  from { opacity: 0; transform: translateY(0.42em); }
  to   { opacity: 1; transform: none; }
}

/* intro, part 1: the operations scan (canvas + viewfinder HUD, built by intro.js).
   The scan is always a night scene, so the HUD uses fixed light ink in both themes. */
.intro__ground {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 62%, rgba(40, 120, 110, 0.22), transparent 70%),
    radial-gradient(60% 50% at 85% 0%, rgba(60, 100, 200, 0.18), transparent 70%),
    linear-gradient(180deg, #08111a 0%, #0b1620 55%, #0a141c 100%);
}
.intro__scan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; }
.intro__shade {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    linear-gradient(to top, rgba(6, 12, 18, 0.82) 0%, rgba(6, 12, 18, 0.25) 34%, transparent 55%),
    linear-gradient(to bottom, rgba(6, 12, 18, 0.55) 0%, transparent 18%),
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 9, 14, 0.6) 100%);
}
.intro__hud {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; --edge: clamp(14px, 2.4vw, 32px);
  --hud-ink: #f1f7f4; --hud-muted: rgba(214, 228, 236, 0.62); --hud-accent: #4fe0b0;
}
.intro__corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(241, 247, 244, 0.55); }
.intro__corner--tl { left: var(--edge); top: var(--edge); border-left-width: 1px; border-top-width: 1px; }
.intro__corner--tr { right: var(--edge); top: var(--edge); border-right-width: 1px; border-top-width: 1px; }
.intro__corner--bl { left: var(--edge); bottom: var(--edge); border-left-width: 1px; border-bottom-width: 1px; }
.intro__corner--br { right: var(--edge); bottom: var(--edge); border-right-width: 1px; border-bottom-width: 1px; }
.intro__read {
  position: absolute; display: flex; align-items: center; gap: 9px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--hud-muted);
}
.intro__read b { font-weight: 500; color: var(--hud-ink); letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.intro__read--tl  { left: calc(var(--edge) + 36px); top: calc(var(--edge) + 6px); }
.intro__read--tr  { right: calc(var(--edge) + 36px); top: calc(var(--edge) + 6px); }
.intro__read--tr2 { right: calc(var(--edge) + 36px); top: calc(var(--edge) + 26px); font-size: 9.5px; opacity: 0.8; }
.intro__rec { width: 6px; height: 6px; border-radius: 50%; background: var(--hud-accent); box-shadow: 0 0 12px var(--hud-accent); animation: intro-rec 1.2s ease-in-out infinite; }
@keyframes intro-rec { 50% { opacity: 0.35; } }
.intro__progress {
  position: absolute; left: calc(var(--edge) + 36px); right: calc(var(--edge) + 150px); bottom: calc(var(--edge) + 10px); height: 1px;
  background: linear-gradient(90deg, var(--hud-accent), #6ba7ff); transform: scaleX(0); transform-origin: left center; opacity: 0.8;
}
.intro__cap { position: absolute; left: clamp(22px, 4.4vw, 68px); bottom: clamp(40px, 10vh, 104px); max-width: min(980px, 86vw); will-change: transform, opacity, filter; }
.intro__cap small {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--hud-accent);
}
.intro__cap small::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.intro__cap b {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4vw, 60px); line-height: 1.02; letter-spacing: -0.035em; color: var(--hud-ink);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.intro__tag {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform, opacity;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 100px;
  border: 1px solid rgba(79, 224, 176, 0.45); background: rgba(8, 16, 24, 0.62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 18px rgba(79, 224, 176, 0.12);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hud-ink);
}
.intro__tag i { font-style: normal; color: var(--hud-accent); }
.intro__tag b { font-weight: 500; color: var(--hud-accent); }
.intro__tag.warn { border-color: rgba(240, 166, 70, 0.6); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 18px rgba(240, 166, 70, 0.18); }
.intro__tag.warn i, .intro__tag.warn b { color: #f0a646; }
@media (max-width: 640px) {
  .intro__read--tl, .intro__read--tr2 { display: none; }
  .intro__tag { font-size: 9px; padding: 5px 8px; letter-spacing: 0.08em; }
}
}
