@property --sheen {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -30%;
}

:root {
  --bg: #07070a;
  --text: #f4f4f6;
  --muted: rgba(235, 235, 245, 0.56);
  --faint: rgba(235, 235, 245, 0.32);
  --hair: rgba(255, 255, 255, 0.09);
  --accent: #e82c38;
  --accent-deep: #9e1622;
  --accent-glow: rgba(232, 44, 56, 0.45);
  --ok: #34c759;
  --warn: #ff9f0a;
  --err: #ff453a;

  --radius-card: 34px;
  --radius-field: 16px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.22, 1, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(232, 44, 56, 0.45); color: #fff; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 3px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- ambient background ---------- */

.aurora {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 0;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 10px;
}
.topbar-brand b { color: var(--accent); font-weight: 600; }

.mark {
  width: 22px;
  height: 22px;
  background: #000;
  -webkit-mask: url(/assets/logo-mask.png) center / contain no-repeat;
  mask: url(/assets/logo-mask.png) center / contain no-repeat;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.status[data-state="online"] .status-dot { background: var(--ok); box-shadow: 0 0 10px rgba(52, 199, 89, 0.7); }
.status[data-state="offline"] .status-dot { background: var(--err); box-shadow: 0 0 10px rgba(255, 69, 58, 0.7); }
.status[data-state="checking"] .status-dot { animation: pulse 1.2s ease-in-out infinite; }

@keyframes pulse { 50% { opacity: 0.3; } }

/* ---------- layout ---------- */

.stage {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.hero h1 {
  margin: 28px 0 12px;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.hero h1 span {
  background: linear-gradient(180deg, #ff6b74, var(--accent) 55%, var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  max-width: 400px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- 3D logo ---------- */

.logo3d {
  position: relative;
  width: clamp(150px, 19vw, 230px);
  aspect-ratio: 1;
  perspective: 900px;
}

.logo-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.logo-layer {
  position: absolute;
  inset: 0;
  -webkit-mask: url(/assets/logo-mask.png) center / contain no-repeat;
  mask: url(/assets/logo-mask.png) center / contain no-repeat;
  transform: translateZ(calc(var(--z) * -1.25px));
  background: #000;
}

.logo-layer.front {
  transform: translateZ(1px);
  background:
    linear-gradient(115deg, transparent calc(var(--sheen) - 12%), rgba(255, 255, 255, 0.95) var(--sheen), transparent calc(var(--sheen) + 12%)),
    linear-gradient(165deg, #ffffff 0%, #ffd0d3 30%, #ff5a64 62%, #b0101d 100%);
  animation: sheen 5.5s var(--smooth) infinite;
}

@keyframes sheen {
  0%, 35% { --sheen: -30%; }
  75%, 100% { --sheen: 130%; }
}

.logo-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  filter: blur(28px);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.75; } }

.logo-shadow {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -12%;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
  filter: blur(6px);
}

/* ---------- liquid glass ---------- */

.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035) 38%, rgba(255, 255, 255, 0.02)),
    rgba(18, 18, 24, 0.38);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 22px rgba(255, 255, 255, 0.035),
    0 1px 1px rgba(0, 0, 0, 0.3),
    0 30px 70px -20px rgba(0, 0, 0, 0.75),
    0 0 0 0.5px rgba(0, 0, 0, 0.6);
}

/* Chromium: real refraction through an SVG displacement map (see app.js) */
.liquid .glass {
  backdrop-filter: url(#liquid-glass) brightness(1.06);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(140deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 22%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.08) 78%,
    rgba(255, 255, 255, 0.32) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.specular {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.1), transparent 45%);
  transition: opacity 0.4s;
}

/* ---------- card ---------- */

.tilt {
  will-change: transform;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.card {
  padding: 10px 26px 26px;
  transform-origin: 50% 50%;
}

.view-form { padding-top: 16px; }

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.segmented button {
  position: relative;
  z-index: 1;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
}
.segmented button[aria-selected="true"] { color: #fff; }
.segmented button:focus-visible { outline-offset: -2px; }

.seg-pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.2),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transform-origin: center;
  transition: transform 0.35s var(--smooth);
}

.heading { margin: 26px 2px 22px; }
.heading h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.muted { margin: 0; color: var(--muted); }

.swap-out { animation: swapOut 0.16s ease-in forwards; }
.swap-in { animation: swapIn 0.4s var(--smooth); }
@keyframes swapOut { to { opacity: 0; transform: translateY(-4px); filter: blur(3px); } }
@keyframes swapIn { from { opacity: 0; transform: translateY(5px); filter: blur(3px); } }

/* ---------- fields ---------- */

.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  border-radius: var(--radius-field);
  background: rgba(0, 0, 0, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.25s, background-color 0.25s;
}
.field:hover { background: rgba(0, 0, 0, 0.32); }
.field:focus-within {
  background: rgba(0, 0, 0, 0.36);
  box-shadow: inset 0 0 0 1.5px rgba(232, 44, 56, 0.85), 0 0 0 5px rgba(232, 44, 56, 0.14);
}
.field.invalid { box-shadow: inset 0 0 0 1.5px rgba(255, 69, 58, 0.8); }
.field.valid:not(:focus-within) { box-shadow: inset 0 0 0 1px rgba(52, 199, 89, 0.4); }

.field-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0 12px 0 18px;
  fill: var(--faint);
  transition: fill 0.25s;
}
.field:focus-within .field-icon { fill: var(--accent); }

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 20px 14px 0 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: 500 15.5px var(--font);
  letter-spacing: 0;
}
.field input[type="password"] { letter-spacing: 0.12em; }

.field label {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
  color: var(--muted);
  font-size: 15.5px;
  pointer-events: none;
  transition: transform 0.3s var(--smooth), color 0.25s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  transform: translateY(-122%) scale(0.76);
}
.field input:focus + label { color: rgba(255, 140, 147, 0.95); }

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 600000s 0s;
}

.field-status {
  flex: none;
  width: 18px;
  height: 18px;
  margin-right: 16px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s, transform 0.35s var(--spring);
}
.field-status[data-state] { opacity: 1; transform: none; }
.field-status[data-state="loading"] {
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.8);
  animation: spin 0.7s linear infinite;
}
.field-status[data-state="ok"] {
  background: var(--ok) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat;
}
.field-status[data-state="bad"] {
  background: var(--err) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 7l10 10M17 7L7 17' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/></svg>") center / 10px no-repeat;
}

.reveal {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  border: 0;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.reveal:hover { background: rgba(255, 255, 255, 0.06); }
.reveal svg { width: 19px; height: 19px; fill: var(--faint); grid-area: 1 / 1; transition: opacity 0.2s, transform 0.3s var(--spring); }
.reveal .eye-closed { opacity: 0; transform: scale(0.6); }
.reveal[aria-pressed="true"] .eye-open { opacity: 0; transform: scale(0.6); }
.reveal[aria-pressed="true"] .eye-closed { opacity: 1; transform: none; }

.hint {
  min-height: 18px;
  margin: 6px 6px 8px;
  font-size: 12.5px;
  color: var(--faint);
  transition: color 0.2s;
}
.hint[data-tone="err"] { color: var(--err); }
.hint[data-tone="ok"] { color: var(--ok); }
.hint[data-tone="warn"] { color: var(--warn); }

.shake { animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake {
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

/* register-only area: smooth height via grid rows */
.collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.45s var(--smooth), opacity 0.3s;
}
.collapse-inner { min-height: 0; overflow: hidden; padding: 0 2px; margin: 0 -2px; }
form[data-mode="register"] .collapse { grid-template-rows: 1fr; opacity: 1; }

.meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin: 0 6px 14px;
}
.meter span {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.35s;
}
.meter em {
  min-width: 96px;
  text-align: right;
  font-style: normal;
  font-size: 12px;
  color: var(--faint);
}
.meter[data-score="1"] span:nth-child(-n+1) { background: var(--err); }
.meter[data-score="2"] span:nth-child(-n+2) { background: var(--warn); }
.meter[data-score="3"] span:nth-child(-n+3) { background: #ffd60a; }
.meter[data-score="4"] span:nth-child(-n+4) { background: var(--ok); }

/* ---------- buttons ---------- */

.btn-primary {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, #ff4a56, var(--accent) 55%, #b5131f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25),
    0 10px 28px -8px rgba(232, 44, 56, 0.75),
    0 0 0 0.5px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s var(--spring), box-shadow 0.3s, filter 0.3s;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--smooth);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 6px rgba(0, 0, 0, 0.25), 0 14px 34px -8px rgba(232, 44, 56, 0.9), 0 0 0 0.5px rgba(0, 0, 0, 0.5); }
.btn-primary:active { transform: scale(0.975); }
.btn-primary:disabled { cursor: progress; filter: saturate(0.8) brightness(0.92); }

.btn-label, .spinner { grid-area: 1 / 1; transition: opacity 0.2s, transform 0.3s var(--smooth); }
.spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  opacity: 0;
  transform: scale(0.6);
}
.btn-primary.loading .btn-label { opacity: 0; transform: translateY(-6px); }
.btn-primary.loading .spinner { opacity: 1; transform: none; animation: spin 0.7s linear infinite; }

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

.btn-ghost {
  width: 100%;
  height: 50px;
  margin-top: 22px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s, transform 0.35s var(--spring);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn-ghost:active { transform: scale(0.975); }

/* ---------- success view ---------- */

.view-success { padding: 30px 2px 0; text-align: center; }
.view-success h2 { margin: 18px 0 6px; font-size: 26px; letter-spacing: -0.025em; }
.view-success strong { color: var(--text); font-weight: 600; }

.check { width: 76px; height: 76px; overflow: visible; filter: drop-shadow(0 6px 22px rgba(52, 199, 89, 0.45)); }
.check-ring { fill: rgba(52, 199, 89, 0.14); stroke: var(--ok); stroke-width: 3; stroke-dasharray: 183; stroke-dashoffset: 183; transform: rotate(-90deg); transform-origin: center; }
.check-tick { fill: none; stroke: var(--ok); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.view-success.play .check-ring { animation: draw 0.7s var(--smooth) 0.1s forwards; }
.view-success.play .check-tick { animation: draw 0.45s var(--smooth) 0.55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 6px;
  text-align: left;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: rgba(235, 235, 245, 0.8);
  font-size: 14.5px;
}
.steps li + li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.steps span {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: linear-gradient(180deg, #ff4a56, var(--accent-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
kbd {
  padding: 2px 7px;
  border-radius: 6px;
  font: 600 12.5px var(--font);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ---------- dynamic island ---------- */

.island {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  width: 40px;
  padding: 0 14px;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -70px) scale(0.6);
  opacity: 0;
  transition:
    transform 0.55s var(--spring),
    width 0.5s var(--spring),
    opacity 0.25s;
  pointer-events: none;
}
.island.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.island-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px currentColor; }
.island[data-tone="err"] .island-dot { background: var(--err); }
.island-text { font-size: 13.5px; font-weight: 600; opacity: 0; transition: opacity 0.25s 0.12s; }
.island.show .island-text { opacity: 1; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px max(22px, env(safe-area-inset-bottom));
  font-size: 12.5px;
  color: var(--faint);
}
.sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.noscript { position: fixed; inset: auto 16px 16px; padding: 14px; border-radius: 14px; background: #1a1a20; text-align: center; }

/* ---------- entrance ---------- */

.hero > *, .tilt { animation: rise 0.9s var(--smooth) backwards; }
.hero h1 { animation-delay: 0.08s; }
.lede { animation-delay: 0.14s; }
.tilt { animation-delay: 0.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
    gap: 28px;
    padding-top: 20px;
  }
  .hero { display: grid; justify-items: center; text-align: center; }
  .hero h1 { margin-top: 18px; }
  .lede { font-size: 15.5px; }
}

@media (max-width: 480px) {
  .card { padding: 8px 18px 20px; }
  .lede { display: none; }
  .hero h1 { font-size: 36px; margin-bottom: 0; }
  .logo3d { width: 116px; }
  :root { --radius-card: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero > *, .tilt { animation: none; }
  .logo-glow, .logo-layer.front { animation: none; }
  .shake { animation: none; }
  .island { transition: opacity 0.25s; transform: translate(-50%, 0); }
}
