/* ============================================================
   Webbr — brand identity system
   Tokens authored in oklch with hex fallbacks (README §Design Tokens)
   ============================================================ */
:root {
  color-scheme: dark;
  --base: #131110;            /* deep-space page background (behind the field) */
  --surface: #2a2623;         /* cards, panels — flush for soft-UI   */
  --hairline: #39342e;        /* borders, dividers      */
  --hairline-soft: #332e29;   /* section dividers       */
  --text: #F4F1EE;            /* headings, primary text */
  --text-secondary: #C3BCB6;  /* body copy on dark      */
  --muted: #A69E97;           /* labels, captions, mono */
  --body-dim: #B9B1AB;        /* service/card body ~oklch(0.72 .012 50) */
  --accent: #F0A75C;          /* primary action, numbers, wordmark dot */
  --accent-hover: #F8BE83;    /* oklch(0.86 0.12 45)    */
  --accent-active: #EC9B45;   /* oklch(0.74 0.14 45)    */
  --accent-live: #5FD39D;     /* status only            */
  --secondary-border: #4A443E;/* oklch(0.34 0.01 45)    */
  --secondary-border-hover: #5A534C; /* oklch(0.46 0.01 45) */
  --secondary-text: #EAE6E2;

  --maxw: 1120px;
  --nav-h: 74px;                       /* sticky nav height (for hero centring) */
  --gutter: clamp(22px, 5vw, 76px);   /* small margins, full-bleed content */
  --radius: 22px;       /* cards, panels, inputs */
  --radius-btn: 16px;   /* buttons */

  /* Neumorphism — soft, extruded "plastic" UI. Surfaces share the page color;
     a lighter highlight (top-left) and a deep shadow (bottom-right) give real,
     obvious relief. Monochromatic and low-contrast, per the style. */
  --nm-hi: #3a352f;     /* raised highlight */
  --nm-lo: #141210;     /* cast shadow      */
  --nm-raised: -9px -9px 20px var(--nm-hi), 10px 10px 24px var(--nm-lo);
  --nm-raised-sm: -5px -5px 12px var(--nm-hi), 6px 6px 15px var(--nm-lo);
  --nm-inset: inset 5px 5px 12px var(--nm-lo), inset -5px -5px 12px var(--nm-hi);
  --nm-bevel: inset 1.5px 1.5px 2px rgba(255,255,255,0.16), inset -1.5px -1.5px 2px rgba(0,0,0,0.4);

  --cf-dim: #6b635b;    /* resting colour of the background code lines */

  /* Floating pill nav — smoky glass (theme-flipped in [data-theme="light"]). */
  --nav-glass: rgba(28, 25, 22, 0.55);
  --nav-border: rgba(255, 255, 255, 0.09);
  --nav-hi: rgba(255, 255, 255, 0.14);
  --nav-shadow: rgba(0, 0, 0, 0.55);
}

@supports (color: oklch(0.5 0.1 45)) {
  :root {
    --base: oklch(0.17 0.006 60);
    --surface: oklch(0.28 0.008 60);
    --hairline: oklch(0.33 0.008 60);
    --hairline-soft: oklch(0.31 0.008 60);
    --nm-hi: oklch(0.34 0.009 60);
    --nm-lo: oklch(0.16 0.006 60);
    --cf-dim: oklch(0.52 0.012 60);
    --text: oklch(0.96 0.006 60);
    --text-secondary: oklch(0.78 0.01 50);
    --muted: oklch(0.68 0.012 50);
    --body-dim: oklch(0.72 0.012 50);
    --accent: oklch(0.80 0.14 45);
    --accent-hover: oklch(0.86 0.12 45);
    --accent-active: oklch(0.74 0.14 45);
    --accent-live: oklch(0.80 0.14 150);
    --secondary-border: oklch(0.34 0.01 45);
    --secondary-border-hover: oklch(0.46 0.01 45);
    --secondary-text: oklch(0.92 0.006 60);
  }
}

/* ---- Light theme (opt-in via [data-theme="light"]) -------------------------
   A warm off-white ground with dark ink; the amber accent deepens for contrast.
   Neumorphic highlight/shadow flip so the soft-UI relief still reads. */
:root[data-theme="light"] {
  color-scheme: light;
  --nm-bevel: inset 1.5px 1.5px 2px rgba(255,255,255,.9), inset -1.5px -1.5px 2px rgba(120,100,80,.16);
  --base: #f4efe8;
  --surface: #fbf7f1;
  --hairline: #e2dacf;
  --hairline-soft: #e8e1d7;
  --text: #2a2521;
  --text-secondary: #554d45;
  --muted: #7a7168;
  --body-dim: #6b6259;
  --accent: #cf7d24;
  --accent-hover: #e0912f;
  --accent-active: #b86a1c;
  --accent-live: #2f9e6a;
  --secondary-border: #d8cfc3;
  --secondary-border-hover: #c9bfb1;
  --secondary-text: #2a2521;
  --nm-hi: #ffffff;
  --nm-lo: #d9d0c4;
  --cf-dim: #b3a99d;
  --nav-glass: rgba(255, 251, 245, 0.62);
  --nav-border: rgba(40, 30, 20, 0.08);
  --nav-hi: rgba(255, 255, 255, 0.85);
  --nav-shadow: rgba(120, 100, 80, 0.26);
}
@supports (color: oklch(0.5 0.1 45)) {
  :root[data-theme="light"] {
    --base: oklch(0.95 0.012 75);
    --surface: oklch(0.975 0.010 75);
    --hairline: oklch(0.88 0.012 70);
    --hairline-soft: oklch(0.90 0.010 70);
    --nm-hi: oklch(1 0 0);
    --nm-lo: oklch(0.87 0.012 70);
    --cf-dim: oklch(0.72 0.02 60);
    --text: oklch(0.30 0.02 55);
    --text-secondary: oklch(0.45 0.02 55);
    --muted: oklch(0.56 0.02 55);
    --body-dim: oklch(0.50 0.02 55);
    --accent: oklch(0.66 0.15 50);
    --accent-hover: oklch(0.72 0.14 52);
    --accent-active: oklch(0.60 0.16 48);
    --accent-live: oklch(0.62 0.14 150);
    --secondary-border: oklch(0.86 0.012 70);
    --secondary-border-hover: oklch(0.80 0.012 70);
    --secondary-text: oklch(0.30 0.02 55);
  }
}

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

html { scroll-behavior: smooth; }

body {
  /* Deep space: a near-black ground with a faint warm core toward the globe. */
  background:
    radial-gradient(1200px 820px at 74% 32%, #1b1613 0%, rgba(19,17,16,0) 60%),
    var(--base);
  color: var(--text);
  min-height: 100vh;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 400ms ease, color 400ms ease;
}
/* Light theme: warm-white ground with a soft peach core. */
:root[data-theme="light"] body {
  background:
    radial-gradient(1100px 720px at 78% 24%, #ffe6d2 0%, rgba(255,230,210,0) 55%),
    var(--base);
}
/* The deep-space field is tuned for dark; soften it on the light ground. */
:root[data-theme="light"] .spacefield { opacity: 0.45; }

p { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; transition: color 120ms ease-out; }
a:hover { color: var(--accent-hover); }

/* Global focus — never removed */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Full-bleed: content spans the viewport with small margins (via --gutter).
   Pad the top by the nav height: the nav is now fixed (outside the scroller),
   so it no longer takes flow space — this keeps the hero framing unchanged. */
.frame {
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}

/* ScrollSmoother wrapper/content. Before the smoother is created these are
   plain blocks (the page scrolls natively during the intro); ScrollSmoother
   then fixes the wrapper and transforms the content for momentum scrolling. */
#smooth-wrapper { position: relative; }

/* Deep-space background — the Webbr silk particle field (webbr-particle-field.js
   draws into this). Fixed behind everything; the module sizes it from its CSS
   box, so it just needs a full-viewport size and a spot in the stack. */
.spacefield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  display: block;
}

/* 3D logo intro — a fixed WebGL stage above the nav (so the mark docks over it),
   and a full-height pin section that holds the scroll while it plays. Both exist
   only on the logo3d path; the flat path collapses them to nothing. */
#logoCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;            /* above the nav (30) so the docking mark reads on top */
  pointer-events: none;
  display: none;
}
#logoIntro { display: none; }
html.logo3d #logoCanvas { display: block; }
/* Tall, empty scroll region the 3D scrub maps over (the fixed canvas draws the
   mark on top of it). Its height is the scrub length; the hero follows it, so
   scrolling up from the hero re-enters the intro. */
html.logo3d #logoIntro { display: block; height: 200vh; height: 200svh; }

/* Hero copy sits above the fixed particle-field background; a soft shadow keeps
   the words crisp over it. */
.hero > * { position: relative; z-index: 1; }
.hero__title { text-shadow: 0 2px 24px rgba(10, 9, 8, 0.7); }
.hero__sub { text-shadow: 0 1px 16px rgba(10, 9, 8, 0.8); }

/* ---- Shared primitives ------------------------------------ */
.label {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.4;
}

/* Amber period — part of the wordmark, always amber */
.dot { color: var(--accent); }

/* Live status dot (status only) */
.dot-live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-live);
  flex: 0 0 auto;
}

/* Buttons — neumorphic and 3D. Raised by default (soft dual shadow + bevel);
   they sink in on press. On hover they turn to blurred glass with an
   amber→white gradient. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  box-shadow: var(--nm-bevel), var(--nm-raised-sm);
  transition: background 260ms ease, border-color 260ms ease, color 260ms ease,
              box-shadow 260ms ease, backdrop-filter 260ms ease,
              transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}
/* Reactive: hover melts the button into blurred glass with an amber→white
   gradient, and it lifts off the surface. */
.btn:hover {
  background: linear-gradient(135deg, rgba(240, 167, 92, 0.92) 0%, rgba(255, 255, 255, 0.85) 100%);
  color: #151311;
  border-color: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  backdrop-filter: blur(10px) saturate(1.25);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.5),
    -6px -6px 15px var(--nm-hi),
    8px 8px 22px var(--nm-lo);
  transform: translateY(-3px);
}
/* Press: the surface sinks into the page. */
.btn:active {
  box-shadow: var(--nm-inset);
  transform: translateY(1px);
  transition-duration: 120ms;
}
.btn--primary { background: var(--accent); color: var(--base); }
.btn--primary:active { background: var(--accent-active); }
.btn--secondary {
  background: var(--surface);
  color: var(--secondary-text);
  border-color: transparent;
}
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 15px 26px; }
.btn--secondary.btn--lg { padding: 14px 26px; }
.btn--block { width: 100%; }

/* ---- a) Nav ----------------------------------------------- */
/* A floating "smoky glass" pill, fixed and centred at the top (outside the
   smooth-scroll content). Stays put while the page scrolls beneath it. */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 30;
  width: min(1160px, calc(100% - 2 * var(--gutter)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 12px 11px 22px;
  border-radius: 999px;
  background: var(--nav-glass);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--nav-border);
  box-shadow: 0 20px 50px -22px var(--nav-shadow), inset 0 1px 0 var(--nav-hi);
  transform: translateX(-50%);
  transition: box-shadow 200ms ease-out, background 300ms ease,
              opacity 500ms ease-out, transform 500ms cubic-bezier(0.1, 0.7, 0.5, 1);
}
/* Nav is visible during the 3D logo intro (logo3d) and once the page is live
   (intro-gone); only hidden in the brief pre-decision frame. */
html.js:not(.intro-gone):not(.logo3d) .nav { opacity: 0; transform: translate(-50%, -160%); pointer-events: none; }
/* During the 3D intro the header lockup is hidden — the WebGL mark stands in
   for it — until logo-intro.js cross-fades it in at the dock (JS sets opacity). */
html.logo3d .lockup { opacity: 0; }
/* A touch more presence once the page has scrolled. */
.nav--scrolled { box-shadow: 0 24px 60px -22px var(--nav-shadow), inset 0 1px 0 var(--nav-hi); }
.lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.lockup:hover { color: var(--text); }
.lockup__mark { display: block; }
.lockup__word {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav__links { flex: 1; display: flex; align-items: center; justify-content: center; gap: 34px; }
.nav__links a { font-size: 14px; color: var(--text-secondary); }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__actions .btn { color: var(--base); }
.nav__actions .btn:hover { color: #151311; }
/* Instagram (icon-only, circular) */
.nav__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--text-secondary);
  border: 1px solid var(--nav-border);
  transition: color 160ms ease-out, border-color 160ms ease-out, background 160ms ease-out;
}
.nav__social:hover { color: var(--accent); border-color: var(--secondary-border-hover); }
.nav__social svg { display: block; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Fixed drop-down under the fixed nav (both sit outside the scroller). */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 29;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px var(--gutter) 20px;
  background: rgba(42, 38, 35, 0.9);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-size: 15px; color: var(--text-secondary); padding: 10px 0; }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { color: var(--base); margin-top: 8px; padding: 12px; }

/* ---- b) Hero ---------------------------------------------- */
/* Two columns: pitch copy left, the interactive before/after browser panel
   right. flex-wrap (not a grid + media query) handles the collapse — the panel
   drops below the copy once both no longer fit. */
.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 5vw, 76px);
  padding: clamp(48px, 6vw, 92px) var(--gutter) clamp(56px, 7vw, 104px);
  min-height: calc(100svh - var(--nav-h));
  overflow: clip;            /* the tilt/glow stay inside; no horizontal scroll */
}
.hero__copy {
  flex: 1 1 380px;
  min-width: 0;              /* or the panel refuses to shrink beside it */
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: clamp(20px, 2.2vw, 30px);
}
.hero__panel-col {
  flex: 1.18 1 460px;        /* slightly wider than the copy when both fit */
  min-width: 0;
  display: flex;
  justify-content: center;
}
/* Drag hint under the buttons — ties the copy to the panel's reveal. */
.hero__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  /* Breathing pulse so it reads as a live invitation to drag the panel. */
  animation: hintBreathe 2.4s ease-in-out infinite;
  transform-origin: left center;
  will-change: opacity, transform;
}
.hero__hint svg { flex: 0 0 auto; animation: hintNudge 2.4s ease-in-out infinite; }
@keyframes hintBreathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.035); }
}
@keyframes hintNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

/* Panel autonomous motion (before/after "After" lighting + handle nudge).
   Cursor parallax and edge glow are driven from hero-panel.js. */
@keyframes abLightA {
  0%   { transform: translate3d(-8%, -6%, 0) scale(1); }
  50%  { transform: translate3d(10%, 5%, 0) scale(1.16); }
  100% { transform: translate3d(-8%, -6%, 0) scale(1); }
}
@keyframes abLightB {
  0%   { transform: translate3d(8%, 8%, 0) scale(1.1); }
  50%  { transform: translate3d(-9%, -5%, 0) scale(0.94); }
  100% { transform: translate3d(8%, 8%, 0) scale(1.1); }
}
@keyframes abSheen {
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(320%); }
  100% { transform: translateX(320%); }
}
@keyframes abNudge {
  0%, 100% { transform: translateX(0); }
  18%  { transform: translateX(9px); }
  40%  { transform: translateX(-7px); }
  62%  { transform: translateX(4px); }
  82%  { transform: translateX(-2px); }
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--nm-inset);
}
.hero__title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  /* Handoff hero metrics (short headline, sized for the copy column). */
  font-size: clamp(40px, 5.2vw, 78px);
  letter-spacing: -0.045em;
  line-height: 0.99;
  max-width: 100%;
}
.hl-line { display: block; }
.hw { display: inline-block; }
.hero-accent { color: var(--accent); }
.hw--idea em { font-style: italic; color: var(--accent); }
.hero__sub {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
}
.hero__actions { display: flex; gap: 14px; padding-top: 6px; flex-wrap: wrap; justify-content: flex-start; }

/* Headline reveal is driven by anime.js (hero-anime.js), started once when the
   hero scrolls into view. CSS only holds the initial hidden states; anime.js
   animates them in — word by word, then "idea" illuminates, then <Webbr/>
   types. Without JS everything just stays visible. */
.js .hero .hw { opacity: 0; transform: translateY(0.34em); }

/* Hold the whole hero's content until the intro has swiped away, then let it
   compose in together at the landing — otherwise the pill/sub/buttons show
   mid-transition, which reads as a half-built page. Mirrors the nav. */
.js .hero > * { transition: opacity 560ms ease-out; }
html.js:not(.intro-gone) .hero > * { opacity: 0; }

/* "idea" — italic; anime.js runs the lightbulb flicker → bloom → settle. */
.hw--idea { position: relative; }

/* Lightbulb sparks — anime.js bursts them radially; CSS only sets their look. */
.idea-spark { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; }
.idea-spark i {
  position: absolute;
  left: 0; top: 0;
  width: 5px; height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--accent) 65%, rgba(240,167,92,0) 100%);
  opacity: 0;
}
.idea-spark i:nth-child(even) { width: 4px; height: 4px; }

/* "Webbr" — typed out like code (anime.js) once "idea" has lit. Brand mono,
   JSX-style tag, with a caret that fades in, blinks, then bows out. */
.hw--webbr { position: relative; }
.webbr-code {
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  opacity: 1;   /* solid — the background never shows through the letters */
}
/* The word uses the header's own text colour, so it reads at exactly the same
   visibility as the rest of the headline; only the angle-brackets stay amber
   to keep the <Webbr/> "code tag" look. */
.webbr-bracket { color: var(--accent); }
.webbr-letter { display: inline-block; color: var(--text); }
.webbr-caret {
  display: inline-block;
  width: 0.09em;
  height: 0.92em;
  margin-left: 0.04em;
  vertical-align: -0.08em;
  background: var(--accent);
  opacity: 0;
}
/* Hidden until anime.js types them in; kept in the DOM so the word reserves its
   width and the sentence never reflows. */
.js .hero .webbr-code > * { opacity: 0; }
/* Keep the container present (its letters type in on their own). */
.js .hero .hw--webbr { opacity: 1; transform: none; }

/* ---- c) Metrics strip ------------------------------------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-soft);
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 34px var(--gutter);
  border-right: 1px solid var(--hairline-soft);
}
.metric:last-child { border-right: none; }
.metric__figure {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 28px;
  color: var(--text);
  line-height: 1.1;
}

/* ---- Section head (shared) -------------------------------- */
.services__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline-soft);
}
.services__head h2 {
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.025em;
}

/* ---- d) Services ------------------------------------------ */
.services { padding: 72px var(--gutter) 80px; display: flex; flex-direction: column; gap: 40px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--nm-raised);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease-out;
}
.service:hover { transform: translateY(-6px); box-shadow: -11px -11px 24px var(--nm-hi), 13px 15px 32px var(--nm-lo); }
.service:hover .service__title { color: var(--accent); }
.service__title { transition: color 160ms ease-out; }
.service__num {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.service__title {
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.service__body { font-size: 15px; line-height: 1.65; color: var(--body-dim); }

/* ---- Work ------------------------------------------------- */
.work { padding: 72px var(--gutter) 80px; display: flex; flex-direction: column; gap: 40px; border-top: 1px solid var(--hairline-soft); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--nm-raised);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease-out;
}
.work__item:hover { transform: translateY(-6px); box-shadow: -11px -11px 24px var(--nm-hi), 13px 15px 32px var(--nm-lo); }
.work__item:hover .service__title { color: var(--accent); }
.work__stat {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}
.work__stat span {
  font-family: "Space Mono", ui-monospace, monospace;
  color: var(--accent);
}

/* ---- Pricing ---------------------------------------------- */
.pricing { padding: 72px var(--gutter) 80px; display: flex; flex-direction: column; gap: 40px; border-top: 1px solid var(--hairline-soft); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--base);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--nm-raised);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease-out;
}
.plan:hover { transform: translateY(-6px); box-shadow: -11px -11px 24px var(--nm-hi), 13px 15px 32px var(--nm-lo); }
.plan--featured { box-shadow: var(--nm-raised), inset 0 0 0 1px var(--accent); }
.plan--featured:hover { box-shadow: -11px -11px 24px var(--nm-hi), 13px 15px 32px var(--nm-lo), inset 0 0 0 1px var(--accent-hover); }
.plan__price {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 28px;
  color: var(--text);
  line-height: 1.1;
}
.plan__per { font-size: 14px; color: var(--muted); }
.plan__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 4px 0 8px; }
.plan__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--body-dim);
  line-height: 1.5;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 1px;
  background: var(--accent);
}
.plan .btn { margin-top: auto; }

/* ---- e) Closing CTA --------------------------------------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px var(--gutter);
  border-top: 1px solid var(--hairline-soft);
}
.cta__copy { display: flex; flex-direction: column; gap: 10px; }
.cta__copy h2 {
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.03em;
}
.cta__copy p { font-size: 15px; color: var(--body-dim); }
.cta__btn { white-space: nowrap; }

/* ---- Booking / contact ------------------------------------ */
.book { padding: 72px var(--gutter) 80px; display: flex; flex-direction: column; gap: 40px; border-top: 1px solid var(--hairline-soft); }
.book__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.book__lead { font-size: 16px; line-height: 1.65; color: var(--text-secondary); max-width: 34ch; }
.book__points { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.book__points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--body-dim);
}
.book__points li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 1px; background: var(--accent);
}

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--text-secondary); }
.field input {
  font-family: "Sora", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--base);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--nm-inset);
  transition: box-shadow 160ms ease-out, border-color 120ms ease-out;
}
.field input::placeholder { color: var(--muted); }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.field.is-invalid input { border-color: var(--accent); }
.field__error { font-size: 13px; color: var(--accent); }
.field__error[hidden] { display: none; }
.form__success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.form__success[hidden] { display: none; }

/* ---- Footer ----------------------------------------------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--hairline-soft);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
}
.footer__line { font-size: 15px; color: var(--text-secondary); }
.footer__fine { font-size: 13px; color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer__legal a { font-size: 13px; color: var(--muted); }
.footer__legal a:hover { color: var(--text); }
.footer__dot { color: var(--hairline); font-size: 13px; }

/* Theme toggle — a small pill switch with sun/moon; the knob slides on flip. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--nm-bevel);
  transition: color 160ms ease-out, border-color 160ms ease-out;
}
.theme-toggle:hover { color: var(--text); border-color: var(--secondary-border-hover); }
.theme-toggle__track {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--base);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.theme-toggle__icon { position: absolute; transition: opacity 200ms ease-out, transform 300ms ease-out; }
/* Dark theme shows the moon (tap to go light); light shows the sun. */
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-toggle__sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

/* ---- Scroll-in motion (progressive enhancement) -----------
   Only hide when JS is active; without JS everything stays visible. anime.js
   (script.js) rises + fades each section in as it enters view, with a staggered
   cascade across row-siblings. CSS only holds the initial hidden state. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}


.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- d) What we do — lifecycle morph ---------------------- */
.lifecycle { padding: clamp(64px, 10vh, 104px) var(--gutter); }
.lifecycle__row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
}

/* Left: the morphing resin object */
.lc-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  isolation: isolate;             /* keep the glow's screen-ish light local */
}
/* Faint ambient pool so the object separates from the charcoal ground. */
.lc-stage::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, rgba(240,167,92,0.10), rgba(240,167,92,0) 62%);
  z-index: 0;
}
.lc-glow {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  overflow: visible;
  z-index: 1;
  opacity: 0;                     /* JS lifts it only during the morph */
  filter: blur(13px);
  will-change: opacity;
  pointer-events: none;
}
#lcGlowPath { fill: var(--accent); }
.lc-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 2;
  will-change: opacity, transform;
  transform-box: view-box;
}
/* First paint shows the design state until the JS controller takes over. */
.lc-icon[data-state="design"] { opacity: 1; }
.lc-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Right: cycling headline + steps */
.lc-copy { display: flex; flex-direction: column; gap: 20px; }
.lc-headline {
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.lc-slot {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  white-space: nowrap;
  will-change: width;
}
.lc-word {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  will-change: transform, opacity, filter;
}
.lc-word--out { position: absolute; left: 0; top: 0; }   /* leaves flow while it exits */

.lc-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 48ch;
}
.lc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin-top: 4px;
}
.lc-step {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
  transition: color 220ms ease-out;
}
.lc-step__num { font-size: 11px; color: var(--muted); opacity: 0.65; transition: color 220ms ease-out; }
.lc-step:hover { color: var(--text-secondary); }
.lc-step.is-active { color: var(--text); }
.lc-step.is-active .lc-step__num { color: var(--accent); opacity: 1; }

/* ---- Accent banner (pressed-glass "beat", from design handoff) ---- */
.banner-outer { position: relative; overflow: hidden; padding: 96px 0; }
.silk-layer { position: absolute; left: 0; right: 0; pointer-events: none; }
.silk-layer--panel { left: -6%; right: -6%; top: -14px; bottom: -14px; }
.glass-panel {
  position: relative;
  margin: 0 clamp(20px, 3.2vw, 52px);
  border-radius: 12px;
  overflow: hidden;
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  padding: 54px 32px;
  background: linear-gradient(oklch(0.20 0.010 46 / .34), oklch(0.155 0.008 45 / .46));
  -webkit-backdrop-filter: blur(17px) saturate(1.06);
          backdrop-filter: blur(17px) saturate(1.06);
  box-shadow:
    inset 0 0 0 1px oklch(0.52 0.018 48 / .40),
    inset 0 3px 9px -1px oklch(0.02 0 0 / .62),
    inset 0 -1px 0 oklch(0.72 0.02 50 / .26),
    0 1px 0 oklch(0.50 0.016 45 / .22);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel { background: linear-gradient(oklch(0.20 0.010 46 / .90), oklch(0.155 0.008 45 / .94)); }
}
.glass-wall { position: absolute; inset: 4px; border-radius: 8px; pointer-events: none; box-shadow: inset 0 0 0 1px oklch(0.66 0.02 50 / .16); }
.glass-scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 74% at 50% 50%, oklch(0.152 0.008 45 / .58), oklch(0.152 0.008 45 / .16) 62%, transparent); }
.glass-glow { position: absolute; left: 50%; transform: translateX(-50%); width: min(520px, 66%); height: 1px; background: linear-gradient(90deg, transparent, oklch(0.80 0.17 48 / .5), transparent); pointer-events: none; }
.glass-glow--top { top: 0; }
.glass-glow--bottom { bottom: 0; }
.banner-content { position: relative; max-width: 680px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.banner-head { margin: 0; font-family: "Sora", sans-serif; font-size: clamp(27px, 3.3vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; color: oklch(0.97 0.006 60); text-wrap: pretty; }
.banner-accent { color: oklch(0.82 0.15 48); }
.banner-sub { margin: 0; max-width: 600px; font-family: "Figtree", system-ui, sans-serif; font-size: clamp(14.5px, 1.2vw, 17px); font-weight: 400; line-height: 1.68; color: oklch(0.76 0.012 55); text-wrap: pretty; }
.em-lift { color: oklch(0.94 0.008 58); font-weight: 500; }
.em-accent { color: oklch(0.82 0.15 48); font-weight: 600; }
.em-lift2 { color: oklch(0.91 0.008 58); font-weight: 500; }

@keyframes silkA { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, 0, 0); } }
@keyframes silkB { from { transform: translate3d(2.4%, 0, 0); } to { transform: translate3d(-2.4%, 0, 0); } }

/* ---- Process timeline (scroll-captured build, from design handoff) ---- */
.process { font-family: "Figtree", system-ui, sans-serif; color: oklch(0.96 0.006 60); }
.pt-stage { height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pt-scaler { width: 1400px; height: 700px; flex: 0 0 auto; transform-origin: center center; }
.pt-panelwrap { width: 1400px; height: 700px; padding: 44px; display: flex; }
.pt-panel {
  flex: 1; border-radius: 20px;
  background: linear-gradient(oklch(0.198 0.008 45), oklch(0.168 0.007 45));
  box-shadow: inset 0 2px 0 oklch(0.44 0.015 45 / .4), inset 0 -3px 8px oklch(0.03 0 0 / .8), 0 34px 64px -34px oklch(0.02 0 0 / .95);
  padding: 32px 46px; display: flex; flex-direction: column; justify-content: space-between;
}
.pt-meta { display: flex; align-items: center; justify-content: space-between; }
.pt-counter { font-family: "Sora", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: oklch(0.68 0.012 50); }
.pt-counter-total { color: oklch(0.44 0.012 45); }
.pt-cue { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: oklch(0.56 0.012 50); }
.pt-groove { position: absolute; top: 222px; left: 0; right: 0; height: 12px; border-radius: 7px; background: oklch(0.150 0.007 45); box-shadow: inset 0 3px 7px oklch(0.02 0 0 / .92), inset 0 -1px 0 oklch(0.48 0.015 45 / .35); }
.pt-track { position: absolute; top: 227px; left: 7px; right: 7px; height: 2px; }
.pt-line { width: 0%; height: 100%; border-radius: 2px; background: linear-gradient(90deg, oklch(0.80 0.17 48 / .3), oklch(0.86 0.16 50)); box-shadow: 0 0 16px oklch(0.80 0.17 48 / .65); }
.pt-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.pt-col { position: relative; display: grid; grid-template-rows: 216px 24px 216px; justify-items: center; }
.pt-card { width: 100%; border-radius: 12px; overflow: hidden; opacity: 0; background: linear-gradient(oklch(0.325 0.013 55), oklch(0.255 0.010 50)); box-shadow: 0 26px 44px -22px oklch(0.01 0 0 / .95), inset 0 2px 0 oklch(0.72 0.02 60 / .55), inset 0 -3px 6px oklch(0.06 0 0 / .55); }
.pt-card--up { align-self: end; margin-bottom: 58px; }
.pt-card--down { align-self: start; margin-top: 58px; }
.pt-card--accent { background: linear-gradient(oklch(0.335 0.018 55), oklch(0.262 0.013 50)); box-shadow: 0 26px 44px -22px oklch(0.01 0 0 / .95), inset 0 2px 0 oklch(0.84 0.05 60 / .5), inset 0 -3px 6px oklch(0.06 0 0 / .55); }
.pt-strip { padding: 10px 14px; background: oklch(0.212 0.008 48); box-shadow: inset 0 -1px 0 oklch(0.48 0.015 50 / .3); display: flex; align-items: center; gap: 10px; }
.pt-strip--accent { background: linear-gradient(oklch(0.80 0.17 48), oklch(0.70 0.16 46)); box-shadow: inset 0 1px 0 oklch(0.98 0.06 75 / .6); }
.pt-tab { font-family: "Sora", sans-serif; font-size: 12px; font-weight: 700; color: oklch(0.88 0.014 55); padding: 3px 8px; border-radius: 5px; background: oklch(0.165 0.007 45); box-shadow: inset 0 2px 4px oklch(0.02 0 0 / .9), 0 1px 0 oklch(0.48 0.015 45 / .3); }
.pt-tab--accent { color: oklch(0.20 0.03 45); background: oklch(0.90 0.10 60 / .45); box-shadow: inset 0 1px 2px oklch(0.40 0.10 45 / .35); }
.pt-tab--live { color: oklch(0.20 0.03 45); background: oklch(0.80 0.17 48); box-shadow: inset 0 1px 0 oklch(0.98 0.06 75 / .6); }
.pt-qual { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: oklch(0.68 0.012 55); }
.pt-qual--accent { font-weight: 700; color: oklch(0.22 0.03 45); }
.pt-qual--live { color: oklch(0.80 0.14 45); }
.pt-body { padding: 17px 18px 19px; display: flex; flex-direction: column; gap: 9px; }
.pt-title { font-family: "Sora", sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.28; color: oklch(0.96 0.006 60); }
.pt-detail { margin: 0; font-size: 14px; line-height: 1.6; color: oklch(0.75 0.012 55); text-wrap: pretty; }
.pt-stem { position: absolute; width: 1px; height: 64px; background: oklch(0.40 0.014 45); }
.pt-stem--accent { background: oklch(0.62 0.14 46); }
.pt-notch { position: absolute; width: 18px; height: 6px; border-radius: 3px; opacity: 0; background: oklch(0.148 0.007 45); box-shadow: inset 0 2px 3px oklch(0.02 0 0 / .9), 0 1px 0 oklch(0.48 0.015 45 / .3); }
.pt-node { width: 24px; height: 24px; border-radius: 50%; opacity: 0; background: radial-gradient(circle at 34% 26%, oklch(0.52 0.018 45), oklch(0.17 0.008 45) 76%); box-shadow: 0 10px 20px -7px oklch(0.01 0 0 / .95), inset 0 2px 0 oklch(0.80 0.02 45 / .6), inset 0 -4px 6px oklch(0.02 0 0 / .85); }
.pt-node--accent { background: radial-gradient(circle at 34% 26%, oklch(0.88 0.17 50), oklch(0.56 0.15 43) 80%); box-shadow: 0 10px 22px -7px oklch(0.42 0.14 45 / .9), inset 0 2px 0 oklch(0.99 0.06 75 / .85), inset 0 -4px 6px oklch(0.28 0.08 40 / .55); }
.pt-node--halo { box-shadow: 0 10px 22px -7px oklch(0.42 0.14 45 / .9), 0 0 0 6px oklch(0.76 0.17 48 / .10), inset 0 2px 0 oklch(0.99 0.06 75 / .85), inset 0 -4px 6px oklch(0.28 0.08 40 / .55); }
.pt-nodepair { display: flex; align-items: center; gap: 14px; }

/* ---- Responsive (< 900px stacks) -------------------------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .frame { border-left: none; border-right: none; }

  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__toggle { display: flex; }

  .hero { padding: 72px var(--gutter) 64px; gap: 26px; }
  .hero__title { font-size: clamp(38px, 8vw, 68px); }

  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--hairline-soft); }

  .services__grid,
  .work__grid,
  .pricing__grid { grid-template-columns: 1fr; }

  /* Lifecycle: visual on top, copy below — keeps the object as the anchor. */
  .lifecycle__row { grid-template-columns: 1fr; gap: 34px; }
  .lc-stage { max-width: 300px; }
  .lc-copy { align-items: flex-start; }

  .cta { flex-direction: column; align-items: flex-start; }

  .book__inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  html { scroll-behavior: auto !important; } /* beat html{scroll-behavior:smooth} */
  .reveal { opacity: 1 !important; transform: none !important; }
  .frame { opacity: 1 !important; transform: none !important; }
  body { overflow: auto !important; }
  .btn:hover, .btn:active,
  .plan:hover, .service:hover, .work__item:hover { transform: none !important; }
  .hero .hw { opacity: 1 !important; transform: none !important; }
  .webbr-code > * { opacity: 1 !important; }
  /* Lifecycle: hold the design state, no cycling or secondary motion. */
  .lc-icon[data-state="design"] { opacity: 1 !important; }
  .lc-icon:not([data-state="design"]) { opacity: 0 !important; }
  .lc-glow { opacity: 0 !important; }
  .webbr-caret { display: none !important; }
  .idea-spark { display: none !important; }
}

/* Complete light artwork palette: component surfaces, typography and relief. */
:root[data-theme="light"] {
  --preview-handle-shadow: 0 8px 20px -8px rgba(110,85,55,.4), 0 0 0 1px var(--hairline), inset 0 1px 0 white;
  --preview-frame: linear-gradient(#fffdf9, #ded4c7);
  --preview-shadow: 0 40px 80px -40px rgba(100,75,50,.35), 0 0 0 1px var(--hairline), inset 0 1px 0 white;
  --preview-toolbar: linear-gradient(#f9f5ef, #eae2d7);
  --preview-surface: #fffaf3;
  --preview-input: #f3ece3;
  --preview-border: #d8cec0;
  --preview-dot: #b9aa98;
  --preview-text: #352e27;
  --preview-muted: #716354;
  --preview-ground: radial-gradient(ellipse, rgba(120,95,65,.2), transparent 72%);
  --preview-inset: inset 0 1px 3px rgba(120,95,65,.18);
  --preview-label: rgba(255,250,243,.94);
  --demo-background: linear-gradient(165deg, #fffaf0, #f5f6ee 62%, #e4f0ed);
  --demo-text: #183b40;
  --demo-secondary: #435e5e;
  --demo-muted: #60736d;
  --demo-accent: #896021;
  --demo-border: rgba(36,77,75,.18);
  --demo-surface: rgba(255,255,255,.65);
  --demo-grid: rgba(36,77,75,.05);
  --demo-live: #248355;
}
:root[data-theme="light"] .hero__title,
:root[data-theme="light"] .hero__sub { text-shadow: none; }
:root[data-theme="light"] .mobile-menu { background: rgba(251,247,241,.96); }
:root[data-theme="light"] .btn--primary { color: #2a2117; }
:root[data-theme="light"] .btn:hover { color: #2a2117; border-color: #d7b58d; }
:root[data-theme="light"] .glass-panel {
  background: linear-gradient(rgba(255,253,249,.94), rgba(245,235,220,.92));
  box-shadow: inset 0 0 0 1px var(--hairline), inset 0 2px 5px rgba(120,100,80,.12), 0 12px 30px -20px var(--nm-lo);
}
:root[data-theme="light"] .glass-wall { box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
:root[data-theme="light"] .glass-scrim { background: radial-gradient(ellipse at center, rgba(255,250,242,.65), transparent 75%); }
:root[data-theme="light"] :is(.banner-head, .em-lift, .em-lift2, .process, .pt-title) { color: var(--text); }
:root[data-theme="light"] :is(.banner-accent, .em-accent, .pt-qual--live) { color: var(--accent-active); }
:root[data-theme="light"] :is(.banner-sub, .pt-detail) { color: var(--text-secondary); }
:root[data-theme="light"] :is(.pt-counter, .pt-counter-total, .pt-cue, .pt-qual) { color: var(--muted); }
:root[data-theme="light"] .pt-panel {
  background: linear-gradient(#fdf9f3, #eee5d9);
  box-shadow: var(--nm-bevel), 0 28px 60px -34px var(--nm-lo);
}
:root[data-theme="light"] .pt-card {
  background: linear-gradient(#fffdf9, #f5eee4);
  box-shadow: 0 20px 36px -22px rgba(110,85,55,.4), var(--nm-bevel);
}
:root[data-theme="light"] .pt-card--accent { background: linear-gradient(#fff8e9, #f5e4c9); }
:root[data-theme="light"] .pt-strip { background: #e8dfd2; box-shadow: inset 0 -1px 0 var(--hairline); }
:root[data-theme="light"] .pt-strip--accent { background: linear-gradient(#f4d8ac, #e9bf82); }
:root[data-theme="light"] :is(.pt-tab, .pt-groove, .pt-notch) { background: #e1d6c7; box-shadow: var(--preview-inset), inset 0 -1px 0 white; }
:root[data-theme="light"] .pt-tab { color: var(--text); }
:root[data-theme="light"] :is(.pt-tab--accent, .pt-tab--live) { background: #f9dfb6; color: #563810; }
:root[data-theme="light"] .pt-qual--accent { color: #563810; }
:root[data-theme="light"] .pt-stem { background: #b6a48d; }
:root[data-theme="light"] .pt-stem--accent { background: var(--accent); }
:root[data-theme="light"] .pt-line { background: linear-gradient(90deg, #e9c998, #b97523); box-shadow: 0 0 12px rgba(185,117,35,.2); }
:root[data-theme="light"] .pt-node { background: radial-gradient(circle at 34% 26%, white, #c9b9a4 76%); box-shadow: var(--nm-bevel), 0 8px 16px -7px var(--nm-lo); }
:root[data-theme="light"] .pt-node--accent { background: radial-gradient(circle at 34% 26%, #ffe7bc, #ca8734 80%); }
:root[data-theme="light"] .pt-node--halo { box-shadow: var(--nm-bevel), 0 0 0 6px rgba(185,117,35,.12); }
:root[data-theme="light"] #heroDivider { background: var(--accent); box-shadow: 0 0 10px rgba(185,117,35,.2); }
/* Injected SVG assets inherit their light resin and shadow palette. */
:root[data-theme="light"] .lc-icon [id$="-body"] stop:last-child { stop-color: #b8662d; }
:root[data-theme="light"] .lc-icon [id$="-wall"] stop { stop-color: #bd7947; }
:root[data-theme="light"] .lc-icon feDropShadow { flood-color: #996740; flood-opacity: .2; }
