/* RED. — private social club, Hyderabad */
:root {
  --red: #e10600;
  --bg: #f6f3ee;
  --bg-2: #efeae2;
  --ink: #141211;
  --ink-2: #5d5750;
  --line: rgba(20, 18, 17, 0.14);
  --card: #ffffff;
  --serif: "Fraunces", "Cooper Black", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
}
:root[data-theme="dark"] {
  --bg: #0b0a0a;
  --bg-2: #131110;
  --ink: #f3efe8;
  --ink-2: #a39c92;
  --line: rgba(243, 239, 232, 0.16);
  --card: #151312;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ink { fill: var(--red); }

.label {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.label b { color: var(--red); font-weight: 500; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
em { font-style: italic; }

/* ---------- intro ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: none;
}
.has-intro #intro { display: block; }
#intro svg { width: 100%; height: 100%; display: block; }
#intro-skip {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- header ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: block; width: 92px; }
.logo svg { display: block; width: 100%; height: auto; }
.nav { display: flex; gap: 36px; }
.nav a { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--ink-2); transition: color 0.25s; }
.nav a:hover { color: var(--ink); }
.head-right { display: flex; align-items: center; gap: 14px; }
.theme-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color 0.25s;
}
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 16px; height: 16px; stroke: var(--ink); fill: none; stroke-width: 1.5; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--ink); color: var(--bg); }
.btn-line { border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 18px; }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 90px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.25rem, 8.2vw, 8rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 28px 0 32px;
}
.hero h1 em { color: var(--red); }
.hero p.lede { max-width: 27.5rem; color: var(--ink-2); font-size: 1.062rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  display: flex; gap: 40px; margin-top: 64px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-meta div span { display: block; }
.hero-meta .v { font-family: var(--serif); font-size: 1.625rem; line-height: 1.1; }
.hero-art { position: relative; }
.hero-art .frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
}
.hero-art .inset {
  position: absolute;
  left: -14%;
  bottom: 9%;
  width: 38%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 6px solid var(--bg);
  border-radius: 2px;
  transition: border-color 0.5s ease;
}
.hero-art .arc {
  position: absolute;
  right: -22%; top: -14%;
  width: 70%; aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}
.spark { position: absolute; width: 18px; height: 18px; fill: var(--red); pointer-events: none; }
.hero-art .spark.s1 { right: -9px; top: 22%; }
.hero-art .spark.s2 { left: 30%; top: -9px; width: 12px; height: 12px; }
.hero-quote {
  position: absolute;
  right: 0; bottom: -44px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 20px 0;
  margin-top: 40px;
}
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  white-space: nowrap;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 52px;
}
.ticker span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(84px, 11vw, 168px) 0; }
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px;
  margin-bottom: clamp(44px, 6vw, 88px);
}
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.375rem, 5.2vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.sec-head h2 em { color: var(--red); }
.sec-head p { color: var(--ink-2); max-width: 46ch; margin-top: 22px; }

/* idea */
.idea { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.idea article { padding: 36px 36px 8px 0; border-right: 1px solid var(--line); }
.idea article + article { padding-left: 36px; }
.idea article:last-child { border-right: 0; padding-right: 0; }
.idea .num { font-family: var(--serif); font-style: italic; color: var(--red); font-size: 1.25rem; }
.idea h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; margin: 2.875rem 0 0.875rem; }
.idea p { color: var(--ink-2); font-size: 0.9375rem; }

/* experiences */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
}
.exp { grid-column: span 4; }
.exp:nth-child(1) { grid-column: span 5; }
.exp:nth-child(2) { grid-column: span 4; margin-top: 90px; }
.exp:nth-child(3) { grid-column: span 3; }
.exp:nth-child(4) { grid-column: 2 / span 3; margin-top: 30px; }
.exp:nth-child(5) { grid-column: span 4; margin-top: -40px; }
.exp:nth-child(6) { grid-column: span 4; margin-top: 50px; }
.exp .ph { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: var(--bg-2); }
.exp .ph img { transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.1, 1); }
.exp:hover .ph img { transform: scale(1.045); }
.exp .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.exp h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.exp .tag { font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.exp p { color: var(--ink-2); font-size: 0.875rem; margin-top: 0.375rem; max-width: 34ch; }
.exp-note { margin-top: 3.5rem; color: var(--ink-2); font-size: 0.8125rem; }

/* membership */
.member { background: var(--bg-2); transition: background 0.5s ease; }
.member-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.member-art { position: sticky; top: 110px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.step .num { font-family: var(--serif); font-style: italic; color: var(--red); font-size: 1.25rem; padding-top: 0.375rem; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.step p { color: var(--ink-2); font-size: 0.9375rem; margin-top: 0.625rem; max-width: 46ch; }
.pull {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-top: 54px;
  max-width: 20ch;
}
.pull em { color: var(--red); }

/* founding */
.found-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.found-art { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; position: relative; }
.found h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.375rem, 5.2vw, 4.75rem); line-height: 1; letter-spacing: -0.02em; margin: 1.5rem 0; }
.found h2 em { color: var(--red); }
.found p { color: var(--ink-2); max-width: 44ch; }
.perks { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.perks li { display: flex; justify-content: space-between; gap: 1.25rem; padding: 1rem 0; border-bottom: 0.0625rem solid var(--line); font-size: 0.9375rem; }
.perks li span:last-child { color: var(--ink-2); text-align: right; }

/* safety */
.safe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.safe div { padding: 30px 28px 0 0; }
.safe h3 { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.15; margin-bottom: 0.625rem; }
.safe p { color: var(--ink-2); font-size: 0.875rem; }

/* apply */
.apply { text-align: center; padding: clamp(96px, 13vw, 200px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.apply .ring { position: absolute; left: 50%; top: 50%; width: min(980px, 130vw); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.apply .ring.r2 { width: min(620px, 90vw); }
.apply h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 8vw, 7.75rem); line-height: 0.95; letter-spacing: -0.025em; margin: 1.625rem auto 1.625rem; max-width: 12ch; position: relative; }
.apply h2 em { color: var(--red); }
.apply p { color: var(--ink-2); max-width: 46ch; margin: 0 auto; position: relative; }
.apply .status {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  height: 46px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.8125rem; letter-spacing: 0.06em; position: relative;
}
.apply .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.foot .logo { width: clamp(180px, 26vw, 340px); }
.foot-note { color: var(--ink-2); font-size: 0.8125rem; max-width: 40ch; text-align: right; }
.foot-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(0.2, 0.7, 0.1, 1), transform 1s cubic-bezier(0.2, 0.7, 0.1, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.ph, .frame, .inset, .member-art, .found-art { background: var(--bg-2); }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero { padding: 120px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: 82%; margin-left: auto; margin-top: 12px; }
  .hero-art .inset { left: -20%; }
  .hero-quote { position: static; margin-top: 18px; text-align: right; }
  .hero-meta { margin-top: 44px; gap: 28px; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .idea { grid-template-columns: 1fr; }
  .idea article, .idea article + article { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .idea h3 { margin-top: 18px; }
  .exp, .exp:nth-child(n) { grid-column: span 6; margin-top: 0; }
  .exp:nth-child(even) { margin-top: 44px; }
  .member-grid, .found-grid { grid-template-columns: 1fr; }
  .member-art { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .safe { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .foot-note { text-align: left; }
}
@media (max-width: 520px) {
  .exp, .exp:nth-child(n) { grid-column: span 12; margin-top: 0; }
  .safe { grid-template-columns: 1fr; }
  .head-in { height: 66px; }
  .logo { width: 76px; }
  .hero-meta { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}

/* ================= motion layer ================= */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* full stop = the red ball */
.stop {
  display: inline-block;
  width: 0.15em; height: 0.15em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--red);
  vertical-align: baseline;
}
.js .stop { opacity: 0; }

/* hero entrance (only hidden when JS is running) */
.split .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .ln > span { display: block; }
.js .split .ln > span { transform: translateY(112%); }
.js .hero-in { opacity: 0; transform: translateY(18px); }
.js .curtain { background: transparent; }
.js .curtain img { clip-path: inset(100% 0% 0% 0%); }
.js .curtain.in img { clip-path: inset(0% 0% 0% 0%); transition: clip-path 1.5s cubic-bezier(0.75, 0, 0.15, 1); }
.nw { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .js .split .ln > span, .js .hero-in { transform: none; opacity: 1; }
  .js .curtain img { clip-path: none; }
  .js .stop { opacity: 1; }
}

/* cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor.on { opacity: 1; }
.cursor span {
  display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--red);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s;
}
.cursor.is-link span { transform: scale(3.6); opacity: 0.28; }
.cursor.is-img span { transform: scale(7); opacity: 0.85; mix-blend-mode: normal; }

/* experiences rail */
.rail-sec { border-top: 1px solid var(--line); overflow: hidden; }
.rail-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 40px; }
.rail-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 32px; align-items: end; width: 100%; margin-bottom: clamp(28px, 4vh, 52px); }
.rail-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.125rem, 4.6vw, 4.25rem); line-height: 1; letter-spacing: -0.02em; max-width: 15ch; }
.rail-head h2 em { color: var(--red); }
.rail-count { font-family: var(--serif); font-style: italic; font-size: 1.375rem; color: var(--ink-2); }
.rail-count span { color: var(--red); }
.rail { display: flex; gap: clamp(18px, 2.6vw, 44px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.rail .exp { width: min(27vw, 37vh); flex: none; }
.rail .exp:nth-child(even) { margin-top: 5vh; }
.rail .exp .ph { aspect-ratio: 3 / 4; }
.rail .exp p { font-size: 0.8125rem; }
.rail-sec .exp-note { margin-top: 28px; }

/* city band */
.band { position: relative; height: 96vh; min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; color: #f6f1ea; }
.band-img { position: absolute; inset: 0; overflow: hidden; }
.band-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 6, 0.1) 30%, rgba(8, 6, 6, 0.78) 100%); }
.band-copy { position: relative; width: 100%; padding-bottom: clamp(40px, 7vw, 96px); }
.band-copy .label { color: rgba(246, 241, 234, 0.7); }
.band-copy h2 { font-size: clamp(3.375rem, 10vw, 10.5rem); line-height: 0.92; letter-spacing: -0.03em; margin-top: 0.875rem; white-space: nowrap; }
.band-copy h2 em { color: #ff3a2f; }

/* membership line + ball */
.steps { position: relative; }
.steps-line { position: absolute; left: -34px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: var(--red); transform-origin: 50% 0; transform: scaleY(0); }
.steps-ball { position: absolute; left: -41px; top: -7px; width: 15px; height: 15px; border-radius: 50%; background: var(--red); z-index: 2; }
.step h3, .step .num { transition: color 0.5s, opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .step:not(.on) h3 { opacity: 0.38; }
.js .step.on h3 { transform: translateX(8px); }

.btn-solid .dot { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.btn-solid:hover .dot { transform: translateX(6px) scale(1.5); }

@media (max-width: 900px) {
  .rail-pin { min-height: 0; padding: 84px 0 64px; }
  .rail-head { grid-template-columns: 1fr; gap: 12px; }
  .rail-count { display: none; }
  .rail-sec { overflow: visible; }
  .rail { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
  .rail::-webkit-scrollbar { display: none; }
  .rail .exp, .rail .exp:nth-child(n) { width: 68vw; margin-top: 0; scroll-snap-align: center; }
  .band { height: 74vh; }
  .band-copy h2 { white-space: normal; }
  .steps-line, .steps-ball { display: none; }
  .js .step:not(.on) h3 { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .step:not(.on) h3 { opacity: 1; }
}


/* ================= v2: logo-matched type, smooth scroll, more motion ================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Fraunces, soft and heavy, to sit with the chunky logo */
h1, h2, h3, .serif, .pull, .hero-meta .v, .ticker span, .num, .hero-quote, .rail-count, .mani-text {
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-optical-sizing: auto;
}
.hero h1, .sec-head h2, .rail-head h2, .found h2, .apply h2, .band-copy h2 { font-weight: 800; letter-spacing: -0.035em; }
.hero h1 { font-size: clamp(2.875rem, 7.1vw, 7rem); line-height: 0.97; }
.sec-head h2, .found h2 { font-size: clamp(2.125rem, 4.5vw, 4.125rem); line-height: 1.02; }
.rail-head h2 { font-size: clamp(1.875rem, 4vw, 3.625rem); line-height: 1.02; }
.apply h2 { font-size: clamp(2.75rem, 7vw, 6.75rem); line-height: 0.98; }
.band-copy h2 { font-size: clamp(2.875rem, 8.6vw, 9rem); line-height: 0.95; }
h1 em, h2 em { font-weight: 700; }
.idea h3, .step h3, .safe h3, .exp h3 { font-weight: 650; letter-spacing: -0.02em; }
.idea h3, .step h3 { font-size: 1.75rem; }
.safe h3 { font-size: 1.438rem; }
.exp h3 { font-size: 1.312rem; }
.hero-meta .v { font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; }
.pull { font-weight: 650; letter-spacing: -0.02em; }
.ticker span { font-weight: 500; }
.num, .rail-count, .hero-quote { font-weight: 500; }
.stop { width: 0.17em; height: 0.17em; }

/* headline words rise out of a mask */
.wr .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.wr .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.15, 1); transition-delay: calc(var(--i, 0) * 55ms); }
.wr.in .w > span { transform: none; }

/* manifesto */
.mani { padding: clamp(70px, 10vw, 150px) 0 clamp(90px, 12vw, 180px); }
.mani-text { font-family: var(--serif); font-weight: 700; font-size: clamp(1.875rem, 4.8vw, 4.625rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 19ch; margin-top: 1.625rem; }
.mani-text .mw { opacity: 0.14; transition: color 0.3s; }
.mani-text .mw.hot { color: var(--red); }

/* scroll progress: the ball rides a hairline */
.prog { position: fixed; right: 22px; top: 50%; height: 170px; width: 1px; margin-top: -85px; background: var(--line); z-index: 40; pointer-events: none; }
.prog i { position: absolute; inset: 0; background: var(--red); transform-origin: 50% 0; transform: scaleY(0); }
.prog span { position: absolute; left: -4px; top: -4.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.foot .logo svg { overflow: visible; }


@media (max-width: 900px) {
  .prog { display: none; }
  .idea h3, .step h3 { font-size: 1.562rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wr .w > span { transform: none; transition: none; }
  .mani-text .mw { opacity: 1; }
}
.idea { border-top: 0; position: relative; }
.idea::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); opacity: 0.45; transform-origin: 0 50%; transform: scaleX(var(--draw, 1)); }

/* hero v3: one arched picture, a turning members badge, no overlapping inset */
.hero-art { max-width: 470px; margin-left: auto; }
.hero-art .frame { aspect-ratio: 3 / 4.15; border-radius: 999px 999px 3px 3px; }
.hero-art .arc { right: -30%; top: -10%; width: 84%; }
.hero-art .spark.s1 { right: -30px; top: 46%; }
.hero-art .spark.s2 { left: -22px; top: 30%; }
@media (max-width: 900px) {
  .hero-art { width: 78%; max-width: 380px; margin: 26px auto 0; }
  .badge { left: -46px; bottom: 40px; width: 108px; height: 108px; }
  .hero-quote { text-align: center; }
}

/* ================= v4: illustrated hands hero + lighter headline face ================= */
.hero-art.hands { max-width: 540px; width: 100%; }
.hands-svg { display: block; width: 100%; height: auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect; }
.hands-svg .touch { fill: var(--ink); transition: fill 0.5s ease; }
.hands-svg .ring { fill: none; stroke: var(--ink); stroke-width: 2; opacity: 0; }
.hands-svg .float { transform-box: fill-box; transform-origin: 50% 50%; animation: drift 6.5s ease-in-out infinite alternate; }
.hands-svg .float.fb { animation-duration: 7.6s; animation-delay: -2.3s; }
@keyframes drift { from { transform: translate(-7px, 6px) rotate(-1.1deg); } to { transform: translate(7px, -6px) rotate(1.1deg); } }
.hero-art.hands .arc { right: -18%; top: 4%; width: 78%; }
.hero-art.hands .hero-quote { position: static; text-align: right; margin-top: 6px; }
.hero-grid { align-items: center; }
.hero-meta { gap: 34px; flex-wrap: wrap; }
.hero-meta .v { font-size: 1.25rem; font-weight: 500; white-space: nowrap; }

/* headings: same family feel, clearly lighter than the logo */
h1, h2, h3, .serif, .pull, .hero-meta .v, .ticker span, .num, .hero-quote, .rail-count, .mani-text { font-variation-settings: "SOFT" 0, "WONK" 0; }
.hero h1, .sec-head h2, .rail-head h2, .found h2, .apply h2, .band-copy h2 { font-weight: 440; letter-spacing: -0.035em; }
h1 em, h2 em { font-weight: 400; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 7.375rem); line-height: 0.96; }
.sec-head h2, .found h2 { font-size: clamp(2.25rem, 4.9vw, 4.5rem); line-height: 1; }
.rail-head h2 { font-size: clamp(2rem, 4.3vw, 3.875rem); }
.apply h2 { font-size: clamp(2.875rem, 7.6vw, 7.375rem); }
.band-copy h2 { font-size: clamp(3.125rem, 9.4vw, 9.75rem); }
.idea h3, .step h3, .safe h3, .exp h3, .pull { font-weight: 480; }
.mani-text { font-weight: 440; }
@media (max-width: 900px) {
  .hero-art.hands { max-width: 420px; margin: 10px auto 0; }
  .hero-art.hands .hero-quote { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .hands-svg .float { animation: none; } }


/* ================= Apple-design pass ================= */
/* press feedback on touch-down (uses the independent scale property so it composes with the magnetic pull) */
.btn, .theme-btn, #intro-skip { transition: background 0.3s, color 0.3s, border-color 0.3s, scale 0.1s ease-out; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active, .theme-btn:active, #intro-skip:active { scale: 0.96; }
/* 44px minimum tap targets */
.theme-btn { width: 44px; height: 44px; }
.btn-sm { height: 44px; padding: 0 20px; }
#intro-skip { min-height: 44px; padding: 0 6px; font-size: 0.75rem; }
/* clear keyboard focus on both themes */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .theme-btn:focus-visible { border-radius: 999px; }
/* header: fade into content instead of a hard rule */
.site-head.is-stuck { border-bottom-color: transparent; }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent), transparent); }
.site-head.is-stuck::after { opacity: 1; }
/* reduce transparency: solid header */
@media (prefers-reduced-transparency: reduce) {
  .site-head.is-stuck { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line); }
  .site-head::after { display: none; }
}
/* increase contrast: stronger secondary text and lines */
@media (prefers-contrast: more) {
  :root, :root[data-theme="dark"] { --ink-2: var(--ink); }
  :root { --line: rgba(20, 18, 17, 0.5); }
  :root[data-theme="dark"] { --line: rgba(243, 239, 232, 0.5); }
  .btn-line { border-width: 2px; }
}

/* red dot replaces the system cursor on mouse/trackpad devices only */
.cursor { will-change: transform; }
.cursor span { width: 12px; height: 12px; margin: -6px 0 0 -6px; }

/* ================= frontend audit pass ================= */
img { height: auto; }
.ph img, .band-img img, .member-art img, .found-art img { height: 100%; }
/* tablet: show about 1.5 experience cards */
@media (min-width: 521px) and (max-width: 900px) {
  .rail .exp, .rail .exp:nth-child(n) { width: 44vw; }
}
/* not-yet-lit manifesto words stay legible (~2.5:1) */
.mani-text .mw { opacity: 0.32; }
/* header logo meets the 44px tap target */
.site-head .logo { display: flex; align-items: center; min-height: 44px; }
.band-img img { object-position: 60% 55%; }
