/* Ai4Life website — design system
   Layout concept: one dark room, one cold light. Photography carries the hero,
   timestamped pins + a dashed ice thread are the signature, everything else is quiet chrome.
   Tokens are copied 1:1 from Brand Kit v1.1 (dark is the committed theme). */

:root {
  color-scheme: dark;
  --bg-void: #111111; --bg-surface: #181a1e; --bg-raised: #212429;
  --border-hairline: #2b2f36; --border-control: #6c7582;
  --ink: #eef1f4; --ink-muted: #a3abb6; --ink-subtle: #868f9b;
  --chrome: #b6bbc1; --chrome-highlight: #e1e5e8;
  --ice: #8ed2f7; --on-ice: #0f1115; --ice-tint: #8ed2f71f;
  --transms: #3ddc97; --peek: #b49cfb; --keyhole: #e3b45c;
  --success: #5eead4; --warning: #fbbf24; --danger: #f87171;
  --focus-ring: var(--ice);
  --shadow-float: 0 12px 32px #00000080;
  --scrim: #111111;

  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 28px; --radius-pill: 999px;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg-void); color: var(--ink);
  font: 400 16px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg-void); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ice); color: var(--on-ice); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ice); color: var(--on-ice); padding: 8px 14px; border-radius: var(--radius-md); font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; color: var(--ink); }
.t-display { font-size: clamp(40px, 6.4vw, 92px); line-height: .98; letter-spacing: -.025em; }
.t-h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.02em; }
.t-h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.015em; font-weight: 500; }
.t-h3 { font-size: 22px; line-height: 1.25; font-weight: 500; }
.t-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-muted); max-width: 58ch; }
.t-body-sm { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.t-label { font: 600 12px/1.33 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); }
.t-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.t-caption { font-size: 12px; line-height: 1.4; color: var(--ink-muted); }
.hl { color: var(--ice); }
.chrome { color: var(--chrome-highlight); }
p { margin: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: var(--space-8); position: relative; }
@media (min-width: 900px) { .section { padding-block: 128px; } }
.section-head { display: grid; gap: var(--space-4); margin-block-end: var(--space-7); max-width: 760px; }
.section-head.split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.3fr 1fr; gap: var(--space-7); } }
.rule { height: 1px; background: var(--border-hairline); border: 0; margin: 0; }
.stack { display: grid; gap: var(--space-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--font-mono); color: var(--ink-muted); letter-spacing: .02em; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); }

/* ---------- buttons ---------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding-inline: 20px; border-radius: var(--radius-md); font: 600 15px/1 var(--font-sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn-lg { --h: 52px; padding-inline: 26px; font-size: 16px; }
.btn-sm { --h: 36px; padding-inline: 14px; font-size: 14px; }
.btn-primary { background: var(--ice); color: var(--on-ice); }
.btn-primary:hover { background: var(--chrome-highlight); }
.btn-primary .arr { transition: transform .2s var(--ease); }
.btn-primary:hover .arr { transform: translateX(3px); }
[dir="rtl"] .btn-primary .arr { transform: scaleX(-1); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-control); }
.btn-secondary:hover { background: var(--bg-raised); }
.btn-ghost { background: transparent; color: var(--ice); padding-inline: 4px; }
.btn-ghost:hover { color: var(--chrome-highlight); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.arr { width: 16px; height: 16px; flex: none; }

/* ---------- header ---------- */
.site-header { color: var(--ink); position: fixed; z-index: 50; inset: 0 0 auto; top: env(safe-area-inset-top, 0px); transition: background-color .25s var(--ease), border-color .25s var(--ease); border-bottom: 1px solid transparent; }
.site-header.solid, .site-header.always-solid { background: color-mix(in srgb, var(--bg-void) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--border-hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--font-display); letter-spacing: -.01em; }
.brand img { width: 36px; height: auto; }
.brand b { font-weight: 600; color: var(--chrome-highlight); }
.nav-links { display: none; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; font-size: 15px; color: var(--ink-muted); text-decoration: none; border-radius: var(--radius-md); transition: color .2s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ice); border-radius: 0; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-actions .btn-secondary { display: none; }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--border-control); border-radius: var(--radius-md); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; inset-inline: 0; height: 1.5px; background: var(--ink); transition: transform .2s var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1080px) { .nav-links { display: flex; } .menu-btn { display: none; } .nav-actions .btn-secondary { display: inline-flex; } }
.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--bg-void); padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter-r) 32px var(--gutter-l); display: grid; align-content: start; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility .2s; overflow-y: auto; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font: 500 30px/1.25 var(--font-display); text-decoration: none; padding-block: 8px; border-bottom: 1px solid var(--border-hairline); display: flex; justify-content: space-between; align-items: baseline; }
.mobile-menu a small { font: 400 13px var(--font-mono); color: var(--ink-subtle); }
.mobile-menu .row { margin-top: 24px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: max(640px, 100svh); overflow: hidden; isolation: isolate; background: var(--bg-void); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media .scene-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 9s linear; }
.hero-media .scene-img.on { opacity: 1; transform: scale(1); }
.hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--scrim) 2%, color-mix(in srgb, var(--scrim) 55%, transparent) 38%, color-mix(in srgb, var(--scrim) 10%, transparent) 70%),
    linear-gradient(to right, color-mix(in srgb, var(--scrim) 70%, transparent), transparent 55%); }
.hero-inner { position: relative; min-height: inherit; display: grid; grid-template-rows: 1fr auto; padding-top: 96px; padding-bottom: 28px; }
.hero-copy { align-self: end; display: grid; gap: 22px; max-width: 760px; padding-bottom: 28px; }
.hero-copy .t-display { min-height: 2em; }
.hero-copy .word { display: inline-block; transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.hero-copy.swap .word { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-muted); max-width: 52ch; transition: opacity .5s var(--ease); }
.hero-copy.swap .hero-sub { opacity: 0; }
.hero-foot { display: grid; gap: 20px; border-top: 1px solid color-mix(in srgb, var(--chrome) 22%, transparent); padding-top: 18px; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 1fr auto; align-items: center; } }
.scene-tabs { display: flex; gap: 10px; }
.scene-tab { position: relative; display: grid; gap: 6px; min-width: 0; flex: 1 1 0; max-width: 220px; text-align: start; background: transparent; border: 0; padding: 10px 0 0; cursor: pointer; color: var(--ink-subtle); }
.scene-tab .bar { position: absolute; inset: 0 0 auto; height: 2px; background: color-mix(in srgb, var(--chrome) 25%, transparent); border-radius: 2px; overflow: hidden; }
.scene-tab .bar i { position: absolute; inset: 0; background: var(--ice); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .scene-tab .bar i { transform-origin: right; }
.scene-tab[aria-selected="true"] { color: var(--ink); }
.scene-tab .n { font: 500 12px var(--font-mono); }
.scene-tab .l { font-size: 14px; font-weight: 500; }
.hero-stats { display: flex; gap: 36px; }
.stat-big { display: grid; gap: 4px; }
.stat-big .v { font: 500 clamp(30px, 3vw, 44px)/1 var(--font-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-big .k { font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.demo-note { font: 400 11px var(--font-mono); color: var(--ink-subtle); }

/* pins */
.pins { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.pins svg.thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.thread path { fill: none; stroke: var(--ice); stroke-width: 1.4; stroke-dasharray: 5 7; opacity: .75; }
.thread path.draw { stroke-dashoffset: 0; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -24; } }
.pin { position: absolute; pointer-events: auto; transform: translate(-9px, -9px); display: flex; align-items: flex-start; gap: 12px; opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.pin.in { opacity: 1; }
.pin .card { margin-top: -8px; }
.pin.left { flex-direction: row-reverse; transform: translate(calc(-100% + 9px), -9px); }
.pin.left .card { text-align: end; }
.pin .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--chrome); background: color-mix(in srgb, var(--bg-void) 60%, transparent); flex: none; display: grid; place-items: center; transition: border-color .3s var(--ease); }
.pin .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--chrome); transition: background .3s; }
.pin.active .dot { border-color: var(--ice); }
.pin.active .dot::after { background: var(--ice); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ice) 50%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.pin .card { background: color-mix(in srgb, var(--bg-void) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-hairline); border-radius: var(--radius-sm); padding: 9px 12px; font: 500 12.5px/1.3 var(--font-mono); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; color: var(--ink); text-decoration: none; display: block; max-width: 330px; transition: border-color .3s var(--ease), padding .3s var(--ease); }
.pin .card time { color: var(--ice); margin-inline-end: 8px; }
.pin .card .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); text-transform: none; letter-spacing: 0; font-family: var(--font-sans); white-space: normal; }
.pin .card .more > div { overflow: hidden; }
.pin .card .more b { display: block; font: 600 17px/1.2 var(--font-display); margin-top: 8px; }
.pin .card .more span { display: block; font-size: 13.5px; color: var(--ink-muted); margin-top: 4px; padding-bottom: 2px; }
.pin.active .card { border-color: color-mix(in srgb, var(--ice) 55%, transparent); }
.pin.active .card .more, .pin:hover .card .more { grid-template-rows: 1fr; }
.pin-feed { display: none; }
@media (max-width: 899px) {
  .pins { display: none; }
  .pin-feed { display: grid; gap: 8px; margin-top: 4px; list-style: none; padding: 0; }
  .pin-feed li { display: flex; gap: 10px; align-items: center; font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .03em; padding: 9px 12px; border: 1px solid var(--border-hairline); background: color-mix(in srgb, var(--bg-void) 80%, transparent); border-radius: var(--radius-sm); opacity: .45; transition: opacity .35s, border-color .35s; }
  .pin-feed li time { color: var(--ice); }
  .pin-feed li.on { opacity: 1; border-color: color-mix(in srgb, var(--ice) 50%, transparent); }
  .hero-stats { gap: 24px; }
  .hero-scrim { background: linear-gradient(to top, var(--scrim) 30%, color-mix(in srgb, var(--scrim) 70%, transparent) 70%, color-mix(in srgb, var(--scrim) 35%, transparent)); }
  .scene-tab .l { font-size: 13px; }
}

/* cursor plate */
.cursor-plate { position: fixed; z-index: 70; top: 0; left: 0; pointer-events: none; padding: 8px 12px; border-radius: var(--radius-pill); background: var(--ice); color: var(--on-ice); font: 600 13px/1 var(--font-sans); white-space: nowrap; opacity: 0; transform: translate3d(-100px,-100px,0) scale(.6); transition: opacity .2s var(--ease); display: flex; align-items: center; gap: 6px; }
.cursor-plate.on { opacity: 1; }
@media (hover: none) { .cursor-plate { display: none; } }

/* ---------- statement (scroll-lit words) ---------- */
.statement p { font: 500 clamp(26px, 3.6vw, 52px)/1.16 var(--font-display); letter-spacing: -.02em; max-width: 30ch; }
.statement .w { color: color-mix(in srgb, var(--ink) 24%, transparent); transition: color .25s linear; }
.statement .w.lit { color: var(--ink); }
.statement .w.lit.key { color: var(--ice); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--border-hairline); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; margin-top: var(--space-8); }
.figures .figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) { .figures { grid-template-columns: repeat(5, minmax(0,1fr)); } .figures .figure:last-child:nth-child(odd) { grid-column: auto; } }
.figure { background: var(--bg-void); padding: 24px; display: grid; gap: 10px; align-content: start; min-height: 150px; }
.figure .v { font: 500 clamp(34px, 3.4vw, 48px)/1 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.figure .v .u { color: var(--ice); }
.figure .k { font-size: 14px; color: var(--ink-muted); max-width: 20ch; }
.figure:first-child .v { color: var(--chrome-highlight); font-size: clamp(26px, 2.4vw, 34px); }

/* rolling digits */
.roll { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.roll .col { display: flex; flex-direction: column; transition: transform 1.2s var(--ease); }
.roll .col span { height: 1em; display: block; }

/* ---------- night log ---------- */
.nightlog { display: grid; gap: var(--space-6); }
@media (min-width: 1000px) { .nightlog { grid-template-columns: 1.05fr 1fr; align-items: stretch; } }
.nl-photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 320px; background: var(--bg-surface) center/cover no-repeat; border: 1px solid var(--border-hairline); }
.nl-photo .tag { position: absolute; inset-inline-start: 18px; bottom: 18px; }
.log { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); padding: 22px; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; min-height: 460px; min-width: 0; }
.log-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.log-head .live { display: inline-flex; gap: 8px; align-items: center; font: 500 12px var(--font-mono); color: var(--success); }
.log-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 1.6s infinite; }
.log-head .live.paused { color: var(--warning); }
.log-head .live.paused::before { background: var(--warning); animation: none; }
.log-count { font: 500 13px var(--font-mono); color: var(--ink-muted); }
.log-count b { color: var(--ink); font-weight: 500; font-size: 22px; margin-inline-end: 6px; }
.log-lines { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; mask-image: linear-gradient(to bottom, transparent, #000 30%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); min-height: 300px; }
.log-line { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 4px 14px; padding: 10px 8px; border-radius: var(--radius-sm); font: 400 13.5px/1.45 var(--font-mono); color: var(--ink-subtle); transition: color .4s, background .2s; cursor: default; }
.log-line time { color: inherit; }
.log-line .ev { color: var(--ink-muted); min-width: 0; overflow-wrap: anywhere; }
.log-line .meta { grid-column: 2; font-size: 12px; color: var(--ink-subtle); }
.log-line .meta .ok { color: var(--success); }
.log-line.newest { color: var(--ice); }
.log-line.newest .ev { color: var(--ink); }
.log-line:hover { background: var(--bg-raised); }
.log-line .caret { display: inline-block; width: 8px; height: 1em; background: var(--ice); vertical-align: -2px; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.log-foot { font-size: 13px; color: var(--ink-subtle); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- domains (hover list + floating preview) ---------- */
.domains { border-top: 1px solid var(--border-hairline); }
.domain { display: grid; grid-template-columns: 1fr; gap: 10px; padding-block: 26px; border-bottom: 1px solid var(--border-hairline); text-decoration: none; position: relative; }
@media (min-width: 900px) { .domain { grid-template-columns: 70px 1.1fr 1.4fr 40px; align-items: center; gap: 24px; padding-block: 34px; } }
.domain .idx { font: 500 13px var(--font-mono); color: var(--ink-subtle); }
.domain h3 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.015em; transition: color .2s var(--ease), transform .3s var(--ease); }
.domain p { color: var(--ink-muted); font-size: 15px; max-width: 52ch; }
.domain .go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-control); display: none; place-items: center; transition: background .2s, border-color .2s, color .2s; }
@media (min-width: 900px) { .domain .go { display: grid; } }
.domain:hover h3 { color: var(--ice); transform: translateX(6px); }
[dir="rtl"] .domain:hover h3 { transform: translateX(-6px); }
.domain:hover .go { background: var(--ice); border-color: var(--ice); color: var(--on-ice); }
.float-preview { position: fixed; z-index: 40; top: 0; left: 0; width: 340px; pointer-events: none; opacity: 0; transform: translate3d(-999px,-999px,0); transition: opacity .25s var(--ease); }
.float-preview.on { opacity: 1; }
@media (hover: none), (max-width: 899px) { .float-preview { display: none; } }

/* mini screens (used in floating previews and product cards) */
.screen { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); padding: 14px; display: grid; gap: 10px; font-size: 12px; }
.screen .bar3 { display: flex; gap: 5px; } .screen .bar3 i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-control); }
.screen .ttl { font: 600 13px var(--font-display); display: flex; justify-content: space-between; align-items: center; }
.screen .ttl em { font: 500 11px var(--font-mono); font-style: normal; color: var(--ink-subtle); }
.screen .ln { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-raised); font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-muted); }
.screen .ln b { color: var(--ink); font-weight: 500; }
.screen .ln .ok { color: var(--success); }
.screen .chat { display: grid; gap: 6px; }
.screen .bub { max-width: 82%; padding: 8px 10px; border-radius: 12px; background: var(--bg-raised); color: var(--ink); font-size: 12px; line-height: 1.4; }
.screen .bub.me { justify-self: end; background: var(--ice-tint); border: 1px solid color-mix(in srgb, var(--ice) 35%, transparent); }
.screen .spark { height: 64px; width: 100%; }
.screen .spark path.l { fill: none; stroke: var(--ice); stroke-width: 2; }
.screen .spark path.a { fill: var(--ice-tint); }
.screen .bars { display: flex; align-items: end; gap: 6px; height: 70px; }
.screen .bars i { flex: 1; background: color-mix(in srgb, var(--chrome) 40%, transparent); border-radius: 3px 3px 0 0; }
.screen .bars i.hi { background: var(--ice); }

/* ---------- flow (auxia-style sweep) ---------- */
.flow { position: relative; }
.flow-track { position: relative; height: 320vh; }
.flow-sticky { position: sticky; top: 0; height: 100svh; display: grid; align-content: center; gap: 36px; overflow: hidden; padding-top: 72px; }
.flow-rail { position: relative; height: 56px; }
.flow-rail .base { position: absolute; inset-inline: 0; top: 50%; height: 1px; background: var(--border-hairline); }
.flow-rail .beam { position: absolute; inset-inline-start: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--ice); width: 0; }
.flow-rail .beam::after { content: ""; position: absolute; inset-inline-end: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); }
.flow-steps { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.flow-chip { display: inline-flex; gap: 8px; align-items: center; font: 500 11.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--radius-pill); background: var(--bg-surface); border: 1px solid var(--border-hairline); color: var(--ink-subtle); transition: color .3s, border-color .3s, background .3s; white-space: nowrap; }
.flow-chip svg { width: 13px; height: 13px; }
.flow-chip.on { color: var(--ink); border-color: color-mix(in srgb, var(--ice) 60%, transparent); }
.flow-chip.now { background: var(--ice); color: var(--on-ice); border-color: var(--ice); }
.flow-stage { display: grid; gap: 20px; }
@media (min-width: 1000px) { .flow-stage { grid-template-columns: .8fr 1.1fr 1fr; align-items: start; } }
.flow-copy { display: grid; gap: 14px; align-content: start; }
.flow-copy .t-h2 { min-height: 2.3em; }
.panel { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); overflow: hidden; min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-hairline); font: 600 15px var(--font-display); }
.panel-h em { font: 500 12px var(--font-mono); font-style: normal; color: var(--ink-subtle); }
.panel-b { padding: 18px 20px; display: grid; gap: 10px; }
.node { display: flex; align-items: center; gap: 10px; justify-content: center; font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px; border: 1px solid var(--border-hairline); border-radius: var(--radius-pill); background: var(--bg-raised); color: var(--ink-subtle); width: fit-content; margin-inline: auto; transition: all .3s var(--ease); }
.node.on { color: var(--ink); border-color: var(--border-control); }
.node.now { background: var(--ice); color: var(--on-ice); border-color: var(--ice); }
.node-link { width: 1px; height: 14px; background: var(--border-control); margin-inline: auto; }
.cfg { border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 12px; display: grid; gap: 6px; }
.cfg .t-label { color: var(--ice); }
.cfg .kv { display: flex; justify-content: space-between; gap: 10px; font: 400 12px var(--font-mono); padding: 6px 8px; background: var(--bg-raised); border-radius: 4px; color: var(--ink-subtle); }
.cfg .kv b { font-weight: 500; color: var(--ink); text-align: end; overflow-wrap: anywhere; }
.checks { display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-hairline); color: var(--ink-subtle); font-size: 14px; transition: all .3s var(--ease); }
.check i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-control); display: grid; place-items: center; }
.check i svg { width: 14px; height: 14px; opacity: 0; }
.check.done { color: var(--ink); background: var(--bg-raised); }
.check.done i { background: var(--success); border-color: var(--success); color: var(--on-ice); }
.check.done i svg { opacity: 1; }
.check.now { color: var(--ink); border-color: color-mix(in srgb, var(--ice) 55%, transparent); }
.check.now i { border-color: var(--ice); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 999px) {
  .flow-track { height: auto; }
  .flow-sticky { position: relative; height: auto; padding-block: 24px; }
  .flow-rail { display: none; }
}

/* ---------- products ---------- */
.prod-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (max-width: 699px) { .prod { min-height: 0; } }
@media (min-width: 700px) { .prod-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .prod-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.prod { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 24px; background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); text-decoration: none; min-height: 270px; transition: background .2s var(--ease), border-color .2s var(--ease); overflow: hidden; }
.prod:hover { background: var(--bg-raised); border-color: var(--border-control); }
.tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 10px; border-radius: var(--radius-pill); border: 1px solid var(--chrome); color: var(--chrome); font: 600 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ice { color: var(--ice); border-color: var(--ice); }
.tag.soon { color: var(--warning); border-color: var(--warning); }
.prod h3 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.prod p { font-size: 14.5px; color: var(--ink-muted); }
.prod .foot { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--font-mono); color: var(--ink-subtle); padding-top: 14px; border-top: 1px solid var(--border-hairline); }
.prod .foot .go { color: var(--ice); display: inline-flex; gap: 6px; align-items: center; }
.prod.feature { background: var(--bg-surface); }
@media (min-width: 1100px) { .prod.wide { grid-column: span 2; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border-hairline); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marq 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { font: 500 clamp(22px, 2.4vw, 34px)/1 var(--font-display); color: var(--ink-subtle); text-decoration: none; padding: 26px 30px; display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; transition: color .2s; }
.marquee a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--border-control); }
.marquee a:hover { color: var(--ink); }
@keyframes marq { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* ---------- floating cluster (mondragon-style cursor parallax) ---------- */
.drift { position: relative; min-height: 640px; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border-hairline); background: var(--bg-surface); }
.drift-copy { position: relative; z-index: 2; text-align: center; max-width: 640px; display: grid; gap: 18px; justify-items: center; padding: 40px 20px; }
.drift-copy .t-h1 { background: var(--bg-surface); }
.drift-item { position: absolute; z-index: 1; width: clamp(110px, 12vw, 172px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-hairline); box-shadow: var(--shadow-float); transition: transform .9s var(--ease); will-change: transform; animation: bob 7s ease-in-out infinite; }
.drift-item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.drift-item .screen { box-shadow: none; border: 0; border-radius: 0; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 799px) { .drift-item { display: none; } .drift { min-height: 0; } }

/* ---------- clients ---------- */
.clients { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border-hairline); }
@media (min-width: 800px) { .clients { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.client { display: grid; gap: 10px; padding: 30px 4px; border-bottom: 1px solid var(--border-hairline); text-decoration: none; }
@media (min-width: 800px) { .client:nth-child(odd) { border-inline-end: 1px solid var(--border-hairline); padding-inline-end: 32px; } .client:nth-child(even) { padding-inline-start: 32px; } }
.client .nm { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.client h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; transition: color .2s; }
.client:hover h3 { color: var(--ice); }
.client .sector { font: 500 12px var(--font-mono); color: var(--ink-subtle); text-transform: uppercase; letter-spacing: .06em; }
.client p { color: var(--ink-muted); font-size: 15px; max-width: 54ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 12px var(--font-mono); padding: 5px 9px; border-radius: var(--radius-pill); background: var(--bg-raised); color: var(--ink-muted); }

/* ---------- process ---------- */
.steps { display: grid; gap: var(--space-5); counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.step { position: relative; display: grid; gap: 12px; padding-top: 26px; border-top: 1px solid var(--border-hairline); align-content: start; }
.step::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; height: 1px; width: 0; background: var(--ice); transition: width 1s var(--ease); }
.step.seen::before { width: 100%; }
.step .n { font: 500 13px var(--font-mono); color: var(--ice); }
.step h3 { font-size: 24px; font-weight: 500; }
.step p { color: var(--ink-muted); font-size: 15px; }
.step .when { font: 500 12px var(--font-mono); color: var(--ink-subtle); margin-top: 6px; }

/* ---------- blog ---------- */
.posts { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .posts { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.post-card { display: grid; gap: 14px; text-decoration: none; align-content: start; }
.post-card .ph { aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border-hairline); }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .ph img { transform: scale(1.04); }
.post-card .meta { display: flex; gap: 10px; font: 500 12px var(--font-mono); color: var(--ink-subtle); flex-wrap: wrap; }
.post-card h3 { font-size: 21px; font-weight: 500; line-height: 1.25; transition: color .2s; }
.post-card:hover h3 { color: var(--ice); }
.post-card p { color: var(--ink-muted); font-size: 14.5px; }
.ph-gen { width: 100%; height: 100%; display: grid; place-items: center; background: var(--bg-surface); }
.ph-gen svg { width: 100%; height: 100%; }
.demo-badge { display: inline-flex; font: 500 11px var(--font-mono); color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 50%, transparent); padding: 3px 7px; border-radius: var(--radius-sm); }

/* ---------- CTA / forms ---------- */
.cta { display: grid; gap: var(--space-7); }
@media (min-width: 1000px) { .cta { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.form { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--ink-subtle); }
.input, .select, .textarea { width: 100%; min-width: 0; background: var(--bg-raised); border: 1px solid var(--border-control); color: var(--ink); border-radius: var(--radius-sm); padding: 12px 14px; font: 400 15px/1.4 var(--font-sans); transition: border-color .2s; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--ice); }
.input::placeholder, .textarea::placeholder { color: var(--ink-subtle); }
.field.filled .input, .field.filled .textarea, .field.filled .select { border-color: color-mix(in srgb, var(--ice) 60%, transparent); }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt { position: relative; }
.pill-opt input { position: absolute; opacity: 0; inset: 0; }
.pill-opt span { display: inline-flex; padding: 9px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-control); font-size: 14px; color: var(--ink-muted); cursor: pointer; transition: all .2s; }
.pill-opt input:checked + span { background: var(--ice-tint); border-color: var(--ice); color: var(--ink); }
.pill-opt input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.form-status { font-size: 14px; padding: 12px 14px; border-radius: var(--radius-md); display: flex; gap: 10px; align-items: flex-start; }
.form-status.ok { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); }
.form-status.err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.form-status.info { background: var(--ice-tint); color: var(--ink); }
.prefill-note { font: 500 12px var(--font-mono); color: var(--ice); display: flex; gap: 8px; align-items: center; }
.contact-list { display: grid; gap: 14px; margin-top: 12px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font: 500 12px var(--font-mono); color: var(--ink-subtle); text-transform: uppercase; letter-spacing: .06em; }
.contact-list dd { margin: 0; font-size: 17px; user-select: all; }

/* ---------- inner page header ---------- */
.page-hero { padding-top: calc(140px + env(safe-area-inset-top, 0px)); padding-bottom: 56px; border-bottom: 1px solid var(--border-hairline); position: relative; overflow: hidden; }
.page-hero .crumbs { font: 500 12px var(--font-mono); color: var(--ink-subtle); display: flex; gap: 8px; margin-bottom: 22px; }
.page-hero .crumbs a { text-decoration: none; color: var(--ink-muted); }
.page-hero .crumbs a:hover { color: var(--ice); }
.page-hero .t-h1 { max-width: 18ch; }
.page-hero .t-lead { margin-top: 20px; }
.page-hero .thread-deco { position: absolute; inset-inline-end: -40px; top: 90px; width: 520px; height: 260px; opacity: .6; pointer-events: none; }
@media (max-width: 900px) { .page-hero .thread-deco { display: none; } }

/* ---------- prose ---------- */
.prose { max-width: 70ch; display: grid; gap: 18px; color: var(--ink-muted); font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 26px; font-weight: 500; color: var(--ink); margin-top: 22px; }
.prose h3 { font-size: 20px; font-weight: 500; color: var(--ink); margin-top: 8px; }
.prose ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 8px; }
.prose a { color: var(--ice); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 0; padding: 16px 20px; border-radius: var(--radius-md); background: var(--ice-tint); color: var(--ink); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-raised); padding: 2px 6px; border-radius: 4px; color: var(--ink); }
.legal-note { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 14px 16px; font-size: 14px; color: var(--ink-muted); }

/* ---------- cards generic ---------- */
.card { background: var(--bg-surface); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.cards3 { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .cards3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cards2 { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .cards2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--border-hairline); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .tool-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1000px) { .tool-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.tool { background: var(--bg-void); padding: 20px; display: grid; gap: 6px; text-decoration: none; transition: background .2s; min-width: 0; }
.tool:hover { background: var(--bg-surface); }
.tool b { font: 500 18px var(--font-display); }
.tool span { font-size: 13px; color: var(--ink-muted); }
.tool em { font: 400 11.5px var(--font-mono); font-style: normal; color: var(--ink-subtle); overflow-wrap: anywhere; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-bar button { background: transparent; border: 1px solid var(--border-control); color: var(--ink-muted); padding: 8px 14px; border-radius: var(--radius-pill); cursor: pointer; font-size: 14px; }
.filter-bar button[aria-pressed="true"] { background: var(--ice); color: var(--on-ice); border-color: var(--ice); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-hairline); padding-block: 64px 32px; margin-top: 0; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, minmax(0,1fr)); } }
.foot-grid h4 { font: 600 12px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--ink-muted); font-size: 15px; }
.foot-grid a:hover { color: var(--ice); }
.foot-sign { display: grid; gap: 16px; align-content: start; }
.foot-sign p { color: var(--ink-muted); max-width: 40ch; }
.news { display: flex; gap: 8px; max-width: 420px; }
.news .input { flex: 1; }
.foot-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border-hairline); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-subtle); }
.foot-base nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-base a { color: var(--ink-subtle); text-decoration: none; }
.foot-base a:hover { color: var(--ink); }
.foot-word { font: 600 clamp(64px, 17vw, 260px)/.8 var(--font-display); letter-spacing: -.045em; color: var(--bg-raised); margin-top: 48px; user-select: none; white-space: nowrap; overflow: hidden; }
.foot-word span { color: var(--chrome); opacity: .35; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 90; inset-inline: 0; margin-inline: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: fit-content; max-width: calc(100% - 32px); background: var(--bg-raised); border: 1px solid var(--border-control); color: var(--ink); padding: 12px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-float); font-size: 14px; transform: translateY(20px); opacity: 0; transition: all .25s var(--ease); pointer-events: none; }
.toast.on { transform: none; opacity: 1; }

/* ---------- reveal (content visible at rest; motion only enhances) ---------- */
.js .rv { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.pre { transform: translateY(22px); }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.nf .code { font: 500 clamp(110px, 22vw, 280px)/.9 var(--font-mono); letter-spacing: -.06em; color: var(--chrome-highlight); }
.nf .code .hl { color: var(--ice); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-media .scene-img { transform: none !important; }
}

/* =====================================================================
   v2 — dark-to-light zone, flip products, story cluster, tool sphere,
   floating client cards, Mondragon product rows, service snapshots
   ===================================================================== */

/* ---------- tone scopes (Brand Kit light column) ---------- */
.tone-light, .site-header.on-light {
  --bg-void: #f4f6f9; --bg-surface: #ffffff; --bg-raised: #eceff3;
  --border-hairline: #d8dde4; --border-control: #7d8796;
  --ink: #0f1115; --ink-muted: #4a5361; --ink-subtle: #5f6875;
  --chrome: #6e7682; --chrome-highlight: #3a414c;
  --ice: #0b6a9a; --on-ice: #ffffff; --ice-tint: #0b6a9a14;
  --success: #0f766e; --warning: #92400e; --danger: #b42318;
  --shadow-float: 0 12px 32px #0f111524; --scrim: #f4f6f9;
  color-scheme: light;
}
.tone-dark {
  --bg-void: #111111; --bg-surface: #181a1e; --bg-raised: #212429;
  --border-hairline: #2b2f36; --border-control: #6c7582;
  --ink: #eef1f4; --ink-muted: #a3abb6; --ink-subtle: #868f9b;
  --chrome: #b6bbc1; --chrome-highlight: #e1e5e8;
  --ice: #8ed2f7; --on-ice: #0f1115; --ice-tint: #8ed2f71f;
  --success: #5eead4; --warning: #fbbf24; --danger: #f87171;
  --shadow-float: 0 12px 32px #00000080; --scrim: #111111;
  color-scheme: dark;
}
.tone-light, .tone-dark { background: var(--bg-void); color: var(--ink); }
.tone-fade { height: clamp(140px, 20vw, 300px); background: linear-gradient(to bottom, #111111, #2a2d33 30%, #c9ced6 75%, #f4f6f9); }
.tone-fade.up { background: linear-gradient(to bottom, #f4f6f9, #c9ced6 25%, #2a2d33 70%, #111111); }
.site-header.on-light .brand b { color: var(--ink); }
.site-header.on-light .menu-btn span, .site-header.on-light .menu-btn span::before, .site-header.on-light .menu-btn span::after { background: var(--ink); }
.menu-open .site-header.on-light .menu-btn span { background: transparent; }

/* ---------- 2. flip product cards ---------- */
.flip-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .flip-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .flip-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.flip { perspective: 1200px; min-height: 350px; outline: none; }
.flip-inner { position: relative; height: 100%; min-height: 350px; transform-style: preserve-3d; transition: transform .75s var(--ease); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
.flip.is-flipped .flip-inner { transform: rotateY(calc(180deg + var(--ry, 0deg))) rotateX(var(--rx, 0deg)); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius-lg); padding: 24px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; overflow: hidden; }
.flip-front { background: var(--bg-surface); border: 1px solid var(--border-hairline); }
.flip-front .logo-coin { flex: none; width: 82px; height: 34px; border-radius: 10px; background: #ffffff center/88% auto no-repeat; border: 1px solid var(--border-hairline); animation: coin 6s ease-in-out infinite; }
@keyframes coin { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-4deg); } }
.flip-front .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.flip-front h3 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.flip-front p { font-size: 14.5px; color: var(--ink-muted); }
.flip-front .hint { font: 500 12px var(--font-mono); color: var(--ink-subtle); display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-hairline); }
.flip-back { transform: rotateY(180deg); background: var(--pc); color: var(--pfg); grid-template-rows: auto 1fr auto; }
.flip-back .logo-chip { width: 100%; height: 76px; border-radius: 14px; background: #ffffff center/contain no-repeat; background-size: auto 70%; box-shadow: 0 10px 24px #0000002e; animation: chip 5s ease-in-out infinite; }
@keyframes chip { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
.flip-back .peek { border-radius: 10px; overflow: hidden; box-shadow: 0 10px 24px #00000033; transform: translateY(8px); transition: transform .6s var(--ease) .15s; align-self: end; aspect-ratio: 16/10; background: #ffffff center top/cover no-repeat; }
.flip.is-flipped .flip-back .peek { transform: translateY(0); }
.flip-back .row { justify-content: space-between; }
.flip-back b { font: 600 20px var(--font-display); }
.flip-back .go { display: inline-flex; gap: 8px; align-items: center; height: 38px; padding-inline: 14px; border-radius: var(--radius-md); background: var(--pfg); color: var(--pc); font: 600 14px var(--font-sans); text-decoration: none; }
.flip-back .dots { display: flex; gap: 6px; }
.flip-back .dots i { width: 14px; height: 14px; border-radius: 50%; }
.flip:focus-visible .flip-front { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- 3. story cluster ---------- */
.drift { min-height: 780px; }
.drift-copy .t-h1 { background: transparent; }
.drift-item { animation: none; width: var(--w, 140px); transition: none; }
.drift-float { animation: float var(--fd, 9s) ease-in-out infinite; animation-delay: var(--fdl, 0s); }
@keyframes float { 0%,100% { translate: 0 0; } 25% { translate: 6px -12px; } 50% { translate: -4px -4px; } 75% { translate: -8px 8px; } }
.drift-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-hairline); box-shadow: var(--shadow-float); transition: transform .9s var(--ease); background: var(--bg-surface); }
.drift-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.drift-card .screen { box-shadow: none; border: 0; border-radius: 0; }
@media (max-width: 799px) {
  .drift { min-height: 0; padding-block: 150px; }
  .drift-item { display: none; }
  .drift-item.m { display: block; --w: 76px !important; }
}

/* ---------- 4. tool sphere ---------- */
.sphere { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-hairline); background: var(--bg-void); }
.sphere canvas { display: block; width: 100%; height: clamp(460px, 62vw, 720px); cursor: grab; touch-action: pan-y; }
.sphere canvas.dragging { cursor: grabbing; }
.sphere .hud { position: absolute; pointer-events: none; font: 500 12px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-subtle); }
.sphere .hud b { color: var(--ink); font-weight: 500; }
.sphere .hud.tl { top: 24px; inset-inline-start: 24px; }
.sphere .hud.tr { top: 24px; inset-inline-end: 24px; text-align: end; }
.sphere .hud.tr b { font: 500 22px var(--font-display); text-transform: none; letter-spacing: 0; }
.sphere .copy { position: absolute; inset-inline-start: 24px; bottom: 24px; max-width: 420px; display: grid; gap: 12px; pointer-events: none; }
.sphere .copy .t-h2 { pointer-events: none; }
.sphere .copy a { pointer-events: auto; justify-self: start; }
.sphere .now { position: absolute; inset-inline-end: 24px; bottom: 24px; width: min(300px, 46%); border-top: 1px solid var(--border-hairline); padding-top: 12px; display: grid; gap: 4px; pointer-events: none; }
.sphere .now span { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-subtle); }
.sphere .now b { font: 500 24px var(--font-display); color: var(--ice); }
.sphere .now em { font-style: normal; font-size: 14px; color: var(--ink-muted); }
@media (max-width: 700px) { .sphere .now { display: none; } .sphere .hud.tr { display: none; } .sphere .copy { inset-inline-end: 24px; } }

/* ---------- 5. floating client cards ---------- */
.cl-grid { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .cl-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .cl-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cl-col { display: grid; gap: 18px; }
.cl-card { position: relative; border-radius: 40px; background: var(--bg-surface); padding: 40px; display: grid; gap: 14px; isolation: isolate; animation: float 11s ease-in-out infinite; animation-delay: var(--fdl, 0s); }
.cl-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--ice), transparent 70%), var(--border-hairline); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .55; transition: opacity .3s var(--ease); z-index: -1; pointer-events: none; }
.cl-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--ice-tint), transparent 60%); opacity: 0; transition: opacity .3s var(--ease); z-index: -1; pointer-events: none; }
.cl-card:hover::before { opacity: 1; } .cl-card:hover::after { opacity: 1; }
.cl-card .av { width: 104px; height: 104px; border-radius: 50%; background: #ffffff center/80% no-repeat; border: 1px solid var(--border-hairline); box-shadow: 0 6px 16px #0f111514; }
.cl-card .q { position: absolute; top: 34px; inset-inline-end: 40px; font: 600 72px/1 var(--font-display); color: color-mix(in srgb, var(--chrome) 45%, transparent); }
.cl-card h3 { font-size: 20px; font-weight: 600; margin-top: 10px; }
.cl-card .role { color: var(--ink-muted); font-size: 16px; }
.cl-card blockquote { margin: 18px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink); }
.cl-card .pending { margin-top: 18px; font-size: 15px; color: var(--ink-subtle); font-style: italic; display: grid; gap: 8px; }
.cl-feature { text-decoration: none; position: relative; border-radius: 40px; overflow: hidden; min-height: 460px; display: grid; align-content: end; padding: 40px; color: #eef1f4; animation: float 12s ease-in-out infinite; animation-delay: -4s; isolation: isolate; }
.cl-feature img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.55); z-index: -1; transition: transform .8s var(--ease); }
.cl-feature:hover img.bg { transform: scale(1.04); }
.cl-feature .lg { height: 40px; width: auto; border-radius: 8px; margin-bottom: 22px; }
.cl-feature h3 { color: #eef1f4; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; font-weight: 600; }

/* ---------- 6. Mondragon-style product rows ---------- */
.mrows { display: grid; gap: 22px; }
.mrow { display: grid; gap: 6px; grid-template-columns: 1fr; }
@media (min-width: 980px) {
  .mrow { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 150px; min-height: 440px; }
  .mrow.alt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 150px; }
  .mrow.alt .m-img { order: -1; }
}
.m-text, .m-img, .m-rail { background: var(--bg-surface); border: 2px solid #ffffff; border-radius: 12px; }
.m-text { padding: clamp(28px, 5vw, 88px) clamp(24px, 5vw, 88px); display: grid; align-content: center; gap: 22px; }
.m-text .m-tag { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.m-text .m-tag i { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 25%, transparent); }
.m-text h2 { font: 400 clamp(34px, 3.6vw, 52px)/1.04 var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.m-text p { font-size: 18px; line-height: 1.65; color: var(--ink-muted); max-width: 46ch; }
.m-text .chips .chip { background: var(--bg-raised); }
.m-img { position: relative; overflow: hidden; min-height: 300px; display: block; padding: 0; background: var(--pc); }
.m-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1s var(--ease); transform: scale(1.02) translate(var(--px, 0), var(--py, 0)); }
.m-img:hover img { transform: scale(1.08) translate(var(--px, 0), var(--py, 0)); }
.m-img .badge { position: absolute; inset-inline-start: 16px; bottom: 16px; background: #ffffffee; color: #0f1115; border-radius: 10px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; font: 500 12px var(--font-mono); }
.m-img .badge img { position: static; width: auto; height: 22px; transform: none !important; border-radius: 4px; }
.m-rail { display: grid; place-items: center; text-decoration: none; color: var(--ink); font: 500 15px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; min-height: 64px; position: relative; overflow: hidden; transition: color .35s var(--ease); }
.m-rail span { position: relative; z-index: 1; }
.m-rail::before { content: ""; position: absolute; inset: 0; background: var(--pc); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.m-rail:hover::before, .m-rail:focus-visible::before { transform: scaleY(1); }
.m-rail:hover, .m-rail:focus-visible { color: var(--pfg); }
@media (min-width: 980px) { .m-rail span { writing-mode: vertical-rl; transform: rotate(180deg); } }

/* ---------- 8. service snapshots (scroll-loop "recordings") ---------- */
.snap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-hairline); background: var(--bg-surface); box-shadow: var(--shadow-float); }
.snap .chrome-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border-hairline); background: var(--bg-raised); }
.snap .chrome-bar .d { display: flex; gap: 5px; } .snap .chrome-bar .d i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-control); }
.snap .chrome-bar .u { flex: 1; min-width: 0; font: 400 12px var(--font-mono); color: var(--ink-subtle); background: var(--bg-surface); border-radius: 6px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snap .chrome-bar .rec { font: 500 11px var(--font-mono); color: var(--danger); display: inline-flex; gap: 6px; align-items: center; }
.snap .chrome-bar .rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: blink 1.4s steps(1) infinite; }
.snap .view { position: relative; height: 420px; overflow: hidden; background: #ffffff; }
.snap .view img { width: 100%; display: block; }
.snap .view img.loop { animation: scrollrec var(--dur, 30s) ease-in-out infinite alternate; }
.snap .view img.pan { height: 100%; object-fit: cover; object-position: left top; animation: panrec 18s ease-in-out infinite alternate; }
.snap:hover .view img { animation-play-state: paused; }
@keyframes scrollrec { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(calc(-100% + 420px)); } }
@keyframes panrec { from { transform: scale(1.02); object-position: left top; } to { transform: scale(1.12); object-position: right center; } }
.snap figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--ink-muted); border-top: 1px solid var(--border-hairline); }
.snap figcaption a { color: var(--ice); text-decoration: none; white-space: nowrap; }

@media (max-width: 639px) { .flip, .flip-inner { min-height: 310px; } .flip-back .peek { aspect-ratio: 16/8; } }
@media (max-width: 700px) {
  .sphere canvas { height: 420px; }
  .sphere .copy { position: static; padding: 0 20px 24px; max-width: none; }
}
.cl-feature img.bg { filter: grayscale(1) contrast(1.05) brightness(.42); }
.flip-front .tag { white-space: nowrap; }

/* =====================================================================
   v3 — water bands, flow fit, product carousel, swimming story, 4 clients,
   products page brand type + looping demos
   ===================================================================== */
.tone-fade { position: relative; height: clamp(220px, 26vw, 380px); overflow: hidden; }
.wave-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* night log video */
.nl-photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 3. flow section fits the screen ---------- */
.flow-sticky { padding-top: 84px; padding-bottom: 20px; gap: 24px; }
.flow-sticky > .wrap { gap: 22px !important; }
.flow-stage { align-items: stretch; }
.flow-stage .panel { display: grid; grid-template-rows: auto 1fr; }
.node { padding: 6px 11px; font-size: 11px; }
.node-link { height: 8px; }
.panel-b { padding: 14px 16px; gap: 8px; }
.panel-h { padding: 13px 18px; }
.cfg { padding: 10px; gap: 5px; } .cfg .kv { padding: 4px 8px; font-size: 11.5px; }
.check { padding: 8px 10px; font-size: 13.5px; grid-template-columns: 26px 1fr; } .check i { width: 26px; height: 26px; }
@media (min-width: 1000px) and (max-height: 820px) { .flow-copy .t-lead { font-size: 16px; } .flow-copy .t-h2 { font-size: 30px; } }

/* ---------- 4. product carousel ---------- */
.prod-marquee { overflow: hidden; padding-block: 12px 18px; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.prod-track { display: flex; gap: 20px; width: max-content; animation: prodmarq var(--marq, 70s) linear infinite; }
.prod-track.paused, .prod-marquee:hover .prod-track { animation-play-state: paused; }
@keyframes prodmarq { to { transform: translateX(calc(-50% - 10px)); } }
[dir="rtl"] .prod-track { animation-direction: reverse; }
.prod-track .flip { width: 300px; flex: none; min-height: 400px; }
.prod-track .flip-inner { min-height: 400px; }
.flip-front { grid-template-rows: auto auto auto 1fr auto; gap: 10px; }
.flip-front .top { align-items: flex-start; }
.flip-front .tag { font-size: 9.5px; padding: 4px 8px; letter-spacing: .07em; }
.flip-front .p-icon { width: 46px; height: 46px; border-radius: 12px; flex: none; box-shadow: 0 6px 14px #0f111522; animation: coin 6s ease-in-out infinite; }
.flip-front .line { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.flip-front .desc { font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; }
.flip-front .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border-hairline); font: 400 11.5px var(--font-mono); color: var(--ink-subtle); }
.sdot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #22c55e; box-shadow: 0 0 0 0 #22c55e88; animation: sdot 2s ease-out infinite; }
.sdot.dev { background: #fb923c; box-shadow: 0 0 0 0 #fb923c88; animation-name: sdot2; }
@keyframes sdot { 0% { box-shadow: 0 0 0 0 #22c55e99, 0 0 8px #22c55e; } 100% { box-shadow: 0 0 0 9px #22c55e00, 0 0 8px #22c55e; } }
@keyframes sdot2 { 0% { box-shadow: 0 0 0 0 #fb923c99, 0 0 8px #fb923c; } 100% { box-shadow: 0 0 0 9px #fb923c00, 0 0 8px #fb923c; } }
.flip-back { grid-template-rows: auto 1fr auto auto; gap: 16px; padding: 26px; }
.flip-back .pname { font: 600 12px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.flip-back .hook { font: 600 25px/1.12 var(--font-display); letter-spacing: -.015em; text-wrap: balance; align-self: center; }
.flip-back .pflow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 6px; }
.flip-back .pstep { display: grid; justify-items: center; gap: 6px; text-align: center; font: 500 11px/1.25 var(--font-sans); }
.flip-back .pstep i { width: 54px; height: 54px; border-radius: 14px; background: #ffffff; color: #0f1115; display: grid; place-items: center; box-shadow: 0 8px 18px #0000002a; }
.flip-back .pstep i svg { width: 26px; height: 26px; color: var(--pc); filter: saturate(1.2) brightness(.8); }
.flip-back .parr { padding-top: 18px; opacity: .7; }
.flip-back .parr svg { width: 16px; height: 16px; }
.flip.is-flipped .pstep i { animation: pop .5s var(--ease) both; }
.flip.is-flipped .pstep:nth-child(3) i { animation-delay: .12s; } .flip.is-flipped .pstep:nth-child(5) i { animation-delay: .24s; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.flip-back .go { justify-self: start; height: 42px; border-radius: 999px; padding-inline: 18px; }
@media (max-width: 639px) { .prod-track .flip { width: 264px; } }

/* ---------- 5. swimming story images ---------- */
.drift { min-height: 720px; }
.swim { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.swim-item { position: absolute; top: 0; left: 0; width: var(--s, 120px); aspect-ratio: 1; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-float); border: 1px solid var(--border-hairline); will-change: transform; background: var(--bg-raised); }
.swim-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.drift-copy { z-index: 2; background: color-mix(in srgb, var(--bg-surface) 84%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 28px; padding: 36px 32px; box-shadow: 0 10px 40px #0f11150f; margin-inline: 16px; }
@media (max-width: 799px) { .drift { min-height: 640px; padding-block: 0; } .drift-copy { padding: 26px 20px; } }

/* ---------- 6. four floating client cards ---------- */
.cl-grid.four { grid-template-columns: 1fr; }
@media (min-width: 700px) { .cl-grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1150px) { .cl-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); } .cl-grid.four .cl-card:nth-child(2) { margin-top: 56px; } .cl-grid.four .cl-card:nth-child(3) { margin-top: 18px; } .cl-grid.four .cl-card:nth-child(4) { margin-top: 74px; } }
.cl-grid.four .cl-card { padding: 32px 28px; border-radius: 36px; }
.cl-grid.four .cl-card .q { top: 26px; inset-inline-end: 28px; font-size: 60px; }
a.av { display: block; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.av:hover, a.av:focus-visible { transform: scale(1.06); box-shadow: 0 0 0 4px var(--ice-tint), 0 0 0 1px var(--ice); }
.cl-card .visit { font: 500 12px var(--font-sans); color: var(--ice); text-decoration: none; justify-self: start; }

/* ---------- 7. products page: brand type, shorter rows, top-down fill ---------- */
@media (min-width: 980px) { .mrow, .mrow.alt { min-height: 360px; } }
.m-text { padding: clamp(24px, 3.6vw, 52px); gap: 16px; }
.m-text h2 { font: 600 clamp(30px, 3vw, 42px)/1.08 var(--font-display); text-transform: none; letter-spacing: -.015em; }
.m-text .m-tag { font: 600 12px/1.33 var(--font-sans); letter-spacing: .08em; }
.m-text p { font-size: 16px; line-height: 1.6; }
.m-text .chips .chip { font: 500 12.5px var(--font-sans); }
.m-rail { font: 600 13px var(--font-sans); letter-spacing: .1em; }
.m-rail::before { transform-origin: top; }

/* looping product demos */
.m-demo { position: relative; overflow: hidden; border-radius: 12px; border: 2px solid #ffffff; min-height: 320px; background: var(--dbg, #f4f6f9); color: var(--dfg, #0f1115); isolation: isolate; }
.m-demo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 26px 26px 54px; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.demo-scene.on { opacity: 1; }
.demo-cap { position: absolute; inset-inline: 0; bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-inline: 18px; z-index: 3; font: 600 14px var(--font-display); }
.demo-dots { display: flex; gap: 5px; } .demo-dots i { width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: .25; transition: width .3s, opacity .3s; } .demo-dots i.on { width: 18px; opacity: .8; }
.dm-card { background: #ffffff; color: #0f1115; border-radius: 16px; box-shadow: 0 14px 34px #0f111522; padding: 16px 18px; font: 400 14px/1.45 var(--font-sans); width: min(360px, 100%); }
.dm-mono { font-family: var(--font-mono); }
.dm-label { font: 600 11px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.on .dm-in { animation: dmIn .6s var(--ease) both; animation-delay: var(--d, 0s); }
.on .dm-pop { animation: pop .5s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes dmIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dm-type { overflow: hidden; white-space: nowrap; border-right: 2px solid transparent; }
.on .dm-type { animation: typing 1.6s steps(40, end) both; animation-delay: var(--d, .2s); }
@keyframes typing { from { max-width: 0; } to { max-width: 100%; } }
.dm-row { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid #e3e7ec; border-radius: 10px; overflow: hidden; font-size: 13px; background: #fff; color: #0f1115; width: min(380px, 100%); }
.dm-row span { padding: 9px 12px; border-inline-end: 1px solid #e3e7ec; } .dm-row span:last-child { border: 0; text-align: end; }
.dm-row.h span { background: #f4f6f9; font-weight: 600; }
.dm-chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: #d9f2e4; color: #1f6e48; font-weight: 500; }
.dm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 10px; }
.dm-btns b { background: #6aa77c; color: #fff; font: 500 12px var(--font-sans); padding: 7px 6px; border-radius: 6px; text-align: center; }
.dm-btns b.full { grid-column: 1 / -1; }
.on .dm-btns b.tap { animation: tap 1.2s var(--ease) 1.2s both; }
@keyframes tap { 0%, 40% { background: #6aa77c; transform: none; } 55% { transform: scale(.94); background: #2f7a4b; box-shadow: 0 0 0 6px #2f7a4b33; } 100% { background: #2f7a4b; transform: none; } }
.dm-bar { height: 8px; border-radius: 4px; background: #eceff3; overflow: hidden; } .dm-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--c, #3ddc97); }
.on .dm-bar i { animation: grow 1.4s var(--ease) both; animation-delay: var(--d, .3s); }
@keyframes grow { to { width: var(--w, 80%); } }
.dm-donut { width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(#3ddc97 0 38%, #60a5fa 0 58%, #b49cfb 0 78%, #fbbf24 0 88%, #fb923c 0); -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%); mask: radial-gradient(circle, transparent 52%, #000 53%); }
.on .dm-donut { animation: spinIn 1.2s var(--ease) both .4s; }
@keyframes spinIn { from { transform: rotate(-120deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.dm-photo { position: relative; width: min(280px, 80%); aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 34px #0f111530; }
.dm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-photo .after { clip-path: inset(0 100% 0 0); }
.on .dm-photo .after { animation: wipe 1.8s var(--ease) both .8s; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.dm-photo .scan { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 16px #fff, 0 0 30px #6d7cf7; left: 0; opacity: 0; }
.on .dm-photo .scan { animation: scanX 1.8s var(--ease) both .8s; }
@keyframes scanX { 0% { left: 0; opacity: 1; } 95% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.dm-tagpill { position: absolute; top: 10px; inset-inline-start: 10px; background: #0f1115b0; color: #fff; font: 600 11px var(--font-sans); padding: 4px 8px; border-radius: 6px; letter-spacing: .06em; }
.on .kb { animation: kb 6s ease-out both; } @keyframes kb { from { transform: scale(1.15) translate(4%, 2%); } to { transform: scale(1); } }
.dm-paper { background: #fff; color: #16263a; border-radius: 4px; box-shadow: 0 18px 40px #00000055; width: min(330px, 92%); padding: 18px 20px 26px; transform: rotate(-2.5deg); position: relative; }
.dm-paper h4 { font: 600 16px var(--font-display); text-align: center; color: #16263a; } .dm-paper small { display: block; text-align: center; font-size: 10px; color: #6b7684; margin-bottom: 10px; }
.dm-field { display: grid; grid-template-columns: 80px 1fr; gap: 8px; align-items: end; font-size: 11px; color: #6b7684; margin-top: 7px; }
.dm-field b { font: 500 13px var(--font-sans); color: #3b3fb6; border-bottom: 1px solid #cfd5dd; padding-bottom: 2px; min-height: 18px; }
.dm-stamp { position: absolute; inset-inline-end: 14px; bottom: 12px; width: 78px; height: 78px; border-radius: 50%; border: 3px solid #3b3fb6; color: #3b3fb6; display: grid; place-items: center; font: 700 9px/1.2 var(--font-sans); text-align: center; letter-spacing: .06em; opacity: 0; }
.on .dm-stamp { animation: stamp .5s cubic-bezier(.3,1.6,.5,1) both 2.6s; }
@keyframes stamp { from { opacity: 0; transform: scale(2.2) rotate(-25deg); } to { opacity: .9; transform: rotate(-12deg); } }
.dm-scanframe { position: relative; width: min(300px, 86%); aspect-ratio: 16/10; }
.dm-scanframe .corner { position: absolute; width: 26px; height: 26px; border: 3px solid #b8bdf5; }
.dm-scanframe .c1 { top: 0; left: 0; border-right: 0; border-bottom: 0; } .dm-scanframe .c2 { top: 0; right: 0; border-left: 0; border-bottom: 0; } .dm-scanframe .c3 { bottom: 0; left: 0; border-right: 0; border-top: 0; } .dm-scanframe .c4 { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.dm-idcard { position: absolute; inset: 14% 12%; background: linear-gradient(135deg, #f6f7fb, #e6e9f5); border-radius: 10px; box-shadow: 0 8px 20px #0000002e; display: grid; grid-template-columns: 34% 1fr; gap: 10px; padding: 12px; }
.dm-idcard .ph { background: #cdd3e3; border-radius: 6px; } .dm-idcard .ln { height: 7px; background: #cdd3e3; border-radius: 4px; margin-bottom: 7px; }
.dm-band { position: absolute; inset-inline: 10%; height: 30%; top: 10%; background: linear-gradient(to bottom, #6d7cf700, #6d7cf755); border-bottom: 2px solid #6d7cf7; }
.on .dm-band { animation: band 1.6s ease-in-out infinite alternate; } @keyframes band { to { top: 60%; } }
.dm-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; max-width: 380px; }
.dm-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid #d8dde4; background: #ffffffcc; font-size: 12.5px; color: #3a414c; }
.on .dm-chips span.sel { animation: sel .4s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes sel { to { background: #d6f1f6; border-color: #4aa9bd; color: #2a7f92; box-shadow: 0 0 12px #4aa9bd55; } }
.dm-shuffle { display: inline-flex; gap: 8px; align-items: center; background: #4aa9bd; color: #fff; font: 600 14px var(--font-sans); padding: 10px 18px; border-radius: 10px; }
.on .dm-shuffle { animation: tap 1.2s var(--ease) 2.4s both; }
.dm-disc { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #4aa9bd 0 16%, #fff 17% 60%, #e5e7ef 61%); box-shadow: 0 0 0 2px #b9e3ec, 0 0 30px #4aa9bd55; }
.on .dm-disc { animation: spin 2.4s linear infinite; }
.dm-eq { display: flex; align-items: end; gap: 4px; height: 48px; }
.dm-eq i { width: 7px; border-radius: 3px; background: var(--c, #4aa9bd); height: 20%; }
.on .dm-eq i { animation: eq .9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.13s); }
@keyframes eq { to { height: 100%; } }
.dm-player { background: #11131a; color: #eef1f4; border-radius: 18px; width: min(340px, 94%); padding: 16px 18px; box-shadow: 0 14px 34px #0005; display: grid; gap: 10px; }
.dm-wave { position: relative; display: flex; align-items: center; gap: 2px; height: 46px; }
.dm-wave i { flex: 1; background: #3a3f4c; border-radius: 1px; }
.dm-wave .ph { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #5ee0f5; box-shadow: 0 0 8px #5ee0f5; left: 0; }
.on .dm-wave .ph { animation: play 7s linear infinite; } @keyframes play { to { left: 100%; } }
.dm-wave .mk { position: absolute; top: -6px; bottom: -2px; width: 2px; background: #e8467c; }
.dm-wave .mk::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #e8467c; }
.dm-energy { height: 6px; border-radius: 3px; background: #2a2e38; overflow: hidden; } .dm-energy i { display: block; height: 100%; width: 60%; background: linear-gradient(90deg, #5ee0f5, #8b5cf6, #e8467c); }
.dm-pal { display: grid; grid-template-columns: repeat(5, 38px); gap: 12px 16px; }
.dm-pal i { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 2px 6px #0002; position: relative; }
.on .dm-pal i.pick { animation: pick .4s var(--ease) both; animation-delay: var(--d); }
@keyframes pick { to { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #111827; transform: scale(1.08); } }
.dm-steps { display: flex; gap: 26px; justify-content: center; font: 600 10px var(--font-sans); letter-spacing: .1em; color: #9aa1ad; margin-bottom: 14px; }
.dm-steps b { display: grid; justify-items: center; gap: 4px; } .dm-steps b i { width: 22px; height: 22px; border-radius: 50%; background: #eceff3; display: grid; place-items: center; font-style: normal; font-size: 10px; } .dm-steps b.on { color: #111827; } .dm-steps b.on i { background: #111827; color: #fff; }
.dm-outfit { display: grid; gap: 6px; width: 150px; } .dm-outfit i { border-radius: 10px; }
.dm-flow { position: relative; width: min(420px, 100%); height: 220px; }
.dm-flow svg { width: 100%; height: 100%; overflow: visible; }
.dm-flow path.f { fill: none; stroke-width: 3; stroke-dasharray: 7 7; }
.on .dm-flow path.f { animation: march 1.2s linear infinite; }
.dm-cycle { position: relative; width: 250px; height: 250px; }
.dm-cycle b { position: absolute; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--font-display); color: #fff; }
.dm-cycle .ring { position: absolute; inset: 37px; border-radius: 50%; border: 3px dotted #9fd8b9; }
.dm-cycle .arc { position: absolute; inset: 37px; border-radius: 50%; border: 4px solid transparent; border-top-color: #0b7a4e; }
.on .dm-cycle .arc { animation: spin 4s linear infinite; }
.dm-cycle .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 600 13px var(--font-display); color: #0d2b1f; }
.dm-pulse path { fill: none; stroke: #fb923c; stroke-width: 3; stroke-dasharray: 900; stroke-dashoffset: 900; }
.on .dm-pulse path { animation: draw 3s ease-out both; } @keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .demo-scene { transition: none; } }
@media (min-width: 980px) { .mrow.alt .m-demo { order: -1; } }

/* ---------- light behind a black curtain (page headers) ---------- */
.page-hero.spot { background: #070708; isolation: isolate; }
.page-hero.spot .curtain { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(240px circle at var(--x, 60%) var(--y, 40%), #e8f6ff3d, transparent 70%),
    radial-gradient(560px circle at var(--x, 60%) var(--y, 40%), #8ed2f726, transparent 72%),
    #070708; }
.page-hero.spot .curtain::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, #00000000 0 26px, #0000008c 26px 34px, #ffffff08 34px 36px, #00000000 36px 64px);
  -webkit-mask: radial-gradient(620px circle at var(--x, 60%) var(--y, 40%), #000, transparent 75%); mask: radial-gradient(620px circle at var(--x, 60%) var(--y, 40%), #000, transparent 75%); }
.page-hero.spot .thread-deco { opacity: .35; }

/* ---------- hover inverts: process steps and toolbox tiles ---------- */
.proc-row { padding-inline: 28px; margin-inline: -28px; border-radius: var(--radius-lg); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.proc-row:hover { background: #ffffff; border-top-color: transparent !important; }
.proc-row:hover, .proc-row:hover h2, .proc-row:hover .t-lead, .proc-row:hover .t-caption, .proc-row:hover .t-mono { color: #0f1115 !important; }
.proc-row:hover + .proc-row { border-top-color: transparent !important; }
.tool { transition: background-color .25s var(--ease); }
.tool:hover { background: #ffffff; }
.tool:hover b, .tool:hover span, .tool:hover em { color: #0f1115; }
.tool:hover .t-label { color: #4a5361; }

/* =====================================================================
   v4 — liquid transitions, lighter header, plain spotlight, listings grid
   ===================================================================== */
.tone-fade { height: clamp(300px, 34vw, 480px); background: linear-gradient(to bottom, #111111 0%, #15161a 10%, #23262b 22%, #3d4148 34%, #626870 46%, #8d939b 58%, #b6bcc4 70%, #d9dde3 82%, #edf0f4 92%, #f4f6f9 100%); }
.tone-fade.up { background: linear-gradient(to top, #111111 0%, #15161a 10%, #23262b 22%, #3d4148 34%, #626870 46%, #8d939b 58%, #b6bcc4 70%, #d9dde3 82%, #edf0f4 92%, #f4f6f9 100%); }
.tone-fade .wave-canvas { display: none; }
.tone-fade .blobs { position: absolute; inset: -10% -15%; filter: blur(70px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%); pointer-events: none; }
.tone-fade .blob { position: absolute; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; opacity: .85; animation: liquid 30s ease-in-out infinite alternate; will-change: transform; }
@keyframes liquid {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  33%  { transform: translate(12%, -14%) rotate(14deg) scale(1.12); border-radius: 58% 42% 46% 54% / 44% 58% 42% 56%; }
  66%  { transform: translate(-10%, 10%) rotate(-10deg) scale(.94); border-radius: 40% 60% 52% 48% / 60% 40% 60% 40%; }
  100% { transform: translate(8%, 6%) rotate(6deg) scale(1.06); border-radius: 52% 48% 40% 60% / 46% 54% 46% 54%; }
}
@media (prefers-reduced-motion: reduce) { .tone-fade .blob { animation: none; } }

/* header: more glass, lets the page colour show through */
.site-header.solid, .site-header.always-solid { background: color-mix(in srgb, var(--bg-void) 38%, transparent); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25); border-bottom-color: color-mix(in srgb, var(--border-hairline) 60%, transparent); }

/* spotlight: dark page, light only (no curtain folds) */
.page-hero.spot { background: var(--bg-void); }
.page-hero.spot .curtain { background: radial-gradient(220px circle at var(--x, 60%) var(--y, 40%), #e8f6ff2e, transparent 70%), radial-gradient(560px circle at var(--x, 60%) var(--y, 40%), #8ed2f71f, transparent 72%), var(--bg-void); }
.page-hero.spot .curtain::after { display: none; }

/* listings studio: four tools running side by side */
.demo-scene.grid4 { padding: 14px 14px 50px; }
.dm-grid4 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; width: 100%; height: 100%; }
.dm-tile { position: relative; border-radius: 12px; overflow: hidden; background: #ffffff; box-shadow: 0 8px 20px #1c214026; }
.dm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-tile .lbl { position: absolute; inset-inline-start: 8px; bottom: 8px; z-index: 2; background: #0f1115b8; color: #fff; font: 600 11px var(--font-sans); padding: 4px 8px; border-radius: 6px; }
.dm-tile .after { animation: wipeLoop var(--t, 7s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.dm-tile .scan { position: absolute; top: 0; bottom: 0; width: 3px; left: 0; background: #fff; box-shadow: 0 0 14px #fff, 0 0 26px #6d7cf7; z-index: 1; animation: scanLoop var(--t, 7s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes wipeLoop { 0%, 14% { clip-path: inset(0 100% 0 0); } 44%, 80% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }
@keyframes scanLoop { 0%, 14% { left: 0; opacity: 0; } 15% { opacity: 1; } 44% { left: 100%; opacity: 1; } 45%, 80% { opacity: 0; left: 100%; } 81% { left: 0; opacity: 1; } 100% { left: 100%; opacity: 1; } }
.dm-tile.poster { background: #e9ecf6; } .dm-tile.poster img { object-fit: contain; padding: 8px; animation: posterFloat 6s ease-in-out infinite; }
@keyframes posterFloat { 0%, 100% { transform: translateY(4px) scale(.96); } 50% { transform: translateY(-4px) scale(1); } }
.dm-tile.fpv img { animation: kbLoop 9s ease-in-out infinite alternate; }
@keyframes kbLoop { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.22) translate(-6%, -3%); } }
.dm-tile .prog { position: absolute; inset-inline: 8px; top: 8px; height: 3px; border-radius: 2px; background: #ffffff55; z-index: 2; overflow: hidden; } .dm-tile .prog i { display: block; height: 100%; background: #fff; animation: progLoop 9s linear infinite; }
@keyframes progLoop { from { width: 0; } to { width: 100%; } }
.dm-look { width: 128px; height: 160px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 20px #0f111522; }
.demo-cap .demo-dots:has(i:only-child) { display: none; }
@media (prefers-reduced-motion: reduce) { .dm-tile .after, .dm-tile .scan, .dm-tile img { animation: none !important; } .dm-tile .after { clip-path: inset(0 0 0 50%); } }
@media (max-width: 700px) { .proc-row { padding-inline: 12px; margin-inline: -12px; } }

/* v5: shorter, seamless transitions (smootherstep stops: zero slope at both ends) */
.tone-fade { height: clamp(150px, 17vw, 250px); background: linear-gradient(to bottom, #111111 0%, #111111 5%, #131313 10%, #171717 15%, #1e1e1e 20%, #282929 25%, #363637 30%, #464748 35%, #595a5b 40%, #6d6e6f 45%, #828485 50%, #98999b 55%, #acadaf 60%, #bfc0c2 65%, #cfd1d3 70%, #dddee1 75%, #e7e9ec 80%, #eef0f3 85%, #f2f4f7 90%, #f4f6f9 95%, #f4f6f9 100%); }
.tone-fade.up { background: linear-gradient(to top, #111111 0%, #111111 5%, #131313 10%, #171717 15%, #1e1e1e 20%, #282929 25%, #363637 30%, #464748 35%, #595a5b 40%, #6d6e6f 45%, #828485 50%, #98999b 55%, #acadaf 60%, #bfc0c2 65%, #cfd1d3 70%, #dddee1 75%, #e7e9ec 80%, #eef0f3 85%, #f2f4f7 90%, #f4f6f9 95%, #f4f6f9 100%); }
.tone-fade .blobs { inset: -6% -15%; filter: blur(46px); -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #0000004d 18%, #000 38%, #000 62%, #0000004d 82%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #0000004d 18%, #000 38%, #000 62%, #0000004d 82%, transparent 100%); }
.tone-fade .blob { opacity: .7; }
main:has(> .tone-fade.up:last-child) + .site-footer, main:has(.tone-fade.up) + .site-footer { border-top: 0; }
.tone-light { border: 0; }
.page-hero:has(+ .tone-fade) { border-bottom: 0; }

/* service demos */
.dm-chat { display: grid; gap: 8px; width: min(340px, 100%); }
.dm-b { padding: 9px 12px; border-radius: 14px 14px 14px 4px; font-size: 13.5px; line-height: 1.45; max-width: 86%; background: #ffffff; color: #0f1115; box-shadow: 0 6px 16px #0f111514; justify-self: start; }
.dm-b.me { justify-self: end; background: #d9fdd3; border-radius: 14px 14px 4px 14px; }
.dm-cal { display: grid; grid-template-columns: 44px repeat(5, 1fr); gap: 5px; width: min(370px, 100%); background: #ffffff; color: #0f1115; padding: 12px; border-radius: 14px; box-shadow: 0 14px 34px #0f111522; font: 600 11px var(--font-sans); }
.dm-cal b { text-align: center; color: #5f6875; } .dm-cal b.t { text-align: start; font: 400 11px var(--font-mono); align-self: center; }
.dm-cal .c { height: 30px; border-radius: 6px; background: #eef1f5; font: 600 10px/30px var(--font-sans); text-align: center; color: #fff; font-style: normal; }
.dm-cal .c.busy { background: #d8dde4; }
.dm-cal .c.hit { background: #eef1f5; }
.on .dm-cal .c.hit { animation: hit .5s var(--ease) both; animation-delay: var(--d, 1s); }
@keyframes hit { from { background: #eef1f5; transform: scale(.8); } to { background: #0b6a9a; transform: none; box-shadow: 0 0 0 4px #0b6a9a33; } }
.dm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dm-kpi { background: #f4f6f9; border-radius: 10px; padding: 10px; display: grid; gap: 2px; font-size: 11px; color: #4a5361; } .dm-kpi b { font: 500 19px var(--font-mono); color: #0f1115; }
.dm-barsv { display: flex; align-items: end; gap: 7px; height: 100px; }
.dm-barsv i { flex: 1; height: 0; border-radius: 5px 5px 0 0; background: #0b6a9a; }
.dm-barsv i:last-child { background: #8ed2f7; }
.on .dm-barsv i { animation: growH .9s var(--ease) both; animation-delay: var(--d, .5s); }
@keyframes growH { to { height: var(--h); } }
.dm-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: min(400px, 100%); }
.dm-week > div { background: #ffffff; border-radius: 10px; min-height: 120px; padding: 8px 6px; display: grid; align-content: start; gap: 8px; box-shadow: 0 6px 16px #1a153014; }
.dm-week b { font: 600 11px var(--font-sans); color: #5f6875; text-align: center; }
.dm-week span { font: 600 10.5px var(--font-sans); background: #5b3fd0; color: #fff; padding: 6px 4px; border-radius: 6px; text-align: center; }
.dm-browser { width: min(360px, 100%); background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px #0f111522; }
.dm-browser .bar { display: flex; gap: 5px; align-items: center; padding: 8px 10px; background: #eceff3; font: 400 11px var(--font-mono); color: #5f6875; }
.dm-browser .bar i { width: 7px; height: 7px; border-radius: 50%; background: #c3c8cf; } .dm-browser .bar span { margin-inline-start: 8px; }
.dm-browser .pg { padding: 12px; display: grid; gap: 8px; } .dm-browser .blk { display: block; border-radius: 6px; background: #e3e7ec; }
.m-demo.svc-demo { min-height: 400px; border-color: transparent; }
.cl-card .av { background-size: cover; background-position: center; }
.flow-sticky { align-content: start; overflow: visible; padding-top: 84px; }
@media (max-width: 999px) { .flow-sticky { padding-top: 24px; } }

/* service demos built from real screenshots */
.demo-scene.fill { padding: 14px 14px 50px; }
.dm-shot { position: relative; width: 100%; height: 100%; border-radius: 12px; overflow: hidden; background: #ffffff; box-shadow: 0 14px 34px #0f111530; }
.dm-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.on .pan-x { animation: panX 9s ease-in-out infinite alternate; } @keyframes panX { from { object-position: 0% 0%; } to { object-position: 100% 0%; } }
.dm-shot img.scroll-y, .dm-browser img.scroll-y { height: auto; bottom: auto; }
.on img.scroll-y { animation: scrollShot 14s ease-in-out infinite alternate; } @keyframes scrollShot { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + var(--vh, 300px))); } }
.on .kb-soft { animation: kbSoft 9s ease-in-out infinite alternate; } @keyframes kbSoft { from { transform: scale(1); } to { transform: scale(1.1); } }
.hl-band { position: absolute; left: 0; right: 0; height: 13%; top: 22%; background: #8ed2f71f; border-block: 1px solid #8ed2f799; }
.on .hl-band { animation: hlRows 7s steps(1) infinite; } @keyframes hlRows { 0% { top: 22%; } 16% { top: 35.5%; } 33% { top: 49%; } 50% { top: 62.5%; } 66% { top: 76%; } 83% { top: 89.5%; } }
.hl-col { position: absolute; top: 8%; bottom: 0; width: 18%; left: 7%; background: #0b6a9a14; border-inline: 2px solid #0b6a9a66; border-radius: 8px; }
.on .hl-col { animation: hlCols 8s ease-in-out infinite; } @keyframes hlCols { 0%, 15% { left: 7%; } 25%, 40% { left: 25.5%; } 50%, 65% { left: 44%; } 75%, 90% { left: 62.5%; } 100% { left: 7%; } }
.dm-browser.big { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr; }
.dm-browser .vp { position: relative; overflow: hidden; background: #fff; }
.dm-browser .vp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.dm-trio { position: relative; width: 100%; height: 100%; }
.dm-trio .dm-browser { position: absolute; width: 66%; display: grid; grid-template-rows: auto 1fr; }
.dm-trio .dm-browser .vp { aspect-ratio: 16/10; }
.dm-trio .t1 { left: 0; top: 2%; } .dm-trio .t2 { left: 14%; top: 26%; }
.dm-phone { position: absolute; right: 2%; bottom: 0; width: 25%; aspect-ratio: 462/650; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px #0f111555; border: 3px solid #0f1115; background: #0f1115; }
.dm-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
