/* ==========================================================================
   Kunal Chaudhari — portfolio
   core.css: the design system shared by every page.
   Midnight Electric: a blue-black night, electric blue, ice cyan, cool white.
   ========================================================================== */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1a;
  --panel: rgba(10, 15, 26, 0.74);
  --ink: #eaf0fa;
  --ink-2: #a9b4c6;
  --ink-3: #6f7b8f;
  --ink-4: #3c4657;
  --line: rgba(234, 240, 250, 0.12);
  --line-2: rgba(234, 240, 250, 0.06);

  --blue: #3b6cff;
  --blue-2: #2b54f0;
  --cyan: #5be7ff;
  --ice: #e8f6ff;
  --peri: #8fa6ff;
  --teal: #29e0c4;
  /* legacy names kept so shared components read naturally */
  --d0: var(--ice); --d1: var(--cyan); --d2: var(--blue); --d3: var(--peri); --d4: var(--teal);
  --spec: linear-gradient(100deg, var(--blue) 0%, #4f8dff 38%, var(--cyan) 72%, var(--ice) 100%);
  /* the same colours, mirrored so they can flow across a word forever without a seam */
  --spec-loop: linear-gradient(100deg, var(--blue) 0%, #4f8dff 16%, var(--cyan) 33%, var(--ice) 50%, var(--cyan) 67%, #4f8dff 84%, var(--blue) 100%);
  --electric: linear-gradient(135deg, #5a86ff 0%, var(--blue) 45%, var(--blue-2) 100%);
  --acc: var(--cyan);
  --acc-txt: var(--cyan);
  --acc-ink: #03050b;
  --amber: #ffc56b; --sky: #38bdf8; --rose: #ff6b8b; --violet: #a7b4ff;

  --f-display: 'Anybody', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --pad: clamp(16px, 3.2vw, 48px);
  --pad-l: max(var(--pad), 112px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--f-sans); letter-spacing: -0.005em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--f-mono); letter-spacing: 0; }
.wrap { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--pad); }
main { position: relative; z-index: 2; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200; padding: 10px 14px; border-radius: 8px;
  background: var(--acc); color: var(--acc-ink); font-weight: 500; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- type ---------- */
.label {
  display: flex; align-items: center; gap: 0.8em; margin: 0 0 22px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3);
}
.label span { flex: none; color: var(--acc); }
.label::after { content: ''; flex: 0 0 40px; height: 1px; background: var(--line); }
.h2 {
  margin: 0; font: 800 clamp(2.5rem, 5.6vw, 6.6rem)/0.92 var(--f-display);
  font-variation-settings: 'wdth' 112; letter-spacing: -0.035em;
}
.h2--sm { font-size: clamp(2rem, 4vw, 4.6rem); }
.h2 em, .contact__title em {
  font-style: italic; font-weight: 700;
  background: var(--spec-loop) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em; animation: sheen 9s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }
.kc-line-mask { padding-bottom: 0.12em; margin-bottom: -0.12em; }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: clamp(48px, 8vh, 96px); }
.sec-head .label { grid-column: 1 / -1; }
.sec-head .h2 { grid-column: 1 / span 8; }
.sec-head__aside { grid-column: 10 / span 3; margin: 0; color: var(--ink-2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chips span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; line-height: 1; color: var(--ink-2); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; transition: border-color 0.3s;
}
.link-arrow span { color: var(--acc); transition: transform 0.4s var(--ease); }
.link-arrow:hover { border-color: var(--acc); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  height: var(--h); padding: 0 1.55em; border: 1px solid transparent; border-radius: 999px;
  font: 500 15px/1 var(--f-sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn > * { position: relative; z-index: 1; pointer-events: none; }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: 0; border-radius: inherit; background: var(--ink);
  transform: translateY(102%); transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--spec {
  background: var(--electric); color: #fff;
  box-shadow: 0 0 0 1px rgba(140, 170, 255, 0.35) inset, 0 10px 40px -10px rgba(59, 108, 255, 0.8);
}
.btn--spec::before { background: var(--ice); }
.btn--spec:hover { color: #05070d; }
.btn--ghost { border-color: var(--line); background: rgba(5, 7, 13, 0.4); color: var(--ink); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ink); color: var(--bg); }
.btn--tint { background: var(--c, var(--acc)); color: #03050b; }
.btn--tint::before { background: var(--ink); }
.btn--dark { background: #03050b; color: var(--ink); }
.btn--sm { --h: 40px; padding: 0 1.15em; font-size: 14px; }

/* ---------- fixed layers ---------- */
.stage, .scene { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.no-webgl .stage, .no-webgl .scene { display: none; }
.no-webgl body {
  background:
    radial-gradient(60vw 60vw at 78% 24%, rgba(59, 108, 255, 0.18), transparent 60%),
    radial-gradient(50vw 50vw at 18% 82%, rgba(91, 231, 255, 0.08), transparent 60%), var(--bg);
  background-attachment: fixed;
}
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* cursor */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor [role='slider'] { cursor: none; }
.has-cursor textarea { cursor: text; }
.cursor__ring, .cursor__dot { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.cursor__ring {
  display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(91, 231, 255, 0.35); border-radius: 50%;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.4s, border-color 0.4s, opacity 0.3s;
}
.cursor.is-link .cursor__ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; border-color: var(--cyan); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-color: var(--blue); background: var(--blue); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-text .cursor__ring { width: 4px; height: 26px; margin: -13px 0 0 -2px; border-radius: 2px; }
.cursor.is-down .cursor__ring { scale: 0.85; }
.cursor__label { font: 500 10.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: #fff; opacity: 0; transition: opacity 0.25s; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad); pointer-events: none; transition: transform 0.7s var(--ease);
}
.hdr > * { pointer-events: auto; }
.hdr.is-hidden { transform: translateY(-130%); }
.hdr__brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 600 15px/1 var(--f-display); font-variation-settings: 'wdth' 110; letter-spacing: 0.01em; }
.hdr__mark { width: 34px; height: 34px; fill: none; stroke: var(--cyan); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(91, 231, 255, 0.5)); transition: transform 0.8s var(--ease); }
.hdr__brand:hover .hdr__mark { transform: rotate(90deg); }
.hdr__right { display: flex; align-items: center; gap: 14px; }
.hdr__time { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.hdr__time b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.sound {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 7, 13, 0.45); backdrop-filter: blur(10px);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; color: var(--ink-2);
}
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height 0.3s; }
.sound[aria-pressed='true'] { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.sound[aria-pressed='true'] .sound__bars i { animation: eq 0.9s ease-in-out infinite alternate; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(2) { animation-delay: 0.2s; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(3) { animation-delay: 0.45s; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(4) { animation-delay: 0.1s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.hdr__menu {
  display: none; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(5, 7, 13, 0.6); backdrop-filter: blur(12px);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer;
}
.menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 96px var(--pad) calc(28px + env(safe-area-inset-bottom)); background: rgba(5, 7, 13, 0.96); backdrop-filter: blur(20px);
}
.menu[hidden] { display: none; }
.menu__nav { display: grid; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line);
  font: 800 clamp(2.2rem, 11vw, 4rem)/1 var(--f-display); font-variation-settings: 'wdth' 120; letter-spacing: -0.03em; text-decoration: none;
}
.menu__nav i { font-style: normal; font-size: 11px; color: var(--acc); letter-spacing: 0; font-weight: 400; }
.menu__foot { margin: 28px 0 0; font-size: 13px; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; padding-top: 22px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.foot__row b { font-weight: 500; color: var(--ink-2); }
.foot__row a, .foot__replay { color: var(--ink); text-decoration: none; }
.foot__replay { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.foot .marquee--mono { margin: -22px 0 22px; }
.foot__giant {
  --giant: linear-gradient(180deg, var(--ice) 0%, var(--cyan) 45%, var(--blue) 100%);
  margin: clamp(28px, 5vw, 64px) 0 0; white-space: nowrap; text-align: center;
  font: 900 8.2vw/0.78 var(--f-display); font-variation-settings: 'wdth' 118; letter-spacing: -0.02em; text-transform: uppercase;
  background: var(--giant); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(14%);
}
/* split into letters: each carries the gradient and rides a slow wave */
.foot__giant:has(.foot__c) { background: none; }
.foot__c {
  background: var(--giant); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wave 4.4s var(--ease-io) infinite; animation-delay: calc(var(--i, 0) * -0.17s);
}
@keyframes wave { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8%; } }

.js .reveal { opacity: 0; transform: translateY(28px); }

/* ==========================================================================
   SHARED COMPONENTS: device mockups, mock UI, live demo, steps
   ========================================================================== */
.pv__dots { display: inline-flex; gap: 6px; flex: none; }
.pv__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); }
.show__visual {
  --ry: 0deg; --rx: 0deg; --my: 0deg; --mx: 0deg; --py: 0px;
  position: relative; perspective: 1800px;
}

/* devices */
.dev { position: absolute; transform-style: preserve-3d; }
.dev__screen {
  position: relative; background: #0b0b0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 100px -30px rgba(0, 0, 0, 0.85), 0 40px 80px -50px color-mix(in srgb, var(--c) 70%, transparent);
}
.dev__glass { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; background: #f5f6f4; }
.dev__glass::after { content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 36%); }
.dev--laptop {
  left: 0; top: 50%; width: min(94%, 96svh);
  transform: translateY(-54%) rotateY(calc(-17deg + var(--ry) + var(--my))) rotateX(calc(8deg + var(--rx) + var(--mx))) rotateZ(1deg);
  transform-origin: 60% 50%;
}
.dev--laptop .dev__screen { aspect-ratio: 16 / 10; padding: 1.3%; border-radius: 14px 14px 5px 5px; }
.dev__base {
  position: relative; height: 0; padding-bottom: 2.6%; margin: 0 -5.5%;
  border-radius: 2px 2px 18px 18px / 2px 2px 10px 10px;
  background: linear-gradient(#d9dadd, #8f9197 70%, #5b5d62);
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, 0.7);
}
.dev__base::before { content: ''; position: absolute; left: 42%; right: 42%; top: 0; height: 38%; border-radius: 0 0 8px 8px; background: rgba(0, 0, 0, 0.18); }
.dev--phone { right: 1%; bottom: 3%; width: 25%; transform: translateY(var(--py)) rotateY(calc(-12deg + var(--my))) rotateX(calc(5deg + var(--mx))) translateZ(90px); }
.dev--phone .dev__screen {
  aspect-ratio: 390 / 844; padding: 3.4%; border-radius: 15% / 7%; background: #111;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 50px 90px -20px rgba(0, 0, 0, 0.95);
}
.dev--phone .dev__glass { border-radius: 12% / 5.6%; }
.dev--phone .dev__glass::before { content: ''; position: absolute; z-index: 6; top: 1.6%; left: 50%; width: 30%; height: 3.3%; transform: translateX(-50%); border-radius: 999px; background: #000; }

/* mock UI kit — laid out at 1200×750 (laptop) / 390×844 (phone) and scaled to fit by JS (--k) */
.ui {
  --u-bg: #f5f6f4; --u-panel: #fff; --u-ink: #111312; --u-ink2: #6b706d; --u-line: #e6e8e5;
  --u-soft: color-mix(in srgb, var(--c) 16%, #fff);
  position: absolute; left: 0; top: 0; width: 1200px; height: 750px;
  transform-origin: 0 0; transform: scale(var(--k, 0.5));
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden; background: var(--u-bg); color: var(--u-ink);
  font: 400 15px/1.4 var(--f-sans); letter-spacing: -0.01em; text-align: left;
}
.ui p { margin: 0; }
.ui--dark { --u-bg: #0e0f11; --u-panel: #17181b; --u-ink: #f1f0ec; --u-ink2: #8b8c88; --u-line: #26272b; --u-soft: color-mix(in srgb, var(--c) 20%, #17181b); }
.ui--m { width: 390px; height: 844px; display: flex; flex-direction: column; gap: 14px; padding: 60px 22px 28px; }
.ui--wide, .ui--site { display: block; }
.u-side { display: flex; flex-direction: column; gap: 3px; padding: 26px 16px; background: var(--u-panel); border-right: 1px solid var(--u-line); }
.ui .u-logo { display: flex; align-items: center; gap: 10px; margin: 0 0 22px 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.03em; }
.u-logo i { width: 28px; height: 28px; border-radius: 9px; background: var(--c); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.18); }
.u-nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--u-ink2); font-size: 14.5px; }
.u-nav i { width: 16px; height: 16px; border-radius: 5px; background: currentColor; opacity: 0.3; }
.u-nav.on { background: var(--u-soft); color: var(--u-ink); font-weight: 500; }
.u-nav.on i { background: var(--c); opacity: 1; }
.u-nav--sub { padding: 7px 12px 7px 40px; font-size: 13.5px; }
.u-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 6px 0; border-top: 1px solid var(--u-line); font-size: 13px; color: var(--u-ink2); }
.u-me b { color: var(--u-ink); font-weight: 500; }
.u-av {
  flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); color: #0b0b0b; font-size: 12px; font-weight: 600;
}
.u-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 28px 32px; }
.u-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ui .u-h { font-size: 28px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; }
.ui .u-sub { font-size: 14px; color: var(--u-ink2); }
.ui .u-k { margin-bottom: 8px; font-size: 13px; color: var(--u-ink2); }
.u-tools { display: flex; align-items: center; gap: 12px; }
.u-search { width: 240px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--u-line); background: var(--u-panel); font-size: 13.5px; color: var(--u-ink2); }
.u-icon { position: relative; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--u-line); background: var(--u-panel); }
.u-icon::after { content: ''; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.u-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; background: var(--u-soft); font-size: 13.5px; font-weight: 500; }
.u-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
.u-card { min-width: 0; padding: 18px 20px; border: 1px solid var(--u-line); border-radius: 16px; background: var(--u-panel); }
.u-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ui .u-v { font-size: 36px; font-weight: 600; letter-spacing: -0.05em; line-height: 1.05; }
.ui .u-d { margin-top: 4px; font-size: 12.5px; color: color-mix(in srgb, var(--c) 70%, var(--u-ink)); }
.u-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.u-split--wide { grid-template-columns: 1.3fr 1fr; }
.u-split--room { grid-template-columns: 1fr 1fr; }
.u-split--editor { grid-template-columns: 1.6fr 1fr; }
.u-split--map { grid-template-columns: 1fr 1.15fr; }
.u-split > .u-card, .u-col > .u-card { display: flex; flex-direction: column; }
.u-bars { display: flex; align-items: flex-end; gap: 12px; height: 190px; margin-top: 10px; }
.u-split > .u-card > .u-bars { flex: 1; height: auto; min-height: 150px; }
.u-bars i { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--c) 28%, transparent); }
.u-bars i.hi { background: var(--c); }
.u-bars--thin { gap: 4px; height: 120px; }
.u-bars--thin i { border-radius: 3px; }
.ui .u-days { display: flex; margin-top: 10px; font-size: 12px; color: var(--u-ink2); }
.u-days span { flex: 1; text-align: center; }
.u-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--u-line); font-size: 14px; }
.u-row:last-child { border-bottom: 0; }
.u-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.u-row > span:not(.u-av) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.u-chip { padding: 4px 10px; border-radius: 999px; background: var(--u-soft); font-size: 12px; font-style: normal; color: var(--u-ink); }
.u-chip--b { background: color-mix(in srgb, #7cc8ff 24%, transparent); }
.u-chip--c { background: color-mix(in srgb, #8fa6ff 28%, transparent); }
.ui .u-btn { display: grid; place-items: center; height: 52px; border-radius: 14px; background: var(--c); color: #0b0b0b; font-size: 16px; font-weight: 600; }
.ui .u-btn--sm { height: 40px; padding: 0 18px; border-radius: 11px; font-size: 14px; }
.u-ghost { padding: 10px 16px; border: 1px solid var(--u-line); border-radius: 11px; font-size: 14px; }
.ui .u-status { position: absolute; top: 20px; left: 32px; right: 28px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.u-status i { width: 54px; height: 12px; border-radius: 4px; opacity: 0.75; background: linear-gradient(90deg, var(--u-ink) 62%, transparent 62%); box-shadow: inset 0 0 0 1.5px var(--u-ink); }
.ui--m .u-h { font-size: 26px; }
.ui--m .u-btn { margin-top: auto; }
.ui .u-dates { display: flex; gap: 8px; }
.u-dates span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border: 1px solid var(--u-line); border-radius: 14px; background: var(--u-panel); font-size: 12px; color: var(--u-ink2); }
.u-dates b { font-size: 18px; color: var(--u-ink); }
.u-dates .on { border-color: var(--c); background: var(--c); color: #0b0b0b; }
.u-dates .on b { color: #0b0b0b; }
.ui .u-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.u-slots span { padding: 11px 0; border: 1px solid var(--u-line); border-radius: 12px; background: var(--u-panel); text-align: center; font-size: 14px; font-weight: 500; }
.u-slots .off { opacity: 0.35; text-decoration: line-through; }
.u-slots .on { border-color: var(--u-ink); background: var(--u-ink); color: var(--u-bg); }
.u-racks { flex: 1; display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: 1fr; gap: 8px; margin-top: 8px; }
.u-racks i { border-radius: 6px; background: linear-gradient(to top, color-mix(in srgb, var(--c) 85%, transparent) calc(var(--f) * 100%), color-mix(in srgb, var(--c) 10%, transparent) 0); }
.u-racks i.hot { box-shadow: 0 0 0 2px var(--u-panel), 0 0 0 4px var(--c); }
.u-scan { position: relative; height: 170px; overflow: hidden; border: 1px solid var(--u-line); border-radius: 18px; background: var(--u-panel); }
.u-scan i { position: absolute; inset: 44px 70px; opacity: 0.85; background: repeating-linear-gradient(90deg, var(--u-ink) 0 3px, transparent 3px 6px, var(--u-ink) 6px 7px, transparent 7px 11px); }
.u-scan::after { content: ''; position: absolute; left: 40px; right: 40px; top: 50%; height: 2px; background: var(--c); box-shadow: 0 0 16px var(--c); }
.ui .u-qty { display: flex; align-items: center; justify-content: space-between; padding: 8px; border: 1px solid var(--u-line); border-radius: 14px; background: var(--u-panel); }
.u-qty span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--u-soft); font-size: 22px; }
.u-qty b { font-size: 22px; }
.u-timer { position: relative; display: grid; place-items: center; }
.u-timer svg { width: 300px; height: 300px; transform: rotate(-90deg); }
.u-timer circle { fill: none; stroke-width: 12; }
.u-timer .trk { stroke: var(--u-line); }
.u-timer .val { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 540.35; stroke-dashoffset: calc(540.35 * (1 - var(--p))); }
.ui .u-timer p { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.u-timer b { font-size: 56px; font-weight: 600; letter-spacing: -0.05em; }
.u-timer span { font-size: 13px; color: var(--u-ink2); }
.ui .u-people { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.u-people .u-av { position: relative; width: 100%; height: auto; aspect-ratio: 1; }
.u-people .u-av::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px var(--u-panel); }
.u-flame { position: relative; width: 120px; height: 150px; margin: 6px auto 0; }
.u-flame i {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 75%, #ffffff, var(--c) 42%, #2b54f0 82%);
  clip-path: polygon(50% 0, 70% 26%, 90% 48%, 97% 74%, 82% 95%, 50% 100%, 18% 95%, 3% 74%, 10% 48%, 30% 26%);
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--c) 60%, transparent));
}
.ui .u-center { text-align: center; }
.ui .u-week { display: flex; justify-content: space-between; }
.u-week span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--u-line); border-radius: 50%; background: var(--u-panel); font-size: 13px; color: var(--u-ink2); }
.u-week .on { border-color: var(--c); background: var(--c); color: #0b0b0b; font-weight: 600; }
.ui .u-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.u-badges i { aspect-ratio: 1; border-radius: 30%; background: conic-gradient(from 210deg, var(--c), #e8f6ff, #3b6cff, var(--c)); box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.25); }
.u-badges .off { background: var(--u-panel); box-shadow: inset 0 0 0 2px var(--u-line); }
.u-canvas { display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px dashed color-mix(in srgb, var(--u-ink) 18%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--u-ink) 3%, var(--u-bg)); }
.u-block { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--u-line); border-radius: 12px; background: var(--u-panel); }
.u-block.u-hero {
  min-height: 150px; justify-content: flex-end; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 80%, #000), color-mix(in srgb, var(--c) 40%, #fff));
  box-shadow: 0 0 0 2px var(--c), 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent);
}
.u-hero b { font-size: 24px; letter-spacing: -0.03em; }
.u-hero span { width: 120px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, 0.92); }
.u-line { display: block; width: var(--w); height: 10px; border-radius: 5px; background: var(--u-line); }
.u-block.u-grid3 { flex-direction: row; }
.u-grid3 span { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; }
.u-grid3 i { height: 70px; border-radius: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 32%, #fff), color-mix(in srgb, var(--c) 10%, #fff)); }
.u-inspect { display: flex; flex-direction: column; }
.ui .u-field { margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--u-line); border-radius: 10px; font-size: 14px; }
.u-field--tall { min-height: 64px; color: var(--u-ink2); }
.u-photo {
  position: relative; flex: none; height: 220px; border-radius: 20px;
  background: radial-gradient(60% 60% at 50% 45%, #fff, transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--c) 45%, #fff), color-mix(in srgb, var(--c) 15%, #fff));
}
.u-photo::after { content: ''; position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 14px solid color-mix(in srgb, var(--c) 65%, #333); box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.06); }
.u-photo--room { background: radial-gradient(40% 40% at 70% 35%, #e8f6ff, transparent 70%), linear-gradient(180deg, #9fd8ff, #4f7dff 55%, #13256b); }
.u-photo--room::after { display: none; }
.ui--site { display: flex; flex-direction: column; gap: 18px; padding-bottom: 28px; }
.u-nav-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 36px; }
.ui .u-nav-top .u-logo { margin: 0; }
.u-nav-top p:nth-child(2) { display: flex; gap: 28px; font-size: 14px; color: var(--u-ink2); }
.u-hero-img {
  position: relative; overflow: hidden; height: 330px; margin: 0 36px; padding: 30px 34px; border-radius: 22px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: radial-gradient(36% 46% at 72% 30%, #e8f6ff, transparent 70%), linear-gradient(180deg, #9fd8ff 0%, #5b8cff 42%, #1f3a9e 74%, #0b1640 100%);
}
.u-hero-img::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: radial-gradient(60% 100% at 22% 100%, #0d1a4a 60%, transparent 61%), radial-gradient(70% 100% at 82% 100%, #12235e 60%, transparent 61%);
}
.u-hero-img b { position: relative; font-size: 44px; font-weight: 600; letter-spacing: -0.04em; }
.u-hero-img span { position: relative; opacity: 0.85; }
.u-search-bar {
  position: relative; z-index: 2; margin: -52px 64px 0; padding: 12px;
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: center;
  border-radius: 18px; background: var(--u-panel); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}
.u-search-bar span { display: flex; flex-direction: column; padding: 6px 14px; border-right: 1px solid var(--u-line); font-size: 15px; font-weight: 500; }
.u-search-bar em { font-size: 12px; font-style: normal; font-weight: 400; color: var(--u-ink2); }
.ui .u-search-bar .u-btn { padding: 0 28px; }
.u-rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 36px; }
.u-rooms span { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.u-rooms i { height: 120px; border-radius: 16px; background: linear-gradient(150deg, hsl(calc(195 + var(--g) * 14) 85% 76%), hsl(calc(222 + var(--g) * 8) 70% 34%)); }
.u-rooms em { font-size: 13.5px; font-style: normal; color: var(--u-ink2); }
.ui .u-amen { display: flex; flex-wrap: wrap; gap: 8px; }
.u-amen span { padding: 7px 12px; border-radius: 999px; background: var(--u-soft); font-size: 13px; }
.ui--wide .u-main { height: 100%; }
.u-map { padding: 0; overflow: hidden; background: #111214; }
.u-map svg { display: block; width: 100%; height: 100%; }
.u-map .isl { fill: #1b1c20; stroke: #2c2d33; stroke-width: 1.5; }
.u-map .dots circle { fill: var(--c); }
.u-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ui .u-meter { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; padding: 7px 0; font-size: 13.5px; color: var(--u-ink2); }
.u-meter i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 35%, transparent) var(--w), var(--u-line) var(--w)); }
.u-meter.hi { color: var(--u-ink); font-weight: 500; }
.u-meter.hi i { background: linear-gradient(90deg, var(--c) var(--w), var(--u-line) var(--w)); }


/* ==========================================================================
   LIVE — three devices kept in sync
   ========================================================================== */
.live { padding: clamp(110px, 17vh, 210px) 0 clamp(90px, 14vh, 170px); }
.sync {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 6fr) minmax(0, 2.8fr); align-items: center; gap: clamp(20px, 3vw, 48px);
  padding-top: 170px;
}
.sync__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sync__wires path { fill: none; stroke: color-mix(in srgb, var(--acc) 35%, transparent); stroke-width: 1.5; stroke-dasharray: 4 7; }
.sync__wires circle { fill: var(--acc); filter: drop-shadow(0 0 8px var(--acc)); }
.sync__hub {
  position: absolute; left: 50%; top: 10px; z-index: 2; translate: -50% 0;
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--acc) 20%, transparent), color-mix(in srgb, var(--acc) 4%, transparent) 60%, transparent 72%);
}
.sync__hub b { position: relative; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--acc); }
.sync__ring { position: absolute; inset: 22px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); border-radius: 50%; animation: hubring 2.6s var(--ease) infinite; }
.sync__ring + .sync__ring { animation-delay: 1.3s; }
@keyframes hubring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.sync__dev { position: relative; z-index: 1; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sync__dev figcaption { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }

.sp {
  position: relative; width: min(100%, 264px); aspect-ratio: 9 / 18.6; padding: 54px 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
  border-radius: 44px; background: #f6f7f5; color: #111;
  box-shadow: 0 0 0 9px #121214, 0 0 0 10.5px rgba(255, 255, 255, 0.16), 0 50px 90px -30px rgba(0, 0, 0, 0.95);
}
.sp::before { content: ''; position: absolute; top: 12px; left: 50%; width: 90px; height: 26px; translate: -50% 0; border-radius: 999px; background: #121214; }
.sp p { margin: 0; }
.sp__status { position: absolute; top: 16px; left: 26px; right: 24px; display: flex; justify-content: space-between; font-size: 11.5px; }
.sp__status i { width: 24px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #111; background: linear-gradient(90deg, #111 70%, transparent 70%); }
.sp__sub { font-size: 12.5px; color: #6b706d; }
.sp__name { margin-top: 2px !important; font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.sp__slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.sp__slot {
  height: 46px; border: 1px solid #e1e3e0; border-radius: 13px; background: #fff;
  font: 500 15px var(--f-sans); color: #111; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.sp__slot:hover:not(:disabled), .sp__slot:focus-visible { border-color: #111; transform: translateY(-2px); }
.sp__slot:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.sp__slot.is-busy { border-color: #111; background: #111; color: #fff; }
.sp__slot.is-mine { opacity: 1; text-decoration: none; border-color: #111; background: #111; color: var(--acc); }
.sp__note { margin-top: auto !important; text-align: center; font-size: 12px; color: #6b706d; }
.sp__note.is-ok { color: #1f45d6; font-weight: 500; }

.sl {
  width: 100%; overflow: hidden; border-radius: 14px; background: #fff; color: #111;
  box-shadow: 0 0 0 10px #121214, 0 0 0 11.5px rgba(255, 255, 255, 0.14), 0 60px 100px -40px rgba(0, 0, 0, 0.95);
}
.sl__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #e3e5e2; background: #f0f1ef; font-size: 11px; color: #6b706d; }
.pv__dots { display: inline-flex; gap: 6px; flex: none; }
.pv__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); }
.sl__bar .pv__dots i { background: #d0d2cf; }
.sl__body { position: relative; padding: 18px 22px 22px; }
.sl__h { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.sl__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.sl__list li { display: flex; align-items: center; gap: 14px; padding: 11px 8px; margin: 0 -8px; border-bottom: 1px solid #eceeeb; border-radius: 8px; font-size: 14px; }
.sl__list b { width: 46px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sl__list .open { color: #a3a6a2; }
.sl__list li.is-new { animation: rowflash 1.8s var(--ease); }
.sl__list li.is-new span { font-weight: 600; }
.sl__list li.is-new span::after { content: ' · new'; font-weight: 500; color: #1f45d6; }
@keyframes rowflash { 0% { background: color-mix(in srgb, var(--acc) 0%, transparent); } 12% { background: color-mix(in srgb, var(--acc) 60%, transparent); } 100% { background: color-mix(in srgb, var(--acc) 0%, transparent); } }
.sl__toast {
  position: absolute; top: 14px; right: 16px; margin: 0;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 12px; background: #111; color: #fff; font-size: 13px;
  box-shadow: 0 16px 30px -10px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden;
}
.sl__toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }

.sd { width: 100%; max-width: 300px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #121316; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95); }
.sd__k { margin: 0; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.sd__v { margin: 8px 0 16px; font-size: 68px; font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; transition: color 0.4s; }
.sd__v.is-bump { color: var(--acc); }
.sd__spark { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-bottom: 20px; }
.sd__spark i { flex: 1; height: var(--h); border-radius: 4px; background: rgba(237, 236, 231, 0.14); transition: height 0.6s var(--ease); }
.sd__spark i.now { background: var(--acc); }
.sd__feed { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.sd__feed li { padding: 9px 12px; border-radius: 10px; background: rgba(237, 236, 231, 0.04); }
.sd__feed li.is-new { background: color-mix(in srgb, var(--acc) 13%, transparent); color: var(--ink); }
.sd__feed b { margin-right: 6px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.sync__reset { margin: 44px 0 0; text-align: center; }
.sync__reset button { background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }

.step__art { flex: 1; min-height: 0; display: grid; place-items: center; padding: 10px 0 20px; color: var(--ink-3); }
.step__art svg { width: 100%; height: 100%; max-height: 300px; overflow: visible; }
.step__art .d { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step__art .d--acc { stroke: var(--acc); }
.step__art .dot { fill: var(--acc); transform-box: fill-box; transform-origin: center; }
.step__art .pulse { animation: dotpulse 1.6s ease-in-out infinite; }
.step:first-child .dot { animation: typing 1.4s ease-in-out infinite; }
.step:first-child .dot:nth-of-type(2) { animation-delay: 0.2s; }
.step:first-child .dot:nth-of-type(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
@keyframes dotpulse { 50% { transform: scale(1.6); opacity: 0.5; } }
.step__n { position: absolute; top: clamp(20px, 2.4vw, 36px); right: clamp(24px, 2.6vw, 40px); margin: 0; font-size: 12px; color: var(--acc-txt); }
.step h3 { margin: 0 0 12px; font-size: clamp(2rem, 3.4vw, 3.8rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.05em; }
.step > p:last-child { margin: 0; max-width: 30em; color: var(--ink-2); }

.step {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 420px;
  padding: clamp(22px, 2.4vw, 36px); border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(160deg, rgba(16, 24, 44, 0.9), rgba(7, 10, 20, 0.9));
}

/* ==========================================================================
   MOTION: page transitions and the loops that run from top to bottom
   ========================================================================== */
/* page transitions: a curtain of electric light, then night, with the destination's name */
.portal { position: fixed; inset: 0; z-index: 150; visibility: hidden; pointer-events: none; }
.portal-in .portal { visibility: visible; pointer-events: auto; }
.portal__glow, .portal__panel {
  position: absolute; inset: 0;
  border-radius: 50% 50% 50% 50% / var(--ct, 0vh) var(--ct, 0vh) var(--cb, 0vh) var(--cb, 0vh);
}
.portal__glow { background: linear-gradient(120deg, var(--blue-2), var(--blue) 45%, var(--cyan)); }
.portal__panel {
  display: grid; place-content: center; justify-items: center; gap: 20px; padding: var(--pad); text-align: center;
  background: radial-gradient(90vw 60vh at 50% 115%, rgba(59, 108, 255, 0.24), transparent 62%), var(--bg);
}
.portal__k { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.32em; color: var(--cyan); }
.portal__t {
  margin: 0; max-width: 12em; font: 900 clamp(2.6rem, 8vw, 8.4rem)/0.92 var(--f-display);
  font-variation-settings: 'wdth' 120; letter-spacing: -0.03em; text-wrap: balance;
}
.portal__c-mask { padding: 0.06em 0 0.14em; margin: -0.06em 0 -0.14em; }

/* marquees: bands of words that never stop (motion.js drives them; they lean and turn with the scroll) */
.marquee { position: relative; z-index: 2; overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee__track > * { flex: none; }
.marquee__w { padding: 0 0.3em; }
.marquee__w--o { color: transparent; -webkit-text-stroke: 1.4px rgba(234, 240, 250, 0.55); }
.marquee__w--g {
  background: var(--spec-loop) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}
.marquee__s { padding: 0 0.15em; font-size: 0.42em; color: var(--cyan); text-shadow: 0 0 18px var(--cyan); }
.marquee--big { padding: clamp(10px, 1.8vh, 20px) 0; border-block: 1px solid var(--line); background: rgba(5, 7, 13, 0.6); backdrop-filter: blur(8px); }
.marquee--big .marquee__track {
  font: 900 clamp(2.4rem, 6.6vw, 7rem)/1.02 var(--f-display); font-variation-settings: 'wdth' 125;
  letter-spacing: -0.03em; text-transform: uppercase;
}
.marquee--lit { border: 0; background: var(--electric); box-shadow: 0 0 60px -10px rgba(59, 108, 255, 0.7); }
.marquee--lit .marquee__w { color: #04060c; }
.marquee--lit .marquee__w--o { color: transparent; -webkit-text-stroke: 1.4px rgba(4, 6, 12, 0.75); }
.marquee--lit .marquee__s { color: #fff; text-shadow: 0 0 14px #fff; }
.marquee--mono { padding: 14px 0; border-block: 1px solid var(--line-2); }
.marquee--mono .marquee__track { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink-2); }
.marquee--mono .marquee__s { font-size: 1em; }
.bands { position: relative; z-index: 2; overflow: hidden; padding: clamp(60px, 11vh, 130px) 0; }
.bands .marquee { margin-inline: -6vw; }
.bands .marquee + .marquee { margin-top: clamp(-26px, -1.6vh, -10px); }
.bands__a { rotate: -3.2deg; }
.bands__b { rotate: 2.4deg; }

/* spinning badges */
.badge {
  position: relative; display: grid; place-items: center; width: var(--size, 128px); aspect-ratio: 1; border-radius: 50%;
  color: var(--ink); text-decoration: none;
}
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.badge__ring text { font: 500 15px var(--f-mono); letter-spacing: 0.22em; text-transform: uppercase; fill: var(--ink-2); }
.badge__core {
  display: grid; place-items: center; width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: var(--electric); color: #fff; box-shadow: 0 0 34px -6px rgba(59, 108, 255, 0.9);
  transition: transform 0.6s var(--ease);
}
.badge__core svg { width: 36%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge:hover .badge__core { transform: scale(1.14); }

/* light keeps sweeping across the main buttons */
.btn--spec::after {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-130%); animation: shine 4.6s var(--ease-io) infinite;
}
@keyframes shine { 0%, 62% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* a comet of light orbiting the edge of cards */
@property --orbit { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.step::after, .contact__links::after {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--orbit), transparent 0deg 240deg, rgba(91, 231, 255, 0.15) 290deg, var(--cyan) 330deg, transparent 350deg);
  -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);
  animation: orbit 7s linear infinite;
}
.step:nth-child(2)::after { animation-delay: -1.75s; }
.step:nth-child(3)::after { animation-delay: -3.5s; }
.step:nth-child(4)::after { animation-delay: -5.25s; }
@keyframes orbit { to { --orbit: 360deg; } }

/* the logo's inner square turns a quarter every few seconds */
.hdr__mark rect:nth-of-type(2) { transform-box: fill-box; transform-origin: center; animation: markspin 6s var(--ease-io) infinite; }
@keyframes markspin { 0%, 68% { rotate: 0deg; } 100% { rotate: 90deg; } }

/* devices drift, never quite still */
.prod__visual .dev--phone, .c-cover .dev--phone, .show__visual .dev--phone { animation: bob 5.2s ease-in-out infinite; }
.prod__visual .dev--laptop, .c-cover .dev--laptop, .show__visual .dev--laptop { --bob: -7px; animation: bob 7.4s ease-in-out -2.6s infinite; }
.sync__dev { --bob: -9px; animation: bob 6.2s ease-in-out infinite; }
.sync__laptop { animation-delay: -2s; }
.sync__dash { animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 var(--bob, -12px); } }

/* ==========================================================================
   RESPONSIVE + MOTION
   ========================================================================== */
@media (max-width: 1023px) {
  :root { --pad-l: var(--pad); }
  .hdr__time, .sound__txt { display: none; }
  .hdr__right .btn { display: none; }
  .hdr__menu { display: inline-flex; align-items: center; }
  .sec-head .h2 { grid-column: 1 / -1; }
  .sec-head__aside { grid-column: 1 / span 8; margin-top: 24px; }
  .sync { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 0; row-gap: 48px; }
  .sync__wires, .sync__hub { display: none; }
  .sync__laptop { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .hdr { padding-block: 12px; }
  .hdr__name { display: none; }
  .sec-head__aside { grid-column: 1 / -1; }
  .dev--laptop { width: 92%; transform: translateY(-58%) rotateY(-12deg) rotateX(6deg); }
  .dev--phone { width: 30%; bottom: 0; }
  .sync { grid-template-columns: minmax(0, 1fr); }
  .sync__laptop { grid-row: auto; }
  .sp { aspect-ratio: auto; width: min(100%, 300px); padding-bottom: 22px; }
  .sp__note { margin-top: 18px !important; }
  .sl__toast { top: auto; bottom: 14px; }
  .sl__list { grid-template-columns: 1fr; }
  .sl__list li:nth-child(n + 7) { display: none; }
  .sd { max-width: none; }
  .foot__giant { font-size: 8vw; }
  .bands .marquee { margin-inline: -10vw; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .sync__ring, .step__art .pulse, .sound__bars i { animation: none !important; }
  .h2 em, .contact__title em, .foot__c, .marquee__w--g, .btn--spec::after, .step::after, .contact__links::after,
  .hdr__mark rect, .dev, .sync__dev { animation: none !important; }
  .btn--spec::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  /* not transition-duration: with the default transition-property (all) that would make
     every inline style GSAP writes transition, and GSAP would read mid-transition values */
  *, *::before, *::after { transition: none !important; }
}
