/* IOVO landing (/) — a brand front door. One idea per screen. Pass 9: graphite, warm white, amber accent;
   the ring's blue → cyan only in the hero. */

/* ---------- Nav (landing: quiet) ---------- */
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-2); text-decoration: none; font-size: 14px; transition: color .25s; }
.nav-link:hover { color: var(--text); }
.nav .btn.nav-access { background: transparent; border-color: var(--line-strong); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav .btn.nav-access:hover { border-color: var(--accent); color: var(--text); }
@media (max-width: 560px) { .nav-link { padding: 0 4px; } .nav-right { gap: 6px; } }
@media (max-width: 359px) { .nav-link { display: none; } }

/* ---------- 1 · Hero: the brand moment (the ring's colours live here) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 108px 0 88px; overflow: hidden; }
.hero-light { position: absolute; inset: -10% -10% auto auto; width: 90%; height: 120%; pointer-events: none;
  background: radial-gradient(34% 30% at 68% 44%, rgba(11, 95, 224, .13), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero-copy h1 { font-size: clamp(44px, 5.5vw, 84px); line-height: 1.02; letter-spacing: -.045em; max-width: 10.4em; margin-bottom: 30px; }
.hero-copy .lede { max-width: 26em; font-size: clamp(17px, 1.5vw, 21px); color: var(--text-2); }
[data-depth] { will-change: transform; }

.hero-mark { position: relative; width: min(460px, 118%); justify-self: center; margin-bottom: 18%; }
.hero-mark .mark { position: relative; z-index: 2; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.volume { display: none; }
/* The node's own light: small and warm, no bloom */
.node-glow {
  position: absolute; z-index: 1; left: 69.8%; top: 30.5%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 154, 39, .22), rgba(255, 106, 45, 0) 100%);
  pointer-events: none; animation: breathe 7s var(--ease-water) infinite alternate;
}
@keyframes breathe { from { opacity: .6; } to { opacity: 1; } }

.horizon { position: absolute; z-index: 1; left: -22%; right: -22%; top: 85.5%; height: 58%; pointer-events: none; }
.horizon canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease-out); }
.horizon.gl canvas { opacity: .8; }
.horizon .waterline { position: absolute; left: 0; right: 0; top: 0; opacity: .7; }
.reflection-fallback { position: absolute; left: 15.28%; width: 69.44%; top: 0; height: 100%; overflow: hidden; opacity: .14;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
.reflection-fallback img { width: 100%; transform: scaleY(-1) translateY(14%); filter: blur(3px) saturate(.8); }
.horizon.gl .reflection-fallback { opacity: 0; transition: opacity 1s; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; }
.scroll-cue span { width: 1px; height: 30px; background: linear-gradient(180deg, transparent, var(--text-2)); animation: cue 2.6s var(--ease-water) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(12px); opacity: 0; } }

@media (max-width: 900px) {
  .hero { padding-top: 96px; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-mark { order: -1; width: min(280px, 68vw); margin: 0 auto 19%; }
  .reflection-fallback { opacity: .24; }
  .hero-copy h1 { font-size: clamp(40px, 10.6vw, 76px); max-width: 11em; }
  .scroll-cue { display: none; }
}
@media (min-width: 601px) and (max-width: 900px) { .hero-copy { text-align: center; } .hero-copy h1, .hero-copy .lede { margin-inline: auto; } }

/* ---------- 2 · The product moment (a scrubbed render, not live 3D) ---------- */
.moment { position: relative; height: 250svh; }
.moment-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ink-0); }
.moment-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.moment-fallback { position: absolute; right: 4%; top: 50%; height: 92%; width: auto; transform: translateY(-50%); display: none; }
.moment.static .moment-canvas { display: none; }
.moment.static .moment-fallback { display: block; }
.moment-copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; pointer-events: none; }
.moment-copy h2 { max-width: 7.6em; font-size: clamp(40px, 5.6vw, 88px); line-height: 1.02; letter-spacing: -.045em;
  opacity: var(--beat, 0); transform: translateY(calc((1 - var(--beat, 0)) * 24px)); }
.moment-sub { max-width: 25em; margin: 28px 0 0; color: var(--text-2); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; font-weight: 300;
  opacity: calc(var(--beat, 0) * 1.6 - .6); transform: translateY(calc((1 - var(--beat, 0)) * 32px)); }
.moment.static .moment-copy { --beat: 1; }
@media (max-width: 900px) {
  .moment { height: 220svh; }
  .moment-copy { justify-content: flex-start; padding-top: 104px; }
  .moment-sub { max-width: 21em; margin-top: 16px; font-size: 15px; }
  .moment-copy h2 { font-size: clamp(36px, 9.4vw, 64px); }
  .moment-fallback { right: auto; left: 50%; top: auto; bottom: 4%; height: auto; width: 110%; transform: translateX(-50%); }
}

/* ---------- 3 · The path ---------- */
.path { position: relative; padding-top: clamp(80px, 10vw, 140px); }
.path-intro { padding-bottom: clamp(8px, 2vw, 24px); }
.path-intro h2 { font-size: clamp(40px, 5.2vw, 80px); line-height: 1.02; letter-spacing: -.045em; max-width: 10em; }
.dealer-flow { --flow-top: 68px; }
@media (max-width: 560px) { .dealer-flow { --flow-top: 60px; } }

/* ---------- 4 · One platform: a landscape iPad with real IOVO screens ---------- */
.preview.section { padding: clamp(96px, 11vw, 160px) 0 clamp(72px, 8vw, 112px); }
.preview-title { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.04em; max-width: 12em; margin-bottom: clamp(36px, 5vw, 72px); }
.platform { position: relative; }
/* --in (0 → 1, landing.js) lays the iPad flat as it scrolls into view */
/* sized so the iPad, its line and the tabs fit on one screen */
.pad { --in: 1; position: relative; width: min(100%, 1000px, calc((100svh - 270px) * 1.4)); margin: 0 auto; perspective: 2400px; }
.pad-body { position: relative; padding: 1.55%; border-radius: 3.6% / 5.1%;
  background: linear-gradient(180deg, #2A2C31 0%, #16181C 7%, #0E1013 60%, #1C1E23 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .14), 0 60px 110px -50px rgba(0, 0, 0, .95), 0 30px 50px -30px rgba(0, 0, 0, .7);
  transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--in)) * 22deg)) scale(calc(.9 + .1 * var(--in))); will-change: transform; }
/* the floor shadow */
.pad::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -5%; height: 8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(8px); }
.pad-screen { position: relative; aspect-ratio: 2360 / 1640; overflow: hidden; border-radius: 2.1% / 3%; background: #060708; isolation: isolate; }
.pad-screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .015) 30%, transparent 31%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.pad-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.012);
  transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out); }
.pad-shot.on { opacity: 1; transform: none; z-index: 1; }

/* Caption + tabs */
.trio-caption { display: grid; justify-items: center; gap: 26px; margin-top: clamp(12px, 2vw, 28px); text-align: center; }
.trio-lines { display: grid; width: 100%; }
.trio-line { grid-area: 1 / 1; display: grid; gap: 12px; justify-items: center; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s; }
.trio-line.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.trio-line .mono { color: var(--accent); font-size: 11px; }
.trio-say { max-width: 20em; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.18; letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
.trio-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 14, 18, .6); }
.trio-tabs button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 400 14px var(--font-body); cursor: pointer;
  transition: color .25s, background-color .25s; }
.trio-tabs button:hover { color: var(--text); }
.trio-tabs button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }
.trio-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.trio-tabs button { position: relative; overflow: hidden; }
/* auto-advance: a thin line fills under the active tab while the next one is coming */
.trio-tabs button i { position: absolute; left: 18%; right: 18%; bottom: 7px; height: 2px; border-radius: 2px; background: rgba(26, 14, 2, .35); transform: scaleX(0); transform-origin: left; }
.platform.is-auto .trio-tabs button[aria-pressed="true"] i { animation: tab-fill var(--dwell, 6s) linear both; }
.platform.is-paused .trio-tabs button[aria-pressed="true"] i { animation-play-state: paused; }
@keyframes tab-fill { to { transform: scaleX(1); } }
/* One strong line, one "#1" in it (founder, pass 5). The number is the accent. */
.number-one { max-width: 17em; margin: clamp(72px, 9vw, 128px) 0 0; padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -.04em; color: var(--text); text-wrap: balance; }
.num { font-weight: 500; letter-spacing: -.05em; padding-right: .04em;
  background: linear-gradient(180deg, var(--accent-hi) 10%, var(--accent) 60%, var(--accent-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 760px) {
  .pad { width: calc(100% + 16px); margin: 0 -8px; }
  .pad-body { padding: 1.9%; }
}
@media (max-width: 560px) {
  .trio-caption { gap: 22px; }
  .trio-say { font-size: 23px; }
  .trio-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  .trio-tabs button { padding: 0 10px; border-radius: 18px; }
}
/* ---------- 5 · About ---------- */
.about-block.section { padding: clamp(72px, 9vw, 128px) 0 clamp(96px, 11vw, 160px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.about-grid h2 { font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -.04em; }
.about-copy { display: grid; gap: 20px; }
.about-copy .lede { max-width: 32em; color: var(--text); }
.about-copy .lede + .lede { color: var(--text-2); }
.text-link { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; margin-top: 8px; color: var(--accent); text-decoration: none; font-size: 15px; }
.text-link svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  [data-depth] { transform: none !important; }
  .moment { height: auto; }
  .moment-pin { position: relative; height: 100svh; min-height: 560px; }
  .pad-body { transform: none; }
  .pad-shot { transition: opacity .2s linear; transform: none; }
}
