/* The People's Pancakes: shared styles for every page (redesign, 2026-11).
   Built from tools/site/templates/ by tools/site/build_pages.py; edit the template, not website-next/site.css.
   Rules this file keeps (REDESIGN_PLAN.md section 1): one 12-column grid; text at 60% white or brighter and
   0.72rem or larger; one accent (Honey) never used for paragraphs; nothing animates on its own. */

/* Fallback faces sized to match the condensed display face, so a slow or blocked Google Fonts load doesn't push
   the headline under the photo (size-adjust: Chrome, Firefox, Safari 17+; older Safari gets the wrap below). */
@font-face { font-family: 'PP Narrow Fallback'; src: local('Arial Narrow Bold'), local('ArialNarrow-Bold'), local('Roboto Condensed Bold'), local('RobotoCondensed-Bold'); font-weight: 700; size-adjust: 88%; }
@font-face { font-family: 'PP Wide Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Roboto Bold'), local('Roboto-Bold'), local('Helvetica Neue Bold'), local('HelveticaNeue-Bold'); font-weight: 700; size-adjust: 62%; }

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

:root {
    --black: #000;
    --white: #fff;
    --w80: rgba(255, 255, 255, 0.8);
    --w60: rgba(255, 255, 255, 0.6);   /* 7.4:1 on black: the dimmest allowed for text */
    --w35: rgba(255, 255, 255, 0.35);  /* hairlines and borders only */
    --w20: rgba(255, 255, 255, 0.2);
    --w10: rgba(255, 255, 255, 0.1);
    --w06: rgba(255, 255, 255, 0.06);
    --surface: #0c0c0c;
    --accent: #EBB250;                 /* Honey: 11.0:1 on black; never as text on white */
    --on-accent: #000;
    --max: 1200px;
    --px: clamp(1.5rem, 5vw, 3rem);
    --gap: 1.5rem;
    --radius: 8px;
    --nav-h: 4rem;
    --display: 'Sofia Sans Extra Condensed', 'PP Narrow Fallback', 'PP Wide Fallback', 'Arial Narrow', sans-serif;
    --text: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; background-color: var(--black); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, picture, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: 1rem; top: -4rem; z-index: 2000;
    padding: 0.6rem 1rem; border-radius: var(--radius);
    background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 0.85rem;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── GRID: every edge sits on one 12-column grid ── */
.wrap {
    max-width: calc(var(--max) + 2 * var(--px));
    margin: 0 auto;
    padding-left: var(--px);
    padding-right: var(--px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
}

/* ── TYPE ── */
.h1, .h2, .h3 {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 0.92;
    text-wrap: balance;
}

.h1 { font-size: clamp(2.75rem, 12vw, 7.5rem); overflow-wrap: break-word; }
.h2 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
.h3 { font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1; }

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.6;
    color: var(--w80);
    max-width: 32rem;
}

.body { font-size: 1rem; line-height: 1.7; color: var(--w80); max-width: 36rem; }
.body + .body { margin-top: 0.9rem; }

.label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--w80);
}

.section-note { margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.6; color: var(--w60); }
.section-note a { color: var(--white); border-bottom: 1px solid var(--accent); }
.section-note a:hover { color: var(--accent); }

/* ── LINKS AND BUTTONS ── */
.link {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    padding-bottom: 3px;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 2px;
    transition: color 0.25s ease, background-size 0.3s ease;
}
.link:hover { color: var(--accent); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    background-color: var(--accent);
    color: var(--on-accent);
    font-family: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ── NAV (hides on scroll down, returns on scroll up) ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--w06);
    transition: transform 0.3s ease;
}

.nav-inner {
    max-width: calc(var(--max) + 2 * var(--px));
    margin: 0 auto;
    padding: 0 var(--px);
    height: var(--nav-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { height: 40px; width: auto; transition: opacity 0.25s; }
.nav-home:hover .nav-logo { opacity: 0.75; }

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

.nav-links a {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--w80);
    transition: color 0.25s;
}
.nav-links a:not(.nav-cta):hover, .nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--accent); }
.nav-links .nav-cta { color: var(--on-accent); min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-links .nav-cta:hover { color: var(--on-accent); }
.nav-links .nav-cta[aria-current="page"] { background: transparent; color: var(--accent); }

main { display: block; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }

/* ── SHARED SECTION RHYTHM ── */
.sec { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sec + .sec { border-top: 1px solid var(--w06); }
.sec-head { margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }

.photo { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* A two-column block: the heading's top meets the photo's top, the last line meets its bottom */
.split { align-items: stretch; }
.split .split-txt { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.split .split-txt > .link { align-self: flex-start; }
/* the photo stretches to its row, so its bottom meets the last line of text even when the text is taller */
.split .photo { width: 100%; height: 100%; }
/* pull display headings up so the letters, not the line box, meet the photo's top */
.hero .h1, .what-txt .h2, .involve-txt .h2 { margin-top: -0.1em; }

/* ── HERO ── */
.hero { padding: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(3rem, 7vw, 5rem); }
.hero .grid { row-gap: 2rem; }
.hero-txt { grid-column: 1 / span 6; position: relative; z-index: 1; min-width: 0; }
.hero-pic { grid-column: 8 / span 5; }
/* width stays 5 columns; on short screens the height caps and the photo crops, so both edges stay on the grid */
.hero-pic .photo { width: 100%; aspect-ratio: 3 / 4; max-height: calc(100vh - var(--nav-h) - 6rem); max-height: calc(100svh - var(--nav-h) - 6rem); }
.hero .lede { margin-top: 1.25rem; }

.count { display: flex; align-items: center; gap: 1rem; }
.count-num {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.95;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
/* the real number stays in the page; it is only hidden until the count-up starts (shown if the script fails) */
.js .count-num:not(.ready) { visibility: hidden; }
.reveal-all .count-num { visibility: visible; }
.count-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w60); line-height: 1.5; }

.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-act .ctas { margin-top: 2rem; }

/* ── NEXT EVENT ── */
.event-pic { grid-column: 1 / span 5; }
.event-pic .photo { aspect-ratio: 4 / 3; }
.event-card { grid-column: 7 / span 6; }
.event-card .signup-form { max-width: none; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.event-card .h2 { margin-top: 0.9rem; }
.event-sub { margin-top: 1rem; color: var(--w80); font-size: 1.05rem; }
.event-follow { margin-top: 1.5rem; }

/* ── SIGNUP FORMS (Google Form; see the script) ── */
.signup-form { margin-top: 1rem; display: flex; gap: 0.5rem; max-width: 30rem; }
.signup-form input {
    flex: 1;
    min-width: 0;
    min-height: 3rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--w35);
    background-color: var(--surface);
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.25s;
}
.signup-form input::placeholder { color: var(--w60); }
.signup-form input:focus { outline: none; border-color: var(--accent); }
.signup-form button { flex: none; }
.signup-form button[aria-disabled="true"] { opacity: 0.6; cursor: default; filter: none; transform: none; }

.signup-msg { margin-top: 1rem; font-size: 1rem; font-weight: 700; color: var(--white); outline: none; }
.signup-msg:empty { margin-top: 0; }

/* ── WHAT THIS IS ── */
.what-txt { grid-column: 1 / span 6; }
.what-pic { grid-column: 8 / span 5; }
.what-pic .photo { aspect-ratio: 4 / 5; }
.pillars { display: grid; gap: 1.6rem; margin-top: 1.75rem; }
.pillars dt { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1; }
.pillars dd { margin-top: 0.45rem; color: var(--w80); line-height: 1.65; max-width: 32rem; }

/* ── PAST EVENTS ── */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ev-pic { aspect-ratio: 1 / 1; }
.ev-pic.typo { display: grid; place-items: center; border: 1px solid var(--w10); background: var(--surface); }
.ev-pic.typo span { font-family: var(--display); font-weight: 700; text-transform: uppercase; text-align: center; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 0.95; color: var(--accent); padding: 1rem; }
.ev-num { margin-top: 0.9rem; font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--accent); }
.ev-date { margin-top: 0.35rem; font-size: 0.95rem; color: var(--w80); }
.ev-link { display: block; }
.ev-link .ev-pic img { transition: transform 0.45s ease; }
.ev-link:hover .ev-pic img, .ev-link:focus-visible .ev-pic img { transform: scale(1.03); }
.ev-go { margin-top: 0.45rem; font-size: 0.9rem; font-weight: 700; color: var(--accent); }
.ev-link:hover .ev-go { text-decoration: underline; text-underline-offset: 3px; }

/* ── PHOTO SLIDESHOW (moves only when the visitor moves it) ── */
.rail { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap);
        overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
.rail .photo { aspect-ratio: 4 / 5; }
.rail:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rail-nav { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.25rem; }
.rail-btn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--w35); background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; transition: border-color 0.2s, color 0.2s, opacity 0.2s; }
.rail-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.rail-btn:hover:not([aria-disabled="true"]) { border-color: var(--accent); color: var(--accent); }
.rail-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.rail-count { font-size: 0.9rem; color: var(--w80); font-variant-numeric: tabular-nums; min-width: 5.5rem; }

/* ── VIDEO SHELF ── */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.video-card { display: flex; flex-direction: column; }
.video-thumb { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.video-thumb img, .video-thumb .preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease, opacity 0.35s ease; }
.video-thumb .preview { opacity: 0; }
.video-thumb.previewing .preview { opacity: 1; }
.video-card:hover .video-thumb img { transform: scale(1.02); }
.play-btn {
    position: absolute; left: 50%; top: 50%;
    width: 56px; height: 56px; margin: -28px 0 0 -28px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid var(--white);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s, opacity 0.3s;
}
.play-btn svg { width: 18px; height: 18px; fill: var(--white); margin-left: 3px; transition: fill 0.25s; }
.video-card:hover .play-btn, .video-card:focus-visible .play-btn { background: var(--accent); border-color: var(--accent); }
.video-card:hover .play-btn svg, .video-card:focus-visible .play-btn svg { fill: var(--on-accent); }
.video-thumb.previewing .play-btn { opacity: 0; }
.video-title { margin-top: 0.9rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.video-sub { margin-top: 0.35rem; font-size: 0.9rem; color: var(--w60); }

/* ── PRESS (link-sized thumbnails only) ── */
.press-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--w10); }
.press-row:first-of-type { border-top: 1px solid var(--w10); }
.press-thumb img { width: 140px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.press-src { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--w60); }
.press-title { display: inline-block; margin-top: 0.35rem; font-size: 1.05rem; font-weight: 700; line-height: 1.45; }
.press-title:hover { color: var(--accent); }
.row-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.row-links a, .chip {
    display: inline-block;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.4rem 0.8rem; border-radius: 999px;
    border: 1px solid var(--accent); color: var(--accent);
    transition: background 0.2s, color 0.2s;
}
.row-links a:hover { background: var(--accent); color: var(--on-accent); }

/* ── GET INVOLVED STRIP ── */
.involve-pic { grid-column: 1 / span 5; }
.involve-pic .photo { aspect-ratio: 3 / 2; }
.involve-txt { grid-column: 7 / span 6; }
.involve-txt .lede { margin-top: 1rem; }

/* ── STAY IN THE LOOP ── */
.signup-sec .grid { align-items: end; row-gap: 1.25rem; }
.signup-head { grid-column: 1 / span 6; }
.signup-head p { margin-top: 0.9rem; color: var(--w80); }
.signup-box { grid-column: 7 / span 6; }
.signup-box .signup-form { margin-top: 0; max-width: none; }

/* ── INNER PAGES (About, Contact) ── */
.page-head { padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4rem)) 0 clamp(2rem, 4vw, 3rem); }
.page-head .lede { margin-top: 1.25rem; }
.page-photo .photo { aspect-ratio: 16 / 9; }
.block { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--w06); }
.block-pic { grid-column: 1 / span 4; }
.block-pic .photo { aspect-ratio: 4 / 5; }
.block-txt { grid-column: 6 / span 7; }
.block-txt .h3 { margin-bottom: 1rem; }
.note { margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--w10); border-radius: var(--radius); font-size: 0.95rem; line-height: 1.6; color: var(--w80); max-width: 36rem; }
.note b { color: var(--white); }
.strip { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.strip .photo { aspect-ratio: 1 / 1; }
.credit { margin-top: 1rem; font-size: 0.8rem; color: var(--w60); }

.photo > picture { width: 100%; height: 100%; }
.page-photo { margin-bottom: clamp(1rem, 3vw, 2rem); }
.who-txt { grid-column: 1 / span 7; }
.who-txt .h3, .find-txt .h3 { margin-bottom: 0.9rem; }
.strip-wrap { margin-top: 2rem; }
.strip li { list-style: none; }
.find-txt { grid-column: 1 / span 5; }
.find-txt .link { overflow-wrap: anywhere; }
.contact-box { grid-column: 7 / span 6; }
.find-txt.block-txt { grid-column: 1 / span 5; }
.contact-box.block-txt { grid-column: 7 / span 6; }

.cards-sec { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gap); }
.card-pic { aspect-ratio: 4 / 5; }
.card .h3 { margin-top: 1.25rem; }
.card .body { margin-top: 0.7rem; }
.card .note { max-width: none; }
.strip-cap { margin-top: 0.9rem; font-size: 0.85rem; color: var(--w60); }
.closing { margin-top: 2.5rem; }
.email { overflow-wrap: anywhere; }
.hp { display: none; }

/* Contact form (Netlify Forms: stored under Netlify > Forms > contact) */
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-form label { display: grid; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w80); }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius);
    border: 1px solid var(--w35); background: var(--surface); color: var(--white);
    font-size: 1rem; letter-spacing: normal; text-transform: none; font-weight: 400;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn { justify-self: start; }
.contact-form button[aria-disabled="true"] { opacity: 0.6; cursor: default; filter: none; transform: none; }
.contact-msg { margin-top: 1rem; font-weight: 700; outline: none; }
.contact-msg:empty { margin-top: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.btn.btn-ghost { background: transparent; color: var(--white); border-color: var(--w35); }
.btn.btn-ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--w06); }
.footer-inner {
    max-width: calc(var(--max) + 2 * var(--px));
    margin: 0 auto;
    padding: 2rem var(--px) 2.5rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem;
}
.footer-left { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; font-size: 0.8rem; color: var(--w60); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
.footer-links a { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w80); transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }

/* ── VIDEO VIEWER (opens only on a click; sizes carried over from the 11/03 fixes) ── */
.viewer {
    border: 0;
    padding: 0;
    margin: auto;
    width: min(1080px, 92vw, calc((100vh - 6.5rem) * 16 / 9));
    width: min(1080px, 92vw, calc((100dvh - 6.5rem) * 16 / 9));
    background: #000;
    color: var(--white);
    border-radius: var(--radius);
    overflow: auto;
}
.viewer::backdrop { background: rgba(0, 0, 0, 0.88); }
html:has(.viewer[open]), html:has(.waffle-check[open]) { overflow: hidden; }
.viewer-frame { aspect-ratio: 16 / 9; background: #000; }
.viewer-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer.tall { width: min(92vw, 405px, calc((100vh - 6.5rem) * 9 / 16)); width: min(92vw, 405px, calc((100dvh - 6.5rem) * 9 / 16)); }
.viewer.tall .viewer-frame { aspect-ratio: 9 / 16; }
.viewer-bar { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0.8rem; }
.viewer-bar a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (orientation: landscape) and (max-height: 500px) {
    .viewer.tall { width: fit-content; max-width: 94vw; }
    .viewer.tall[open] { display: flex; }
    .viewer.tall .viewer-frame { height: calc(100vh - 3rem); height: calc(100dvh - 3rem); }
    .viewer.tall .viewer-bar { flex-direction: column-reverse; justify-content: flex-end; align-items: stretch; gap: 0.75rem; padding: 0.8rem; }
    .viewer.tall .viewer-close { margin-left: 0; }
}
.viewer-bar a, .viewer-close { font-family: var(--text); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.viewer-bar a { color: var(--w80); padding: 0.5rem 0; transition: color 0.25s; }
.viewer-bar a:hover { color: var(--accent); }
.viewer-close { margin-left: auto; background: none; color: var(--white); border: 1px solid var(--w35); border-radius: 6px; padding: 0.55rem 1rem; cursor: pointer; transition: border-color 0.25s; }
.viewer-close:hover { border-color: var(--accent); }

/* ── BIG WAFFLE CHECK (first-visit joke gate; layout carried over from the 11/03 fixes) ── */
.waffle-check {
    border: 1px solid var(--w20);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 4vw, 2rem);
    margin: auto;
    width: min(440px, 92vw);
    max-height: calc(100dvh - 1.5rem);
    overflow: auto;
    background: #000;
    color: var(--white);
    text-align: center;
}
.waffle-check::backdrop { background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wc-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--w60); }
.wc-title { margin-top: 0.4rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.9rem, 6vw, 2.3rem); line-height: 0.95; }
.wc-photo { margin: 1.1rem 0 0.9rem; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 34vh; max-height: 34dvh; object-fit: cover; border-radius: 6px; }
.wc-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--w80); }
.wc-value { margin-top: 0.15rem; font-family: var(--display); font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--accent); }
.wc-of { font-family: var(--text); font-size: 1rem; font-weight: 600; color: var(--w60); margin-left: 0.15rem; }
.wc-form input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin-top: 0.4rem; background: transparent; cursor: pointer; }
.wc-form input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--w20); }
.wc-form input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--w20); }
.wc-form input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13px; border-radius: 50%; background: var(--accent); border: 0; }
.wc-form input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); border: 0; }
.wc-form input[type="range"]:focus { outline: none; }
.wc-form input[type="range"]:focus-visible { outline: 1px solid var(--w35); outline-offset: 5px; border-radius: 4px; }
.wc-scale { display: flex; justify-content: space-between; margin: 0 -0.55rem; }
.wc-end { min-width: 2.2rem; min-height: 2rem; padding: 0.3rem 0.55rem; background: none; border: 0; font-family: var(--text); font-size: 0.8rem; font-weight: 700; color: var(--w80); cursor: pointer; transition: color 0.25s; }
.wc-end:hover { color: var(--accent); }
.wc-end:focus { outline: none; }
.wc-end:focus-visible { outline: 2px solid var(--accent); border-radius: 4px; }
.wc-submit { width: 100%; margin-top: 1rem; }
.wc-msg { min-height: 1.5em; margin-top: 0.85rem; font-size: 0.95rem; font-weight: 700; }
.wc-fine { margin-top: 0.6rem; font-size: 0.75rem; letter-spacing: 0.02em; color: var(--w60); }
.waffle-check.shake { animation: wcShake 0.45s cubic-bezier(.36, .07, .19, .97); }
@keyframes wcShake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-7px); }
    40%, 60% { transform: translateX(7px); }
}
.waffle-check.passed { transition: opacity 0.4s ease 0.7s; opacity: 0; }
@media (max-height: 680px) {
    .wc-photo { max-height: 24vh; max-height: 24dvh; margin: 0.7rem 0 0.5rem; }
    .wc-title { font-size: 1.65rem; }
    .wc-value { font-size: 2.3rem; }
    .wc-end { min-height: 1.8rem; }
    .wc-submit { margin-top: 0.7rem; }
    .wc-msg { margin-top: 0.6rem; }
}
/* very short portrait screens (iPhone SE 1st gen with toolbars): compact, so even the longest jab fits */
@media (orientation: portrait) and (max-height: 520px) {
    .waffle-check { padding: 0.9rem 1rem; }
    .wc-title { font-size: 1.45rem; }
    .wc-photo { max-height: 15vh; max-height: 15dvh; margin: 0.5rem 0 0.35rem; }
    .wc-value { font-size: 2rem; }
    .wc-form input[type="range"] { height: 24px; margin-top: 0.2rem; }
    .wc-end { min-height: 1.5rem; padding-top: 0.1rem; padding-bottom: 0.1rem; }
    .wc-submit { margin-top: 0.45rem; min-height: 2.5rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .wc-msg { margin-top: 0.35rem; font-size: 0.85rem; min-height: 1.3em; }
    .wc-fine { margin-top: 0.3rem; }
}
@media (orientation: landscape) and (max-height: 500px) and (min-width: 480px) {
    .waffle-check { width: min(760px, 94vw); padding: 0.45rem 1.25rem; }
    .wc-eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; }
    .wc-title { font-size: 1.2rem; margin-top: 0.15rem; }
    .wc-label { font-size: 0.72rem; }
    .wc-form input[type="range"] { height: 24px; }
    .wc-end { min-height: 1.4rem; padding-top: 0.1rem; padding-bottom: 0.1rem; }
    .wc-form input[type="range"] { margin-top: 0.15rem; }
    .wc-fine { margin-top: 0.3rem; }
    .waffle-check[open] { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; align-items: center; }
    .waffle-check > * { grid-column: 2; }
    .waffle-check .wc-photo { grid-column: 1; grid-row: 1 / 5; margin: 0; height: calc(100vh - 4rem); height: calc(100dvh - 4rem); max-height: none; aspect-ratio: auto; }
    .wc-value { font-size: 1.6rem; }
    .wc-submit { margin-top: 0.35rem; min-height: 2.2rem; padding-top: 0.45rem; padding-bottom: 0.45rem; }
    .wc-msg { margin-top: 0.25rem; min-height: 1.2em; font-size: 0.82rem; }
    .wc-fine { margin-top: 0.15rem; }
}

/* ── REVEALS: content hides only once the page's script has said it will reveal it (fails open) ── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.vis, .js.reveal-all .reveal { opacity: 1; transform: none; }

/* ── NOT FOUND / THANKS ── */
.lone { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem var(--px); }
.lone img { margin: 0 auto 2rem; height: 64px; width: auto; }
.lone .h1 { font-size: clamp(2.75rem, 10vw, 5rem); }
.lone p { margin: 1rem auto 1.75rem; color: var(--w80); max-width: 26rem; }

/* ── RESPONSIVE ── */
@media (max-width: 1023px) {
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
    .rail { grid-auto-columns: calc((100% - var(--gap)) / 2.15); }
}

@media (max-width: 599px) {
    .rail { grid-auto-columns: 82%; }
}

@media (max-width: 899px) {
    :root { --nav-h: 3.5rem; --gap: 1rem; }
    .nav-logo { height: 32px; }
    .nav-links { gap: 1.25rem; }
    .nav-links .nav-cta { display: none; }

    .hero-txt, .hero-pic, .event-pic, .event-card, .what-txt, .what-pic, .involve-pic, .involve-txt,
    .signup-head, .signup-box, .block-pic, .block-txt, .who-txt, .find-txt, .contact-box { grid-column: 1 / -1; }
    .find-txt.block-txt, .contact-box.block-txt { grid-column: 1 / -1; }
    .contact-box { margin-top: 2.5rem; }

    .hero-pic { justify-self: stretch; }
    .hero-pic .photo { max-height: none; }
    .split .split-txt { display: block; }
    .split .split-txt > * + * { margin-top: 1.5rem; }
    .hero-act { margin-top: 0.5rem; }
    .hero-act .ctas { margin-top: 1.75rem; }
    .what-pic { order: 2; margin-top: 2rem; }
    /* stacked: text first, then its photo, every photo full width */
    .event-pic, .involve-pic { order: 2; margin-top: 1.75rem; }
    .block-pic { margin-bottom: 1.75rem; }
    .split .photo { height: auto; }
    .event-follow { margin-top: 1.25rem; }
    .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .signup-box .signup-form { max-width: 30rem; }
}

@media (max-width: 699px) {
    .cards { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
    .video-title { font-size: 1.3rem; }
    .play-btn { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
    .play-btn svg { width: 14px; height: 14px; }
    .press-row { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; }
    .press-thumb img { width: 96px; }
    .press-title { font-size: 0.98rem; }
    .signup-form { flex-direction: column; }
    .signup-form button { width: 100%; }
    .ev-num { font-size: 1.7rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
    .nav-links { gap: 0.9rem; }
    .nav-links a { font-size: 0.72rem; letter-spacing: 0.1em; }
}

/* Respect the phone or computer's "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { transition: none; opacity: 1; transform: none; }
    .btn:hover, .video-card:hover .video-thumb img, .ev-link:hover .ev-pic img, .ev-link:focus-visible .ev-pic img { transform: none; }
    .waffle-check.shake { animation: none; }
    .waffle-check.passed { transition: none; opacity: 1; }
    *, *::before, *::after { transition-duration: 0s !important; }
}
