/* ============ RHUMB STUDIO V3 ============ */
:root {
  --paper: #FAF7F2;
  --ink: #16140F;
  --night: #0E0D0B;
  --warm: #E85D2F;
  --warm-deep: #1E1712;
  --signal: #FF4D1C;
  --mute-l: #6B675F;      /* muted on light — AA contrast */
  --mute-d: rgba(250,247,242,0.78); /* muted on dark — AA contrast */
  --line-l: rgba(22,20,15,0.14);
  --line-d: rgba(250,247,242,0.18);
  --display: 'Space Grotesk', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;

  /* fluid scale — capped so 14" laptops never drown */
  --h-hero: clamp(2.6rem, 6.5vw + 0.5rem, 6.8rem);
  --h-1: clamp(2.2rem, 4.5vw + 0.5rem, 5rem);
  --h-ghost: clamp(6rem, 22vw, 22rem);
  --t-body: clamp(0.95rem, 0.35vw + 0.85rem, 1.1rem);
  --t-small: clamp(0.68rem, 0.2vw + 0.62rem, 0.78rem);
  --space-xl: clamp(6rem, 14vh, 12rem);
  --space-l: clamp(3.5rem, 8vh, 7rem);
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 1s cubic-bezier(0.4, 0, 0.2, 1), color 1s cubic-bezier(0.4, 0, 0.2, 1);
}
body.on-night { background: var(--night); color: var(--paper); }
body.on-warm { background: var(--warm); color: var(--ink); }
body.on-signal { background: var(--signal); color: var(--ink); }

::selection { background: var(--signal); color: var(--paper); }

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

.display { font-family: var(--display); font-weight: 600; line-height: 0.98; letter-spacing: -0.015em; }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.25px currentColor;
}
.up { text-transform: uppercase; }

/* ============ GRAIN + CURSOR (unchanged core) ============ */
.grain {
  position: fixed; inset: -100%;
  width: 300%; height: 300%;
  z-index: 9998; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-5%,-8%); }
  30% { transform: translate(3%,-12%); } 50% { transform: translate(-8%,4%); }
  70% { transform: translate(6%,8%); } 90% { transform: translate(-3%,3%); }
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: currentColor; }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid currentColor;
  opacity: 0.4;
  transition: width 0.45s, height 0.45s, opacity 0.45s, background-color 0.45s;
  display: flex; align-items: center; justify-content: center;
}
.cursor-ring .cursor-label {
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; opacity: 0; transition: opacity 0.35s;
}
.cursor-hover .cursor-ring {
  width: 78px; height: 78px; opacity: 1;
  background: var(--signal); border-color: var(--signal); color: var(--paper);
}
.cursor-hover .cursor-ring .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--night); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.preloader .stack { text-align: center; }
.preloader .word { overflow: hidden; }
.preloader .word span {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 5.5rem);
  display: inline-block; transform: translateY(115%);
  letter-spacing: 0.02em;
}
.preloader .counter {
  margin-top: 12px;
  font-size: var(--t-small); letter-spacing: 0.35em;
  color: var(--signal); font-variant-numeric: tabular-nums;
}

/* ============ TOPBAR + MENU ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(16px, 3vh, 32px) var(--pad-x);
  mix-blend-mode: difference; color: #fff;
}
.topbar .wordmark { font-family: var(--display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.06em; }
.topbar .menu-btn {
  background: none; border: none; color: inherit; cursor: pointer;
  font-family: var(--body); font-weight: 600;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
}
.topbar .menu-btn .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

.menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--night); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu.open { clip-path: inset(0 0 0% 0); }
.menu a.chapter {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 6.5vw, 4.6rem);
  line-height: 1.18; width: fit-content;
  display: flex; align-items: baseline; gap: 18px;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), color 0.4s;
}
.menu a.chapter:hover { transform: translateX(14px); color: var(--signal); }
.menu a.chapter .no { font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: 0.25em; color: var(--mute-d); }
.menu .menu-foot {
  position: absolute; bottom: 34px; left: var(--pad-x); right: var(--pad-x);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--mute-d);
}
.menu .menu-foot a { border-bottom: 1px solid transparent; transition: color 0.4s, border-color 0.4s; }
.menu .menu-foot a:hover { color: var(--signal); border-color: var(--signal); }
.menu-close {
  position: absolute; top: 24px; right: var(--pad-x);
  background: none; border: none; color: var(--paper); cursor: pointer;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 600; padding: 8px 0;
  transition: color 0.4s;
}
.menu-close:hover { color: var(--signal); }

/* WhatsApp pill */
.wa-pill {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  padding: 15px 24px; border-radius: 100px;
  background: var(--signal); color: var(--paper);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s;
  box-shadow: 0 4px 24px rgba(255, 77, 28, 0.35);
}
.wa-pill:hover { transform: scale(1.07) rotate(-2deg); }

/* ============ HERO ============ */
.hero { position: relative; height: 100svh; min-height: 540px; overflow: hidden; background: var(--night); }
.hero .media { position: absolute; inset: 0; transform: scale(1.1); }
.hero .media video, .hero .media img { width: 100%; height: 100%; object-fit: cover; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,13,11,0.82), rgba(14,13,11,0.15) 48%, rgba(14,13,11,0.3)); }
.hero .hero-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad-x) clamp(72px, 12vh, 130px);
  color: var(--paper);
}
.hero h1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: var(--h-hero); line-height: 0.96; letter-spacing: -0.01em;
  max-width: 100%;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(115%); }
.hero .sub {
  margin-top: clamp(16px, 2.5vh, 28px);
  font-size: clamp(0.85rem, 1vw, 1rem); font-weight: 500;
  color: var(--mute-d); max-width: 40ch; opacity: 0;
}
.hero .marquee { position: absolute; bottom: 0; left: 0; right: 0; }

/* Marquee */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line-d);
  padding: 12px 0;
  font-size: var(--t-small); letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600;
}
.marquee .inner { display: inline-block; animation: marquee 28s linear infinite; }
.marquee .inner span { margin: 0 18px; }
.marquee .inner .sig { color: var(--signal); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ STATEMENT (light, inline images) ============ */
.statement {
  padding: var(--space-xl) var(--pad-x);
  max-width: 1200px; margin: 0 auto;
}
.statement p.big {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw + 0.4rem, 4rem);
  line-height: 1.22; letter-spacing: -0.01em;
}
.statement .chip {
  display: inline-block; vertical-align: middle;
  width: clamp(64px, 8vw, 130px); height: clamp(40px, 5vw, 82px);
  border-radius: 100px; overflow: hidden;
  margin: 0 0.18em; transform: rotate(-3deg);
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.statement .chip:nth-of-type(2) { transform: rotate(2.5deg); }
.statement .chip img, .statement .chip video { width: 100%; height: 100%; object-fit: cover; }
.statement .chip:hover { transform: rotate(0deg) scale(1.5); }
.statement .kicker {
  margin-top: clamp(28px, 5vh, 48px);
  font-size: var(--t-small); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mute-l); font-weight: 600;
}

/* ============ TALK (night — podcast chapter) ============ */
.talk { position: relative; padding: var(--space-xl) 0 var(--space-l); }
.talk .ghost {
  position: absolute; top: clamp(8px, 2vh, 40px); left: 50%; transform: translateX(-50%);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: var(--h-ghost); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(250,247,242,0.16);
  pointer-events: none; white-space: nowrap;
}
.talk .head {
  position: relative; padding: 0 var(--pad-x);
  margin-top: clamp(3rem, 12vh, 9rem);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px;
}
.talk .head h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: var(--h-1); }
.talk .head h2 .sig { color: var(--signal); }
.talk .head p { max-width: 36ch; color: var(--mute-d); }
.talk .badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  border: 1.5px solid var(--signal); color: var(--signal);
  padding: 8px 16px; border-radius: 100px;
}
.talk .badge .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: blink 1.6s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.talk .feature {
  margin: clamp(2rem, 6vh, 4rem) var(--pad-x) 0;
  position: relative; overflow: hidden; border-radius: clamp(10px, 1.5vw, 22px);
  aspect-ratio: 16/9; max-height: 78vh;
}
.talk .feature video, .talk .feature img { width: 100%; height: 106%; object-fit: cover; }

.talk .pod-grid {
  display: grid; gap: clamp(10px, 1.5vw, 20px);
  grid-template-columns: repeat(12, 1fr);
  padding: clamp(2rem, 6vh, 4rem) var(--pad-x) 0;
}
.talk .pod-grid .cell { overflow: hidden; border-radius: clamp(8px, 1vw, 16px); position: relative; }
.talk .pod-grid .cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.22,1,0.36,1), filter 1.2s; }
.talk .pod-grid .cell:hover img { transform: scale(1.045); filter: saturate(1.12); }
.talk .pod-grid .cap {
  position: absolute; bottom: 12px; left: 14px;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--paper); text-shadow: 0 1px 10px rgba(0,0,0,0.55);
}
.talk .g1 { grid-column: span 5; aspect-ratio: 3/4; }
.talk .g2 { grid-column: span 7; aspect-ratio: 16/10; }
.talk .g3 { grid-column: span 7; aspect-ratio: 16/10; margin-top: -6vh; }
.talk .g4 { grid-column: span 5; aspect-ratio: 3/4; }
@media (max-width: 767px) {
  .talk .g1, .talk .g2, .talk .g3, .talk .g4 { grid-column: span 12; margin-top: 0; aspect-ratio: 4/3; }
}

/* ============ MAKE (warm — creation chapter) ============ */
.make { position: relative; padding: var(--space-xl) var(--pad-x); overflow: hidden; }
.make h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: var(--h-1); line-height: 1; position: relative; z-index: 2;
}
.make h2 .outline { -webkit-text-stroke-color: var(--ink); }
.make .intro { margin-top: 16px; max-width: 44ch; font-weight: 500; position: relative; z-index: 2; }
.make .board { position: relative; margin-top: clamp(2rem, 6vh, 4rem); min-height: 120vh; }
.make .card {
  position: absolute; overflow: hidden; border-radius: clamp(8px, 1vw, 16px);
  box-shadow: 0 18px 60px rgba(22,20,15,0.22);
  will-change: transform;
}
.make .card img, .make .card video { width: 100%; height: 100%; object-fit: cover; }
.make .card .tape {
  position: absolute; top: 10px; left: 10px;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  background: var(--ink); color: var(--paper);
  padding: 6px 12px; border-radius: 100px;
}
.make .m1 { width: min(44%, 480px); aspect-ratio: 16/10; left: 0; top: 0; transform: rotate(-2.5deg); }
.make .m2 { width: min(34%, 360px); aspect-ratio: 3/4; right: 4%; top: 8vh; transform: rotate(2deg); }
.make .m3 { width: min(38%, 420px); aspect-ratio: 16/10; left: 8%; top: 48vh; transform: rotate(1.5deg); }
.make .m4 { width: min(30%, 330px); aspect-ratio: 3/4; right: 14%; top: 62vh; transform: rotate(-2deg); }
.make .m5 { width: min(36%, 390px); aspect-ratio: 16/10; left: 30%; top: 92vh; transform: rotate(2.5deg); }
@media (max-width: 767px) {
  .make .board { min-height: unset; display: grid; gap: 16px; }
  .make .card { position: static; width: 100% !important; transform: none !important; }
}

/* ============ WALK (dark — horizontal gallery) ============ */
.walk { position: relative; overflow: hidden; background: var(--night); color: var(--paper); }
.walk .track {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 44px);
  padding: 0 8vw; height: 100svh; width: max-content; will-change: transform;
}
.walk .ghost {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: var(--h-ghost); white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(250,247,242,0.14);
  pointer-events: none; will-change: transform;
}
.walk .card { flex-shrink: 0; overflow: hidden; position: relative; border-radius: clamp(8px, 1vw, 16px); }
.walk .card img { height: 100%; width: 100%; object-fit: cover; will-change: transform; }
.walk .card.tall { width: min(32vw, 400px); height: 60vh; }
.walk .card.wide { width: min(54vw, 720px); height: 54vh; }
.walk .card .cap {
  position: absolute; bottom: 14px; left: 16px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* ============ FILM ============ */
.film { position: relative; height: 105svh; overflow: hidden; background: var(--night); }
.film .media { position: absolute; inset: 0; }
.film .media video, .film .media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); will-change: transform; }
.film .veil { position: absolute; inset: 0; background: rgba(14,13,11,0.5); }
.film .quote {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--paper); padding: 0 var(--pad-x);
}
.film .quote .big {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 4.2rem); line-height: 1.15; max-width: 20ch;
}
.film .quote .big .sig { color: var(--signal); }
.film .quote .who { margin-top: 26px; font-size: var(--t-small); letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: var(--mute-d); }

/* ============ SPACES (minimal list w/ hover preview) ============ */
.spaces { padding: var(--space-xl) var(--pad-x); position: relative; }
.spaces .eyebrow { font-size: var(--t-small); letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; color: var(--mute-l); margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.spaces .row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: clamp(1.6rem, 4vh, 3rem) 0;
  border-top: 1px solid var(--line-l);
  position: relative;
  transition: padding-left 0.6s cubic-bezier(0.22,1,0.36,1);
}
.spaces .row:last-of-type { border-bottom: 1px solid var(--line-l); }
.spaces .row:hover { padding-left: clamp(12px, 2vw, 28px); }
.spaces .row h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 4.5vw, 4rem); line-height: 1;
  transition: color 0.4s;
}
.spaces .row:hover h3 { color: var(--signal); }
.spaces .row .meta { text-align: right; font-size: 12px; color: var(--mute-l); font-weight: 500; letter-spacing: 0.05em; flex-shrink: 0; }
.spaces .preview {
  position: fixed; top: 0; left: 0;
  width: min(30vw, 380px); aspect-ratio: 4/3;
  border-radius: 14px; overflow: hidden;
  pointer-events: none; z-index: 80;
  opacity: 0; transform: translate(-50%, -50%) scale(0.9) rotate(-2deg);
  transition: opacity 0.35s, transform 0.35s;
  box-shadow: 0 24px 70px rgba(22,20,15,0.3);
}
.spaces .preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.spaces .preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .spaces .preview { display: none; } }
.spaces .note { margin-top: clamp(2rem, 5vh, 3rem); color: var(--mute-l); max-width: 52ch; }
.spaces .note a { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--signal); padding-bottom: 1px; transition: color 0.35s; }
.spaces .note a:hover { color: var(--signal); }

/* ============ INVITATION (signal) ============ */
.invite { position: relative; padding: var(--space-xl) var(--pad-x) 0; overflow: hidden; }
.invite h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 8rem); line-height: 0.95; letter-spacing: -0.01em;
}
.invite h2 .outline { -webkit-text-stroke-color: var(--ink); }
.invite .cta-row { margin-top: clamp(2.5rem, 6vh, 4rem); display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.invite .btn-big {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(0.9rem, 1.4vw, 1.2rem); letter-spacing: 0.06em;
  background: var(--ink); color: var(--paper);
  padding: clamp(20px, 3vh, 30px) clamp(32px, 4vw, 52px);
  border-radius: 100px;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), background 0.4s;
  will-change: transform;
}
.invite .btn-big:hover { background: var(--night); }
.invite .btn-big .arrow { transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.invite .btn-big:hover .arrow { transform: translateX(6px); }
.invite .coords { display: flex; flex-wrap: wrap; gap: 10px 32px; font-weight: 600; font-size: clamp(0.85rem, 1vw, 1rem); }
.invite .coords a { border-bottom: 2px solid rgba(22,20,15,0.35); padding-bottom: 2px; transition: border-color 0.35s; }
.invite .coords a:hover { border-color: var(--ink); }
.invite .foot {
  margin: clamp(4rem, 10vh, 7rem) calc(var(--pad-x) * -1) 0;
  border-top: 1.5px solid rgba(22,20,15,0.25);
}
.invite .foot .marquee { border-top: none; padding: 16px 0; font-weight: 700; }
.invite .legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 0 var(--pad-x) 22px;
  font-size: 11px; letter-spacing: 0.1em; font-weight: 500; color: rgba(22,20,15,0.65);
}

/* ============ REVEALS ============ */
.rv { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .marquee .inner { animation: none; }
  .rv { opacity: 1 !important; transform: none !important; }
  .hero h1 .line > span { transform: none; }
  .hero .sub { opacity: 1; }
}


/* ============ V3.1 POLISH ============ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
  border-radius: 4px;
}
.topbar .wordmark { transition: opacity 0.4s; }
.topbar .wordmark:hover { opacity: 0.7; }
.topbar .menu-btn { transition: opacity 0.4s; }
.topbar .menu-btn:hover { opacity: 0.7; }
.statement .chip:hover { transform: rotate(0deg) scale(1.35); }
.invite .legal { color: rgba(22,20,15,0.78); }
.walk .card .cap, .talk .pod-grid .cap { text-shadow: 0 1px 12px rgba(0,0,0,0.7); }
.talk .head p { color: rgba(250,247,242,0.82); }
.spaces .row .meta { color: #5F5B54; }
.marquee { will-change: transform; }
img { background: rgba(127,127,127,0.06); } /* graceful loading tone */
