@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --pond: #00b33c;
  --pond-deep: #009b34;
  --ink: #0f1e14;
  --ink-soft: #4a5a4f;
  --duck: #ffc52e;
  --sky: #cfe9ff;
  --paper: #ffffff;
  --stage: #f1f4ef;
  --line: #e2e7df;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-pop: cubic-bezier(0.34, 1.4, 0.64, 1);

  --rail: 32px;
  --max: 1280px;
  --nav-h: 64px;
  --radius-card: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--duck);
  outline-offset: 3px;
  border-radius: 12px;
}

/* the white wordmark file is used as a mask, so the logo takes any colour */
.logo {
  display: block;
  height: 22px;
  aspect-ratio: 884 / 296;
  background: currentColor;
  -webkit-mask: url("assets/ente-logo.svg") center / contain no-repeat;
  mask: url("assets/ente-logo.svg") center / contain no-repeat;
}

/* page tints: fixed colour layers that fade in while a band holds the screen */
.tint { position: fixed; inset: 0; z-index: 0; opacity: 0; pointer-events: none; }
.bar, main, .foot { position: relative; z-index: 1; }

/* ---------- top bar + nav ---------- */
.bar {
  background: var(--pond);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px var(--rail);
}
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--rail);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--stage);
  border-radius: 999px;
  padding: 4px 12px;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}
.nav-links .bag { background: var(--ink); color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--pond); }
.btn-light { background: #fff; color: var(--ink); }
.btn-small { height: 40px; padding: 0 16px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #22332a; }
  .btn-primary:hover { background: var(--pond-deep); }
  .btn-light:hover { background: var(--stage); }
  .nav-links a:not(.bag):hover { background: var(--stage); }
}

/* ---------- headlines rise out of their own row ---------- */
.line {
  display: block;
  overflow: clip;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.line > span {
  display: block;
  translate: 0 110%;
  transition: translate 1000ms var(--ease-out);
  transition-delay: calc(var(--l, 0) * 90ms + 60ms);
}
[data-lines].in .line > span { translate: 0 0; }

/* ---------- hero: a sticky runway with draggable stickers ---------- */
.hero { position: relative; height: 140vh; --p: 0; }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: clip;
}
.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--nav-h) var(--rail) 0;
  transform: translateY(calc(var(--p) * -48px)) scale(calc(1 - var(--p) * 0.08));
  opacity: calc(1 - var(--p) * 1.6);
  pointer-events: none;
}
.hero-copy .btn { pointer-events: auto; }
.hero-title {
  font-size: clamp(56px, 10.5vw, 164px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero-title .duckline { color: var(--pond); }
.hero-sub {
  margin: 24px auto 32px;
  max-width: 34ch;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-soft);
}

.stickers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sticker {
  --dx: 0px;
  --dy: 0px;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  translate: calc(-50% + var(--dx) + var(--ox) * var(--p) * var(--depth))
             calc(-50% + var(--dy) + var(--oy) * var(--p) * var(--depth));
  rotate: calc(var(--r) + var(--p) * var(--depth) * 14deg);
  animation: stick-in 900ms var(--ease-pop) backwards;
  animation-delay: calc(var(--i) * 70ms + 250ms);
  transition: scale 220ms var(--ease-out);
}
.sticker-bob {
  display: block;
  animation: bob var(--bob, 6s) ease-in-out infinite alternate;
}
.sticker img {
  width: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 1px 1px rgba(15, 30, 20, 0.18)) drop-shadow(0 14px 20px rgba(15, 30, 20, 0.2));
}
.sticker.held { cursor: grabbing; scale: 1.06; z-index: 5; }
.sticker.held .sticker-bob { animation-play-state: paused; }
@keyframes stick-in {
  from { opacity: 0; scale: 0.5; }
  to { opacity: 1; scale: 1; }
}
@keyframes bob {
  from { transform: translateY(-4px) rotate(-1.5deg); }
  to { transform: translateY(5px) rotate(1.5deg); }
}

/* ---------- product rhythm ---------- */
.shop { padding: 48px 0 0; }
.shop-head {
  max-width: var(--max);
  margin: 0 auto 32px;
  padding: 0 var(--rail);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.shop-head h2 {
  text-wrap: balance;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
}
.shop-head p { color: var(--ink-soft); max-width: 36ch; }

.pair {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--rail);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card { display: flex; flex-direction: column; }
.card-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: var(--stage);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.card-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 500ms var(--ease-out);
}
/* studio shots on white: let the stage colour show through */
.card-stage.cutout img {
  object-fit: contain;
  padding: 6%;
  mix-blend-mode: multiply;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px 0;
}
.card-text { display: flex; flex-direction: column; gap: 2px; }
.card-text h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.25; }
.price { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink-soft); font-size: 16px; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-stage img { scale: 1.02; }
}

/* ---------- bands: sticky scenes that tint the whole page ---------- */
.band {
  --p: 0;
  --show: 0;
  position: relative;
  height: 300vh;
}
.band-sky { height: 240vh; }
.band-stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--rail);
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: center;
  gap: 48px;
}
.band-copy {
  max-width: 540px;
  opacity: var(--show);
  translate: 0 calc((1 - var(--show)) * 28px);
}
.band-peel .band-copy { color: #fff; }
.eyebrow {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 16px;
}
.band h2 {
  text-wrap: balance;
  font-size: clamp(44px, 5.4vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.band-copy > p:not(.eyebrow) { margin-top: 24px; font-size: 19px; opacity: 0.92; }
.band-cta { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.band .price { color: inherit; opacity: 0.9; font-size: 18px; }
.band-art {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  opacity: var(--show);
}

/* the sticker sheet: each sticker lifts, leaves its empty slot, then flies out */
.sheet-wrap {
  --kx: 1;
  --ky: 1;
  position: relative;
  width: min(580px, 100%);
  aspect-ratio: 1.494;
  rotate: calc((0.5 - var(--p)) * 5deg);
}
.sheet {
  position: absolute;
  inset: 0;
  background: #f4f4f1;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 40px 70px -30px rgba(0, 50, 18, 0.55);
}
.peel-item {
  --lift: 0;
  --fly: 0;
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w);
  aspect-ratio: var(--ar);
}
.peel-slot {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 20, 0.09);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
  opacity: min(1, calc(var(--lift) * 1.5));
}
.peel-sticker {
  position: absolute;
  inset: 0;
  translate: calc(var(--tx) * var(--fly) * var(--kx))
             calc(var(--ty) * var(--fly) * var(--ky) - var(--lift) * 14px);
  rotate: calc(var(--tr) * var(--fly) - var(--lift) * (1 - var(--fly)) * 5deg);
  scale: calc(1 + var(--lift) * 0.06 + var(--fly) * (var(--ts) - 1));
}
.peel-shadow {
  position: absolute;
  inset: 6%;
  background: rgba(0, 40, 14, 0.55);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
  filter: blur(14px);
  opacity: calc(var(--lift) * 0.8);
  translate: 0 calc(10px + var(--lift) * 16px);
}
.peel-sticker img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: perspective(800px) rotateX(calc(var(--lift) * (1 - var(--fly)) * 24deg));
  transform-origin: 50% 8%;
  filter: drop-shadow(0 1px 1px rgba(15, 30, 20, 0.2));
}

/* the mug hangs from a rope and swings on a spring (see app.js) */
.band-sky .band-art { place-items: stretch; }
.cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  translate: calc(var(--p) * var(--drift)) 0;
}
.cloud.c1 { width: 340px; height: 120px; left: -8%; top: 60%; --drift: -140px; }
.cloud.c2 { width: 260px; height: 90px; right: -4%; top: 24%; --drift: -220px; }
.cloud.c3 { width: 420px; height: 140px; right: 12%; bottom: 2%; --drift: -90px; }
.mug-rig {
  --swing: 0deg;
  position: absolute;
  top: 0;
  left: 50%;
  width: min(360px, 62%);
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  translate: -50% calc((1 - var(--show)) * -30%);
  rotate: var(--swing);
  transform-origin: 50% 0;
}
.rope {
  flex: 1;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #a27a47, #d9b27a 45%, #a27a47);
}
.mug {
  width: 100%;
  aspect-ratio: 550 / 605;
  margin-top: -2px;
  translate: -29.17% 0;
  filter: drop-shadow(0 30px 40px rgba(15, 50, 80, 0.25));
}

/* ---------- the duck: placeholder for the Rive mascot ---------- */
.duck-buddy {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 92px;
  pointer-events: none;
  animation: duck-in 800ms var(--ease-pop) 900ms backwards;
}
.duck-buddy img {
  width: 100%;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 10px 16px rgba(15, 30, 20, 0.25));
}
.duck-buddy { transition: opacity 300ms ease, scale 300ms var(--ease-out); }
.duck-buddy.away { opacity: 0; scale: 0.8; }
.duck-buddy.wave img { animation: duck-wave 1100ms var(--ease-out); }
.duck-buddy.cheer img { animation: duck-cheer 700ms var(--ease-pop); }
@keyframes duck-in {
  from { opacity: 0; translate: 0 120%; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes duck-wave {
  0% { rotate: 0deg; }
  20% { rotate: -12deg; }
  45% { rotate: 10deg; }
  70% { rotate: -6deg; }
  100% { rotate: 0deg; }
}
@keyframes duck-cheer {
  0% { translate: 0 0; scale: 1; }
  35% { translate: 0 -28px; scale: 1.08; }
  62% { translate: 0 0; scale: 1.1 0.9; }
  100% { translate: 0 0; scale: 1; }
}

/* ---------- footer ---------- */
.foot {
  margin-top: 96px;
  background: var(--ink);
  color: #fff;
  padding: 96px var(--rail) 48px;
}
.foot-inner { max-width: var(--max); margin: 0 auto; }
.foot-logo { display: block; color: var(--pond); }
.foot-logo .logo { width: min(720px, 100%); height: auto; }
.foot-row {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}
.foot-row nav { display: flex; flex-wrap: wrap; gap: 24px; }
@media (hover: hover) and (pointer: fine) {
  .foot-row a:hover { color: #fff; }
}

/* ---------- reveals ---------- */
[data-reveal] {
  opacity: 0;
  translate: 0 32px;
  transition: opacity 700ms var(--ease-out), translate 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  :root { --rail: 16px; --radius-card: 24px; }
  .hero { height: 130vh; }
  .sticker { width: calc(var(--size) * 0.6); }
  .shop-head { flex-direction: column; align-items: start; }
  .pair { grid-template-columns: 1fr; gap: 32px; }
  .band { height: 260vh; }
  .band-sky { height: 210vh; }
  .band-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    gap: 16px;
    padding-top: 32px;
    padding-bottom: 24px;
  }
  .band h2 { font-size: 40px; }
  .band-copy > p:not(.eyebrow) { font-size: 17px; margin-top: 12px; }
  .band-cta { margin-top: 16px; }
  .sheet-wrap { --kx: 0.2; --ky: 0.62; width: 84%; }
  .mug-rig { width: 46%; height: 96%; }
  .nav-links a:not(.bag) { display: none; }
  .duck-buddy { width: 64px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticker,
  .sticker-bob,
  .duck-buddy { animation: none; }
  .line > span { translate: none; transition: none; }
  [data-reveal] { translate: none; transition: opacity 400ms ease; }
}
