/* ═══════════════════════════════════════════════════════════
   H2O AQUA — Cinematic Water Experience
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Color system */
  --bg:        #F8FBFD;
  --dark:      #07131E;
  --accent:    #007AFF;
  --accent-2:  #65D8FF;
  --ink:       #111111;
  --ink-2:     #5A6470;
  --white:     #FFFFFF;

  --font-sans: "Inter", -apple-system, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* Fluid spacing */
  --gutter: clamp(1.25rem, 5vw, 6rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 1.1s;

  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}

@media (hover: none), (pointer: coarse) { body { cursor: auto; } }

sub { font-size: 0.62em; }
em { font-style: normal; }

/* ─── PRELOADER ─────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__mark { display: flex; align-items: center; gap: 0.9rem; }
.preloader__drop {
  width: 14px; height: 14px; border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 24px rgba(101,216,255,0.6);
  animation: dropPulse 1.6s var(--ease) infinite;
}
@keyframes dropPulse { 0%,100%{transform:rotate(45deg) scale(1);opacity:1} 50%{transform:rotate(45deg) scale(0.7);opacity:0.6} }
.preloader__word { font-weight: 500; letter-spacing: 0.32em; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.preloader__bar { width: 180px; height: 1px; background: rgba(255,255,255,0.14); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: load 1.8s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }

/* ─── PERSISTENT VIDEO STAGE ────────────────────────────── */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--dark); overflow: hidden; }
.stage__layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s var(--ease-io);
  will-change: opacity;
  transform: scale(1.04); /* subtle overscan for parallax breathing */
}
.stage__layer.is-active { opacity: 1; }

.stage__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stage__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4,10,17,0.55) 100%);
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────── */
.cursor { position: fixed; top: 0; left: 0; z-index: 900; pointer-events: none; mix-blend-mode: difference; }
.cursor span {
  position: absolute; top: 0; left: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff; transform: translate(-50%,-50%);
  transition: width 0.32s var(--ease), height 0.32s var(--ease), background 0.3s;
}
.cursor.is-cta span { width: 58px; height: 58px; background: rgba(255,255,255,0.9); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ─── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background 0.6s var(--ease), backdrop-filter 0.6s;
}
.nav.scrolled { background: rgba(7,19,30,0.42); backdrop-filter: blur(14px) saturate(1.2); }
.nav.on-light.scrolled { background: rgba(248,251,253,0.55); }

.nav__brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.nav__logo {
  width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(45deg);
  background: linear-gradient(160deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 18px rgba(101,216,255,0.55);
}
.nav__name { font-weight: 600; letter-spacing: 0.14em; font-size: 0.95rem; }
.nav__name em { font-weight: 300; font-family: var(--font-serif); font-size: 1.15em; letter-spacing: 0.02em; }

.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.6rem); }
.nav__links a {
  color: inherit; text-decoration: none; font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.06em; opacity: 0.72; position: relative; padding: 4px 0;
  transition: opacity 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width 0.4s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }

.nav__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255,255,255,0.08); }
.nav__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* nav color adapts to section theme */
.nav.on-light { color: var(--ink); }
.nav.on-light .nav__progress { background: rgba(7,19,30,0.08); }

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  --pad: 0.95rem 1.9rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: var(--pad); border-radius: 100px;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.03em;
  text-decoration: none; color: inherit; position: relative;
  transition: transform 0.35s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
  will-change: transform;
}
.btn span { position: relative; z-index: 2; }
.btn--nav { padding: 0.6rem 1.25rem; border: 1px solid rgba(255,255,255,0.25); font-size: 0.8rem; }
.nav.on-light .btn--nav { border-color: rgba(7,19,30,0.2); }
.btn--nav:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

.btn--ghost { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn--solid { background: var(--accent); color: #fff; padding: 1.1rem 2.4rem; box-shadow: 0 12px 40px -12px rgba(0,122,255,0.7); }
.btn--solid:hover { background: #0a6ee0; }

/* ─── SECTION DOTS ──────────────────────────────────────── */
.dots {
  position: fixed; right: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%);
  z-index: 150; display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,0.28); cursor: none; position: relative;
  transition: background 0.4s, transform 0.4s var(--ease);
}
.dots.on-light button { background: rgba(7,19,30,0.22); }
.dots button::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; font-size: 0.68rem; letter-spacing: 0.08em; opacity: 0; pointer-events: none;
  color: currentColor; transition: opacity 0.3s, transform 0.3s;
  color: rgba(255,255,255,0.85);
}
.dots.on-light button::after { color: rgba(7,19,30,0.8); }
.dots button:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.dots button.active { background: var(--accent-2); transform: scale(1.5); }
.dots.on-light button.active { background: var(--accent); }

/* ─── SCENE LAYOUT ──────────────────────────────────────── */
.scene {
  position: relative; z-index: 10;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) 10vh;
}
.scene__inner { position: relative; z-index: 3; width: 100%; max-width: 1320px; margin: 0 auto; }
.scene__inner--center { text-align: center; max-width: 1000px; }
.scene__inner--right { margin-left: auto; margin-right: 0; max-width: 640px; text-align: left; }
@media (min-width: 900px){ .scene__inner--right { margin-right: 4vw; } }

.theme-dark { color: #fff; }
.theme-light { color: var(--ink); }

/* ─── SCRIMS (cinematic legibility gradients) ───────────── */
.scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scrim--hero   { background: linear-gradient(180deg, rgba(4,10,17,0.55) 0%, rgba(4,10,17,0.15) 35%, rgba(4,10,17,0.55) 100%); }
.scrim--bottom { background: linear-gradient(0deg, rgba(4,10,17,0.85) 0%, rgba(4,10,17,0.1) 60%, transparent 100%); }
.scrim--left   { background: linear-gradient(90deg, rgba(4,10,17,0.9) 0%, rgba(4,10,17,0.45) 45%, transparent 80%); }
.scrim--right  { background: linear-gradient(270deg, rgba(4,10,17,0.9) 0%, rgba(4,10,17,0.4) 45%, transparent 80%); }
.scrim--center { background: radial-gradient(70% 70% at 50% 50%, rgba(4,10,17,0.72) 0%, rgba(4,10,17,0.4) 70%, rgba(4,10,17,0.2) 100%); }
.scrim--light      { background: linear-gradient(90deg, rgba(248,251,253,0.92) 0%, rgba(248,251,253,0.7) 42%, rgba(248,251,253,0.15) 78%); }
.scrim--light-r    { background: linear-gradient(270deg, rgba(248,251,253,0.94) 0%, rgba(248,251,253,0.66) 46%, rgba(248,251,253,0.1) 82%); }
.scrim--light-soft { background: radial-gradient(80% 80% at 50% 50%, rgba(248,251,253,0.86) 0%, rgba(248,251,253,0.6) 65%, rgba(248,251,253,0.25) 100%); }

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
.kicker {
  font-size: clamp(0.7rem, 0.9vw, 0.82rem); font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; opacity: 0.7; margin-bottom: 1.6rem;
}
.theme-light .kicker { color: var(--accent); opacity: 0.9; }

.display {
  font-size: clamp(3.4rem, 12vw, 11rem);
  font-weight: 300; line-height: 0.92; letter-spacing: -0.03em;
}
.display em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.display--sm { font-size: clamp(3rem, 8.5vw, 8rem); }

.headline {
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.025em;
  max-width: 16ch;
}
.headline em { font-family: var(--font-serif); font-weight: 400; }
.scene__inner--center .headline { margin: 0 auto; }

.lede {
  margin-top: 1.9rem; max-width: 46ch;
  font-size: clamp(1rem, 1.35vw, 1.28rem); line-height: 1.6; font-weight: 300;
  color: rgba(255,255,255,0.78);
}
.theme-light .lede { color: var(--ink-2); }
.lede--center { margin-left: auto; margin-right: auto; }
.scene__inner--center .lede { margin-left: auto; margin-right: auto; }

.hero__cta { margin-top: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.scene__inner--center .hero__cta { justify-content: center; }

/* ─── HERO scroll cue ───────────────────────────────────── */
.scroll-cue {
  position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  text-decoration: none; color: rgba(255,255,255,0.7);
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
}
.scroll-cue i { width: 1px; height: 46px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.scroll-cue i::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background:#fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(300%)} }

/* ─── STATS ─────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(3rem, 6vw, 5rem); max-width: 1000px; }
.stat__num { display: block; font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: 0.9rem; font-size: 0.86rem; line-height: 1.4; color: rgba(255,255,255,0.6); max-width: 22ch; }
@media (max-width: 760px){ .stats { grid-template-columns: 1fr; gap: 2rem; } }

/* ─── TIMELINE ──────────────────────────────────────────── */
.scene__inner--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 900px){ .scene__inner--split { grid-template-columns: 1fr; } }
.timeline { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.timeline__step {
  display: flex; gap: 1.4rem; align-items: flex-start;
  padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,0.12);
}
.timeline__step:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.timeline__idx { font-family: var(--font-serif); font-size: 1.4rem; color: var(--accent-2); min-width: 2.4ch; }
.timeline__step h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.timeline__step p { margin-top: 0.35rem; font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* ─── SPECS (RO) ────────────────────────────────────────── */
.specs { margin-top: 2.6rem; display: flex; flex-direction: column; }
.spec {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,0.12);
  transition: padding-left 0.4s var(--ease), background 0.4s;
}
.spec:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.spec:hover { padding-left: 0.8rem; background: linear-gradient(90deg, rgba(101,216,255,0.08), transparent); }
.spec__k { font-size: 0.9rem; color: rgba(255,255,255,0.65); letter-spacing: 0.02em; }
.spec__v { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 300; font-variant-numeric: tabular-nums; color: #fff; }
.spec:hover .spec__v { color: var(--accent-2); }

/* ─── INDUSTRIES (editorial list) ───────────────────────── */
.industries { list-style: none; margin-top: clamp(1.5rem, 4vw, 3rem); }
.ind {
  display: grid; grid-template-columns: 4ch 1fr auto; align-items: baseline; gap: 1.5rem;
  padding: clamp(0.9rem, 2vw, 1.5rem) 0; border-top: 1px solid rgba(7,19,30,0.14);
  transition: transform 0.5s var(--ease), color 0.4s;
}
.ind:last-child { border-bottom: 1px solid rgba(7,19,30,0.14); }
.ind__n { font-family: var(--font-serif); font-size: 1.1rem; color: var(--accent); }
.ind__t { font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.02em; }
.ind__d { font-size: 0.85rem; color: var(--ink-2); text-align: right; }
.ind:hover { transform: translateX(1.2rem); color: var(--accent); }
.ind:hover .ind__t { color: var(--accent); }
@media (max-width: 620px){ .ind { grid-template-columns: 3ch 1fr; } .ind__d { display: none; } }

/* ─── FLOAT SPECS (product) ─────────────────────────────── */
.floatspecs { margin-top: 2.8rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 3rem; max-width: 460px; }
.fspec__v { display: block; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fspec__k { display: block; margin-top: 0.4rem; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-2); text-transform: uppercase; }

/* ─── BIG STATS (impact) ────────────────────────────────── */
.bigstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(3rem, 6vw, 5rem); }
.bigstat__num { display: block; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.bigstat__label { display: block; margin-top: 0.8rem; font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.4; }
@media (max-width: 860px){ .bigstats { grid-template-columns: repeat(2,1fr); gap: 2.5rem 1.5rem; } }

/* ─── FILM FOOTER ───────────────────────────────────────── */
.film-footer {
  margin-top: clamp(4rem, 10vw, 8rem); display: flex; gap: clamp(1.5rem, 5vw, 4rem); justify-content: center;
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-2); flex-wrap: wrap;
}

/* ─── REVEAL SYSTEM (Framer-motion-style whileInView) ───── */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
  transition-delay: calc(var(--rd, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* ─── REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .stage__layer { transition: opacity 0.3s linear; transform: none; }
  .scroll-cue i::after, .preloader__drop { animation: none; }
  .cursor { display: none; }
  body { cursor: auto; }
}

/* ─── RESPONSIVE NAV ────────────────────────────────────── */
@media (max-width: 820px){
  .nav__links { display: none; }
  .dots { display: none; }
}
