/*
 * EXIBO, exibo.org
 * A dark hall lit by its screens. Blue is light and action, nothing else.
 */
:root {
  --hall: #0b0b12;
  --hall-2: #12131c;
  --hall-3: #181a24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --text-2: #9aa4b1;
  --slate: #8f9aa7;
  --blue: #0066ff;
  --blue-hover: #1f78ff;
  --blue-light: #5aa6ff;
  --blue-ink: #0055d4;
  --ice: #d6e8ff;
  --mint: #8fe3bf;
  --paper: #f7f8fa;
  --ink: #0b0b12;
  --ink-2: #545e6b;
  --wrap: 1200px;
  --gutter: clamp(20px, 4.2vw, 48px);
  --nav-h: 56px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--hall);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
canvas { display: block; }

[hidden] { display: none !important; }

img { max-width: 100%; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- type ---------- */
h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  font-weight: 640;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 36em;
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--text-2);
  text-wrap: pretty;
}

.section-head .lede { margin-top: 20px; }

.fine {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-2);
}

.fine a { color: inherit; text-underline-offset: 0.18em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(9, 10, 17, 0.55);
  color: #fff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.44); background: rgba(24, 26, 36, 0.7); }

.btn-outline {
  border-color: rgba(11, 11, 18, 0.2);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--ink); }

.btn-small {
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.9375rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(11, 11, 18, 0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(11, 11, 18, 0.86);
  border-bottom-color: var(--line);
}

.doc-page .nav { background: var(--hall); }

.nav-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand img { width: auto; height: 21px; }

.brand-footer img { height: 46px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: rgba(245, 247, 251, 0.74);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] { color: #fff; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.nav-toggle-lines,
.nav-toggle-lines::before {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: auto;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.nav-toggle-lines { transform: translateY(-3.5px); }
.nav-toggle-lines::before { content: ""; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: rotate(-90deg); }

.nav.menu-open {
  background: rgba(11, 11, 18, 0.97);
  border-bottom-color: transparent;
}

.menu {
  height: calc(100svh - var(--nav-h));
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding: 12px var(--gutter) 28px;
}

.menu nav { display: grid; }

.menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

/* ---------- hero: the show floor ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 680px);
  padding: calc(var(--nav-h) + clamp(32px, 6.5vh, 84px)) var(--gutter) 0;
  overflow: hidden;
  background: var(--hall);
  text-align: center;
}

.floor {
  position: absolute;
  inset: 0;
}

.floor-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  touch-action: pan-y;
}

.floor.is-ready .floor-canvas { opacity: 1; }

/* Fades: the far hall into the night behind the headline, and the sides. */
.floor::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(64% 50% at 50% 20%, rgba(11, 11, 18, 0.94), rgba(11, 11, 18, 0.6) 50%, rgba(11, 11, 18, 0) 78%),
    linear-gradient(180deg, var(--hall) 0%, rgba(11, 11, 18, 0.5) 32%, rgba(11, 11, 18, 0) 46%),
    linear-gradient(0deg, var(--hall) 0%, rgba(11, 11, 18, 0) 9%),
    linear-gradient(90deg, var(--hall) 0%, rgba(11, 11, 18, 0) 12%, rgba(11, 11, 18, 0) 88%, var(--hall) 100%);
}

.floor-still {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 100%;
}

.no-webgl .floor-still { display: block; }
.no-webgl .crowd { display: none !important; }

.floor-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  margin: -10px 0 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  translate: -50% -100%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.floor-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin-inline: auto;
  pointer-events: none;
}

.hero-copy a,
.hero-copy button { pointer-events: auto; }

.hero-title {
  font-size: clamp(3rem, 7.4vw, 7rem);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.052em;
  text-wrap: balance;
  text-shadow: 0 0.04em 0.4em rgba(11, 11, 18, 0.6);
}

.hero-lede {
  max-width: 34ch;
  margin: clamp(18px, 2.6vh, 28px) auto 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: rgba(232, 238, 247, 0.82);
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(11, 11, 18, 0.9);
}

.hero .actions {
  justify-content: center;
  margin-top: clamp(22px, 3.4vh, 34px);
}

/* The crowd card: what's happening on the floor, and a way to join in. */
.crowd {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  translate: -50% 12px;
  opacity: 0;
  transition: opacity 0.6s ease, translate 0.6s var(--ease);
}

.crowd.is-on {
  opacity: 1;
  translate: -50% 0;
}

.crowd-hint {
  margin: 0;
  color: rgba(245, 247, 251, 0.82);
  font-size: 14px;
  text-shadow: 0 1px 12px rgba(11, 11, 18, 0.9);
}

.crowd.is-full .crowd-hint {
  color: #fff;
  font-weight: 600;
}

.crowd-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 12, 20, 0.66);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

.crowd-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: rgba(245, 247, 251, 0.74);
  font-size: 14px;
  white-space: nowrap;
}

.crowd-stat[hidden] { display: none; }

.crowd-stat b {
  min-width: 1.3ch;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.crowd-stat.is-alive b { color: #8ec2ff; }
.crowd-stat.is-gray b { color: var(--slate); }

.crowd-btn {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.crowd-btn:hover { background: #dbe8ff; }
.crowd-btn:active { transform: scale(0.97); }

/* ---------- statement ---------- */
.statement {
  padding: clamp(110px, 18vh, 220px) var(--gutter);
}

.statement-text {
  max-width: 1080px;
  margin-inline: auto;
  font-size: clamp(1.7rem, 3.5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.034em;
  text-wrap: pretty;
}

.statement-text .w {
  color: rgba(245, 247, 251, 0.2);
  transition: color 0.35s ease;
}

.statement-text .w.on { color: var(--text); }

/* ---------- what we build ---------- */
.build {
  padding: clamp(96px, 13vh, 160px) 0 clamp(72px, 10vh, 120px);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, #0e1018 0%, #090a10 100%);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 26%);
}

.tile > * { position: relative; }

.tile-text p {
  margin-top: 6px;
  max-width: 30em;
  color: var(--text-2);
  font-size: 1rem;
}

.tile-foot {
  color: rgba(163, 172, 185, 0.85);
  font-size: 13.5px;
}

.tile-model { grid-column: span 8; min-height: 660px; }
.tile-kiosk { grid-column: span 4; }
.tile-sim,
.tile-size,
.tile-screens { grid-column: span 4; min-height: 480px; }
.tile-plant,
.tile-web { grid-column: span 12; }

/* Segmented control (used by the screen switcher). */
.segmented {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.segmented-track {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.segmented button {
  display: block;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.segmented button:hover { color: #fff; }

.segmented button[aria-checked="true"] {
  background: #fff;
  color: var(--ink);
}

.segmented-small { align-self: center; }

/* Range inputs, styled once. */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-light) var(--fill, 0%), rgba(255, 255, 255, 0.14) var(--fill, 0%));
}

input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--blue-light);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(90, 166, 255, 0.55); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(90, 166, 255, 0.55); }

/* ----- 1. product in 3D ----- */
.motor-stage {
  position: relative;
  flex: 1;
  min-height: 380px;
  margin: -4px -28px 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  background:
    radial-gradient(46% 44% at 50% 54%, rgba(0, 102, 255, 0.2), transparent 72%),
    radial-gradient(60% 18% at 50% 84%, rgba(255, 255, 255, 0.035), transparent 70%);
}

.motor-stage:active { cursor: grabbing; }

.motor-stage:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: -6px;
  border-radius: 18px;
}

.motor-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.motor-still {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(84%, 680px);
  height: auto;
  transform: translate(-50%, -50%);
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.motor-stage.is-3d .motor-canvas { opacity: 1; }
.motor-stage.is-3d .motor-still { opacity: 0; }

.motor-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(163, 172, 185, 0.85);
  font-size: 13px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.motor-hint::before {
  content: "";
  width: 16px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.8;
}

.motor-stage.was-used .motor-hint,
.motor-stage.is-still .motor-hint { opacity: 0; }

.motor-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.motor-label {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.motor-label i {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(90, 166, 255, 0.35), 0 0 14px rgba(90, 166, 255, 0.9);
}

.motor-label span {
  position: absolute;
  left: 0;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(9, 11, 19, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.motor-label.is-below span {
  top: 12px;
  bottom: auto;
}

.model-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.motor-stage.is-still ~ .model-controls { display: none; }

.model-slider {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
  font-size: 13.5px;
}

.model-slider input { flex: 1; min-width: 0; }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  font-weight: 560;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.toggle:hover { border-color: rgba(255, 255, 255, 0.4); }

.toggle-dot {
  position: relative;
  width: 32px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 0.25s ease;
}

.toggle-dot::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.toggle[aria-pressed="true"] { border-color: rgba(90, 166, 255, 0.6); background: rgba(0, 102, 255, 0.12); }
.toggle[aria-pressed="true"] .toggle-dot { background: var(--blue); }
.toggle[aria-pressed="true"] .toggle-dot::after { transform: translateX(12px); }

/* ----- 2. kiosk mode ----- */
.kiosk {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0 8px;
}

.kiosk-body {
  width: 262px;
  max-width: 100%;
  padding: 11px 11px 0;
  border-radius: 22px;
  background: linear-gradient(90deg, #1b1c21 0%, #0c0d10 14%, #0f1014 60%, #18191e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.04),
    0 40px 70px -30px rgba(0, 0, 0, 0.95),
    0 0 90px rgba(0, 102, 255, 0.13);
}

.kiosk-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(130% 80% at 50% 30%, #0a1a44 0%, #040817 60%, #02030a 100%);
  box-shadow: 0 0 0 3px #020203;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.kiosk-chin {
  display: grid;
  place-items: center;
  height: 54px;
}

.kiosk-chin img { width: 18px; height: auto; opacity: 0.45; }

.kiosk-plinth {
  width: 300px;
  max-width: 100%;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(180deg, #8e8c87 0%, #7b7975 30%, #4c4b48 31%, #2f2e2c 100%);
  box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.k-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
}

.kiosk-screen:not([data-state="attract"]) .k-wave { opacity: 0.28; }

.k-bar {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
}

.k-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  touch-action: none;
  -webkit-touch-callout: none;
}

.k-logo img { width: 16px; height: auto; }

.k-hold {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(var(--blue-light) var(--hold, 0deg), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 12px, #000 13px);
  mask: radial-gradient(circle, transparent 12px, #000 13px);
  opacity: 0;
}

.k-logo.is-holding .k-hold { opacity: 1; }

.k-crumb {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: opacity 0.3s ease;
}

.kiosk-screen[data-state="attract"] .k-crumb { opacity: 0; }

.k-idle {
  color: var(--mint);
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.k-attract {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 0 26px;
  border: 0;
  background: transparent;
  color: #fff;
  transition: opacity 0.45s ease, visibility 0.45s;
}

.k-float {
  position: absolute;
  left: -6%;
  top: 24%;
  width: 112%;
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.55));
  animation: k-float 6s ease-in-out infinite;
}

@keyframes k-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.k-attract-title {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.k-touch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 11px;
  border: 1px solid rgba(214, 232, 255, 0.35);
  border-radius: 999px;
  background: rgba(4, 8, 22, 0.6);
  font-size: 12px;
  font-weight: 560;
}

.k-touch .touch-ring { background: var(--ice); }
.k-touch .touch-ring::after { border-color: rgba(214, 232, 255, 0.7); }

.touch-ring {
  position: relative;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
}

.touch-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid;
  animation: ring 2s var(--ease) infinite;
}

.kiosk-screen:not([data-state="attract"]) .k-attract {
  opacity: 0;
  visibility: hidden;
}

.k-view {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 50px 13px 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s;
}

.kiosk-screen:is([data-state="app"], [data-state="countdown"]) .k-view.is-current {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.k-product {
  width: 100%;
  height: auto;
  margin: 2px 0 4px;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.55));
}

.k-h {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.k-sub {
  margin-top: -5px;
  color: rgba(214, 226, 244, 0.66);
  font-size: 11px;
}

.k-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
}

.k-grid button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 66px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.k-grid button:hover { background: rgba(0, 102, 255, 0.28); border-color: rgba(90, 166, 255, 0.5); }

.k-grid svg,
.k-check svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #9ccaff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.k-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: -2px;
  padding: 5px 10px 5px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 560;
}

.k-back::before {
  content: "";
  width: 6px;
  height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.k-explore {
  position: relative;
  flex: 1;
  min-height: 0;
}

.k-explore img {
  position: absolute;
  left: -4%;
  top: 50%;
  width: 108%;
  height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.55));
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}

.k-ex-b { opacity: 0; transform: translateY(-50%) scale(0.96); }
.k-explore.is-apart .k-ex-a { opacity: 0; transform: translateY(-50%) scale(1.04); }
.k-explore.is-apart .k-ex-b { opacity: 1; transform: translateY(-50%); }

.k-pill {
  align-self: center;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.k-specs { margin: 4px 0 0; }

.k-specs div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.k-specs dt { color: rgba(214, 226, 244, 0.7); }
.k-specs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.k-view[data-kiosk-view="take"],
.k-view[data-kiosk-view="call"] { align-items: center; text-align: center; }

.k-view[data-kiosk-view="take"] .k-back,
.k-view[data-kiosk-view="call"] .k-back { align-self: flex-start; }

.k-qr {
  width: 132px;
  margin: 18px 0 8px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.3);
}

.k-qr svg { display: block; width: 100%; height: auto; }

.k-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 40px 0 10px;
  border-radius: 50%;
  background: rgba(143, 227, 191, 0.14);
  box-shadow: inset 0 0 0 1px rgba(143, 227, 191, 0.4);
}

.k-check svg { width: 30px; height: 30px; stroke: var(--mint); stroke-width: 2.2; }

.k-countdown {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: rgba(2, 4, 12, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: center;
  font-size: 12.5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.k-countdown svg {
  width: 54px;
  height: 54px;
  transform: rotate(-90deg);
}

.k-countdown circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 3;
}

.k-countdown .k-ring {
  stroke: var(--blue-light);
  stroke-linecap: round;
  stroke-dasharray: 119.4;
  stroke-dashoffset: 0;
}

.k-countdown.is-running .k-ring {
  stroke-dashoffset: 119.4;
  transition: stroke-dashoffset 3s linear;
}

.kiosk-screen[data-state="countdown"] .k-countdown {
  opacity: 1;
  visibility: visible;
}

.k-staff {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  align-content: end;
  gap: 2px;
  padding: 14px 13px;
  background: linear-gradient(transparent, rgba(2, 4, 12, 0.96) 28%);
  font-size: 11.5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.kiosk-screen[data-state="staff"] .k-staff {
  opacity: 1;
  visibility: visible;
}

.k-staff p {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 247, 251, 0.85);
}

.k-staff .k-staff-title {
  border: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}

.k-on { color: var(--mint); }

.k-staff button {
  margin-top: 10px;
  padding: 9px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

/* ----- 3. simulation ----- */
.sim {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.sim-svg {
  width: 100%;
  height: auto;
  max-height: 250px;
  overflow: visible;
}

.sim-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
  stroke-linecap: round;
}

[data-sim-dots] { filter: drop-shadow(0 0 3px rgba(122, 182, 255, 0.95)); }

.sim-bg {
  fill: rgba(255, 255, 255, 0.045);
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  transition: opacity 0.4s ease, stroke 0.4s ease;
}

.sim-icon {
  fill: none;
  stroke: #f5f7fb;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s ease, opacity 0.4s ease;
}

.sim-windows rect {
  fill: #ffd27a;
  filter: drop-shadow(0 0 3px rgba(255, 210, 122, 0.9));
}

.sim-level {
  fill: var(--mint);
  transition: y 0.6s ease, height 0.6s ease;
}

.sim-label {
  fill: var(--text-2);
  font-size: 11px;
  font-weight: 500;
}

.sim-value {
  fill: #fff;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sim-cut {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sim-cut circle {
  fill: #1c0b10;
  stroke: #ff6b6b;
  stroke-width: 1.5;
}

.sim-cut path {
  stroke: #ff8a8a;
  stroke-width: 2;
  stroke-linecap: round;
}

.sim[data-state="battery"] .sim-cut { opacity: 1; }
.sim[data-state="battery"] .sim-n-grid .sim-bg,
.sim[data-state="battery"] .sim-n-grid .sim-icon { opacity: 0.4; }
.sim[data-state="battery"] .sim-n-batt .sim-bg { stroke: rgba(143, 227, 191, 0.7); }

.sim-status {
  position: relative;
  min-height: 2.9em;
  padding-left: 18px;
  color: rgba(245, 247, 251, 0.88);
  font-size: 14.5px;
}

.sim-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-light);
}

.sim[data-state="battery"] .sim-status::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); }

.sim .btn { margin-top: auto; }

/* ----- 4. sizing tool ----- */
.sizer {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sizer-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sizer-count {
  font-size: 4.6rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.sizer-unit {
  color: var(--text-2);
  font-size: 1.0625rem;
}

.rack {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  height: 104px;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #06070b 0%, #0c0e15 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 12px 22px rgba(0, 0, 0, 0.55);
}

.rack i {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(90deg, #1b1e26 0%, #12141a 50%, #1c1f27 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.rack i::before {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  top: 9px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.rack i::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 10px;
  height: 30px;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0 2px, transparent 2px 5px);
  opacity: 0.75;
}

.rack i.on {
  background: linear-gradient(90deg, #1d4dbb 0%, #1659e8 50%, #2b6ef2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 20px rgba(0, 102, 255, 0.45);
}

.rack i.on::before {
  background: #c5ffe2;
  box-shadow: 0 0 8px var(--mint);
}

.sizer-cap {
  color: rgba(245, 247, 251, 0.86);
  font-size: 14.5px;
}

.sizer-input {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.sizer-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 14px;
}

.sizer-row output {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sizer-note {
  color: rgba(163, 172, 185, 0.78);
  font-size: 13px;
}

/* ----- 5. one build, every screen ----- */
.morph {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.device {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.morph[data-shape="kiosk"] { --dw: 140px; --dh: 244px; --dr: 16px; --db: 6px; }
.morph[data-shape="wall"] { --dw: min(300px, 100%); --dh: 174px; --dr: 6px; --db: 4px; }
.morph[data-shape="tablet"] { --dw: 252px; --dh: 186px; --dr: 22px; --db: 10px; }

.device-screen {
  width: var(--dw);
  height: var(--dh);
  padding: var(--db);
  border-radius: var(--dr);
  background: linear-gradient(180deg, #0b0c10, #050507);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 34px 60px -30px rgba(0, 0, 0, 0.95),
    0 0 70px rgba(0, 102, 255, 0.15);
  transition: width 0.7s var(--ease), height 0.7s var(--ease), border-radius 0.7s var(--ease), padding 0.7s var(--ease);
}

.device-stand {
  position: relative;
  display: block;
  width: 16px;
  height: 28px;
  background: linear-gradient(90deg, #191a1f 0%, #0b0c0f 50%, #191a1f 100%);
  transition: height 0.6s var(--ease), opacity 0.4s ease;
}

.device-stand::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 96px;
  height: 8px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #2a2b31, #111216);
  transform: translateX(-50%);
}

.morph:not([data-shape="kiosk"]) .device-stand { height: 0; opacity: 0; }

.app {
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: max(2px, calc(var(--dr) - var(--db)));
  background: radial-gradient(120% 80% at 50% 30%, #0c1c42 0%, #050914 72%);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "bar" "hero" "text";
  transition: opacity 0.16s ease;
}

.app.is-changing { opacity: 0; }

.morph:not([data-shape="kiosk"]) .app {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "bar bar" "hero text";
}

.app-bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 600;
}

.app-bar img { width: 10px; height: auto; }

.app-hero {
  grid-area: hero;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 4px;
}

.app-hero img {
  width: 104%;
  max-width: none;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.6));
}

.app-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 10px 11px;
}

.app-h {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.morph:not([data-shape="kiosk"]) .app-h { font-size: 13px; }

.app-p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 7.5px;
}

.app-buttons {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.app-buttons span {
  flex: 1;
  padding: 4px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 7px;
  font-weight: 600;
  text-align: center;
}

.app-buttons span:first-child { background: var(--blue); }

/* ----- 6. process animation: a power plant ----- */
.tile-plant { gap: 14px; }

.plant-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

.plant-readouts {
  display: flex;
  gap: 28px;
  margin: 0;
}

.plant-readouts div { min-width: 92px; }

.plant-readouts dt {
  color: var(--text-2);
  font-size: 13px;
}

.plant-readouts dd {
  margin: 2px 0 0;
  color: rgba(245, 247, 251, 0.7);
  font-size: 13px;
  white-space: nowrap;
}

.plant-readouts dd span {
  margin-right: 3px;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plant {
  position: relative;
  margin: 4px -8px 0;
  border-radius: 18px;
  background:
    radial-gradient(60% 70% at 50% 60%, rgba(0, 102, 255, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

/* 3D and 2D share one stage: the 2D drawing sets its size, the 3D model
   sits on top of it, and the switch fades between them. */
.plant-2d { transition: opacity 0.45s ease; }

.plant-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  cursor: grab;
  touch-action: pan-y;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.plant-3d.is-dragging { cursor: grabbing; }

.plant-3d canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.plant[data-view="3d"] .plant-3d {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}

/* The model gets a taller stage than the drawing, so it reads at every size. */
.plant[data-view="3d"] { min-height: clamp(300px, 52vw, 520px); }

.plant[data-view="3d"] .plant-2d {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.p3-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.p3-label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 11, 18, 0.62);
  color: rgba(245, 247, 251, 0.86);
  font-size: 12px;
  font-weight: 560;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease;
  will-change: transform;
}

.p3-label.is-on {
  background: var(--blue);
  color: #fff;
}

.plant-views {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(14, 15, 24, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.plant-views button {
  min-width: 46px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 247, 251, 0.72);
  font-size: 13px;
  font-weight: 650;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.plant-views button:hover { color: #fff; }

@media (pointer: coarse) {
  .plant-views button { min-width: 52px; min-height: 40px; font-size: 14px; }
}

.plant-views button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
}

.plant-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.pl-track path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pl-flow {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 12;
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: pl-flow 0.7s linear infinite;
}

.pl-reverse { animation-direction: reverse; }

@keyframes pl-flow { to { stroke-dashoffset: -14; } }

.pl-fuel { stroke: #ffa24c; filter: drop-shadow(0 0 3px rgba(255, 162, 76, 0.9)); }
.pl-steam { stroke: #e3eeff; filter: drop-shadow(0 0 3px rgba(227, 238, 255, 0.9)); }
.pl-water,
.pl-cool { stroke: #4f9bff; filter: drop-shadow(0 0 3px rgba(79, 155, 255, 0.9)); }
.pl-power { stroke: #ffd27a; stroke-width: 3.5; filter: drop-shadow(0 0 4px rgba(255, 210, 122, 0.95)); }

.pl-body {
  fill: url(#pl-glass);
  stroke: rgba(245, 247, 251, 0.34);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: stroke 0.6s ease;
}

.pl-line {
  fill: none;
  stroke: rgba(245, 247, 251, 0.2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pl-tower { stroke: rgba(245, 247, 251, 0.34); }

.plant-svg text {
  fill: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.pl-heat {
  fill: url(#pl-heat);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.pl-flame {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: opacity 0.6s ease;
}

.pl-flame path { fill: #ff8a3d; filter: drop-shadow(0 0 6px rgba(255, 138, 61, 0.9)); }
.pl-flame .pl-flame-core { fill: #ffe2a8; }

.pl-blade { fill: none; stroke: rgba(245, 247, 251, 0.3); stroke-width: 6; }
.pl-blade-shade { stroke: rgba(245, 247, 251, 0.1); }

.pl-shaft {
  fill: none;
  stroke: rgba(245, 247, 251, 0.3);
  stroke-width: 8;
  stroke-dasharray: 3 3;
}

.pl-charge {
  fill: url(#pl-charge);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.pl-windows rect {
  fill: rgba(255, 255, 255, 0.07);
  transition: fill 0.4s ease;
}

.pl-windows rect.on { fill: #ffd27a; }

.pl-impeller { stroke: rgba(245, 247, 251, 0.5); transform-box: fill-box; transform-origin: center; }

.pl-plume { opacity: 0; transition: opacity 1.2s ease; }
.pl-plume circle { fill: rgba(230, 238, 250, 0.45); transform-box: fill-box; transform-origin: center; }

/* States, switched on by the script one step at a time. */
.plant[data-fuel="on"] .pl-fuel,
.plant[data-fuel="on"] .pl-flame { opacity: 1; }
.plant[data-fuel="on"] .pl-flame { animation: pl-flicker 0.18s ease-in-out infinite alternate; }
.plant[data-heat="on"] .pl-heat { opacity: 1; }
.plant[data-heat="on"] .pl-boiler { stroke: rgba(255, 162, 76, 0.8); }
.plant[data-steam="on"] .pl-steam,
.plant[data-steam="on"] .pl-water { opacity: 1; }
.plant[data-steam="on"] .pl-turbine { stroke: rgba(227, 238, 255, 0.75); }
.plant[data-steam="on"] .pl-impeller { animation: pl-spin 0.8s linear infinite; }
.plant[data-steam="on"] .pl-shaft { animation: pl-flow 0.18s linear infinite; stroke: rgba(245, 247, 251, 0.5); }
.plant[data-sync="on"] .pl-charge { opacity: 1; }
.plant[data-sync="on"] .pl-generator { stroke: rgba(122, 182, 255, 0.9); }
.plant[data-sync="on"] .pl-coil { stroke: rgba(122, 182, 255, 0.55); }
.plant[data-power="on"] .pl-power,
.plant[data-power="on"] .pl-cool,
.plant[data-power="on"] .pl-plume { opacity: 1; }
.plant[data-power="on"] .pl-transformer,
.plant[data-power="on"] .pl-tower { stroke: rgba(255, 210, 122, 0.7); }
.plant[data-power="on"] .pl-cooling,
.plant[data-power="on"] .pl-condenser { stroke: rgba(79, 155, 255, 0.7); }
.plant[data-power="on"] .pl-plume circle { animation: pl-plume 3.2s ease-out infinite; }
.plant[data-power="on"] .pl-plume circle:nth-child(2) { animation-delay: -1.1s; }
.plant[data-power="on"] .pl-plume circle:nth-child(3) { animation-delay: -2.2s; }

@keyframes pl-flicker {
  from { transform: scale(1, 0.9); }
  to { transform: scale(1.04, 1.06); }
}

@keyframes pl-spin { to { transform: rotate(360deg); } }

@keyframes pl-plume {
  0% { transform: translate(0, 6px) scale(0.6); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translate(14px, -34px) scale(1.5); opacity: 0; }
}

.plant-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "steps toggle"
    "status toggle";
  align-items: center;
  gap: 12px 28px;
}

.plant-steps {
  grid-area: steps;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.plant-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13.5px;
  white-space: nowrap;
  counter-increment: step;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.plant-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(245, 247, 251, 0.7);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.plant-steps li.is-done { color: rgba(245, 247, 251, 0.86); }
.plant-steps li.is-done::before { content: "✓"; background: rgba(143, 227, 191, 0.18); color: var(--mint); }

.plant-steps li[aria-current="step"] {
  border-color: rgba(90, 166, 255, 0.6);
  background: rgba(0, 102, 255, 0.16);
  color: #fff;
}

.plant-steps li[aria-current="step"]::before { background: var(--blue); color: #fff; }

.plant-status {
  grid-area: status;
  margin: 0;
  color: rgba(245, 247, 251, 0.78);
  font-size: 14px;
}

.plant-toggle {
  grid-area: toggle;
  min-width: 9.5em;
}

/* ----- 7. an app: one change, every screen ----- */
.tile-web { gap: 26px; }

.web-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

.web-head .tile-text { max-width: 30em; }

.web-control {
  display: flex;
  align-items: center;
  gap: 16px;
}

.web-status {
  margin: 0;
  color: rgba(245, 247, 251, 0.78);
  font-size: 14px;
  text-align: right;
}

.web-control .btn { min-width: 10.5em; }

.web-screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-display {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(90% 80% at 80% 100%, rgba(0, 102, 255, 0.28), transparent 70%),
    linear-gradient(180deg, #0c1222, #070910);
  box-shadow:
    0 0 0 5px #14151d,
    0 0 0 6px rgba(255, 255, 255, 0.1),
    0 24px 40px -24px rgba(0, 0, 0, 0.9);
}

.ws-display img {
  position: absolute;
  right: -4%;
  bottom: 6%;
  width: 64%;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5));
  transition: transform 0.6s var(--ease);
}

.ws-title {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.ws-spec {
  position: relative;
  margin: 4px 0 0;
  color: rgba(245, 247, 251, 0.72);
  font-size: clamp(11px, 0.95vw, 12.5px);
  white-space: nowrap;
}

.ws-spec span { transition: opacity 0.25s ease; }

.ws-new {
  display: none;
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
}

.ws-bar {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(0, 102, 255, 0), #3d8bff 60%, #a9d0ff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
}

.web-screen.is-updating .ws-bar { animation: ws-sweep 0.7s var(--ease) forwards; }
.web-screen.is-updating .ws-spec span { opacity: 0; }
.web-screen.is-new .ws-new { display: inline-block; animation: ws-pop 0.4s var(--ease); }
.web-screen.is-new .ws-display img { transform: scale(1.06); }

@keyframes ws-sweep {
  0% { transform: scaleX(0); opacity: 1; }
  85% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes ws-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.ws-place {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 2px 0;
  color: var(--text-2);
  font-size: 13px;
}

.ws-place strong {
  color: #fff;
  font-weight: 600;
}

.web-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 6px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.web-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  color: rgba(245, 247, 251, 0.72);
  font-size: 14.5px;
  line-height: 1.45;
}

.web-list strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.web-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(0, 102, 255, 0.24), rgba(0, 102, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(90, 166, 255, 0.28);
}

.web-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #a9d0ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- projects ---------- */
.projects {
  padding: clamp(64px, 10vh, 120px) 0 clamp(96px, 13vh, 160px);
}

.projects .section-head {
  text-align: center;
}

.projects .lede { margin-inline: auto; }

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.logos li { width: min(330px, 100%); }

.logo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  aspect-ratio: 16 / 10;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #0e1018 0%, #090a10 100%);
  color: #fff;
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.25s ease, box-shadow 0.35s ease;
}

.logo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 70% at 50% 115%, rgba(var(--glow), 0.32), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.logo-tile > * { position: relative; }

.logo-mark {
  width: min(140px, 56%);
  height: auto;
}

.logo-mark.is-word { width: min(220px, 82%); }

.logo-product {
  color: var(--text-2);
  font-size: 13.5px;
  text-align: center;
}

.logo-open {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  color: rgb(var(--glow));
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.logo-tile:hover,
.logo-tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--glow), 0.55);
  box-shadow: 0 26px 50px -26px rgba(var(--glow), 0.5);
}

.logo-tile:hover::before,
.logo-tile:focus-visible::before { opacity: 1; }

.logo-tile:hover .logo-open,
.logo-tile:focus-visible .logo-open {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .logo-open { opacity: 1; transform: none; }
}

/* ---------- daylight: process and pricing ---------- */
.daylight {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

.daylight .lede { color: var(--ink-2); }
.daylight :focus-visible { outline-color: var(--blue); }

.process {
  padding: clamp(96px, 13vh, 150px) 0 clamp(56px, 8vh, 90px);
}

/* How it works: three stages joined by a line that fills as each one runs. */
.flow {
  --node: 40px;
  --gap: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  position: relative;
  cursor: pointer;
}

.flow-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 1.5px solid rgba(11, 11, 18, 0.16);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.flow-step.is-done .flow-node {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.flow-step.is-active .flow-node {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 7px rgba(0, 102, 255, 0.14);
}

.flow-line {
  position: absolute;
  top: calc(var(--node) / 2 - 1px);
  left: calc(var(--node) + 10px);
  right: calc(-1 * var(--gap) + 10px);
  height: 2px;
  border-radius: 2px;
  background: rgba(11, 11, 18, 0.12);
  overflow: hidden;
}

.flow-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--ink), var(--blue));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s ease;
}

.flow-step.is-active .flow-line i {
  transform: scaleX(1);
  transition: transform var(--flow-dur, 4s) linear;
}

.flow-step.is-done .flow-line i {
  transform: scaleX(1);
  transition: transform 0.4s ease;
}

.flow-art {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(11, 11, 18, 0.08);
  border-radius: 20px;
  background-color: #fff;
  background-image: radial-gradient(rgba(11, 11, 18, 0.08) 1px, transparent 1.3px);
  background-size: 16px 16px;
  container-type: inline-size;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.flow-step.is-active .flow-art {
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 30px 60px -38px rgba(0, 50, 140, 0.45);
}

.flow-step > h3 {
  margin-top: 22px;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}

.flow-step > p {
  margin-top: 8px;
  max-width: 26em;
  color: var(--ink-2);
}

/* Stage 1: files fly into EXIBO. */
.art-files .file {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 2.4cqw;
  padding: 1.8cqw 3.6cqw 1.8cqw 1.8cqw;
  border-radius: 3.4cqw;
  background: #fff;
  box-shadow: 0 1px 0 rgba(11, 11, 18, 0.04), 0 10px 22px -12px rgba(11, 11, 18, 0.4), 0 0 0 1px rgba(11, 11, 18, 0.07);
  color: var(--ink);
  font-size: clamp(10.5px, 3.9cqw, 14px);
  font-weight: 600;
  white-space: nowrap;
}

.art-files .file i {
  display: grid;
  place-items: center;
  width: 8.4cqw;
  height: 8.4cqw;
  border-radius: 2.4cqw;
}

.art-files .file svg,
.link-chip svg {
  width: 62%;
  height: 62%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-1 { left: 6%; top: 10%; rotate: -4deg; }
.file-2 { left: 30%; top: 31%; rotate: 3deg; }
.file-3 { left: 5%; top: 53%; rotate: -2deg; }
.file-4 { left: 27%; top: 73%; rotate: 4deg; }
.file-1 i { background: #e8f1ff; color: #0066ff; }
.file-2 i { background: #eef0f4; color: #3c4656; }
.file-3 i { background: #e4f6ee; color: #1a8f5c; }
.file-4 i { background: #fff1e6; color: #c45a12; }

.art-inbox {
  position: absolute;
  right: 8%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 22cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 11, 18, 0.08), 0 0 0 7px rgba(0, 102, 255, 0.07), 0 14px 30px -14px rgba(0, 60, 160, 0.5);
  translate: 0 -50%;
}

.art-inbox img { width: 52%; height: auto; }

/* Stage 2: the app assembles, then speaks each language. */
.mini-screen {
  position: absolute;
  left: 15%;
  top: 9%;
  width: 70%;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  border-radius: 2.6cqw;
  background:
    radial-gradient(90% 80% at 80% 100%, rgba(0, 102, 255, 0.35), transparent 70%),
    linear-gradient(180deg, #0c1222, #070910);
  box-shadow: 0 0 0 1.4cqw #15161e, 0 0 0 calc(1.4cqw + 1px) rgba(11, 11, 18, 0.2), 0 20px 34px -18px rgba(11, 11, 18, 0.6);
}

.mini-skel i,
.mini-skel b {
  position: absolute;
  left: 7%;
  height: 4.2cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.1);
  transition: opacity 0.4s ease;
}

.mini-skel i:nth-child(1) { top: 11%; width: 44%; }
.mini-skel i:nth-child(2) { top: 26%; width: 28%; height: 3cqw; }
.mini-skel i:nth-child(3) { top: 42%; width: 40%; height: 4.6cqw; border-radius: 3cqw; }
.mini-skel b { left: auto; right: 5%; top: 40%; width: 46%; height: 52%; border-radius: 2cqw; }

.mini-ui > * {
  opacity: 0;
  transform: translateY(2cqw);
  transition: opacity 0.45s ease, transform 0.5s var(--ease);
}

.mini-title {
  position: absolute;
  left: 7%;
  top: 9%;
  margin: 0;
  color: #fff;
  font-size: clamp(11px, 4.8cqw, 17px);
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.mini-sub {
  position: absolute;
  left: 7%;
  top: 25%;
  margin: 0;
  color: rgba(245, 247, 251, 0.7);
  font-size: clamp(9px, 3.3cqw, 12px);
  white-space: nowrap;
}

.mini-pills {
  position: absolute;
  left: 7%;
  top: 42%;
  display: flex;
  gap: 1.4cqw;
}

.mini-pills span {
  padding: 0.9cqw 2.2cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: clamp(8px, 2.8cqw, 10.5px);
  font-weight: 600;
  white-space: nowrap;
}

.mini-pills span:first-child { background: var(--blue); }

.mini-ui img {
  position: absolute;
  right: -3%;
  bottom: 5%;
  width: 56%;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}

.art-build.is-built .mini-skel i,
.art-build.is-built .mini-skel b { opacity: 0; }

.art-build.is-built .mini-ui > * { opacity: 1; transform: none; }
.art-build.is-built .mini-ui > :nth-child(2) { transition-delay: 0.1s; }
.art-build.is-built .mini-ui > :nth-child(3) { transition-delay: 0.2s; }
.art-build.is-built .mini-ui > :nth-child(4) { transition-delay: 0.3s; }

.mini-langs {
  position: absolute;
  left: 50%;
  bottom: 7%;
  display: flex;
  gap: 1.6cqw;
  translate: -50% 0;
}

.mini-langs span {
  padding: 0.8cqw 2.6cqw;
  border: 1px solid rgba(11, 11, 18, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: clamp(9px, 3.2cqw, 12px);
  font-weight: 650;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mini-langs span.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Stage 3: one link reaches every screen. */
.link-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.link-lines path {
  fill: none;
  stroke: rgba(11, 11, 18, 0.2);
  stroke-width: 1.6;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s ease;
}

.art-link.is-live .link-lines path {
  stroke: var(--blue);
  animation: flow-dash 0.7s linear infinite;
}

@keyframes flow-dash { to { stroke-dashoffset: -8; } }

.link-chip {
  position: absolute;
  left: 5%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 2cqw 3.6cqw 2cqw 2.4cqw;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 11, 18, 0.08), 0 10px 22px -12px rgba(0, 60, 160, 0.45);
  color: var(--blue-ink);
  font-size: clamp(10.5px, 3.9cqw, 14px);
  font-weight: 650;
  white-space: nowrap;
  translate: 0 -50%;
}

.link-chip svg { width: 5.4cqw; height: 5.4cqw; }

.dev {
  position: absolute;
  border-radius: 1.4cqw;
  background: #0c1222;
  box-shadow: 0 0 0 0.9cqw #1b1d27, 0 12px 20px -12px rgba(11, 11, 18, 0.6);
}

.dev i {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    url("../assets/samples/motor.webp") center 64% / 72% auto no-repeat,
    radial-gradient(90% 90% at 70% 100%, rgba(0, 102, 255, 0.55), transparent 70%),
    #0c1222;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.dev b {
  position: absolute;
  top: -2.4cqw;
  right: -2.4cqw;
  width: 5.6cqw;
  height: 5.6cqw;
  border-radius: 50%;
  background: #1fb37a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
  box-shadow: 0 0 0 2px #fff;
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}

.dev-wall { left: 58%; top: 9%; width: 36%; height: 26%; }
.dev-tab { left: 64%; top: 41%; width: 24%; height: 22%; }
.dev-kiosk { left: 69%; top: 68%; width: 11%; height: 24%; }

.dev-kiosk::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1.2cqw;
  height: 3cqw;
  background: #2a2d38;
  translate: -50% 0.9cqw;
}

.art-link.is-live .dev i,
.art-link.is-live .dev b { opacity: 1; transform: none; }
.art-link.is-live .dev-wall i { transition-delay: 0.25s; }
.art-link.is-live .dev-tab i { transition-delay: 0.45s; }
.art-link.is-live .dev-kiosk i { transition-delay: 0.65s; }
.art-link.is-live .dev-wall b { transition-delay: 0.7s; }
.art-link.is-live .dev-tab b { transition-delay: 0.9s; }
.art-link.is-live .dev-kiosk b { transition-delay: 1.1s; }

.art-link.is-sync .dev::before {
  content: "";
  position: absolute;
  inset: -0.9cqw;
  border-radius: 2cqw;
  box-shadow: 0 0 0 2px var(--blue);
  animation: dev-ping 0.9s ease-out forwards;
}

@keyframes dev-ping {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.18); }
}

/* With reduced motion the diagram is shown complete and still. */
.flow.is-still .flow-step { cursor: default; }
.flow.is-still .flow-node { border-color: var(--ink); background: var(--ink); color: #fff; }
.flow.is-still .flow-line i { transform: scaleX(1); }

.pricing {
  padding: clamp(56px, 8vh, 90px) 0 clamp(96px, 13vh, 150px);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(11, 11, 18, 0.08);
  border-radius: 24px;
  background: #fff;
}

.plan h3 { font-size: 1.125rem; }

.plan-price {
  font-size: 3rem;
  font-weight: 640;
  line-height: 1;
  letter-spacing: -0.045em;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.plan p:not(.plan-price) { color: var(--ink-2); }

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: auto;
  padding-top: 6px;
}

.plan-link {
  color: var(--blue-ink);
  font-size: 15px;
  font-weight: 500;
  text-underline-offset: 0.2em;
}

.plan-custom {
  border-color: transparent;
  background:
    radial-gradient(80% 60% at 100% 100%, rgba(0, 102, 255, 0.4), transparent 70%),
    var(--ink);
  color: #fff;
}

.plan-custom p:not(.plan-price) { color: rgba(245, 247, 251, 0.74); }

/* The free screen license: one line and its links. */
.license-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  margin-top: 16px;
  padding: 20px 28px;
  border: 1px solid rgba(11, 11, 18, 0.08);
  border-radius: 20px;
  background: #fff;
}

.license-strip p {
  flex: 1 1 26em;
  margin: 0;
  color: var(--ink-2);
}

.license-strip strong {
  color: var(--ink);
  font-weight: 650;
}

.license-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

/* ---------- start a project: four questions, a wave that comes to life ---------- */
.start {
  position: relative;
  padding: clamp(96px, 14vh, 170px) 0 clamp(110px, 16vh, 190px);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(0, 80, 255, 0.16), transparent 72%),
    var(--hall);
}

.start-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 78%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%);
  pointer-events: none;
}

.start-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.start-copy .lede {
  margin: 18px auto 0;
}

.quiz {
  width: min(640px, 100%);
  margin-top: 40px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(14, 15, 24, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  text-align: left;
}

.quiz-top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 14px;
  min-height: 34px;
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 13.5px;
  font-weight: 560;
}

.quiz-back::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
}

.quiz-back[hidden] + .quiz-count { grid-column: 1 / -1; }

.quiz-count {
  margin: 0;
  justify-self: end;
  color: var(--text-2);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.quiz-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quiz-bar span {
  display: block;
  width: var(--progress, 25%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 0.5s var(--ease);
}

.quiz-step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.quiz-step:not([hidden]) { animation: quiz-in 0.45s var(--ease); }

@keyframes quiz-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.quiz-q {
  float: left;
  width: 100%;
  margin: 26px 0 20px;
  padding: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.quiz-q:focus { outline: none; }

.quiz-options {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-options label { position: relative; }

.quiz-options input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.quiz-options span {
  display: inline-block;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 16px;
  font-weight: 560;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.quiz-options label:hover span { border-color: rgba(90, 166, 255, 0.6); background: rgba(0, 102, 255, 0.1); }
.quiz-options input:checked + span { border-color: var(--blue-light); background: rgba(0, 102, 255, 0.24); }
.quiz-options input:focus-visible + span { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.quiz-options input:active + span { transform: scale(0.97); }

.quiz textarea,
.quiz .input input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz textarea {
  clear: both;
  display: block;
  min-height: 130px;
  resize: vertical;
}

.quiz textarea::placeholder { color: rgba(245, 247, 251, 0.34); }

.quiz textarea:focus,
.quiz .input input:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.28);
}

.quiz .input input[aria-invalid="true"] { border-color: #ff8a8a; }

.quiz-fields {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.input {
  display: grid;
  gap: 8px;
}

.quiz-wide { grid-column: 1 / -1; }

.quiz-optional { color: rgba(163, 172, 185, 0.7); }

.quiz-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 20px;
}

.quiz-license { margin-top: 16px; }
.quiz-license a { color: #fff; }

.form-error {
  margin: 14px 0 0;
  color: #ff9d9d;
  font-size: 14.5px;
}

.quiz-done-text {
  clear: both;
  margin: 0 0 14px;
  color: rgba(245, 247, 251, 0.86);
}

.quiz-done-text a { color: #fff; }

.quiz pre {
  margin: 0;
  padding: 16px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 247, 251, 0.92);
  font: 14px/1.55 "Inter", ui-monospace, monospace;
  white-space: pre-wrap;
}

.quiz-restart {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.start-direct {
  margin-top: 26px;
  color: var(--text-2);
}

.start-direct a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.2em;
}

/* ---------- license (a page for reading) ---------- */
.doc-page { background: var(--paper); color: var(--ink); }
.doc-page .footer { background: var(--hall); color: var(--text); }

.doc {
  padding: calc(var(--nav-h) + clamp(48px, 9vh, 96px)) var(--gutter) clamp(80px, 12vh, 140px);
  color-scheme: light;
}

.doc :focus-visible { outline-color: var(--blue); }

.doc-sheet {
  max-width: 40rem;
  margin-inline: auto;
}

.doc-kicker {
  color: var(--blue-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.doc h1 {
  margin-top: 12px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 640;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.doc-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 18px;
  color: var(--ink-2);
}

.doc-summary {
  margin-top: 36px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blue);
}

.doc-summary p {
  font-size: 1.1875rem;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.doc-ask {
  margin-top: 22px;
  color: var(--ink-2);
}

.doc-ask a { font-weight: 600; }

.doc-toc {
  margin-top: 30px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(11, 11, 18, 0.035);
}

.doc-toc ol {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 1.4em;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.doc-toc li {
  padding: 3px 0;
  break-inside: avoid;
}

.doc-toc li::marker {
  color: var(--blue-ink);
  font-variant-numeric: tabular-nums;
}

.doc-toc a { color: var(--ink); text-decoration: none; }
.doc-toc a:hover { color: var(--blue-ink); text-decoration: underline; }

.doc h2 { scroll-margin-top: calc(var(--nav-h) + 24px); }

.doc-print-only { display: none; }

.doc-defs { margin: 28px 0 0; }

.doc-defs div {
  padding: 14px 0;
  border-top: 1px solid rgba(11, 11, 18, 0.1);
}

.doc-defs dt { font-weight: 600; }

.doc-defs dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 44px;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.doc h2 span {
  color: var(--blue-ink);
  font-variant-numeric: tabular-nums;
}

.doc-sheet > p {
  margin-top: 12px;
  color: #2c333a;
  line-height: 1.65;
}

.doc a { color: var(--blue-ink); text-underline-offset: 0.18em; }

.doc-sign {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(11, 11, 18, 0.12);
  color: var(--ink-2);
}

.doc-sign .doc-who {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 600;
}

@media print {
  :root { color-scheme: light; }
  html,
  .doc-page { background: #fff !important; }
  .doc-page .footer,
  .doc-version .btn,
  .skip { display: none !important; }
  .doc { padding: 0; }
  .doc-sheet { max-width: none; }
  .doc-kicker { font-size: 9.5pt; }
  .doc h1 { margin-top: 4pt; font-size: 24pt; }
  .doc-version { margin-top: 6pt; font-size: 9.5pt; }
  .doc-summary { margin-top: 14pt; padding-left: 12pt; break-inside: avoid; }
  .doc-summary p { font-size: 11pt; line-height: 1.45; }
  .doc-ask { margin-top: 10pt; font-size: 10pt; }
  .doc-toc { margin-top: 12pt; padding: 8pt 12pt; break-inside: avoid; }
  .doc-toc ol { font-size: 9.5pt; line-height: 1.35; }
  .doc-toc li { padding: 1pt 0; }
  .doc-defs { margin-top: 12pt; }
  .doc-defs div { padding: 6pt 0; break-inside: avoid; }
  .doc-defs dt,
  .doc-defs dd { font-size: 10pt; }
  .doc h2 { margin-top: 16pt; font-size: 12.5pt; break-after: avoid; }
  .doc-sheet > p { margin-top: 5pt; font-size: 10pt; line-height: 1.5; orphans: 3; widows: 3; }
  .doc-sign { margin-top: 20pt; padding-top: 10pt; font-size: 10pt; break-inside: avoid; }
  .doc-print-only { display: block; margin-top: 4pt; }
}

/* ---------- footer ---------- */
.footer {
  padding: 52px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 40px;
  align-items: start;
}

.footer-motto {
  margin-top: 12px;
  color: var(--text-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer-links a {
  color: rgba(245, 247, 251, 0.86);
  font-size: 15px;
  text-decoration: none;
}

.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }

.footer-legal {
  grid-column: 1 / -1;
  color: rgba(163, 172, 185, 0.7);
  font-size: 13px;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tile-model { grid-column: span 12; min-height: 600px; }
  .tile-kiosk,
  .tile-sim,
  .tile-size,
  .tile-screens { grid-column: span 6; }
  .web-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 22px; }
  .ws-title { font-size: 16px; }
  .ws-spec { font-size: 12.5px; }
  .plant-svg text { font-size: 17px; }
}

@media (max-width: 920px) {
  .start-grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }

  /* The diagram runs down the page: node and line on the left. */
  .flow {
    --gap: 44px;
    grid-template-columns: minmax(0, 1fr);
  }
  .flow-step {
    display: grid;
    grid-template-columns: var(--node) minmax(0, 1fr) minmax(0, 0.9fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 24px;
    align-items: start;
  }
  .flow-node { grid-column: 1; grid-row: 1; }
  .flow-art { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .flow-step > h3 { grid-column: 3; grid-row: 1; margin-top: 4px; }
  .flow-step > p { grid-column: 3; grid-row: 2; }
  .flow-line {
    top: calc(var(--node) + 10px);
    bottom: calc(-1 * var(--gap) + 10px);
    left: calc(var(--node) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
  }
  .flow-line i {
    background: linear-gradient(180deg, var(--ink), var(--blue));
    transform: scaleY(0);
    transform-origin: 50% 0;
  }
  .flow-step.is-active .flow-line i,
  .flow-step.is-done .flow-line i,
  .flow.is-still .flow-line i { transform: scaleY(1); }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: grid; place-items: center; }
}

@media (max-width: 720px) {
  .tile-kiosk,
  .tile-sim,
  .tile-size,
  .tile-screens { grid-column: span 12; }
  .tile-model { min-height: 0; }
  .tile { padding: 22px; border-radius: 24px; }
  .motor-stage { min-height: 300px; margin-inline: -22px; }
  .web-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .web-screens { gap: 22px 14px; }
  .ws-display { aspect-ratio: 4 / 3.4; padding: 11px 12px; border-radius: 10px; }
  .ws-display img { width: 58%; right: -6%; bottom: 4%; }
  .ws-title { font-size: 13.5px; }
  .ws-spec { font-size: 11px; }
  .ws-new { left: 12px; bottom: 10px; font-size: 10px; }
  .ws-place { flex-direction: column; gap: 0; margin-top: 12px; }
  .web-control { width: 100%; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .web-status { text-align: left; }
  .quiz-fields { grid-template-columns: minmax(0, 1fr); }
  .doc-toc ol { columns: 1; }
  .license-strip { padding: 20px 22px; }
  .flow { --node: 34px; --gap: 40px; }
  .flow-step { grid-template-columns: var(--node) minmax(0, 1fr); column-gap: 16px; }
  .flow-art { grid-column: 2; grid-row: 1; }
  .flow-step > h3 { grid-column: 2; grid-row: 2; margin-top: 18px; font-size: 1.25rem; }
  .flow-step > p { grid-column: 2; grid-row: 3; }
  .flow-node { font-size: 0.9375rem; }
  .plant-readouts { gap: 18px; }
  .plant-readouts dd span { font-size: 1.4rem; }
  .plant-steps li { font-size: 12.5px; padding: 6px 10px 6px 6px; }
  /* On phones the plant is wider than the card: it scrolls sideways and
     follows the step that is running. */
  .plant { margin-inline: -22px; border-radius: 0; }
  .plant-2d {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  }
  .plant-2d::-webkit-scrollbar { display: none; }
  .plant-views { right: 14px; bottom: 10px; }
  .p3-label { font-size: 11.5px; padding: 2px 7px; }
  .plant-svg { width: 740px; max-width: none; padding-inline: 10px; box-sizing: content-box; }
  .plant-svg text { font-size: 20px; }
  .plant-foot { grid-template-areas: "steps steps" "status toggle"; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: the crowd card stacks. */
@media (max-width: 720px) {
  .crowd-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    padding: 12px 12px 12px;
    border-radius: 22px;
  }
  .crowd-btn { flex: 1 0 100%; margin-top: 4px; }
  .crowd-stat { font-size: 13px; }
  .crowd-stat b { font-size: 19px; }
}

@media (max-width: 420px) {
  .hero .actions { gap: 8px; }
  .hero .actions .btn { padding: 0 1rem; font-size: 0.9375rem; }
  .nav-cta { padding: 0 0.85rem; font-size: 0.875rem; }
  .brand span { letter-spacing: 0.1em; }
  .model-slider { font-size: 12.5px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .statement-text .w { color: var(--text); }
}

@media print {
  .nav, .floor-canvas, .crowd { display: none !important; }
}
