/* =========================================================
   Revival — website (home)
   Tokens: Linen · Ink · Halo · Dawn · Ash · Glow
   Type:   Figtree (primary) · IBM Plex Mono (labels, the Lens)
           Instrument Serif Italic (links in parentheses + quotes only)
   ========================================================= */
:root {
  --linen: #F5F2EC;
  --sand: #ECE6DA;
  --ink: #1C1B29;
  --ink-2: #3A3948;
  --halo: #C5CEF4;
  --dawn: #F6C9AC;
  --ash: #66647A;
  --glow: #E9DDEB;

  --f-sans: 'Figtree', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --f-serif: 'Instrument Serif', Georgia, serif;

  --wrap: 1440px;
  --pad: clamp(20px, 4vw, 48px);
  --gap: clamp(24px, 3.5vw, 48px);
  --label-col: 200px;
  --section-y: clamp(56px, 7vw, 104px);
  --rule: 1px solid rgba(28, 27, 41, 0.9);
  --thin: 1px solid rgba(28, 27, 41, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }  /* component display rules must never un-hide something */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }
b { font-weight: 700; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--linen); color: var(--ink); padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: var(--gap); border-top: var(--rule); padding-top: 18px; }
.row--dark { border-top-color: rgba(197, 206, 244, 0.35); }
.col-label { flex: 0 0 var(--label-col); min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.col-content { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; }
.stack-40 { gap: 40px; } .stack-18 { display: flex; flex-direction: column; gap: 18px; }
.section { position: relative; padding: var(--section-y) 0; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.section--linen { background: var(--linen); }
.section--sand { background: var(--sand); }
.section--halo { background: var(--halo); }
.section--ink { background: var(--ink); color: var(--linen); }
.section > .wrap { position: relative; }

/* film grain */
.grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.grain--dark { mix-blend-mode: screen; opacity: 0.1; }

/* ---------- type ---------- */
.label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.label--halo { color: var(--halo); }
.mono { font-family: var(--f-mono); font-size: 13px; }
.display { font-size: clamp(52px, 7.6vw, 120px); line-height: 0.94; letter-spacing: -0.05em; color: var(--linen); }
/* section headings stay below the hero title (max 72px) */
.h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.04em; }
.note { font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 220px; }

/* links in parentheses: Instrument Serif italic */
.paren { font-family: var(--f-serif); font-style: italic; font-size: 22px; line-height: 1; color: var(--ink); text-decoration: none; display: inline-block; background: none; border: 0; padding: 0; cursor: pointer; transition: opacity .2s; }
.paren:hover { opacity: 0.7; }
.paren--dawn { color: var(--dawn); }
.paren--linen { color: var(--linen); }
.paren-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 4px; }

/* pill buttons */
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 40px; text-decoration: none; font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.005em; border: 0; cursor: pointer; transition: opacity .2s; }
/* pills stay put on hover: no lift, just a slight fade */
.pill:hover { opacity: 0.88; }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill--light { background: var(--linen); color: var(--ink); font-size: 13px; padding: 8px 12px 8px 14px; }
.pill--dark { background: var(--ink); color: var(--linen); font-size: 14px; padding: 12px 16px 12px 20px; }

/* wordmark (Design Board, artboard 15): lowercase "revival", one star in two states.
   Overlaps are an explicit colour swap with SVG clipPaths, never a blend mode:
   draw the base layer, then the overlapping part again in the swap colour, clipped to the overlap.
   main: header (.wm__main, at the top over the dark-tinted hero and on the solid Ink bar alike): Linen letters,
         Dawn outline on top, Ink where it crosses the letters (reads as the line passing behind them).
         footer on Halo: Ink letters, Ink outline on top, Halo where it crosses the letters (cuts through).
   sub:  the letters again in Dawn, clipped to the star (dot included). No outline.
   pop:  sub below the waterline, main above it (js/wordmark.js). */
.wordmark { display: inline-flex; align-items: flex-end; color: var(--linen); text-decoration: none; line-height: 1; }
.wordmark--sm { font-size: 27px; }
.wordmark--md { font-size: 46px; }
.wm { display: block; height: 0.700em; width: 2.876em; overflow: visible; }
.wm__word, .wm__dot { fill: currentColor; }
.wm__star, .wm__swap { fill: none; stroke-width: 1.3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wordmark--md .wm__star, .wordmark--md .wm__swap { stroke-width: 1.6px; }
.wm__star { stroke: var(--dawn); }
.wm__main .wm__swap { stroke: var(--ink); }
.wm__sub { fill: var(--dawn); }
.wm__hit { fill: transparent; pointer-events: all; }
.site-footer .wm__star { stroke: var(--ink); }
.site-footer .wm__swap { stroke: var(--halo); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px; background: var(--ink); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: var(--linen); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.hero__tint { position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(28,27,41,0.45) 0, rgba(28,27,41,0) 160px),
    linear-gradient(to bottom, rgba(28,27,41,0) 38%, rgba(28,27,41,0.72) 100%),
    rgba(28,27,41,0.18); }
.hero__content { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(36px, 4.5vw, 64px); }
.hero__headline { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.hero__intro { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.hero__lede { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.hero__body { font-size: 14px; line-height: 1.55; color: rgba(245,242,236,0.82); }

/* header over the hero */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background-color: rgba(28,27,41,0); transition: transform .35s cubic-bezier(.2,.7,.3,1), background-color .3s ease, box-shadow .3s ease; }
.site-header.is-solid { background-color: var(--ink); box-shadow: 0 1px 0 rgba(197,206,244,0.12); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav-open .site-header { transform: none; }
.site-header__inner { transition: padding .3s ease; }
/* the star reaches ~0.75em above the word and ~1em below it: keep it inside the bar, solid or not */
.site-header.is-solid .site-header__inner { padding-top: 22px; padding-bottom: 30px; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap); padding-top: 24px; padding-bottom: 32px; }
.site-header__logo { flex-direction: row; text-decoration: none; }
.site-header__bar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav { display: flex; gap: 36px; align-items: center; }
.site-nav a { color: var(--linen); text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.site-nav a:hover { color: var(--dawn); }
@media (min-width: 901px) {
  .site-header__inner { gap: 48px; }
  .site-header__logo { flex: 0 0 auto; }
  .site-header__bar { flex: 0 1 auto; justify-content: flex-start; }
}
.nav-toggle { display: none; }

/* ---------- about ---------- */
.split { display: flex; flex-wrap: wrap; gap: 32px; }
.split > * { flex: 1 1 280px; }
.dropcap { font-size: 16px; line-height: 1.65; }
.dropcap::first-letter { float: left; font-size: 74px; line-height: 0.8; font-weight: 700; letter-spacing: -0.04em; margin: 4px 10px 0 0; }
.pullquote { margin: 0; padding: 20px 22px; background: var(--halo); font-family: var(--f-serif); font-size: 30px; line-height: 1.15; }
.values { display: flex; flex-wrap: wrap; gap: 32px; }
.value { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 12px; border-top: var(--rule); padding-top: 14px; }
.value__top { display: flex; justify-content: space-between; align-items: flex-start; }
.value__title { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.value p { font-size: 15px; color: var(--ink-2); }
.icon { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- events (Luma embed) ---------- */
/* the event as a ticket: an Ink stub, a perforation of punched holes, and the Luma embed as the face.
   Notches are cut where the perforation meets the edges (mask: two half-height layers, one hole each). */
.ticket { --stub: 72px; --notch: 11px; display: grid; grid-template-columns: var(--stub) minmax(0, 1fr); max-width: 1040px;
  -webkit-mask: radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at var(--stub) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at var(--stub) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
/* the stub is turned 180° so it reads bottom to top: its left border lands on the perforation side */
.ticket__stub { background: var(--ink); color: var(--halo); border-left: 4px dotted var(--sand);
  writing-mode: vertical-rl; transform: rotate(180deg); display: flex; justify-content: space-between; align-items: center; padding: 28px 0;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; }
.ticket__star { width: 14px; height: 19px; fill: none; stroke: var(--dawn); stroke-width: 1.4; transform: rotate(180deg); }
.ticket__face { background: var(--linen); padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ticket__bar { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ash); }
/* phones: the stub runs across the top, the perforation underneath it */
@media (max-width: 640px) {
  .ticket { --stub-h: 46px; grid-template-columns: minmax(0, 1fr);
    -webkit-mask: radial-gradient(circle var(--notch) at 0 var(--stub-h), #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% var(--stub-h), #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 var(--stub-h), #0000 98%, #000) left / 51% 100% no-repeat,
                  radial-gradient(circle var(--notch) at 100% var(--stub-h), #0000 98%, #000) right / 51% 100% no-repeat; }
  .ticket__stub { writing-mode: horizontal-tb; transform: none; height: var(--stub-h); padding: 0 22px; border-left: 0; border-bottom: 4px dotted var(--sand); }
  .ticket__star { transform: none; }
  .ticket__face { padding: 12px 10px 14px; }
}
.events { gap: 40px; }
.events__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; max-width: 1040px; }
/* live: the Luma embed is the ticket's face */
.luma { width: 100%; border-radius: 8px; overflow: hidden; container-type: inline-size; }
/* Luma's embed sits side by side when wide (~545px tall) and stacks below ~650px (~850px tall):
   size the frame to show it all without scrolling inside it */
.luma iframe { display: block; width: 100%; height: 560px; border: 0; }
@container (max-width: 650px) { .luma iframe { height: 870px; } }
/* between gatherings: a big TBA and a short note, on the same face */
.events__empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px 48px; align-items: end; min-height: 360px; padding: 32px 18px 18px; }
.events__tba { font-size: clamp(88px, 11vw, 168px); font-weight: 200; letter-spacing: -0.06em; line-height: 0.78; color: var(--ink); }
.events__empty-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 460px; }
.events__empty-body h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.events__empty-body p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.events__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
@media (max-width: 640px) {
  .events__empty { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 24px 12px 12px; gap: 24px; }
}

/* ---------- contact ---------- */
.section--contact .col-content { max-width: 420px; }
/* the bonfire canvas (js/fire.js); --fire-x is where it stands across the canvas (0–1) */
.fire-stage { position: absolute; pointer-events: none; }
.fire { display: block; width: 100%; height: 100%; --fire-x: 0.5; }
/* the message box grows with what's written (where supported), up to a limit */
.field textarea { field-sizing: content; min-height: calc(3lh + 16px); max-height: 12lh; }

/* Contact is Ink ("night"): the fire stands on the right, masked away from the form */
.section--contact .wrap.row::before { border-top-color: rgba(197,206,244,0.35); }
.section--contact .label { color: var(--halo); }
.section--contact .note { color: rgba(245,242,236,0.72); }
.section--contact .field input, .section--contact .field textarea { color: var(--linen); border-bottom-color: rgba(197,206,244,0.45); }
.section--contact .field input:focus, .section--contact .field textarea:focus { border-bottom-color: var(--linen); }
.section--contact .field.is-invalid input, .section--contact .field.is-invalid textarea { border-bottom-color: var(--dawn); }
.section--contact .field input:-webkit-autofill { -webkit-text-fill-color: var(--linen); -webkit-box-shadow: 0 0 0 40px var(--ink) inset; }
.section--contact .pill--dark { background: var(--linen); color: var(--ink); }
.section--contact .form__status { color: var(--halo); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.section--contact .fire-stage { inset: 0; }
.section--contact .fire { --fire-x: 0.78; -webkit-mask-image: linear-gradient(to right, transparent 52%, #000 66%); mask-image: linear-gradient(to right, transparent 52%, #000 66%); }

/* narrower windows: the fire moves below the form in a band on the ground line */
@media (max-width: 1100px) {
  .section--contact { padding-bottom: 380px; }
  .section--contact .col-content { max-width: none; }
  .section--contact .fire-stage { inset: auto 0 0 0; height: 340px; }
  .section--contact .fire { --fire-x: 0.5; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
}

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: flex; flex-wrap: wrap; gap: 20px; }
.label__opt { opacity: 0.6; }
.form__row .field { flex: 1 1 180px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: var(--rule); background: transparent; padding: 8px 0; font-family: var(--f-sans); font-size: 16px; color: var(--ink); border-radius: 0; resize: none; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-width: 2px; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #9A3B2E; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__status { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; }

/* ---------- legal pages (privacy.html, terms.html) ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--linen); padding: clamp(150px, 18vw, 220px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero__row { position: relative; }
.page-hero__title { font-size: clamp(56px, 8.4vw, 132px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 300; color: var(--linen); }
.page-hero__meta { margin-top: 24px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--halo); }
.legal-section { justify-content: flex-start; min-height: 0; overflow: visible; }  /* visible so the contents list can stick */
.toc { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 104px; }
.toc a { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc .mono { font-size: 11px; color: var(--ash); }
.legal { max-width: 680px; gap: 48px; }
.legal__part { scroll-margin-top: 104px; display: flex; flex-direction: column; gap: 14px; }
.legal h2 { display: flex; gap: 16px; align-items: baseline; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.legal h2 .mono { font-size: 12px; font-weight: 400; letter-spacing: 0.06em; color: var(--ash); }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal a:hover { color: var(--ash); }
.site-footer__meta a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .toc { position: static; }
}

/* ---------- error pages (404.html, 504.html) ---------- */
.error { position: relative; min-height: 100vh; min-height: 100svh; background: var(--ink); color: var(--linen); display: flex; flex-direction: column; justify-content: center; padding: 150px 0 var(--section-y); overflow: hidden; }
.error__row { position: relative; }
.error__body { gap: 22px; }
.error__title { font-size: clamp(44px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.045em; font-weight: 300; color: var(--linen); }
.error__text { max-width: 520px; font-size: 17px; line-height: 1.6; color: rgba(245,242,236,0.8); }
.error__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 10px; }
.error .pill--dark { background: var(--linen); color: var(--ink); }

/* ---------- footer (Halo) ---------- */
.site-footer { position: relative; background: var(--halo); color: var(--ink); overflow: hidden; }
.site-footer__inner { position: relative; padding-top: 70px; padding-bottom: 18px; display: flex; flex-direction: column; gap: 56px; }
/* wordmark left, links right, centred on the word (the star's room above comes from the padding, not a margin, so centring stays true) */
.site-footer__main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.site-footer .wordmark--md { color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center; }
.footer-nav a { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.footer-nav a:hover { color: var(--ash); }
.site-footer__meta { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: var(--rule); padding-top: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink); }
.site-footer__meta a { text-decoration: none; }
.site-footer__meta a:hover { color: var(--ash); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --label-col: 100%; }
  .row { gap: 22px; }
  .site-header__logo { flex: 1 1 auto; }
  .site-header__bar { flex: 0 0 auto; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--linen); cursor: pointer; padding: 8px 0; font-size: 16px; font-weight: 500; }
  .nav-toggle__lines, .nav-toggle__lines::before { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s; }
  .nav-toggle__lines::before { content: ''; position: absolute; top: 6px; }
  .nav-toggle__lines { transform: translateY(-3px); }
  .site-header .pill { display: none; }
  .site-nav { position: fixed; inset: 0; z-index: 40; background: var(--ink); flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 0 var(--pad); transform: translateY(-100%); visibility: hidden; transition: none; }
  /* animate only when the visitor opens or closes it, never when the layout switches at 900px */
  .nav-closing .site-nav { transition: transform .35s ease, visibility 0s linear .35s; }
  .site-nav a { font-size: 40px; font-weight: 300; letter-spacing: -0.03em; }
  .nav-open .site-nav { transform: none; visibility: visible; transition: transform .35s ease, visibility 0s; }
  .nav-open .nav-toggle { position: relative; z-index: 41; }
  .nav-open .nav-toggle__lines { transform: rotate(45deg); }
  .nav-open .nav-toggle__lines::before { transform: rotate(-90deg); top: 0; }
    .hero__intro { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .pullquote { font-size: 24px; }
  .site-footer .wordmark--md { font-size: 40px; }
  .footer-nav { gap: 10px 18px; }
  .footer-nav a { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
/* while the window is being resized, nothing animates (stops the phone menu sliding through view at 900px) */
.is-resizing *, .is-resizing *::before, .is-resizing *::after { transition: none !important; }

/* top rule aligned to the content edge when .row sits on the .wrap itself */
.wrap.row { border-top: 0; position: relative; }
.wrap.row::before { content: ''; position: absolute; top: 0; left: var(--pad); right: var(--pad); border-top: var(--rule); }
.wrap.row.row--dark::before { border-top-color: rgba(197, 206, 244, 0.35); }

@media (max-width: 900px) {
  /* links stay on the right; only if they can't fit do they wrap under the wordmark,
     with room for the star's tail (~1.4x the word height below it) */
  .site-footer__main { gap: 60px 16px; }
  .site-footer__inner { gap: 48px; }
}

/* hero line + pill: the title is one line on the left, "Join us" on the right.
   The title's size comes from the space available (max 72px) so it never wraps (≈10.4em wide);
   where the button can't fit beside it, the button moves to the next row, still on the right. */
.hero__headline { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.hero__line { font-size: min(72px, calc((min(100vw, var(--wrap)) - 2 * var(--pad)) / 10.8)); line-height: 1; white-space: nowrap; }
.pill--hero { margin-left: auto; background: transparent; color: var(--linen); border: 1px solid rgba(245,242,236,0.6); font-size: 16px; font-weight: 600; padding: 7px 7px 7px 22px; gap: 16px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s, border-color .25s; }
.pill__chip { width: 38px; height: 38px; border-radius: 50%; background: var(--linen); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: transform .25s; }
.pill--hero svg { width: 16px; height: 16px; }
.pill--hero:hover { background: rgba(245,242,236,0.12); border-color: var(--linen); opacity: 1; }
.pill--hero:hover .pill__chip { transform: translateX(3px); }
.pill--hero:focus-visible { outline: 1px solid var(--dawn); outline-offset: 4px; }
@media (max-width: 560px) { .pill--hero { font-size: 15px; padding: 6px 6px 6px 20px; gap: 12px; } .pill__chip { width: 34px; height: 34px; } }
