@font-face {
  font-family: Geist;
  src: url("fonts/geist.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Orbitron;
  src: url("fonts/orbitron.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Michroma;
  src: url("fonts/michroma.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("fonts/exo2.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Audiowide;
  src: url("fonts/audiowide.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


:root {
  --ink: #07080a;
  --ink-2: #0b0d10;
  --surface: #101318;
  --bone: #f3f5f8;
  --mist: #9aa2ad;
  --dim: #5b636e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --tide: #46b7ff;
  --deep: #2e7dff;
  --foam: #8bf3e6;
  --up: #3dff8a;
  --glow-cyan: #46b7ff;
  --glow-amber: #ffb020;
  --glow-red: #ff4b4b;
  --glow-green: #3dff8a;
  --glow-gold: #ffc14a;
  --glow-slate: #86a6cb;
  --glow-slate-deep: #2e4a6b;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: Geist, "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", "Roboto Mono", ui-monospace, monospace;
  --radius: 18px;
  --ring-c: 326.73;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(80% 50% at 50% -10%, rgba(70, 183, 255, 0.16), transparent 58%),
    var(--ink);
}

img,
svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

/* Page atmosphere */
.page-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 55% at 50% 8%, #46b7ff2e 0%, #2e7dff0f 40%, transparent 72%);
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
}

.grid-bg__inner {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(to right, rgba(70, 183, 255, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(70, 183, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 28s linear infinite;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

@keyframes grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -48px, 0); }
}

/* Boot */
.boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: #050608;
  text-align: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot__logo {
  display: flex;
  justify-content: center;
  gap: 0.06em;
  font-size: clamp(48px, 9vw, 84px);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
}

.boot__logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.7);
  filter: blur(8px);
  animation: boot-letter 0.7s var(--ease) forwards;
  text-shadow: 0 0 0 rgba(70, 183, 255, 0);
}

.boot__logo span:nth-child(1) { animation-delay: 0.15s; }
.boot__logo span:nth-child(2) { animation-delay: 0.28s; }
.boot__logo span:nth-child(3) { animation-delay: 0.41s; }
.boot__logo span:nth-child(4) { animation-delay: 0.54s; }

.boot.is-glowing .boot__logo {
  animation: boot-glow 1.1s ease-in-out 0.15s forwards;
}

.boot__sub,
.boot__status {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0;
  animation: boot-fade 0.7s var(--ease) 0.95s forwards;
}

.boot__status {
  color: var(--tide);
  animation-delay: 1.15s;
}

@keyframes boot-letter {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes boot-fade {
  to { opacity: 1; transform: none; }
}

@keyframes boot-glow {
  0% { text-shadow: 0 0 0 rgba(70, 183, 255, 0); }
  45% { text-shadow: 0 0 28px rgba(70, 183, 255, 0.85), 0 0 64px rgba(70, 183, 255, 0.4); }
  100% { text-shadow: 0 0 18px rgba(70, 183, 255, 0.5), 0 0 36px rgba(70, 183, 255, 0.25); }
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(7, 8, 10, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar__logo {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 15px;
  padding-left: 0.22em;
  color: var(--bone);
  text-shadow: 0 0 18px rgba(70, 183, 255, 0.35);
}

.topbar__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar__title {
  font-size: 14px;
  font-weight: 580;
}

.topbar__note,
.eyebrow,
.section__num,
.grid-sample__label,
.cursor-panel__hint,
.kpi-card__label,
.kpi-card__sub,
.kpi-card__dept,
.rec-card__conf,
.rec-card__tag,
.clock-board__zone,
.clock-board__weekday,
.shift-meta__window,
.tabs__kicker,
.footer {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.topbar__note { letter-spacing: 0.1em; }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch__track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #1a1d22;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bone);
  transition: transform 0.2s var(--ease);
}

.switch input:checked + .switch__track {
  background: rgba(70, 183, 255, 0.25);
  border-color: rgba(70, 183, 255, 0.6);
}

.switch input:checked + .switch__track::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--tide);
  outline-offset: 3px;
}

.switch__label {
  font-size: 13px;
  color: var(--bone);
}

/* Layout */
.main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.intro {
  margin-bottom: 56px;
}

.intro h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
  margin: 8px 0 14px;
}

.lede {
  max-width: 58ch;
  color: var(--mist);
  font-size: 17px;
}

.section {
  margin-bottom: 72px;
}

.section__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.section__num {
  color: var(--tide);
  padding-top: 6px;
}

.section h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__cap {
  margin-top: 4px;
  color: var(--mist);
  font-size: 15px;
  max-width: 62ch;
}

.pair,
.trio,
.quad {
  display: grid;
  gap: 18px;
}

.pair { grid-template-columns: 1fr 1fr; }
.trio { grid-template-columns: 1fr 1fr 1fr; }
.quad { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* Grid samples */
.grid-sample {
  position: relative;
  height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #050608;
  overflow: hidden;
}

.grid-sample__field {
  position: absolute;
  inset: -40%;
  background-image:
    linear-gradient(to right, rgba(70, 183, 255, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(70, 183, 255, 0.28) 1px, transparent 1px);
  animation: grid-drift 16s linear infinite;
}

.grid-sample[data-density="fine"] .grid-sample__field {
  background-size: 24px 24px;
}

.grid-sample[data-density="wide"] .grid-sample__field {
  background-size: 56px 56px;
  animation-duration: 22s;
}

.grid-sample__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  color: var(--bone);
  text-shadow: 0 1px 8px #000;
}

/* Cursor light */
.cursor-panel {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 36px 20px 48px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 19, 24, 0.55);
  overflow: hidden;
}

.cursor-panel__light {
  pointer-events: none;
  position: absolute;
  width: 420px;
  height: 420px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 183, 255, 0.28) 0%, rgba(46, 125, 255, 0.1) 38%, transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  z-index: 0;
  will-change: transform, opacity;
}

.cursor-panel.is-hot .cursor-panel__light {
  opacity: 1;
}

.cursor-panel .kpi-card,
.cursor-panel__hint {
  position: relative;
  z-index: 1;
}

.cursor-panel .kpi-card,
.tilt-card {
  max-width: 340px;
}

.cursor-panel__hint {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
}

/* Cards */
.kpi-card {
  width: 100%;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: #101318cc;
  border: 1px solid var(--line-strong);
  color: var(--bone);
}

.kpi-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.kpi-card__dept {
  color: var(--bone);
  font-weight: 500;
}

.kpi-card__badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--up);
  border: 1px solid rgba(61, 255, 138, 0.35);
  background: rgba(61, 255, 138, 0.08);
  border-radius: 999px;
  padding: 3px 8px;
}

.kpi-card__label {
  margin-bottom: 2px;
}

.kpi-card__value {
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 2px 0 16px;
  font-variant-numeric: tabular-nums;
}

.kpi-card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.kpi-card__metric {
  font-size: 26px;
  font-weight: 620;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.kpi-card__metric.is-up,
.stat-card__value.is-up,
.kpi-card__sub {
  color: var(--mist);
}

.kpi-card__metric.is-up,
.stat-card__value.is-up {
  color: var(--up);
}

.kpi-card--frost {
  background: rgba(16, 19, 24, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.glow-edge {
  box-shadow:
    0 0 0 1px rgba(70, 183, 255, 0.18),
    0 0 28px rgba(70, 183, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Glass, Ember, Tide */
.kpi-card--glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(16, 19, 24, 0.55));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -8px 24px rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.kpi-card--glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--angle, 200deg),
    rgba(255, 255, 255, 0.7),
    rgba(70, 183, 255, 0.9),
    rgba(255, 170, 220, 0.8),
    rgba(255, 230, 150, 0.75),
    rgba(139, 243, 230, 0.85),
    rgba(255, 255, 255, 0.7)
  );
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: border-spin 10s linear infinite;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 200deg;
}

@keyframes border-spin {
  to { --angle: 560deg; }
}

.kpi-card--ember {
  background:
    radial-gradient(80% 70% at 50% 120%, rgba(255, 80, 60, 0.18), transparent 55%),
    linear-gradient(180deg, #1c1324 0%, #100816 100%);
  border-color: rgba(255, 150, 90, 0.28);
  box-shadow:
    0 0 24px rgba(255, 110, 50, 0.22),
    0 0 48px rgba(200, 40, 80, 0.12),
    inset 0 0 40px rgba(255, 90, 50, 0.08);
  animation: ember-flicker 2.8s ease-in-out infinite;
}

.kpi-card--ember .kpi-card__badge {
  color: #ffb088;
  border-color: rgba(255, 160, 100, 0.4);
  background: rgba(255, 90, 50, 0.12);
}

.kpi-card--ember .kpi-card__metric.is-up,
.kpi-card--ember .kpi-card__dept {
  color: #ffd2b3;
}

@keyframes ember-flicker {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(255, 120, 50, 0.2),
      0 0 40px rgba(200, 40, 80, 0.1),
      inset 0 0 36px rgba(255, 90, 50, 0.07);
  }
  40% {
    box-shadow:
      0 0 36px rgba(255, 90, 40, 0.38),
      0 0 60px rgba(220, 40, 80, 0.18),
      inset 0 0 48px rgba(255, 70, 40, 0.14);
  }
  72% {
    box-shadow:
      0 0 16px rgba(255, 160, 70, 0.16),
      0 0 32px rgba(180, 40, 70, 0.08),
      inset 0 0 28px rgba(255, 110, 60, 0.05);
  }
}

.kpi-card--tide {
  background:
    linear-gradient(180deg, rgba(16, 36, 28, 0.72), rgba(7, 16, 12, 0.92));
  border-color: rgba(180, 220, 190, 0.2);
  box-shadow:
    0 0 28px rgba(70, 150, 110, 0.14),
    inset 0 1px 0 rgba(220, 255, 230, 0.08);
}

.kpi-card--tide .kpi-card__head,
.kpi-card--tide .kpi-card__row {
  border-color: rgba(220, 235, 225, 0.14);
}

.kpi-card--tide .kpi-card__label,
.kpi-card--tide .kpi-card__dept {
  letter-spacing: 0.16em;
}

.kpi-card--tide .kpi-card__badge {
  color: #b7e8c8;
  border-color: rgba(180, 220, 190, 0.35);
  background: rgba(90, 160, 120, 0.12);
}

.kpi-card--tide .kpi-card__metric.is-up {
  color: #b7e8c8;
}

.kpi-card--accent {
  background: color-mix(in srgb, var(--accent-deep) 22%, #0a0c10);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
    0 0 28px color-mix(in srgb, var(--accent) 28%, transparent);
}

.kpi-card--accent .kpi-card__value,
.kpi-card--accent .kpi-card__metric,
.kpi-card--accent .kpi-card__dept {
  color: var(--bone);
}

.kpi-card--accent .kpi-card__metric.is-up,
.kpi-card--accent .kpi-card__badge {
  color: var(--accent);
}

.kpi-card--accent .kpi-card__badge {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.swatch { margin: 0; }
.swatch .kpi-card { max-width: none; }

.swatch figcaption {
  margin-top: 12px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.45;
}

.swatch figcaption strong {
  display: block;
  color: var(--bone);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

/* Rec card */
.rec-card {
  max-width: none;
  padding: 18px;
}

.rec-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.rec-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.rec-card__tag {
  display: inline-block;
  margin: 10px 0 8px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(70, 183, 255, 0.3);
  color: var(--tide);
}

.rec-card__body {
  color: var(--mist);
  font-size: 14px;
  margin-bottom: 14px;
}

.rec-card__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tilt */
.tilt-stage {
  perspective: 900px;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.12s ease-out;
  box-shadow:
    0 0 0 1px rgba(70, 183, 255, 0.18),
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(70, 183, 255, 0.16);
}

/* Clock */
.clock-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 24px;
  background: rgba(16, 19, 24, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(70, 183, 255, 0.1),
    0 0 40px rgba(70, 183, 255, 0.1);
}

.clock-board__weekday,
.clock-board__date {
  color: var(--mist);
}

.clock-board__date {
  text-transform: none;
  letter-spacing: 0.04em;
  margin: 4px 0 8px;
}

.clock-board__digits {
  font-family: var(--mono);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
  text-shadow: 0 0 24px rgba(70, 183, 255, 0.55), 0 0 48px rgba(70, 183, 255, 0.25);
}

.clock-board__digits .colon {
  opacity: 1;
  animation: colon-blink 1s steps(1) infinite;
}

.clock-board__ampm {
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.16em;
  color: var(--tide);
  margin: 8px 0 6px;
}

.clock-board__progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ring {
  position: relative;
  width: 180px;
  height: 180px;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring__track,
.ring__fill {
  fill: none;
  stroke-width: 8;
}

.ring__track {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring__fill {
  stroke: var(--tide);
  stroke-linecap: round;
  stroke-dasharray: var(--ring-c);
  stroke-dashoffset: var(--ring-c);
  filter: drop-shadow(0 0 6px rgba(70, 183, 255, 0.7));
  transition: stroke-dashoffset 0.6s var(--ease);
}

.ring__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.ring__pct {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ring__label {
  font-size: 11px;
  color: var(--mist);
}

.shift-meta {
  width: 100%;
  max-width: 260px;
  text-align: center;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.bar__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--deep), var(--tide), var(--foam));
  box-shadow: 0 0 12px rgba(70, 183, 255, 0.5);
  transition: width 0.6s var(--ease);
}

.shift-meta__left {
  color: var(--bone);
  font-size: 14px;
  margin-top: 4px;
}

@keyframes colon-blink {
  50% { opacity: 0.2; }
}

/* Load motion */
.load-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(16, 19, 24, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  display: grid;
  justify-items: start;
}

.stat-card__value {
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 12px;
}

.mini-ring {
  position: relative;
  width: 72px;
  height: 72px;
}

.mini-ring svg {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}

.mini-ring .ring__track,
.mini-ring .ring__fill {
  stroke-width: 6;
}

.mini-ring .ring__fill {
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
}

.mini-ring .ring__fill.is-up { stroke: var(--up); }

.mini-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.is-ready .reveal {
  animation: slide-in 0.75s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes slide-in {
  to { opacity: 1; transform: none; }
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 550;
  transition: transform 0.15s var(--ease), box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover {
  border-color: rgba(70, 183, 255, 0.4);
}

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

.btn:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 2px;
}

.btn--accept {
  background: rgba(61, 255, 138, 0.12);
  border-color: rgba(61, 255, 138, 0.4);
  color: #d9ffe8;
}

.btn--accept:hover {
  box-shadow: 0 0 18px rgba(61, 255, 138, 0.25);
}

.btn--ghost {
  background: transparent;
}

.btn--quiet {
  color: var(--bone);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  animation: ripple 0.6s ease-out forwards;
}

@keyframes ripple {
  to { transform: scale(1); opacity: 0; }
}

.btn.is-pressed {
  box-shadow: 0 0 22px rgba(70, 183, 255, 0.4);
}

/* Tabs */
.tabs {
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 19, 24, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.tabs__list {
  display: flex;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.tabs__btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--mist);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 550;
}

.tabs__btn.is-active {
  color: var(--bone);
  background: rgba(70, 183, 255, 0.16);
  box-shadow: 0 0 16px rgba(70, 183, 255, 0.18);
}

.tabs__btn:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 2px;
}

.tabs__stage {
  position: relative;
  min-height: 168px;
  overflow: hidden;
}

.tabs__panel {
  position: absolute;
  inset: 0;
  padding: 22px 22px 24px;
  opacity: 0;
  transform: translate3d(28px, 0, 0);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.tabs__panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

.tabs__panel.is-exit {
  position: absolute;
  opacity: 0;
  transform: translate3d(-20px, 0, 0);
}

.tabs__kicker {
  margin-bottom: 8px;
  color: var(--tide);
}

.tabs__panel h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tabs__panel p:last-child {
  color: var(--mist);
  max-width: 58ch;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px 40px;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 900px) {
  .trio,
  .quad,
  .load-row {
    grid-template-columns: 1fr 1fr;
  }
  .clock-board {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 14px;
  }
  .pair,
  .trio,
  .quad,
  .load-row,
  .clock-board {
    grid-template-columns: 1fr;
  }
  .topbar__title { font-size: 13px; }
  .main { width: calc(100% - 24px); padding-top: 32px; }
  .intro h1 { max-width: none; }
  .clock-board__digits { font-size: 42px; }
}

/* Reduce motion */
html.reduce-motion .grid-bg__inner,
html.reduce-motion .grid-sample__field,
html.reduce-motion .kpi-card--glass::before,
html.reduce-motion .kpi-card--ember,
html.reduce-motion .clock-board__digits .colon,
html.reduce-motion .boot__logo,
html.reduce-motion .boot__logo span,
html.reduce-motion .boot__sub,
html.reduce-motion .boot__status,
html.reduce-motion .boot-sample__logo span,
html.reduce-motion .boot-panel,
html.reduce-motion .ambient-tile__css--grid,
html.reduce-motion .line-chart__line,
html.reduce-motion .line-chart__area,
html.reduce-motion .line-chart__dot,
html.reduce-motion .uph-gauge__fill,
html.reduce-motion .bars3d__col,
html.reduce-motion .login-cairn,
html.reduce-motion .chrome-wrap,
html.reduce-motion .chrome-mark__face,
html.reduce-motion .login-stage__sub,
html.reduce-motion .login-form,
html.reduce-motion .celebrate__ring,
html.reduce-motion .celebrate__msg,
html.reduce-motion .celebrate__card {
  animation: none !important;
}

html.reduce-motion .boot {
  display: none;
}

html.reduce-motion .cursor-panel__light {
  display: none;
}

html.reduce-motion .tilt-card {
  transform: none !important;
  transition: none !important;
}

html.reduce-motion .reveal {
  opacity: 1;
  transform: none;
  animation: none !important;
}

html.reduce-motion .tabs__panel,
html.reduce-motion .ring__fill,
html.reduce-motion .bar__fill,
html.reduce-motion .btn {
  transition: none !important;
}

html.reduce-motion .ripple {
  animation: none !important;
  display: none;
}

/* Clock placement mocks */
.pair--mocks { align-items: stretch; }
.mock { margin: 0; }
.mock figcaption {
  margin-top: 12px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.45;
}
.mock figcaption strong {
  display: block;
  color: var(--bone);
  font-weight: 600;
  margin-bottom: 2px;
}

.mock-shell {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 230px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #080a0e;
}

.mock-rail {
  padding: 12px 10px;
  background: rgba(16, 19, 24, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--line);
}

.mock-logo {
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 12px;
  padding-left: 0.2em;
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(70, 183, 255, 0.4);
}

.mock-nav {
  display: grid;
  gap: 2px;
}
.mock-nav span {
  font-size: 11px;
  color: var(--mist);
  padding: 5px 8px;
  border-radius: 8px;
}
.mock-nav span.is-active {
  color: var(--bone);
  background: rgba(70, 183, 255, 0.16);
  box-shadow: 0 0 14px rgba(70, 183, 255, 0.2);
}

.mock-main { padding: 12px 14px 14px; }
.mock-page-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.mock-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 19, 24, 0.7);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 20px rgba(70, 183, 255, 0.12);
}

.mock-hero__time {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(70, 183, 255, 0.5);
  margin: 2px 0 4px;
}

.mock-hero__time .js-live-ampm,
.mock-mini-clock__time .js-live-ampm {
  color: var(--tide);
  font-size: 0.55em;
  letter-spacing: 0.12em;
}

.mock-hero .clock-board__date { text-transform: none; letter-spacing: 0.04em; }
.mock-hero .shift-meta__left { font-size: 12px; color: var(--mist); margin: 0; }

.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.mock-chips span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--mist);
}
.mock-chips span.is-up { color: var(--up); border-color: rgba(61, 255, 138, 0.3); }

.mock-rec {
  font-size: 12px;
  color: var(--mist);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.mock-mini-clock {
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 8, 10, 0.45);
  box-shadow: 0 0 16px rgba(70, 183, 255, 0.1);
}
.mock-mini-clock__time {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.mock-mini-clock__row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-mini-clock__row .js-live-left {
  font-size: 9px;
  color: var(--mist);
  line-height: 1.3;
}

.ring--sm { width: 86px; height: 86px; }
.ring--xs { width: 48px; height: 48px; flex-shrink: 0; }
.ring--xs .ring__pct { font-size: 9px; }
.ring--sm .ring__pct { font-size: 14px; }

/* Font samples */
.font-card {
  margin: 0;
  padding: 20px 16px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(16, 19, 24, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.font-card__mark,
.font-card__title {
  font-family: var(--sample);
  letter-spacing: 0.12em;
}
.font-card__mark {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 18px rgba(70, 183, 255, 0.3);
}
.font-card__title {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--mist);
  margin-bottom: 16px;
}
.font-card figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tide);
}

.mono-sample {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(16, 19, 24, 0.58);
}
.mono-sample__nums {
  font-family: var(--mono);
  font-size: clamp(20px, 3vw, 28px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(70, 183, 255, 0.3);
  margin-bottom: 6px;
}

/* Ambient tiles */
.ambient-tile {
  margin: 0;
  position: relative;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #050608;
}
.ambient-tile__canvas,
.ambient-tile__css {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ambient-tile__css--grid {
  background-image:
    linear-gradient(to right, rgba(70, 183, 255, 0.32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(70, 183, 255, 0.32) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: grid-drift 18s linear infinite;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
}
.ambient-tile figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 1px 8px #000;
}

/* In-page boot sample */
.boot-sample {
  padding: 28px 20px 22px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: #050608;
  text-align: center;
  overflow: hidden;
}
.boot-sample__logo {
  display: flex;
  justify-content: center;
  gap: 0.06em;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: 0.18em;
}
.boot-sample__logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px) scale(0.7);
  filter: blur(8px);
}
.boot-sample.is-playing .boot-sample__logo span {
  animation: boot-letter 0.65s var(--ease) forwards;
}
.boot-sample.is-playing .boot-sample__logo span:nth-child(1) { animation-delay: 0.08s; }
.boot-sample.is-playing .boot-sample__logo span:nth-child(2) { animation-delay: 0.2s; }
.boot-sample.is-playing .boot-sample__logo span:nth-child(3) { animation-delay: 0.32s; }
.boot-sample.is-playing .boot-sample__logo span:nth-child(4) { animation-delay: 0.44s; }
.boot-sample.is-playing .boot-sample__logo {
  animation: boot-glow 1.1s ease-in-out 0.7s forwards;
}
.boot-sample__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0;
  margin: 8px 0 22px;
}
.boot-sample.is-playing .boot-sample__sub {
  animation: boot-fade 0.6s var(--ease) 0.85s forwards;
}
.boot-sample__panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  text-align: left;
}
.boot-panel {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 19, 24, 0.7);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  box-shadow: 0 0 0 rgba(70, 183, 255, 0);
}
.boot-panel p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 4px;
}
.boot-panel strong {
  font-size: 20px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.boot-panel strong.is-up { color: var(--up); }
.boot-sample.is-playing .boot-panel {
  animation: panel-on 0.55s var(--ease) forwards;
}
.boot-sample.is-playing .boot-panel--a { animation-delay: 1.15s; }
.boot-sample.is-playing .boot-panel--b { animation-delay: 1.35s; }
.boot-sample.is-playing .boot-panel--c { animation-delay: 1.55s; }
.boot-sample.is-playing .boot-panel--d { animation-delay: 1.75s; }

@keyframes panel-on {
  to {
    opacity: 1;
    transform: none;
    box-shadow: 0 0 18px rgba(70, 183, 255, 0.16);
  }
}

.boot-sample.is-settled .boot-sample__logo span,
.boot-sample.is-settled .boot-sample__sub,
.boot-sample.is-settled .boot-panel {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Glass sidebar */
.sidebar-demo {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #080a0e;
}
.glass-nav {
  padding: 18px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(16,19,24,0.55));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}
.glass-nav::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(70,183,255,0.6), rgba(139,243,230,0.2), transparent);
}
.glass-nav__logo {
  font-weight: 700;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  font-size: 16px;
  margin: 0 8px 4px;
  text-shadow: 0 0 16px rgba(70, 183, 255, 0.45);
}
.glass-nav__site,
.glass-nav__group {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 8px 12px;
}
.glass-nav__group {
  margin: 16px 8px 6px;
  color: var(--mist);
}
.glass-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--mist);
  text-decoration: none;
  font-size: 14px;
  position: relative;
}
.glass-nav__item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex-shrink: 0;
}
.glass-nav__item:hover {
  color: var(--bone);
  background: rgba(255, 255, 255, 0.04);
}
.glass-nav__item.is-active {
  color: var(--bone);
  background: rgba(70, 183, 255, 0.14);
  box-shadow:
    0 0 22px rgba(70, 183, 255, 0.22),
    inset 0 0 0 1px rgba(70, 183, 255, 0.25);
}
.glass-nav__item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--tide);
  box-shadow: 0 0 10px var(--tide);
}

.sidebar-demo__stage { padding: 22px 24px; }
.sidebar-demo__note {
  color: var(--mist);
  font-size: 14px;
  max-width: 48ch;
  margin-bottom: 8px;
}

/* Charts */
.chart-card {
  margin: 0;
  padding: 14px 14px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(16, 19, 24, 0.58);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.chart-card figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 10px;
}
.line-chart { width: 100%; height: auto; }
.line-chart__line {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}
.is-ready .line-chart__line {
  animation: draw-line 1.4s var(--ease) 0.15s forwards;
}
.line-chart__area,
.line-chart__dot { opacity: 0; }
.is-ready .line-chart__area {
  animation: boot-fade 0.7s var(--ease) 0.9s forwards;
}
.is-ready .line-chart__dot {
  animation: boot-fade 0.4s var(--ease) 1.3s forwards;
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.uph-gauge { position: relative; }
.uph-gauge svg { width: 100%; height: auto; }
.uph-gauge__fill {
  stroke-dasharray: 70.33 100;
  stroke-dashoffset: 70.33;
}
.is-ready .uph-gauge__fill {
  animation: gauge-fill 1.2s var(--ease) 0.2s forwards;
}
@keyframes gauge-fill {
  to { stroke-dashoffset: 0; }
}
.uph-gauge__readout {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
}
.uph-gauge__value {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-shadow: 0 0 16px rgba(61, 255, 138, 0.4);
}
.uph-gauge__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.bars3d {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 8px;
  height: 180px;
  padding: 8px 6px 0;
  perspective: 500px;
}
.bars3d__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex: 1;
}
.bars3d__col {
  position: relative;
  width: 28px;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(8deg);
  transform-origin: bottom center;
}
.is-ready .bars3d__col {
  animation: bar-rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0.15s);
}
.bars3d__item:nth-child(1) .bars3d__col { --d: 0.15s; }
.bars3d__item:nth-child(2) .bars3d__col { --d: 0.25s; }
.bars3d__item:nth-child(3) .bars3d__col { --d: 0.35s; }
.bars3d__item:nth-child(4) .bars3d__col { --d: 0.45s; }
@keyframes bar-rise {
  from { height: 0; }
  to { height: var(--h); }
}
.bars3d__face,
.bars3d__side,
.bars3d__top {
  position: absolute;
  left: 0;
  bottom: 0;
}
.bars3d__face {
  width: 28px;
  height: 100%;
  background: linear-gradient(180deg, #8bf3e6, #2e7dff 70%, #164a8a);
  box-shadow: 0 0 16px rgba(70, 183, 255, 0.35);
}
.bars3d__side {
  width: 12px;
  height: 100%;
  left: 28px;
  background: linear-gradient(180deg, #2ea0c8, #16325f);
  transform: rotateY(90deg);
  transform-origin: left center;
}
.bars3d__top {
  width: 28px;
  height: 12px;
  top: 0;
  background: #c8fff4;
  transform: rotateX(90deg);
  transform-origin: top center;
  box-shadow: 0 0 10px rgba(139, 243, 230, 0.6);
}
.bars3d__name,
.bars3d__val {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mist);
}
.bars3d__val { margin-bottom: 6px; color: var(--bone); }
.bars3d__name { margin-top: 8px; text-transform: uppercase; letter-spacing: 0.08em; }

html.reduce-motion .is-ready .line-chart__line,
html.reduce-motion .is-ready .line-chart__area,
html.reduce-motion .is-ready .line-chart__dot,
html.reduce-motion .is-ready .uph-gauge__fill,
html.reduce-motion .is-ready .bars3d__col {
  animation: none !important;
}
html.reduce-motion .line-chart__line { stroke-dashoffset: 0; }
html.reduce-motion .line-chart__area,
html.reduce-motion .line-chart__dot { opacity: 1; }
html.reduce-motion .uph-gauge__fill { stroke-dashoffset: 0; }
html.reduce-motion .bars3d__col { height: var(--h); }

@media (max-width: 900px) {
  .boot-sample__panels,
  .sidebar-demo,
  .pair--mocks {
    grid-template-columns: 1fr;
  }
  .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mock-shell { grid-template-columns: 108px 1fr; }
  .boot-sample__panels { grid-template-columns: 1fr 1fr; }
  .font-grid { grid-template-columns: 1fr; }
}

/* Login screen */
.login-stage {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  border-radius: 22px;
  overflow: hidden;
  background: #050608;
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px 28px;
}

.login-stage__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(70% 50% at 50% 18%, rgba(70, 183, 255, 0.16), transparent 62%),
    radial-gradient(50% 40% at 50% 100%, rgba(70, 183, 255, 0.1), transparent 70%);
}

.login-stage__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.login-cairn {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 3;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
}

.login-cairn img {
  display: block;
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.login-stage.is-playing .login-cairn {
  animation: cairn-blip 1.15s var(--ease) 0.12s both;
}

@keyframes cairn-blip {
  0% { opacity: 0; transform: scale(0.92); }
  30% { opacity: 0.85; transform: scale(1); }
  70% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.96); }
}

.chrome-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  clip-path: inset(100% 0 0 0);
  transform: translateY(16px) scale(0.96);
  filter: blur(6px);
}

.login-stage.is-playing .chrome-wrap {
  animation: logo-form 1.15s var(--ease) 1.35s forwards;
}

.login-stage.is-settled .chrome-wrap {
  clip-path: inset(0 0 0 0);
  transform: none;
  filter: none;
}

@keyframes logo-form {
  0% {
    clip-path: inset(100% 0 0 0);
    transform: translateY(18px) scale(0.96);
    filter: blur(6px);
  }
  70% {
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: none;
    filter: none;
  }
}

.chrome-plate {
  position: absolute;
  inset: -18px -28px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(16, 19, 24, 0.18));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.chrome-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from 200deg,
    rgba(255, 255, 255, 0.7),
    rgba(70, 183, 255, 0.8),
    rgba(200, 210, 220, 0.35),
    rgba(255, 230, 150, 0.45),
    rgba(139, 243, 230, 0.6),
    rgba(255, 255, 255, 0.7)
  );
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.chrome-mark {
  position: relative;
  font-size: clamp(52px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  line-height: 1;
  transform: perspective(700px) rotateX(10deg);
}

.chrome-mark__edge,
.chrome-mark__face {
  display: block;
}

.chrome-mark__edge {
  position: absolute;
  inset: 0;
  color: #1a222c;
  transform: translate(3px, 4px);
  text-shadow: 1px 2px 0 #0a0d11, 2px 4px 0 #07080a;
}

.chrome-mark__face {
  position: relative;
  background: linear-gradient(
    185deg,
    #ffffff 0%,
    #d7e3f0 14%,
    #8a9bb0 36%,
    #f7fbff 48%,
    #9aa8b8 60%,
    #5c6b7c 80%,
    #e8eef6 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 22px rgba(70, 183, 255, 0.28));
}

.login-stage.is-playing .chrome-mark__face {
  animation: chrome-shine 1.2s ease 2.35s both;
}

@keyframes chrome-shine {
  0% { filter: drop-shadow(0 10px 22px rgba(70, 183, 255, 0.28)); }
  40% { filter: drop-shadow(0 10px 28px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 18px rgba(70, 183, 255, 0.55)); }
  100% { filter: drop-shadow(0 10px 22px rgba(70, 183, 255, 0.28)); }
}

.login-stage__sub {
  position: relative;
  z-index: 2;
  margin: 14px 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0;
}

.login-stage.is-playing .login-stage__sub {
  animation: boot-fade 0.6s var(--ease) 2.45s forwards;
}

.login-form {
  position: relative;
  z-index: 2;
  width: min(340px, 100%);
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
}

.login-stage.is-playing .login-form {
  animation: boot-fade 0.65s var(--ease) 2.7s forwards;
}

.login-stage.is-settled .login-cairn { opacity: 0; }
.login-stage.is-settled .login-stage__sub,
.login-stage.is-settled .login-form {
  opacity: 1;
  transform: none;
}

.login-field {
  display: grid;
  gap: 5px;
}

.login-field span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.login-field input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(16, 19, 24, 0.72);
  color: var(--bone);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field input::placeholder { color: var(--dim); }

.login-field.is-focused input,
.login-field input:focus {
  border-color: rgba(70, 183, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(70, 183, 255, 0.3), 0 0 18px rgba(70, 183, 255, 0.28);
}

.login-field.is-lit input {
  border-color: rgba(70, 183, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(70, 183, 255, 0.45), 0 0 28px rgba(70, 183, 255, 0.5);
  background: rgba(20, 28, 40, 0.86);
}

.login-form .btn { justify-self: start; }

.login-form__note {
  font-size: 12px;
  color: var(--dim);
}

/* Glow system */
.glow-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.glow-swatch {
  --g: var(--glow-cyan);
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--g) 8%, #0a0c10);
  border: 1px solid color-mix(in srgb, var(--g) 42%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--g) 16%, transparent),
    0 0 24px color-mix(in srgb, var(--g) 28%, transparent);
}

.glow-swatch[data-glow="cyan"] { --g: var(--glow-cyan); }
.glow-swatch[data-glow="amber"] { --g: var(--glow-amber); }
.glow-swatch[data-glow="red"] { --g: var(--glow-red); }
.glow-swatch[data-glow="green"] { --g: var(--glow-green); }
.glow-swatch[data-glow="gold"] { --g: var(--glow-gold); }
.glow-swatch[data-glow="slate"] { --g: var(--glow-slate); }

.glow-swatch__kicker,
.glow-swatch__name {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.glow-swatch__kicker { color: var(--g); margin-bottom: 6px; }
.glow-swatch__value {
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.glow-swatch__name { color: var(--mist); }

.glow-swatch--frame {
  background: color-mix(in srgb, var(--glow-slate-deep) 55%, #0a0c10);
}

.glow-swatch__nav {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}
.glow-swatch__nav span {
  font-size: 13px;
  color: var(--mist);
  padding: 5px 8px;
  border-radius: 8px;
}
.glow-swatch__nav span.is-active {
  color: var(--bone);
  background: color-mix(in srgb, var(--glow-slate) 22%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--glow-slate) 30%, transparent);
}

/* Glowing filled icons */
.icon-row {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 28px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 19, 24, 0.55);
}

.icon-row li {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.icon-row li > span:last-child {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

.glow-icon {
  --g: var(--glow-cyan);
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--g) 14%, #0c0e12);
  border: 1px solid color-mix(in srgb, var(--g) 40%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--g) 12%, transparent),
    0 0 18px color-mix(in srgb, var(--g) 40%, transparent);
  color: var(--g);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.glow-icon[data-glow="cyan"] { --g: var(--glow-cyan); }
.glow-icon[data-glow="amber"] { --g: var(--glow-amber); }
.glow-icon[data-glow="red"] { --g: var(--glow-red); }
.glow-icon[data-glow="green"] { --g: var(--glow-green); }
.glow-icon[data-glow="gold"] { --g: var(--glow-gold); }
.glow-icon[data-glow="slate"] { --g: var(--glow-slate); }

.glow-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--g) 80%, transparent));
}

.glow-icon:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--g) 30%, transparent),
    0 0 26px color-mix(in srgb, var(--g) 55%, transparent);
}

/* Goal celebration */
.celebrate {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: #050608;
  border: 1px solid var(--line-strong);
}

.celebrate__card {
  position: relative;
  z-index: 2;
  width: min(320px, calc(100% - 32px));
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: rgba(16, 19, 24, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  text-align: left;
}

.celebrate__value {
  font-size: 52px;
  font-weight: 650;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 4px 0 6px;
}

.celebrate__goal {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}

.celebrate__msg {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glow-gold);
  opacity: 0;
  transform: translateY(6px);
}

.celebrate__ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 193, 74, 0.0);
  box-shadow: 0 0 0 0 rgba(255, 193, 74, 0);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.celebrate.is-won .celebrate__card {
  border-color: color-mix(in srgb, var(--glow-gold) 45%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--glow-gold) 20%, transparent),
    0 0 36px color-mix(in srgb, var(--glow-gold) 28%, transparent),
    0 0 24px color-mix(in srgb, var(--glow-green) 12%, transparent);
}

.celebrate.is-won .celebrate__value {
  color: var(--glow-green);
  text-shadow: 0 0 22px rgba(61, 255, 138, 0.35);
}

.celebrate.is-won .celebrate__msg {
  animation: boot-fade 0.55s var(--ease) 0.05s forwards;
}

.celebrate.is-won .celebrate__ring {
  animation: win-ring 1.1s var(--ease) forwards;
}

.celebrate.is-settled .celebrate__msg {
  opacity: 1;
  transform: none;
}

@keyframes win-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.7);
    border-color: rgba(255, 193, 74, 0.7);
    box-shadow: 0 0 0 0 rgba(255, 193, 74, 0.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
    border-color: rgba(255, 193, 74, 0);
    box-shadow: 0 0 40px 8px rgba(255, 193, 74, 0);
  }
}

html.reduce-motion .login-stage.is-playing .login-cairn,
html.reduce-motion .login-stage.is-playing .chrome-wrap,
html.reduce-motion .login-stage.is-playing .chrome-mark__face,
html.reduce-motion .login-stage.is-playing .login-stage__sub,
html.reduce-motion .login-stage.is-playing .login-form,
html.reduce-motion .celebrate.is-won .celebrate__ring,
html.reduce-motion .celebrate.is-won .celebrate__msg {
  animation: none !important;
}

html.reduce-motion .glow-icon:hover { transform: none; }

@media (max-width: 900px) {
  .glow-grid { grid-template-columns: 1fr 1fr 1fr; }
  .login-stage { min-height: 480px; }
}

@media (max-width: 640px) {
  .glow-grid { grid-template-columns: 1fr 1fr; }
  .chrome-mark { font-size: 48px; }
}
