/* ═══════════════════════════════════════════════════════════════════════════
   WIFOUT ($wifout) — styles
   Palette is sampled from the art: the fur is the brand. Tan on the void,
   one accent only. One page, two lines of copy, the address, and the art.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ink */
  --void:      #06060A;
  --void-deep: #040407;
  --surface:   #101017;
  --surface-2: #16161F;

  /* the fur */
  --tan:      #E4B173;
  --tan-hi:   #FFD9A0;
  --tan-deep: #8A6A38;

  /* the hat — sampled off assets/hat-poster.webp, not picked by eye: pink pixels
     separated from the beige wall and the gold fur by hue SHAPE (r-g well above
     g-b), then the middle 80% by brightness so the crown highlight and the deep
     folds do not skew it. 140547 pixels → #D89C88, contrast on --void 8.70:1. */
  --hat:    #D89C88;
  --hat-hi: #F0BFAC;

  /* type */
  --cream:     #FBF3E8;
  --cream-dim: #C9C3BB;
  --muted:     #9A9082;
  --faint:     #6E675C;

  --line:      rgba(251, 243, 232, 0.10);
  --line-tan:  rgba(228, 177, 115, 0.26);

  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pad: clamp(20px, 5vw, 56px);
}

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

html {
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain — texture, not a gradient */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

img, svg, canvas { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--tan-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 10px 16px;
  background: var(--tan);
  color: var(--void);
  font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── type scale ─────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
}
/* The one sentence on the page, in the hat's own colour, sized to be read as a
   statement rather than a caption — still clearly under the h1, which the suite
   asserts so the hierarchy cannot quietly invert. */
.lede {
  font-size: clamp(1.65rem, 3.8vw, 2.7rem);
  line-height: 1.2;
  font-weight: 500;
  color: var(--hat);
  max-width: 24ch;
  margin: 0 0 34px;
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--tan);
  color: #201607;
}
.btn-primary:hover { background: var(--tan-hi); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-tan);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--tan); color: var(--tan-hi); }
.btn-sm { padding: 10px 17px; font-size: 14px; }

/* no buy CTA is on the page by request — but the wiring is still live, and a
   buy element with no link configured has to look unbuyable rather than dead */
.btn[aria-disabled="true"] {
  background: transparent;
  border-color: var(--line);
  color: var(--faint);
  cursor: not-allowed;
  transform: none;
}
.btn[aria-disabled="true"]:hover {
  background: transparent;
  color: var(--faint);
  transform: none;
}

/* ── nav: the mark, and nothing else ────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(6, 6, 10, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.stuck { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-tan);
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

/* the CA pill — the address is the point of the page, so it gets its own shape */
.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px 9px 15px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  max-width: 100%;
}
.ca-label {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--tan);
}
.ca-value {
  font: 500 13px/1 var(--mono);
  color: var(--cream-dim);
  overflow-wrap: anywhere;
}
.ca-copy {
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid var(--line-tan);
  background: transparent;
  color: var(--tan);
  font: 600 12px/1 var(--sans);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.ca-copy:hover:not(:disabled) { background: var(--tan); color: #201607; }
.ca-copy:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── hero art ───────────────────────────────────────────────────────────── */
.art-stage {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.art-glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(228, 177, 115, 0.20), transparent 62%);
  filter: blur(28px);
}
.art-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
}
.ring-static { stroke: var(--line); stroke-width: 1; }
.ring-fine   { stroke: var(--line); stroke-width: 0.75; stroke-dasharray: 2 6; }
.ring-dash   { stroke: var(--line-tan); stroke-width: 1; stroke-dasharray: 3 14; }
@media (prefers-reduced-motion: no-preference) {
  .ring-spin {
    transform-origin: 200px 200px;
    animation: spin 60s linear infinite;
  }
}
@keyframes spin { to { transform: rotate(360deg); } }

.medallion { position: relative; width: 72%; display: block; }
.medallion-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  /* the photograph already sits in a black field — the ring just lands the disc */
  box-shadow: 0 0 0 1px var(--line-tan);
}

/* ── sections ───────────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 9vw, 110px) 0; }

/* ── the loop ───────────────────────────────────────────────────────────── */
.make-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.make-stage { position: relative; }
.loop-play {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.loop-play:hover { border-color: var(--line-tan); transform: translateY(-2px); }
.loop-play video { display: block; width: 100%; height: auto; }
.loop-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(6, 6, 10, 0.72);
  border: 1px solid var(--line-tan);
  backdrop-filter: blur(8px);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan);
  transition: opacity 0.3s var(--ease);
}
.loop-play.playing .loop-hint { opacity: 0; }
.make-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ── the flywheel line: the page ends here ──────────────────────────────── */
.flywheel {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 64px) 0;
}
.flywheel-line {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--cream-dim);
  text-wrap: pretty;
}

/* hodling → earning → buy pressure, in three columns */
.flywheel-steps {
  list-style: none;
  margin: clamp(30px, 4.5vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3.4vw, 44px);
}
.flywheel-steps li { border-top: 1px solid var(--line); padding-top: 18px; }
.step-num {
  display: block;
  margin-bottom: 12px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--tan);
}
.flywheel-steps h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}
.flywheel-steps p {
  margin: 0;
  font-size: 15px;
  color: var(--cream-dim);
}

/* ── toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 30;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--line-tan);
  color: var(--cream);
  font: 600 13px/1 var(--sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── reveal on scroll ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  [data-reveal].in { opacity: 1; transform: none; }
}

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .make-grid { grid-template-columns: 1fr; }
  .flywheel-steps { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .medallion { width: 62%; }
}
@media (max-width: 560px) {
  .ca-pill { width: 100%; }
}

/* ── reduced motion: everything is visible, nothing animates ───────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .ring-spin { animation: none !important; }
  .btn:hover, .loop-play:hover { transform: none; }
}
