/* Marri Gold v2 ("Foil", reworked): near-black and Paper grounds in turn, gold only as foil.
   Shared by index.html and build.html. Type: Jost 300 (display) and 400 (text and UI).
   Every section is either .dark or .light; both set the same tokens, so components follow the ground. */

/* A fallback sized to Jost's metrics, so the font swap doesn't move the page (CLS). */
@font-face {
  font-family: "Jost Fallback";
  src: local("Helvetica Neue"), local("HelveticaNeue"), local("Arial"), local("ArialMT");
  size-adjust: 93%;
  ascent-override: 115%;
  descent-override: 40%;
  line-gap-override: 0%;
}

:root {
  /* named colours */
  --night: #0B0908;      /* near-black ground (and Ink on light grounds) */
  --deep: #110D0B;       /* the footer */
  --bark: #13100E;       /* raised dark surfaces */
  --kino: #7C2812;
  --amber: #B9741A;
  --honey: #D9A441;      /* gold text on dark grounds (8.8:1) */
  --paper: #FAFAF7;      /* light ground, never cream */
  --ash: #EFEDEA;
  --ink: #0B0908;
  --gold-ink: #80601F;   /* gold text on light grounds (5.6:1 on Paper) */
  --foil-dark: linear-gradient(100deg, #A9833B 0%, #C9A45C 24%, #EBD39A 50%, #C9A45C 76%, #A9833B 100%);
  --foil-light: linear-gradient(100deg, #8A6622 0%, #A07A2E 26%, #C9A45C 50%, #A07A2E 74%, #8A6622 100%);
  --lit: linear-gradient(180deg, #E4B352 0%, #CB8C2C 100%);
  --edge-hi: rgba(255, 222, 182, 0.09);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease-settle: cubic-bezier(.34, 1.25, .64, 1);
  --t-micro: 140ms;
  --t-ui: 240ms;
  /* the linen-finish card texture on every near-black ground: one variable, so it can be switched
     to shared/texture/grain.webp or twill.webp */
  --texture: url("shared/texture/linen.webp");
  --texture-size: 320px 320px;
  --vignette: radial-gradient(130% 90% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .32) 100%);
  --font: "Jost", "Jost Fallback", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  /* the shared quote sheet */
  --mgq-display: "Jost", "Jost Fallback", Arial, sans-serif;
  --mgq-text: "Jost", "Jost Fallback", Arial, sans-serif;
  --mgq-accent: #80601F;
  --mgq-ink: #0B0908;
}

/* ------------------------------------------------------------------ the two grounds */
:root, .dark {
  --bg: var(--night);
  --head: #FAFAF7;
  --text: #E9E1D6;
  --muted: #BFAE9C;
  --accent: var(--honey);
  --rule: rgba(250, 250, 247, 0.14);
  --rule-strong: rgba(250, 250, 247, 0.28);
  --foil: var(--foil-dark);
  --field-bg: rgba(7, 5, 5, .38);
  --field-line: rgba(250, 250, 247, .22);
  --field-shadow: inset 0 2px 6px rgba(0, 0, 0, .3), 0 1px 0 var(--edge-hi);
  --placeholder: rgba(191, 174, 156, .75);
  --focus: var(--honey);
  --press: rgba(124, 40, 18, .35);
  --uline: rgba(217, 164, 65, .42);
  --line-gold: #D9A441;
  --wash: rgba(217, 164, 65, .07);
  color-scheme: dark;
}
.light {
  --bg: var(--paper);
  --head: var(--ink);
  --text: var(--ink);
  --muted: #6B6158;
  --accent: var(--gold-ink);
  --rule: rgba(11, 9, 8, 0.12);
  --rule-strong: rgba(11, 9, 8, 0.22);
  --foil: var(--foil-light);
  --field-bg: #FFFFFF;
  --field-line: #D3CBC2;
  --field-shadow: inset 0 1px 2px rgba(11, 9, 8, .05);
  --placeholder: #776C63;
  --focus: var(--kino);
  --press: rgba(124, 40, 18, .08);
  --uline: rgba(128, 96, 31, .36);
  --line-gold: #A07A2E;
  --wash: rgba(160, 122, 46, .07);
  color-scheme: light;
}
.dark, .light { background-color: var(--bg); color: var(--text); }
/* near-black grounds: the linen texture (the header and hero share the body's, so there's no seam) */
body, .dark { background-image: var(--texture); background-size: var(--texture-size); }
.band.dark, .foot.dark { background-image: var(--vignette), var(--texture); background-size: 100% 100%, var(--texture-size); }
.light { background-image: none; }
.top, .hero.dark { background: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  min-width: 320px;
  background-color: var(--night);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; color: var(--head); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(217, 164, 65, 0.4); color: var(--head); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ header: the one logo slot, left */
.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.top-nav { display: none; gap: 30px; font-size: 15px; }
.top-nav a, .top-end a { text-decoration: none; color: var(--muted); padding: 10px 0; transition: color var(--t-ui) var(--ease-out); }
.top-nav a:hover, .top-end a:hover { color: var(--head); }
.top-end { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.top-end a { display: inline-flex; align-items: center; min-height: 44px; }
.top-end .top-build { color: var(--head); }
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
  margin-left: -3px; /* the gumnut's left edge sits on the text column */
}
/* the Marri Gold logo (shared/logo, outlined SVG), sized by height; one foil sheen runs across it */
.wordmark { position: relative; display: block; line-height: 0; }
.logo .wordmark img { display: block; width: auto; height: 44px; }
.wordmark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 248, 226, 0) 38%, rgba(255, 252, 240, .7) 50%, rgba(255, 248, 226, 0) 62%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  opacity: 0;
  -webkit-mask: url("shared/logo/marri-gold-dark.svg") center / contain no-repeat;
  mask: url("shared/logo/marri-gold-dark.svg") center / contain no-repeat;
}
.sheen .wordmark::after { animation: sheen 1500ms var(--ease-inout) 1; }
@media (hover: hover) and (pointer: fine) { .logo:hover .wordmark::after { animation: sheen 1300ms var(--ease-inout) 1; } }
@keyframes sheen { 0% { background-position: 100% 0; opacity: 1; } 100% { background-position: 0% 0; opacity: 1; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 3px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 220ms var(--ease-out), box-shadow 260ms var(--ease-out), background-color var(--t-micro), color var(--t-micro);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* the glowing "Build your box": unchanged from B */
.btn-lit {
  background: var(--lit);
  color: var(--night);
  box-shadow: inset 0 1px 0 rgba(255, 240, 205, .55), inset 0 -1px 0 rgba(90, 50, 10, .35), 0 10px 28px -12px rgba(217, 164, 65, .75);
}
.btn-quiet {
  background: transparent;
  color: var(--head);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
/* a very slow breath of light around the main button */
.btn-breathe::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 30px 3px rgba(228, 179, 82, .38);
  opacity: 0;
  animation: breathe 5.6s ease-in-out 1.2s infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.btn-arrow::after {
  content: "";
  width: 16px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 300ms var(--ease-settle);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-lit:hover { box-shadow: inset 0 1px 0 rgba(255, 240, 205, .7), inset 0 -1px 0 rgba(90, 50, 10, .35), 0 18px 40px -14px rgba(228, 179, 82, 1); }
  .btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--head), 0 12px 24px -18px rgba(0, 0, 0, .6); }
  .btn-ink:hover { box-shadow: 0 16px 28px -14px rgba(11, 9, 8, .8); }
  .btn-arrow:hover::after { transform: translateX(4px); }
}
.btn:active { transform: scale(.97); transition-duration: 90ms; }
.btn-lit:active, .btn-quiet:active { background: var(--kino); color: var(--paper); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35); }

/* text links: a quiet line under the words; a full one draws in from the left on hover or press */
.link {
  -webkit-appearance: none; appearance: none; border: 0; padding: 0;
  color: var(--accent);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex; align-items: center;
  background-color: transparent;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--uline), var(--uline));
  background-repeat: no-repeat;
  background-position: 0 calc(50% + .74em), 0 calc(50% + .74em);
  background-size: 0% 1px, var(--ul-w, 100%) 1px;
  transition: background-size 420ms var(--ease-out), color var(--t-ui);
}
@media (hover: hover) and (pointer: fine) { .link:hover { background-size: var(--ul-w, 100%) 1px, var(--ul-w, 100%) 1px; } }
.link:active, .link:focus-visible { background-size: var(--ul-w, 100%) 1px, var(--ul-w, 100%) 1px; }
.link:active { color: var(--head); }

/* ------------------------------------------------------------------ fields */
.field { display: grid; gap: 8px; }
.field > label, .label { font-size: 15px; color: var(--muted); }
.input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid var(--field-line);
  background-color: var(--field-bg);
  background-image: linear-gradient(var(--line-gold), var(--line-gold));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0% 2px;
  box-shadow: var(--field-shadow);
  color: var(--head);
  font-size: 17px;
  transition: border-color var(--t-ui) var(--ease-out), background-size 420ms var(--ease-out);
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:focus { outline: none; border-color: var(--line-gold); background-size: 100% 2px; }
@media (hover: hover) and (pointer: fine) { .input:hover:not(:focus) { border-color: var(--muted); } }
textarea.input { resize: vertical; line-height: 1.45; }
select.input {
  background-image: linear-gradient(var(--line-gold), var(--line-gold)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23BFAE9C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: 50% 100%, right 14px center; background-size: 0% 2px, 12px 8px; padding-right: 40px;
}
.light select.input { background-image: linear-gradient(var(--line-gold), var(--line-gold)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B6158' stroke-width='1.5'/%3E%3C/svg%3E"); }
select.input:focus { background-size: 100% 2px, 12px 8px; }

/* ------------------------------------------------------------------ chapters */
.band { position: relative; padding: 76px 0 84px; }
.band.light + .band.light { box-shadow: inset 0 1px 0 var(--rule); } /* two light chapters in a row: one hairline between */
#register { padding-bottom: 56px; }
#register + #faq { box-shadow: none; padding-top: 32px; }
.ch { text-align: center; margin: 0 auto 36px; max-width: 760px; }
/* the drawn gold-foil numerals (shared/logo/numerals), sized by height */
.ch-num { position: relative; display: block; width: max-content; margin: 0 auto 18px; line-height: 0; }
.ch-num img { display: block; width: auto; height: 34px; }
.ch-num::after { /* the sheen, masked to the numeral's own shape; foil.js lights it once as it scrolls in */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, rgba(255, 250, 232, 0) 36%, rgba(255, 251, 238, .95) 50%, rgba(255, 250, 232, 0) 64%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-mask: var(--num) center / contain no-repeat;
  mask: var(--num) center / contain no-repeat;
}
.ch-num.lit::after { animation: sheen 1400ms var(--ease-inout) 150ms 1; }
.ch-label { display: block; font-size: 16px; color: var(--kino); margin-bottom: 12px; letter-spacing: 0.01em; }
.ch h2 { font-size: 40px; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.ch-lede { margin: 18px auto 0; max-width: 34ch; color: var(--text); font-size: 18px; }
/* run-in: the heading has no full stop; the continuation starts in lower case, in body text, close beneath */
.ch-run { margin: 10px auto 0; max-width: 36ch; color: var(--text); font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.what p { font-size: 17px; }
.lede-xl { font-weight: 300; font-size: 25px; line-height: 1.35; color: var(--head); letter-spacing: -0.005em; }
.fine { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------------ home: the first screen, brand first */
.hero { position: relative; overflow: hidden; padding: 14px 0 26px; }
.hero::before { /* depth: the edges fall away, a little warm light where the map sits */
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 34% at 55% 78%, rgba(235, 211, 154, .045), transparent 75%), radial-gradient(140% 100% at 40% 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .3) 100%);
}
.hero-wrap { position: relative; display: grid; gap: 12px; }
.hero-text { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { font-size: 42px; line-height: 1.0; letter-spacing: -0.03em; }
.hero h1 .hl { display: block; }
.hero-lede { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-top: 18px; }
.link-quiet {
  --uline: rgba(233, 225, 214, .32);
  --ul-w: calc(100% - 18px);
  color: var(--text);
  gap: 8px;
}
.link-quiet::after {
  content: ""; width: 10px; height: 14px; background: currentColor; opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 0v12M1 8l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 0v12M1 8l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 300ms var(--ease-settle);
}
.link-quiet:active { color: var(--head); }
@media (hover: hover) and (pointer: fine) { .link-quiet:hover { color: var(--head); } .link-quiet:hover::after { transform: translateY(3px); } }
.hero-foot { display: none; }

/* the map (in the hero): foil coastline, pins that arrive one by one and then breathe */
.map { position: relative; width: 100%; max-width: 520px; margin: 0 auto; }
.hero-map { margin: 0; width: clamp(240px, calc((100vh - 410px) * 1.208), 100%); width: clamp(240px, calc((100svh - 410px) * 1.208), 100%); }
.map svg { width: 100%; height: auto; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.map .land { fill: rgba(255, 240, 215, .03); }
.map .coast { fill: none; stroke: url(#foilStroke); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.pin { transition: opacity 400ms var(--ease-out); }
.pin .dot, .pin .glow, .pin .ring { transform-box: fill-box; transform-origin: 50% 50%; }
.pin .dot { fill: #D9A441; transition: transform 320ms var(--ease-settle), fill 240ms; }
.pin .glow { fill: url(#pinGlow); }
.pin .ring { fill: none; stroke: #EBD39A; stroke-width: 1.2px; vector-effect: non-scaling-stroke; opacity: 0; }
.pin .lab {
  fill: #E9E1D6; font: 400 30px var(--font); opacity: 0; transition: opacity 260ms var(--ease-out), fill 240ms;
  paint-order: stroke; stroke: rgba(11, 9, 8, .8); stroke-width: 7px; stroke-linejoin: round;
}
.pin.main .lab { opacity: 1; fill: #FAFAF7; font-size: 34px; }
.map .perth path { fill: none; stroke: #D9A441; stroke-width: 1.3px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.map .perth text { fill: #BFAE9C; font: 400 30px var(--font); }
.pin.hot .dot, .pin.ping .dot { transform: scale(1.7); fill: #F2D58E; }
.pin.hot .lab, .pin.ping .lab { opacity: 1; fill: #F2D58E; }
.pin.pending { opacity: 0; }
.pin.arrive .dot { animation: pin-in 640ms var(--ease-settle) both; }
.pin.arrive .ring, .pin.ping .ring { animation: ripple 1500ms var(--ease-out) both; }
.pin.ping .ring { animation-iteration-count: 2; }
.pin.live .glow { animation: glow-breathe 5.2s ease-in-out var(--d, 0s) infinite; }
@keyframes pin-in { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes ripple { 0% { opacity: .85; transform: scale(.6); } 100% { opacity: 0; transform: scale(4.6); } }
@keyframes glow-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.map-inset { position: absolute; right: 0; top: 0; width: 17%; min-width: 56px; pointer-events: none; }
.map-inset svg #australia { fill: rgba(250, 240, 220, .1); }
.map-inset svg #south-west { fill: #D9A441; }
.map-inset p { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.3; white-space: nowrap; text-align: right; }
.map-hint { position: absolute; left: 0; bottom: 2px; font-size: 13px; color: var(--muted); pointer-events: none; }
.hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .hint-mouse { display: inline; } .hint-touch { display: none; } }

/* ------------------------------------------------------------------ I. The box */
.what { text-align: center; max-width: 640px; margin: 0 auto; }
.what { margin-top: -6px; }
.foil-rule { width: 96px; height: 1px; margin: 44px auto; background: var(--foil); border: 0; }
.materials { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px auto 0; padding: 0; max-width: 520px; }
.materials li { display: grid; justify-items: center; gap: 12px; text-align: center; }
.mat { position: relative; overflow: hidden; width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 230, 190, .18); transition: transform 420ms var(--ease-settle), box-shadow 420ms var(--ease-out); }
.mat::after { /* a soft highlight that rolls across the surface */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 28% 24%, rgba(255, 252, 240, .34), rgba(255, 252, 240, 0) 36%);
  transition: transform 800ms var(--ease-out);
}
.light .mat { box-shadow: 0 14px 24px -14px rgba(11, 9, 8, .55), inset 0 1px 0 rgba(255, 230, 190, .22); }
.materials li { -webkit-tap-highlight-color: transparent; }
.materials li.tap .mat { transform: translateY(-6px); box-shadow: 0 22px 30px -16px rgba(11, 9, 8, .6), inset 0 1px 0 rgba(255, 230, 190, .22); }
.materials li.tap .mat::after { transform: translate(22%, 14%); }
@media (hover: hover) and (pointer: fine) {
  .materials li:hover .mat { transform: translateY(-6px); box-shadow: 0 22px 30px -16px rgba(11, 9, 8, .6), inset 0 1px 0 rgba(255, 230, 190, .22); }
  .materials li:hover .mat::after { transform: translate(22%, 14%); }
}
.mat-wood { background: radial-gradient(circle at 35% 30%, #1C1714, #0B0908 72%); }
.mat-resin { background: radial-gradient(circle at 34% 28%, #FFE2A6 0%, #E7A34A 18%, #B9741A 46%, #7C2812 100%); }
.mat-honey { background: radial-gradient(circle at 36% 30%, #FFF0C4 0%, #EBC46A 22%, #D9A441 50%, #A9761F 100%); }
.materials b { font-weight: 400; color: var(--head); font-size: 17px; display: block; }
.materials span { font-size: 15px; color: var(--muted); line-height: 1.4; }
.name-note { max-width: 36ch; margin: 30px auto 0; text-align: center; }

/* ------------------------------------------------------------------ II. Inside: the menu */
.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 4px;
  background: rgba(7, 5, 5, .45);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .45), 0 1px 0 var(--edge-hi);
  max-width: 460px;
  margin: 0 auto;
}
.light .seg { background: var(--ash); box-shadow: inset 0 1px 3px rgba(11, 9, 8, .12); }
.seg-thumb {
  position: absolute; z-index: 0;
  top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 3px;
  background: linear-gradient(180deg, #85301A, #6E2310);
  box-shadow: inset 0 1px 0 rgba(255, 200, 170, .25), 0 6px 14px -6px rgba(0, 0, 0, .7);
  transform: translateX(calc(var(--i, 1) * 100%));
  transition: transform var(--t-ui) var(--ease-out);
}
.light .seg-thumb { box-shadow: inset 0 1px 0 rgba(255, 200, 170, .25), 0 4px 10px -5px rgba(11, 9, 8, .5); }
.seg button {
  position: relative; z-index: 1;
  -webkit-appearance: none; appearance: none;
  border: 0; background: none;
  min-height: 56px;
  padding: 6px 4px;
  display: grid; align-content: center; justify-items: center; gap: 1px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.15;
  transition: color var(--t-ui);
  -webkit-tap-highlight-color: transparent;
}
.seg button small { font-size: 14px; color: inherit; opacity: .9; }
.light .seg button small { opacity: 1; }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { color: var(--paper); }
.seg button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .seg button:not([aria-pressed="true"]):hover { color: var(--head); } }
.seg-line { /* a short foil line under the active tab, a beat behind the thumb */
  position: absolute; z-index: 2; left: 4px; bottom: 7px; height: 1.5px; pointer-events: none;
  width: calc((100% - 8px) / 3);
  transform: translateX(calc(var(--i, 1) * 100%));
  transition: transform 520ms var(--ease-settle) 40ms;
}
.seg-line::before { content: ""; display: block; width: 30%; height: 100%; margin: 0 auto; background: var(--foil-dark); border-radius: 1px; }
.seg-2 .seg-line { width: calc((100% - 8px) / 2); }

.inside-grid { display: grid; gap: 8px; margin-top: 26px; }
.stage-inside { position: relative; max-width: 560px; width: 100%; margin: 0 auto; }
.stage-inside::before { /* toned down from B, and less amber, so the near-black box never reads brown */
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 236, 200, .07), transparent 70%);
}
.stage-inside mg-box { position: relative; }
.menu { max-width: 560px; margin: 0 auto; width: 100%; }
.menu-head { text-align: center; padding-bottom: 20px; border-bottom: 1px solid var(--rule-strong); }
.menu-head h3 { font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.menu-price { margin-top: 6px; color: var(--accent); font-size: 18px; }
.menu-line { margin-top: 10px; color: var(--text); }
.menu ol { list-style: none; margin: 0; padding: 0; transition: opacity 160ms linear; }
.menu ol.swap { opacity: 0; }
.menu li { padding: 15px 0 16px; border-bottom: 1px solid var(--rule); -webkit-tap-highlight-color: transparent; }
.menu .row { display: flex; align-items: baseline; gap: 12px; }
.menu .item { color: var(--head); font-size: 19px; font-weight: 400; }
.menu .lead { flex: 1; border-bottom: 1px dotted rgba(250, 250, 247, .28); transform: translateY(-5px); min-width: 16px; transform-origin: 0 50%; transition: border-color 320ms var(--ease-out); }
.menu .size { color: var(--honey); font-size: 16px; white-space: nowrap; transition: color 320ms var(--ease-out), text-shadow 320ms var(--ease-out); }
.menu .item { transition: color 320ms var(--ease-out); }
.menu li.tap .lead { border-bottom-color: rgba(217, 164, 65, .9); }
.menu li.tap .size { color: #F4D896; text-shadow: 0 0 14px rgba(217, 164, 65, .45); }
.menu li.tap .item { color: #FFFFFF; }
@media (hover: hover) and (pointer: fine) {
  .menu li:hover .lead { border-bottom-color: rgba(217, 164, 65, .9); }
  .menu li:hover .size { color: #F4D896; text-shadow: 0 0 14px rgba(217, 164, 65, .45); }
  .menu li:hover .item { color: #FFFFFF; }
}
.menu .desc { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.menu .new .item::after { content: "new in this box"; margin-left: 10px; font-size: 13px; color: var(--honey); vertical-align: 2px; }
.menu-foot { margin-top: 18px; text-align: center; }

/* the scroll pop: each line rises in, the name first, then its gold weight a beat later.
   Lines are hidden only once home.js has put .pop on <html>; no script, no motion: all visible. */
.pop .menu li .item, .pop .menu li .desc { opacity: 0; transform: translateY(12px); }
.pop .menu li .size { opacity: 0; transform: translateY(8px); }
.pop .menu li .lead { opacity: 0; transform: translateY(-5px) scaleX(.15); }
.pop .menu li.in .item, .pop .menu li.in .desc, .pop .menu li.in .size { opacity: 1; transform: none; }
.pop .menu li.in .item { transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), color 320ms var(--ease-out); }
.pop .menu li.in .desc { transition: opacity 500ms var(--ease-out) 70ms, transform 500ms var(--ease-out) 70ms; }
.pop .menu li.in .size { transition: opacity 500ms var(--ease-out) 190ms, transform 500ms var(--ease-out) 190ms, color 320ms var(--ease-out), text-shadow 320ms var(--ease-out); }
.pop .menu li.in .lead { opacity: 1; transform: translateY(-5px) scaleX(1); transition: opacity 400ms var(--ease-out) 90ms, transform 520ms var(--ease-out) 90ms, border-color 320ms var(--ease-out); }

/* ------------------------------------------------------------------ III. Your name on it (on Paper) */
.name-grid { display: grid; gap: 40px; }
.stage-name { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.stage-name { perspective: 1100px; }
.stage-name mg-box { position: relative; transition: transform 600ms var(--ease-out); }
.stage-name.drift mg-box { transition: none; }
.try { max-width: 480px; margin: 6px auto 0; }
.try-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.try-head label { font-size: 15px; color: var(--muted); }
.try-head .link { font-size: 15px; }
.try-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.try-row .input { min-height: 50px; }
.try-row .btn { min-height: 50px; padding: 0 18px; }
.sleeves { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; max-width: 480px; margin: 22px auto 0; }
.sleeves-label { flex: 1 0 100%; text-align: center; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.example-cap { text-align: center; margin-top: 10px; font-size: 15px; color: var(--muted); min-height: 1.5em; }
/* sleeve chips: each one a material (home III and the builder) */
.chip {
  -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 0;
  display: grid; justify-items: center; gap: 6px; width: 60px; min-height: 44px;
  color: var(--muted); font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
.chip i {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 0 0 0 var(--bg), 0 0 0 0 rgba(217, 164, 65, 0), 0 8px 16px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 240, 220, .25);
  transition: transform 220ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.light .chip i { box-shadow: 0 0 0 1px rgba(11, 9, 8, .1), 0 0 0 1px rgba(128, 96, 31, 0), 0 8px 14px -9px rgba(11, 9, 8, .6), inset 0 1px 0 rgba(255, 240, 220, .25); }
.chip { transition: color var(--t-ui); }
@media (hover: hover) and (pointer: fine) {
  .chip:hover { color: var(--head); }
  .chip:not([aria-pressed="true"]):hover i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--rule-strong), 0 10px 18px -9px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 240, 220, .25); }
}
.chip:active i { transform: scale(.9); }
.chip[aria-pressed="true"] { color: var(--head); }
.chip[aria-pressed="true"] i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--accent), 0 8px 16px -8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 240, 220, .25); }
.chip.popped i { animation: chip-pop 460ms var(--ease-settle); }
@keyframes chip-pop { 0% { transform: scale(.84); } 55% { transform: scale(1.1); } 100% { transform: scale(1); } }
.m-bark { background: radial-gradient(circle at 35% 30%, #1E1A17, #13100E 60%, #0B0908); }
.m-kino { background: radial-gradient(circle at 35% 30%, #A64A28, #7C2812 55%, #561A0A); }
.m-honey { background: radial-gradient(circle at 35% 30%, #F2CF7E, #D9A441 55%, #B58429); }
.m-paper { background: radial-gradient(circle at 35% 30%, #FFFFFF, #FAFAF7 55%, #E4E0D8); }
.m-ash { background: radial-gradient(circle at 35% 30%, #FBFAF8, #EFEDEA 55%, #D5D1CA); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 18px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { counter-increment: s; content: counter(s); font-weight: 300; font-size: 40px; line-height: .95; color: var(--accent); }
.steps b { display: block; font-weight: 400; color: var(--head); font-size: 19px; margin-bottom: 2px; }
.steps p { color: var(--text); }
.then { margin-top: 22px; }
.then p + p { margin-top: 8px; }
.then .btn { margin-top: 20px; }

/* ------------------------------------------------------------------ IV. Who it's for */
.who { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.who li { border-bottom: 1px solid var(--rule-strong); }
.who a {
  position: relative;
  display: grid; gap: 8px;
  margin: 0 -12px;
  padding: 24px 56px 26px 12px;
  text-decoration: none;
  transition: background-color 320ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.who a::after {
  content: ""; position: absolute; right: 16px; top: 34px; width: 22px; height: 14px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h20M14 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h20M14 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 360ms var(--ease-settle);
}
.who h3 { transition: transform 360ms var(--ease-out); }
.who a:active, .who a.tap { background-color: var(--wash); }
.who a:active h3, .who a.tap h3 { transform: translateX(6px); }
.who a:active::after, .who a.tap::after { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) {
  .who a:hover { background-color: var(--wash); }
  .who a:hover h3 { transform: translateX(6px); }
  .who a:hover::after { transform: translateX(6px); }
}
.who h3 { font-size: 30px; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
.who p { color: var(--text); max-width: 46ch; }
.who .eg { color: var(--accent); font-size: 16px; }
.who .eg b { font-weight: 400; white-space: nowrap; }

/* ------------------------------------------------------------------ V. Where it's made (dark): each region finds itself on the hero map */
.regions { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; border-top: 1px solid var(--rule-strong); }
.regions li { border-bottom: 1px solid var(--rule); }
.region {
  -webkit-appearance: none; appearance: none; border: 0; background: none; color: inherit; font: inherit; text-align: left;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  width: calc(100% + 24px); margin: 0 -12px; padding: 16px 12px 17px;
  transition: background-color 320ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.region b { font-weight: 300; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; color: var(--head); transition: transform 360ms var(--ease-out), color var(--t-ui); }
.region .towns { grid-column: 1; color: var(--muted); font-size: 15px; }
.region .see {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--honey);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.region .see::after {
  content: ""; width: 9px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 12'%3E%3Cpath d='M4.5 12V1M1 4.5l3.5-3.5 3.5 3.5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 12'%3E%3Cpath d='M4.5 12V1M1 4.5l3.5-3.5 3.5 3.5' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 300ms var(--ease-settle);
}
/* phones: a small ringed arrow (the whole row is the button); desktop: the words appear on hover */
.region .see { justify-content: center; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(217, 164, 65, .4); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), box-shadow 300ms, background-color 300ms; }
.region .see-t { display: none; }
.region:active, .region.tap { background-color: var(--wash); }
.region:active b, .region.tap b { color: var(--accent); }
.region:active .see, .region.tap .see { box-shadow: inset 0 0 0 1px var(--honey); background-color: rgba(217, 164, 65, .14); }
@media (hover: hover) and (pointer: fine) {
  .region .see { width: auto; height: auto; border-radius: 0; box-shadow: none; background: none; }
  .region .see-t { display: inline; }
  .region .see { opacity: 0; transform: translateY(4px); }
  .region:hover { background-color: var(--wash); }
  .region:hover b { transform: translateX(6px); }
  .region:hover .see, .region:focus-visible .see { opacity: 1; transform: none; }
  .region:hover .see::after { transform: translateY(-3px); }
}
.makers { max-width: 640px; margin: 8px auto 0; text-align: center; }
.makers .foil-rule { margin: 40px auto 30px; }
.makers p + p { margin-top: 12px; }

/* ------------------------------------------------------------------ the registration card (on Paper) */
.paper {
  position: relative;
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 2px;
  padding: 36px 22px 30px;
  /* a printed card: hairline edge, a gold rule set just inside it, a soft shadow on the table */
  box-shadow: 0 0 0 1px rgba(11, 9, 8, .08), inset 0 0 0 7px #FFFFFF, inset 0 0 0 8px rgba(160, 122, 46, .45), 0 28px 50px -34px rgba(11, 9, 8, .45);
  max-width: 620px;
  margin: 0 auto;
}
.paper h2 { color: var(--ink); font-size: 32px; letter-spacing: -0.02em; line-height: 1.1; }
.paper p { color: var(--ink); }
.form-grid { display: grid; gap: 16px; margin-top: 24px; }
.form-done { margin-top: 14px; padding: 12px 14px; border-left: 2px solid var(--kino); background: var(--ash); color: var(--ink) !important; }
.btn-ink { background: var(--night); color: var(--paper); box-shadow: 0 10px 22px -12px rgba(11, 9, 8, .8); }
.btn-ink:active { background: var(--kino); }

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0;
  color: var(--head); font-size: 19px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--accent), var(--accent)) center / 14px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 14px no-repeat;
  transition: transform 380ms var(--ease-settle);
}
.faq summary { transition: color var(--t-ui); }
.faq details[open]:not(.closing) summary::after { transform: rotate(135deg); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--accent); } }
.faq details p { padding: 0 0 20px; color: var(--text); max-width: 60ch; overflow: hidden; }

/* ------------------------------------------------------------------ footer (dark) */
.foot {
  position: relative;
  padding: 48px 0 calc(40px + env(safe-area-inset-bottom));
  box-shadow: inset 0 1px 0 var(--edge-hi);
  text-align: center;
}
.foot .logo { margin: 0; justify-content: center; }
.foot .logo img { display: block; width: auto; height: 48px; margin: 0 auto; }
.foot p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.foot .logo + p { margin-top: 18px; }

/* ------------------------------------------------------------------ light on the linen (foil.js adds .lightfx to [data-light]) */
[data-light] { isolation: isolate; }
.lightfx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.lightfx i { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.lightfx i::before {
  content: ""; position: absolute; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 228, 186, .085), rgba(255, 228, 186, .03) 55%, rgba(255, 228, 186, 0));
  opacity: 0; transition: opacity 500ms var(--ease-out);
}
.lightfx.on i::before { opacity: 1; }
.lightfx i.bloom::before { animation: bloom 900ms var(--ease-out) both; }
@keyframes bloom { 0% { opacity: 0; transform: scale(.35); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }

/* ------------------------------------------------------------------ desktop */
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 60px; }
  .hero-lede { font-size: 17px; }
  .hero { padding-top: 28px; }
  .ch h2 { font-size: 52px; }
  .ch-run { max-width: 44ch; }
  .ch-num img { height: 38px; }
  .band { padding: 112px 0 120px; }
  .lede-xl { font-size: 30px; }
  .paper { padding: 56px 60px 52px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .top { height: 100px; }
  .top-nav { display: flex; }
  .logo .wordmark img { height: 56px; }
  .hero { padding: 40px 0 40px; }
  .hero::before { background: radial-gradient(34% 56% at 76% 52%, rgba(235, 211, 154, .05), transparent 75%), radial-gradient(130% 100% at 40% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .3) 100%); }
  .hero-wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 56px; }
  .hero h1 { font-size: 80px; }
  .hero-lede { font-size: 18px; max-width: 36ch; margin-top: 26px; }
  .hero-actions { gap: 8px 32px; margin-top: 38px; }
  .hero-map { max-width: 560px; justify-self: end; width: min(100%, calc((100vh - 250px) * 1.208)); }
  .hero-foot {
    display: flex; align-items: center; gap: 16px;
    margin-top: 72px;
    font-size: 15px; color: var(--muted);
  }
  .hero-foot::before { content: ""; display: block; width: 48px; height: 1px; background: var(--foil); flex: none; }
  .inside-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; max-width: 1200px; margin-left: auto; margin-right: auto; }
  .stage-inside { max-width: none; position: sticky; top: 40px; }
  .menu { max-width: none; }
  .menu-head { text-align: left; }
  .menu-foot { text-align: left; }
  .name-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
  .name-grid .stage-col { order: 2; }
  .who a { grid-template-columns: 4fr 6fr 4fr; gap: 32px; align-items: baseline; padding: 34px 72px 34px 12px; }
  .who a::after { top: 44px; }
  .who h3 { font-size: 36px; }
  .who .eg { text-align: right; }
  .regions { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .region b { font-size: 28px; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 120ms !important; transition-property: color, background-color, border-color, opacity, fill, text-shadow !important; }
  .btn:hover, .btn:active, .btn-arrow::after, .link-quiet::after, .seg button:active, .chip i, .mat, .mat::after, .who h3, .who a::after,
  .region b, .region .see, .region .see::after, .stage-name mg-box, .pin .dot { transform: none !important; }
  .pin.pending { opacity: 1; }
  .lightfx { display: none; }
}

/* ================================================================== site navigation and the audience pages */

/* ------------------------------------------------------------------ header: quiet nav (desktop), Menu button (phones) */
.top-end { gap: 22px; }
.top-nav { gap: 26px; }
.top-nav a[aria-current="page"] { color: var(--head); background: linear-gradient(var(--line-gold), var(--line-gold)) 0 calc(50% + .9em) / 100% 1px no-repeat; }
.menu-btn {
  -webkit-appearance: none; appearance: none; border: 0; background: none; color: var(--head);
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 2px 0 6px; font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
.menu-ico { position: relative; width: 18px; height: 9px; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform 260ms var(--ease-out); }
.menu-ico::before { top: 0; }
.menu-ico::after { bottom: 0; left: 5px; }
.menu-btn:active { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .menu-btn:hover .menu-ico::after { transform: translateX(-5px); } }
@media (min-width: 1024px) { .menu-btn { display: none; } }

/* the panel: dark linen over everything, large quiet links, the glowing button at the foot */
html.menu-open { overflow: hidden; }
.site-menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 260ms var(--ease-out), transform 320ms var(--ease-out);
}
.site-menu[hidden] { display: none; }
.site-menu.is-open { opacity: 1; transform: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 64px; flex: none; }
.menu-top .logo img { display: block; width: auto; height: 44px; }
.menu-close {
  -webkit-appearance: none; appearance: none; border: 0; background: none; color: var(--head);
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px 0 8px; font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
.menu-close i { position: relative; width: 16px; height: 16px; }
.menu-close i::before, .menu-close i::after { content: ""; position: absolute; left: -1px; right: -1px; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.menu-close i::after { transform: rotate(-45deg); }
.menu-close:active { color: var(--accent); }
.site-menu nav ul { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.site-menu nav li { border-bottom: 1px solid var(--rule); }
.site-menu nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 10px 2px;
  color: var(--head); text-decoration: none; font-weight: 300; font-size: 27px; letter-spacing: -0.01em; line-height: 1.15;
  transition: color var(--t-ui), transform 320ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.site-menu nav a::after {
  content: ""; flex: none; width: 18px; height: 12px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h20M14 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M0 7h20M14 1l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 320ms var(--ease-settle);
}
.site-menu nav a small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.site-menu nav a[aria-current="page"] { color: var(--accent); }
.site-menu nav a:active { color: var(--accent); }
.site-menu nav a:active::after { transform: translateX(5px); }
.menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 4px; justify-items: start; }
.menu-foot .btn { width: 100%; }
/* the links settle in one after another as the panel opens */
.site-menu nav li { opacity: 0; transform: translateY(8px); transition: opacity 300ms var(--ease-out), transform 380ms var(--ease-out); }
.site-menu.is-open nav li { opacity: 1; transform: none; }
.site-menu.is-open nav li:nth-child(2) { transition-delay: 40ms; }
.site-menu.is-open nav li:nth-child(3) { transition-delay: 80ms; }
.site-menu.is-open nav li:nth-child(4) { transition-delay: 120ms; }
.site-menu.is-open nav li:nth-child(5) { transition-delay: 160ms; }
.site-menu.is-open nav li:nth-child(6) { transition-delay: 200ms; }
.site-menu.is-open nav li:nth-child(7) { transition-delay: 240ms; }

/* ------------------------------------------------------------------ footer links */
.foot-nav ul { list-style: none; margin: 26px auto 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; max-width: 520px; text-align: left; }
.foot-nav a { display: flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--rule); transition: color var(--t-ui); }
.foot-nav a:active { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .foot-nav a:hover { color: var(--accent); } }
@media (min-width: 760px) { .foot-nav ul { grid-template-columns: repeat(4, 1fr); max-width: 980px; } }

/* ------------------------------------------------------------------ the audience pages: a brand-first hero with a printed card */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:active { color: var(--head); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--head); } }
.crumbs [aria-current] { color: var(--text); }
.hero-page { padding: 18px 0 44px; }
.hero-page .hero-wrap { gap: 34px; }
.hero-page h1 { font-size: 46px; line-height: 1.02; letter-spacing: -0.03em; max-width: 9.5em; text-wrap: balance; }
.hero-page .hero-lede { margin-top: 16px; }
/* the printed card: heavy uncoated white card, a foil gumnut and rule, the message set in type */
.hero-card-wrap { perspective: 1000px; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 6px 0 4px; }
.hero-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: min(84%, 330px);
  padding: 26px 24px 22px;
  background: #FFFFFF; color: var(--ink);
  border-radius: 2px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 50px -24px rgba(0, 0, 0, .85), 0 10px 18px -12px rgba(0, 0, 0, .6);
  transform: rotate(-2.2deg) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 600ms var(--ease-out);
}
.hero-card .mark { display: block; width: 14px; height: 20px; margin: 0 auto 10px; }
.hero-card .card-title { font-weight: 300; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.hero-card .card-rule { width: 40px; height: 1px; margin: 12px auto; border: 0; background: var(--foil-light); }
.hero-card .card-msg { font-size: 16px; line-height: 1.5; color: #2A2421; }
.hero-card .card-msg b { font-weight: 400; color: var(--ink); }
.hero-card [data-names] { display: inline-block; transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out); }
.hero-card [data-names].out { opacity: 0; transform: translateY(-4px); }
.hero-card .card-from { margin-top: 12px; font-size: 14px; color: #6B6158; }
.hero-card .card-list { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.45; color: #2A2421; }
.hero-card .card-list li { padding: 2px 0; }
.hero-card .card-list .yours { color: var(--gold-ink); }
.hero-card .card-foot { margin-top: 14px; font-size: 11.5px; color: #6B6158; }
.card-cap { max-width: 30ch; margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ I. the case: a few plain points */
.points { list-style: none; margin: 34px auto 0; padding: 0; max-width: 760px; border-top: 1px solid var(--rule-strong); }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.points li::before { content: ""; width: 9px; height: 9px; margin-top: .55em; border-radius: 50%; background: var(--foil); box-shadow: 0 0 0 4px var(--wash); }
.points b { display: block; font-weight: 400; color: var(--head); font-size: 19px; }
.points p { color: var(--text); grid-column: 2; }
.points b + p { margin-top: 2px; }
.section-cta { margin-top: 30px; text-align: center; display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: center; align-items: center; }

/* ------------------------------------------------------------------ how it works, on linen */
.how { max-width: 760px; margin: 0 auto; }
.dark .steps li::before { color: var(--honey); }

/* ------------------------------------------------------------------ the worked example (on Paper): the box, its spec, the quote */
.eg-grid { display: grid; gap: 26px; }
.eg-stage { position: relative; max-width: 520px; width: 100%; margin: 0 auto; perspective: 1100px; }
.eg-stage mg-box { position: relative; }
.eg-cap { text-align: center; font-size: 15px; color: var(--muted); margin-top: 4px; }
.eg-stage-actions { display: flex; justify-content: center; margin-top: 12px; }
.eg-title { font-weight: 300; font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; color: var(--head); }
.eg-why { margin-top: 8px; color: var(--text); }
.eg-spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 20px 0 0; padding: 16px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); font-size: 16px; }
.eg-spec dt { color: var(--muted); }
.eg-spec dd { margin: 0; color: var(--head); }
.eg-price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.eg-price .per { font-weight: 300; font-size: 44px; line-height: 1; letter-spacing: -0.02em; color: var(--gold-ink); }
.eg-price .unit { font-size: 17px; color: var(--head); }
.eg-total { margin-top: 6px; color: var(--text); }
.eg-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }

/* ------------------------------------------------------------------ what's inside (on linen): the example box's menu */
.inside-one { max-width: 640px; margin: 0 auto; }
.inside-one .menu-head { text-align: left; }

/* ------------------------------------------------------------------ the region list on the makers page (static rows) */
.region-static { display: grid; gap: 2px; padding: 16px 0 17px; }
.region-static b { font-weight: 300; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; color: var(--head); }
.region-static .towns { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ forms on the audience pages */
.form-grid .field.full, .form-grid .full { grid-column: 1 / -1; }
.opt { color: var(--muted); font-size: 14px; }
.price-tag { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.price-tag b { font-weight: 300; font-size: 40px; letter-spacing: -0.02em; color: var(--gold-ink); line-height: 1; }
.price-tag span { color: var(--head); }
.price-tag em { font-style: normal; font-size: 14px; color: var(--muted); }
.ind { display: inline-block; font-size: 13px; color: var(--kino); border: 1px solid rgba(124, 40, 18, .35); border-radius: 12px; padding: 1px 9px; }

/* ------------------------------------------------------------------ home: the sample box line under the register card */
.note-line { margin: 22px auto 0; max-width: 620px; text-align: center; color: var(--text); }

/* ------------------------------------------------------------------ 404 */
.lost { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 30px 0 56px; }
.lost h1 { font-size: 46px; line-height: 1.04; letter-spacing: -0.03em; }
.lost .hero-lede { margin-top: 14px; }
.lost-links { list-style: none; margin: 28px 0 0; padding: 0; max-width: 560px; border-top: 1px solid var(--rule); }
.lost-links li { border-bottom: 1px solid var(--rule); }
.lost-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; color: var(--head); text-decoration: none; font-size: 18px; transition: color var(--t-ui), padding var(--t-ui); }
.lost-links a::after { content: "\2192"; color: var(--accent); transition: transform 320ms var(--ease-settle); }
.lost-links a:active { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .lost-links a:hover { color: var(--accent); } .lost-links a:hover::after { transform: translateX(5px); } }

@media (min-width: 760px) {
  .hero-page h1 { font-size: 60px; }
  .lost h1 { font-size: 64px; }
}
@media (min-width: 1024px) {
  .hero-page { padding: 34px 0 72px; }
  .hero-page .hero-wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 56px; min-height: 480px; }
  .hero-page h1 { font-size: 76px; }
  .hero-card { width: min(100%, 400px); padding: 38px 36px 30px; }
  .hero-card .card-title { font-size: 26px; }
  .hero-card .card-msg { font-size: 18px; }
  .eg-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
  .points li { grid-template-columns: 30px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu, .site-menu nav li, .hero-card { transform: none !important; }
  .hero-card { transform: rotate(-2.2deg) !important; }
}

/* the box: its cards and lid follow the page's face, and the frame's edges fade so the light inside
   never shows a hard rectangle on the ground */
mg-box {
  --mg-wordmark-font: "Jost", "Jost Fallback", Arial, sans-serif;
  --mg-card-display: "Jost", "Jost Fallback", Arial, sans-serif;
  --mg-card-text: "Jost", "Jost Fallback", Arial, sans-serif;
  --mg-card-ink: #0B0908;
  --mg-card-muted: #6B6158;
  --mg-card-accent: #A07A2E;
  --mg-card-paper: #FFFFFF;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 3%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 3%, #000 100%);
  mask-composite: intersect;
}
mg-box .mgb-msg, mg-box .mgb-cc-foot { font-style: normal; }
/* the box's own warm glow on dark grounds, at about half strength (its opacity still animates) */
mg-box.mgb-is-dark svg.mgb ellipse[fill*="glow"] { fill-opacity: .45; }

/* skip link: out of sight until it has keyboard focus */
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; padding: 10px 14px; border-radius: 3px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 15px; }
.skip:focus { top: 10px; }

/* privacy and other plain text pages */
.legal-hero { min-height: 0; padding: 40px 0 44px; }
.legal h2 { font-size: 22px; margin-top: 30px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-top: 8px; max-width: 64ch; }
