:root {
  --break: 0;          /* hero scroll progress 0..1 */
  --ink: #06233a;
  --ice: #d8f6ff;
  --blue: #0b7fce;
  --deep: #041520;
  --gold: #ffbf38;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #f6fbff;
  background: #061b2a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-family: Bangers, Impact, fantasy;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(1, 16, 27, .7);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: #082840;
  box-shadow: 0 16px 34px rgba(0, 28, 56, .36);
}
.btn-ghost {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(2, 13, 24, .82), rgba(2, 13, 24, 0));
  pointer-events: none;
}
.brand, .primary-nav, .header-social { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 18, 36, .75);
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .86);
  border-radius: 10px;
  background: rgba(13, 126, 207, .62);
  box-shadow: 0 10px 28px rgba(25, 172, 255, .34);
}
.primary-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(4, 23, 38, .5);
  backdrop-filter: blur(16px);
}
.primary-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.primary-nav a:hover { background: rgba(255, 255, 255, .15); }

.header-social { display: flex; gap: 6px; }
.header-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #eaf8ff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(4, 23, 38, .5);
  backdrop-filter: blur(16px);
  transition: transform .15s ease, background .15s ease;
}
.header-social a:hover { transform: translateY(-2px); background: rgba(13,126,207,.55); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 300vh;
  background:
    radial-gradient(circle at 50% 40%, rgba(103, 205, 255, .35), transparent 34%),
    linear-gradient(180deg, #02090f 0%, #0b2e49 34%, #0777b6 72%, #05283f 100%);
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}
.snow-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.aurora {
  position: absolute;
  inset: -12% -10% auto;
  z-index: 1;
  height: 46vh;
  background: linear-gradient(100deg, transparent 0%, rgba(47, 190, 255, .28) 28%, rgba(255, 255, 255, .14) 52%, transparent 76%);
  filter: blur(40px);
  transform: translateY(calc(var(--break) * -50px));
  opacity: .85;
}

/* Logo rig: intact word + flake, shatters into shards */
.logo-rig {
  position: absolute;
  z-index: 8;
  top: 46%;
  left: 50%;
  width: min(86vw, 760px);
  height: clamp(220px, 30vw, 320px);
  transform: translate(-50%, -50%) scale(calc(1 + var(--break) * .08));
  filter: drop-shadow(0 0 46px rgba(95, 202, 255, .7));
}
.logo-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* logo cracks early: visible then fades as shards fly */
  opacity: calc(1 - var(--break) * 2.4);
  transform: scale(calc(1 - var(--break) * .06));
}
.logo-flake {
  position: absolute;
  top: -6%;
  filter: drop-shadow(0 0 18px rgba(180, 240, 255, .9));
  animation: spin-flake 26s linear infinite;
}
@keyframes spin-flake { to { transform: rotate(360deg); } }
.logo-word {
  display: grid;
  place-items: center;
  margin-top: 56px;
}
.logo-word span {
  display: block;
  font-family: Bangers, Impact, fantasy;
  font-size: clamp(64px, 12vw, 150px);
  line-height: .74;
  color: #f7fdff;
  letter-spacing: .03em;
  text-transform: uppercase;
  -webkit-text-stroke: clamp(3px, .55vw, 7px) #07558f;
  text-shadow: 0 10px 0 #073d71, 0 16px 26px rgba(0, 19, 48, .65), 0 0 28px rgba(255, 255, 255, .95);
}

.shards { position: absolute; inset: 0; }
.shards span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(70px, 12vw, 130px);
  height: clamp(70px, 12vw, 130px);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.85), transparent 26%),
    linear-gradient(150deg, #bdeeff 0%, #1f93d8 48%, #0c67ac 100%);
  border: 2px solid rgba(223, 247, 255, .7);
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 14% 84%, 0 30%);
  /* shards only appear once the logo cracks */
  opacity: calc((var(--break) - .12) * 2.2);
  transform:
    translate(-50%, -50%)
    translate(var(--sx, 0), var(--sy, 0))
    rotate(calc(var(--break) * var(--sr, 200deg)))
    scale(calc(.4 + var(--break) * .9));
}
/* scatter directions — each shard flies somewhere unique */
.shards span:nth-child(1)  { --sx: calc(var(--break) * -52vw); --sy: calc(var(--break) * -30vh); --sr: 220deg; }
.shards span:nth-child(2)  { --sx: calc(var(--break) *  48vw); --sy: calc(var(--break) * -34vh); --sr: -260deg; }
.shards span:nth-child(3)  { --sx: calc(var(--break) * -60vw); --sy: calc(var(--break) *  26vh); --sr: 300deg; }
.shards span:nth-child(4)  { --sx: calc(var(--break) *  58vw); --sy: calc(var(--break) *  30vh); --sr: -210deg; }
.shards span:nth-child(5)  { --sx: calc(var(--break) * -34vw); --sy: calc(var(--break) * -46vh); --sr: 180deg; }
.shards span:nth-child(6)  { --sx: calc(var(--break) *  30vw); --sy: calc(var(--break) *  46vh); --sr: -320deg; }
.shards span:nth-child(7)  { --sx: calc(var(--break) * -70vw); --sy: calc(var(--break) *  -6vh); --sr: 260deg; }
.shards span:nth-child(8)  { --sx: calc(var(--break) *  72vw); --sy: calc(var(--break) *   4vh); --sr: -180deg; }
.shards span:nth-child(9)  { --sx: calc(var(--break) * -14vw); --sy: calc(var(--break) *  52vh); --sr: 340deg; }
.shards span:nth-child(10) { --sx: calc(var(--break) *  18vw); --sy: calc(var(--break) * -52vh); --sr: -300deg; }
.shards span:nth-child(11) { --sx: calc(var(--break) *  66vw); --sy: calc(var(--break) * -18vh); --sr: 230deg; }
.shards span:nth-child(12) { --sx: calc(var(--break) * -66vw); --sy: calc(var(--break) *  16vh); --sr: -240deg; }

/* Ship: starts tiny in the dead center, scales toward the viewer */
.hero-ship {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  width: min(1120px, 94vw);
  max-width: none;
  transform: translate(-50%, -50%) scale(calc(.12 + var(--break) * 1.05));
  filter: saturate(1.1) contrast(1.04) drop-shadow(0 40px 60px rgba(0, 18, 38, .6));
  opacity: calc((var(--break) - .28) * 2.6);
}

.hero-copy {
  position: absolute;
  z-index: 13;
  left: clamp(20px, 5vw, 72px);
  bottom: clamp(70px, 11vh, 120px);
  max-width: 560px;
  transform: translateY(calc((1 - var(--break)) * 40px));
  opacity: calc(var(--break) * 1.6 - .55);
}
.hero-copy h1 {
  font-size: clamp(52px, 8vw, 110px);
  line-height: .86;
  max-width: 9ch;
  text-shadow: 0 10px 24px rgba(0, 18, 38, .6);
}
.hero-sub {
  margin: 18px 0 0;
  max-width: 30ch;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  color: rgba(238, 250, 255, .92);
  text-shadow: 0 4px 16px rgba(0,16,30,.7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.scroll-cue {
  position: absolute;
  z-index: 14;
  left: 50%;
  bottom: 22px;
  display: grid;
  width: 30px;
  height: 50px;
  place-items: start center;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 999px;
  opacity: calc(1 - var(--break) * 2);
  transform: translateX(-50%);
}
.scroll-cue span {
  width: 5px; height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  background: #fff;
  animation: cue 1.4s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50% { transform: translateY(12px); opacity: 1; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }

/* ---------- Crew intro ---------- */
.crew-intro {
  padding: clamp(110px, 16vw, 200px) clamp(20px, 6vw, 80px) clamp(40px, 8vw, 90px);
  text-align: center;
  background: linear-gradient(180deg, #05283f, #071b2b);
}
.crew-intro h2 { font-size: clamp(44px, 7vw, 104px); line-height: .9; }
.lede {
  max-width: 56ch;
  margin: 22px auto 0;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  color: rgba(228, 245, 255, .8);
}

/* ---------- Character reveals ---------- */
.character {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(50px, 8vw, 96px) clamp(20px, 6vw, 80px);
}
.character:nth-child(even) .char-portrait { order: 2; }
.char-portrait {
  position: relative;
  aspect-ratio: 1;
  border-radius: 28px;
  background-image: url("assets/images/generated/crew-character-lineup.png");
  background-repeat: no-repeat;
  background-size: 360%;
  box-shadow: inset 0 0 0 3px rgba(190,238,255,.35), 0 30px 70px rgba(0,16,32,.5);
  overflow: hidden;
}
.char-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(3,18,32,.55));
}
/* crop each penguin out of the lineup */
.char-blue    .char-portrait { background-position: 12% 30%; }
.char-bubba   .char-portrait { background-position: 39% 36%; }
.char-goggles .char-portrait { background-position: 60% 34%; }
.char-zip     .char-portrait { background-position: 90% 28%; }

.char-role {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.char-info h3 { font-size: clamp(48px, 7vw, 92px); line-height: .9; }
.char-info p {
  max-width: 44ch;
  margin: 18px 0 0;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.5;
  color: rgba(232, 247, 255, .86);
}

/* ---------- Crew finale ---------- */
.crew-finale {
  position: relative;
  min-height: 90vh;
  display: grid;
  place-items: end center;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 72px);
  overflow: hidden;
}
.crew-finale > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crew-finale::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,15,26,.2), transparent 40%, rgba(2,10,18,.85));
}
.finale-copy { position: relative; z-index: 2; text-align: center; }
.finale-copy h2 { font-size: clamp(44px, 7vw, 100px); margin-bottom: 26px; text-shadow: 0 10px 28px rgba(0,13,26,.8); }

/* ---------- Feature sections ---------- */
.feature-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center start;
  padding: clamp(90px, 12vw, 150px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background: #071b2b;
}
.feature-section > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 15, 26, .85), transparent 58%),
    linear-gradient(180deg, rgba(2, 10, 18, .28), transparent 42%, rgba(2, 10, 18, .72));
}
.feature-copy { position: relative; z-index: 3; max-width: 620px; }
.feature-copy h2 { font-size: clamp(48px, 7vw, 96px); line-height: .9; text-shadow: 0 10px 28px rgba(0,13,26,.74); }
.feature-copy p {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.45;
  color: rgba(241, 250, 255, .86);
  text-shadow: 0 6px 18px rgba(0,13,26,.72);
}
.island-section { place-items: center end; text-align: right; }
.island-section::after {
  background:
    linear-gradient(270deg, rgba(3, 15, 26, .78), transparent 56%),
    linear-gradient(180deg, rgba(2, 10, 18, .25), transparent 42%, rgba(2, 10, 18, .72));
}
.island-section .feature-copy p { margin-left: auto; }

/* ---------- Store ---------- */
.store-section {
  padding: clamp(90px, 12vw, 160px) clamp(20px, 5vw, 72px) clamp(70px, 9vw, 120px);
  background: radial-gradient(circle at 50% 0%, #0b3a5c, #061b2a 60%);
  text-align: center;
}
.store-head h2 { font-size: clamp(44px, 7vw, 104px); }
.soon-badge {
  display: inline-block;
  margin-top: 20px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,191,56,.5);
  background: rgba(255,191,56,.12);
  color: var(--gold);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .04em;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
  max-width: 1160px;
  margin: clamp(40px, 6vw, 70px) auto 0;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(7, 30, 49, .7);
  box-shadow: 0 22px 44px rgba(0, 15, 30, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,18,40,.5); }
.product-card .thumb {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #0e4a72, #07263c);
}
.product-card .thumb svg { width: 100%; height: 100%; }
.product-meta { padding: 16px 18px 20px; text-align: left; }
.product-meta h4 {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.product-meta .price { margin: 4px 0 0; color: rgba(225,244,255,.66); font-size: 14px; font-weight: 700; }
.product-meta button {
  margin-top: 14px;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(230,245,255,.7);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  cursor: not-allowed;
}
.product-card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(4,23,38,.78);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.store-foot { margin-top: 40px; color: rgba(220,240,255,.66); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  gap: 28px;
  padding: clamp(50px, 7vw, 80px) clamp(20px, 5vw, 72px);
  background: #03131f;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { font-size: 18px; text-transform: uppercase; }
.footer-brand p { margin: 4px 0 0; color: rgba(214,236,250,.66); font-size: 14px; max-width: 40ch; }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #eaf8ff;
  font-weight: 800;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease;
}
.footer-social a:hover { transform: translateY(-2px); background: rgba(13,126,207,.45); }
.footer-legal { margin: 0; color: rgba(190,220,238,.5); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .brand-name { display: none; }
  .primary-nav { gap: 2px; }
  .primary-nav a { padding: 8px 10px; font-size: 12px; }
  .header-social a { width: 36px; height: 36px; }
  .character { grid-template-columns: 1fr; gap: 24px; }
  .character:nth-child(even) .char-portrait { order: 0; }
  .char-portrait { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .header-social { display: none; }
  .island-section { text-align: left; place-items: end start; }
  .island-section .feature-copy p { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-core, .shards span, .hero-ship, .hero-copy, .aurora { transform: none !important; opacity: 1 !important; }
  .shards { display: none; }
  .logo-flake { animation: none; }
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}
