/* 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(--blue-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); }
/* The render is a dark studio: in day mode this band stays night (a deliberate dark stage between light sections). */
html[data-theme="light"] .moment { --ink-0: #07080B; --text: #F4F1EC; --text-2: #A9A59E; --text-3: #6F6C67; color: var(--text); }
.moment-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* wide: capped by width too, so the still stays right of the words */
.moment-fallback { position: absolute; right: 3%; top: 50%; height: min(92%, 50vw); width: auto; transform: translateY(-50%); display: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%); mask-image: linear-gradient(90deg, transparent, #000 10%); }
.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; }
/* Portrait (phones, iPad portrait): words on top, the product in the space under them (landing.js measures it). */
@media (max-width: 900px) {
  .moment { height: 220svh; }
  .moment-copy { justify-content: flex-start; padding-top: 92px; }
  .moment-sub { max-width: 21em; margin-top: 14px; font-size: 15px; line-height: 1.55; }
  .moment-copy h2 { font-size: clamp(34px, 9.4vw, 64px); }
  /* the still: a block under the words, never behind them */
  .moment.static .moment-pin { display: flex; flex-direction: column; height: auto; min-height: 100svh; }
  .moment.static .moment-copy { height: auto; order: -1; }
  .moment.static .moment-fallback { position: relative; inset: auto; transform: none; display: block; width: min(100%, 620px); height: auto; margin: 20px auto 16px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%); mask-image: linear-gradient(180deg, transparent, #000 12%); }
}
@media (min-width: 601px) and (max-width: 900px) { .moment-copy { padding-top: 120px; } .moment-sub { max-width: 30em; font-size: 17px; } }

/* ---------- 3 · The path ---------- */
.path { position: relative; padding-top: clamp(80px, 10vw, 140px); }
/* a soft wash of the ring's blue where the path begins */
.path::before { content: ""; position: absolute; inset: 0 0 auto; height: 900px; background: var(--glow-blue); pointer-events: none; }
.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; }
/* by id: flow.css resets --flow-top on .iovo-flow (same element), so a class selector here would lose */
#dealer-flow { --flow-top: 68px; }
@media (max-width: 560px) { #dealer-flow { --flow-top: 60px; } }

/* ---------- 4 · One line (pass 11: the iPad "One platform" moved to /puronics/) ---------- */
.proof.section { padding: clamp(72px, 9vw, 128px) 0 0; }
.proof .number-one { margin: 0; }
/* 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; }

/* ---------- 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); 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; }
}
