/* =========================================================
   PROMPT CLUB — foundations
   Palette: hot pink #F20A5E · black · white · #F5F5F5
   Type: Polymath (Adobe) + IBM Plex Mono (small titles / UI)
   ========================================================= */

/* IBM Plex Mono — self-hosted (SIL OFL 1.1), Latin subset */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --pink: #F20A5E;
  --black: #000;
  --white: #fff;
  --off: #F5F5F5;

  --f-display: "polymath-display", "polymath", "Helvetica Neue", Arial, sans-serif;
  --f-text: "polymath-text", "polymath", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Frame: the corner cell. Top bar height = left rail width. */
  --cell: clamp(56px, 4.6vw, 76px);
  --gutter: clamp(20px, 3.4vw, 64px);
  --content-left: calc(var(--cell) + clamp(120px, 10vw, 190px)); /* room for rail labels */
  --maxw: 1440px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --band-h: clamp(92px, 15vh, 168px);
}

/* Themes — applied per block via data-theme */
[data-theme="light"] { --bg: var(--white); --fg: var(--black); --muted: rgba(0,0,0,.58); --line: rgba(0,0,0,.14); --accent: var(--pink); --inv-bg: var(--black); --inv-fg: var(--white); }
[data-theme="off"]   { --bg: var(--off);   --fg: var(--black); --muted: rgba(0,0,0,.58); --line: rgba(0,0,0,.14); --accent: var(--pink); --inv-bg: var(--black); --inv-fg: var(--white); }
[data-theme="dark"]  { --bg: var(--black); --fg: var(--white); --muted: rgba(255,255,255,.62); --line: rgba(255,255,255,.2); --accent: var(--pink); --inv-bg: var(--white); --inv-fg: var(--black); }
[data-theme="pink"]  { --bg: var(--pink);  --fg: var(--white); --muted: rgba(255,255,255,.82); --line: rgba(255,255,255,.38); --accent: var(--white); --inv-bg: var(--white); --inv-fg: var(--black); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--f-text); font-size: 16px; line-height: 1.5; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
::selection { background: var(--pink); color: var(--white); }
/* Keyboard focus only (never on mouse click): fine, on-brand */
:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--pink); outline-offset: 4px; } /* outline follows each element's own corners */
[data-theme="pink"] :focus-visible { outline-color: var(--white); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--black); color: var(--white); padding: 10px 14px; font: 500 12px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.skip:focus { top: 12px; }

section, footer { background: var(--bg); color: var(--fg); position: relative; }

.wrap { padding-left: var(--content-left); padding-right: var(--gutter); max-width: calc(var(--maxw) + var(--content-left) + var(--gutter)); margin: 0 auto; }

/* ---------- Type system (Pear-style distribution) ---------- */
.mono { font-family: var(--f-mono); font-size: 11px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }

.eyebrow { font-family: var(--f-mono); font-size: 11px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 14px; }
h2.eyebrow { font-weight: inherit; } /* footer "Get involved" is a heading for structure; looks identical to the other eyebrows */
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }

.title { font-family: var(--f-text); font-weight: 300; font-size: clamp(44px, 6.6vw, 112px); line-height: .96; letter-spacing: -.035em; }
.title em { font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.04em; }
[data-theme="pink"] .title em { color: var(--white); }
.title--sm { font-size: clamp(36px, 4vw, 60px); }

.lead { font-family: var(--f-text); font-weight: 300; font-size: clamp(22px, 2.1vw, 34px); line-height: 1.22; letter-spacing: -.015em; }
.body { font-family: var(--f-text); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; color: var(--muted); max-width: 40ch; }
.body strong { color: var(--fg); font-weight: 500; }

.section-head { display: grid; gap: 28px; padding-top: clamp(96px, 16vh, 180px); padding-bottom: clamp(56px, 9vh, 110px); }
.section-head .body { margin-top: 4px; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head--center .body, .section-head--center .lead { max-width: 46ch; }
.section-head--split { grid-template-columns: 1fr auto; align-items: end; column-gap: 8vw; }
.section-head--split > div { display: grid; gap: 28px; }

/* Links & buttons */
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 0; position: relative; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 26px; bottom: 0; height: 1px; background: currentColor; transform: scaleX(.0001); transform-origin: right; transition: transform .6s var(--ease); }
.link-arrow:hover::after, a:hover > .link-arrow::after, button:hover > .link-arrow::after { transform: scaleX(1); transform-origin: left; }
.link-arrow:hover svg, a:hover > .link-arrow svg, button:hover > .link-arrow svg { transform: translateX(4px); }

.btn { --b-bg: var(--black); --b-fg: var(--white); --b-hover: var(--pink); --b-hfg: var(--white);
  position: relative; display: inline-flex; align-items: center; gap: 18px; height: 44px; padding: 0 7px 0 18px; border-radius: 4px; overflow: hidden; isolation: isolate;
  background: var(--b-bg); color: var(--b-fg); font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: color .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--b-hover); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); z-index: -1; }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--b-hfg); }
.btn__arrow { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 3px; opacity: .9; }
.btn__arrow svg { width: 13px; height: 13px; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow svg { transform: translateX(2px); }
.btn--xl { height: 58px; padding: 0 9px 0 24px; font-size: 12px; gap: 26px; }
.btn--xl .btn__arrow { width: 40px; height: 40px; }
.btn--pink { --b-bg: var(--pink); --b-hover: var(--white); --b-hfg: var(--black); }
.btn--dark { --b-bg: var(--black); --b-hover: var(--pink); }
.btn--inverse { --b-bg: var(--inv-bg); --b-fg: var(--inv-fg); --b-hover: var(--black); --b-hfg: var(--white); }
[data-theme="light"] .btn--pink, [data-theme="off"] .btn--pink { --b-hover: var(--black); --b-hfg: var(--white); }

/* =========================================================
   FRAME — Pear-style chrome
   ========================================================= */
.frame { --ffg: var(--white); --facc: var(--pink); --fline: rgba(255,255,255,.24); --fbg: rgba(0,0,0,.72); position: fixed; inset: 0; z-index: 50; pointer-events: none; color: var(--ffg); transition: color .6s var(--ease); }
html[data-frame="light"] .frame { --ffg: var(--black); --fline: rgba(0,0,0,.14); --fbg: rgba(255,255,255,.72); }
html[data-frame="off"] .frame { --ffg: var(--black); --fline: rgba(0,0,0,.14); --fbg: rgba(245,245,245,.72); }
html[data-frame="dark"] .frame { --ffg: var(--white); --fline: rgba(255,255,255,.22); --fbg: rgba(0,0,0,.6); }
html[data-frame="pink"] .frame { --ffg: var(--white); --facc: var(--white); --fline: rgba(255,255,255,.42); --fbg: rgba(242,10,94,.72); }
/* Top bar: soft overlay + blur so content scrolls beneath (hidden over the hero) */
.frame::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--cell); background: var(--fbg); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); opacity: 0; transition: opacity .5s var(--ease), background-color .6s var(--ease); pointer-events: none; }
html.is-past-hero .frame::before { opacity: 1; }
html.menu-open .frame::before, html.bar-clear .frame::before { opacity: 0; }
/* Docked eyebrow: the current section's eyebrow locks into the top bar */
.frame__dock { position: absolute; left: var(--content-left); top: 0; height: var(--cell); display: flex; align-items: center; overflow: hidden; pointer-events: none; color: var(--facc); font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: color .6s var(--ease); }
.frame__dock-text { display: flex; align-items: center; gap: 14px; }
.frame__dock-text::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.frame__dock-text:empty { display: none; } /* no stray dash when nothing is docked */
html.menu-open .frame__dock { opacity: 0; }
.frame > * { pointer-events: auto; }

.frame__line { position: absolute; background: var(--fline); pointer-events: none; transition: background-color .6s var(--ease); }
.frame__line--top { left: 0; right: 0; top: var(--cell); height: 1px; transform-origin: left; }
.frame__line--left { top: 0; bottom: 0; left: var(--cell); width: 1px; transform-origin: top; }

.frame__mark { position: absolute; left: 0; top: 0; width: var(--cell); height: var(--cell); overflow: hidden; isolation: isolate; color: var(--white); transition: color .5s var(--ease); }
html[data-mark="light"] .frame__mark, html[data-mark="off"] .frame__mark { color: var(--pink); }
html[data-mark] .frame__mark:hover, html[data-mark] .frame__mark:focus-visible { color: var(--white); }
/* Hover: hot pink slides up from the bottom */
.frame__mark::before { content: ""; position: absolute; inset: 0; background: var(--pink); transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; }
.frame__mark:hover::before, .frame__mark:focus-visible::before { transform: translateY(0); }
.frame__mark:hover, .frame__mark:focus-visible { color: var(--white); }
html[data-frame="pink"] .frame__mark::before { background: var(--black); }
.mark { position: absolute; left: 50%; top: 50%; width: calc(var(--cell) * .34); height: calc(var(--cell) * .34 * 1026 / 727); transform: translate(-50%, -50%); overflow: visible; }
.mark__star { transform-box: fill-box; transform-origin: 50% 50%; will-change: transform; }

.frame__menu { position: absolute; left: 0; top: var(--cell); width: var(--cell); height: var(--cell); display: grid; place-items: center; }
.grid4 { display: grid; grid-template-columns: 5px 5px; gap: 3px; transition: transform .6s var(--ease), gap .4s var(--ease); }
.grid4 i { width: 5px; height: 5px; background: currentColor; transition: transform .5s var(--ease), border-radius .5s var(--ease); }
.frame__menu:hover .grid4 { gap: 5px; }
html.menu-open .grid4 { transform: rotate(45deg); }
html.menu-open .grid4 i { border-radius: 50%; }

/* Left rail: ticks sit on the vertical line; labels reveal on hover */
/* First tick sits inline with the menu icon (centre of the second cell) */
.rail { position: absolute; left: var(--cell); top: calc(var(--cell) * 1.5 - 18px); display: grid; gap: 0; }
/* Each item's hit zone spans tick + label, so hover never drops between items */
.rail a { position: relative; display: flex; align-items: center; height: 36px; width: calc(clamp(120px, 10vw, 190px) - 8px); }
.rail::before { content: ""; position: absolute; left: -12px; right: 0; top: -12px; bottom: -12px; }
.rail i { width: 9px; height: 1px; background: currentColor; opacity: .4; transition: width .6s var(--ease), opacity .4s var(--ease), background-color .4s; }
.rail em { position: absolute; left: 34px; font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease) .15s, transform .5s var(--ease) .15s; }
.rail:hover em { transition-delay: 0s; }
.rail:hover em { opacity: .5; transform: none; }
.rail a:hover em, .rail a:focus-visible em { opacity: 1; }
.rail a:hover i { opacity: 1; }
.rail a.is-active i { width: 24px; opacity: 1; background: var(--pink); }
/* Each tick / the menu icon follows the section behind it (data-on is set by syncLeftColumn in main.js) */
.rail a[data-on="light"], .rail a[data-on="off"], html:not(.menu-open) .frame__menu[data-on="light"], html:not(.menu-open) .frame__menu[data-on="off"] { color: var(--black); }
.rail a[data-on="dark"], .rail a[data-on="pink"], html:not(.menu-open) .frame__menu[data-on="dark"], html:not(.menu-open) .frame__menu[data-on="pink"] { color: var(--white); }
.rail a.is-active[data-on="pink"] i { background: var(--white); }
.frame__menu { transition: color .4s var(--ease); }
.rail a { transition: color .4s var(--ease); }
/* Hero: all six labels visible so visitors see the depth of the site */
/* --show (1 → 0) is driven by scroll through the hero: labels leave one by one, bottom to top */
html:not(.is-past-hero) .rail em { opacity: calc(.6 * var(--show, 1)); transform: translateX(calc((1 - var(--show, 1)) * -8px)); transition: none; }
html:not(.is-past-hero) .rail a:hover em { opacity: 1; }
/* Below the hero: labels hidden (docked eyebrows do that job) — hover the rail to reveal, current section highlighted */
.rail:hover a.is-active em { opacity: 1; }

/* Single CTA — top right, perfectly framed */
.btn-frame { position: absolute; top: calc((var(--cell) - 32px) / 2); right: calc((var(--cell) - 32px) / 2 + 4px); height: 32px; display: inline-flex; align-items: center; gap: 14px; padding: 0 5px 0 14px; border-radius: 4px; overflow: hidden; isolation: isolate;
  background: var(--black); color: var(--white); font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; transition: background-color .5s var(--ease), color .5s var(--ease); }
.btn-frame::before { content: ""; position: absolute; inset: 0; background: var(--pink); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); z-index: -1; }
.btn-frame:hover::before, .btn-frame:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn-frame__arrow { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 3px; transition: border-color .5s; }
.btn-frame__arrow svg { width: 11px; height: 11px; transition: transform .5s var(--ease); }
.btn-frame:hover .btn-frame__arrow svg { transform: translateX(2px); }
/* On pink blocks the button turns white */
html[data-frame="pink"] .btn-frame { background: var(--white); color: var(--black); }
html[data-frame="pink"] .btn-frame::before { background: var(--black); }
html[data-frame="pink"] .btn-frame:hover { color: var(--white); }
html[data-frame="pink"] .btn-frame__arrow { border-color: rgba(0,0,0,.25); }
html[data-frame="pink"] .btn-frame:hover .btn-frame__arrow { border-color: rgba(255,255,255,.35); }
/* Gentle attention pulse to pink when idle on light/dark (set by JS) */
.btn-frame.is-pulse::before { animation: pulse-fill 2.4s var(--ease-io) 1; }
@keyframes pulse-fill { 0% { transform: scaleX(0); transform-origin: left; } 45%,55% { transform: scaleX(1); transform-origin: left; } 56% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* =========================================================
   MENU — full screen chapters
   ========================================================= */
.menu { position: fixed; inset: 0; z-index: 45; visibility: hidden; color: var(--white); }
html.menu-open .menu { visibility: visible; }
.menu__bg { position: absolute; inset: 0; background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); opacity: 0; transition: opacity .6s var(--ease); }
html.menu-open .menu__bg { opacity: 1; }
.menu__inner { position: relative; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: calc(var(--cell) + 4vh) var(--gutter) 28px var(--content-left); overflow-y: auto; }
.menu__list { align-self: center; justify-self: center; width: min(620px, 100%); }
.menu__list a { position: relative; display: grid; justify-items: center; gap: 8px; padding: clamp(12px, 1.9vh, 24px) 0; text-align: center; }
.menu__ch { font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .5; }
.menu__title { font-family: var(--f-text); font-weight: 300; font-size: clamp(34px, 5.6vh, 72px); line-height: 1; letter-spacing: -.035em; opacity: .38; transition: opacity .5s var(--ease); }
/* Divider: faint line, draws solid left → right on hover / active */
.menu__list li { border-bottom: 1px solid rgba(255,255,255,.14); }
.menu__list li:last-child { border-bottom: 0; }
.menu__rule { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.menu__list a:hover .menu__title, .menu__list a:focus-visible .menu__title, .menu__list a.is-active .menu__title { opacity: 1; }
.menu__list a:hover .menu__ch, .menu__list a.is-active .menu__ch { opacity: .9; }
.menu__list a:hover .menu__rule, .menu__list a:focus-visible .menu__rule, .menu__list a.is-active .menu__rule { transform: scaleX(1); }
.menu__list li:last-child .menu__rule { display: none; }
.menu__list li, .menu__foot { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
html.menu-open .menu__list li, html.menu-open .menu__foot { opacity: 1; transform: none; }
html.menu-open .menu__list li:nth-child(1) { transition-delay: .06s; }
html.menu-open .menu__list li:nth-child(2) { transition-delay: .1s; }
html.menu-open .menu__list li:nth-child(3) { transition-delay: .14s; }
html.menu-open .menu__list li:nth-child(4) { transition-delay: .18s; }
html.menu-open .menu__list li:nth-child(5) { transition-delay: .22s; }
html.menu-open .menu__list li:nth-child(6) { transition-delay: .26s; }
html.menu-open .menu__foot { transition-delay: .3s; }
.menu__foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 10px; opacity: .7; }
.menu__links { display: flex; gap: 28px; }
.menu__links a, .footer__follow a { display: inline-flex; align-items: center; gap: 6px; }
.menu__links svg, .footer__follow svg { width: 11px; height: 11px; }
html.menu-open .rail, html.menu-open .btn-frame { opacity: 0; pointer-events: none; }
.rail, .btn-frame { transition: opacity .4s var(--ease), background-color .5s var(--ease), color .5s var(--ease); }
html.menu-open .frame { --ffg: var(--white); --fline: rgba(255,255,255,.2); }

/* =========================================================
   HERO + LOADER
   ========================================================= */
.hero { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--black); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.62) 100%); }

/* Band sits centred, but always below the left navigation */
.hero__band { position: absolute; left: 0; right: 0; top: max(50%, calc(var(--cell) * 1.5 + 226px + var(--band-h) / 2)); height: var(--band-h); transform: translateY(-50%); background: var(--pink); color: var(--white); overflow: hidden; z-index: 2; display: flex; align-items: center; }
html.js.is-loading .hero__band { height: 100vh; height: 100svh; top: 50%; }
html.is-loading .frame, html.is-loading .hero__foot { opacity: 0; }
html.is-loading body { overflow: hidden; }

.loader { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 22px; z-index: 2; }
html:not(.is-loading) .loader { display: none; }
/* Massive white wordmark on the pink loader; the shrinking band crops it on the way into the ticker */
.loader__lockup { position: relative; width: min(46vw, 760px, calc(44vh * 845 / 438)); }
.loader__wordmark { width: 100%; height: auto; color: var(--white); }
/* % sits in the space under 'prompt', right of 'club', on club's baseline and flush with the 't' */
.loader__count { position: absolute; right: .5%; bottom: 1.2%; font-family: var(--f-text); font-weight: 300; font-size: calc(min(46vw, 760px, calc(44vh * 845 / 438)) * .075); line-height: .8; letter-spacing: -.02em; text-transform: none; font-variant-numeric: tabular-nums; color: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }

.ticker { width: 100%; overflow: hidden; white-space: nowrap; align-self: flex-start; }
.ticker__track { display: inline-flex; will-change: transform; }
/* Polymath Display Bold cap-height = 0.698em (measured). Capitals are sized ~3% taller than the band
   and shifted up (0.142em = space above the cap line) so they bleed off: ~3-4px masked at the top, ~1px at the bottom. */
.ticker__item { --fs: calc(var(--band-h) / 0.675); display: inline-flex; align-items: center; gap: .24em; padding-right: .24em; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.075em; font-size: var(--fs); line-height: 1; height: 1em; transform: translateY(-.16em); }
.ticker__item > svg { width: .5em; min-width: .5em; height: .5em; flex: none; } /* min-width: Safari otherwise sizes the line as if the ✳ were 0 wide, so text overlaps */
/* Three-line event block: smaller, centred in the band with clear space top and bottom */
.ticker__date { font-weight: 400; }
.ticker__meta { display: flex; flex-direction: column; align-self: center; font-size: calc(var(--band-h) / 4.4); line-height: 1.06; letter-spacing: -.02em; margin: 0 .1em 0 .04em; }
.hero .ticker { opacity: 1; }
html.js.is-loading .hero .ticker { opacity: 0; }
/* Hover: band turns black, ticker pauses and the line condenses to fit the width */
.hero__band { transition: background-color .5s var(--ease); cursor: pointer; }
.hero__band.is-hover { background: var(--black); }
.ticker-fit { position: absolute; inset: 0; display: flex; align-items: flex-start; padding: 0 var(--gutter) 0 var(--content-left); opacity: 0; pointer-events: none; overflow: hidden; white-space: nowrap; }
.ticker-fit .ticker__item { padding-right: 0; }
/* 'OPEN HOUSE ✳ LONDON' as one group: scales uniformly on hover */
.tk-big { display: inline-flex; align-items: center; gap: .24em; transform-origin: 0 50%; }
.tk-big > svg { width: .5em; min-width: .5em; height: .5em; flex: none; }

.hero__foot { position: absolute; left: var(--content-left); right: var(--gutter); bottom: clamp(24px, 5vh, 48px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; color: var(--white); z-index: 3; }
/* Text keeps its position on the content line; the reel hangs off to its left (in the rail gutter) */
.hero__brand { position: relative; }
.hero__intro { display: grid; gap: 16px; max-width: 34ch; }
/* Square reel: GIFs + stills, one at a time, hard cuts */
/* Height = the text block (eyebrow top → last line); width follows as a square */
.reel { position: absolute; right: calc(100% + clamp(16px, 1.6vw, 26px)); top: 0; bottom: 0; width: auto; aspect-ratio: 1; }
.reel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: #000; }
/* Caption typed over the image, centred (eyebrow type) */
.reel__caption { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; padding-left: .2em; text-shadow: 0 1px 10px rgba(0,0,0,.6); font-family: var(--f-mono); font-size: 16px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.hero__intro .eyebrow { color: var(--white); }
.hero__lead { font-family: var(--f-text); font-weight: 300; font-size: clamp(22px, 2vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.hero__next { display: grid; gap: 8px; justify-items: end; text-align: right; }
.hero__next-label { opacity: .65; font-size: 10px; }
.hero__scroll { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-size: 10px; opacity: .6; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 28px; margin: 10px auto 0; background: currentColor; animation: scrollhint 2s var(--ease-io) infinite; transform-origin: top; }
@keyframes scrollhint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =========================================================
   01 TOGETHER — gathering gallery
   ========================================================= */
.gather { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--white); }
.gather__stage { position: absolute; inset: 0; }
.tile { position: absolute; overflow: hidden; background: var(--off); will-change: left, top, width, height, transform; border-radius: 2px; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.gather__title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); z-index: 3; text-align: center; font-family: var(--f-text); font-weight: 300; font-size: clamp(40px, 6.4vw, 118px); line-height: .98; letter-spacing: -.04em; color: var(--black); pointer-events: none; padding: 0 var(--gutter); }
.gather__line { display: block; }
.gather__word { display: block; overflow: hidden; padding-bottom: .1em; }
.gather__word > span { display: inline-block; font-style: italic; font-weight: 400; color: var(--pink); }

.intro { padding-top: clamp(96px, 16vh, 180px); padding-bottom: clamp(96px, 16vh, 180px); display: grid; gap: 48px; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8vw; align-items: start; }
.intro__grid .lead { font-size: clamp(28px, 3.2vw, 52px); line-height: 1.1; letter-spacing: -.025em; }
.intro__side { display: grid; gap: 22px; padding-top: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 40px; }
.stat { padding: 22px 20px 0 0; display: grid; gap: 14px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 20px; }
.stat dt { color: var(--muted); font-size: 10px; }
.stat dd { font-variant-numeric: tabular-nums; font-family: var(--f-text); font-weight: 300; font-size: clamp(34px, 3.4vw, 56px); letter-spacing: -.035em; line-height: 1; }

/* =========================================================
   02 FORMATS — horizontal tiles
   ========================================================= */
.formats { padding-bottom: clamp(80px, 12vh, 140px); }
.hscroll { overflow: hidden; }
.hscroll__track { display: flex; gap: clamp(16px, 1.6vw, 28px); padding-left: var(--content-left); padding-right: var(--gutter); width: max-content; }
.card { width: min(76vw, 1120px); height: min(72vh, 660px); min-height: 460px; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); color: var(--fg); border-radius: 4px; overflow: hidden; flex: none; }
.card__media { position: relative; overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.16); }   /* covers the ±6% sideways drift with room to spare (1.12 left a hairline at the edges) */
.card__body { display: grid; grid-template-rows: auto 1fr auto auto; gap: 22px; padding: clamp(24px, 3vw, 48px); }
.card__top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--muted); }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--fg); }
.card__title { align-self: end; font-family: var(--f-text); font-weight: 300; font-size: clamp(40px, 4.4vw, 76px); line-height: .95; letter-spacing: -.04em; }
.card__kicker { font-family: var(--f-text); font-size: clamp(17px, 1.3vw, 21px); line-height: 1.35; letter-spacing: -.01em; }
.card .body { max-width: 44ch; }
.card .link-arrow { justify-self: start; }
.card--end { width: min(44vw, 560px); grid-template-columns: 1fr; }
.card--end .card__body { grid-template-rows: 1fr auto auto; align-content: end; }
.card__star { width: 56px; height: 56px; color: var(--pink); align-self: start; }
.card--end .card__title { font-size: clamp(32px, 3vw, 50px); }

/* =========================================================
   03 PRINCIPLES
   ========================================================= */
.principles { padding-bottom: clamp(96px, 16vh, 180px); }
.plist { counter-reset: p; }
.prow { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(22px, 3.2vh, 38px) 0; }
.prow__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.prow__rule::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleX(var(--p, 0)); transform-origin: left; }
.prow:last-child { border-bottom: 1px solid var(--line); }
.prow__no { color: var(--accent); font-size: 10px; }
.prow__title { font-family: var(--f-text); font-weight: 300; font-size: clamp(32px, 4.2vw, 72px); line-height: 1; letter-spacing: -.035em; padding-bottom: .08em; } /* balances descenders so the cap height reads centred */
.prow__text { max-width: 31ch; text-wrap: balance; justify-self: end; width: 31ch; } /* sits against the right edge of the row */ /* 28–34ch keeps every principle on exactly two lines */
.js .prow { opacity: .22; transition: opacity .6s var(--ease); }
.js .prow.is-on { opacity: 1; }

/* =========================================================
   TICKER BLOCK
   ========================================================= */
.bandblock { height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; display: flex; align-items: center; }
.bandblock__media { position: absolute; inset: -10% 0; }
.bandblock__media img { width: 100%; height: 100%; object-fit: cover; }
.bandblock__media picture { display: contents; }
.bandblock__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.bandblock__film.is-on { opacity: 1; }   /* hard cut between films; the still stays underneath */
.bandblock__band { position: relative; width: 100%; height: var(--band-h); background: var(--pink); color: var(--white); display: flex; align-items: center; overflow: hidden; }

/* =========================================================
   04 EVENTS
   ========================================================= */
.events { padding-bottom: clamp(96px, 14vh, 160px); }
.elist { display: grid; }
.erow { position: relative; display: grid; grid-template-columns: 110px 150px minmax(0, 1fr) 140px auto; gap: 24px; align-items: center; padding: 26px 0; }
.erow__rule { position: absolute; left: var(--content-left); right: var(--gutter); top: 0; height: 1px; background: var(--line); }
.elist .erow__rule { left: 0; right: 0; }
.erow__rule::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.erow:hover .erow__rule::after { transform: scaleX(1); }
.erow:last-child { border-bottom: 1px solid var(--line); }
.erow--empty { grid-template-columns: 110px minmax(0, 1fr) auto; }
.erow__date { font-size: 12px; line-height: 1.3; }
.erow__format { font-size: 10px; opacity: .8; }
.erow__title { font-family: var(--f-text); font-weight: 300; font-size: clamp(26px, 2.6vw, 44px); letter-spacing: -.03em; line-height: 1.05; transition: transform .6s var(--ease); }
.erow:hover .erow__title { transform: translateX(10px); }
.erow__place { font-size: 10px; opacity: .8; }
.events__cta { display: flex; justify-content: center; padding-top: clamp(56px, 8vh, 90px); }

/* =========================================================
   05 JOIN + FORMS
   ========================================================= */
.join { padding: clamp(96px, 16vh, 180px) 0; }
/* Row 1: intro | form. Row 2: member card (sits below the Join button until the form is completed) */
.join__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 8vw; row-gap: 46px; align-items: start; }
.join__head { grid-column: 1; grid-row: 1; }
#join-form { grid-column: 2; grid-row: 1; }
.join .member { grid-column: 1; grid-row: 2; }
.join__thanks { grid-column: 2; grid-row: 2; }
.join__head { display: grid; gap: 28px; }

.form { display: grid; gap: 30px; }
.field { position: relative; }
.field input, .field textarea { display: block; width: 100%; caret-color: var(--pink); font: 300 clamp(20px, 1.6vw, 26px)/1.3 var(--f-text); letter-spacing: -.01em; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 26px 10px 12px; border-radius: 0; outline: none; transition: border-color .4s; resize: vertical; }
.field textarea { min-height: 96px; }
.field label { position: absolute; left: 10px; top: 30px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); pointer-events: none; transform-origin: left; transition: transform .45s var(--ease), color .3s; }
.field label span, .chips legend span { opacity: .6; text-transform: none; letter-spacing: .04em; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-26px) scale(.9); color: var(--accent); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--pink); }
/* Browser autofill: replace Chrome/Safari's pale blue with an on-brand tint */
[data-theme="dark"] { --autofill: #0b0b0b; }
[data-theme="light"] { --autofill: #F5F5F5; }
[data-theme="off"] { --autofill: #FFFFFF; }
[data-theme="pink"] { --autofill: #e8095a; }
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus, .field textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--autofill) inset; box-shadow: 0 0 0 1000px var(--autofill) inset;
  -webkit-text-fill-color: var(--fg); caret-color: var(--pink); transition: background-color 99999s ease-out 0s; }
.field input:autofill { box-shadow: 0 0 0 1000px var(--autofill) inset; -webkit-text-fill-color: var(--fg); }
/* Spell-check marks keep the field's text colour (Chrome otherwise paints them with autofill's black) */
.field input::spelling-error, .field textarea::spelling-error, .field input::grammar-error, .field textarea::grammar-error { color: var(--fg); -webkit-text-fill-color: var(--fg); text-decoration: underline wavy var(--pink); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { width: 100%; margin-bottom: 16px; color: var(--muted); font-size: 11px; float: left; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14px; transition: background-color .35s var(--ease), color .35s, border-color .35s; }
.chip span::before { content: "+"; font-family: var(--f-mono); font-size: 12px; opacity: .6; transition: transform .4s var(--ease); }
.chip:hover span { border-color: var(--fg); }
.chip input:checked + span { background: var(--pink); border-color: var(--pink); color: var(--white); }
.chip input:checked + span::before { transform: rotate(45deg); opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 14px; font-size: 13px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { appearance: none; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 3px; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; transition: background-color .3s, border-color .3s; }
.consent input:checked { background: var(--pink); border-color: var(--pink); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border: solid var(--white); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); }
.consent a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pink); }
.consent.is-invalid input { border-color: var(--pink); }
.form__error { color: var(--pink); font-size: 11px; }
[data-theme="pink"] .form__error { color: var(--white); }
.form .btn { justify-self: start; margin-top: 8px; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }

/* Member card — always visible, fills as the form is completed */
.member { display: grid; gap: 22px; justify-items: start; width: 100%; }
.member__card { width: min(420px, 100%); aspect-ratio: 1.586; background: var(--pink); color: var(--white); border-radius: 14px; padding: 22px 24px; display: grid; grid-template-rows: auto 1fr auto auto; position: relative; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(242,10,94,.6); }
.member__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.25) 45%, transparent 60%); transform: translateX(-100%); pointer-events: none; }
.member__card.is-shine::after { animation: sheen 1.6s var(--ease) 1 forwards; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.member__top, .member__bot { display: flex; justify-content: space-between; font-size: 10px; }
.member__star { width: 48px; height: 48px; align-self: center; }
.member__id { display: grid; gap: 8px; margin-bottom: 14px; min-width: 0; }
.member__name { font-family: var(--f-text); font-weight: 300; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.25; padding-bottom: .12em; margin-bottom: -.12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; } /* room for descenders (g, y) */
.member__org { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.member__name.is-empty, .member__org.is-empty { opacity: .45; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.member__copy { display: grid; gap: 14px; justify-items: start; }
.member__copy .lead { color: var(--fg); }
.u-link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .3s; }
.u-link:hover { color: var(--pink); }

/* Success: shades sit beside the member card (same row) */
.join__thanks { display: grid; align-content: start; }

/* Shades drop in once the card has moved into place */
/* Image blends into the black section (pure #000 edges). --r drives the 'out of the shadows' light reveal */
.join__shades { --r: 75%; position: relative; width: min(100%, 440px); margin: -40px auto 0; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 var(--r), transparent calc(var(--r) + 30%)); mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 var(--r), transparent calc(var(--r) + 30%)); }
.join__shades img { position: relative; z-index: 1; width: 100%; height: auto; }

/* =========================================================
   06 PARTNER
   ========================================================= */
.partner { padding-bottom: clamp(110px, 18vh, 200px); }
.partner .section-head { gap: 30px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 10px; margin: 6px 0 14px; }
.tags button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--fg); transition: background-color .35s var(--ease), color .35s, border-color .35s; }
.tags button::before { content: "+"; opacity: .6; transition: transform .4s var(--ease); }
.tags button:hover { border-color: var(--fg); }
.tags button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: var(--white); }
.tags button[aria-pressed="true"]::before { transform: rotate(45deg); opacity: 1; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { padding-top: clamp(96px, 16vh, 180px); overflow: hidden; }
.footer > .wrap:first-child:not(.footer__base) { display: grid; gap: 40px; }   /* not the base bar: on legal pages it is the first child and must stay one row */
.sweep-word { display: inline; }
.footer__lead { max-width: 30ch; font-size: clamp(26px, 2.8vw, 46px); line-height: 1.12; letter-spacing: -.025em; }
.involve { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 20px; }
.involve__item { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: 28px 28px 34px 0; text-align: left; min-height: 280px; }
.involve__item + .involve__item { border-left: 1px solid var(--line); padding-left: 28px; }
.involve__item .mono { color: var(--pink); font-size: 10px; }
.involve__item h3 { font-family: var(--f-text); font-weight: 300; font-size: clamp(34px, 3.4vw, 58px); letter-spacing: -.035em; line-height: 1; transition: color .4s; }
.involve__item:hover h3 { color: var(--pink); }
.involve__item .link-arrow { justify-self: start; }
.footer__follow { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; }
.footer__follow span { opacity: .55; margin-right: auto; }
.footer__follow a:hover { color: var(--pink); }
.footer__wordmark { width: calc(100% - var(--content-left) - var(--gutter)); margin: clamp(60px, 10vh, 120px) var(--gutter) 0 var(--content-left); color: var(--white); height: auto; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; font-size: 10px; opacity: .6; }
.footer__legal { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.footer__legal a:hover, .potentially:hover { color: var(--pink); }
/* Potentially stars (js/stars.js) */
.potentially { position: relative; display: inline-block; }
.p-star { position: absolute; bottom: 60%; color: var(--pink); pointer-events: none; opacity: 0; z-index: 2; }
.p-star svg { width: 100%; height: 100%; display: block; }

/* =========================================================
   LEGAL PAGES (privacy.html, cookies.html)
   ========================================================= */
.legal { padding: calc(var(--cell) + clamp(64px, 12vh, 140px)) var(--gutter) clamp(96px, 14vh, 160px) var(--content-left); }
.legal__inner { max-width: 760px; display: grid; gap: 22px; }
.legal .title { margin: 10px 0 4px; }
.legal__meta { color: var(--muted); font-size: 10px; margin-bottom: 28px; }
.legal h2 { font-family: var(--f-text); font-weight: 400; font-size: clamp(24px, 2vw, 32px); letter-spacing: -.02em; line-height: 1.15; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h3 { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--pink); margin-top: 14px; }
.legal__inner > p:not(.eyebrow):not(.legal__meta):not(.legal__back) { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.7; color: rgba(0,0,0,.72); }
.legal__inner > p a:not(.link-arrow) { color: var(--black); text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.legal__inner > p a:not(.link-arrow):hover { color: var(--pink); }
.legal__table { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal th { text-align: left; font-family: var(--f-mono); font-weight: 400; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: var(--off); padding: 12px 16px; }
.legal td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.legal td:first-child { font-family: var(--f-mono); font-size: 12px; min-width: 150px; }
.legal td:last-child { min-width: 110px; }
.legal td:nth-child(3) { min-width: 220px; }
.legal__table--plain td:first-child { font-family: var(--f-text); font-size: 14px; min-width: 0; }
.legal__inner > ul { display: grid; gap: 10px; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.7; color: rgba(0,0,0,.72); }
.legal__inner > ul li { position: relative; padding-left: 22px; }
.legal__inner > ul li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.legal__inner > ul strong { color: var(--black); font-weight: 500; }
.legal__back { margin-top: 30px; }
.footer--legal { padding-top: 0; }
.footer__legal a[aria-current="page"] { color: var(--pink); }

/* =========================================================
   DRAWER
   ========================================================= */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .6s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--bg); color: var(--fg); padding: 28px clamp(24px, 3.4vw, 52px) 48px; overflow-y: auto; transform: translateX(100%); transition: transform .8s var(--ease); display: grid; align-content: start; gap: 34px; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.drawer__close { display: inline-flex; gap: 10px; align-items: center; font-size: 10px; }
.drawer__close span { font-size: 18px; line-height: 1; transition: transform .4s var(--ease); }
.drawer__close:hover span { transform: rotate(90deg); }
.drawer__done { display: grid; gap: 22px; }
.drawer__star { width: 56px; height: 56px; color: var(--pink); animation: spin 8s linear infinite; }

/* =========================================================
   CURSOR
   ========================================================= */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--pink); pointer-events: none; display: grid; place-items: center; opacity: 0; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, opacity .3s; }
.cursor.is-visible { opacity: 1; }
.cursor.on-pink { background: var(--white); }
.cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(242,10,94,.18); border: 1px solid var(--pink); }
.cursor.on-pink.is-hover { background: rgba(255,255,255,.2); border-color: var(--white); }
.cursor.has-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--pink); border: 0; }
.cursor.on-pink.has-label { background: var(--white); }
.cursor__label { font-size: 9px; letter-spacing: .2em; color: var(--white); opacity: 0; transition: opacity .3s; }
.cursor.on-pink .cursor__label { color: var(--black); }
.cursor.has-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Reveal helper */
.js .reveal { opacity: 0; transform: translateY(24px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .erow { grid-template-columns: 90px minmax(0, 1fr) auto; row-gap: 8px; }
  .erow__format { grid-column: 2; grid-row: 1; }
  .erow__title { grid-column: 2; grid-row: 2; }
  .erow__place { grid-column: 1; grid-row: 2; }
  .erow__date { grid-row: 1; }
  .erow .btn { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 860px) {
  :root { --cell: 56px; --gutter: 20px; --content-left: var(--gutter); --band-h: clamp(80px, 13vh, 130px); }
  .hero__band { top: 50%; }
  .frame__line--left, .rail { display: none; }
  .frame__menu { left: auto; right: 118px; top: 0; }
  .frame__dock { left: calc(var(--cell) + 16px); max-width: calc(100vw - var(--cell) - 190px); font-size: 10px; letter-spacing: .16em; }
  .frame__dock-text::before { width: 14px; }
  html.is-past-hero:not(.bar-clear) .frame::before { opacity: 1; }
  .hscroll { scroll-padding-left: var(--gutter); }
  .section-head--split { grid-template-columns: 1fr; }
  .intro__grid, .join__grid { grid-template-columns: 1fr; gap: 32px; }
  .join__head, #join-form, .join .member, .join__thanks { grid-column: 1; grid-row: auto; }
  .join__head { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 22px; }
  .hscroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hscroll::-webkit-scrollbar { display: none; }
  .card { width: 84vw; height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: 42vw auto; scroll-snap-align: start; }
  .card__media img { transform: none; }
  .card--end { width: 70vw; grid-template-rows: 1fr; } /* no image row: heading + link sit at the bottom, level with the cards */
  .prow { grid-template-columns: 1fr; gap: 10px; }
  .prow__text { justify-self: start; width: auto; }
  .involve { grid-template-columns: 1fr; }
  .involve__item { min-height: 0; padding: 26px 0; }
  .involve__item + .involve__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .reel { position: relative; right: auto; top: auto; bottom: auto; width: 76px; margin-bottom: 16px; }
  .hero__next { justify-items: start; text-align: left; }
  .hero__scroll { display: none; }
  .footer__wordmark { width: calc(100% - 2 * var(--gutter)); margin-left: var(--gutter); }

  /* --- v2 phone refinements --- */
  /* Top bar: 40px tap target for Events; menu sits beside it */
  .btn-frame { height: 40px; top: 8px; right: 12px; padding: 0 6px 0 14px; }
  .btn-frame__arrow { width: 28px; height: 28px; }
  .frame__menu { right: 0; }                 /* menu icon on the far right, Events beside it */
  .btn-frame { right: var(--cell); }
  .legal-page .btn-frame { right: 12px; }    /* legal pages have no menu icon: Events stays at the edge */
  /* Forms: labels a touch bigger so they read on a phone */
  .field label, .chips legend { font-size: 13px; }
  /* Principles: rows stay fully visible (no fade in/out, which read like a menu); the rule still draws in */
  .js .prow { opacity: 1; transition: none; }
  .prow { -webkit-tap-highlight-color: transparent; }
  /* Docked eyebrow: no lead line, short labels (set in JS) so nothing truncates */
  .frame__dock { max-width: calc(100vw - var(--cell) - 210px); letter-spacing: .14em; }
  .frame__dock-text::before { display: none; }
  /* Loader: wordmark reads properly on a small screen */
  .loader__lockup { width: min(76vw, calc(44vh * 845 / 438)); }
  .loader__count { font-size: calc(min(76vw, calc(44vh * 845 / 438)) * .075); }
  /* Events: stacked cards, no squeezed columns */
  .erow { grid-template-columns: 1fr auto; grid-template-areas: "date place" "fmt fmt" "title title" "btn btn"; column-gap: 16px; row-gap: 10px; padding: 26px 0 30px; align-items: start; }
  .erow__date { grid-area: date; } .erow__date br { display: none; }
  .erow__place { grid-area: place; justify-self: end; }
  .erow__format { grid-area: fmt; margin-top: 6px; }
  .erow__title { grid-area: title; font-size: clamp(28px, 8vw, 36px); }
  .erow .btn { grid-area: btn; justify-self: start; margin-top: 8px; }
  .erow:hover .erow__title { transform: none; }
  .events__cta .btn--xl { width: 100%; justify-content: space-between; }
  /* Formats: position indicator under the swipeable cards */
  .hs-pager { display: flex; gap: 6px; padding: 22px var(--gutter) 0; }
  .hs-pager i { height: 2px; flex: 0 0 22px; background: var(--line); transition: flex-basis .5s var(--ease), background-color .3s; }
  .hs-pager i.is-on { flex-basis: 44px; background: var(--pink); }
  /* Partner: let the heading wrap naturally */
  .partner .title br { display: none; }
  /* Footer follow row: label on its own line, links side by side */
  .footer__follow { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 28px; row-gap: 14px; }
  .footer__follow span { grid-column: 1 / -1; margin-right: 0; }
  .footer__legal { margin-left: 0; flex-wrap: wrap; }
}
.hs-pager { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .prow { opacity: 1; transform: none; }
}

/* Phones held sideways (short + narrow): intro and next event side by side so nothing meets the ticker */
@media (max-width: 860px) and (max-height: 500px) {
  .hero__foot { flex-direction: row; align-items: flex-end; }
  .hero__next { justify-items: end; text-align: right; }
  .reel { display: none; }
  .hero__lead { font-size: 20px; }
}

/* 404 */
.nf { min-height: 100vh; min-height: 100svh; background: var(--pink); color: var(--white); display: grid; place-items: center; }
.nf__inner { display: grid; justify-items: start; gap: 22px; width: min(620px, 100% - 40px); }
.nf__wordmark { width: min(360px, 70vw); height: auto; color: var(--white); margin-bottom: 20px; }
.nf__code { font-size: 11px; letter-spacing: .2em; }
.nf__text { font-family: var(--f-text); font-weight: 300; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; }
