:root {
  --ink: #231c16;
  --cream: #fff8ee;
  --muted: #6d6256;
  --coral: #d97757;
  --coral-dark: #b85a3c;
  --grass: #5ea334;
  --sky: #8ec8ea;
  --panel: rgba(255, 250, 242, 0.9);
  --shadow: 0 18px 40px rgba(35, 28, 22, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  color: var(--ink);
  font-family: Nunito, "Segoe UI", sans-serif;
  background: #6aa53f;
}

body.home { overflow-x: hidden; }

a { color: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.kicker {
  margin: 0 0 10px;
  color: var(--coral);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 rgba(35, 28, 22, 0.14);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.coral { background: var(--coral); color: #fff8ee; }
.btn.cream { background: var(--cream); color: var(--ink); }
.btn.ghost {
  background: rgba(255, 248, 238, 0.18);
  color: var(--cream);
  box-shadow: none;
  border: 1.5px solid rgba(255, 248, 238, 0.35);
}
.btn.xl { padding: 16px 26px; font-size: 18px; }

.topnav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.78);
  border: 1px solid rgba(35, 28, 22, 0.1);
  backdrop-filter: blur(16px);
  color: var(--ink);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.topnav.scrolled {
  background: rgba(255, 248, 238, 0.94);
  box-shadow: var(--shadow);
}
.topnav .btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(35, 28, 22, 0.16);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.topnav nav {
  display: flex;
  gap: 18px;
  margin-left: 8px;
}
.topnav nav a {
  text-decoration: none;
  font-weight: 800;
  opacity: 0.82;
}
.topnav nav a:hover { opacity: 1; }
.nav-actions { margin-left: auto; display: flex; gap: 8px; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  display: block;
  padding: 0;
  background:
    radial-gradient(ellipse 48% 36% at 72% 8%, #fff6c8 0%, transparent 55%),
    linear-gradient(180deg, #8ec8ea 0%, #f4c9a8 52%, #e8b888 100%);
}
.hero .btn.cream {
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 rgba(35, 28, 22, 0.2);
}
.hero-copy {
  position: absolute;
  left: 6vw;
  bottom: 9%;
  top: auto;
  z-index: 3;
  width: min(480px, 46vw);
  margin: 0;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(48px, 7.4vw, 92px);
  line-height: 0.82;
  letter-spacing: -0.055em;
}
.lede {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
}
.sub {
  margin: 0 0 22px;
  max-width: 420px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #3a3228;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; }

.chamber {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: auto;
  perspective: 1600px;
  perspective-origin: 62% 40%;
}
.chamber-inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
}
.chamber-floor {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 2%;
  height: 58%;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 248, 238, 0.3) 0 3px, transparent 3px 56px),
    repeating-linear-gradient(0deg, rgba(35, 28, 22, 0.1) 0 3px, transparent 3px 56px),
    radial-gradient(ellipse at 50% 38%, #97d85a 0%, #4f9228 72%);
  border: 3px solid rgba(255, 248, 238, 0.42);
  transform: rotateX(70deg) translateZ(-140px);
  transform-origin: center bottom;
  box-shadow:
    0 48px 56px rgba(35, 28, 22, 0.22),
    inset 0 0 50px rgba(35, 28, 22, 0.16);
}
.dim {
  position: absolute;
  bottom: 10%;
  height: auto;
  filter: drop-shadow(0 22px 16px rgba(35, 28, 22, 0.28));
  transform-style: preserve-3d;
  pointer-events: none;
  user-select: none;
}
.d1 {
  left: 18%;
  width: 14%;
  transform: translateZ(-320px) translateY(48px) rotateY(16deg);
  opacity: 0.72;
  animation: float-dim 5.2s ease-in-out infinite;
}
.d2 {
  left: 30%;
  width: 16%;
  transform: translateZ(-170px) translateY(18px) rotateY(8deg);
  animation: float-dim 4.4s ease-in-out infinite 0.4s;
}
.d3 {
  left: 50%;
  width: 28%;
  z-index: 5;
  transform: translateX(-50%) translateZ(130px);
  animation: float-dim 3.6s ease-in-out infinite 0.2s;
}
.d4 {
  left: 68%;
  width: 17%;
  transform: translateZ(-90px) translateY(12px) rotateY(-10deg);
  animation: float-dim 4.8s ease-in-out infinite 0.8s;
}
.d5 {
  left: 82%;
  width: 14%;
  transform: translateZ(-280px) translateY(42px) rotateY(-16deg);
  opacity: 0.8;
  animation: float-dim 5.6s ease-in-out infinite 1.1s;
}
@keyframes float-dim {
  50% { translate: 0 -14px; }
}

.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  opacity: 0.7;
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  50% { transform: translateY(6px); opacity: 1; }
}

.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  border-top: 1px solid rgba(255,248,238,0.08);
  border-bottom: 1px solid rgba(255,248,238,0.08);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 14px 0;
  font-weight: 800;
  animation: marquee 36s linear infinite;
}
.marquee-track span { white-space: nowrap; }
.marquee-track span::after {
  content: " · ";
  color: var(--coral);
  margin-left: 48px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

.hats {
  background: #1a1410;
  color: var(--cream);
  padding: 72px 0 28px;
  overflow: hidden;
}
.hats-head {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto 28px;
  text-align: center;
}
.hats-head .kicker { color: #f0b39a; }
.hats-head p:last-child { color: rgba(255, 248, 238, 0.72); }

.lookbook {
  position: relative;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 36px;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  background: #0f0b08;
}
.look-shot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 8s linear;
}
.look-shot.on {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.look-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.look-shot figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(26, 20, 16, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.runway {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 8px 0 32px;
}
.runway-fade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, #1a1410 0%, transparent 8%, transparent 92%, #1a1410 100%);
}
.track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding: 4px 0;
  animation: runway 48s linear infinite;
}
.track.reverse { animation: runway-rev 56s linear infinite; }
.track:hover { animation-play-state: paused; }
@keyframes runway {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes runway-rev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.hat-card {
  margin: 0;
  width: 210px;
  height: 250px;
  flex: 0 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: #fff4e6;
  position: relative;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transform: rotate(-1.2deg);
}
.hat-card:nth-child(even) { transform: rotate(1.4deg); }
.hat-card:nth-child(3n) { transform: rotate(-0.4deg); }
.hat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hat-card.cutout,
.hat-card.pixel {
  background:
    radial-gradient(circle at 50% 30%, #fff8ee, #f0d2b8);
}
.hat-card.cutout img,
.hat-card.pixel img {
  object-fit: contain;
  padding: 18px 14px 36px;
}
.hat-card.pixel img { image-rendering: pixelated; padding: 28px; }
.hat-card b {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff8ee;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.loop {
  padding: 88px 6vw 40px;
  background:
    linear-gradient(#b7d97a, #62a338);
}
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.hats-head h2,
.section-head h2,
.trough-copy h2,
.play-copy h2,
.token h2 {
  margin: 0 0 10px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hats-head p:last-child,
.section-head p:last-child,
.trough-copy p,
.play-copy p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2a241c;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border-radius: 28px;
  padding: 22px 22px 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.card h3 { margin: 8px 0 8px; font-size: 26px; }
.card p { margin: 0; font-weight: 700; color: var(--muted); }
.card-art {
  position: relative;
  height: 168px;
  display: grid;
  place-items: center;
}
.card-art.cutout {
  background: radial-gradient(circle at 50% 40%, #fff8ee, #e7c7a8);
  border-radius: 20px;
  overflow: hidden;
}
.card-art .tile {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 12px 12px rgba(0,0,0,0.2));
}
.card-art .sprout {
  position: absolute;
  width: 56px;
  bottom: 42px;
  animation: sway 2.2s ease-in-out infinite;
}
.hog-art { width: 150px; animation: idle 2.8s ease-in-out infinite; }
.trough-art { animation: trough-idle 3s ease-in-out infinite; }
@keyframes sway {
  50% { transform: rotate(6deg); }
}
@keyframes idle {
  50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes trough-idle {
  50% { transform: translateY(-4px); }
}

.trough-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 40px 6vw 80px;
  background: linear-gradient(#62a338, #4e8c2c);
}
.trough-shot {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.trough-shot img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: 50% 30%;
}
.trough-copy { color: var(--ink); }
.trough-copy .kicker { color: #fff3c4; }
.trough-copy p { margin-bottom: 22px; color: #243018; }
.trough-copy .btn { margin-top: 6px; }

.play {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 6vw;
  background:
    #4a2a1c
    linear-gradient(180deg, #3d2418, #2a1810);
  color: var(--cream);
}
.play-copy .kicker { color: #f0b39a; }
.play-copy p { color: rgba(255,248,238,0.78); margin-bottom: 24px; }
.play-window {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
  transform: rotate(1.2deg);
  transition: transform 0.25s ease;
}
.play-window:hover { transform: rotate(0deg) scale(1.02); }
.play-window img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.play-pill {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: var(--coral);
  color: #fff8ee;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
}

.token {
  padding: 88px 6vw 64px;
  text-align: center;
  background: #fff4e6;
}
.token h2 { color: var(--ink); }
.token-lede {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--muted);
}
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  width: min(1080px, 100%);
  margin: 0 auto 36px;
  text-align: left;
}
.token-card {
  background: #fff;
  border-radius: 28px;
  padding: 24px 24px 26px;
  box-shadow: var(--shadow);
}
.token-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.token-card p {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.45;
}
.token-card .kicker { margin-bottom: 8px; }
.ca-box {
  margin: 28px auto 22px;
  width: min(820px, 100%);
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 12px 12px 12px 18px;
  box-shadow: var(--shadow);
}
.ca-box code {
  flex: 1;
  text-align: left;
  font-size: clamp(12px, 2vw, 16px);
  word-break: break-all;
  font-weight: 700;
}
.token-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 18px;
}
.token-links a {
  color: var(--coral-dark);
  font-weight: 800;
}
.disclaimer {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-weight: 700;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 6vw;
  background: var(--ink);
  color: var(--cream);
}
.foot .nav-brand img { width: 36px; height: 36px; }
.foot p { margin: 0; font-weight: 700; opacity: 0.75; }

.toasts {
  position: fixed;
  right: 16px;
  top: 16px;
  display: grid;
  gap: 8px;
  z-index: 50;
  pointer-events: none;
}
.toast {
  background: var(--cream);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 14px;
  font-weight: 800;
}

@media (min-width: 981px) {
  .hero-copy {
    top: 50%;
    bottom: auto;
    transform: translateY(-42%);
    width: min(480px, 36vw);
  }
  .dim { bottom: 11%; }
  .d1 { left: 36%; width: 12%; }
  .d2 { left: 46%; width: 14%; }
  .d3 { left: 63%; width: 22%; }
  .d4 { left: 78%; width: 15%; }
  .d5 { left: 89%; width: 12%; }
  .chamber-floor { left: 30%; right: 0; }
}

@media (max-width: 980px) {
  .cards,
  .trough-band,
  .play,
  .token-grid { grid-template-columns: 1fr; }
  .hero { min-height: 100svh; }
  .hero-copy {
    width: min(520px, calc(100% - 12vw));
    bottom: 24px;
  }
  .dim { bottom: 44%; }
  .d3 { width: 46%; }
  .chamber-floor { bottom: 28%; height: 46%; }
  .hero-copy { bottom: 20px; }
}

@media (max-width: 720px) {
  .lookbook { aspect-ratio: 4 / 5; }
  .hat-card { width: 168px; height: 200px; }
  .hats-head { margin-bottom: 20px; }
  .topnav nav,
  .topnav .btn.ghost { display: none; }
  .nav-brand span { display: none; }
  .topnav { padding: 8px 8px 8px 10px; }
  .hero-copy h1 { font-size: 44px; }
  .lede { margin-bottom: 12px; font-size: 18px; }
  .btn.xl { padding: 12px 16px; font-size: 15px; }
  .scroll-cue { display: none; }
  .cards,
  .trough-band,
  .play,
  .token-grid { grid-template-columns: 1fr; }
  .trough-shot { transform: none; }
  .trough-shot img,
  .play-window img { height: 280px; }
  .play-window { transform: none; }
  .foot { flex-direction: column; text-align: center; }
}

@media (max-height: 720px) {
  .hero-copy h1 { font-size: clamp(40px, 10vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .sun, .marquee-track, .sprout, .hog-art, .trough-art, .scroll-cue,
  .track, .track.reverse, .look-shot, .dim { animation: none; }
  .look-shot { opacity: 1; transform: none; position: relative; }
  .look-shot + .look-shot { display: none; }
  .track:hover { animation-play-state: running; }
  .runway { overflow-x: auto; }
  .track { width: max-content; }
}
