/* ============================================================
   AQUEN — futuristic water bottle hero
   Layout after the user's reference; visual language from the
   Soni Labs system: Aeonik Light display, quiet Apple-style
   motion. Background: pure black. Center intentionally left
   clear for a future product visual.
   ============================================================ */

:root {
  --accent: #FFFFFF;
  --hero-pad: clamp(24px, 4vw, 64px);
}

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

html {
  background: #000;
}
/* body stays transparent so the fixed footer (z-index: -1) can
   show through the spacer gap at the end of the page. */
html, body {
  color: var(--fg-on-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
::-webkit-scrollbar { width: 0; height: 0; display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------------- GSAP word-mask reveal ---------------- */
.reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.reveal-word {
  display: inline-block;
  transform: translateY(115%);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-word { transform: none; }
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
  overflow: hidden;
}

/* ---------------- Background video ---------------- */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* ---------------- Nav (fixed, hides on scroll down) ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: clamp(20px, 2.4vw, 36px) var(--hero-pad);
  transition: transform var(--dur-3) var(--ease-out), background var(--dur-3) var(--ease-out), padding var(--dur-3) var(--ease-out);
}
.nav.nav-hidden { transform: translateY(-101%); }

/* Solid white bar once off the very top; all nav text flips to black */
.nav.nav-solid {
  background: #fff;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav.nav-solid .brand { color: #000; }
.nav.nav-solid .brand img { filter: none; }
.nav.nav-solid .nav-links a { color: rgba(0,0,0,.72); }
.nav.nav-solid .nav-links a:hover {
  color: #000;
  border-bottom-color: rgba(0,0,0,.4);
}
.nav.nav-solid .nav-cta {
  color: #fff;
  background: #000;
}
.nav.nav-solid .nav-cta:hover { background: #000; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg-on-dark);
}
.brand img {
  width: 26px;
  height: 26px;
  display: block;
  filter: invert(1);
}
.brand-name {
  font-size: var(--t-20);
  font-weight: 400;
  letter-spacing: var(--tr-base);
}
.brand-name sup {
  font-size: 9px;
  vertical-align: super;
  opacity: .7;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2.2vw, 36px);
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: var(--t-14);
  letter-spacing: -0.005em;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.nav-links a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.5);
}

.nav-cta-wrap { display: flex; justify-content: flex-end; }
.nav-cta {
  font-family: var(--font-sans);
  font-size: var(--t-14);
  font-weight: 400;
  color: #000;
  background: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.nav-cta:hover { background: var(--ink-10); }
.nav-cta:active { transform: scale(.98); background: var(--ink-9); }

/* ---------------- Headline ---------------- */
.headline {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--hero-pad);
  pointer-events: none;
  transform: translateY(-4vh);
}
.headline .word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(88px, 13.5vw, 260px);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  color: #fff;
  white-space: nowrap;
}
.line-1 { padding-left: 2vw; }
.line-2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: -1vw;
  padding: 0 1vw 0 9vw;
}

/* ---------------- Caption ---------------- */
.caption-block {
  position: absolute;
  left: var(--hero-pad);
  bottom: clamp(28px, 4vh, 56px);
  z-index: 30;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.caption-block p {
  font-size: var(--t-18);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: var(--tr-base);
  color: rgba(255,255,255,.78);
  text-wrap: pretty;
}
.caption-rule {
  position: relative;
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,.16);
  overflow: hidden;
}
.caption-rule span {
  position: absolute;
  left: 0; top: 0;
  width: 36px;
  height: 100%;
  background: var(--accent);
}

/* ---------------- Shutter reveal (load) ---------------- */
.hero-shutter {
  position: absolute;
  inset: 0;
  z-index: 95;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(10, 1fr);
  pointer-events: none;
  background: #000;
}
.hero-shutter.is-armed { background: transparent; }
.hero-shutter span {
  position: relative;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background: #000;
  transform-origin: left center;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-shutter { display: none; }
}

/* ---------------- Entrance motion (quiet) ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .headline .word, .caption-block, .nav { animation: rise 900ms var(--ease-out) both; }
  .line-2 { animation-delay: 90ms; }
  .caption-block { animation-delay: 260ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; } }
  .headline { animation: none; }
}
