/* KeyTile — keytile.michelevettone.com
   Static, no frameworks, no JavaScript. */

:root {
  --bg: #000;
  --bg-soft: #0a0a0c;
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --muted-2: #86868b;
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .07);
  --panel: rgba(255, 255, 255, .055);
  --blue: #29c8e5;
  --blue-strong: #0fa3c4;
  --blue-soft: #7fe0f2;
  --radius: 28px;
  --nav-h: 52px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
a { color: inherit; }
::selection { background: rgba(41, 200, 229, .4); }

:focus-visible {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--fg);
  color: #000;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 16px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-inner {
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  color: #d2d2d7;
  font-size: 12.5px;
  text-decoration: none;
  padding: 8px 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  margin-left: 4px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--blue-strong);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: #0068d1; transform: translateY(-1px); }

/* ---------- Shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(34px, 5.2vw, 58px);
  margin-bottom: 18px;
}
.section-head .sub {
  margin: 0 auto;
  max-width: 38em;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
}

.fine {
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.5;
}
.fine a { color: var(--muted); text-underline-offset: 3px; }
.fine a:hover { color: var(--fg); }
.fine.centered { text-align: center; margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn.primary { background: var(--blue-strong); color: #fff; }
.btn.primary:hover { background: #0068d1; transform: translateY(-1px); }
.btn.wide { width: 100%; }

.cta-alt {
  margin: 18px 0 8px;
  color: var(--muted-2);
  font-size: 14px;
}
.cta-alt a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-alt a:hover { color: var(--fg); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0d8fa8;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link svg { transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(52px, 7vw, 88px)) 0 0;
  text-align: center;
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 4; }

.hero h1 {
  font-size: clamp(44px, 6.9vw, 94px);
  line-height: .96;
  letter-spacing: -.05em;
  margin: 0 auto 20px;
  text-wrap: balance;
}

.hero h1 .grad {
  background: linear-gradient(100deg, #f5f5f7 6%, #c2f0f9 52%, #5fd4ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 40em;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  letter-spacing: -.012em;
  text-wrap: pretty;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 12px;
}

.hero .fine { margin-bottom: 0; }

/* Product stage */

.stage {
  --fan: clamp(118px, 14.5vw, 208px);
  position: relative;
  height: clamp(420px, 41vw, 580px);
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(92vw, 940px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 200, 229, .30), rgba(23, 160, 190, .10) 46%, transparent 70%);
  filter: blur(24px);
  animation: breathe 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.device {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(168px, 18.4vw, 258px);
  aspect-ratio: 1320 / 2868;
  margin: 0;
  border-radius: clamp(20px, 2.4vw, 32px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #0c0c0e;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.device img { display: block; width: 100%; height: 100%; object-fit: cover; }

.device-float {
  display: block;
  width: 100%;
  height: 100%;
  animation: bob 7s ease-in-out infinite alternate;
}

.device.main {
  z-index: 3;
  transform: translate(-50%, -50%) scale(1.02);
}
.device.left {
  z-index: 2;
  transform: translate(-50%, -50%) translateX(calc(-1 * var(--fan))) rotate(-9deg) scale(.86);
  opacity: .8;
}
.device.right {
  z-index: 2;
  transform: translate(-50%, -50%) translateX(var(--fan)) rotate(8deg) scale(.86);
  opacity: .8;
}
.device.left .device-float { animation-delay: -2.6s; animation-duration: 8s; }
.device.right .device-float { animation-delay: -4.4s; animation-duration: 9s; }

@keyframes bob {
  from { transform: translateY(-5px); }
  to { transform: translateY(6px); }
}

@keyframes breathe {
  from { opacity: .72; transform: translate(-50%, -50%) scale(.94); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.scroll-cue {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
  text-decoration: none;
  transition: color .2s ease;
}
.scroll-cue:hover { color: var(--fg); }
.scroll-cue svg { animation: nudge 2.4s ease-in-out infinite; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: .65; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ---------- Modes ---------- */

.modes-section {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.modes-section::before {
  content: "";
  position: absolute;
  right: -12%;
  top: 28%;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, rgba(41, 200, 229, .12), transparent 65%);
  pointer-events: none;
}

.modes { position: relative; }

.modes-switch {
  display: flex;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto clamp(40px, 6vw, 64px);
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .06);
}

.modes-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.modes-switch label {
  position: relative;
  z-index: 1;
  padding: 9px 22px;
  border-radius: 999px;
  color: #c7c7cc;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  user-select: none;
  white-space: nowrap;
}

.modes-switch label:hover { color: #fff; }

.modes-switch input:checked + label {
  background: #f5f5f7;
  color: #000;
  font-weight: 600;
}

.modes-switch input:focus-visible + label {
  outline: 2px solid var(--blue-soft);
  outline-offset: 2px;
}

.mode-panel {
  display: grid;
  grid-template-columns: 1fr .92fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
  padding-top: 8px;
}

.panel-copy { max-width: 520px; }

.mode-label {
  margin: 0 0 12px;
  color: var(--blue-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.panel-copy h3 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 16px;
  text-wrap: balance;
}

.panel-copy > p:not(.mode-label) {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  max-width: 34em;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  display: flex;
  align-items: baseline;
  gap: 11px;
  color: #d2d2d7;
  font-size: 14.5px;
}
.ticks li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
  transform: translateY(-2px);
}

.panel-art {
  width: min(318px, 30vw);
  margin: 0;
  justify-self: center;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #0c0c0e;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 70px rgba(41, 200, 229, .16);
}
.panel-art img { display: block; width: 100%; height: auto; }

/* CSS-only switcher: fall back to all panels stacked. */
@supports selector(:has(*)) {
  .mode-panel { display: none; }
  .modes:has(#mode-aim:checked) #panel-aim,
  .modes:has(#mode-trackpad:checked) #panel-trackpad,
  .modes:has(#mode-keyboard:checked) #panel-keyboard,
  .modes:has(#mode-present:checked) #panel-present {
    display: grid;
    animation: panel-in .45s cubic-bezier(.2, .7, .2, 1) both;
  }
}

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

/* ---------- Presets ---------- */

.presets {
  padding: clamp(80px, 10vw, 130px) 0;
  border-top: 1px solid var(--line-soft);
}
.presets-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}
.presets-copy { max-width: 560px; }
.presets-copy h2 {
  font-size: clamp(34px, 5.2vw, 58px);
  margin-bottom: 18px;
}
.presets-copy .sub {
  margin: 0 0 14px;
  max-width: 38em;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
}
.presets-art {
  margin: 0;
  justify-self: center;
  width: min(360px, 80%);
  padding: 10px;
  border-radius: 46px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #0c0c0e;
  box-shadow: 0 50px 150px rgba(0, 0, 0, .8), 0 8px 30px rgba(0, 0, 0, .65);
}
.presets-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38px;
}

@media (max-width: 820px) {
  .presets-inner { grid-template-columns: 1fr; gap: 40px; }
  .presets-art { width: min(300px, 80%); }
}

/* ---------- Why / bento ---------- */

.why { padding: clamp(80px, 10vw, 130px) 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 2;
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .022));
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.card.wide {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: 250px;
}

.card h3 {
  font-size: 20px;
  letter-spacing: -.025em;
  margin-bottom: 9px;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card.wide h3 { font-size: clamp(24px, 2.6vw, 30px); }
.card.wide p { font-size: 16px; max-width: 40ch; }

.card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: rgba(41, 200, 229, .14);
  border: 1px solid rgba(127, 224, 242, .16);
  color: var(--blue-soft);
}

.signal {
  position: relative;
  display: flex;
  align-items: center;
  padding: 26px 0 34px;
}
.signal-device {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: #d2d2d7;
}
.signal-link {
  position: relative;
  flex: 1;
  height: 1px;
  margin: 0 14px;
  border-top: 1px dashed rgba(127, 224, 242, .45);
}
.signal-link i {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 12px rgba(41, 200, 229, .9);
  animation: travel 2.8s ease-in-out infinite;
}
.signal-label {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes travel {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ---------- Privacy band ---------- */

.private {
  background: #f5f5f7;
  color: #1d1d1f;
  padding: clamp(80px, 10vw, 132px) 0;
}
.private-inner { max-width: 980px; }
.private .eyebrow { color: #0d8fa8; }
.private h2 {
  font-size: clamp(38px, 5.6vw, 64px);
  margin-bottom: 24px;
  color: #1d1d1f;
}
.private-lede {
  max-width: 46em;
  color: #424245;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.zeros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: clamp(40px, 6vw, 64px) 0 40px;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid #d2d2d7;
}
.zeros strong {
  display: block;
  color: #0fa3c4;
  font-size: clamp(58px, 7.4vw, 92px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
}
.zeros span {
  display: block;
  margin-top: 8px;
  color: #6e6e73;
  font-size: 13.5px;
  line-height: 1.35;
}

/* ---------- Download ---------- */

.download { padding: clamp(80px, 10vw, 132px) 0 clamp(64px, 8vw, 100px); }

.os-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.os-card {
  padding: clamp(28px, 4vw, 42px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  text-align: center;
  transition: transform .3s ease, border-color .3s ease;
}
.os-card .os-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: #e8e8ed;
}
.os-name {
  margin: 0 0 8px;
  color: var(--blue-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.os-card h3 { font-size: 22px; margin-bottom: 10px; }
.os-copy {
  color: var(--muted);
  font-size: 14.5px;
  min-height: 2.6em;
  margin-bottom: 24px;
}
.os-card .fine { margin: 14px 0 0; font-size: 11.5px; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 30px;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand img { border-radius: 9px; margin-bottom: 14px; }
.footer-brand p { margin: 0; line-height: 1.55; color: var(--muted-2); }
.footer-brand strong { color: var(--fg); font-weight: 600; }

footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
footer nav a { padding: 2px 0; }
.footer-title {
  margin: 0 0 6px;
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}
.footer-bottom p { margin: 0; }

/* ---------- Documents: privacy, support ---------- */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 96px));
  padding-bottom: 88px;
}
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 10px; }
.doc .note { color: var(--muted-2); font-size: 13px; margin-bottom: 36px; }
.doc h2 {
  font-size: 24px;
  letter-spacing: -.025em;
  margin: 44px 0 12px;
}
.doc h3 { font-size: 17px; letter-spacing: -.015em; margin: 28px 0 6px; }
.doc p, .doc li { color: #c7c7cc; }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 20px; }
.doc li { margin-bottom: 10px; }
.doc li::marker { color: var(--muted-2); }
.doc a { color: var(--blue-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(127, 224, 242, .4); }
.doc a:hover { text-decoration-color: currentColor; }
.doc strong { color: var(--fg); font-weight: 600; }
.doc code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
}

/* ---------- Motion / scroll ---------- */

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .device.main {
      animation: fan-main linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 90vh;
    }
    .device.left {
      animation: fan-left linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 90vh;
    }
    .device.right {
      animation: fan-right linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 90vh;
    }
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 8% entry 55%;
    }
  }
}

@keyframes fan-main {
  from { transform: translate(-50%, -50%) scale(1.02); }
  to { transform: translate(-50%, -60%) scale(.96); }
}
@keyframes fan-left {
  from { transform: translate(-50%, -50%) translateX(calc(-1 * var(--fan))) rotate(-9deg) scale(.86); }
  to { transform: translate(-50%, -58%) translateX(calc(-1.16 * var(--fan))) rotate(-13deg) scale(.8); }
}
@keyframes fan-right {
  from { transform: translate(-50%, -50%) translateX(var(--fan)) rotate(8deg) scale(.86); }
  to { transform: translate(-50%, -58%) translateX(calc(1.16 * var(--fan))) rotate(12deg) scale(.8); }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) {
  .card:hover, .os-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .22);
  }
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .24s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .os-grid { grid-template-columns: 1fr 1fr; }
  .os-card:first-child { grid-column: span 2; }
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card { grid-column: auto; }
  .card.wide { grid-column: span 2; }
  .card:last-child { grid-column: span 2; }
  .card.wide { grid-template-columns: 1fr; }
  .signal { max-width: 420px; }
}

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }

  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .stage { height: 500px; }
  .device { width: 212px; }
  .device.left, .device.right { display: none; }
  .stage .glow { width: 130vw; }

  .mode-panel { grid-template-columns: 1fr; gap: 40px; }
  .panel-copy { max-width: none; text-align: center; justify-self: center; }
  .panel-copy > p { margin-left: auto; margin-right: auto; }
  .ticks { max-width: 320px; margin-left: auto; margin-right: auto; text-align: left; }
  .panel-art { width: 250px; }

  .zeros { grid-template-columns: 1fr; gap: 26px; }
  .zeros strong { font-size: 52px; }
  .zeros span { margin-top: 2px; font-size: 15px; }
  .zeros > div { display: flex; align-items: baseline; gap: 14px; }

  .os-grid { grid-template-columns: 1fr; }
  .os-card:first-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card, .card.wide, .card:last-child { grid-column: auto; }
}

@media (max-width: 520px) {
  .modes-switch label { padding: 8px 13px; font-size: 12.5px; }
  .hero h1 { font-size: clamp(40px, 12vw, 54px); }
  .stage { height: 460px; }
  .device { width: 194px; }
  .cta .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device-float, .glow, .scroll-cue svg, .signal-link i { animation: none; }
  .card, .os-card, .btn, .nav-cta, .text-link svg { transition: none; }
  .card:hover, .os-card:hover, .btn:hover { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

