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

:root {
  --bg: #f3efe6;
  --paper: #faf8f3;
  --ink: #1b1916;
  --mute: #6b655c;
  --line: #d8d1c4;
  --eye: #6a93ab;
  --deep: #12110f;
  --cream: #f7f3ea;
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--eye);
  margin-bottom: 0.7rem;
}

.eyebrow.light { color: #c5d6e0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.35rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.74rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-fill {
  background: var(--cream);
  color: var(--ink);
}

.btn-fill:hover { background: #fff; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-ghost.dark {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost.dark:hover { background: var(--ink); color: var(--cream); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-lg { padding: 1.05rem 1.6rem; }
button.btn { font: inherit; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, 90vw);
  margin: 0 auto;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
}

.nav-links a:hover { color: var(--eye); }

.nav-socials {
  display: flex;
  gap: 0.85rem;
  margin-left: 0.4rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.nav-socials a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

/* Hero — generated still, not the banner */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 5.5rem;
  color: #f7f3ea;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 14, 0.72) 0%, rgba(18, 16, 14, 0.28) 46%, rgba(18, 16, 14, 0.08) 100%),
    linear-gradient(180deg, rgba(18, 16, 14, 0.18) 0%, transparent 28%, rgba(18, 16, 14, 0.45) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, 90vw);
  margin: 0 auto;
  max-width: 34rem;
}

.hero-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: #d7e4ec;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(5rem, 13vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.manifesto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.4;
  max-width: 22em;
  color: #efe8da;
  margin: 1.1rem 0 1.6rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.2rem;
  margin-bottom: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(247, 243, 234, 0.22);
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.hero-stats span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8c0b3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Story */
.story {
  padding: 6rem 0 5rem;
  background: var(--bg);
}

.story-head {
  max-width: 16em;
  margin-bottom: 2.8rem;
}

.story-head h2,
.stage-title,
.laundry-head h2,
.about-copy h2,
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
}

.tide-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.tide-path li {
  padding: 1.5rem 1.3rem 1.6rem 0;
  border-right: 1px solid var(--line);
  margin-right: 1.3rem;
}

.tide-path li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.tide-mark {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--eye);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.tide-path h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.tide-path p { color: var(--mute); font-size: 0.94rem; }

/* Record stage */
.stage {
  padding: 6rem 0 5.5rem;
  background: var(--deep);
  color: var(--cream);
}

.stage-title { max-width: 12em; margin-bottom: 1.2rem; }

.stage-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.15rem);
  line-height: 1.3;
  max-width: 20em;
  color: #e8f0f5;
  margin: 0 0 2.6rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--eye);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.spotlight {
  background: var(--paper);
  color: var(--ink);
  padding: 1.15rem;
}

.spotlight-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.85rem;
}

.spotlight-meta a {
  color: var(--eye);
  font-weight: 700;
  text-decoration: none;
}

.spotlight-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.spotlight-avatar,
.gwr-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.gwr-seal {
  display: grid;
  place-items: center;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.72rem;
}

.spotlight-user strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.spotlight-user span { display: block; font-size: 0.76rem; color: var(--mute); }

.embed-shell,
.live-frame {
  overflow: hidden;
  background: #111;
}

.ig-shell {
  position: relative;
  min-height: 520px;
  background: #fafafa;
}

.ig-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
  background: #fff;
}

.ig-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  text-align: center;
}

.ig-fallback img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.ig-fallback-stat { color: var(--mute); font-size: 0.86rem; }

.ig-fallback a {
  color: #fff;
  background: #1b1916;
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.gwr-plaque {
  text-align: center;
  padding: 1.4rem 1rem 1.2rem;
  margin-bottom: 0.8rem;
  background: #191714;
  color: var(--cream);
}

.gwr-who {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: #c5d6e0;
}

.gwr-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1;
  margin: 0.25rem 0 0.1rem;
}

.gwr-unit {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  opacity: 0.65;
  margin-bottom: 0.75rem;
}

.gwr-copy {
  max-width: 38em;
  margin: 0 auto;
  font-size: 0.88rem;
  color: #c8c0b3;
}

.live-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  background: #2a2723;
  color: #9a9388;
  font-size: 0.66rem;
}

.live-chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5b89a;
}

.live-chrome i:first-child { background: #b9a48a; }
.live-chrome i:last-of-type { background: #8aa3b0; }

.live-chrome span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gwr-frame {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
  background: #fff;
}

.spotlight-note {
  margin-top: 0.8rem;
  font-size: 0.84rem;
  color: var(--mute);
}

.spotlight-note a { color: var(--eye); }

/* Clothesline */
.laundry {
  padding: 5.5rem 0 2.5rem;
  background: linear-gradient(180deg, #e7eef2 0%, var(--bg) 72%);
  overflow: hidden;
}

.laundry-head {
  text-align: center;
  margin-bottom: 2.4rem;
}

.laundry-lede {
  max-width: 34em;
  margin: 0.7rem auto 0;
  color: var(--mute);
}

.line-yard {
  position: relative;
  padding: 1.2rem 2vw 5rem;
}

.clothes-rope {
  display: block;
  width: 100%;
  height: 40px;
}

.clothes-rope path {
  fill: none;
  stroke: #6a5846;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.laundry-row {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: -20px;
  padding: 0 1vw;
}

.hang {
  position: relative;
  margin: 0;
  background: #fff;
  padding: 8px 8px 22px;
  box-shadow: 0 10px 24px rgba(27, 25, 22, 0.12);
  transform-origin: 50% 0;
}

.hang img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eee;
}

.peg {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 14px;
  height: 30px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #c4a06a 0 46%, #8a6840 46% 54%, #d2b07a 54%);
  z-index: 2;
}

.peg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #c5c8cb;
}

.hang-a { width: min(16vw, 168px); animation: sway-a 3.8s ease-in-out infinite; }
.hang-b { width: min(19vw, 200px); margin-top: 18px; animation: sway-b 4.2s ease-in-out infinite; }
.hang-c { width: min(15vw, 156px); margin-top: 6px; animation: sway-c 3.5s ease-in-out infinite; }
.hang-d { width: min(20vw, 214px); margin-top: 22px; animation: sway-d 4.6s ease-in-out infinite; }
.hang-e { width: min(16.5vw, 174px); margin-top: 4px; animation: sway-e 3.9s ease-in-out infinite; }
.hang-f { width: min(17.5vw, 186px); margin-top: 16px; animation: sway-f 4.3s ease-in-out infinite; }

/* About */
.about {
  padding: 2rem 0 5.5rem;
  background: var(--bg);
}

.about-board {
  width: min(1120px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-polaroid {
  margin: 0;
  background: #fff;
  padding: 12px 12px 40px;
  box-shadow: 0 18px 40px rgba(27, 25, 22, 0.1);
}

.about-polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 22%;
}

.about-copy p {
  color: var(--mute);
  margin-bottom: 1rem;
  font-size: 1.04rem;
}

.about-copy strong { color: var(--ink); }

.about-facts {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.about-facts li {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.about-facts span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eye);
  padding-top: 0.25rem;
}

/* Token / buy */
.section { padding: 5rem 0; }

.section.paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section.ink {
  background: var(--deep);
  color: var(--cream);
}

.section-head { margin-bottom: 1.4rem; }

.section-lede {
  color: var(--mute);
  margin: -0.3rem 0 1.8rem;
  max-width: 36em;
}

.ca-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
}

.ca-kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: var(--eye);
  font-weight: 700;
}

.ca-address {
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  word-break: break-all;
}

.copy-toast {
  min-height: 1.4rem;
  margin-top: 0.7rem;
  color: var(--eye);
  opacity: 0;
  transition: opacity 0.25s;
}

.copy-toast.show { opacity: 1; }

.token-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.token-board article {
  padding: 1.7rem 1.25rem;
  background: var(--paper);
}

.token-board article:first-child {
  background: var(--deep);
  color: var(--cream);
}

.token-board article:first-child .token-value,
.token-board article:first-child p { color: var(--cream); }

.token-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--ink);
}

.token-board h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0.45rem 0 0.25rem;
}

.token-board p { color: var(--mute); font-size: 0.9rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.steps li {
  padding: 0;
  border-top: 1px solid rgba(247, 243, 234, 0.16);
  padding-top: 1.1rem;
}

.steps span {
  display: block;
  font-family: var(--font-display);
  color: #c5d6e0;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.steps p { color: #b4ada2; font-size: 0.92rem; }

.buy-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer {
  padding: 2.6rem 0 3rem;
  background: #0d0c0b;
  color: var(--cream);
  border-top: 1px solid #2a2723;
}

.footer-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}

.footer-inner strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 1.15rem;
}

.footer-inner span,
.footer-disclaimer {
  color: #9a9388;
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.footer-links a {
  color: #c5d6e0;
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-disclaimer { max-width: 42em; }

.reveal {
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes sway-a {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(-2deg); }
}

@keyframes sway-b {
  0%, 100% { transform: rotate(4deg); }
  50% { transform: rotate(8deg); }
}

@keyframes sway-c {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(2deg); }
}

@keyframes sway-d {
  0%, 100% { transform: rotate(5deg); }
  50% { transform: rotate(1deg); }
}

@keyframes sway-e {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(-8deg); }
}

@keyframes sway-f {
  0%, 100% { transform: rotate(3deg); }
  50% { transform: rotate(7deg); }
}

@media (max-width: 980px) {
  .tide-path,
  .spotlight-grid,
  .token-board,
  .steps,
  .ca-box,
  .about-board {
    grid-template-columns: 1fr;
  }

  .tide-path li,
  .tide-path li:last-child {
    border-right: 0;
    margin-right: 0;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--line);
  }

  .laundry-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem 0.8rem;
    margin-top: 0.4rem;
  }

  .hang-a, .hang-b, .hang-c, .hang-d, .hang-e, .hang-f {
    width: 100%;
    margin-top: 0;
  }

  .hero-photo { object-position: 62% 38%; }
  .about-board { gap: 2rem; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0 0.8rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { display: block; padding: 0.75rem 6vw; }
  .nav-socials { margin: 0; padding: 0.55rem 6vw; border: 0; }
  .nav-toggle { display: flex; }

  .laundry-row { grid-template-columns: 1fr 1fr; }
  .gwr-frame { height: 300px; }
  .ig-shell, .ig-frame { min-height: 440px; height: 440px; }
  .hero { padding: 7rem 0 3.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hang,
  .reveal {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
