/* ============================================================================
   rr.css, the events site's design system.

   Lifted verbatim from the /superfans page in rocketride-saas
   (apps/home-ui/src/components/landing/superfans/superfansKit.tsx,
    utils/themeTokens.ts, landing/PrintCta.ts, landing/FeaturePanel.tsx).

   The grammar in one line: a cream dot-grid field, graphite display ink,
   Poppins headlines, IBM Plex Mono labels, square corners everywhere, and the
   logo red used only as a shape, a print offset, a pip, a rule under a link -
   never as text.

   Light only, like every RocketRide marketing page.
   ========================================================================= */

:root {
  /* Page surface, themeTokens TOKENS.light */
  --paper:        #f0efe9;
  --paper-alt:    #eceae3;
  --surface:      #e8e7e1;
  --surface-hi:   #e2e0d9;
  --nav:          #f8f7f3;

  /* Ink ladder */
  --ink:          #12111a;              /* panelPaper('light').face, display ink */
  --ink-pri:      #0a0a0a;
  --ink-72:       rgba(10,10,10,0.72);
  --ink-55:       rgba(10,10,10,0.55);
  --ink-42:       rgba(10,10,10,0.42);
  --line:         rgba(0,0,0,0.08);
  --line-strong:  rgba(0,0,0,0.18);

  /* The accent. BRAND.logoRed. Shapes only, never body text. */
  --red:          #f93822;

  /* The dark sheet and its cream ink, panelPaper('light') */
  --sheet:        #12111a;
  --cream:        rgba(240,239,233,1);
  --cream-72:     rgba(240,239,233,0.72);
  --cream-55:     rgba(240,239,233,0.55);
  --cream-18:     rgba(240,239,233,0.18);

  /* The hero print plate, themeTokens HERO_PLATE */
  --disk:         #e9d5c7;
  --plate-ink:    #171310;

  --display: 'Poppins', 'Instrument Sans', sans-serif;
  --body:    'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Horizon Blue. The chrome's hover colour - the page body never uses it. */
  --accent:  #1f9ad0;

  --col:     1280px;   /* the shared column */
  --pad:     64px;     /* its side padding (20px on a phone) */
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink-72);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* The shared textured field: dot grid + fine noise, exactly as /superfans. */
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at center, rgba(0,0,0,0.09) 1px, transparent 1.5px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat, repeat;
  background-size: 36px 36px, 300px 300px;
}

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

/* ---------------------------------------------------------------- column -- */
.col { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding-top: 104px; }

/* ------------------------------------------------------------------ type -- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.03em; margin: 0; }

.h2 {
  font-family: var(--display);
  font-size: min(44px, 3.2vw);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 14px;
}
.lede {
  margin: 0 0 28px;
  max-width: 660px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-pri);
  text-wrap: pretty;
}

/* The mono uppercase micro-label. A red square pip opens it. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-55);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--red); flex: none; }
.eyebrow.slash::before { content: "//"; width: auto; height: auto; background: none; color: var(--red); font-weight: 600; }

/* One to four solid squares, the superfans rank glyph, reused here as a
   small count mark (photos in a gallery, events in a month). */
.pips { display: inline-flex; gap: 5px; align-items: center; height: 11px; }
.pips i { width: 9px; height: 9px; display: block; background: var(--red); }

/* ----------------------------------------------------------------- links -- */
/* .draw, a red rule at rest; an ink rule draws in from the left on hover. */
a { color: inherit; }
.draw { position: relative; color: var(--ink-pri); text-decoration: none; border-bottom: 1px solid var(--red); }
.draw::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right center;
  transition: transform .2s cubic-bezier(0.22,1,0.36,1);
}
@media (hover: hover) { .draw:hover::after { transform: scaleX(1); transform-origin: left center; } }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ------------------------------------------------------------ print CTAs -- */
/* PrintCta.ts: a solid ink slab carrying a 6px offset block in the accent.
   Hover tightens the offset to 3px and slides the slab into the gap it left,
   so the far edge holds still and the button reads as physically pressed. */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 14px 26px; border-radius: 0; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cta.lg { font-size: 14px; padding: 16px 30px; }
.cta.primary {
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  box-shadow: -6px 6px 0 0 var(--red);
}
.cta.primary:hover { transform: translate(-3px, 3px); box-shadow: -3px 3px 0 0 var(--red); }
.cta.secondary { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.cta.secondary:hover { background: var(--ink); color: var(--paper); }

/* The same pair in the dark sheet's tones: cream slab, red offset. */
.sheet .cta.primary { color: var(--sheet); background: var(--cream); border-color: var(--cream); }
.sheet .cta.secondary { color: var(--cream); border-color: var(--cream); }
.sheet .cta.secondary:hover { background: var(--cream); color: var(--sheet); }

/* ------------------------------------------------------------------- nav -- */
/* LandingNav.tsx. House chrome, not the print language: Instrument Sans, 4px
   radii, Horizon Blue on hover. Full width with a 40px gutter, and it scrolls
   away with the page rather than sticking - same as every cloud page. */
.nav { background: var(--nav); }
.nav-in {
  display: flex; align-items: center; gap: 24px;
  height: 77px; padding: 0 40px;
}
.nav-logo { display: inline-flex; align-items: center; flex: none; }
.nav-logo img { height: 28px; width: auto; display: block; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.nav-pill {
  font-family: var(--body); font-size: 15px; font-weight: 600;
  padding: 9px 20px; border-radius: 4px; text-decoration: none; white-space: nowrap;
  color: var(--ink-pri); background: transparent; border: 1px solid rgba(0,0,0,0.15);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.nav-pill:hover { border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.03); }
.nav-pill.solid {
  color: #f5f4f0; background: var(--ink-pri); border-color: var(--ink-pri);
}
.nav-pill.solid:hover { background: #222223; border-color: #222223; }

/* ------------------------------------------------------------------ hero -- */
.hero { padding: 72px 0 8px; }
.hero-in {
  max-width: var(--col); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0, 480px);
  gap: 56px; align-items: center;
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(52px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.035em;
  color: var(--ink); margin: 0 0 24px; text-wrap: balance;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px 20px; }

/* ===========================================================================
   The hero art, and the one piece of motion on this site.

   The drawing is an ink stencil on transparency, so the page's own cream and
   dot grid read through it rather than it sitting on a pasted rectangle of a
   slightly different cream. Its own baked dot grid was removed for the same
   reason - two grids at different pitches fight.

   The motion is a transmission, not a fade. Lunar imagery really did arrive a
   line at a time, so the drawing is scanned in from the top behind a thin red
   line, once, on load. After that the only thing still moving is three faint
   rings leaving the microphone, which is what the picture is of: someone
   talking, and the talk going out. Nothing else on the page animates.
   ======================================================================== */
.plate { position: relative; width: 100%; }
.plate .art { display: block; }
.plate img { width: 100%; height: auto; display: block; }

/* The red line that rides the leading edge of the reveal. Painted as a 2px
   gradient band so it moves by background-position and never triggers layout. */
.plate .scan {
  position: absolute; inset: 0 -3%; pointer-events: none; opacity: 0;
  background-image: linear-gradient(90deg, transparent, var(--red) 10%, var(--red) 90%, transparent);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 0;
}

/* Concentric rings leaving the microphone capsule, measured off the artwork. */
.plate .signal { position: absolute; left: 55.6%; top: 56.5%; width: 0; height: 0; pointer-events: none; }
.plate .signal i {
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1.5px solid var(--red); border-radius: 50%;
  opacity: 0; transform: scale(0.3);
}

/* Motion is added for people who have not asked for less of it, rather than
   taken away from those who have, so the still page is the default. */
@media (prefers-reduced-motion: no-preference) {
  .plate .art {
    clip-path: inset(0 0 100% 0);
    animation: rr-scan 1.5s cubic-bezier(0.33, 1, 0.68, 1) 0.25s forwards;
  }
  .plate .scan { animation: rr-scanline 1.5s cubic-bezier(0.33, 1, 0.68, 1) 0.25s forwards; }
  .plate .signal i { animation: rr-signal 6s ease-out 2s infinite; }
  .plate .signal i:nth-child(2) { animation-delay: 4s; }
  .plate .signal i:nth-child(3) { animation-delay: 6s; }
}

@keyframes rr-scan { to { clip-path: inset(0 0 0 0); } }
@keyframes rr-scanline {
  0%   { background-position: 0 0;    opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { background-position: 0 100%; opacity: 0; }
}
@keyframes rr-signal {
  0%   { opacity: 0;    transform: scale(0.3); }
  10%  { opacity: 0.45; }
  100% { opacity: 0;    transform: scale(6.5); }
}

/* ------------------------------------------------------- the ruled band --- */
/* /superfans "Build Often / Share Wins / Give Feedback": hairlines above and
   below, cells split by vertical hairlines, the first cell filled graphite. */
/* ----------------------------------------------------------------- tabs --- */
.tabbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ink); padding-bottom: 0; margin: 0 0 32px; }
.tab-switcher { display: flex; gap: 0; }
.tab {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-42);
  padding: 14px 22px 13px; margin-bottom: -1px;
  border: 1px solid transparent; border-bottom: 0;
  display: inline-flex; align-items: center; gap: 9px;
  transition: color .15s ease;
}
.tab::before { content: ""; width: 9px; height: 9px; background: transparent; flex: none; transition: background .15s ease; }
.tab:hover { color: var(--ink-72); }
.tab.active { color: var(--ink-pri); background: var(--paper); border-color: var(--ink); }
.tab.active::before { background: var(--red); }
.tabbar-right { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding-bottom: 14px; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---------------------------------------------------------------- cards --- */
/* The artifact-tile grammar: square corners, one hairline, a surface well for
   the image, and the print offset appearing on hover. */
/* Flex, not grid. A short row has to centre rather than hug the left edge with
   a hole beside it, and a lone card must not stretch the whole column. Grid
   cannot do both: with a definite max track, auto-fit computes its repeat count
   from the MAX, so minmax(300px, 380px) gives two columns in a 1152px field
   where three fit. Flex sizes from the basis and caps with max-width, so a full
   row is three across and a short row centres. */
.card-single, .card-grid {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: center;
}
.card-single > .card, .card-grid > .card { flex: 1 1 300px; max-width: 380px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line-strong); background: var(--paper-alt);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--ink); box-shadow: -6px 6px 0 0 var(--red); transform: translate(3px, -3px); }
.card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h2 {
  font-family: var(--display); font-size: 19px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.22; color: var(--ink); margin: 0;
  text-wrap: balance;
}
.card-body p { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--ink-55); }
.card-link {
  margin-top: auto; padding-top: 6px; align-self: flex-start;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-pri);
  border-bottom: 1px solid var(--red);
}
.card-link::after { content: " \2197"; }

/* ----------------------------------------------------------- dark sheet --- */
.sheet {
  background: var(--sheet); color: var(--cream-72);
  border: 1px solid var(--cream-18); border-radius: 10px;
  padding: 44px 48px;
}
.sheet h2 { color: var(--cream); }
.sheet .lede { color: var(--cream); }
.sheet a:not(.cta) { color: var(--cream); }

/* The archive block shows the archive. The three newest galleries sit under
   the copy with their names on them, so the promise and the evidence are in
   the same box, and each one is somewhere to go rather than a decoration. */
.archive-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.archive-head .lede { margin-bottom: 0; max-width: 56ch; }
.archive-head .hero-cta { flex-wrap: nowrap; }

.archive-recent {
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--cream-18);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.archive-recent a { display: block; text-decoration: none; color: inherit; }
.archive-recent .shot {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--cream-18); background: rgba(240,239,233,0.04);
  transition: border-color .15s ease;
}
.archive-recent img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.archive-recent a:hover .shot { border-color: var(--cream); }
.archive-recent a:hover img { transform: scale(1.04); }
.archive-recent .name {
  display: block; margin-top: 14px;
  font-family: var(--display); font-size: 16px; font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.25; color: var(--cream);
}
.archive-recent .when {
  display: block; margin-top: 5px;
  font-family: var(--mono); font-size: 12px; color: var(--cream-55);
}
.archive-recent a:focus-visible .shot { outline: 2px solid var(--cream); outline-offset: 3px; }

/* --------------------------------------------------------------- signoff -- */
.signoff { padding-top: 64px; padding-bottom: 88px; }
.signoff p { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--ink-72); text-wrap: pretty; }

/* ---------------------------------------------------------------- footer -- */
/* FooterSection.tsx FooterSitemap. Narrower than the page column (1100/48),
   brand block left, four columns right, baseline rule underneath. */
.foot { margin-top: 88px; background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 80px; }
/* The sign-off and the per-event legal row already carry the gap above them. */
main + .foot, .legal-footer + .foot { margin-top: 0; }
.foot-in, .foot-base { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.foot-in { display: flex; align-items: flex-start; gap: 64px; flex-wrap: wrap; }

.foot-brand { flex: 1 1 240px; max-width: 340px; }
.foot-wordmark { height: 44px; width: auto; display: block; }
.foot-social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--line); color: rgba(10,10,10,0.65);
  transition: border-color .15s ease, color .15s ease;
}
.foot-social a:hover { border-color: var(--accent); color: var(--accent); }
.foot-social svg { display: block; }

.foot-grid { flex: 2 1 360px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; gap: 48px; }
.foot-col h2 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(10,10,10,0.60); margin: 0 0 16px;
}
.foot-col a {
  display: block; font-family: var(--body); font-size: 13px; line-height: 1.3;
  color: rgba(10,10,10,0.65); text-decoration: none; padding: 5px 0;
  transition: color .15s ease;
}
.foot-col a:hover { color: var(--ink-pri); }

.foot-base { margin-top: 56px; }
.foot-base span {
  display: block; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: rgba(10,10,10,0.60);
}

/* ===========================================================================
   Gallery pages, the index of events and one event's photos.
   Same grammar: square corners, one hairline, the print offset on hover.
   ======================================================================== */

/* Going up a level. It replaces the eyebrow on pages that have a parent: it
   says where you are AND lets you act on it, which an eyebrow alone cannot. */
.back {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-55); text-decoration: none;
  margin: 0 0 18px; padding: 6px 0; min-height: 32px;
  transition: color .15s ease;
}
.back::before { content: "\2190"; font-size: 14px; transition: transform .15s ease; }
.back:hover { color: var(--ink-pri); }
@media (hover: hover) { .back:hover::before { transform: translateX(-3px); } }

/* The masthead every gallery page opens with. */
/* padding-TOP only: a shorthand would cancel the gutter inherited from .col. */
.masthead { padding-top: 56px; }
.masthead h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.035em;
  color: var(--ink); margin: 0 0 14px; text-wrap: balance;
}
.masthead > p { margin: 0; font-family: var(--mono); font-size: 15px; line-height: 1.6; color: var(--ink-72); max-width: 70ch; }
.masthead > p.eyebrow { font-size: 12px; }
.masthead-meta {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-55);
}
.masthead-meta .count { color: var(--ink-pri); display: inline-flex; align-items: center; gap: 10px; }
.masthead-meta .count::before { content: ""; width: 9px; height: 9px; background: var(--red); }
.masthead-meta .spacer { flex: 1; }

/* The event tiles on gallery/ */
.events { max-width: var(--col); margin: 0 auto; padding: 36px var(--pad) 0; display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.events > .ev { flex: 1 1 300px; max-width: 380px; }
.ev {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line-strong); background: var(--paper-alt);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ev:hover { border-color: var(--ink); box-shadow: -6px 6px 0 0 var(--red); transform: translate(3px, -3px); }
.ev-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.ev-body h2 { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.22; color: var(--ink); margin: 0; text-wrap: balance; }
.ev-body p { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--ink-55); }

/* The photo grid */
.grid { max-width: var(--col); margin: 0 auto; padding: 32px var(--pad) 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid a {
  display: block; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; position: relative;
  background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.grid a:hover { border-color: var(--ink); box-shadow: -5px 5px 0 0 var(--red); transform: translate(2px, -2px); }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty { max-width: var(--col); margin: 0 auto; padding: 80px var(--pad) 120px; font-family: var(--mono); font-size: 14px; color: var(--ink-55); }

/* The viewer. The backdrop is the sheet face at 88%, so cream ink on it clears
   AA over the cream page (superfansKit BACKDROP). */
.lb { position: fixed; inset: 0; background: rgba(18,17,26,0.88); display: none; align-items: center; justify-content: center; z-index: 999; }
.lb.open { display: flex; }
/* The bar is not sticky, so the viewer covers it; this only matters when a
   gallery is short enough that the bar is still on screen. */
body.lb-open .nav { opacity: 0; pointer-events: none; }
.lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; display: block; border: 1px solid var(--cream-18); }
.lb .counter { position: absolute; top: 22px; left: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--cream-72); }
.lb .toolbar { position: absolute; top: 16px; right: 20px; display: flex; align-items: center; gap: 10px; }
.lb .pill {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  padding: 10px 16px; border-radius: 0;
  color: var(--cream); background: transparent; border: 1px solid var(--cream-18);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lb .pill:hover { background: var(--cream); color: var(--sheet); border-color: var(--cream); }
.lb .pill svg { width: 15px; height: 15px; }
.lb .icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 0; font-size: 16px; line-height: 1;
  color: var(--cream); background: transparent; border: 1px solid var(--cream-18);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lb .icon-btn:hover { background: var(--cream); color: var(--sheet); border-color: var(--cream); }
.lb .prev, .lb .next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 60px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 0; font-size: 26px; line-height: 1;
  color: var(--cream); background: transparent; border: 1px solid var(--cream-18);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lb .prev { left: 22px; } .lb .next { right: 22px; }
.lb .prev:hover, .lb .next:hover { background: var(--cream); color: var(--sheet); border-color: var(--cream); }

/* The removal cue and its tooltip */
.removal-link { position: relative; display: inline-block; }
.removal, .removal-text {
  cursor: help; color: var(--ink-pri); border-bottom: 1px solid var(--red);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
}
.removal-tooltip {
  position: absolute; left: 0; top: calc(100% + 10px); width: max-content;
  max-width: min(320px, calc(100vw - 2 * var(--pad)));
  background: var(--sheet); color: var(--cream-72); border: 1px solid var(--cream-18);
  padding: 12px 14px; font-family: var(--body); font-size: 13px; line-height: 1.5;
  text-transform: none; letter-spacing: 0; z-index: 20;
  opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s ease;
}
.removal-tooltip strong { color: var(--cream); }
.removal-link:hover .removal-tooltip, .removal-link:focus-within .removal-tooltip { opacity: 1; visibility: visible; }

/* The per-event legal row. It sits on the cream page just above the site
   footer, not inside it: the Disclaimer link here belongs to THIS event, and
   scripts/new_gallery.py rewrites it per gallery. */
.legal-footer {
  max-width: var(--col); margin: 72px auto 0; padding: 22px var(--pad) 0;
  border-top: 1px solid var(--line-strong);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-55);
}
.legal-footer a { color: var(--ink-72); text-decoration: none; border-bottom: 1px solid transparent; }
.legal-footer a:hover { color: var(--ink-pri); border-bottom-color: var(--red); }
.legal-footer .sep { color: var(--ink-42); }


/* ===========================================================================
   Long-form legal prose (the privacy policy). One narrow measure, the display
   face for headings, the mono face for anything that is really a record.
   ======================================================================== */
.content { max-width: 820px; margin: 0 auto; padding: 72px var(--pad) 0; }
.content.back-wrap { padding-bottom: 0; }
.content.back-wrap + .content { padding-top: 10px; }
.content h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.035em;
  color: var(--ink); margin: 0 0 14px;
}
.content .subtitle { margin: 0 0 6px; font-size: 17px; color: var(--ink-pri); }
.content .effective {
  margin: 0 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--ink);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-55);
}
.content h2 {
  font-family: var(--display); font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--ink);
  margin: 44px 0 14px;
}
.content h3 {
  font-family: var(--display); font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em; color: var(--ink); margin: 28px 0 10px;
}
.content p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--ink-72); }
.content ul, .content ol { margin: 0 0 18px; padding-left: 20px; }
.content li { margin: 0 0 8px; font-size: 16px; line-height: 1.7; color: var(--ink-72); }
.content li::marker { color: var(--red); }
.content a { color: var(--ink-pri); text-decoration: none; border-bottom: 1px solid var(--red); }
.content a:hover { border-bottom-color: var(--ink); }
.content strong { color: var(--ink-pri); font-weight: 600; }
.content .contact-block {
  margin-top: 18px; padding: 22px 26px;
  background: var(--sheet); color: var(--cream-72); border: 1px solid var(--cream-18);
  border-radius: 10px; font-family: var(--mono); font-size: 14px; line-height: 1.9;
}
.content .contact-block a { color: var(--cream); border-bottom-color: var(--red); }
.content .contact-block a:hover { border-bottom-color: var(--cream); }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  :root { --pad: 40px; }
  .hero-in { grid-template-columns: minmax(0,1fr) minmax(0,340px); gap: 36px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
  .archive-head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 768px) {
  :root { --pad: 20px; }
  .sec { padding-top: 64px; }

  /* One row: the mark and the one action that fits. */
  .nav-in { height: 64px; padding: 0 20px; gap: 10px; }
  .nav-logo img { height: 24px; }
  /* Only one pill fits. "Upcoming events" just scrolls this page, and on a
     phone the events are a thumb-flick away already; the calendar is the one
     thing the bar can reach that the page cannot. So the calendar is the one
     that survives, and it takes the solid treatment. */
  .nav-pill { font-size: 13px; padding: 9px 14px; }
  .nav-pill.solid { display: none; }
  .nav-pill:not(.solid) {
    color: #f5f4f0; background: var(--ink-pri); border-color: var(--ink-pri);
  }
  .nav-pill:not(.solid):hover { background: #222223; border-color: #222223; }

  /* The hero stacks: headline first, then the plate. */
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .plate { width: min(300px, 76vw); margin: 0 auto; }

  .h2 { font-size: clamp(26px, 7vw, 34px); }
  .lede { font-size: 16px; }

  /* The right-hand link duplicates the bar's Gallery link at this width. */
  .tabbar { margin-bottom: 24px; }
  .tabbar-right { display: none; }
  .tab { padding: 13px 16px 12px; }

  .card-single > .card, .card-grid > .card { flex-basis: 100%; max-width: none; }
  .sheet { padding: 28px 22px; }
  .archive-head { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  /* nowrap keeps the pair on one line beside the copy on a wide screen; at
     this width it forces them past the edge instead. */
  .archive-head .hero-cta { flex-wrap: wrap; }
  /* Three names will not fit side by side at this width, so the tiles stay
     three across as a strip and the labels come off; the link keeps its
     aria-label, so it is still announced. */
  .archive-recent { margin-top: 30px; padding-top: 24px; gap: 10px; }
  .archive-recent .shot { aspect-ratio: 1; }
  .archive-recent .name, .archive-recent .when { display: none; }
  .signoff { padding-top: 48px; padding-bottom: 64px; }

  .masthead { padding-top: 32px; }
  .masthead-meta { gap: 10px 0; }
  .masthead-meta .spacer { display: none; flex-basis: 100%; }
  .masthead-meta > * { flex-basis: 100%; }

  .events { padding-top: 28px; }
  .events > .ev { flex-basis: 100%; max-width: none; }
  .grid { gap: 10px; padding-top: 24px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .legal-footer { margin-top: 56px; gap: 8px 10px; font-size: 11px; }

  .lb .pill .label { display: none; }
  .lb .pill { padding: 10px 12px; }
  .lb .prev, .lb .next { width: 40px; height: 52px; }
  .lb .prev { left: 10px; } .lb .next { right: 10px; }
  /* Absolutely positioned while hidden, this still widens the document at
     this size. Pin it to the viewport instead. */
  .removal-tooltip {
    position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto;
    width: auto; max-width: none;
  }

  .foot { padding: 48px 0 56px; }
  .foot-in, .foot-base { padding: 0 20px; }
  .foot-in { gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }

  .content { padding-top: 40px; }
  .content h1 { font-size: clamp(30px, 8vw, 40px); }
  .content h2 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
