/* Marrinn v2 homepage. Tokens from Projects/Marrinn/brand/DESIGN-SYSTEM.md.
   The page alternates two grounds as you scroll: ink (dark) and a white
   tinted a hair toward the brand violet (light). Every section declares one
   with .t-dark or .t-light, and the light scope redefines the same tokens, so
   one rule serves both grounds. Colour carries meaning: each layer owns a hue,
   each section is tinted by its layer, and brand logos keep their own colours.
   Violet haze (.haze) is the one decorative wash, used on some sections only. */
/* Type (Saife, 2026-10-10, chosen on the type test): Space Grotesk for headings and the wordmark, Inter for
   text, JetBrains Mono for labels. Space Grotesk is self-hosted (SIL OFL, assets/v2/fonts/) so size-adjust can
   set it at 94%, the size it was approved at, without touching every font-size on the site. Heading weights
   moved up by 100 from the Newsreader set (500 -> 600; the italic accents 400 -> 500). It has no italic, so the
   few italic accent words are slanted by the browser, as approved. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; size-adjust: 94%;
  src: url(/assets/v2/fonts/space-grotesk-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: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; size-adjust: 94%;
  src: url(/assets/v2/fonts/space-grotesk-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; }
:root {
  --sc-canvas: #08090d;
  --sc-surface: #12141c;
  --sc-ink: #f4f3ef;
  --sc-ink-soft: #b3b6c1;
  --sc-accent: #b6abff;
  --sc-accent-ink: #1a1033;
  --sc-font-display: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --sc-font-text: "Inter", "Helvetica Neue", system-ui, sans-serif;
  --sc-font-mono: "JetBrains Mono", Menlo, monospace;
  --sc-shadow-color: 235 40% 2%;

  --violet: #7b58c5;
  --violet-lite: #b6abff;
  --amber: #e88122;
  --ok: #16a34a;
  --ok-lite: #4ade80;
  --rose: #ff6b9a;
  --ink-2: #a3a8b4;
  --ink-4: #8a8f9b;
  --fg-body: #d9dbe2;
  --panel: #10121a;
  --panel-2: #161923;
  --tint: #151822;
  --bubble: #20232f;
  --line: #1f222c;
  --line-2: #2c303c;
  --edge-v: #2e2748;
  --hl: #d9d2ff;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --bar-h: 64px;
  --r: 14px;
  /* layer hues, used as --c on the elements that belong to a layer */
  --z-rail: 50; --z-bar: 60; --z-skip: 70;
}

.t-dark { background-color: #08090d; color: var(--sc-ink); }
.t-light {
  --sc-ink: #1a1033;
  --sc-ink-soft: #574e6e;
  --ink-2: #4b4364;
  --ink-4: #635a7c;
  --fg-body: #3a3252;
  --panel: #ffffff;
  --panel-2: #f7f5fd;
  --tint: #f3f0fb;
  --bubble: #f1eef9;
  --line: #e8e4f2;
  --line-2: #d8d1ea;
  --edge-v: #ddd4f5;
  --amber: #a55510;
  --ok-lite: #15803d;
  --rose: #be185d;
  --hl: #6d4bc0;
  --sc-shadow-color: 255 40% 25%;
  background-color: #fcfbff; color: var(--sc-ink);
}
.t-light .hl { color: var(--hl); }
/* every headline's accent is the same lavender (Saife 2026-10-20: "do the color on the text the same way you did it here
   for all the pages"; he then chose lavender over each layer's own hue): #d9d2ff on dark, measured from his screenshot,
   violet on light, upright and at the headline's own weight. It outranks the per-layer and per-page accent colours
   (layer.css, pages/*), which stay on buttons, glows and diagrams. The .lh__h em is the layer heroes' older accent. */
:is(h1, h2) .hl, .lh__h em { color: #d9d2ff !important; font-weight: inherit; font-style: normal; }
.t-light :is(h1, h2) .hl, .t-light .lh__h em { color: #6d4bc0 !important; }

/* the violet haze: on a flow section it sits on the section, on a pinned act
   it sits on the sticky stage so it stays put while the act plays */
.haze.sc-section, .haze > [data-sc-stage] {
  background-image:
    radial-gradient(52% 46% at 82% 18%, rgb(123 88 197 / .20), transparent 70%),
    radial-gradient(40% 40% at 8% 92%, rgb(123 88 197 / .12), transparent 70%);
}
.haze--left > [data-sc-stage] {
  background-image:
    radial-gradient(48% 50% at 12% 30%, rgb(123 88 197 / .22), transparent 70%),
    radial-gradient(36% 36% at 92% 90%, rgb(123 88 197 / .10), transparent 70%);
}
.haze--rose > [data-sc-stage] {
  background-image:
    radial-gradient(50% 46% at 72% 50%, rgb(123 88 197 / .20), transparent 70%),
    radial-gradient(30% 30% at 76% 52%, rgb(255 107 154 / .10), transparent 70%);
}
.t-light.haze.sc-section, .t-light.haze > [data-sc-stage] {
  background-image:
    radial-gradient(50% 42% at 88% 8%, rgb(182 171 255 / .30), transparent 70%),
    radial-gradient(40% 40% at 4% 96%, rgb(182 171 255 / .18), transparent 70%);
}
.t-light.haze--rose > [data-sc-stage] {
  background-image:
    radial-gradient(44% 50% at 60% 40%, rgb(182 171 255 / .30), transparent 70%),
    radial-gradient(30% 34% at 90% 70%, rgb(255 107 154 / .10), transparent 70%);
}

body { font-size: 15.5px; line-height: 1.62; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: var(--z-skip); background: #fff; color: #08090d; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
em { font-style: italic; }

/* ---------------------------------------------------------------- type */
.h2 {
  font-family: var(--sc-font-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.06;
  font-size: clamp(34px, 4.6vw, 64px); margin: 0; text-wrap: balance;
}
.t-dark .h2, .t-dark .hero__h { line-height: 1.1; }
.hl { color: var(--hl); }
.hl--rose { color: #ff9cbc; }
.t-light .hl--rose { color: #be185d; }
.hl--green { color: #6ee7b7; }
.h3 { font-family: var(--sc-font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; font-size: clamp(24px, 2.4vw, 32px); margin: 0; }
.lede { color: var(--sc-ink-soft); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.62; max-width: 52ch; margin: 18px 0 0; text-wrap: pretty; }
.t-dark .lede { line-height: 1.7; }
.rose { color: var(--rose); font-weight: 600; }

/* the layer tag: the page's one kicker, and a way into each layer's page */
.ltag {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 5px 14px 5px 5px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--sc-ink); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: border-color .2s var(--ease);
}
.ltag img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.ltag span { white-space: nowrap; }
.ltag em { font-style: normal; font-weight: 600; color: var(--c); white-space: nowrap; }
.ltag em i { font-style: normal; display: inline-block; transition: transform .18s var(--ease); }
@media (hover: hover) { .ltag:hover { border-color: var(--c); } .ltag:hover em i { transform: translateX(3px); } }
.demo-tag {
  margin-left: auto; white-space: nowrap; flex: none; font: 600 11px/1 var(--sc-font-text); font-style: normal;
  color: #f0b27a; background: #2a1a0c; padding: 5px 9px; border-radius: 999px;
}
.t-light .demo-tag { color: #8a430b; background: #fbeee2; }
.demo-tag--plain { display: inline-block; margin: 0 0 18px; }

/* ---------------------------------------------------------------- buttons, links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  padding: 15px 30px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .16s var(--ease), background-color .2s var(--ease);
}
/* the primary button: a dark glass slab lit from inside, like the layer tiles (picked 2026-10-07 from
   /btn-test/, direction D). --bc is the light: brand violet by default and in the header; inside a
   layer (a layer page's main, or a layer hero on the homepage) it takes that layer's colour.
   Since 2026-10-09 it also carries the shiny edge (a plain-CSS port of a
   React "ShinyButton"): an arc of --bc runs round the border, a dot speckle and a sheen turn inside,
   and on hover the arc widens and a glow rises from the bottom edge. No markup needed. */
@property --shy-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --shy-o { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --shy-p { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --shy-s { syntax: "<color>"; initial-value: white; inherits: false; }
.btn--light { --bc: var(--violet); position: relative; isolation: isolate; overflow: hidden;
  padding: 16px 32px; border-radius: 12px;
  --shy-run: shy-turn linear infinite; --shy-dur: 3s; --shy-ease: .8s cubic-bezier(.25, 1, .5, 1);
  color: color-mix(in oklab, var(--bc) 12%, #fff);
  border: 1px solid transparent;
  background:
    radial-gradient(90% 120% at 50% 110%, color-mix(in oklab, var(--bc) 55%, transparent), transparent 70%) padding-box,
    linear-gradient(180deg, color-mix(in oklab, var(--bc) 14%, rgb(20 20 30 / .94)), color-mix(in oklab, var(--bc) 6%, rgb(10 10 16 / .97))) padding-box,
    conic-gradient(from calc(var(--shy-a) - var(--shy-o)), transparent,
      var(--bc) var(--shy-p), var(--shy-s) calc(var(--shy-p) * 2),
      var(--bc) calc(var(--shy-p) * 3), transparent calc(var(--shy-p) * 4)) border-box;
  box-shadow: inset 0 1px 0 color-mix(in oklab, color-mix(in oklab, var(--bc) 40%, #fff) 50%, transparent),
    inset 0 0 22px -6px color-mix(in oklab, var(--bc) 85%, transparent),
    0 0 0 1px color-mix(in oklab, var(--bc) 25%, transparent),
    0 10px 40px -10px color-mix(in oklab, var(--bc) 70%, transparent);
  transition: transform .16s var(--ease), box-shadow .25s var(--ease),
    --shy-o var(--shy-ease), --shy-p var(--shy-ease), --shy-s var(--shy-ease); }
.btn--light::before, .btn--light::after { content: ""; pointer-events: none; position: absolute; z-index: -1;
  inset-inline-start: 50%; inset-block-start: 50%; translate: -50% -50%; }
/* speckle: a dot grid lit only where the arc is */
.btn--light::before { width: calc(100% - 6px); height: calc(100% - 6px); border-radius: inherit;
  background: radial-gradient(circle at 2px 2px, #fff .5px, transparent 0) padding-box;
  background-size: 4px 4px; background-repeat: space;
  mask-image: conic-gradient(from calc(var(--shy-a) + 45deg), #000, transparent 10% 90%, #000); opacity: .4; }
/* sheen: a soft band of the light turning inside */
.btn--light::after { --shy-run: shy-spin linear infinite; width: 100%; aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--bc), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, #000); opacity: .6; }
.btn--light, .btn--light::before, .btn--light::after {
  animation: var(--shy-run) var(--shy-dur), var(--shy-run) calc(var(--shy-dur) / .4) reverse paused;
  animation-composition: add; }
.btn--light:is(:hover, :focus-visible) { --shy-p: 20%; --shy-o: 95deg; --shy-s: color-mix(in oklab, var(--bc) 50%, #fff); }
.btn--light:is(:hover, :focus-visible), .btn--light:is(:hover, :focus-visible)::before,
.btn--light:is(:hover, :focus-visible)::after { animation-play-state: running; }
@keyframes shy-turn { to { --shy-a: 360deg; } }
@keyframes shy-spin { to { rotate: 360deg; } }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { box-shadow: inset 0 1px 0 color-mix(in oklab, color-mix(in oklab, var(--bc) 30%, #fff) 65%, transparent),
    inset 0 -1ex 2rem 4px color-mix(in oklab, var(--bc) 70%, transparent),
    inset 0 0 28px -4px var(--bc), 0 0 0 1px color-mix(in oklab, var(--bc) 35%, transparent),
    0 14px 50px -10px color-mix(in oklab, var(--bc) 85%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--light, .btn--light::before, .btn--light::after { animation: none !important; }
}
.btn--light.btn--sm { padding: 10px 18px; }
.lh .btn--light, body[data-layer] main .btn--light { --bc: var(--lh); }
.bar .btn--light { --bc: var(--violet); }
/* a button that leads to another layer takes THAT layer's colour, not the page's (Saife, 2026-10-10: "whenever
   there is a connection to another layer have that explore the (layer name) in the same color as that actual
   layer"). Keyed on the link, so every future "Explore the ..." button follows without a page rule. */
body[data-layer] main .btn--light[href^="/architecture/kernel"]      { --bc: #3d7bff; }
body[data-layer] main .btn--light[href^="/architecture/context"]     { --bc: #39d6f0; }
body[data-layer] main .btn--light[href^="/architecture/data"]        { --bc: #2fe08a; }
body[data-layer] main .btn--light[href^="/architecture/squids"]      { --bc: #ff4fd8; }
body[data-layer] main .btn--light[href^="/architecture/workspace"]   { --bc: #ff9a3d; }
body[data-layer] main .btn--light[href^="/architecture/lens"]        { --bc: #b5f23a; }
body[data-layer] main .btn--light[href^="/architecture/ledger"]      { --bc: #ffd23d; }
body[data-layer] main .btn--light[href^="/architecture/admin"]       { --bc: #ff5a4e; }
body[data-layer] main .btn--light[href^="/architecture/core"]        { --bc: #9a6bff; }
.btn--sm { padding: 10px 18px; font-size: 14px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--violet-lite); outline-offset: 3px; }
.t-light a:focus-visible, .bar--light a:focus-visible, .bar--light button:focus-visible { outline-color: var(--violet); }
.ulink { color: var(--sc-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.ulink i { color: var(--amber); font-style: normal; display: inline-block; transition: transform .18s var(--ease); }
@media (hover: hover) { .ulink:hover i { transform: translateX(3px); } .ulink:hover { text-decoration-color: var(--violet-lite); } }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sc-font-text); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--sc-ink); background: var(--tint); white-space: nowrap; }
.chip--ok { border-color: #1f5f3a; color: #b9f5cf; background: #0f2a1b; }
.t-light .chip--ok { border-color: #b7e4c7; color: #14532d; background: #e9f8ee; }
.chip--warn { border-color: #f3d3b1; color: #8a430b; background: #fdf1e5; }

/* ---------------------------------------------------------------- mark */
.mark { display: inline-flex; align-items: center; font-family: var(--sc-font-display); font-weight: 600; letter-spacing: -.0175em; font-size: 26.6px; color: var(--sc-ink); text-decoration: none; }
.mark img { height: 28px; width: auto; margin-right: 10px; }
.mark span { color: var(--violet-lite); }
.mark span i { display: inline-block; width: 0; height: 0; vertical-align: baseline; position: relative; }
.mark span i::before { content: ""; position: absolute; left: .05em; bottom: .525em; width: .1425em; height: .1425em; border-radius: 50%; background: #e88122; }
/* the octopus glows from its edges, like the layer cards (Saife, 2026-10-10): a lit violet rim traced round
   it, light coming off it, the fill left as it is. The letters do not glow ("keep the squid glow but the text
   no"). Violet on every page, because violet stays on the wordmark (layer-glow.css). On a white header neon
   cannot glow, so it keeps a trace. */
.mark img { filter: drop-shadow(0 0 .6px #cbbcff) drop-shadow(0 0 .6px #a98bff) drop-shadow(0 0 6px rgb(150 105 255 / .6)) drop-shadow(0 0 14px rgb(123 88 197 / .35)); }
.bar--light .mark img, .t-light .mark img { filter: drop-shadow(0 0 5px rgb(123 88 197 / .3)); }

/* ---------------------------------------------------------------- header: follows the ground under it */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-bar); height: var(--bar-h);
  display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 3.4vw, 44px);
  background: rgb(8 9 13 / .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.bar.is-scrolled { border-bottom-color: #1f222c; }
.bar__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; }
.bar__link, .dd__btn { color: #a3a8b4; text-decoration: none; background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 14px; transition: color .16s; }
.bar__link:hover, .dd__btn:hover, .dd__btn[aria-expanded="true"] { color: #f4f3ef; }
.bar--light { background: rgb(252 251 255 / .86); }
.bar--light.is-scrolled { border-bottom-color: #e8e4f2; }
.bar--light .mark { color: #1a1033; }
.bar--light .mark span { color: var(--violet); }
/* the wordmark set inside a page headline (h1/h2), 2026-10-09: same rules as .mark (DESIGN-SYSTEM.md
   "The mark"), no octopus, at the headline's size. The text stays a real "Marrinn" for search, screen
   readers and copy: the i is clipped above its stem (<b>) and <i> draws the amber tittle.
   Markup: <span class="wmk">Marr<span><i></i><b>i</b>nn</span></span> */
.wmk { font-weight: 600; letter-spacing: -0.01em; color: var(--sc-ink); white-space: nowrap; }
.wmk > span { color: var(--violet-lite); }
.t-light .wmk > span { color: var(--violet); }
.wmk i { display: inline-block; width: 0; height: 0; vertical-align: baseline; position: relative; font-style: normal; }
.wmk i::before { content: ""; position: absolute; left: .05em; bottom: .525em; width: .1425em; height: .1425em; border-radius: 50%; background: #e88122; }
.wmk b { font-weight: inherit; display: inline-block; line-height: 1; clip-path: inset(.325em -1em 0 -1em); }
.bar--light .bar__link, .bar--light .dd__btn { color: #4b4364; }
.bar--light .bar__link:hover, .bar--light .dd__btn:hover, .bar--light .dd__btn[aria-expanded="true"] { color: #1a1033; }
.dd { position: relative; }
.dd__btn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.dd__menu {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 330px; padding: 8px; border-radius: 14px;
  background: #10121a; border: 1px solid #2e2748;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.bar--light .dd__menu { background: #fff; border-color: #e0d9f3; box-shadow: 0 8px 8px -6px rgb(26 16 51 / .12); }
.dd__btn[aria-expanded="true"] + .dd__menu, .dd:focus-within .dd__menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) { .dd:hover .dd__menu { opacity: 1; visibility: visible; transform: none; } }
.dd__menu a { display: block; padding: 10px 12px; border-radius: 10px; color: #f4f3ef; text-decoration: none; }
.dd__menu a:hover { background: #171a24; }
.bar--light .dd__menu a { color: #1a1033; }
.bar--light .dd__menu a:hover { background: #f3f0fb; }
.dd__menu b { display: block; font-weight: 600; font-size: 14px; }
.dd__menu span { display: block; font-size: 13px; color: #8a8f9b; }
.bar--light .dd__menu span { color: #635a7c; }
@media (max-width: 860px) { .bar__nav { display: none; } .bar .btn { margin-left: auto; } }

/* ---------------------------------------------------------------- layer rail */
.rail { position: fixed; left: clamp(10px, 1.4vw, 22px); top: 50%; transform: translateY(-50%); z-index: var(--z-rail); opacity: 0; transition: opacity .4s; }
.rail.is-on { opacity: 1; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.rail a {
  position: relative; display: block; width: 22px; height: 22px; border-radius: 6px;
  background: var(--t) center/165% no-repeat, #05060a; border: 1px solid #1f222c;
  opacity: .32; filter: saturate(.4); transition: opacity .25s, filter .25s, transform .25s var(--ease);
}
.rail--light a { border-color: #d8d1ea; opacity: .45; }
.rail a.on { opacity: 1; filter: none; transform: scale(1.18); }
.rail a span {
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  font: 600 12px/1 var(--sc-font-text); color: #f4f3ef;
  background: #10121a; border: 1px solid #2c303c; padding: 7px 9px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .16s;
}
.rail a:hover span, .rail a:focus-visible span { opacity: 1; }
@media (max-width: 1100px) { .rail { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
.hero__plane { position: absolute; inset: 0; pointer-events: none; }
.hero__plate { z-index: 0; } .hero__haze { z-index: 1; } .hero__subject { z-index: 2; }
.hero__plate { inset: -6% -3%; will-change: transform; }
.hero__plate img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%; }
.hero__haze {
  background:
    radial-gradient(38% 30% at 68% 62%, rgb(123 88 197 / .30), transparent 70%),
    radial-gradient(30% 24% at 72% 70%, rgb(61 123 255 / .16), transparent 70%);
  mix-blend-mode: screen; will-change: transform, opacity;
}
.hero__subject { will-change: transform; }
.hero__dust { width: 100%; height: 100%; z-index: 6; }
.hero__floor { position: absolute; inset: auto 0 0 0; height: 28vh; background: linear-gradient(180deg, transparent, #08090d); z-index: 3; pointer-events: none; }
.hero__copy { position: absolute; z-index: 5; left: clamp(20px, 7vw, 120px); bottom: clamp(56px, 14vh, 150px); max-width: min(760px, 47vw); }
.hero__h { font-family: var(--sc-font-display); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-size: clamp(38px, 4.3vw, 64px); margin: 0; text-wrap: balance; } /* 2026-10-15: 4.3vw/64px for the longer SAP-register line (was 5.6vw/84px). */ /* 2026-10-13: was 7vw/96px for "all-in-one AI platform"; the ERP headline is twice as long */
.hero__h em { font-weight: 500; color: var(--sc-ink); } /* 2026-10-15: white, the same ink as the wordmark's "Marr" (Saife); was #d9d2ff, briefly the octopus #7537c5 */
/* 2026-10-15: "Aı" in the hero wears the wordmark's "ınn" violet; the ı is dotless and takes the amber tittle (.tit), as in the wordmark */
.hero__h .ai { color: var(--violet-lite); }
.hero__sub { margin: 24px 0 0; max-width: 44ch; color: #c3c6d0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.hero__cta { display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero__copy > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero__copy > :nth-child(2) { animation-delay: .12s; } .hero__copy > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- the tile stack (shared) */
.stack { position: absolute; perspective: 1700px; }
.stack__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 58deg)) rotateZ(var(--rz, -38deg)); }
.stack__tilt img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border-radius: 6%;
  backface-visibility: hidden; filter: drop-shadow(0 8px 8px rgb(0 0 0 / .4));
  transform: translateZ(calc(var(--i) * var(--gap, 22px))) translate(var(--tx, 0px), var(--ty, 0px));
  opacity: var(--o, 1); transition: opacity .35s var(--ease), filter .35s var(--ease);
}
.ring { position: absolute; width: clamp(130px, 11.5vw, 190px); aspect-ratio: 1; left: 72%; top: 46%; transform: translate(-50%, -50%); perspective: 1600px; }
.ring__spin { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-12deg); }
.ring__t { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.ring__t img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; filter: drop-shadow(0 8px 8px rgb(0 0 0 / .45)); }
/* the layer's name in neon tube under its tile; hidden from behind so it never reads mirrored */
.ring__t .ring__n { inset: auto; left: 50%; top: 88%; width: auto; height: 23%; transform: translate(-50%, 0); filter: none; backface-visibility: hidden; opacity: var(--nk, 1); pointer-events: none; }
@media (max-width: 760px) {
  .ring { width: 26vw; left: 50%; top: 31%; }
  .hero__copy { left: 20px; right: 20px; bottom: 48px; max-width: none; }
  .hero__h { font-size: clamp(32px, 8.6vw, 42px); }
  .hero__haze { background: radial-gradient(60% 30% at 50% 32%, rgb(123 88 197 / .32), transparent 70%); }
}

/* ---------------------------------------------------------------- 2 · OS */
.os__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: calc(var(--bar-h) + 24px) clamp(20px, 7vw, 120px) 32px; }
.os__lede { color: var(--sc-ink-soft); max-width: 46ch; margin: 16px 0 30px; }
.os__layers { list-style: none; margin: 0; padding: 0; position: relative; min-height: 196px; }
.os__layers li { position: absolute; inset: 0 auto auto 0; display: flex; gap: 18px; max-width: 520px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s; }
.os__layers li.on { opacity: 1; visibility: visible; transform: none; }
.os__layers .n { font: 500 14px/1 var(--sc-font-mono); color: var(--c); padding-top: 14px; }
.os__layers h3 { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.025em; margin: 0; line-height: 1.1; }
.os__layers h3::after { content: ""; display: block; width: 48px; height: 3px; border-radius: 2px; background: var(--c); margin-top: 14px; }
.os__layers p { color: var(--sc-ink-soft); margin: 12px 0 0; max-width: 42ch; line-height: 1.7; }
.xlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--c); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--c) 40%, transparent); padding-bottom: 2px; }
.xlink i { font-style: normal; display: inline-block; transition: transform .18s var(--ease); }
@media (hover: hover) { .xlink:hover i { transform: translateX(4px); } .xlink:hover { border-bottom-color: var(--c); } }
.os__cue { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: opacity .3s; }
.os__cue i { font-style: normal; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--violet-lite); animation: nudge 2s var(--ease) infinite; }
.os__cue.gone { opacity: 0; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.os__tower { position: relative; height: min(76vh, 720px); }
.stack--os { inset: 28% 20% 14% 20%; }
.os__readout { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 13px; color: var(--ink-4); margin: 0; }
.os__readout span { color: var(--sc-ink); font-family: var(--sc-font-mono); }
@media (max-width: 860px) {
  .os__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; gap: 0; padding: calc(var(--bar-h) + 16px) 20px 20px; }
  .os__tower { order: -1; height: 34vh; }
  .stack--os { inset: 10% 24% 18% 24%; }
  .os__lede, .os__cue { display: none; }
  .os__copy .h2 { font-size: 30px; }
  .os__layers { margin-top: 16px; min-height: 230px; }
  .os__layers h3 { font-size: 26px; }
  .os__layers p { font-size: 14.5px; }
}

/* ---------------------------------------------------------------- windows (shared chrome for every demo surface) */
.win { border-radius: 16px; background: var(--panel); border: 1px solid var(--edge-v); overflow: hidden; }
.t-dark .win { background: linear-gradient(155deg, #12141c, #0a0b10); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
.t-light .win { border-color: #e2dcf2; box-shadow: 0 1px 2px rgb(26 16 51 / .05), 0 6px 8px -4px rgb(26 16 51 / .06); }
.win__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--sc-font-mono); color: var(--ink-4); }
.t-light .win__bar { background: #faf9fd; }
.win__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d38; }
.t-light .win__bar > i:nth-child(1) { background: #ff5f57; } .t-light .win__bar > i:nth-child(2) { background: #febc2e; } .t-light .win__bar > i:nth-child(3) { background: #28c840; }
.win__bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- 3 · workspace (light) */
.ws { padding-block: clamp(96px, 12vw, 180px) clamp(72px, 9vw, 140px); }
.ws__head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 60px); }
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 520px; font-size: 14px; }
.app__side { border-right: 1px solid var(--line); padding: 18px 14px; background: var(--panel-2); }
.app__org { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0 0 14px; }
.app__logo { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--violet); color: #fff; font: 600 11px/1 var(--sc-font-mono); }
.app__search { margin: 0 0 18px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-4); font-size: 13px; background: var(--panel); }
.app__h { font-size: 12px; font-weight: 600; color: var(--ink-4); margin: 16px 0 6px; }
.app__side ul { list-style: none; margin: 0; padding: 0; }
.app__side li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--ink-2); }
.app__side li.on { background: #ece6fb; color: #1a1033; font-weight: 600; }
.app__side li b { margin-left: auto; font: 600 11px/1 var(--sc-font-mono); background: var(--violet); color: #fff; padding: 3px 6px; border-radius: 999px; }
.app__mods li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; }
.app__agents img, .ledger img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
i.live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-left: auto; animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.app__main { padding: 22px; }
.app__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.app__hi { font-family: var(--sc-font-display); font-size: 26px; font-weight: 600; margin: 0; letter-spacing: -.025em; }
.app__date { margin: 2px 0 0; color: var(--ink-4); font-size: 13px; }
.app__ask { margin: 0; padding: 9px 14px; border: 1px solid var(--edge-v); border-radius: 10px; color: var(--sc-ink); font-size: 13px; background: var(--tint); }
.app__ask span { color: var(--violet); font-weight: 600; }
.app__grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--panel); }
.tile--wide { grid-column: 1; }
.tile--tall { grid-row: span 2; grid-column: 2; grid-row-start: 1; }
.tile__h { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-4); display: flex; gap: 8px; align-items: center; }
.tile__h b { color: #fff; background: #c2410c; font: 600 11px/1 var(--sc-font-mono); padding: 3px 6px; border-radius: 999px; }
.tile__big { margin: 10px 0 0; font-weight: 600; }
.tile__note { margin: 4px 0 0; font-size: 12px; color: var(--ink-4); }
.apr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.apr b { display: block; font-weight: 600; }
.apr span { display: block; color: var(--ink-4); font-size: 12.5px; }
.meter { height: 8px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--v)); background: linear-gradient(90deg, var(--violet), #b6abff); border-radius: inherit; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 56px; margin-top: 12px; }
.bars i { flex: 1; height: 100%; transform-origin: 50% 100%; transform: scaleY(var(--v)); background: var(--c, #b6abff); border-radius: 4px 4px 0 0; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.ledger li:first-child { border-top: 0; }
.ledger b { color: var(--sc-ink); font-weight: 600; }
.ledger em { margin-left: auto; font-size: 11.5px; font-weight: 600; font-style: normal; color: #a21caf; background: #fbe8fb; padding: 3px 7px; border-radius: 999px; }
.ledger em.h { color: #0369a1; background: #e3f2fc; }
.av { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 10px/1 var(--sc-font-text); color: #0b0c10; }
.av--f { background: #9fd8ff; } .av--n { background: #f8c9a0; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .app__top { flex-direction: column; }
  .app__grid { grid-template-columns: 1fr; }
  .tile--tall { grid-column: 1; grid-row: auto; }
}

/* ---------------------------------------------------------------- 4 · back office room (dark) */
.bo__stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding: calc(var(--bar-h) + 20px) clamp(20px, 7vw, 120px) 28px; }
.map { position: relative; width: 320px; height: 240px; margin-top: 34px; }
.map__lines { position: absolute; inset: 0; width: 320px; height: 220px; overflow: visible; }
.map__lines path { fill: none; stroke: #5b4a8f; stroke-width: 1.2; stroke-dasharray: 4 6; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.map__room { position: absolute; left: 160px; top: 200px; transform: translateX(-50%); font: 500 11px/1 var(--sc-font-mono); color: var(--ink-4); white-space: nowrap; }
.node { position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); transform: translate(-50%, -50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .3s var(--ease); }
.node img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid color-mix(in oklab, var(--c) 45%, #1b1d27); transition: border-color .3s, transform .3s; }
.node--agent img { border-radius: 12px; }
.node figcaption { font-size: 11.5px; line-height: 1.25; text-align: center; font-weight: 600; white-space: nowrap; color: var(--c); }
.node figcaption span { color: var(--ink-4); font-weight: 400; }
.node.speak { transform: translate(-50%, -50%) scale(1.1); }
.node.speak img { border-color: var(--c); }
.bo__win { max-height: calc(100svh - var(--bar-h) - 60px); display: flex; flex-direction: column; }
.thread { list-style: none; margin: 0; padding: 18px 20px 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; overflow: hidden; flex: 1; min-height: 460px; }
.msg { display: none; gap: 12px; align-items: flex-start; }
.msg.on { display: flex; animation: pop .45s var(--ease) both; }
.msg > img { width: 34px; height: 34px; flex: none; object-fit: cover; border-radius: 50%; }
.msg--a > img { border-radius: 9px; }
.msg > div { min-width: 0; }
.msg__n { margin: 0 0 4px; font-weight: 600; font-size: 13.5px; color: var(--c); }
.msg__n span { color: var(--ink-4); font-size: 12px; font-weight: 500; margin-left: 6px; }
.msg p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--fg-body); }
.msg--h .bub { display: inline-block; background: #172335; border: 1px solid #22344d; padding: 10px 14px; border-radius: 4px 14px 14px 14px; color: #eef4ff; }
.at { color: var(--violet-lite); font-weight: 600; }
.card-apr { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--edge-v); background: #171428; border-radius: 10px; padding: 10px 12px; max-width: 420px; }
.card-apr b { display: block; font-size: 13.5px; }
.card-apr span { display: block; font-size: 12px; color: var(--ink-4); }
.card-apr .chip { display: inline-flex; color: #b9f5cf; }
#apr-chip.done::before { content: "✓"; }
@media (max-width: 960px) {
  .bo__stage { grid-template-columns: 1fr; align-content: start; gap: 14px; padding: calc(var(--bar-h) + 14px) 16px 16px; }
  .bo__copy .lede, .map { display: none; }
  .bo__copy .h2 { font-size: 30px; }
  .bo__copy .ltag { margin-bottom: 12px; }
  .bo__win { max-height: calc(100svh - var(--bar-h) - 170px); }
  .thread { min-height: 0; padding: 14px; gap: 12px; }
  .msg p { font-size: 13.5px; }
}

/* ---------------------------------------------------------------- 5 · integrations (light, pan) */
.int__stage { display: flex; align-items: center; overflow: hidden; }
.int__rail { display: flex; align-items: stretch; gap: 18px; padding: calc(var(--bar-h) + 20px) clamp(20px, 7vw, 120px) 24px; will-change: transform; }
.int__lead { flex: none; width: min(520px, 84vw); padding-right: 28px; align-self: center; }
.int__big { font-size: clamp(52px, 6.6vw, 96px); letter-spacing: -0.035em; line-height: .98; }
.cat { flex: none; width: clamp(236px, 22vw, 300px); border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--panel); align-self: center; box-shadow: 0 1px 2px rgb(26 16 51 / .04); }
.cat h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--sc-ink); }
.cat h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.cat ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 12px; }
.cat li { position: relative; display: flex; align-items: center; padding-left: 42px; min-height: 32px; font-size: 13.5px; color: var(--fg-body); min-width: 0; }
.cat li::after { content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.cat li::before { content: ""; position: absolute; z-index: 1; left: 7px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--i) center/contain no-repeat; }
.int__end { flex: none; width: 320px; align-self: center; padding-left: 20px; }
.int__end .lede { margin-top: 12px; }
.int__end .ulink { display: inline-block; margin-top: 18px; }
@media (max-width: 760px) { .int__lead { width: 86vw; } .int__big { font-size: 56px; } }

/* ---------------------------------------------------------------- 7 · modules + products (light) */
/* the integrations above are light too (the App Factory build act between them was removed
   2026-10-05), so the haze sits lower here and never meets the join as an edge */
#modules.haze { background-image:
  radial-gradient(48% 40% at 86% 34%, rgb(182 171 255 / .28), transparent 70%),
  radial-gradient(40% 40% at 4% 96%, rgb(182 171 255 / .18), transparent 70%); }
.mods { padding-block: clamp(96px, 11vw, 170px) clamp(80px, 9vw, 140px); }
.mods__head { max-width: 780px; }
.mods__n { color: var(--hl); font-variant-numeric: tabular-nums; }
.fam { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-2); }
.fam__col { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.fam__col h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.fam__col h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.fam__col h3 span { font: 600 11.5px/1 var(--sc-font-text); color: var(--c); background: color-mix(in oklab, var(--c) 10%, #fff); padding: 3px 7px; border-radius: 999px; }
.fam__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fam__col li { color: var(--ink-2); font-size: 14.5px; }
.prods { margin-top: clamp(80px, 9vw, 140px); }
.mods > .sc-wrap > .prods:first-child { margin-top: 0; } /* the modules above it moved to the Core page */
.prods__head { margin-bottom: 28px; }
.prods__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.prod { grid-column: span 3; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--sc-ink); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
@media (hover: hover) and (pointer: fine) { .prod:hover { transform: translateY(-2px); border-color: var(--c); } }
.prod > img { width: 64px; height: 64px; flex: none; border-radius: 14px; object-fit: cover; }
.prod h3 { margin: 0; font-family: var(--sc-font-display); font-weight: 600; font-size: 22px; letter-spacing: -.025em; color: var(--sc-ink); }
.prod h3::after { content: " →"; color: var(--c); font-family: var(--sc-font-text); font-size: 17px; }
.prod p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.prod--big { grid-column: span 6; flex-direction: row; align-items: center; padding: 24px; gap: 22px; }
.prod--big > img { width: 104px; height: 104px; border-radius: 18px; }
.prod--big h3 { font-size: 28px; }
@media (max-width: 1100px) { .prod { grid-column: span 6; } .prod--big { grid-column: span 12; } }
@media (max-width: 640px) { .prod { grid-column: span 12; flex-direction: row; align-items: center; } .prod--big > img, .prod > img { width: 64px; height: 64px; } .prod--big h3 { font-size: 22px; } }

/* ---------------------------------------------------------------- 8 · front office hub (dark) */
.fo__stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding: calc(var(--bar-h) + 20px) clamp(20px, 7vw, 120px) 28px; }
.fo__same { margin: 16px 0 0; max-width: 50ch; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.fo__voice { margin: 22px 0 0; max-width: 48ch; padding: 16px 18px; border-radius: 12px; border: 1px solid #1f5f3a; background: #0d1f16; color: #b9d8c4; font-size: 15px; line-height: 1.6; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.fo__voice.on { opacity: 1; transform: none; }
.fo__voice b { color: #e7fbef; }
.hub { position: relative; width: min(100%, 72vh, 620px); aspect-ratio: 1; justify-self: center; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub__lines path { fill: none; stroke: var(--c); stroke-opacity: .75; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.hub__core { position: absolute; left: 50%; top: 50%; width: 30%; transform: translate(-50%, -50%); text-align: center; }
.hub__core img { width: 100%; aspect-ratio: 1; }
.hub__core p { margin: -6px 0 0; font-size: 13px; color: var(--ink-2); }
.hub__core p b { display: block; font-family: var(--sc-font-display); font-weight: 600; font-size: 22px; color: #a7f3d0; letter-spacing: -.015em; }
.ch { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) scale(.9); display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #12141c; border: 1px solid color-mix(in oklab, var(--c) 45%, #12141c); font-size: 13.5px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.ch.on { opacity: 1; transform: translate(-50%, -50%); }
.ch i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.ch i::before { content: ""; position: absolute; inset: 6px; background: var(--i) center/contain no-repeat; }
@media (max-width: 960px) {
  .fo__stage { grid-template-columns: 1fr; align-content: start; gap: 8px; padding: calc(var(--bar-h) + 14px) 16px 16px; }
  .fo__copy .h2 { font-size: 30px; }
  .fo__copy .ltag { margin-bottom: 12px; }
  .fo__copy .lede { font-size: 15px; margin-top: 10px; }
  .fo__voice, .fo__same { display: none; }
  .hub { width: min(92vw, 44vh); }
  .ch { left: clamp(50px, var(--x), calc(100% - 50px)); font-size: 11.5px; padding: 4px 9px 4px 4px; gap: 6px; }
  .ch i { width: 22px; height: 22px; }
  .ch i::before { inset: 5px; }
}

/* ---------------------------------------------------------------- 9 · quiet (light) */
.quiet { position: relative; padding-block: clamp(96px, 11vw, 170px) clamp(56px, 6vw, 96px); }
.quiet__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-inline: clamp(20px, 7vw, 120px); }
.quiet__fig { margin: 0; height: min(64vh, 600px); border-radius: 16px; overflow: hidden; }
.quiet__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
@media (max-width: 760px) {
  .quiet__grid { grid-template-columns: 1fr; padding-inline: 16px; }
  .quiet__fig { height: 48vh; }
  .quiet__fig img { object-position: 78% 40%; }
}

/* ---------------------------------------------------------------- 10 · the customer journey (light, peak) */
.cj__stage { --ph: min(620px, calc(100svh - var(--bar-h) - 64px)); --pw: calc(var(--ph) * .49);
  display: grid; grid-template-columns: minmax(260px, 340px) var(--pw) minmax(80px, 1fr) var(--pw); align-items: center; gap: clamp(18px, 2.4vw, 36px);
  padding: calc(var(--bar-h) + 12px) clamp(20px, 5vw, 90px) 20px; }
.cj__h { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 20px; text-wrap: balance; }
.cj__steps { list-style: none; margin: 0 0 20px; padding: 0; counter-reset: s; display: grid; gap: 7px; }
.cj__steps li { counter-increment: s; display: flex; gap: 10px; font-size: 13.5px; color: #8e86a6; transition: color .3s; }
.cj__steps li::before { content: counter(s, decimal-leading-zero); font: 500 11px/1.7 var(--sc-font-mono); color: #c3bcd8; transition: color .3s; }
.cj__steps li.done { color: var(--ink-2); }
.cj__steps li.on { color: var(--sc-ink); font-weight: 600; }
.cj__steps li.on::before, .cj__steps li.done::before { color: var(--rose); }
.cal { border: 1px solid #f5c6d8; border-radius: 14px; padding: 14px 16px; background: #fff; }
.cal__h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: #9d174d; }
.cal__h img { width: 22px; height: 22px; border-radius: 6px; }
.cal dl { margin: 0; display: grid; gap: 6px; }
.cal dl div { display: grid; grid-template-columns: 104px 1fr; gap: 8px; font-size: 12.5px; padding: 3px 6px; margin: 0 -6px; border-radius: 6px; transition: background .3s; }
.cal dt { color: var(--ink-4); }
.cal dd { margin: 0; color: var(--fg-body); }
.cal dl div.hit { background: #fdeaf1; }
.cal__new { display: none; color: #15803d; font-weight: 600; }
.cal dl div.set .cal__old { display: none; }
.cal dl div.set .cal__new { display: inline; }

.phone { position: relative; width: var(--pw); height: var(--ph); border-radius: calc(var(--pw) * .14); background: #0b0d12; border: 1px solid #2c303c;
  box-shadow: 0 8px 8px -6px rgb(26 16 51 / .25), inset 0 0 0 6px #050608, inset 0 1px 0 7px rgb(255 255 255 / .04); overflow: hidden; display: flex; flex-direction: column; }
/* WhatsApp in its own light theme, on the light ground */
.phone--wa { grid-column: 2; background: #efeae2; border-color: #1c1c1e; box-shadow: 0 8px 8px -6px rgb(26 16 51 / .25), inset 0 0 0 6px #1c1c1e; }
.phone--call { grid-column: 4; color: #f4f3ef; }
.phone__top { display: flex; align-items: center; gap: 10px; padding: calc(var(--pw) * .09) 16px 12px; background: #008069; color: #fff; }
.phone__top b { display: block; font-size: 13.5px; }
.phone__top div span { display: block; font-size: 11.5px; color: #d4efe9; }
.phone__av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #d9fdd3; color: #075e54; font: 600 11px/1 var(--sc-font-text); }
.wa { list-style: none; margin: 0; padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; overflow: hidden; background: #efeae2; }
.wa__m { display: none; max-width: 84%; padding: 7px 9px 5px; border-radius: 9px; font-size: 13px; line-height: 1.42; color: #111b21; box-shadow: 0 1px .5px rgb(11 20 26 / .13); transition: opacity .3s var(--ease), transform .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.wa__m p { margin: 0; }
.wa__m time { display: block; text-align: right; font-size: 10px; color: #667781; margin-top: 2px; }
.wa__m--in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa__m--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wa__m--ok { background: #c7f5bf; outline: 1px solid #8fd88a; }
.wa__m.on { display: block; animation: pop .4s var(--ease) both; }
.wa__m.gone, .wa__typing.gone, .wa__gap.gone { display: none; }
.wa__typing { align-self: flex-end; display: none; gap: 4px; padding: 10px 12px; background: #d9fdd3; border-radius: 9px; }
.wa__typing.on { display: flex; }
.wa__typing i { width: 6px; height: 6px; border-radius: 50%; background: #667781; animation: pulse 1s infinite; }
.wa__typing i:nth-child(2) { animation-delay: .15s; } .wa__typing i:nth-child(3) { animation-delay: .3s; }
.wa__gap { display: none; align-self: center; font: 600 11px/1 var(--sc-font-text); color: #8a430b; background: #fff3c4; padding: 6px 10px; border-radius: 8px; opacity: 0; transition: opacity .3s; box-shadow: 0 1px .5px rgb(11 20 26 / .13); }
.wa__gap.on { display: block; opacity: 1; animation: pop .4s var(--ease) both; }
.wa.fold .wa__m.on, .wa.fold .wa__gap.on { animation: none; transform: translateY(-6px) scale(.94); opacity: .2; transition: opacity .35s, transform .45s var(--ease); }
.phone__in { margin: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; color: #667781; font-size: 12.5px; margin-bottom: calc(var(--pw) * .06); }

.trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 29; pointer-events: none; overflow: visible; }
.trail path { fill: none; stroke: #10b981; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.packet { position: absolute; left: 0; top: 0; z-index: 30; width: 290px; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid #9ee6c4; box-shadow: 0 8px 8px -4px rgb(4 120 87 / .18);
  opacity: 0; transform-origin: 50% 50%; will-change: transform, opacity; pointer-events: none; }
.packet__h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: #047857; }
.packet__h img { width: 20px; height: 20px; border-radius: 5px; }
.packet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.packet li { font-size: 12.5px; line-height: 1.4; color: #3a3252; padding-left: 12px; position: relative; }
.packet li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: #10b981; }

.phone--call { align-items: center; justify-content: center; background: linear-gradient(180deg, #1a1433, #0a0b10); }
.call__idle, .call__ring, .call__cap, .call__bar { transition: opacity .35s var(--ease); }
.call__idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.call__idle p { margin: 0; font-family: var(--sc-font-display); font-weight: 500; font-size: 22px; }
.call__idle span { margin-top: 6px; font-size: 12px; color: #9ba0ad; }
.call__ring { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding-top: 22%; opacity: 0; }
.call__rings { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.call__rings i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #4ade80; opacity: 0; }
.phone--call.ringing .call__rings i { animation: ring 1.8s var(--ease) infinite; }
.phone--call.ringing .call__rings i:nth-child(2) { animation-delay: .6s; } .phone--call.ringing .call__rings i:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.phone__av--lg { width: 72px; height: 72px; font-size: 20px; background: #2a2146; color: #d9d2ff; }
.call__who { margin: 18px 0 0; font-family: var(--sc-font-display); font-weight: 500; font-size: 22px; }
.call__ctx { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: #ff9cbc; }
.call__cap { position: absolute; left: 14px; right: 14px; bottom: 70px; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; opacity: 0; }
.call__cap li { font-size: 12.5px; line-height: 1.45; padding: 8px 10px; border-radius: 10px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.call__cap li.on { opacity: 1; transform: none; }
.call__cap .c--a { background: #2a2146; border: 1px solid #3d3266; }
.call__cap .c--h { background: #20232f; justify-self: end; }
.call__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px calc(var(--pw) * .07); opacity: 0; font: 500 12px/1 var(--sc-font-mono); color: #a3a8b4; }
.call__end { color: #4ade80; opacity: 0; transition: opacity .3s; font-family: var(--sc-font-text); font-weight: 600; }
.phone--call.live .call__ring { opacity: 1; }
.phone--call.live .call__idle, .phone--call.ringing .call__idle { opacity: 0; }
.phone--call.ringing .call__ring { opacity: 1; }
.phone--call.talk .call__ring { opacity: .18; }
.phone--call.talk .call__cap, .phone--call.talk .call__bar, .phone--call.live .call__bar { opacity: 1; }
.phone--call.booked .call__end { opacity: 1; }

@media (max-width: 1100px) {
  .cj__stage { grid-template-columns: minmax(220px, 280px) var(--pw) minmax(40px, 1fr) var(--pw); padding-inline: 20px; }
  .cj__steps li { font-size: 12.5px; }
}
@media (max-width: 860px) {
  .cj__stage { --ph: min(500px, calc(100svh - var(--bar-h) - 150px)); grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; align-content: start; gap: 12px; padding: calc(var(--bar-h) + 10px) 16px 12px; }
  .cj__side { width: 100%; }
  .cj__h, .cal { display: none; }
  .cj__steps { margin: 0; min-height: 44px; position: relative; display: block; }
  .cj__steps li { position: absolute; inset: 0 0 auto 0; font-size: 14px; opacity: 0; }
  .cj__steps li.on { opacity: 1; }
  .phone--wa, .phone--call { grid-column: 1; grid-row: 2; transition: transform .5s var(--ease), opacity .4s var(--ease); }
  .phone--call { opacity: 0; transform: translateX(40%) scale(.94); }
  .cj__stage.swap .phone--wa { opacity: 0; transform: translateX(-40%) scale(.94); }
  .cj__stage.swap .phone--call { opacity: 1; transform: none; }
  .packet { width: 220px; }
}

/* ---------------------------------------------------------------- 11 · close (dark) */
.close { padding-block: clamp(100px, 12vw, 180px) 0; }
.close__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.close__tiles { display: flex; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.close__tiles img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; transform: scale(1.35); clip-path: inset(12% round 7px); }
.book { border-radius: 16px; padding: clamp(22px, 2.4vw, 32px); background: #10121a; border: 1px solid var(--edge-v); display: grid; gap: 14px; }
.book__h { margin: 0 0 4px; font-family: var(--sc-font-display); font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.book__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book label { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.book input, .book select, .book textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a0b10; color: var(--sc-ink); font-size: 16px; /* 16px, or iOS Safari zooms the page on focus (2026-10-25 mobile audit) */ transition: border-color .16s; }
.book input:hover, .book select:hover, .book textarea:hover { border-color: #5b4a8f; }
.book textarea { resize: vertical; min-height: 84px; }
.book__two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book__go { width: 100%; margin-top: 4px; }
.book__go:disabled { opacity: .6; cursor: progress; }
.book__msg { margin: 0; font-size: 14px; min-height: 0; }
.book__msg.ok { color: #b9f5cf; } .book__msg.err { color: #ffb4ab; }
.book__msg a { color: inherit; font-weight: 700; }
.book__fine { margin: 0; font-size: 12.5px; color: var(--ink-4); }
.book__fine a { color: var(--ink-2); }
.foot { margin-top: clamp(90px, 10vw, 150px); padding-block: 48px 40px; border-top: 1px solid var(--line); }
.foot__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot__nav { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.foot__nav h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--sc-ink); }
.foot__nav a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot__nav a:hover { color: var(--sc-ink); }
.foot__legal { margin: 40px 0 0; font-size: 12.5px; color: var(--ink-4); max-width: 90ch; }
@media (max-width: 860px) { .close__grid { grid-template-columns: 1fr; } .book__two { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- reduced motion: final states, no travel */
@media (prefers-reduced-motion: reduce) {
  .hero__copy > * { animation: none; opacity: 1; transform: none; }
  .map__lines path { animation: none; }
  i.live, .caret, .wa__typing i, .msg.on, .wa__m.on, .wa__gap.on, .os__cue i { animation: none; }
  .msg, .wa__m, .ch, .os__layers li, .call__cap li, .fo__voice { transform: none !important; }
}

/* the hero's "all-in-one": dotless ı plus a drawn amber tittle, the same move
   as the wordmark's dot. The glyph is italic, so the dot sits right of centre. */
.hero__h .tit { position: relative; display: inline; }
.hero__h .tit::after { content: ""; position: absolute; left: .2em; top: .2625em; width: .135em; height: .135em; border-radius: 50%; background: var(--amber, #E88122); }
