/* SKORVEX: COMING SOON
   One page: loader (animated wordmark, ported verbatim from the Hydrogen
   store's AnimatedLogo.tsx + shell.css), hero, specs, closing. Ultra-premium
   motion budget approved by the founder for this page only, see build log. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-snap-type: y mandatory;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
p {
  margin: 0;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 720px) {
  .container {
    padding: 0 40px;
  }
}

/* film grain, fixed, decorative only */
.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .grain {
    display: none;
  }
}

/* ================= loading screen ================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  /* visibility only, synced to var(--dur-hero) so it flips exactly when
     the panels finish sliding, not before. No opacity transition here,
     panels + inner handle the visible disappearance, see build log
     2026-08-20 correction. */
  transition: visibility var(--dur-hero) var(--ease);
}
/* two solid panels carry the ground colour, split top/bottom on exit,
   like a curtain opening, see build log 2026-08-20. .loader itself no
   longer paints a background, the panels do. */
.loader__panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: var(--ground);
  transition: transform var(--dur-hero) var(--ease);
}
.loader__panel--top {
  top: 0;
}
.loader__panel--bottom {
  bottom: 0;
}
.loader--exit .loader__panel--top {
  transform: translateY(-100%);
}
.loader--exit .loader__panel--bottom {
  transform: translateY(100%);
}
.loader__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition:
    opacity var(--dur-hero) var(--ease),
    transform var(--dur-hero) var(--ease);
}
.loader--exit .loader__inner {
  opacity: 0;
  transform: scale(0.9);
}
.splash-logo {
  width: clamp(220px, 42vw, 340px);
  height: auto;
  overflow: visible;
}
.loader__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--ink-faint);
  text-transform: uppercase;
  opacity: 0;
}
.logo-animate ~ .loader__tag,
.loader__inner:has(.logo-animate) .loader__tag {
  animation: tag-in var(--dur-med) var(--ease) forwards;
  animation-delay: 1180ms;
}
@keyframes tag-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.loader--exit {
  visibility: hidden;
  pointer-events: none;
}
body.is-loading {
  overflow: hidden;
}
/* CSS-only failsafe: if script.js never runs (fetch fails on a bad
   connection), JS never adds page-revealed and the loader would otherwise
   sit forever. These two rules stop matching as soon as JS does its job
   (page-revealed lands around 2s), so the normal path never reaches them. */
body:not(.page-revealed) .loader {
  animation: loader-failsafe 600ms var(--ease) 7s forwards;
}
@keyframes loader-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* logo paths, ported verbatim (classes, keyframes, timing) from the
   Hydrogen store's app/styles/shell.css so this is the same animation. */
.mobile-logo__fill {
  fill: var(--ink);
  opacity: 1;
}
.mobile-logo__fill.mobile-logo__x {
  fill: var(--accent);
}
.mobile-logo__tm {
  fill: var(--ink-faint);
  opacity: 1;
}
.mobile-logo__glow {
  opacity: 0;
  filter: drop-shadow(0 0 14px var(--accent))
    drop-shadow(0 0 30px var(--accent));
  pointer-events: none;
  animation: none;
}
.mobile-logo__glow .mobile-logo__x {
  fill: var(--accent);
}
.logo-animate .mobile-logo__fill,
.logo-animate .mobile-logo__tm {
  opacity: 0;
  animation-name: mobile-logo-fill-in;
  animation-timing-function: var(--ease);
  animation-fill-mode: forwards;
}
.logo-hidden .mobile-logo__fill,
.logo-hidden .mobile-logo__tm {
  opacity: 0;
}
.logo-hidden .mobile-logo__glow {
  opacity: 0;
  animation: none;
}
.logo-animate .mobile-logo__glow {
  opacity: 0;
  animation-name: mobile-logo-ignite, mobile-logo-glow-pulse;
  animation-timing-function: var(--ease), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  animation-duration: 340ms, 2400ms;
  animation-delay: 909ms, 1249ms;
}
@keyframes mobile-logo-fill-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes mobile-logo-ignite {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0.45;
  }
}
@keyframes mobile-logo-glow-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  .logo-animate .mobile-logo__fill,
  .logo-animate .mobile-logo__tm,
  .logo-animate .mobile-logo__glow {
    animation: none !important;
    opacity: 1;
  }
  .logo-animate .mobile-logo__glow {
    opacity: 0.6;
  }
}

/* float nav: hidden while the hero is in view, appears once the user has
   scrolled past it (toggled in script.js), logo click scrolls to top.
   Reuses the same wordmark-logo + logo-animate glow loop as the hero. */
.floatnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0;
  background: rgba(10, 11, 9, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transform: translateY(-100%);
  transition:
    opacity var(--dur-med) var(--ease),
    transform var(--dur-med) var(--ease);
  pointer-events: none;
}
.floatnav.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floatnav__btn {
  display: flex;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  line-height: 0;
}
.floatnav__btn .wordmark-logo {
  width: 160px;
}
@media (min-width: 720px) {
  .floatnav__btn .wordmark-logo {
    width: 180px;
  }
}
.floatnav .mobile-logo__glow {
  filter: drop-shadow(0 0 6px var(--accent)) drop-shadow(0 0 14px var(--accent));
}
@media (prefers-reduced-motion: reduce) {
  .floatnav {
    transition: opacity var(--dur-fast) linear;
    transform: none;
  }
}

/* hero brand-row wordmark: always carries logo-animate (see index.html),
   so its X pulses on the same infinite loop as the loader's, no JS state
   needed here. Glow blur scaled down, this logo renders at roughly half
   the loader's width, the loader's 14/30px blur would read oversized. */
.wordmark-logo {
  width: 148px;
  height: auto;
  display: block;
}
@media (min-width: 720px) {
  .wordmark-logo {
    width: 168px;
  }
}
.hero__brandrow .mobile-logo__glow {
  filter: drop-shadow(0 0 7px var(--accent)) drop-shadow(0 0 15px var(--accent));
}

/* ================= layout shell ================= */
main {
  display: block;
}
section {
  position: relative;
}
#hero,
#specs,
#closing {
  scroll-snap-align: start;
}

/* ================= hero ================= */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  overflow: clip;
}
/* full-bleed bottle photo, same asset and framing as homepage_v3's hero,
   see build log: coming_soon used to float a cutout bottle in a box, now
   matches the rest of the site's treatment. */
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #000;
}
.hero__bg {
  /* --hero-bg-src swaps tiers at runtime, see script.js initHeroBgUpgrade();
     default is the 98KB web tier so the loader gate never waits on the
     original 1.1MB file, see build log 2026-08-20. */
  --hero-bg-src: url("assets/Black_bg-web.jpeg");
  position: absolute;
  inset: 0;
  background: #000 var(--hero-bg-src) center 2% / auto 128% no-repeat;
}
@media (min-width: 860px) {
  .hero__bg {
    background: var(--hero-bg-src) center 26% / auto 160% no-repeat;
  }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(0, 0, 0, 0.05), transparent 60%),
    linear-gradient(
      180deg,
      rgba(5, 6, 5, 0.12) 0%,
      rgba(5, 6, 5, 0.18) 30%,
      rgba(5, 6, 5, 0.85) 50%,
      rgba(5, 6, 5, 0.97) 72%,
      rgba(5, 6, 5, 0.99) 100%
    );
}
.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 0 48px;
  /* scale-in reveal, timed with the loader curtain opening over it, see
     build log 2026-08-20. Individual [data-reveal] children inside still
     fade/translate up on their own stagger, this scales the whole group
     as one unit, like iOS's unlock zoom. */
  transform: scale(0.92);
  transition: transform var(--dur-hero) var(--ease-spring);
}
body.page-revealed .hero__inner {
  transform: scale(1);
}
.hero__brandrow {
  padding-top: 4px;
}
/* centered, pinned below the SKORVEX mark printed on the bottle in the
   photo (sits ~46-50% down the frame at every crop), not just vertically
   centered. vh-based so the offset tracks hero height, not just width.
   .hero uses min-height not height, so an offset that pushes hero__inner's
   content past 100vh grows the whole section past one viewport, breaking
   the scroll-snap one-panel-per-screen layout instead of just looking
   off-center; a too-small offset instead lets the title overlap the label.
   300px ceiling clears the label at ~760-800px-tall viewports (confirmed
   live), paired with the scrollcue media query below to keep the full
   stack inside one panel at that height. */
.hero__copy {
  max-width: 640px;
  margin: calc(clamp(130px, 38vh, 300px) + 3em) auto 0;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow-dot {
    animation: none;
  }
}
.hero__title {
  font-size: clamp(2.3rem, 6.4vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.hero__sub {
  margin: 22px auto 0;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 46ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -6px var(--accent-glow);
}
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn--ghost:hover {
  border-color: var(--accent);
  box-shadow: none;
}

.hero__scrollcue {
  align-self: center;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero__scrollcue svg {
  animation: chevron-bob 1.8s ease-in-out infinite;
}
@keyframes chevron-bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scrollcue svg {
    animation: none;
  }
}
/* threshold was 850px while the hero carried a CTA row. The form moved to
   the closing section 2026-08-19, freeing about 150px, and the cue is now the
   hero's only affordance, so it survives further down. See build log. */
@media (max-height: 760px) {
  .hero__scrollcue {
    display: none;
  }
}

/* ================= reveal-on-snap (hero once, specs/closing replay) ================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms var(--ease),
    transform 620ms var(--ease);
}
/* also gated on body.page-revealed: belt-and-suspenders against a tall
   viewport where hero/specs are already in view behind the loader. */
body.page-revealed [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] {
  transition-delay: 90ms;
}
[data-reveal-delay="2"] {
  transition-delay: 180ms;
}
[data-reveal-delay="3"] {
  transition-delay: 270ms;
}
[data-reveal-delay="4"] {
  transition-delay: 360ms;
}
[data-reveal-delay="5"] {
  transition-delay: 450ms;
}
[data-reveal-delay="6"] {
  transition-delay: 540ms;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
/* same script-fetch-failed failsafe as the loader above, timed just after
   the loader's own so content is never stuck invisible under it. */
body:not(.page-revealed) [data-reveal] {
  animation: reveal-failsafe 1ms linear 7.5s forwards;
}
@keyframes reveal-failsafe {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= specs ================= */
.specs {
  padding: 108px 0;
  border-top: 1px solid var(--hairline);
}
.specs__head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.specs__lede {
  margin-top: 16px;
  color: var(--ink-muted);
  max-width: 56ch;
  line-height: 1.6;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.spec-item {
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  position: relative;
}
@media (min-width: 640px) {
  .spec-item {
    padding: 32px 28px 32px 0;
  }
}
.spec-item__rule {
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--accent-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 720ms var(--ease);
}
body.page-revealed .spec-item.is-in .spec-item__rule {
  transform: scaleX(1);
}
.spec-item__value {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.spec-item__label {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.spec-item__label span {
  display: block;
  color: var(--ink-faint);
  font-size: 0.78rem;
  margin-top: 2px;
}

/* ================= closing ================= */
.closing {
  padding: 100px 0 0;
  border-top: 1px solid var(--hairline);
}
.closing__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.closing__lede {
  margin-top: 18px;
  color: var(--ink-muted);
  line-height: 1.6;
  font-size: 1.02rem;
}
.closing__cta {
  margin-top: 40px;
}

.faq {
  margin-top: 88px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.faq__item {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
}
.faq__q {
  font-weight: 600;
  font-size: 1.02rem;
}
.faq__a {
  margin-top: 10px;
  color: var(--ink-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer {
  margin-top: 100px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer__mark {
  width: 108px;
  height: auto;
  opacity: 0.85;
}
.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  font-size: 0.84rem;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}
.footer__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer__legal {
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* ---- signup form. Replaces both mailto CTAs, founder decision 2026-08-19.
   Copy and backend contract: 09-marketing-copy/09_MARKETING_LAUNCH_COPY_1.md Part 2B. */
.signup {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}
/* honeypot: off-screen, not display:none, so bots still fill it */
.signup__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.signup__field--wide {
  grid-column: 1 / -1;
}
.signup__label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.signup__opt {
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.65;
}
.signup__input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--surface-deep);
  border: 1px solid var(--hairline-2);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.98rem;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.signup__input::placeholder {
  color: var(--ink-faint);
}
.signup__input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.signup__input[aria-invalid="true"] {
  border-color: var(--warn);
}
.signup__btn {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  font-family: var(--font);
  cursor: pointer;
}
.signup__btn[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.signup__note {
  margin-top: 12px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-faint);
}
.signup__msg {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--warn);
}
.signup__msg:empty {
  display: none;
}
.signup.is-done .signup__fields,
.signup.is-done .signup__btn,
.signup.is-done .signup__note {
  display: none;
}
.signup.is-done .signup__msg {
  margin-top: 0;
  font-size: 1rem;
  color: var(--accent);
}

@media (max-width: 560px) {
  .signup__fields {
    grid-template-columns: 1fr;
  }
}
