/* Voros Innovation - site styles
   Radius rule: interactive controls are pills, media cards 28px, inner media 18px, small tiles 12px. */

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

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #f2f3f5;
  --bg-2: #e8eaed;
  --surface: #fbfbfc;
  --ink: #0d1014;
  --ink-2: #4f5661;
  --ink-3: #6f7782;
  --line: rgb(13 16 20 / 0.1);
  --line-strong: rgb(13 16 20 / 0.18);
  --accent: #c2410c;           /* text-safe on --bg (4.9:1) */
  --accent-fill: #f26b2a;      /* decorative fills, rating stars */
  --glass: rgb(251 251 252 / 0.72);
  --glass-edge: rgb(255 255 255 / 0.6);
  --shadow-tint: 220 30% 20%;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --nav-h: 64px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* z-index scale */
  --z-base: 1;
  --z-sticky: 10;
  --z-header: 50;
  --z-menu: 60;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b0d;
    --bg-2: #101215;
    --surface: #14171b;
    --ink: #eceef1;
    --ink-2: #a3aab4;
    --ink-3: #7c8490;
    --line: rgb(255 255 255 / 0.09);
    --line-strong: rgb(255 255 255 / 0.16);
    --accent: #ff7a3d;
    --accent-fill: #ff7a3d;
    --glass: rgb(20 23 27 / 0.66);
    --glass-edge: rgb(255 255 255 / 0.1);
    --shadow-tint: 220 40% 2%;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0b0d;
  --bg-2: #101215;
  --surface: #14171b;
  --ink: #eceef1;
  --ink-2: #a3aab4;
  --ink-3: #7c8490;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.16);
  --accent: #ff7a3d;
  --accent-fill: #ff7a3d;
  --glass: rgb(20 23 27 / 0.66);
  --glass-edge: rgb(255 255 255 / 0.1);
  --shadow-tint: 220 40% 2%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent-fill); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.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-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.icon { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 560;
  font-size: 1rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.3s;
  box-shadow: 0 10px 30px -12px hsl(var(--shadow-tint) / 0.45);
}
.btn:hover { box-shadow: 0 16px 40px -14px hsl(var(--shadow-tint) / 0.55); }
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform 0.4s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 0.9375rem; box-shadow: none; }
.btn--sm:hover { box-shadow: none; }
.btn--ghost.btn--sm { box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost.btn--sm:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 12px 0 auto 0;
  z-index: var(--z-header);
  display: flex;
  justify-content: center;
  pointer-events: none;
  view-transition-name: site-header;
  transition: transform 0.5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 16px)); }
.nav {
  pointer-events: auto;
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 12px 40px -20px hsl(var(--shadow-tint) / 0.35);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 620;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
  margin-right: auto;
}
.brand img { width: 28px; height: 28px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--line); }
.nav .btn--sm { margin-left: 6px; }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  align-items: center; justify-content: center;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle:hover { background: var(--line); }

.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--bg);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), visibility 0s 0.4s;
}
.menu-sheet.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease-out); }
.menu-sheet a {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  padding: 6px 0;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
.menu-sheet.is-open a { transform: none; opacity: 1; }
.menu-sheet.is-open a:nth-child(2) { transition-delay: 0.05s; }
.menu-sheet.is-open a:nth-child(3) { transition-delay: 0.1s; }
.menu-sheet.is-open a:nth-child(4) { transition-delay: 0.15s; }
.menu-sheet.is-open a:nth-child(5) { transition-delay: 0.2s; }
.menu-close { position: absolute; top: 22px; right: calc(var(--gutter) + 10px); width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; }
.menu-close .icon { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-links, .nav .btn--sm { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 64px;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.75rem, 5.6vw, 4.75rem);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 640;
  padding-bottom: 0.06em;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  margin-top: 26px;
  max-width: 36ch;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.hero-glow {
  position: absolute;
  inset: -18% -30%;
  z-index: -1;
  pointer-events: none;
  filter: blur(70px) saturate(1.5);
  opacity: 0.5;
}
.hero-glow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease-in-out);
  border-radius: 50%;
}
.hero-glow img.is-active { opacity: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-glow { opacity: 0.62; }
}

.motion-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  transition: color 0.2s, transform 0.3s var(--ease-out);
}
.motion-toggle:hover { color: var(--ink); }
.motion-toggle:active { transform: scale(0.94); }
.motion-toggle .icon { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .hero { min-height: 0; padding: calc(var(--nav-h) + 64px) 0 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-title { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero-stage .phone { --w: min(62vw, 290px); }
  .hero-glow { inset: -10% -20%; }
}

/* ---------- Device: phone ---------- */
.phone {
  --w: clamp(230px, 23vw, 316px);
  position: relative;
  width: var(--w);
  aspect-ratio: 590 / 1280;
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(150deg, #3a3d43 0%, #121316 30%, #08090a 60%, #2a2c31 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.12),
    inset 0 0 0 calc(var(--w) * 0.012) #050506,
    0 60px 120px -40px rgb(8 12 20 / 0.55),
    0 30px 50px -30px rgb(8 12 20 / 0.5);
  transform-style: preserve-3d;
  flex: none;
}
.phone-screen {
  position: absolute;
  inset: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.135);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.phone-screen > img,
.phone-screen > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-clip { opacity: 0; transition: opacity 1.1s var(--ease-in-out); }
.phone-clip.is-active { opacity: 1; }
.phone-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.14) 0%, transparent 32%, transparent 70%, rgb(255 255 255 / 0.05) 100%);
  pointer-events: none;
  z-index: 3;
}
.island {
  position: absolute;
  top: calc(var(--w) * 0.03);
  left: 50%;
  translate: -50% 0;
  z-index: 4;
  height: calc(var(--w) * 0.095);
  width: calc(var(--w) * 0.31);
  border-radius: 999px;
  background: #000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 calc(var(--w) * 0.03);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}
.island img {
  width: calc(var(--w) * 0.068);
  height: calc(var(--w) * 0.068);
  border-radius: 28%;
  opacity: 0;
}
.island span {
  font-size: calc(var(--w) * 0.042);
  font-weight: 560;
  letter-spacing: -0.01em;
  opacity: 0;
}
.lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding-top: calc(var(--w) * 0.2);
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.25);
  pointer-events: none;
  transition: opacity 0.8s var(--ease-in-out);
}
.phone.shows-app .lock { opacity: 0; }
.lock-date { font-size: calc(var(--w) * 0.05); font-weight: 560; opacity: 0.92; }
.lock-time {
  font-size: calc(var(--w) * 0.25);
  line-height: 1;
  font-weight: 640;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: calc(var(--w) * 0.01);
}

/* ---------- Stats ---------- */
.stats dd { margin: 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: clamp(8px, 2vw, 24px);
}
.stat { padding: 30px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 0.04em;
}
.stat-num .icon { width: 0.5em; height: 0.5em; color: var(--accent-fill); align-self: center; margin-left: 0.08em; }
.stat-label { margin-top: 10px; color: var(--ink-2); font-size: 0.9375rem; max-width: 22ch; }
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: calc(var(--nav-h) + 40px); }
.section { padding: clamp(96px, 12vw, 168px) 0; }
.section-title {
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 630;
  max-width: 17ch;
}
.section-lede {
  margin-top: 18px;
  max-width: 50ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--ink-2);
}

/* ---------- Sticky stack (iPhone apps) ---------- */
.stack { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.stack-item {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: calc(var(--nav-h) + 30px) var(--gutter) 20px;
  display: flex;
}
.card {
  position: relative;
  flex: 1;
  width: min(1320px, 100%);
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: #f3f4f6;
  background: #0b0d10;
  transform-origin: 50% 0%;
  box-shadow: 0 -20px 60px -30px rgb(0 0 0 / 0.45);
}
.card-media, .card-scrim { position: absolute; inset: 0; z-index: -1; }
.card-dim { position: absolute; inset: 0; z-index: 5; background: #050608; opacity: 0; pointer-events: none; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.card-scrim { background: linear-gradient(90deg, rgb(6 8 11 / 0.86) 0%, rgb(6 8 11 / 0.55) 42%, rgb(6 8 11 / 0.05) 75%); }
.card-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 76px);
}
.card-copy { max-width: 480px; }
.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 22.5%;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.1);
}
.card-title {
  margin-top: 22px;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 640;
}
.card-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 0.9375rem;
  color: rgb(243 244 246 / 0.78);
}
.rating { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.rating .icon { color: var(--accent-fill); width: 16px; height: 16px; }
.card-desc {
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgb(243 244 246 / 0.82);
  max-width: 40ch;
}
.store-badge {
  display: inline-block;
  margin-top: 28px;
  border-radius: 9px;
  transition: transform 0.4s var(--ease-out), opacity 0.2s;
}
.store-badge img { height: 46px; width: auto; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: scale(0.98); }

.card-devices { position: relative; height: 100%; display: grid; place-items: center; }
.card-devices .phone { --w: clamp(180px, 17vw, 250px); }

/* Card variants */
.card--radar { background: radial-gradient(120% 90% at 85% 40%, #12385c 0%, #0a1a2c 45%, #060b12 100%); }
.card--radar .card-media img {
  object-position: 80% 50%;
  opacity: 0.32;
  mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
}
.card--radar .card-scrim { display: none; }
.duo { position: relative; display: flex; align-items: center; justify-content: center; }
.duo .phone:first-child { transform: translateX(14%) rotate(-5deg) translateY(4%); z-index: 1; }
.duo .phone:last-child { transform: translateX(-14%) rotate(4deg) translateY(-4%); z-index: 2; }

.card--wallpapers { background: radial-gradient(100% 80% at 75% 50%, #2a1a3a 0%, #0f0a16 50%, #07060a 100%); }
.trio { display: flex; align-items: center; justify-content: center; }
.trio .phone { --w: clamp(150px, 13.5vw, 210px); }
.trio .phone:nth-child(1) { transform: translateX(22%) rotate(-7deg) translateY(6%); z-index: 1; }
.trio .phone:nth-child(2) { z-index: 3; --w: clamp(170px, 15.5vw, 236px); }
.trio .phone:nth-child(3) { transform: translateX(-22%) rotate(7deg) translateY(6%); z-index: 2; }

.card--weather .card-scrim { background: linear-gradient(90deg, rgb(4 18 40 / 0.82) 0%, rgb(4 18 40 / 0.45) 45%, rgb(4 18 40 / 0) 80%); }

.card--full .card-inner { grid-template-columns: minmax(0, 1fr); align-items: end; }
.card--full .card-scrim { background: linear-gradient(0deg, rgb(4 6 9 / 0.88) 0%, rgb(4 6 9 / 0.4) 38%, rgb(4 6 9 / 0) 65%), linear-gradient(90deg, rgb(4 6 9 / 0.5) 0%, transparent 55%); }

@media (max-width: 767px) {
  .stack-item { padding: calc(var(--nav-h) + 22px) 12px 12px; }
  .card-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 24px 22px 0;
  }
  .card--full .card-inner { grid-template-rows: auto; align-items: end; padding-bottom: 28px; }
  .app-icon { width: 56px; height: 56px; }
  .card-title { margin-top: 14px; font-size: 1.75rem; }
  .card-desc { font-size: 0.96875rem; margin-top: 10px; }
  .store-badge { margin-top: 16px; }
  .store-badge img { height: 40px; }
  .card-devices { align-items: start; overflow: visible; }
  .card-devices .phone { --w: min(42vw, 26svh); }
  .trio .phone { --w: min(30vw, 19svh); }
  .trio .phone:nth-child(2) { --w: min(34vw, 21svh); }
  .card-scrim { background: linear-gradient(180deg, rgb(6 8 11 / 0.85) 0%, rgb(6 8 11 / 0.5) 45%, rgb(6 8 11 / 0.1) 100%); }
  .card--weather .card-scrim { background: linear-gradient(180deg, rgb(4 18 40 / 0.85) 0%, rgb(4 18 40 / 0.35) 60%, rgb(4 18 40 / 0.1) 100%); }
}
@media (max-width: 767px) and (max-height: 700px) {
  .card-desc { display: none; }
}

/* ---------- Mac bento ---------- */
.bento {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent-fill) 14%, transparent), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
}
.tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in oklab, var(--accent-fill) 70%, transparent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile:hover { box-shadow: 0 30px 60px -36px hsl(var(--shadow-tint) / 0.45); }
.tile-media {
  position: relative;
  flex: 1;
  min-height: 230px;
  margin: 10px 10px 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
}
.tile-media img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: scale 1s var(--ease-out);
}
.tile:hover .tile-media img { scale: 1.035; }
.tile-body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px 20px;
}
.tile-body .app-icon { width: 52px; height: 52px; box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.4); }
.app-icon.mac-icon, .app-chip img.mac-icon { border-radius: 0; box-shadow: none; filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.25)); }
.tile-text { flex: 1; min-width: 0; }
.tile-name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.tile-desc { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; margin-top: 2px; }
.tile-go {
  width: 42px; height: 42px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease-out);
}
.tile:hover .tile-go { background: var(--ink); color: var(--bg); transform: rotate(45deg); }
.tile:hover .tile-go .icon { transform: rotate(-45deg); }
.tile-go .icon { transition: transform 0.5s var(--ease-out); }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

.t-dock { grid-column: span 7; }
.t-radar { grid-column: span 5; }
.t-aquarium { grid-column: span 5; }
.t-widget { grid-column: span 7; }
.t-zap { grid-column: span 6; }
.t-clock { grid-column: span 6; }
.t-dock .tile-media, .t-widget .tile-media { min-height: 300px; }
@media (max-width: 900px) {
  .bento > .tile { grid-column: span 12; }
  .tile-media, .t-dock .tile-media, .t-widget .tile-media { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
}

/* ---------- Catalog marquee ---------- */
.catalog-head { display: flex; flex-direction: column; gap: 0; }
.marquee {
  margin-top: clamp(40px, 6vw, 64px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-row { display: flex; width: max-content; }
.marquee-row + .marquee-row { margin-top: 14px; }
.marquee-set { display: flex; gap: 14px; padding-right: 14px; }
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 22px 9px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  white-space: nowrap;
  font-weight: 560;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s var(--ease-out);
}
.app-chip img { width: 48px; height: 48px; border-radius: 22.5%; }
.app-chip small { display: block; color: var(--ink-3); font-weight: 450; font-size: 0.8125rem; }
.app-chip:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 30px -18px hsl(var(--shadow-tint) / 0.5); }
.catalog-links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Studio ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.statement-wrap { position: sticky; top: calc(var(--nav-h) + 64px); }
.statement {
  font-size: clamp(1.625rem, 3vw, 2.625rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 560;
}
.js .statement .word { opacity: 0.16; }
.timeline { position: relative; padding-left: 36px; }
.timeline::before,
.timeline-progress {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}
.timeline-progress { background: var(--accent-fill); transform-origin: top; transform: scaleY(0); }
.tl-item { position: relative; padding-bottom: 44px; }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--line-strong);
  transition: box-shadow 0.4s, background-color 0.4s;
}
.tl-item.is-on .tl-node { background: var(--accent-fill); box-shadow: inset 0 0 0 2px var(--accent-fill), 0 0 0 5px color-mix(in oklab, var(--accent-fill) 22%, transparent); }
.tl-year { font-size: 0.9375rem; font-weight: 620; color: var(--accent); font-variant-numeric: tabular-nums; }
.tl-text { margin-top: 6px; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.tl-text strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .statement-wrap { position: static; }
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.4s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 62ch; }
.faq details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Smooth open/close where supported (progressive enhancement) */
.faq details::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; block-size: calc-size(auto, size); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- All apps page ---------- */
.app-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.app-jump a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.app-jump a:hover { color: var(--ink); border-color: var(--ink); }
.app-group { padding-top: clamp(48px, 7vw, 88px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.app-group-title { font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 630; }
.app-group-lede { margin-top: 10px; color: var(--ink-2); max-width: 60ch; }
.app-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app-entry {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.app-entry:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-fill) 22%, transparent); }
.app-entry .app-icon { width: 64px; height: 64px; flex: none; }
.app-entry h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.app-entry-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 0.875rem; color: var(--ink-3); }
.app-entry-meta .stars { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; }
.app-entry-meta .stars .icon { width: 13px; height: 13px; color: var(--accent-fill); }
.app-entry-desc { margin-top: 8px; color: var(--ink-2); font-size: 0.96875rem; line-height: 1.5; }
.app-entry-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.app-entry-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 560; font-size: 0.9375rem; color: var(--accent); }
.app-entry-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.app-entry-links .icon { width: 13px; height: 13px; }
.apps-note { margin-top: clamp(48px, 6vw, 72px); color: var(--ink-3); font-size: 0.9375rem; max-width: 70ch; }
@media (max-width: 860px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-entry { padding: 18px; }
  .app-entry .app-icon { width: 52px; height: 52px; }
}

/* ---------- Contact band ---------- */
.contact-band { padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 10vw, 140px); }
.contact-title {
  font-size: clamp(2.25rem, 5.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 640;
  max-width: 16ch;
}
.contact-sub { margin-top: 18px; color: var(--ink-2); font-size: 1.125rem; max-width: 44ch; }
.email-row { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.email-link {
  position: relative;
  font-size: clamp(1.5rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  word-break: break-word;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size 0.6s var(--ease-out), color 0.3s;
  padding-bottom: 4px;
}
.email-link:hover { color: var(--accent); background-size: 0% 2px; background-position: 100% 100%; }
.copy-btn { position: relative; }
.copy-btn .label-done { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.5em; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.copy-btn .label-idle { display: inline-flex; align-items: center; gap: 0.5em; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.copy-btn.is-done .label-idle { opacity: 0; transform: translateY(-8px); }
.copy-btn.is-done .label-done { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 0.9375rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p { margin-top: 12px; color: var(--ink-2); max-width: 32ch; }
.footer-col h2 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 12px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--ink-2); transition: color 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: var(--ink); }
.footer-col a .icon { width: 13px; height: 13px; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Inner pages ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(72px, 10vw, 128px)) 0 clamp(32px, 5vw, 56px); }
.page-title {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 640;
  max-width: 18ch;
}
.page-sub { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; max-width: 56ch; }
.page-body { padding-bottom: clamp(80px, 10vw, 140px); }
.prose { max-width: 70ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--ink); font-size: 1.5rem; letter-spacing: -0.025em; font-weight: 620; line-height: 1.25; margin-top: 2.2em; }
.prose h3 { color: var(--ink); font-size: 1.1875rem; letter-spacing: -0.015em; font-weight: 600; margin-top: 1.8em; }
.prose h4 { color: var(--ink); font-size: 1.0625rem; font-weight: 600; margin-top: 1.4em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose figure { margin: 2em 0; }
.prose img { border-radius: var(--r-md); border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-3); }
/* Legal pages */
.legal { max-width: 74ch; color: var(--ink-2); }
.legal > * + * { margin-top: 1em; }
.legal h2 { color: var(--ink); font-size: 1.375rem; letter-spacing: -0.02em; font-weight: 620; line-height: 1.3; margin-top: 2.4em; scroll-margin-top: calc(var(--nav-h) + 32px); }
.legal h3 { color: var(--ink); font-size: 1.0625rem; font-weight: 600; margin-top: 1.6em; }
.legal a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal ol { list-style: decimal; padding-left: 1.4em; }
.legal ol[type="a"] { list-style: lower-alpha; }
.legal li + li { margin-top: 0.5em; }
.legal-meta { font-size: 0.9375rem; color: var(--ink-3); }
.legal .callout { margin-top: 1.6em; }
.legal .callout h2 { margin-top: 0; font-size: 1.125rem; }
.legal .callout p { color: var(--ink); }
.legal-summary ul { margin-top: 0.8em; }
.legal-toc { margin-top: 2em; padding: 20px 22px; border-radius: var(--r-md); border: 1px solid var(--line); }
.legal-toc h2 { margin: 0 0 10px; font-size: 1rem; }
.legal-toc ol { columns: 2; column-gap: 32px; font-size: 0.9375rem; }
.legal-toc li { break-inside: avoid; margin: 0 0 6px; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin-top: 1.2em; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 2em 0; }
.shot-grid img { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
@media (max-width: 640px) { .shot-grid { grid-template-columns: minmax(0, 1fr); } }

.callout {
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 22px;
  color: var(--ink);
}

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { display: grid; gap: 0; }
.contact-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-list h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.contact-list p { color: var(--ink-2); margin-top: 4px; }
.link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Reveal defaults (JS enhances; content visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .hero-title { visibility: hidden; }
.js [data-hero="sub"], .js [data-hero="cta"] { opacity: 0; transform: translateY(24px); }
.js [data-hero="device"] { opacity: 0; }
.hero-title > div { padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  /* keep fades, drop movement */
  .js [data-reveal], .js [data-hero] { transform: none; }
  .menu-sheet a { transform: none; }
  .btn:hover .icon, .tile:hover .tile-go, .tile:hover .tile-go .icon, .app-chip:hover, .store-badge:hover { transform: none; }
  .tile:hover .tile-media img { scale: none; }
  .site-header { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-name: vt-fade; }
  .marquee { overflow-x: auto; }
  .faq details::details-content { transition: none; }
  .faq summary::after { transition: none; }
}
@keyframes vt-fade { from { opacity: 0; } }
