/* ==========================================================================
   CeylonCloud Ecosystem
   Tokens first: light palette on :root, dark palette for system-dark and
   for an explicit data-theme="dark". Components only read tokens.
   ========================================================================== */

:root {
  --bg: #f3f7fb;
  --bg-2: #e9f1f8;
  --surface: #ffffff;
  --surface-2: #f7fafd;
  --ink: #0b1a2c;
  --ink-2: #24374d;
  --muted: #56687d;
  --faint: #8597ab;
  --line: #d9e4ee;
  --line-2: #c5d6e5;

  --brand: #0a78c8;
  --brand-ink: #ffffff;
  --cyan: #0fa9e6;
  --glow: rgba(18, 162, 236, .30);
  --glow-2: rgba(80, 96, 232, .16);

  --c-one: #0a84e0;
  --c-mpac: #5160e8;
  --c-smart: #f0662a;
  --c-wallet: #1c8be8;
  --c-admin: #0f9a8a;
  --ok: #15a34a;

  --header-bg: rgba(243, 247, 251, .78);
  --bezel-a: #1d2c3f;
  --bezel-b: #0b1420;
  --shade: #f3f7fb;
  --ring: rgba(10, 120, 200, .28);
  --grid: rgba(10, 120, 200, .07);
  --card-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 50px -24px rgba(16, 60, 100, .35);
  --sketch-filter: none;
  --graphite: #3d4c60;
  --paper: #ffffff;
  --sketch-op: .72;

  --f-display: 'Bricolage Grotesque', 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 72px);
  --header-h: 72px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050a14;
    --bg-2: #08101f;
    --surface: #0c1524;
    --surface-2: #0f1a2c;
    --ink: #e8f0fa;
    --ink-2: #c3d2e4;
    --muted: #8a9cb3;
    --faint: #5f728b;
    --line: #18263a;
    --line-2: #22344d;

    --brand: #3ba7ff;
    --brand-ink: #03101f;
    --cyan: #3ed2ff;
    --glow: rgba(46, 170, 255, .34);
    --glow-2: rgba(110, 120, 255, .20);

    --c-one: #3ba7ff;
    --c-mpac: #7d89ff;
    --c-smart: #ff7d45;
    --c-wallet: #47a6ff;
    --c-admin: #2fd0b8;
    --ok: #3ad07a;

    --header-bg: rgba(5, 10, 20, .72);
    --bezel-a: #2a3b52;
    --bezel-b: #070d17;
    --shade: #050a14;
    --ring: rgba(80, 190, 255, .38);
    --grid: rgba(80, 170, 255, .08);
    --card-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -28px rgba(0, 0, 0, .8);
    --sketch-filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(1.05);
  --graphite: #9fb2cb;
  --paper: #0c1524;
  --sketch-op: .8;
    --graphite: #9fb2cb;
    --paper: #0c1524;
    --sketch-op: .8;

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #050a14;
  --bg-2: #08101f;
  --surface: #0c1524;
  --surface-2: #0f1a2c;
  --ink: #e8f0fa;
  --ink-2: #c3d2e4;
  --muted: #8a9cb3;
  --faint: #5f728b;
  --line: #18263a;
  --line-2: #22344d;

  --brand: #3ba7ff;
  --brand-ink: #03101f;
  --cyan: #3ed2ff;
  --glow: rgba(46, 170, 255, .34);
  --glow-2: rgba(110, 120, 255, .20);

  --c-one: #3ba7ff;
  --c-mpac: #7d89ff;
  --c-smart: #ff7d45;
  --c-wallet: #47a6ff;
  --c-admin: #2fd0b8;
  --ok: #3ad07a;

  --header-bg: rgba(5, 10, 20, .72);
  --bezel-a: #2a3b52;
  --bezel-b: #070d17;
  --shade: #050a14;
  --ring: rgba(80, 190, 255, .38);
  --grid: rgba(80, 170, 255, .08);
  --card-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -28px rgba(0, 0, 0, .8);
  --sketch-filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(1.05);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; margin: 0; }
p { margin: 0; }
em { font-style: normal; color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); opacity: .6; animation: ping 2.4s var(--ease) infinite; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--f-body); letter-spacing: -.005em;
  border: 1px solid transparent; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 30px -10px var(--glow); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px var(--glow); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex; align-items: center; gap: 28px;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: block; flex-shrink: 0; }
.logo { width: 168px; height: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
}
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: none; }
.theme-toggle svg .fill { fill: currentColor; stroke: none; }
.theme-toggle[data-mode="system"] .i-system, .theme-toggle[data-mode="light"] .i-light, .theme-toggle[data-mode="dark"] .i-dark { display: block; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh; display: grid; align-content: center;
  padding: calc(var(--header-h) + clamp(16px, 3vh, 40px)) var(--gutter) clamp(56px, 8vh, 80px);
  overflow: hidden;
  isolation: isolate;
}
.hero-atmos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow-a { width: 62vw; height: 62vw; max-width: 980px; max-height: 980px; right: -14vw; top: -10vw; background: radial-gradient(circle, var(--glow), transparent 62%); animation: breathe 12s ease-in-out infinite; }
.glow-b { width: 44vw; height: 44vw; right: 18vw; bottom: -22vw; background: radial-gradient(circle, var(--glow-2), transparent 65%); animation: breathe 14s ease-in-out -5s infinite; }
.grid-floor {
  position: absolute; left: -20%; right: -20%; bottom: -8%; height: 62%;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(62deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}

.hero-inner {
  max-width: 1480px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(16px, 2.5vw, 40px); align-items: center;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2.4vh, 24px); max-width: 640px; min-width: 0; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, min(5vw, 8.4vh), 80px); font-weight: 600; letter-spacing: -.045em; line-height: .98; }
.h1-accent {
  background: linear-gradient(100deg, var(--brand) 10%, var(--cyan) 55%, var(--c-mpac) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.lead { font-size: clamp(16.5px, 1.25vw, 19px); line-height: 1.65; color: var(--muted); max-width: 37em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.released { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.released-label { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.platforms li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 75%, transparent);
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.platforms svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--brand); }
.platforms svg .fill { fill: currentColor; stroke: none; }

/* ---------- Key facts ---------- */
.hero .facts { text-align: left; }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0;
  border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
  background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--card-shadow);
}
.facts div { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.facts div:not(:last-child) { border-right: 1px solid var(--line); }
.facts dt { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 6px 0 0; font: 600 32px/1 var(--f-display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Hero pencil sketch: a paper desk turns into a paperless one (18s loop) ---------- */
.hero-visual { position: relative; min-width: 0; }
.sketch-zone { position: relative; z-index: 0; }
.hero-sketch { overflow: visible; }
.hero-sketch {
  display: block; width: 100%; height: auto; margin: 0;
  opacity: var(--sketch-op);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%);
  mask-image: linear-gradient(to bottom, transparent, #000 10%);
  --T: 18s;
}
.hero-facts { position: relative; z-index: 1; width: min(640px, 100%); margin: clamp(-40px, -2.4vw, -16px) auto 0; }
.hero-facts .facts { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sk path, .sk circle { fill: none; stroke: var(--graphite); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hatch-line { stroke: var(--graphite); stroke-width: 1; opacity: .55; }
.sk .desk-shade, .sk .old-shade, .sk .new-shade { fill: url(#hatch); stroke: none; }
.sk .desk, .sk .old, .sk .new, .sk .ui { stroke-dasharray: 1 1; stroke-dashoffset: 1; }

.sk .desk { animation: sk-desk var(--T) ease-in-out infinite; animation-delay: calc(var(--i) * 60ms); }
.sk .old  { animation: sk-old  var(--T) ease-in-out infinite; animation-delay: calc(var(--i) * 90ms); }
.sk .new  { animation: sk-new  var(--T) ease-in-out infinite; animation-delay: calc(var(--i) * 70ms); }
.sk .ui   { stroke: var(--brand); stroke-width: 2; animation: sk-ui var(--T) ease-out infinite; animation-delay: calc(var(--i) * 60ms); }
.sk .desk-shade { animation: sk-fade-desk var(--T) linear infinite; }
.g-old { transform-box: fill-box; transform-origin: 50% 100%; animation: sk-lift var(--T) ease-in infinite; }
.sk .old-shade { animation: sk-fade-old var(--T) linear infinite; }
.sk .new-shade { animation: sk-fade-new var(--T) linear infinite; }
.sk .fly {
  fill: var(--paper); stroke: var(--graphite); stroke-width: 1.4; opacity: 0;
  transform-box: fill-box; transform-origin: 50% 50%;
  animation: sk-fly var(--T) cubic-bezier(.4, 0, .6, 1) infinite; animation-delay: calc(var(--k) * 120ms);
}
.sk .glow { fill: var(--brand); stroke: none; opacity: 0; animation: sk-glow var(--T) ease-out infinite; }
.sk .bar { fill: var(--cyan); stroke: none; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: sk-bar var(--T) cubic-bezier(.2, .8, .2, 1) infinite; animation-delay: calc(var(--k) * 90ms); }
.sk .sync { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 5 7; opacity: 0; animation: sk-sync var(--T) linear infinite, sk-flow 1.1s linear infinite; }

@keyframes sk-desk { 0% { stroke-dashoffset: 1; opacity: 1; } 9% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 99% { opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes sk-fade-desk { 0%, 6% { opacity: 0; } 12%, 92% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes sk-old { 0%, 6% { stroke-dashoffset: 1; } 20% { stroke-dashoffset: 0; } 36% { stroke-dashoffset: 0; } 46%, 100% { stroke-dashoffset: 1; } }
@keyframes sk-fade-old { 0%, 14% { opacity: 0; } 20%, 34% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes sk-lift { 0%, 33% { transform: none; opacity: 1; } 46% { transform: translateY(-26px) scale(.97); opacity: 0; } 99% { transform: translateY(-26px); opacity: 0; } 100% { transform: none; opacity: 0; } }
@keyframes sk-fly {
  0%, 32% { opacity: 0; transform: none; }
  35% { opacity: 1; transform: translateY(-14px) rotate(calc(var(--fr) * .2)); }
  52% { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); }
  100% { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)); }
}
@keyframes sk-new { 0%, 46% { stroke-dashoffset: 1; opacity: 1; } 62% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 99% { opacity: 0; } 100% { stroke-dashoffset: 1; opacity: 0; } }
@keyframes sk-fade-new { 0%, 56% { opacity: 0; } 64%, 92% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes sk-ui { 0%, 60% { stroke-dashoffset: 1; opacity: 0; } 61% { opacity: 1; } 72% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 99%, 100% { opacity: 0; stroke-dashoffset: 1; } }
@keyframes sk-glow { 0%, 60% { opacity: 0; } 68%, 92% { opacity: .14; } 99%, 100% { opacity: 0; } }
@keyframes sk-bar { 0%, 64% { opacity: 0; transform: scaleY(0); } 72% { opacity: .85; transform: scaleY(1); } 92% { opacity: .85; transform: scaleY(1); } 99%, 100% { opacity: 0; transform: scaleY(1); } }
@keyframes sk-sync { 0%, 68% { opacity: 0; } 72%, 91% { opacity: .9; } 97%, 100% { opacity: 0; } }
@keyframes sk-flow { to { stroke-dashoffset: -24; } }

.sketch-caption {
  position: absolute; left: 6%; top: 2%; margin: 0;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  display: grid;
}
.sketch-caption span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sketch-caption span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--graphite); }
.cap-new::before { background: var(--brand) !important; }
.cap-old { animation: cap-old var(--T, 18s) linear infinite; }
.cap-new { color: var(--brand); animation: cap-new var(--T, 18s) linear infinite; }
@keyframes cap-old { 0%, 4% { opacity: 0; } 8%, 40% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes cap-new { 0%, 54% { opacity: 0; } 62%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }

.hero.sketch-paused .hero-sketch *, .hero.sketch-paused .sketch-caption span { animation-play-state: paused !important; }

@media (max-width: 760px) {
  .sketch-zone { display: flex; flex-direction: column; }
  .hero-sketch { width: 100%; margin: 0; }
  .sketch-caption { position: static; order: -1; justify-content: center; margin-bottom: 4px; font-size: 9px; }
  .sketch-caption span { justify-content: center; }
}

/* Reduced motion: show the finished, paperless desk as a still drawing. */
@media (prefers-reduced-motion: reduce) {
  .sk .desk, .sk .new, .sk .ui { animation: none !important; stroke-dashoffset: 0; opacity: 1; }
  .sk .desk-shade, .sk .new-shade { animation: none !important; opacity: 1; }
  .sk .glow { animation: none !important; opacity: .14; }
  .sk .bar { animation: none !important; opacity: .85; transform: none; }
  .sk .sync { animation: none !important; opacity: .9; }
  .g-old, .g-fly, .sketch-caption .cap-old { display: none; }
  .cap-new { animation: none !important; opacity: 1; }
}

/* ==========================================================================
   ECOSYSTEM SHOWCASE (second section)
   ========================================================================== */
.showcase {
  position: relative; scroll-margin-top: var(--header-h); overflow: hidden;
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(56px, 7vw, 100px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.showcase-inner { max-width: 1560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 2.4vw, 28px); }
.showcase-head { max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.showcase-head h2 { font-size: clamp(30px, 3.6vw, 54px); }
.showcase-head > p:not(.eyebrow) { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--muted); max-width: 40em; }

/* ---------- Device line-up: all devices on one row, the one in focus zooms forward ---------- */
.hero-stage { position: relative; width: 100%; min-width: 0; }
.stage-3d {
  position: relative; width: 100%;
  height: clamp(320px, min(34vw, calc(100svh - 300px)), 560px);
  perspective: 1600px; perspective-origin: 50% 40%;
  touch-action: pan-y;
  --s: 1;
}
.aura {
  --accent: var(--c-one);
  position: absolute; left: var(--ax, 50%); top: 58%; width: min(620px, 80%); aspect-ratio: 1.6; translate: -50% -50%;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 32%, transparent), transparent 64%);
  filter: blur(30px);
  transition: left .85s var(--ease), background .8s ease;
}
.family-labels { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; pointer-events: none; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.family-labels span { display: inline-flex; align-items: center; gap: 8px; }
.family-labels span::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--c-mpac); }
.fam-smart::before { background: var(--c-smart) !important; }
.scene {
  position: absolute; left: 50%; bottom: 34px;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: scale(var(--s)) rotateX(-3deg);
}
.scene > * { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform-style: preserve-3d; }

.unit { cursor: pointer; transition: transform .85s var(--ease), opacity .6s ease; }
.stage-3d:not(.ready) .unit { opacity: 0; }
.lift { position: relative; width: 100%; transform-style: preserve-3d; }
.unit.is-focus .lift { animation: bob 6s ease-in-out infinite; }

/* Phones */
.phone-unit { width: 150px; }
.bezel {
  position: relative; width: 100%; aspect-ratio: 942 / 2048;
  border-radius: 26px; padding: 6px;
  background: linear-gradient(140deg, var(--bezel-a), var(--bezel-b) 45%, var(--bezel-a));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 0 0 2px rgba(0,0,0,.35),
    0 40px 70px -34px rgba(4, 20, 40, .7);
  transition: box-shadow .6s;
}
.bezel::after { /* glass sheen */
  content: ''; position: absolute; inset: 6px; border-radius: 20px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 32%, transparent 70%, rgba(255,255,255,.06));
}
.bezel::before { /* dynamic island */
  content: ''; position: absolute; z-index: 3; top: 11px; left: 50%; width: 30%; height: 8px; transform: translateX(-50%); border-radius: 9px; background: #03070d;
}
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 20px; background: #0b1220; }
.screen > .s-login, .screen > .s-dash { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease); }
.screen .s-dash { opacity: 0; }
.unit.is-focus .s-dash { opacity: 1; }
.shade { position: absolute; inset: 0; border-radius: 26px; background: var(--shade); opacity: var(--dim, 0); pointer-events: none; transition: opacity .7s ease; }
.unit.is-focus .bezel {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14),
    inset 0 0 0 2px rgba(0,0,0,.35),
    0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent),
    0 0 60px -8px color-mix(in srgb, var(--accent) 55%, transparent),
    0 50px 80px -36px rgba(4, 20, 40, .7);
}

/* Web admin tablet (landscape) */
.tablet-unit { width: 430px; }
.tablet-bezel {
  position: relative; padding: 14px; border-radius: 28px;
  background: linear-gradient(140deg, var(--bezel-a), var(--bezel-b) 45%, var(--bezel-a));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), inset 0 0 0 2px rgba(0,0,0,.35), 0 40px 70px -34px rgba(4, 20, 40, .7);
  transition: box-shadow .6s;
}
.tablet-bezel .cam { position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2b3a4e; box-shadow: inset 0 0 0 1px #0a121d; }
.tablet-screen { position: relative; border-radius: 14px; overflow: hidden; background: #0b1220; }
.tablet-screen img { width: 100%; height: auto; }
.tablet-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 30%, transparent 72%, rgba(255,255,255,.05)); }
.tablet-unit .shade, .tablet-unit .device-back { border-radius: 28px; }
.tablet-unit .device-back::before { right: auto; left: 12%; top: -3px; width: 12%; height: 4px; box-shadow: none; }
.tablet-unit.is-focus .tablet-bezel {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), inset 0 0 0 2px rgba(0,0,0,.35),
    0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 70px -10px color-mix(in srgb, var(--accent) 50%, transparent),
    0 50px 80px -36px rgba(4, 20, 40, .7);
}

/* CeylonCloud One screen, built in HTML (concept preview) */
.one-screen { background: linear-gradient(180deg, #eef6fe, #ffffff 46%); color: #0f2a44; padding: 30px 11px 0; font-family: var(--f-body); display: flex; flex-direction: column; gap: 5px; }
.one-status { position: absolute; top: 8px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 7px; font-weight: 600; }
.one-bat { width: 13px; height: 6px; border-radius: 2px; border: 1px solid #0f2a44; }
.one-logo { width: 46%; align-self: center; margin: 2px 0 4px; }
.one-hello { font-size: 7px; color: #5b7d98; }
.one-h { font: 600 12px/1.1 var(--f-display); letter-spacing: -.02em; margin-bottom: 2px; }
.one-ws { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #dbe9f4; border-radius: 9px; padding: 7px 6px; box-shadow: 0 3px 8px rgba(30, 110, 170, .06); }
.one-ws span { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.one-ws div { flex: 1; min-width: 0; }
.one-ws b { display: block; font-size: 8px; line-height: 1.2; }
.one-ws small { display: block; font-size: 6px; color: #7a93a8; }
.one-ws i { font-style: normal; color: #1384d4; font-size: 11px; }
.m { background: #e7e9ff; color: #4b58dc; }
.s { background: #ffeadf; color: #e5601f; }
.w { background: #e1f0ff; color: #1678d6; }
.one-label { font: 500 5.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #7c97ac; margin-top: 6px; }
.one-apps { display: flex; justify-content: space-between; }
.one-apps span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 6px; color: #557590; }
.one-apps i { font-style: normal; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.one-card { margin-top: 6px; padding: 9px 8px; border-radius: 9px; background: linear-gradient(120deg, #0a74cc, #19b4ec); color: #fff; }
.one-card b { display: block; font-size: 8px; }
.one-card small { display: block; font-size: 6px; line-height: 1.45; color: #d4eeff; margin-top: 2px; }
.one-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 8px 6px 12px; font-size: 6px; color: #7f9ab0; background: #fff; border-top: 1px solid #e3eef6; }
.one-nav .on { color: #0a78c8; font-weight: 600; }

/* Device thickness: a back plate sits a few px behind each screen in real 3D,
   so the edge shows as the device turns. */
.device-back {
  position: absolute; inset: 0; border-radius: 26px;
  transform: translateZ(-10px); transform-style: preserve-3d;
  background: linear-gradient(150deg, var(--bezel-a), var(--bezel-b) 60%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.device-back::after { content: ''; position: absolute; inset: 0; border-radius: inherit; transform: translateZ(5.5px); background: var(--bezel-b); }
.device-back::before { /* side buttons */
  content: ''; position: absolute; right: -3px; top: 21%; width: 4px; height: 13%; border-radius: 2px;
  background: var(--bezel-a); box-shadow: -152px 18px 0 0 var(--bezel-a);
}

/* Stage UI: tabs + app panel */
.stage-ui { position: relative; display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.app-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.app-tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: color .25s, border-color .25s, background-color .25s;
}
.app-tabs button i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .5; transition: opacity .25s, box-shadow .25s; }
.app-tabs button { position: relative; overflow: hidden; }
.app-tabs button::after { /* time left until the tour moves on */
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%);
  background: var(--accent); opacity: 0;
}
.app-tabs button[aria-selected="true"]::after { opacity: 1; }
.app-tabs button:hover { color: var(--ink); }
.app-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.app-tabs button[aria-selected="true"] i { opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

.app-panel {
  --accent: var(--c-one);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: start;
  padding: 20px 22px 22px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.app-family { display: inline-block; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: 5px 8px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.app-name { font-size: 26px; letter-spacing: -.03em; margin-top: 10px; }
.app-who { font-size: 14px; color: var(--muted); margin-top: 4px; }
.app-panel-body p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.app-fit { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.app-panel-body ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.app-panel-body li { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); }
.app-panel-body li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: color-mix(in srgb, var(--accent) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2 6 9l4-4.4' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.app-panel.swap .app-panel-head, .app-panel.swap .app-panel-body { animation: panelIn .55s var(--ease); }
.tour-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.tour-progress i { display: block; height: 100%; width: 0; background: var(--accent); }

.motion-toggle { align-self: flex-end; margin-top: -4px; background: none; border: 0; padding: 4px 0; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.motion-toggle:hover { color: var(--ink); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.cue-line { width: 1px; height: 28px; background: linear-gradient(var(--brand), transparent); position: relative; overflow: hidden; }
.cue-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cyan); animation: cue 2s var(--ease) infinite; }
.scroll-cue:hover { color: var(--ink); }

/* ==========================================================================
   BUSINESS STORY
   ========================================================================== */
.story { position: relative; background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); border-top: 1px solid var(--line); }
.story-stage { position: sticky; top: 0; height: 100svh; min-height: 640px; overflow: hidden; }
.story-monitor { position: absolute; right: 1%; top: calc(var(--header-h) + 3svh); bottom: 7svh; width: 63%; max-width: calc((100svh - var(--header-h)) * 1.17); --p: .2; }
.story-monitor > * { position: absolute; }

.pencil-tile {
  aspect-ratio: 1; opacity: .26;
  filter: var(--sketch-filter) saturate(.6);
  mask-image: radial-gradient(ellipse at center, #000 44%, rgba(0,0,0,.8) 62%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 44%, rgba(0,0,0,.8) 62%, transparent 80%);
  transition: opacity .7s ease, filter .7s ease;
}
.pencil-tile.active { opacity: 1; filter: var(--sketch-filter) saturate(1.7) contrast(1.06); }
.tile-a { left: 0; top: 2%; width: 34%; }
.tile-b { right: 0; top: 1%; width: 31%; }
.tile-c { right: 0; bottom: 2%; width: 29%; }
.pencil-art { position: relative; width: 100%; height: 100%; }
.art-layer { position: absolute; inset: 0; background: 0 0 / 400% 300% no-repeat; transition: opacity .8s ease; }
/* The 1.5 MB pencil sprite loads only when the story section comes near the screen (home.js adds .art-ready). */
.art-ready .art-layer { background-image: url('../assets/pencil-operations.webp'); }

.op-links { inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.op-path { fill: none; stroke: var(--ring); stroke-width: 1.3; stroke-dasharray: 3 6; }
.op-dot { fill: var(--cyan); stroke: var(--surface); stroke-width: 1.4; filter: drop-shadow(0 0 4px var(--cyan)); }

.owner-glow { left: 20%; top: 18%; width: 62%; height: 78%; border-radius: 50%; background: radial-gradient(ellipse at 45% 48%, var(--glow), transparent 70%); filter: blur(26px); animation: breathe 9s ease-in-out infinite; }
.owner-ground { left: 30%; bottom: 1%; width: 44%; height: 6%; border-radius: 50%; background: radial-gradient(ellipse, rgba(10, 40, 70, .28), transparent 72%); filter: blur(7px); }
.owner { left: 23%; bottom: 1%; width: 52%; height: 84%; object-fit: contain; object-position: center bottom; transform: scaleX(-1); filter: drop-shadow(0 14px 22px rgba(10, 40, 70, .14)); }

.owner-badges { left: 0; top: 41%; width: 28%; max-width: 250px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.eco-mark { position: static; display: flex; flex-direction: column; padding: 0 2px 2px; }
.eco-mark span { font: 500 8px/1.2 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.eco-mark b { font: 600 14px/1.2 var(--f-display); color: var(--brand); letter-spacing: -.01em; }
.report { padding: 13px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: border-color .4s; }
.report-top { display: flex; justify-content: space-between; gap: 8px; font: 500 8px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.report-cat { color: var(--brand); white-space: nowrap; }
.report-title { display: block; font: 600 17px/1.15 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.report-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; font-size: 11px; color: var(--muted); }
.report-flow i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent); flex-shrink: 0; }
.report-bars { height: 44px; display: flex; align-items: flex-end; gap: 7px; border-bottom: 1px solid var(--line); }
.report-bars b { flex: 1; height: var(--bh, 35%); border-radius: 3px 3px 0 0; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 20%, transparent)); transition: height .55s var(--ease); }
.op-message { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); font-size: 11px; color: var(--ink-2); }
.op-sym { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.op-message.arrive { animation: arrive .45s var(--ease); }
.owner-badges.updated .report { animation: reportGlow 1.1s ease-out; }
.mini-op { padding: 9px 11px; border-radius: 8px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); font-size: 9.5px; color: var(--muted); }
.mini-op strong { display: block; font-size: 10px; color: var(--brand); margin-bottom: 4px; }
.mini-op .ml { height: 2px; background: var(--line-2); margin: 5px 0; width: 85%; }
.mini-op .ml.short { width: 55%; }
.mini-op.receipt { border-radius: 2px 2px 6px 6px; clip-path: inset(0 0 calc((1 - var(--p)) * 65%) 0); }
.mini-op.sms { border-radius: 12px; }
.mini-op .route { height: 22px; border-bottom: 1px dashed var(--ring); position: relative; margin-bottom: 4px; }
.mini-op .route::after { content: ''; position: absolute; bottom: -4px; left: calc(8% + var(--p) * 78%); width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); border: 2px solid var(--surface); }

.story-controls { position: absolute; right: var(--gutter); bottom: 18px; display: flex; align-items: center; gap: 12px; font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.story-controls button { background: none; border: 0; padding: 0; font: inherit; letter-spacing: .06em; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.story-copy { position: relative; z-index: 1; margin-top: -100svh; pointer-events: none; }
.story-copy a, .story-copy button { pointer-events: auto; }
.story-intro, .chapter, .story-finale {
  width: 35%; min-height: 92svh; padding: 0 2% 0 var(--gutter);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.story-intro { min-height: 100svh; }
.story-intro h2 { font-size: clamp(38px, 3.6vw, 58px); }
.story-intro p:not(.eyebrow), .chapter p { font-size: 16.5px; line-height: 1.75; color: var(--muted); max-width: 30em; }
.ch-num { font: 500 11px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.chapter h3, .story-finale h3 { font-size: clamp(28px, 2.5vw, 40px); transition: color .4s; }
.chapter.is-active h3 { color: var(--brand); }
.ch-chip { align-self: flex-start; font: 500 11px/1.4 var(--f-mono); color: var(--ink-2); padding: 7px 11px; border-radius: 8px; background: color-mix(in srgb, var(--brand) 9%, var(--surface)); border: 1px solid var(--line); }
.story-finale { padding-bottom: 18svh; }
.story-finale .btn { align-self: flex-start; }

/* ---------- Detail panel under the line-up ---------- */
.showcase .app-panel {
  width: 100%; max-width: 1180px; overflow: visible;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(16px, 2.4vw, 32px); align-items: start;
  padding: 24px clamp(18px, 2.4vw, 30px) 26px; border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  transition: border-color .6s;
}
.notch { position: absolute; top: -9px; left: var(--nx, 50%); width: 16px; height: 16px; translate: -50% 0; rotate: 45deg; background: var(--surface); border-left: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-top: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 3px 0 0 0; transition: left .85s var(--ease); }
.panel-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.app-desc { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.callouts { display: flex; flex-direction: column; gap: 8px; }
.callout { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.callout .ic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.callout svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout b { display: block; font: 600 13.5px/1.2 var(--f-display); color: var(--ink); }
.callout small { display: block; font-size: 11.5px; line-height: 1.35; color: var(--muted); margin-top: 1px; }
.biz { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.biz-head { flex-basis: 100%; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.biz span:not(.biz-head) { padding: 6px 11px; border-radius: 999px; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--ink); background: color-mix(in srgb, var(--accent) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); }
/* entrance: each piece rises in, staggered */
.app-panel .panel-info > *, .callout, .biz > * { transition: opacity .45s var(--ease) calc(var(--k, 0) * 70ms), transform .55s var(--ease) calc(var(--k, 0) * 70ms); }
.app-panel:not(.show) .panel-info > *, .app-panel:not(.show) .callout, .app-panel:not(.show) .biz > * { opacity: 0; transform: translateY(10px); transition-duration: .2s; transition-delay: 0s; }

/* ---------- Footer ---------- */

/* ---------- Motion ---------- */
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.08) translateY(-2%); opacity: .8; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes bob { 50% { translate: 0 -7px; } }
@keyframes cue { to { top: 110%; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes arrive { from { opacity: .4; transform: translateY(6px); } }
@keyframes reportGlow { 0% { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 18%, transparent); } }

.motion-off .glow, .motion-off .live-dot::after, .motion-off .owner-glow, .motion-off .cue-line::after, .motion-off .lift { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .showcase .app-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .showcase .biz { grid-column: 1 / -1; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .app-panel { grid-template-columns: 1fr; gap: 10px; }
  .app-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .app-name { margin-top: 0; font-size: 22px; }
  .app-family { order: -1; flex-basis: 100%; flex-grow: 0; max-width: max-content; }
}

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 8px; }
  .hero-copy { align-items: center; max-width: 720px; }
  .hero-actions { justify-content: center; }
  .released { align-items: center; }
  .hero .platforms { justify-content: center; }
  .hero-visual { width: 100%; max-width: 760px; }
  .hero-sketch { width: 100%; margin: 0; }
  .hero .scroll-cue { display: none; }
  .hero-copy { width: 100%; }
  :root { --header-h: 64px; }
  .logo { width: 140px; }
  .hero { padding-bottom: 40px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-copy { gap: 20px; }
  .hero h1 { font-size: clamp(40px, 9vw, 64px); }
  .stage-3d { height: clamp(360px, 88vw, 560px); }
  .hero-stage { padding-top: 8px; }

  .story-stage { min-height: 600px; }
  .story-monitor { top: auto; bottom: 4svh; right: 3%; width: 94%; height: 52svh; max-width: none; }
  .story-intro, .chapter, .story-finale { width: 100%; min-height: 100svh; justify-content: flex-start; padding: calc(var(--header-h) + 28px) var(--gutter) 0; gap: 12px; }
  .story-intro p:not(.eyebrow), .chapter p { font-size: 14.5px; line-height: 1.6; }
  .chapter h3, .story-finale h3 { font-size: clamp(24px, 5.4vw, 32px); }
  .ch-chip { display: none; }
  .story-controls { right: var(--gutter); bottom: 8px; font-size: 8.5px; }
}

@media (max-width: 600px) {
  .hero-visual { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(var(--gutter) * -1); }
  .hero-sketch { width: 100%; margin: 0; }
  .hero-facts { width: calc(100% - 2 * var(--gutter)); margin-top: 6px; }
  .hero { padding-top: calc(var(--header-h) + 18px); }
  .hero h1 { font-size: clamp(32px, 9.4vw, 42px); }
  .hero .lead { font-size: 15px; line-height: 1.55; }
  .hero-actions { flex-wrap: nowrap; width: 100%; gap: 8px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 10px; font-size: 13.5px; white-space: normal; line-height: 1.2; text-align: center; }
  .hero .released-label { display: none; }
  .hero .platforms { gap: 5px; flex-wrap: nowrap; }
  .hero .platforms li { padding: 5px 8px; font-size: 12px; gap: 5px; }
  .hero .platforms svg { display: none; }
  .hero-facts .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-facts .facts div { padding: 10px 8px; border-bottom: 0 !important; border-right: 1px solid var(--line) !important; }
  .hero-facts .facts div:last-child { border-right: 0 !important; }
  .hero-facts .facts dt { font-size: 8px; letter-spacing: .06em; }
  .hero-facts .facts dd { font-size: 20px; }
  .hero .scroll-cue { display: none; }
  .showcase .app-panel { grid-template-columns: minmax(0, 1fr); }
  .showcase .app-tabs { justify-content: flex-start; width: calc(100% + 2 * var(--gutter)); } /* centred content in a scroller hides its start */
  .family-labels { font-size: 9px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .facts div { padding: 14px 16px; }
  .facts dd { font-size: 26px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .app-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .app-tabs::-webkit-scrollbar { display: none; }
  .app-tabs button { flex-shrink: 0; }
  .app-panel { padding: 16px; }
  .scroll-cue { white-space: normal; text-align: left; width: calc(100% - 2 * var(--gutter)); font-size: 10px; }

  .owner-badges { width: 31%; top: 37%; gap: 5px; }
  .report { padding: 8px; }
  .report-title { font-size: 12px; }
  .report-top { font-size: 6px; margin-bottom: 4px; }
  .report-flow { font-size: 8.5px; padding: 5px 0; }
  .report-bars { height: 24px; gap: 4px; }
  .op-message { font-size: 8.5px; padding: 6px; gap: 5px; }
  .op-sym { width: 15px; height: 15px; font-size: 8px; }
  .eco-mark span { font-size: 6px; } .eco-mark b { font-size: 10px; }
  .mini-op { font-size: 7.5px; padding: 6px; } .mini-op strong { font-size: 8px; }
  .story-controls #scene-state { display: none; }
}

@media (max-height: 720px) and (min-width: 961px) {
  .hero h1 { font-size: clamp(40px, 4.4vw, 64px); }
  .hero-copy { gap: 18px; }
}


/* ==========================================================================
   SITE CHROME: navigation, mobile menu, footer
   ========================================================================== */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(4, 20, 40, .5); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 11px; border-radius: 10px; background: none; border: 0;
  font: 500 14.5px/1 var(--f-body); color: var(--muted); transition: color .2s, background-color .2s; white-space: nowrap;
}
.nav-link:hover, .nav-group.open > .nav-link { color: var(--ink); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.nav-link[aria-current="page"], .nav-link.is-on, .nav-group.is-on > .nav-link { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 10px 10px 2px 2px; }
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.nav-group { position: relative; }
.nav-group.open .chev { transform: rotate(180deg); }
.nav-menu {
  position: absolute; left: -8px; top: calc(100% + 10px); z-index: 60; width: 300px; padding: 8px;
  display: grid; gap: 2px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(4, 20, 40, .55);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-menu-wide { width: min(620px, 80vw); grid-template-columns: 1fr 1fr; left: -120px; }
.nav-group.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.nav-menu b { font: 600 14px/1.25 var(--f-body); color: var(--ink); }
.nav-menu small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.nav-menu a.nav-menu-all { grid-column: 1 / -1; flex-direction: row; font-weight: 600; font-size: 13.5px; color: var(--brand); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.nav-mobile-actions { display: none; }
.btn-ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.one-link { gap: 7px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1340px) {
  .one-link span { display: none; }
  .one-link { width: 40px; padding: 0; }
  .nav-link { padding: 8px 8px; font-size: 14px; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .demo-link, .one-link { display: none !important; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 6px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="page"], .nav-link.is-on, .nav-group.is-on > .nav-link { box-shadow: none; color: var(--brand); border-radius: 0; }
  .nav-menu, .nav-menu-wide { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px; display: none; grid-template-columns: 1fr; background: transparent; }
  .nav-group.open .nav-menu { display: grid; }
  .nav-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block for the fixed menu panel */
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}
@media (max-width: 480px) { .nav-mobile-actions { grid-template-columns: 1fr; } }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(40px, 6vw, 72px) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.foot-inner { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 32px 28px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand .logo { width: 160px; }
.foot-brand p { max-width: 32ch; line-height: 1.6; }
.foot-col h2 { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { color: var(--ink-2); }
.foot-col a:hover { color: var(--brand); }
.foot-contact li, .contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ic, .contact-list .ic { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); transition: color .2s, border-color .2s, transform .2s; }
.social a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; fill-rule: evenodd; }
.foot-bottom { max-width: 1480px; margin: clamp(28px, 4vw, 48px) auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.foot-legal { display: flex; gap: 18px; }
.foot-legal a:hover { color: var(--ink); }
@media (max-width: 1180px) { .foot-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.crumbs { max-width: 1480px; margin: 0 auto; padding: calc(var(--header-h) + 18px) var(--gutter) 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--faint); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
main > .page-hero:first-child { padding-top: calc(var(--header-h) + 40px); }

.page-hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(48px, 6vw, 88px); isolation: isolate; }
.page-hero::before { content: ''; position: absolute; z-index: -1; right: -12%; top: -30%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 62%); filter: blur(60px); opacity: .7; }
.page-hero-inner { max-width: 1480px; margin: 0 auto; display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.page-hero-inner.has-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.page-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 760px; }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -.04em; }
.page-hero .lead { max-width: 40em; }
.hero-compact h1 { font-size: clamp(32px, 3.6vw, 52px); }
.page-hero-visual { min-width: 0; }
.eco-visual { width: min(420px, 80%); margin: 0 auto; filter: drop-shadow(0 20px 40px var(--glow)); }

.sec { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-inner { max-width: 1480px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.sec-head { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.sec-head h2 { font-size: clamp(28px, 3vw, 44px); }
.sec-head > p:not(.eyebrow) { color: var(--muted); font-size: 16.5px; line-height: 1.65; }

.cards { display: grid; gap: 16px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.card-ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--brand) 11%, transparent); }
.card-link { transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-link:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); transform: translateY(-3px); box-shadow: var(--card-shadow); }
.more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--brand); }
.more-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); line-height: 1.5; }
.checks li svg { flex-shrink: 0; width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 50%; fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--brand) 13%, transparent); }
.checks-lg { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px 28px; font-size: 16.5px; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.flip .split-text { order: 2; }
.split-text { display: flex; flex-direction: column; gap: 16px; }
.split-text h2 { font-size: clamp(28px, 3vw, 42px); }
.split-text p { color: var(--muted); line-height: 1.7; }
.split-visual { min-width: 0; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin-top: 12px; }
.prose p { color: var(--ink-2); line-height: 1.75; font-size: 16.5px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.shot-phone { margin: 0; width: 100%; max-width: 230px; }
.shot-phone .bezel { border-radius: 30px; padding: 7px; box-shadow: 0 40px 70px -30px rgba(4, 20, 40, .6), inset 0 0 0 1px rgba(255,255,255,.1); }
.shot-phone .screen { border-radius: 24px; }
.shot-phone img { width: 100%; height: 100%; object-fit: cover; }
.phones { display: flex; justify-content: center; gap: clamp(12px, 3vw, 32px); align-items: flex-end; }
.phones .shot-phone:nth-child(2) { transform: translateY(-28px); }
.phones.row .shot-phone { transform: none; max-width: 200px; }
.shot-tablet { margin: 0; width: 100%; }
.shot-tablet .tablet-bezel { box-shadow: 0 50px 90px -40px rgba(4, 20, 40, .6), inset 0 0 0 1px rgba(255,255,255,.1); transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); }
.shot-tablet .tablet-screen img { width: 100%; height: auto; }
.page-hero-visual .shot-tablet { animation: bob 7s ease-in-out infinite; }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 600 16.5px/1.35 var(--f-body); letter-spacing: 0; }
.faq-chev { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.faq details[open] .faq-chev { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); line-height: 1.7; }

.cta-band { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.cta-inner { position: relative; overflow: hidden; max-width: 1180px; margin: 0 auto; padding: clamp(32px, 5vw, 64px); border-radius: 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%), var(--surface); border: 1px solid var(--line); }
.cta-inner h2 { font-size: clamp(28px, 3.4vw, 48px); max-width: 20ch; }
.cta-inner p { color: var(--muted); max-width: 46ch; font-size: 17px; }
.cta-inner .hero-actions { justify-content: center; }
.crosslink { font-size: 17px; color: var(--ink-2); text-align: center; }
.crosslink a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.pricing-note { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: center; }
.pricing-note h3 { font-size: 24px; margin-bottom: 10px; }
.pricing-note p { color: var(--muted); line-height: 1.7; }
.fineprint { font-size: 13.5px; color: var(--faint); max-width: 80ch; line-height: 1.6; }
.fineprint a { color: var(--brand); }

/* packages */
.pkg-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pkg.featured { order: -1; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 30px 60px -36px var(--glow); grid-row: span 2; }
.pkg-flag { align-self: flex-start; font: 500 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand); padding: 6px 9px; border-radius: 999px; }
.pkg h3 { font-size: 22px; }
.pkg-for { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.pkg .checks { font-size: 14px; gap: 8px; }
.pkg-branch { font-size: 13px; color: var(--brand); font-weight: 600; }
.pkg-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pkg-price { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

/* forms */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.form-wrap.narrow { grid-template-columns: minmax(0, 860px); justify-content: center; }
.cc-form { padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld > label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fld > label i { font-style: normal; color: var(--brand); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  font: 400 16px/1.4 var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.fld textarea { resize: vertical; min-height: 120px; }
.fld input[type="file"] { padding: 9px; cursor: pointer; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.fld [aria-invalid="true"] { border-color: #e5484d; }
.err { color: #e5484d; font-size: 13px; }
.hint { color: var(--faint); font-size: 12.5px; }
.consent { margin-top: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.check a { color: var(--brand); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.form-note { font-size: 13.5px; color: var(--faint); }
.form-status { margin-top: 14px; font-size: 15px; line-height: 1.55; }
.form-status:empty { display: none; }
.form-status.ok { padding: 12px 14px; border-radius: 12px; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.form-status.warn { padding: 12px 14px; border-radius: 12px; color: var(--ink-2); background: color-mix(in srgb, #f5a524 16%, transparent); }
.form-status a { color: var(--brand); font-weight: 600; }
button[disabled] { opacity: .6; cursor: progress; }
.contact-aside, .side-card { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.contact-aside h2, .side-card h3 { font-size: 21px; }
.contact-aside p, .side-card p { color: var(--muted); line-height: 1.6; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { color: var(--ink); font-weight: 600; }
.aside-links { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.aside-links a { display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); font-weight: 500; }
.aside-links a:hover { color: var(--brand); }

/* CeylonCloud One sign-in */
.ws-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ws-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; }
.ws-card::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ws) 35%, transparent), transparent 65%); }
.ws-mpac { --ws: var(--c-mpac); } .ws-smart { --ws: var(--c-smart); }
.ws-card:hover { transform: translateY(-4px); border-color: var(--ws); box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--ws) 80%, transparent); }
.ws-ic svg { width: 48px; height: 48px; padding: 11px; border-radius: 14px; fill: none; stroke: var(--ws); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--ws) 14%, transparent); }
.ws-tag { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ws); }
.ws-card h2 { font-size: clamp(26px, 2.6vw, 36px); }
.ws-card p { color: var(--muted); }
.ws-go { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.ws-card small { color: var(--faint); font-family: var(--f-mono); font-size: 12px; }
.app-dl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; padding: 22px 24px; border-radius: 20px; border: 1px dashed var(--line-2); }
.app-dl h3 { font-size: 19px; margin-bottom: 4px; }
.app-dl p { color: var(--muted); }
.one-mark-panel { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: radial-gradient(circle, var(--glow), transparent 70%); }
.one-mark-panel img { width: min(320px, 80%); filter: drop-shadow(0 20px 40px var(--glow)); animation: float 7s ease-in-out infinite; }

/* about / story */
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mv-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.mv-text { font: 500 clamp(19px, 1.7vw, 24px)/1.45 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts-2 div:nth-child(2) { border-right: 0; }
.facts-2 div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.facts-2 div:nth-child(3) { border-right: 1px solid var(--line); }
.next-chapter { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.nc-year { font: 700 clamp(64px, 10vw, 140px)/.9 var(--f-display); letter-spacing: -.05em; background: linear-gradient(120deg, var(--brand), var(--cyan), var(--c-mpac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.next-chapter p { color: var(--ink-2); line-height: 1.75; font-size: 16.5px; margin-bottom: 12px; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 880px; position: relative; display: grid; gap: clamp(24px, 4vw, 44px); }
.timeline::before { content: ''; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--cyan), var(--c-mpac)); opacity: .5; }
.tl-item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; }
.tl-dot { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--brand); box-shadow: 0 0 0 6px var(--bg); }
.tl-dot svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-body { padding: 4px 0; display: flex; flex-direction: column; gap: 8px; }
.tl-when { font: 600 13px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.tl-body h3 { font-size: clamp(22px, 2.4vw, 30px); }
.tl-body > p:not(.tl-when) { color: var(--muted); line-height: 1.7; max-width: 60ch; }
.tl-item:last-child .tl-dot { background: var(--brand); }
.tl-item:last-child .tl-dot svg { stroke: var(--brand-ink); }
.quote { margin: 0 auto; max-width: 860px; text-align: center; }
.quote p { font: 500 clamp(22px, 2.6vw, 34px)/1.35 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.quote footer { margin-top: 14px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.flow li::before { content: counter(flow); font: 700 28px/1 var(--f-display); color: var(--brand); }
.flow b { font: 600 18px/1.2 var(--f-display); }
.flow span { color: var(--muted); }

@media (max-width: 1100px) {
  .cards-4, .cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero-inner.has-visual { grid-template-columns: minmax(0, 1fr); }
  .page-hero-visual { max-width: 640px; }
  .form-wrap { grid-template-columns: minmax(0, 1fr); }
  .contact-aside, .side-card { position: static; }
  .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg.featured { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cards-2, .cards-3, .cards-4, .cards-5, .mv, .ws-grid, .flow { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip .split-text { order: 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .pkg-grid { grid-template-columns: minmax(0, 1fr); }
  .pricing-note { grid-template-columns: minmax(0, 1fr); }
  .next-chapter { grid-template-columns: minmax(0, 1fr); }
  .phones .shot-phone { max-width: 46%; }
  .phones.row .shot-phone { max-width: 31%; }
  .shot-tablet .tablet-bezel { transform: none; }
  .timeline::before { left: 19px; }
  .tl-item { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .tl-dot { width: 40px; height: 40px; }
}

/* ---------------------------------------------------------------- Product logos (light/dark pair) */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { display: block; width: 100%; height: auto; }
.brand-logo .th-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo .th-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo .th-dark { display: block; }
}
:root[data-theme="dark"] .brand-logo .th-light { display: none; }
:root[data-theme="dark"] .brand-logo .th-dark { display: block; }
.hero-logo { width: clamp(150px, 18vw, 210px); }
.card .brand-logo.card-ic { width: auto; height: 44px; padding: 0; border-radius: 0; background: none; }
.card .brand-logo.card-ic img { width: auto; height: 100%; }
.ws-logo { position: relative; z-index: 1; height: 54px; margin-bottom: 6px; }
.ws-logo img { width: auto; height: 100%; }
.side-logo { height: 40px; margin-bottom: 4px; }
.side-logo img { width: auto; height: 100%; }
.hero-logo:has(img[src*="logo-one"]) { width: clamp(170px, 20vw, 240px); }
.one-full .brand-logo { width: min(380px, 90%); filter: drop-shadow(0 20px 40px var(--glow)); animation: float 7s ease-in-out infinite; }
.one-ic { width: auto; height: 18px; flex: none; }
.eco-one { display: grid; place-items: center; }
.eco-one .brand-logo { width: min(440px, 88%); }

/* ---------------------------------------------------------------- About: story photos and letters */
#story .timeline { margin-bottom: clamp(40px, 6vw, 72px); }
.hero-photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--brand) 55%, transparent); transform: rotate(1.5deg); }
.hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.12) saturate(.95); }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13.5px; color: var(--ink-2); }
.hero-photo figcaption b { font: 600 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--brand); }

.tl-gallery { display: grid; gap: 12px; margin-top: 10px; }
.tl-gallery.n1 { grid-template-columns: minmax(0, 1fr); max-width: 440px; }
.tl-gallery.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-gallery.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; cursor: zoom-in; }
.ph-frame { display: block; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.ph-frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.ph:hover .ph-frame img, .ph:focus-visible .ph-frame img { transform: scale(1.04); }
.ph-cap { font-size: 13px; color: var(--faint); line-height: 1.4; }

.tl-letters { margin-top: 14px; }
.tl-letters-h { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.letters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); padding: 6px 4px 4px; }
.ph-letter .ph-frame { padding: 8px; border-radius: 4px; background: #fdfcf8; border-color: color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: 0 18px 30px -18px rgba(10, 20, 40, .45), 0 2px 4px rgba(10, 20, 40, .08); transition: transform .35s ease, box-shadow .35s ease; }
.ph-letter .ph-frame img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 2px; }
.ph-letter:hover .ph-frame img { transform: none; }
.letters .ph-letter:nth-child(3n+1) .ph-frame { transform: rotate(-2.2deg); }
.letters .ph-letter:nth-child(3n+2) .ph-frame { transform: rotate(1.2deg) translateY(6px); }
.letters .ph-letter:nth-child(3n) .ph-frame { transform: rotate(-.6deg); }
.letters .ph-letter:hover .ph-frame, .letters .ph-letter:focus-visible .ph-frame { transform: rotate(0) translateY(-6px); box-shadow: 0 30px 50px -22px rgba(10, 20, 40, .55); }
@media (max-width: 640px) {
  .tl-gallery.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .letters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-photo { transform: none; }
}

/* Lightbox for story photos and letters */
.zoom-dlg { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.zoom-dlg::backdrop { background: rgba(4, 8, 16, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zoom-dlg figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.zoom-dlg img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); background: #fff; }
.zoom-dlg figcaption { color: #e7eef8; font-size: 14px; text-align: center; }
.zoom-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: #0c1524; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ph-frame img, .ph-letter .ph-frame { transition: none; } }

/* ---------------------------------------------------------------- Contact: map */
.map-card { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 460px; box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--brand) 60%, transparent); }
.map-canvas { position: absolute; inset: 0; }
.map-canvas::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line), inset 0 0 80px color-mix(in srgb, var(--bg) 45%, transparent); }
.map-canvas iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.8) contrast(1.03); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-canvas iframe { filter: invert(.9) hue-rotate(180deg) saturate(.75) brightness(.92) contrast(.92); } }
:root[data-theme="dark"] .map-canvas iframe { filter: invert(.9) hue-rotate(180deg) saturate(.75) brightness(.92) contrast(.92); }
.map-info { position: absolute; left: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); width: min(380px, calc(100% - 28px)); display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(5, 15, 35, .45); }
.map-info h3 { font-size: 19px; }
.map-addr, .map-line { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; text-decoration: none; }
.map-addr svg, .map-line svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a.map-line:hover { color: var(--brand); }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@media (max-width: 640px) {
  .map-card { min-height: 0; display: flex; flex-direction: column; }
  .map-canvas { position: relative; height: 320px; }
  .map-info { position: static; width: auto; border-radius: 0; border: 0; border-top: 1px solid var(--line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
}

/* Story photos: let letters show whole, tint photos toward the site palette */
.sec-more { margin-top: 22px; }
.letters { align-items: start; }
.ph-letter .ph-frame img { aspect-ratio: auto; object-fit: contain; }
.ph-frame, .hero-photo { position: relative; }
.ph:not(.ph-letter) .ph-frame::after, .hero-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--brand) 22%, transparent)), color-mix(in srgb, var(--brand) 6%, transparent); mix-blend-mode: multiply; }
.hero-photo figcaption { z-index: 1; }
.hero-photo img { filter: saturate(.92) contrast(1.03); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ph-frame img, :root:not([data-theme="light"]) .hero-photo img { filter: brightness(.88) saturate(.9); }
  :root:not([data-theme="light"]) .ph-letter .ph-frame { background: #e8e4d8; }
}
:root[data-theme="dark"] .ph-frame img, :root[data-theme="dark"] .hero-photo img { filter: brightness(.88) saturate(.9); }
:root[data-theme="dark"] .ph-letter .ph-frame { background: #e8e4d8; }

/* ---------------------------------------------------------------- Auto-fit card grids and process steps */
.cards-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.flow-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.flow li b { font-size: 17px; }
.flow li span { color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------------- Customer logos */
.sec-clients .sec-head { text-align: center; margin-inline: auto; align-items: center; }
.clients { position: relative; overflow: hidden; }
.clients.is-moving { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients-track { display: flex; width: max-content; padding-block: 6px; animation: clients-scroll 60s linear infinite; }
.clients:hover .clients-track { animation-play-state: paused; }
.clients-row { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; gap: 18px; padding-right: 18px; }
.clients-static { flex-wrap: wrap; justify-content: center; padding-right: 0; }
.client, .client > a { display: grid; gap: 10px; justify-items: center; align-content: start; }
.client { width: 200px; flex: none; }
.client > a { width: 100%; text-decoration: none; color: inherit; }
/* Logos keep their own brand colours, so they sit on a light plate in both themes. */
.client-plate { --plate: #ffffff; display: grid; place-items: center; width: 100%; height: 92px; padding: 14px 20px; border-radius: 18px;
  background: var(--plate); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
  transition: border-color .25s, transform .25s, box-shadow .25s; }
.client-plate img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.client-plate-text { background: var(--surface); font: 600 15px/1.25 var(--f-display); letter-spacing: -.01em; text-align: center; color: var(--ink-2); text-wrap: balance; }
.client:hover .client-plate { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-3px); box-shadow: 0 18px 36px -24px color-mix(in srgb, var(--brand) 60%, transparent); }
.client-name { font-size: 13px; line-height: 1.35; text-align: center; color: var(--muted); text-wrap: balance; max-width: 100%; }
.client a:hover .client-name { color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .client-plate { --plate: #eef1f6; border-color: transparent; } :root:not([data-theme="light"]) .client-plate-text { background: var(--surface); border-color: var(--line); } }
:root[data-theme="dark"] .client-plate { --plate: #eef1f6; border-color: transparent; }
:root[data-theme="dark"] .client-plate-text { background: var(--surface); border-color: var(--line); }
@media (max-width: 640px) { .client { width: 150px; } .client-plate { height: 76px; padding: 12px 14px; } .client-plate img { max-height: 46px; } }
@keyframes clients-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .clients-track { animation: none; flex-wrap: wrap; width: auto; } .clients-track .clients-row[aria-hidden] { display: none; } }

/* First customer highlight (home and about) */
.first-customer { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 28px;
  max-width: 980px; margin: 40px auto 0; padding: 26px 30px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.first-customer .client-plate { height: 110px; }
.fc-logo { display: block; border-radius: 18px; }
.fc-logo:hover .client-plate { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-3px); box-shadow: 0 18px 36px -24px color-mix(in srgb, var(--brand) 60%, transparent); }
.first-customer .client-plate img { max-height: 76px; }
.first-customer .eyebrow { margin: 0 0 6px; }
.first-customer h3 { margin: 0 0 8px; font: 600 clamp(20px, 2.2vw, 26px)/1.25 var(--f-display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.first-customer p:not(.eyebrow) { margin: 0 0 10px; color: var(--muted); line-height: 1.65; max-width: 62ch; }
.first-customer .text-link { font-weight: 600; }
.fc-years { display: grid; justify-items: center; padding-inline: 8px; font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); text-align: center; }
.fc-years b { font: 700 clamp(48px, 6vw, 72px)/1 var(--f-display); letter-spacing: -.04em; color: var(--brand); }
@media (max-width: 820px) { .first-customer { grid-template-columns: 1fr; gap: 18px; padding: 22px; text-align: left; } .first-customer .client-plate { max-width: 240px; } .fc-years { display: none; } }
.side-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

/* ---------------------------------------------------------------- Sinhala pages */
:lang(si) { --f-body: 'Noto Sans Sinhala', 'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif; --f-display: 'Noto Sans Sinhala', 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif; }
:lang(si) h1, :lang(si) h2, :lang(si) h3 { letter-spacing: 0; line-height: 1.3; }
:lang(si) p, :lang(si) li { line-height: 1.85; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; text-decoration: none; }
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.stat-band div { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.stat-band b { display: block; font: 700 clamp(28px, 3.4vw, 40px)/1 var(--f-display); letter-spacing: -.02em; color: var(--brand); }
.stat-band span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.backup-times { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.backup-times span { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font: 600 13px/1.2 var(--f-mono); }
.sec-tight { padding-block: 8px clamp(20px, 3vw, 36px); }
