@charset "UTF-8";

/* Design tokens. Everything else in the stylesheet is built from these.
   Reference: CONTRACT.md part 1. */

:root {
  /* Night */
  --ink: #0a0714;
  --midnight: #140e2e;
  --plum: #2a1140;
  /* Velvet */
  --velvet: #8a1027;
  --velvet-deep: #3f0713;
  --velvet-hi: #c2183a;
  /* Gold */
  --gold: #f2c14e;
  --gold-hi: #fff3c4;
  --gold-deep: #a8741a;
  --brass: #c9962b;
  /* Paper */
  --cream: #fbf1dc;
  --parchment: #efe0bd;
  /* Rum */
  --rum: #c0661f;
  --rum-deep: #5e2a0c;
  /* Accents */
  --peacock: #0f8a8f;
  --blueprint: #0d3b72;

  /* Ink used for text on paper, and status colours for the consent pill */
  --paper-ink: #1c1226;
  --amber: #ffb02e;
  --approved: #b7d86a;

  --foil: linear-gradient(100deg, #8a5a12 0%, #f6d77a 22%, #fff6cf 38%, #d9a437 55%, #8a5a12 78%, #f1cf6b 100%);
  --foil-soft: linear-gradient(100deg, #c9962b 0%, #f6d77a 30%, #fff6cf 48%, #e7b94a 68%, #c9962b 100%);
  --foil-deep: linear-gradient(100deg, #6b440c 0%, #b07d22 24%, #d9a437 40%, #a8741a 58%, #6b440c 80%, #b07d22 100%);
  /* --foil with brass in place of its darkest stops, for headings on velvet and
     blueprint, where the dark bronze fell to about 2:1 against the ground. */
  --foil-bright: linear-gradient(100deg, #c9962b 0%, #f6d77a 22%, #fff6cf 38%, #d9a437 55%, #c9962b 78%, #f1cf6b 100%);

  /* Families */
  --font-logo: 'Montserrat', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Abril Fatface', 'Flemmin Fallback', 'Bodoni MT', Didot, Georgia, serif;
  --font-circus: 'Sancreek', 'Abril Fatface', 'Flemmin Fallback', Georgia, serif;
  --font-text: 'Newsreader', 'Flemmin Fallback', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-mono: 'DM Mono', 'Flemmin Fallback', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --font-ipa: 'Flemmin IPA', 'Newsreader', Georgia, serif;

  /* Fluid type scale */
  --fs-micro: 0.6875rem;
  --fs-label: 0.75rem;
  --fs-small: 0.9375rem;
  --fs-body: clamp(1.0625rem, 0.99rem + 0.32vw, 1.25rem);
  --fs-lede: clamp(1.3rem, 1.08rem + 1vw, 1.95rem);
  --fs-h4: clamp(1.25rem, 1.12rem + 0.6vw, 1.6rem);
  --fs-h3: clamp(1.6rem, 1.25rem + 1.5vw, 2.6rem);
  --fs-h2: clamp(2.1rem, 1.4rem + 3.2vw, 4.25rem);
  --fs-title: clamp(2.9rem, 1.3rem + 7vw, 8.5rem);
  --fs-mega: clamp(3.6rem, 0.8rem + 12vw, 12rem);
  --fs-stat: clamp(3.2rem, 1.6rem + 6.5vw, 7.5rem);

  --tracking-caps: 0.22em;
  --tracking-wide: 0.34em;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;
  /* Never narrower than a side notch: the page is laid out edge to edge (viewport-fit=cover). */
  --gutter: max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --section-pad: clamp(5rem, 11vw, 10rem);
  --wrap: 72rem;
  --wrap-narrow: 44rem;
  --wrap-wide: 92rem;
  --nav-h: 4.5rem;

  /* Radii: this is letterpress, corners stay nearly square */
  --r-1: 2px;
  --r-2: 5px;
  --r-3: 12px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-lift: 0 18px 36px -18px rgba(0, 0, 0, 0.75);
  --shadow-deep: 0 44px 80px -32px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 28px rgba(242, 193, 78, 0.35);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.35);

  /* Easing */
  --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-slam: cubic-bezier(0.6, 0.04, 0.98, 0.34);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-drape: cubic-bezier(0.72, 0, 0.18, 1);

  /* Durations */
  --dur-1: 140ms;
  --dur-2: 280ms;
  --dur-3: 600ms;
  --dur-4: 1000ms;
  --dur-5: 1800ms;
  --stagger: 90ms;

  /* Stacking */
  --z-below: -1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-nav: 500;
  --z-widget: 510;
  --z-fx: 700;
  --z-popover: 800;
  --z-toast: 850;
  --z-curtain: 900;
  --z-skip: 1000;

  /* Shapes and textures */
  --star: polygon(50% 2.5%, 61.8% 36.3%, 97.6% 37%, 69% 58.7%, 79.4% 93%, 50% 72.5%, 20.6% 93%, 31% 58.7%, 2.4% 37%, 38.2% 36.3%);
  --grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .14 0 0 0 0 .05 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Worn-ink mask for stamps: mostly opaque with scattered pinholes */
  --rough: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.42' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 0 0 0 2.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
  --pleats: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0, rgba(255, 255, 255, 0.07) 9px, rgba(0, 0, 0, 0.08) 17px, rgba(0, 0, 0, 0.4) 30px, rgba(255, 255, 255, 0.05) 41px, rgba(0, 0, 0, 0.3) 54px);

  /* Theme slots. The night theme is the default; .section--* and .panel--* reassign them. */
  --bg: var(--ink);
  --surface: var(--midnight);
  --fg: var(--cream);
  --accent: var(--gold);
  --on-accent: var(--ink);
  --rule: rgba(242, 193, 78, 0.34);
  --muted: #b9aecb;
  --offset: var(--velvet);
  --focus: var(--gold-hi);
  --grain: var(--grain-light);
  --foil-fill: var(--foil);
  --foil-shadow: rgba(0, 0, 0, 0.6);
}

@media (max-width: 47.99em) {
  :root {
    --nav-h: 3.75rem;
  }
}
/* Web fonts: one @font-face per woff2 file in assets/fonts. Each unicode-range is the
   subset that file holds. Licences are in assets/fonts/licences. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Abril Fatface';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/abril-fatface-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Sancreek';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/sancreek-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/newsreader-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/newsreader-latin-wght-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* The long vowels of cited Latin, Old English and Old Danish (a e i o u with a macron):
   ten glyphs cut from Newsreader's latin-ext files, so they match the words they sit in. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/newsreader-macrons-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-0101,U+0112-0113,U+012A-012B,U+014C-014D,U+016A-016B;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/newsreader-macrons-wght-italic.woff2) format('woff2');
  unicode-range: U+0100-0101,U+0112-0113,U+012A-012B,U+014C-014D,U+016A-016B;
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/dm-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/dm-mono-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Pinyon Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/pinyon-script-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Flemmin IPA is a subset of Gentium Plus 6.200 (the IPA chart, Latin, Greek). Its
   licence reserves the name "Gentium" for the unmodified fonts, so the subset has a
   name of its own. Used by .ipa, which sets a whole transcription in it. */
@font-face {
  font-family: 'Flemmin IPA';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/flemmin-ipa-400-normal.woff2) format('woff2');
  unicode-range: U+0020-007E,U+00A0-0148,U+014A-017F,U+01C0-01C3,U+0250-033F,U+0342-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03E1,U+03F0-03FF,U+1D4A,U+1D7B,U+1D7F,U+1DC4-1DC9,U+1F00-1F15,U+1F18-1F1D,U+1F20-1F45,U+1F48-1F4D,U+1F50-1F57,U+1F59,U+1F5B,U+1F5D,U+1F5F-1F7D,U+1F80-1FB4,U+1FB6-1FC4,U+1FC6-1FD3,U+1FD6-1FDB,U+1FDD-1FEF,U+1FF2-1FF4,U+1FF6-1FFE,U+2000-2042,U+2044,U+204A,U+2053,U+2057,U+2060-2063,U+206A-2071,U+2074-208E,U+2090-209C,U+2190-2199,U+2205,U+223C,U+25CC,U+27E6-27E9,U+2C71,U+A71B-A71C;
}

/* The same file under a second name, limited to the letters the text faces lack
   (phonetic, Greek, extended Latin, arrows). It goes second in the font stacks as a
   fallback, and because it has no ordinary Latin it can never stand in for body text
   while the text face is still loading. Declared for every weight and both styles so
   that browsers do not fake a bold or a slanted Greek. */
@font-face {
  font-family: 'Flemmin Fallback';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/flemmin-ipa-400-normal.woff2) format('woff2');
  unicode-range: U+0100-0148,U+014A-017F,U+01C0-01C3,U+0250-033F,U+0342-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03E1,U+03F0-03FF,U+1D4A,U+1D7B,U+1D7F,U+1DC4-1DC9,U+1F00-1F15,U+1F18-1F1D,U+1F20-1F45,U+1F48-1F4D,U+1F50-1F57,U+1F59,U+1F5B,U+1F5D,U+1F5F-1F7D,U+1F80-1FB4,U+1FB6-1FC4,U+1FC6-1FD3,U+1FD6-1FDB,U+1FDD-1FEF,U+1FF2-1FF4,U+1FF6-1FFE,U+2070-2071,U+2074-208E,U+2090-209C,U+2190-2199,U+2205,U+223C,U+25CC,U+27E6-27E9,U+2C71,U+A71B-A71C;
}

@font-face {
  font-family: 'Flemmin Fallback';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/flemmin-ipa-400-normal.woff2) format('woff2');
  unicode-range: U+0100-0148,U+014A-017F,U+01C0-01C3,U+0250-033F,U+0342-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03E1,U+03F0-03FF,U+1D4A,U+1D7B,U+1D7F,U+1DC4-1DC9,U+1F00-1F15,U+1F18-1F1D,U+1F20-1F45,U+1F48-1F4D,U+1F50-1F57,U+1F59,U+1F5B,U+1F5D,U+1F5F-1F7D,U+1F80-1FB4,U+1FB6-1FC4,U+1FC6-1FD3,U+1FD6-1FDB,U+1FDD-1FEF,U+1FF2-1FF4,U+1FF6-1FFE,U+2070-2071,U+2074-208E,U+2090-209C,U+2190-2199,U+2205,U+223C,U+25CC,U+27E6-27E9,U+2C71,U+A71B-A71C;
}
/* Reset, document defaults, layout primitives and the section themes. */

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

html {
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  scrollbar-color: var(--brass) var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: oldstyle-nums proportional-nums;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol[class],
ul[class] {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); line-height: 1.15; }

p {
  text-wrap: pretty;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

canvas {
  touch-action: pan-y;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  text-decoration-thickness: 2px;
}

em,
i {
  font-style: italic;
}

strong,
b {
  font-weight: 650;
}

small {
  font-size: var(--fs-small);
}

sup,
sub {
  line-height: 0;
}

hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

table {
  border-collapse: collapse;
}

::selection {
  background: var(--gold);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), var(--gold), var(--gold-deep));
  border: 3px solid var(--ink);
  border-radius: var(--r-pill);
}

[hidden] {
  display: none !important;
}

/* Layout primitives ------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.wrap--narrow { --wrap: var(--wrap-narrow); }
.wrap--wide { --wrap: var(--wrap-wide); }

.prose {
  max-width: 62ch;
}

.prose > * + * {
  margin-top: 1em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ipa {
  font-family: var(--font-ipa);
  font-style: normal;
  font-variant-numeric: normal;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
  vertical-align: -0.125em;
  overflow: visible;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.label {
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  line-height: 1.3;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.01em;
}

.script {
  font-family: var(--font-script);
  font-size: 1.7em;
  line-height: 1;
}

.foil-text {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.muted {
  color: var(--muted);
}

/* Sections and their themes ------------------------------------------------ */

.section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--section-pad);
  background-color: var(--bg);
  color: var(--fg);
}

.section--flush {
  padding-block: 0;
}

/* Theme slots are shared by sections and by the panels of the same name, so a paper
   panel inside a night section restyles everything placed in it. */
.section--night,
.panel--night,
.marquee-frame {
  --bg: var(--ink);
  --surface: var(--midnight);
  --fg: var(--cream);
  --accent: var(--gold);
  --on-accent: var(--ink);
  --rule: rgba(242, 193, 78, 0.34);
  --muted: #b9aecb;
  --offset: var(--velvet);
  --focus: var(--gold-hi);
  --grain: var(--grain-light);
  --foil-fill: var(--foil);
  --foil-shadow: rgba(0, 0, 0, 0.6);
  --ray: rgba(242, 193, 78, 0.2);
}

.section--velvet,
.panel--velvet {
  --bg: var(--velvet-deep);
  --surface: #5a0a1b;
  --fg: var(--cream);
  --accent: var(--gold);
  --on-accent: var(--ink);
  --rule: rgba(242, 193, 78, 0.42);
  --muted: #e7bfb4;
  --offset: #1d030a;
  --focus: var(--gold-hi);
  --grain: var(--grain-light);
  --foil-fill: var(--foil-bright);
  --foil-shadow: rgba(0, 0, 0, 0.6);
  --ray: rgba(242, 193, 78, 0.2);
}

.section--paper,
.panel--paper {
  --bg: var(--cream);
  --surface: #fffaf0;
  --fg: var(--paper-ink);
  --accent: var(--velvet);
  --on-accent: var(--cream);
  --rule: rgba(28, 18, 38, 0.3);
  --muted: #5d5066;
  --offset: var(--brass);
  --focus: var(--velvet-hi);
  --grain: var(--grain-dark);
  --foil-fill: var(--foil-deep);
  --foil-shadow: rgba(63, 7, 19, 0.5);
  --ray: rgba(138, 16, 39, 0.13);
}

.section--blueprint {
  --bg: var(--blueprint);
  --surface: #0a2f5c;
  --fg: #eef5ff;
  --accent: var(--gold);
  --on-accent: var(--ink);
  --rule: rgba(238, 245, 255, 0.36);
  --muted: #b3cbec;
  --offset: #06203f;
  --focus: var(--gold-hi);
  --grain: var(--grain-light);
  --foil-fill: var(--foil-bright);
  --foil-shadow: rgba(0, 0, 0, 0.6);
  --ray: rgba(242, 193, 78, 0.2);
}

/* The hard-offset letterpress shadow follows the theme's --offset, so it has to be
   declared wherever --offset can change rather than once on :root. */
:root,
.section,
.panel,
.marquee-frame {
  --shadow-letterpress: 6px 6px 0 var(--offset);
  --shadow-letterpress-sm: 3px 3px 0 var(--offset);
}

.section--night {
  background-image:
    var(--grain),
    radial-gradient(120% 70% at 50% 0%, rgba(42, 17, 64, 0.85) 0%, rgba(20, 14, 46, 0.6) 38%, transparent 72%);
}

.section--velvet {
  background-image:
    var(--grain),
    linear-gradient(180deg, rgba(10, 7, 20, 0.62) 0%, transparent 22%, transparent 74%, rgba(10, 7, 20, 0.7) 100%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.26) 0, rgba(255, 255, 255, 0.035) 2.6rem, rgba(0, 0, 0, 0.3) 5.4rem, rgba(255, 255, 255, 0.02) 8rem, rgba(0, 0, 0, 0.26) 10.5rem),
    radial-gradient(100% 70% at 50% 34%, #7a0e23 0%, var(--velvet-deep) 78%);
}

.section--paper {
  color-scheme: light;
  background-image:
    var(--grain),
    radial-gradient(130% 90% at 50% 38%, transparent 52%, rgba(168, 116, 26, 0.2) 100%),
    linear-gradient(180deg, var(--cream), var(--parchment));
}

.section--blueprint {
  background-image:
    var(--grain),
    radial-gradient(120% 80% at 50% 40%, transparent 50%, rgba(3, 14, 32, 0.55) 100%),
    linear-gradient(rgba(238, 245, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 245, 255, 0.13) 1px, transparent 1px),
    linear-gradient(rgba(238, 245, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 245, 255, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 7.5rem 7.5rem, 7.5rem 7.5rem, 1.5rem 1.5rem, 1.5rem 1.5rem;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

/* Calm safety net ---------------------------------------------------------- */
/* Everything jumps to its final state. Looping decorations fall back to their
   resting look, one-shot animations land on their last keyframe. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

html.is-calm *,
html.is-calm *::before,
html.is-calm *::after {
  animation-duration: 0.001ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
/* Shared components. Each adapts to the theme it sits in through the theme slots
   (--bg, --surface, --fg, --accent, --on-accent, --rule, --muted, --offset).
   Markup for every component: CONTRACT.md part 1. */

/* The logo lockup ----------------------------------------------------------- */
/* "Flemmin" across, the G at the corner, "ames" stacked beneath it. Sized in em:
   set font-size on .fg-logo. The box is about 5.35em wide and 3em tall. */

.fg-logo {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  padding: 0.03em 0.08em 0.07em 0;
  font-family: var(--font-logo);
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: normal;
  line-height: 0.74;
  letter-spacing: -0.025em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
  -webkit-user-select: none;
  user-select: none;
  vertical-align: top;
}

/* Padding with an equal negative margin leaves the layout untouched but gives
   each glyph box room for ascenders and overshoot, which background-clip: text
   (the gold variant) would otherwise cut off. */
.fg-logo__across,
.fg-logo__g {
  display: block;
  margin-block: -0.2em;
  padding-block: 0.2em;
}

.fg-logo__down {
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0;
}

/* The stacked letters are a touch smaller and heavier so the m sits within the
   width of the G at the same stroke weight. Negative side margins keep the wide m
   from widening the column. */
.fg-logo__l {
  display: block;
  margin: -0.3em -0.2em;
  padding-block: 0.3em;
  font-size: 0.9em;
  font-weight: 870;
  line-height: 0.62;
}

.fg-logo__g + .fg-logo__l {
  margin-top: -0.33em;
}

.fg-logo--cream { color: var(--cream); }
.fg-logo--ink { color: var(--paper-ink); }

.fg-logo--gold {
  filter: drop-shadow(0 0.026em 0 #6b440c) drop-shadow(0 0.07em 0.08em rgba(0, 0, 0, 0.55));
}

.fg-logo--gold .fg-logo__across,
.fg-logo--gold .fg-logo__g,
.fg-logo--gold .fg-logo__l {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Each vertical letter samples a different stretch of the foil so the light
   appears to travel down the stack. */
.fg-logo--gold .fg-logo__g,
.fg-logo--gold .fg-logo__l {
  background-size: 420% 100%;
}

.fg-logo--gold .fg-logo__g { background-position: 30% 0; }
.fg-logo--gold .fg-logo__l:nth-child(2) { background-position: 42% 0; }
.fg-logo--gold .fg-logo__l:nth-child(3) { background-position: 54% 0; }
.fg-logo--gold .fg-logo__l:nth-child(4) { background-position: 88% 0; }
.fg-logo--gold .fg-logo__l:nth-child(5) { background-position: 100% 0; }

.fg-logo--stamp {
  padding: 0.34em 0.5em 0.4em 0.42em;
  color: var(--stamp-ink, var(--velvet-hi));
  border: 0.08em solid currentColor;
  border-radius: 0.12em;
  outline: 0.03em solid currentColor;
  outline-offset: -0.17em;
  transform: rotate(-7deg);
  opacity: 0.92;
  -webkit-mask: var(--rough) center / 3.2em 3.2em;
  mask: var(--rough) center / 3.2em 3.2em;
}

/* The stroke is drawn first and the fill (the background colour) over it, which
   hides the overlapping inner contours a variable font would otherwise show. */
.fg-logo--outline {
  color: var(--logo-fill, var(--bg));
  -webkit-text-fill-color: var(--logo-fill, var(--bg));
  -webkit-text-stroke: 0.06em var(--logo-stroke, var(--fg));
  paint-order: stroke fill;
}

/* Section header lockup ------------------------------------------------------ */

.head {
  display: grid;
  justify-items: start;
  gap: var(--sp-5);
  max-width: 62rem;
}

.head--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  flex: none;
  width: 0.95em;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: var(--star);
}

.eyebrow::after {
  margin-left: calc(var(--tracking-wide) * -1);
}

.title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.012em;
  color: var(--fg);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.title--mega { font-size: var(--fs-mega); line-height: 0.86; }
.title--sm { font-size: var(--fs-h2); line-height: 0.98; }

.title--foil {
  padding-bottom: 0.1em;
  background: var(--foil-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.03em 0 var(--foil-shadow));
}

/* Letterpress: the theme's text colour with a hard offset shadow. Cream over
   velvet on the dark themes, ink over brass on paper. */
.title--cream {
  text-shadow: 0.045em 0.05em 0 var(--offset);
}

.lede {
  max-width: 44ch;
  font-size: var(--fs-lede);
  font-style: italic;
  font-weight: 380;
  line-height: 1.34;
  color: var(--fg);
  text-wrap: pretty;
}

/* <hr class="star-rule">: a double rule broken by a star. */
.star-rule {
  position: relative;
  width: 100%;
  height: 1.4rem;
  border: 0;
  color: var(--accent);
  background:
    linear-gradient(90deg, transparent, currentColor 70%) left calc(50% - 2px) / calc(50% - 2.4rem) 2px no-repeat,
    linear-gradient(90deg, transparent, currentColor 70%) left calc(50% + 3px) / calc(50% - 2.4rem) 1px no-repeat,
    linear-gradient(270deg, transparent, currentColor 70%) right calc(50% - 2px) / calc(50% - 2.4rem) 2px no-repeat,
    linear-gradient(270deg, transparent, currentColor 70%) right calc(50% + 3px) / calc(50% - 2.4rem) 1px no-repeat,
    radial-gradient(circle closest-side, currentColor 96%, transparent) calc(50% - 1.5rem) 50% / 0.34rem 0.34rem no-repeat,
    radial-gradient(circle closest-side, currentColor 96%, transparent) calc(50% + 1.5rem) 50% / 0.34rem 0.34rem no-repeat;
}

.star-rule::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.4rem;
  height: 1.4rem;
  margin: -0.74rem 0 0 -0.7rem;
  background: currentColor;
  clip-path: var(--star);
}

.star-rule--short {
  width: min(100%, 16rem);
}

/* Buttons --------------------------------------------------------------------- */

.btn {
  --btn-edge: #6b440c;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 3.25rem;
  padding: 0.7em 1.9em;
  overflow: hidden;
  font-family: var(--font-logo);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: var(--r-1);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: transform var(--dur-1) var(--ease-out);
}

/* The plate line: a hairline set in from the edge, like an engraved border. */
.btn::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 1px;
  opacity: 0.45;
  pointer-events: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); }

.btn--sm {
  min-height: 2.75rem;
  padding: 0.5em 1.3em;
  font-size: 0.6875rem;
}

.btn--lg {
  min-height: 4rem;
  padding: 0.9em 2.6em;
  font-size: 0.9375rem;
}

.btn--gold {
  background: var(--foil);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 0 var(--btn-edge), 0 16px 24px -12px rgba(0, 0, 0, 0.7);
}

.btn--gold:active {
  box-shadow: inset 0 2px 5px rgba(60, 35, 0, 0.5), 0 1px 0 var(--btn-edge);
}

/* A band of light that crosses the foil on hover. */
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%);
  transform: translateX(-110%);
  pointer-events: none;
}

.btn--gold:hover::after,
.btn--gold:focus-visible::after {
  animation: fg-shimmer 0.9s var(--ease-in-out);
}

.btn--velvet {
  --btn-edge: #2a040c;
  background: linear-gradient(180deg, var(--velvet-hi), var(--velvet) 70%);
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 0 var(--btn-edge), 0 16px 24px -12px rgba(0, 0, 0, 0.7);
}

.btn--velvet::before {
  border-color: var(--gold);
  opacity: 0.8;
}

.btn--velvet:active {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 0 var(--btn-edge);
}

.btn--ghost {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px currentColor;
}

.btn--ghost:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Marquee bulbs ------------------------------------------------------------------ */
/* Shared by .marquee-frame and .btn--marquee. Every edge is tiled in pairs: one
   bulb of the pair belongs to phase A (::before), the other to phase B (::after),
   and the pairs are ordered so the phases alternate all the way round. Unlit bulbs
   sit on the element's own background. Only opacity is animated. */

.marquee-frame,
.btn--marquee {
  --pitch: 1.15rem;
  --unlit: #8a6a26 0 30%, #4a340c 40%, transparent 48%;
  --lit: #fffbe6 0 24%, var(--gold) 40%, rgba(242, 193, 78, 0.42) 56%, rgba(242, 193, 78, 0) 100%;
  --row: calc(var(--pitch) * 2) var(--pitch) round no-repeat;
  --col: var(--pitch) calc(var(--pitch) * 2) no-repeat round;
  --face: linear-gradient(180deg, #1b1338, var(--ink));
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle closest-side at 25% 50%, var(--unlit)) left top / var(--row),
    radial-gradient(circle closest-side at 75% 50%, var(--unlit)) left top / var(--row),
    radial-gradient(circle closest-side at 25% 50%, var(--unlit)) left bottom / var(--row),
    radial-gradient(circle closest-side at 75% 50%, var(--unlit)) left bottom / var(--row),
    radial-gradient(circle closest-side at 50% 25%, var(--unlit)) left top / var(--col),
    radial-gradient(circle closest-side at 50% 75%, var(--unlit)) left top / var(--col),
    radial-gradient(circle closest-side at 50% 25%, var(--unlit)) right top / var(--col),
    radial-gradient(circle closest-side at 50% 75%, var(--unlit)) right top / var(--col),
    var(--face);
}

.marquee-frame::before,
.marquee-frame::after,
.btn--marquee::before,
.btn--marquee::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: 0;
  opacity: 1;
  pointer-events: none;
}

.marquee-frame::before,
.btn--marquee::before {
  background:
    radial-gradient(circle closest-side at 25% 50%, var(--lit)) left top / var(--row),
    radial-gradient(circle closest-side at 50% 75%, var(--lit)) right top / var(--col),
    radial-gradient(circle closest-side at 75% 50%, var(--lit)) left bottom / var(--row),
    radial-gradient(circle closest-side at 50% 25%, var(--lit)) left top / var(--col);
  animation: fg-bulb-a 1.1s linear infinite;
}

.marquee-frame::after,
.btn--marquee::after {
  background:
    radial-gradient(circle closest-side at 75% 50%, var(--lit)) left top / var(--row),
    radial-gradient(circle closest-side at 50% 25%, var(--lit)) right top / var(--col),
    radial-gradient(circle closest-side at 25% 50%, var(--lit)) left bottom / var(--row),
    radial-gradient(circle closest-side at 50% 75%, var(--lit)) left top / var(--col);
  animation: fg-bulb-b 1.1s linear infinite;
}

.marquee-frame {
  padding: calc(var(--pitch) + var(--sp-5));
  color: var(--cream);
  border: 2px solid var(--brass);
  border-radius: var(--r-2);
  box-shadow: 0 0 0 1px #2a1a04, 0 0 0 5px var(--velvet-deep), 0 0 0 6px var(--gold-deep), var(--shadow-deep);
}

.btn--marquee {
  --face: linear-gradient(180deg, var(--velvet-hi), var(--velvet) 75%);
  --btn-edge: #2a040c;
  min-height: 4.25rem;
  padding: calc(var(--pitch) + 0.6em) calc(var(--pitch) + 1.7em);
  color: var(--cream);
  border-radius: var(--r-2);
  box-shadow: inset 0 0 0 1px var(--gold-deep), 0 4px 0 var(--btn-edge), 0 18px 28px -12px rgba(0, 0, 0, 0.75);
}

.btn--marquee:hover::before,
.btn--marquee:hover::after {
  animation-duration: 0.45s;
}

/* Panels -------------------------------------------------------------------------- */

.panel {
  position: relative;
  isolation: isolate;
  padding: clamp(1.5rem, 4vw, 3rem);
  background-color: var(--bg);
  color: var(--fg);
}

/* Pleated velvet with gold piping. */
.panel--velvet {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 22%, transparent 72%, rgba(0, 0, 0, 0.5)),
    var(--pleats),
    linear-gradient(180deg, var(--velvet), #6a0c1f);
  border: 3px solid var(--brass);
  border-radius: var(--r-2);
  outline: 1px solid rgba(255, 243, 196, 0.5);
  outline-offset: -9px;
  box-shadow: inset 0 0 0 1px #5c3d08, 0 0 0 1px #5c3d08, var(--shadow-deep);
}

/* Cream stock, fine double rule, faint grain. */
.panel--paper {
  color-scheme: light;
  background-image: var(--grain-dark), linear-gradient(180deg, var(--cream), var(--parchment));
  border: 1px solid var(--paper-ink);
  outline: 3px double rgba(28, 18, 38, 0.55);
  outline-offset: -11px;
  box-shadow: var(--shadow-lift), 0 2px 0 rgba(0, 0, 0, 0.35);
}

/* Deep night, gold hairline. */
.panel--night {
  background-image:
    var(--grain-light),
    radial-gradient(120% 90% at 50% 0%, var(--plum), var(--midnight) 45%, var(--ink));
  border: 1px solid rgba(242, 193, 78, 0.55);
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(242, 193, 78, 0.22), var(--shadow-deep);
}

/* Ornaments and props -------------------------------------------------------------- */

/* <span class="ribbon"><span>Text</span></span> */
.ribbon {
  --ribbon: var(--velvet-hi);
  --ribbon-dark: #6d0c20;
  --tail: 1.5em;
  position: relative;
  isolation: isolate;
  display: inline-block;
  margin-inline: var(--tail);
  font-family: var(--font-logo);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: var(--cream);
}

.ribbon > span {
  position: relative;
  display: block;
  padding: 0.8em 1.7em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%, rgba(0, 0, 0, 0.2)), var(--ribbon);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  outline: 1px dashed rgba(255, 243, 196, 0.55);
  outline-offset: -5px;
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 0.5em;
  z-index: -1;
  width: calc(var(--tail) + 0.7em);
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35)), var(--ribbon-dark);
}

.ribbon::before {
  left: calc(var(--tail) * -1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.5em), calc(100% - 0.7em) 100%, 0 100%, 0.7em 50%);
}

.ribbon::after {
  right: calc(var(--tail) * -1);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.7em) 50%, 100% 100%, 0.7em 100%, 0 calc(100% - 0.5em));
}

.ribbon--gold {
  --ribbon: var(--gold);
  --ribbon-dark: var(--gold-deep);
  color: var(--ink);
}

.ribbon--gold > span {
  outline-color: rgba(10, 7, 20, 0.45);
}

/* <span class="stamp">Name pending <small>Odense</small></span> */
.stamp {
  --rot: -6deg;
  display: inline-grid;
  justify-items: center;
  gap: 0.2em;
  padding: 0.5em 0.9em 0.46em;
  font-family: var(--font-logo);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
  color: var(--stamp-ink, var(--velvet-hi));
  border: 0.17em solid currentColor;
  border-radius: 0.3em;
  outline: 0.06em solid currentColor;
  outline-offset: -0.36em;
  transform: rotate(var(--rot));
  opacity: 0.94;
  -webkit-mask: var(--rough) center / 9em 9em;
  mask: var(--rough) center / 9em 9em;
}

/* The second line never drops below 9.6px, however small the stamp is set. */
.stamp small {
  font-size: max(0.48em, 0.6rem);
  font-weight: 700;
  letter-spacing: 0.3em;
}

.stamp--lg { font-size: clamp(1.6rem, 4vw, 2.75rem); }
.stamp--round { border-radius: 50%; aspect-ratio: 1; align-content: center; padding: 1.2em; }
.stamp--approved { --stamp-ink: var(--stamp-ok, var(--peacock)); }
.stamp--gold { --stamp-ink: var(--gold); }
.stamp--plain { --stamp-ink: var(--fg); }

.section--night,
.panel--night,
.marquee-frame { --stamp-ink: #ee3f5c; --stamp-ok: #37c2b4; }
.section--velvet,
.panel--velvet { --stamp-ink: var(--cream); --stamp-ok: var(--approved); }
/* On paper the approved ink is a darker peacock: 4.8:1 on parchment at the stamp's
   own opacity, where --peacock itself reaches 3:1. */
.section--paper,
.panel--paper { --stamp-ink: var(--velvet-hi); --stamp-ok: #0a6468; }
.section--blueprint { --stamp-ink: #ff8598; --stamp-ok: #7fe3d7; }

/* <span class="seal"> logo </span>: set --seal-size. */
.seal {
  --seal-size: 7rem;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--seal-size);
  height: var(--seal-size);
  flex: none;
  color: #ffc2cb;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 150, 165, 0.75) 0, rgba(255, 150, 165, 0) 26%),
    radial-gradient(circle at 50% 50%, var(--velvet-hi) 0, var(--velvet) 62%, #5c0a1a 100%);
  border-radius: 48% 52% 51% 49% / 53% 47% 52% 48%;
  box-shadow:
    inset 0 calc(var(--seal-size) * -0.03) calc(var(--seal-size) * 0.05) rgba(0, 0, 0, 0.45),
    inset 0 calc(var(--seal-size) * 0.02) calc(var(--seal-size) * 0.03) rgba(255, 190, 200, 0.5),
    0 calc(var(--seal-size) * 0.05) calc(var(--seal-size) * 0.09) rgba(0, 0, 0, 0.55);
}

/* The pressed disc */
.seal::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #a3142f, var(--velvet) 70%);
  box-shadow:
    inset 0 calc(var(--seal-size) * 0.025) calc(var(--seal-size) * 0.04) rgba(0, 0, 0, 0.6),
    0 calc(var(--seal-size) * 0.012) 0 rgba(255, 170, 185, 0.55);
}

.seal .fg-logo {
  font-size: calc(var(--seal-size) * 0.104);
  color: inherit;
  text-shadow: 0 0.07em 0 rgba(60, 4, 14, 0.85), 0 -0.03em 0 rgba(255, 255, 255, 0.35);
  transform: translate(0.05em, 0.42em) rotate(-7deg);
}

.seal--gold {
  color: #fff6cf;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 50% 50%, #f6d77a 0, var(--brass) 62%, #7a520f 100%);
}

.seal--gold::before {
  background: radial-gradient(circle at 50% 30%, #e7b94a, var(--brass) 70%);
  box-shadow:
    inset 0 calc(var(--seal-size) * 0.025) calc(var(--seal-size) * 0.04) rgba(60, 35, 0, 0.65),
    0 calc(var(--seal-size) * 0.012) 0 rgba(255, 246, 207, 0.8);
}

.seal--gold .fg-logo {
  text-shadow: 0 0.07em 0 rgba(90, 55, 5, 0.9), 0 -0.03em 0 rgba(255, 255, 255, 0.5);
}

/* Ticket: main part, perforation, stub. */
.ticket {
  --stub: 6.5rem;
  --notch: 0.7rem;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  width: 100%;
  max-width: 30rem;
  min-height: 8.5rem;
  color: var(--paper-ink);
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.45));
}

.ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain-dark), linear-gradient(180deg, var(--cream), var(--parchment));
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 96%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 96%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 96%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 96%, #000) bottom / 100% 51% no-repeat;
}

.ticket__main {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  margin: 0.5rem 0 0.5rem 0.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--paper-ink);
  outline: 1px solid var(--paper-ink);
  outline-offset: -4px;
}

.ticket__kicker {
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--velvet);
}

.ticket__title {
  font-family: var(--font-circus);
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  font-weight: 400;
  line-height: 1;
  color: var(--velvet);
}

.ticket__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket__stub {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.3rem;
  margin: 0.5rem 0.5rem 0.5rem 0;
  padding: 0.5rem;
  border-left: 2px dashed rgba(28, 18, 38, 0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.ticket__stub b {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--velvet);
}

/* Award between two laurel branches. */
.laurel {
  display: inline-grid;
  grid-template-columns: auto minmax(0, auto) auto;
  align-items: center;
  gap: 0.35em;
  font-size: 1rem;
  text-align: center;
  color: var(--accent);
}

.laurel__branch {
  width: 2.7em;
  height: 5.6em;
}

.laurel__branch--right {
  transform: scaleX(-1);
}

.laurel__body {
  display: grid;
  justify-items: center;
  gap: 0.3em;
  max-width: 11.5em;
  color: var(--fg);
}

.laurel__kicker {
  font-family: var(--font-logo);
  font-size: 0.6875em;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  margin-right: calc(var(--tracking-wide) * -1);
  text-transform: uppercase;
  color: var(--accent);
}

.laurel__title {
  font-family: var(--font-display);
  font-size: 1.45em;
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

.laurel__meta {
  font-size: 0.8125em;
  font-style: italic;
  line-height: 1.25;
  color: var(--muted);
  text-wrap: balance;
}

/* Scalloped tent edge. Place as a direct child of a .section (or any positioned box). */
.valance {
  --scallop: clamp(2.75rem, 7vw, 4.75rem);
  --band: 0.9rem;
  --valance-a: var(--velvet);
  --valance-b: var(--cream);
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: calc(var(--scallop) * 0.5 + var(--band));
  filter: drop-shadow(0 3px 0 var(--brass)) drop-shadow(0 10px 8px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.valance::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 55%),
    linear-gradient(90deg, var(--valance-a) 50%, var(--valance-b) 50%) 0 0 / calc(var(--scallop) * 2) 100% round;
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% calc(var(--band) + 1px) no-repeat,
    radial-gradient(ellipse 25% 100% at 25% 0, #000 97%, transparent 100%) 0 var(--band) / calc(var(--scallop) * 2) calc(var(--scallop) * 0.5) round no-repeat,
    radial-gradient(ellipse 25% 100% at 75% 0, #000 97%, transparent 100%) 0 var(--band) / calc(var(--scallop) * 2) calc(var(--scallop) * 0.5) round no-repeat;
  mask:
    linear-gradient(#000, #000) top / 100% calc(var(--band) + 1px) no-repeat,
    radial-gradient(ellipse 25% 100% at 25% 0, #000 97%, transparent 100%) 0 var(--band) / calc(var(--scallop) * 2) calc(var(--scallop) * 0.5) round no-repeat,
    radial-gradient(ellipse 25% 100% at 75% 0, #000 97%, transparent 100%) 0 var(--band) / calc(var(--scallop) * 2) calc(var(--scallop) * 0.5) round no-repeat;
}

.valance--bottom {
  inset: auto 0 0 0;
  transform: scaleY(-1);
}

.valance--gold {
  --valance-a: var(--brass);
  --valance-b: var(--velvet-deep);
}

.valance--velvet {
  --valance-a: var(--velvet);
  --valance-b: #6a0c1f;
}

/* Big-top stripes: a background utility. */
.stripes {
  --stripe: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(90deg, var(--velvet) 0 var(--stripe), var(--cream) var(--stripe) calc(var(--stripe) * 2));
}

.stripes--diagonal {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(-45deg, var(--velvet) 0 var(--stripe), var(--cream) var(--stripe) calc(var(--stripe) * 2));
}

/* The tent roof seen from inside: stripes fanning out from the king pole. */
.stripes--tent {
  background:
    radial-gradient(circle at 50% 0, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.5) 100%),
    repeating-conic-gradient(from 90deg at 50% 0, var(--velvet) 0 7.5deg, var(--cream) 7.5deg 15deg);
}

/* Rotating rays. First child of a positioned box; centre it there. */
.sunburst {
  --sunburst-size: min(150vmin, 90rem);
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: var(--sunburst-size);
  height: var(--sunburst-size);
  margin: calc(var(--sunburst-size) / -2) 0 0 calc(var(--sunburst-size) / -2);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--ray, rgba(242, 193, 78, 0.2)) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  pointer-events: none;
  /* Never the browser's scroll anchor: its box changes as it turns, and Firefox moved
     the page with it. */
  overflow-anchor: none;
  animation: fg-spin 120s linear infinite;
}

/* Data bits ---------------------------------------------------------------------- */

.stat {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  line-height: 0.86;
  font-variant-numeric: lining-nums;
  color: var(--accent);
  text-shadow: 0.04em 0.045em 0 var(--offset);
}

.stat__unit {
  font-size: 0.42em;
  margin-left: 0.08em;
}

.stat__label {
  max-width: 18em;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fg);
}

.stat--center {
  justify-items: center;
  text-align: center;
}

/* Flip-clock digits. Set --flip-size. Add .is-flipping to a digit for one tick
   (0.36s): swap its text at the half-way point. */
.flip {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  font-family: var(--font-mono);
  font-size: var(--flip-size, 2.75rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}

.flip__d {
  position: relative;
  display: grid;
  place-items: center;
  width: 0.84em;
  height: 1.34em;
  color: var(--cream);
  background: linear-gradient(180deg, #332a4d 0%, #1d1734 49%, #050309 49%, #050309 51.5%, #14102a 51.5%, #231c3d 100%);
  border-radius: 0.09em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 0.04em 0 rgba(255, 255, 255, 0.16), 0 0.08em 0.1em rgba(0, 0, 0, 0.65);
}

.flip__d::before,
.flip__d::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.11em);
  width: 0.05em;
  height: 0.22em;
  background: var(--brass);
}

.flip__d::before { left: 0; }
.flip__d::after { right: 0; }

.flip__d.is-flipping {
  animation: fg-flip-tick 0.36s var(--ease-in-out);
}

.flip__sep {
  padding-inline: 0.06em;
  font-family: var(--font-display);
  color: var(--accent);
}

/* Status pill. data-state="pending" is amber and blinks, "approved" is steady green-gold. */
.pill {
  --pill: var(--amber);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  height: 2.125rem;
  padding: 0 1em 0 0.8em;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--pill);
  background: rgba(10, 7, 20, 0.92);
  border: 1px solid var(--pill);
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 2px rgba(10, 7, 20, 0.92), inset 0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* Lifts the tap target of a linked pill to 44px without changing its look. */
a.pill::after,
button.pill::after {
  content: "";
  position: absolute;
  inset: -0.35rem 0;
}

.pill__lamp {
  flex: none;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--pill) 55%);
  box-shadow: 0 0 0.6em var(--pill);
  animation: fg-blink 1.6s steps(1, end) infinite;
}

.pill[data-state="approved"] {
  --pill: var(--approved);
}

.pill[data-state="approved"] .pill__lamp {
  animation: none;
}

/* Mono table with hairlines. */
.spec-table {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.45;
  border-top: 2px solid var(--fg);
}

.spec-table caption {
  padding-bottom: 0.9em;
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-align: left;
  text-transform: uppercase;
  color: var(--accent);
}

.spec-table th,
.spec-table td {
  padding: 0.72em 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}

.spec-table th {
  width: 40%;
  padding-right: 1.25em;
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Testimonial. */
.quote {
  position: relative;
  max-width: 36rem;
  padding-top: 2.9rem;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: 0;
  left: -0.05em;
  height: 0.5em;
  font-family: var(--font-display);
  font-size: 6.5rem;
  line-height: 0.82;
  color: var(--accent);
}

.quote blockquote {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);
  font-style: italic;
  font-weight: 380;
  line-height: 1.32;
  text-wrap: pretty;
}

.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 0.8em;
  margin-top: 1.2em;
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.quote figcaption::before {
  content: "";
  flex: none;
  align-self: center;
  width: 2.2em;
  height: 2px;
  background: var(--accent);
}

.quote cite {
  font-style: normal;
  font-weight: 800;
  color: var(--fg);
}

/* Card. The engine (or a section) tilts .card__inner by writing --rx and --ry. */
.card {
  perspective: 62rem;
}

.card__inner {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--sp-3);
  height: 100%;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: var(--grain), var(--surface);
  color: var(--fg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-letterpress);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform var(--dur-2) var(--ease-out);
}

.card__inner::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.card__kicker {
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1;
}

.card__body {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--fg);
}

/* Footnotes ------------------------------------------------------------------------ */

/* The inline source. The engine replaces it with a numbered .fn-mark. */
.fn {
  display: none;
}

/* The engine puts the last word before a note, the note and its marker in this span,
   so that a marker never opens a line on its own. */
.fn-keep {
  white-space: nowrap;
}

.fn-mark {
  position: relative;
  display: inline-block;
  min-width: 1.5em;
  margin: 0 0.1em 0 0.12em;
  padding: 0.12em 0.3em;
  font-family: var(--font-logo);
  /* Never below 11px, however small the text the marker sits in. */
  font-size: max(0.62em, 0.6875rem);
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: lining-nums;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  vertical-align: 0.62em;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  transition: background-color var(--dur-1), color var(--dur-1);
}

/* 44px tap target centred on the marker, whatever size the marker itself is. It is
   out of flow, so the text around it does not move. Text that is squeezed sideways
   by a transform (the footer's billing block sets --squeeze) gets the width back. */
.fn-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(2.75rem / var(--squeeze, 1));
  height: 2.75rem;
  translate: -50% -50%;
}

.fn-mark:hover,
.fn-mark[aria-expanded="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

/* One shared popover (in 99-foot). The engine sets --x and --y in page pixels
   (the marker's horizontal centre and its bottom edge) and toggles .is-open. */
.fn-pop {
  --x: 50vw;
  --y: 0px;
  position: absolute;
  left: clamp(1rem, calc(var(--x) - 11rem), calc(100vw - 23.5rem));
  top: calc(var(--y) + 0.7rem);
  z-index: var(--z-popover);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.2rem 0.8rem;
  align-items: start;
  width: 22rem;
  padding: 0.9rem 0.6rem 0.95rem 1rem;
  color: var(--paper-ink);
  background: var(--grain-dark), var(--cream);
  border: 1px solid var(--paper-ink);
  outline: 1px solid rgba(28, 18, 38, 0.45);
  outline-offset: -5px;
  box-shadow: 5px 5px 0 var(--velvet), var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}

.fn-pop.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* The popover takes focus when it is pressed (footnotes.js), so that a pinned note
   survives the press. It is not a tab stop and keeps its inner rule, not a focus ring. */
.fn-pop:focus-visible {
  outline: 1px solid rgba(28, 18, 38, 0.45);
  outline-offset: -5px;
  border-radius: 0;
}

.fn-pop__num {
  min-width: 1.9em;
  margin-top: 0.15rem;
  padding: 0.1em 0.3em;
  font-family: var(--font-logo);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: lining-nums;
  line-height: 1.4;
  text-align: center;
  color: var(--velvet);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
}

.fn-pop__body {
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.42;
}

.fn-pop__body em,
.fn-pop__body i {
  font-style: normal;
}

.fn-pop__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.6rem -0.3rem 0 0;
  font-size: 1rem;
  color: var(--paper-ink);
  --focus: var(--velvet-hi);
}

@media (max-width: 40em) {
  .fn-pop {
    position: fixed;
    inset: auto 0.75rem max(0.75rem, env(safe-area-inset-bottom)) 0.75rem;
    width: auto;
  }
}

/* The collected notes. */
.fn-list {
  display: grid;
  gap: 0.7em 2.5rem;
  counter-reset: fn;
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 52em) {
  .fn-list {
    grid-template-columns: 1fr 1fr;
  }
}

.fn-list > li {
  position: relative;
  padding-left: 2.4em;
  counter-increment: fn;
}

.fn-list > li::before {
  content: counter(fn);
  position: absolute;
  left: 0;
  top: 0.18em;
  min-width: 1.7em;
  font-family: var(--font-logo);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
}

.fn-list em,
.fn-list i {
  font-style: normal;
  color: var(--fg);
}

/* The way back (drawn in 06-chrome-live.css) lies over the note that follows, or that
   note would cover the lower part of its 44px tap target. */
.fn-list .fn-back {
  z-index: 1;
}

/* Tooltip and toast ------------------------------------------------------------------ */

/* <span class="tooltip" tabindex="0" data-tip="...">term</span> */
.tooltip {
  position: relative;
  cursor: help;
  text-decoration: underline dotted var(--accent);
  text-underline-offset: 0.2em;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6em);
  z-index: var(--z-popover);
  width: max-content;
  max-width: min(17rem, 70vw);
  padding: 0.55em 0.85em;
  font-family: var(--font-text);
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  white-space: normal;
  color: var(--paper-ink);
  background: var(--cream);
  border: 1px solid var(--paper-ink);
  box-shadow: 3px 3px 0 var(--velvet);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.4em);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  pointer-events: none;
}

.tooltip:hover::after,
.tooltip:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.tooltip--start::after {
  left: 0;
  transform: translate(0, 0.4em);
}

.tooltip--start:hover::after,
.tooltip--start:focus-visible::after {
  transform: none;
}

.tooltip--end::after {
  left: auto;
  right: 0;
  transform: translate(0, 0.4em);
}

.tooltip--end:hover::after,
.tooltip--end:focus-visible::after {
  transform: none;
}

/* [data-toasts] holds .toast notices; newest at the bottom. */
.toasts {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(100% - 2rem, 30rem);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.8em;
  max-width: 100%;
  padding: 0.8em 1.2em 0.8em 1em;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--cream);
  background: var(--grain-light), linear-gradient(180deg, var(--plum), var(--midnight));
  border: 1px solid rgba(242, 193, 78, 0.6);
  box-shadow: inset 0 0 0 3px var(--ink), 4px 4px 0 var(--velvet), var(--shadow-lift);
  pointer-events: auto;
  animation: fg-toast-in 0.5s var(--ease-overshoot) both;
}

.toast::before {
  content: "";
  flex: none;
  width: 0.9em;
  height: 0.9em;
  background: var(--gold);
  clip-path: var(--star);
}

.toast.is-leaving {
  animation: fg-toast-out 0.3s var(--ease-in-out) both;
}

/* Forced colours ------------------------------------------------------------------------ */

/* The system palette removes plain backgrounds and shadows, which is all that frames a
   button here, and puts a backplate behind each stacked letter of the logo that covers
   its neighbours. Buttons get a real border. The logo and the hero tagline are drawn
   in the system's text colour on one plate per row or column instead of one per
   letter or line, because gradients behind them survive this mode. */
@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }

  /* The longer selectors outrank the gold foil and the seal's own colour. */
  .fg-logo,
  .fg-logo *,
  .seal .fg-logo,
  .fg-logo--gold .fg-logo__across,
  .fg-logo--gold .fg-logo__g,
  .fg-logo--gold .fg-logo__l {
    forced-color-adjust: none;
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    text-shadow: none;
  }

  .fg-logo .fg-logo__across,
  .fg-logo .fg-logo__down {
    background: Canvas;
  }

  .s-hero__tagline {
    background: Canvas;
  }

  .s-hero__tagline span {
    forced-color-adjust: none;
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}
/* Page chrome: skip link, curtain, navigation, rum meter. Markup lives in
   html/00-head.html. State classes and data hooks: CONTRACT.md part 1. */

:root {
  /* Width of the sound toggle and menu button on small screens; the compact rum
     meter is parked just to their left. Zero when those buttons are hidden. */
  --nav-buttons: calc(2 * (2.75rem + var(--nav-tool-gap)));
  /* The bar's side padding, the gap between its tools on small screens, and the slot
     kept free for the glass between the pill and the buttons. */
  --nav-pad: clamp(1rem, 2.5vw, 2.25rem);
  --nav-tool-gap: 0.4rem;
  --nav-glass-slot: 2.5rem;
  /* The padding per side: never less than the notch of a phone held sideways. */
  --nav-pad-left: max(var(--nav-pad), env(safe-area-inset-left, 0px));
  --nav-pad-right: max(var(--nav-pad), env(safe-area-inset-right, 0px));
}

html:not(.js) {
  --nav-buttons: 0rem;
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: var(--z-skip);
  transform: translateY(-300%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}

/* The curtain ------------------------------------------------------------------------- */
/* Closed at load. Opens when the engine adds .is-open; if that never happens, the
   failsafe animations open it after --curtain-hold (chrome/curtain.js reads this
   clock; the noscript block in html/00-head.html shortens it). */

.curtain {
  --curtain-hold: 7s;
  --curtain-sweep: 1.9s;
  --drape-open: scaleX(0.38);
  position: fixed;
  inset: 0;
  z-index: var(--z-curtain);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation:
    fg-curtain-release 0s linear var(--curtain-hold) forwards,
    fg-curtain-gone 0s linear calc(var(--curtain-hold) + var(--curtain-sweep) + 0.4s) forwards;
}

.curtain__drape {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 66%, rgba(0, 0, 0, 0.6) 100%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.46) 0, rgba(0, 0, 0, 0.08) 1.1rem, rgba(255, 170, 180, 0.16) 2.3rem, rgba(0, 0, 0, 0.04) 3.5rem, rgba(0, 0, 0, 0.52) 5.1rem, rgba(0, 0, 0, 0.12) 6rem, rgba(255, 170, 180, 0.11) 7.3rem, rgba(0, 0, 0, 0.46) 9.2rem),
    linear-gradient(180deg, var(--velvet-hi) -25%, var(--velvet) 32%, #5c0a1a 100%);
  transition: transform var(--curtain-sweep) var(--ease-drape);
  will-change: transform;
}

.curtain__drape--left {
  left: 0;
  transform-origin: 0 0;
  animation: fg-drape-left var(--curtain-sweep) var(--ease-drape) var(--curtain-hold) forwards;
}

.curtain__drape--right {
  right: 0;
  transform-origin: 100% 0;
  animation: fg-drape-right var(--curtain-sweep) var(--ease-drape) var(--curtain-hold) forwards;
}

/* The leading edge: a rolled hem that catches the light, then falls into shadow
   where the two drapes meet */
.curtain__drape::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.6rem;
}

.curtain__drape--left::before {
  right: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 170, 180, 0.22) 45%, rgba(0, 0, 0, 0.7));
}

.curtain__drape--right::before {
  left: 0;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0), rgba(255, 170, 180, 0.22) 45%, rgba(0, 0, 0, 0.7));
}

/* Fringe along the hem: a braid, threads, and a row of bobbles */
.curtain__drape::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(2.4rem, 6vh, 3.75rem);
  background:
    linear-gradient(180deg, var(--gold-hi) 0, var(--gold) 9%, var(--gold-deep) 20%, rgba(60, 35, 0, 0.75) 21%, rgba(60, 35, 0, 0) 40%),
    repeating-linear-gradient(90deg, var(--gold-deep) 0 2px, var(--gold) 2px 4px, #7a520f 4px 6px);
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% calc(100% - 6px) no-repeat,
    radial-gradient(circle at 50% 0, #000 5.5px, transparent 6px) bottom / 12px 6px repeat-x;
  mask:
    linear-gradient(#000, #000) top / 100% calc(100% - 6px) no-repeat,
    radial-gradient(circle at 50% 0, #000 5.5px, transparent 6px) bottom / 12px 6px repeat-x;
}

.curtain__valance {
  --scallop: clamp(5rem, 15vw, 11rem);
  --band: clamp(2.4rem, 8vh, 4.5rem);
  --valance-a: #7a0e23;
  --valance-b: #6a0c1f;
  z-index: 3;
  filter: drop-shadow(0 4px 0 var(--gold)) drop-shadow(0 7px 0 var(--gold-deep)) drop-shadow(0 18px 16px rgba(0, 0, 0, 0.6));
  transition: transform 1.2s var(--ease-drape) 0.5s;
  animation: fg-valance-up 1.2s var(--ease-drape) calc(var(--curtain-hold) + 0.5s) forwards;
}

.curtain__card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 3vh, 1.75rem);
  width: min(100% - 2.5rem, 40rem);
  padding-top: clamp(3rem, 10vh, 6rem);
  text-align: center;
  color: var(--cream);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
  animation: fg-card-out 0.5s var(--ease-out) var(--curtain-hold) forwards;
}

/* A pool of shadow so the card reads against the pleats */
.curtain__card::before {
  content: "";
  position: absolute;
  inset: -12% -22% -22%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(24, 3, 9, 0.84), rgba(24, 3, 9, 0.62) 55%, rgba(24, 3, 9, 0));
}

.curtain__card .fg-logo {
  font-size: clamp(1.9rem, 6.5vw, 3.6rem);
}

.curtain__line {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.9rem);
  line-height: 1;
  text-shadow: 0.05em 0.055em 0 var(--velvet-deep);
}

.curtain__small {
  max-width: 34ch;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--gold-hi);
}

.curtain.is-open {
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear calc(var(--curtain-sweep) + 0.4s);
  animation: none;
}

.curtain.is-open .curtain__drape,
.curtain.is-open .curtain__valance,
.curtain.is-open .curtain__card {
  animation: none;
}

.curtain.is-open .curtain__drape--left { transform: translateX(-102%) var(--drape-open); }
.curtain.is-open .curtain__drape--right { transform: translateX(102%) var(--drape-open); }
.curtain.is-open .curtain__valance { transform: translateY(-115%); }

.curtain.is-open .curtain__card {
  opacity: 0;
  transform: scale(0.94);
}

@keyframes fg-curtain-release { to { pointer-events: none; } }
@keyframes fg-curtain-gone { to { pointer-events: none; visibility: hidden; } }
@keyframes fg-drape-left { to { transform: translateX(-102%) var(--drape-open); } }
@keyframes fg-drape-right { to { transform: translateX(102%) var(--drape-open); } }
@keyframes fg-valance-up { to { transform: translateY(-115%); } }
@keyframes fg-card-out { to { opacity: 0; transform: scale(0.94); } }

/* Calm visitors get no curtain at all. */
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
}

html.is-calm .curtain {
  display: none;
}

/* Navigation --------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.75rem);
  height: var(--nav-h);
  padding-left: var(--nav-pad-left);
  padding-right: var(--nav-pad-right);
  color: var(--cream);
  --focus: var(--gold-hi);
}

/* Two backings: a scrim for the top of the page, a solid bar once stuck. */
.site-nav::before,
.site-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.site-nav::before {
  bottom: -1.5rem;
  background: linear-gradient(180deg, rgba(10, 7, 20, 0.86), rgba(10, 7, 20, 0));
}

.site-nav::after {
  background: var(--grain-light), linear-gradient(180deg, #17102f, var(--ink));
  border-bottom: 1px solid rgba(242, 193, 78, 0.55);
  box-shadow: 0 3px 0 var(--ink), 0 4px 0 rgba(242, 193, 78, 0.22), 0 18px 30px -14px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.site-nav.is-stuck::after,
.site-nav.is-menu-open::after,
html:not(.js) .site-nav::after {
  opacity: 1;
}

/* Where scroll-driven animations exist the solid bar fades in by itself after the
   first few rems of scrolling, engine or no engine. .is-stuck covers the rest. */
@supports (animation-timeline: scroll()) {
  .site-nav:not(.is-menu-open)::after {
    animation: fg-nav-stick 1s linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 7rem;
  }
}

@keyframes fg-nav-stick {
  from { opacity: 0; }
  to { opacity: 1; }
}

.site-nav__brand {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

/* Large enough for the stacked word to read on a 1x screen */
.site-nav__brand .fg-logo {
  font-size: 1.05rem;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.9vw, 2.1rem);
  margin-inline: auto;
}

.site-nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  transition: color var(--dur-1);
}

.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.2em;
  bottom: 0.55rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-2) var(--ease-out);
}

.site-nav__links a:hover,
.site-nav__links a[aria-current] {
  color: var(--gold);
}

.site-nav__links a:hover::after,
.site-nav__links a[aria-current]::after {
  transform: none;
}

.site-nav__programme,
.site-nav__note {
  display: none;
}

.site-nav__tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(251, 241, 220, 0.4);
  border-radius: var(--r-pill);
  transition: color var(--dur-1), border-color var(--dur-1);
}

.sound-toggle .icon {
  font-size: 1.15rem;
}

.sound-toggle__on,
.sound-toggle[aria-pressed="true"] .sound-toggle__off {
  display: none;
}

.sound-toggle[aria-pressed="true"] .sound-toggle__on {
  display: inline-block;
}

.sound-toggle:hover,
.sound-toggle[aria-pressed="true"] {
  color: var(--gold);
  border-color: var(--gold);
}

.site-nav__menu {
  position: relative;
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.55);
  border-radius: var(--r-pill);
}

/* Three bars that cross into an X when the sheet is open */
.site-nav__menu span[aria-hidden],
.site-nav__menu span[aria-hidden]::before,
.site-nav__menu span[aria-hidden]::after {
  position: absolute;
  left: 50%;
  width: 1.15rem;
  height: 2px;
  margin-left: -0.575rem;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1);
}

.site-nav__menu span[aria-hidden] { top: calc(50% - 1px); }
.site-nav__menu span[aria-hidden]::before { content: ""; top: -6px; }
.site-nav__menu span[aria-hidden]::after { content: ""; top: 6px; }

.site-nav.is-menu-open .site-nav__menu span[aria-hidden] { background: transparent; }
.site-nav.is-menu-open .site-nav__menu span[aria-hidden]::before { transform: translateY(6px) rotate(45deg); }
.site-nav.is-menu-open .site-nav__menu span[aria-hidden]::after { transform: translateY(-6px) rotate(-45deg); }

/* The sound toggle and the menu button do nothing without the engine. */
html:not(.js) .sound-toggle,
html:not(.js) .site-nav__menu {
  display: none;
}

/* The deck's nav copy is longer than the placeholders were, so the bar sheds weight in
   two steps before the phone layout: first the Fanfare label, then the call to action
   (the pill beside it leads to the same place). */
.site-nav__cta {
  white-space: nowrap;
}

@media (max-width: 75.99em) {
  .site-nav__cta {
    display: none;
  }
}

/* The narrowest desktop bar: the links close up so "Name: approved*" still fits. */
@media (min-width: 64em) and (max-width: 71.99em) {
  .site-nav__links {
    gap: 0.8rem;
  }
}

/* The programme sheet's way to the finale. From here up the gold button or the pill
   beside it does that job. */
@media (min-width: 64em) {
  .site-nav__links .site-nav__sign {
    display: none;
  }
}

@media (max-width: 83.99em) {
  .sound-toggle {
    padding: 0;
  }

  .sound-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Small screens: logo, pill, (rum meter), sound, menu. The links become the
   programme sheet. */
@media (max-width: 63.99em) {
  .site-nav {
    gap: 0.5rem;
  }

  .site-nav__brand .fg-logo {
    font-size: 0.85rem;
  }

  .site-nav__tools {
    gap: var(--nav-tool-gap);
    margin-left: auto;
  }

  /* Room for the compact rum meter between the pill and the buttons */
  .site-nav__tools .pill {
    margin-right: var(--nav-glass-slot);
  }

  .site-nav__cta {
    display: none;
  }

  .site-nav__menu {
    display: block;
  }

  .site-nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: grid;
    gap: 0;
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    margin: 0;
    padding: 1.5rem var(--gutter) 2rem;
    overflow-y: auto;
    counter-reset: act;
    color: var(--paper-ink);
    background: var(--grain-dark), linear-gradient(180deg, var(--cream), var(--parchment));
    border-bottom: 4px double var(--paper-ink);
    box-shadow: 0 30px 50px -10px rgba(0, 0, 0, 0.8);
    --focus: var(--velvet-hi);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1.25rem);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
  }

  .site-nav.is-menu-open .site-nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .site-nav__programme {
    display: block;
    padding-bottom: 0.9rem;
    font-family: var(--font-circus);
    font-size: 2.4rem;
    line-height: 1;
    text-align: center;
    color: var(--velvet);
    border-bottom: 3px double var(--paper-ink);
  }

  .site-nav__links a {
    display: grid;
    grid-template-columns: 4.4rem minmax(0, 1fr);
    align-items: baseline;
    min-height: 3.25rem;
    padding: 0.75rem 0 0.6rem;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.05;
    text-transform: none;
    color: var(--paper-ink);
    border-bottom: 1px solid rgba(28, 18, 38, 0.3);
    counter-increment: act;
  }

  .site-nav__links a::before {
    content: "Act " counter(act, upper-roman);
    font-family: var(--font-logo);
    font-size: var(--fs-micro);
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--velvet);
  }

  .site-nav__links a::after {
    display: none;
  }

  .site-nav__links a:hover,
  .site-nav__links a[aria-current] {
    color: var(--velvet);
  }

  .site-nav__note {
    display: block;
    padding-top: 1.1rem;
    font-size: 0.9375rem;
    font-style: italic;
    text-align: center;
    color: #5d5066;
  }
}

@media (max-width: 30em) {
  .pill__key {
    display: none;
  }
}

/* Narrow phones: the bar holds logo, pill, glass and two buttons by shedding the
   pill's lamp first, then air. */
@media (max-width: 24em) {
  .site-nav__tools .pill {
    padding-inline: 0.6em;
  }

  .site-nav__tools .pill__lamp {
    display: none;
  }
}

@media (max-width: 21.5em) {
  :root {
    --nav-pad: 0.75rem;
    --nav-tool-gap: 0.25rem;
    --nav-glass-slot: 2.125rem;
  }

  .site-nav {
    gap: 0.375rem;
  }

  .site-nav__brand .fg-logo {
    font-size: 0.75rem;
  }

  .site-nav__tools .pill {
    letter-spacing: 0.08em;
  }
}

/* The rum meter --------------------------------------------------------------------------- */
/* --level runs from 1 (top of the page) to 0 (bottom). */

.rum-meter {
  position: fixed;
  right: max(0.9rem, env(safe-area-inset-right));
  bottom: max(0.9rem, env(safe-area-inset-bottom));
  z-index: var(--z-widget);
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  width: 5.1rem;
  padding: 0.75rem 0.4rem 0.6rem;
  text-align: center;
  color: var(--cream);
  background: var(--grain-light), linear-gradient(180deg, var(--plum), var(--ink) 80%);
  border: 1px solid rgba(242, 193, 78, 0.6);
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(242, 193, 78, 0.2), var(--shadow-lift);
}

.rum-meter__glass {
  width: 2.7rem;
  height: 3.375rem;
  overflow: visible;
}

.rum-meter__liquid {
  transform: translateY(calc((1 - var(--level, 1)) * 40px));
  transition: transform 0.35s linear;
}

.rum-meter__wave {
  animation: fg-wave 2.8s linear infinite;
}

.rum-meter__text {
  display: grid;
  gap: 0.15rem;
}

.rum-meter__label {
  font-family: var(--font-logo);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #cfc5dd;
}

.rum-meter__value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.2;
  color: var(--gold);
}

/* Up to wide screens the page gutter is all the room there is beside the content, so
   the plaque slims to fit inside it: the glass and its reading, no label. The full
   plaque needs the margin that only appears beyond the widest content (--wrap-wide). */
@media (min-width: 64em) and (max-width: 104.99em) {
  .rum-meter {
    right: max(0.3rem, env(safe-area-inset-right));
    gap: 0.25rem;
    width: calc(var(--gutter) - 0.6rem);
    padding: 0.6rem 0 0.5rem;
  }

  .rum-meter__glass {
    width: 2rem;
    height: 2.5rem;
  }

  .rum-meter__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rum-meter__value {
    font-size: 0.6875rem;
  }
}

/* Small screens: the glass alone, parked in the nav bar so it never sits on text. */
@media (max-width: 63.99em) {
  .rum-meter {
    /* Centred in the slot the pill keeps free */
    --parked-right: calc(var(--nav-pad-right) + var(--nav-buttons) + (var(--nav-glass-slot) - 2rem) / 2);
    top: calc((var(--nav-h) - 2.5rem) / 2);
    right: var(--parked-right);
    bottom: auto;
    width: 2rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .rum-meter__glass {
    width: 2rem;
    height: 2.5rem;
  }

  .rum-meter__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
/* Motion vocabulary: the declarative reveal and scroll attributes the engine
   drives, a few utilities, and the keyframes every section shares.
   Reveals use the individual translate / scale / rotate properties, so they never
   fight a component's own transform. */

/* data-reveal ------------------------------------------------------------------ */
/* Visible by default. Once the engine adds html.js, a [data-reveal] element waits
   hidden until it gets .is-in. Stagger with style="--i: 3". */

html.js [data-reveal] {
  opacity: 0;
  translate: 0 2.5rem;
  /* Never the browser's scroll anchor: Firefox follows an anchor as it travels into
     place, and the page drifted 40 px after a jump had landed. */
  overflow-anchor: none;
  transition:
    opacity var(--dur-3) var(--ease-out),
    translate var(--dur-4) var(--ease-out),
    scale var(--dur-4) var(--ease-out),
    rotate var(--dur-4) var(--ease-out),
    clip-path var(--dur-4) var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}

html.js [data-reveal="down"] { translate: 0 -2.5rem; }
html.js [data-reveal="left"] { translate: -3.5rem 0; }
html.js [data-reveal="right"] { translate: 3.5rem 0; }

html.js [data-reveal="scale"] {
  translate: none;
  scale: 0.82;
  transition-timing-function: var(--ease-out), var(--ease-out), var(--ease-overshoot), var(--ease-out), var(--ease-out);
}

html.js [data-reveal="flip"] {
  translate: none;
  rotate: x -88deg;
  transform-origin: 50% 0;
}

html.js [data-reveal="iris"] {
  opacity: 1;
  translate: none;
  clip-path: circle(0% at 50% 50%);
}

html.js [data-reveal="slam"] {
  translate: none;
  transition: none;
}

html.js [data-reveal].is-in {
  opacity: 1;
  translate: none;
  scale: none;
  rotate: none;
}

html.js [data-reveal="iris"].is-in {
  clip-path: circle(75% at 50% 50%);
}

html.js [data-reveal="slam"].is-in {
  animation: fg-stamp-slam 0.62s var(--ease-slam) calc(var(--i, 0) * var(--stagger)) both;
}

/* data-scroll -------------------------------------------------------------------- */
/* The engine writes --p on the element: 0 as its top edge enters at the bottom of
   the viewport, 1 as its bottom edge leaves at the top. Without the engine --p is
   unset, so always read it with a fallback: var(--p, 0.5). */

.parallax-slow {
  translate: 0 calc((var(--p, 0.5) - 0.5) * var(--parallax, 6rem));
}

.parallax-fast {
  translate: 0 calc((var(--p, 0.5) - 0.5) * var(--parallax, 6rem) * -1.5);
}

/* Animation utilities ---------------------------------------------------------- */

.anim-spin { animation: fg-spin var(--spin, 60s) linear infinite; }
.anim-bob { animation: fg-bob var(--bob, 3.2s) var(--ease-in-out) infinite alternate; }
.anim-sway { transform-origin: 50% 0; animation: fg-sway var(--sway, 4.5s) var(--ease-in-out) infinite alternate; }
.anim-flicker { animation: fg-flicker 3.4s linear infinite; }

/* A band of light crossing any box (foil plates, cards). Needs position and
   overflow: hidden on the box; .shimmer provides both. */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
  transform: translateX(-110%);
  pointer-events: none;
  animation: fg-shimmer 4.5s var(--ease-in-out) infinite;
}

/* Off screen ----------------------------------------------------------------------- */
/* The engine sets data-offscreen on a [data-module] root while it is more than half a
   viewport away. The decorative loops inside it then stop outright: animation: none
   releases the composited layer, which a paused animation would keep alive. */

[data-offscreen] :is(.sunburst, .anim-spin, .anim-bob, .s-ponies__raising i, .s-hero__cue .icon, .s-hero__flat-beam),
[data-offscreen] :is(.btn--marquee, .marquee-frame)::before,
[data-offscreen] :is(.btn--marquee, .marquee-frame)::after,
[data-offscreen] .s-company__consent::before {
  animation: none;
}

/* Keyframes ------------------------------------------------------------------------ */

@keyframes fg-bulb-a {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0.1; }
  100% { opacity: 1; }
}

@keyframes fg-bulb-b {
  0%, 42% { opacity: 0.1; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0.1; }
}

@keyframes fg-shimmer {
  0% { transform: translateX(-110%); }
  60%, 100% { transform: translateX(110%); }
}

@keyframes fg-spin {
  to { rotate: 1turn; }
}

@keyframes fg-flicker {
  0%, 100% { opacity: 1; }
  7% { opacity: 0.82; }
  11% { opacity: 0.96; }
  23% { opacity: 0.78; }
  29% { opacity: 1; }
  52% { opacity: 0.9; }
  58% { opacity: 0.72; }
  63% { opacity: 0.98; }
  81% { opacity: 0.86; }
}

@keyframes fg-bob {
  from { translate: 0 -0.35rem; }
  to { translate: 0 0.35rem; }
}

@keyframes fg-sway {
  from { rotate: -3deg; }
  to { rotate: 3deg; }
}

@keyframes fg-stamp-slam {
  0% { opacity: 0; scale: 2.6; }
  55% { opacity: 1; scale: 0.92; }
  75% { scale: 1.05; }
  100% { opacity: 1; scale: 1; }
}

@keyframes fg-blink {
  0% { opacity: 1; }
  55% { opacity: 0.25; }
  100% { opacity: 0.25; }
}

@keyframes fg-flip-tick {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.04); }
}

@keyframes fg-toast-in {
  from { opacity: 0; translate: 0 1.5rem; }
  to { opacity: 1; translate: none; }
}

@keyframes fg-toast-out {
  from { opacity: 1; translate: none; }
  to { opacity: 0; translate: 0 1rem; }
}

@keyframes fg-wave {
  to { transform: translateX(16px); }
}

/* Calm: everything revealed, nothing offset ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    translate: none;
    scale: none;
    rotate: none;
    clip-path: none;
  }

  .parallax-slow,
  .parallax-fast {
    translate: none;
  }

  .shimmer::after {
    display: none;
  }
}

html.is-calm [data-reveal] {
  opacity: 1;
  translate: none;
  scale: none;
  rotate: none;
  clip-path: none;
}

html.is-calm .parallax-slow,
html.is-calm .parallax-fast {
  translate: none;
}

html.is-calm .shimmer::after {
  display: none;
}
/* Styles for what the chrome wiring (assets/js/chrome/) adds at run time: the
   approved pill's aside, the Fanfare tooltip, the rum meter's remark, footnote
   back-links and the easter eggs. Reference: CONTRACT.md, "The page chrome". */

/* The consent pill ---------------------------------------------------------------- */
/* "Approved (not by him)" in full where the bar has room; an asterisk stands in for
   the aside everywhere else. */

.pill__star {
  display: none;
}

@media (max-width: 99.99em) {
  .pill__aside {
    display: none;
  }

  .pill__star {
    display: inline;
  }
}

/* The Fanfare tooltip ---------------------------------------------------------------- */
/* Same card as .tooltip, hung below the button because the nav sits at the top edge. */

.sound-toggle {
  position: relative;
}

.sound-toggle[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 1.15rem);
  right: 0;
  width: max-content;
  max-width: min(17rem, 70vw);
  padding: 0.55em 0.85em;
  font-family: var(--font-text);
  font-size: 0.875rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  white-space: normal;
  color: var(--paper-ink);
  background: var(--cream);
  border: 1px solid var(--paper-ink);
  box-shadow: 3px 3px 0 var(--velvet);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4em);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  pointer-events: none;
}

.sound-toggle:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

@media (hover: hover) {
  .sound-toggle:hover::after {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

/* The rum meter's remark ------------------------------------------------------------- */
/* The meter is a link to the top of the page (the refill). Its remark is a small card
   stacked above the plaque, inside the margin column, on hover, focus and a press.
   It appears unasked only where that margin can hold it (chrome/rum-meter.js); the
   exit is quick so it never lingers half faded over anything. */

.rum-meter {
  text-decoration: none;
  --focus: var(--gold-hi);
}

.rum-meter__remark {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.8rem);
  display: grid;
  gap: 0.35em;
  width: max-content;
  max-width: 11rem;
  padding: 0.6em 0.9em 0.65em;
  font-family: var(--font-text);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.32;
  text-align: left;
  color: var(--paper-ink);
  background: var(--grain-dark), var(--cream);
  border: 1px solid var(--paper-ink);
  box-shadow: 3px 3px 0 var(--velvet), var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0s linear 0.2s;
  pointer-events: none;
}

/* The little tail that points down at the glass (the plaque is 5.1rem wide) */
.rum-meter__remark::after {
  content: "";
  position: absolute;
  right: 2.2rem;
  bottom: -0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--cream);
  border: solid var(--paper-ink);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}

@media (min-width: 64em) and (max-width: 104.99em) {
  /* Over the slim plaque, which is as wide as the gutter allows */
  .rum-meter__remark::after {
    right: calc((var(--gutter) - 0.6rem) / 2 - 0.35rem);
  }
}

.rum-meter__remark [data-rum-meter-remark]:empty {
  display: none;
}

.rum-meter__hint {
  display: none;
  font-family: var(--font-logo);
  font-size: 0.5625rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--velvet);
}

.rum-meter.is-remarking .rum-meter__remark,
.rum-meter:focus-visible .rum-meter__remark {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-overshoot), visibility 0s;
}

.rum-meter:focus-visible .rum-meter__hint {
  display: block;
}

@media (hover: hover) {
  .rum-meter:hover .rum-meter__remark {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-3) var(--ease-overshoot), visibility 0s;
  }

  .rum-meter:hover .rum-meter__hint {
    display: block;
  }
}

@media (max-width: 63.99em) {
  /* A 44px tap area around the small glass in the nav bar */
  .rum-meter::after {
    content: "";
    position: absolute;
    inset: -0.15rem -0.4rem;
  }

  /* Hung under the bar, counted from the edge of the screen (not from the glass) so
     the card stays on screen at 320px. Only a press or keyboard focus shows it here. */
  .rum-meter__remark {
    top: calc(100% + 1.1rem);
    right: calc(0.75rem - var(--parked-right));
    bottom: auto;
    max-width: min(15rem, 100vw - 1.5rem);
    transform: translateY(-0.6rem);
  }

  .rum-meter__remark::after {
    top: -0.4rem;
    right: calc(var(--parked-right) - 0.1rem);
    bottom: auto;
    border-width: 1px 0 0 1px;
  }
}

/* Footnotes: the way back, and the marker that was asked for --------------------------- */

.fn-back {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.2em;
  vertical-align: -0.3em;
  text-decoration: none;
  color: var(--accent);
  border-radius: 50%;
  transition: background-color var(--dur-1), color var(--dur-1);
}

.fn-back .icon {
  font-size: 0.9em;
  rotate: 180deg;
}

/* 44px tap target around a small arrow */
.fn-back::after {
  content: "";
  position: absolute;
  inset: -0.7rem;
}

.fn-back:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.fn-mark.is-target {
  animation: chrome-fn-target 1.6s var(--ease-out) both;
}

@keyframes chrome-fn-target {
  0% { scale: 1; }
  18%, 55% { scale: 1.7; }
  100% { scale: 1; }
}

/* Easter eggs --------------------------------------------------------------------------- */
/* Overlays the chrome adds to <body> for a few seconds and removes again. They are
   never created under reduced motion. */

.egg-rum,
.egg-nej,
.egg-stampede {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* "rum": the page takes on an amber tint and a very slight sway. */
.egg-rum {
  z-index: var(--z-fx);
  background:
    radial-gradient(120% 80% at 50% 105%, rgba(229, 138, 46, 0.5), rgba(192, 102, 31, 0.24) 55%, rgba(94, 42, 12, 0.3));
  animation: chrome-rum-tint 5s var(--ease-in-out) both;
}

html.is-rummy main {
  animation: chrome-rum-sway 5s var(--ease-in-out) both;
}

/* The sway tilts main a little past the right edge: no sideways scrolling for that. */
html.is-rummy,
html.is-rummy body {
  overflow-x: clip;
}

html.is-rummy .rum-meter__glass {
  transform-origin: 50% 90%;
  animation: chrome-rum-slosh 1.25s var(--ease-in-out) 4 both;
}

@keyframes chrome-rum-tint {
  0% { opacity: 0; }
  14%, 78% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes chrome-rum-sway {
  0%, 100% { transform: none; }
  14% { transform: rotate(0.5deg) translateX(0.4rem); }
  34% { transform: rotate(-0.55deg) translateX(-0.45rem); }
  54% { transform: rotate(0.4deg) translateX(0.3rem); }
  74% { transform: rotate(-0.28deg) translateX(-0.2rem); }
  90% { transform: rotate(0.12deg); }
}

@keyframes chrome-rum-slosh {
  0%, 100% { transform: none; }
  30% { transform: rotate(-9deg); }
  70% { transform: rotate(8deg); }
}

/* "nej": a very large stamp. Toasts stay above it. */
.egg-nej {
  z-index: var(--z-fx);
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side, rgba(10, 7, 20, 0.95), rgba(10, 7, 20, 0.84) 72%, rgba(10, 7, 20, 0.62));
  animation: chrome-egg-fade 2.6s linear both;
}

.egg-nej__stamp {
  display: grid;
  justify-items: center;
  gap: 0.07em;
  padding: 0.2em 0.36em 0.2em;
  font-family: var(--font-logo);
  font-size: clamp(5.5rem, 23vw, 19rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.8;
  text-transform: uppercase;
  color: #f0425f;
  border: 0.07em solid currentColor;
  border-radius: 0.09em;
  outline: 0.022em solid currentColor;
  outline-offset: -0.13em;
  rotate: -8deg;
  -webkit-mask: var(--rough) center / 2.2em 2.2em;
  mask: var(--rough) center / 2.2em 2.2em;
  animation: fg-stamp-slam 0.5s var(--ease-slam) both;
}

.egg-nej__stamp small {
  font-size: 0.085em;
  font-weight: 800;
  letter-spacing: 0.42em;
  line-height: 1.2;
  text-indent: 0.42em;
}

@keyframes chrome-egg-fade {
  0% { opacity: 0; }
  6%, 72% { opacity: 1; }
  100% { opacity: 0; }
}

/* The Konami code: a stampede along the bottom of the screen. */
.egg-stampede {
  z-index: var(--z-fx);
  overflow: hidden;
}

.egg-stampede__pony {
  position: absolute;
  left: 0;
  bottom: var(--lane);
  font-size: var(--size);
  line-height: 0;
  color: var(--coat);
  filter: drop-shadow(0 0.05em 0 rgba(10, 7, 20, 0.9));
  transform: translateX(-1.6em);
  animation: chrome-stampede-run var(--run) linear var(--delay) both;
  will-change: transform;
}

.egg-stampede__pony .icon {
  display: block;
  width: 1.24em;
  height: 1em;
  transform-origin: 50% 90%;
  animation: chrome-stampede-gallop 0.3s var(--ease-in-out) infinite alternate;
}

@keyframes chrome-stampede-run {
  from { transform: translateX(-1.6em); }
  to { transform: translateX(calc(100vw + 0.4em)); }
}

@keyframes chrome-stampede-gallop {
  from { transform: translateY(0.02em) rotate(-6deg); }
  to { transform: translateY(-0.16em) rotate(7deg); }
}
/* The hero: a studio ident. The canvas carries the 3D logo; the overlay is laid
   out in CSS and the 3D camera frames the logo into .s-hero__slot, so the HTML
   lockup (the h1, and the fallback) and the 3D one occupy the same place.

   State classes on the root, set by sections/hero.js:
     is-3d       the canvas is live, the HTML lockup is hidden (still read aloud)
     is-flat     no WebGL: the CSS scene and the HTML lockup are the hero
     is-staging  the reveal is animated: copy waits for is-stamped / is-copy / is-cue
     is-claiming for the instant is-staging is set: the copy is put away without a fade
     is-late     the curtain opened before the show was built: the 3D logo rests,
                 unstaged, and the replay button is the way to the reveal
   Without any of them (no JavaScript) everything rests in its final state. */

.s-hero {
  --hero-pad: clamp(1rem, 4.5vw, 4rem);
  --hero-ground: 5, 3, 12;
  display: grid;
  min-height: max(100vh, 40rem);
  min-height: max(100svh, 40rem);
  background-color: #05030c;
}

.s-hero__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

/* The first thing drawn is a warm-up frame nobody is meant to see, and a slow
   line can have the curtain open by then: out of sight until the hero is live. */
.s-hero:not(.is-3d) .s-hero__canvas {
  visibility: hidden;
}

.s-hero.is-over-letter .s-hero__canvas {
  cursor: pointer;
}

/* The CSS scene: what the stage looks like without WebGL ------------------------ */

.s-hero__flat {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Never the browser's scroll anchor. The beams swing, and a reload that restored
     its place against one of them landed about 110 px down, further every time. */
  overflow-anchor: none;
  background:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 71% 9%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 38% 41%, rgba(255, 255, 255, 0.8) 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 88% 33%, rgba(255, 243, 196, 0.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 55% 22%, rgba(255, 255, 255, 0.7) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 24% 57%, rgba(255, 255, 255, 0.6) 50%, transparent 52%),
    radial-gradient(1px 1px at 5% 44%, rgba(255, 255, 255, 0.7) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 63% 48%, rgba(255, 255, 255, 0.65) 50%, transparent 52%),
    radial-gradient(90% 60% at 60% 62%, rgba(110, 30, 90, 0.5) 0%, rgba(42, 17, 64, 0.5) 40%, transparent 75%),
    linear-gradient(180deg, #06040f 0%, #120a26 55%, #1d0c2c 100%);
  background-size: 23rem 19rem, 31rem 27rem, 17rem 23rem, 29rem 21rem, 13rem 17rem, 19rem 29rem, 37rem 31rem, 11rem 13rem, auto, auto;
}

.s-hero.is-3d .s-hero__flat {
  display: none;
}

.s-hero__flat-floor {
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background:
    radial-gradient(60% 90% at 62% 0%, rgba(192, 102, 31, 0.3) 0%, transparent 70%),
    linear-gradient(180deg, #0d0717 0%, #05030c 70%);
  border-top: 1px solid rgba(242, 193, 78, 0.28);
}

.s-hero__flat-beam {
  position: absolute;
  bottom: 30%;
  width: 34vmin;
  height: 120vmin;
  margin-left: -17vmin;
  background: linear-gradient(0deg, rgba(255, 240, 214, 0.5) 0%, rgba(255, 240, 214, 0.16) 30%, transparent 85%);
  clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0);
  transform-origin: 50% 100%;
  animation: hero-beam-sweep 9s var(--ease-in-out) infinite alternate;
}

.s-hero__flat-beam--a {
  --from: -34deg;
  --to: -8deg;
  left: 22%;
}

.s-hero__flat-beam--b {
  --from: 30deg;
  --to: 6deg;
  left: 74%;
  background: linear-gradient(0deg, rgba(200, 222, 255, 0.46) 0%, rgba(200, 222, 255, 0.14) 30%, transparent 85%);
  animation-duration: 11s;
}

@keyframes hero-beam-sweep {
  from { transform: rotate(var(--from)); }
  to { transform: rotate(var(--to)); }
}

/* Quiet ground: a vignette always, and a dark pool behind the copy -------------- */

.s-hero__shade,
.s-hero__shade::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.s-hero__shade {
  background: radial-gradient(125% 95% at 58% 36%, transparent 52%, rgba(var(--hero-ground), 0.62) 100%);
}

.s-hero__shade::before {
  content: "";
  background: linear-gradient(180deg, transparent 36%, rgba(var(--hero-ground), 0.6) 50%, rgba(var(--hero-ground), 0.9) 72%);
  transition: opacity 1.2s var(--ease-out);
}

.s-hero.is-staging .s-hero__shade::before {
  opacity: 0;
}

.s-hero.is-staging.is-copy .s-hero__shade::before {
  opacity: 1;
}

/* Overlay ----------------------------------------------------------------------- */

.s-hero__overlay {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  row-gap: 0.8rem;
  padding: calc(var(--nav-h) + 2vh) 1rem 0.5rem;
  padding-top: calc(var(--nav-h) + 2svh);
  pointer-events: none;
  opacity: calc(1 - var(--out, 0) * 1.7);
  transform: translateY(calc(var(--out, 0) * -5rem));
}

.s-hero__overlay a,
.s-hero__overlay button {
  pointer-events: auto;
}

/* Where the logo stands. The 3D camera is fitted to this box. */
.s-hero__slot {
  position: relative;
  width: min(100%, 44rem, 62vh);
  width: min(100%, 44rem, 62svh);
  aspect-ratio: 1070 / 696;
  container-type: inline-size;
}

.s-hero__logo {
  margin: 0;
  line-height: 0;
  transition: opacity var(--dur-2) linear;
}

.s-hero__logo .fg-logo {
  font-size: min(17vw, 7.6rem);
  font-size: 18.6cqw;
}

/* The flat lockup stands in while the show loads (a slow line can open the curtain
   on it). It is only put away for the staged reveal and once the 3D logo is up. */
.s-hero.is-staging .s-hero__logo,
.s-hero.is-3d .s-hero__logo {
  opacity: 0;
}

/* Without the 3D set the G still gets its halo. */
.s-hero__slot::before {
  content: "";
  position: absolute;
  right: -14%;
  top: -34%;
  width: 62%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 4deg, rgba(242, 193, 78, 0.2) 0 5deg, transparent 5deg 15deg),
    radial-gradient(closest-side, rgba(242, 193, 78, 0.34), transparent);
  -webkit-mask: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  mask: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  pointer-events: none;
}

.s-hero.is-3d .s-hero__slot::before {
  display: none;
}

.s-hero.is-flat .s-hero__logo [data-hero-flat-g] {
  cursor: pointer;
  pointer-events: auto;
}

.s-hero.is-flat .s-hero__logo .is-spinning {
  animation: hero-flat-spin 0.9s var(--ease-overshoot) both;
}

@keyframes hero-flat-spin {
  from { rotate: y 0deg; }
  to { rotate: y 360deg; }
}

/* The stamp sits in the empty corner of the L. The paragraph around it is its
   plate: dark enough that a searchlight passing behind cannot bleach the small
   print, and not part of the stamp itself, whose grain would let the light through
   in speckles. So the paragraph carries what plate and ink share: the size, the
   tilt (--rot, set in the markup) and the entrance. */
.s-hero__verdict {
  position: absolute;
  left: 2%;
  top: 41%;
  margin: 0;
  font-size: clamp(1.05rem, 5.3cqw, 2.9rem);
  line-height: 0;
  background: rgba(var(--hero-ground), 0.85);
  border-radius: 0.3em;
  transform: rotate(var(--rot));
}

.s-hero__stamp {
  max-width: 13em;
  font-size: inherit;
  text-shadow: 0 0 1.2em rgba(var(--hero-ground), 0.9);
  transform: none;
}

/* A phone on its side has a small logo: the stamp scales with it all the way
   down, so it still ends before the column. */
@media (orientation: landscape) and (max-height: 30em) {
  .s-hero__verdict {
    font-size: 5.3cqw;
  }
}

.s-hero.is-staging .s-hero__verdict {
  opacity: 0;
}

.s-hero.is-staging.is-stamped .s-hero__verdict {
  opacity: 1;
}

.s-hero__verdict.is-slamming {
  animation: fg-stamp-slam 0.62s var(--ease-slam) both;
}

/* Copy -------------------------------------------------------------------------- */

.s-hero__copy {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 0.7rem;
  width: min(100%, 44rem);
}

.s-hero__cards {
  display: grid;
  gap: 0.3em;
  margin: 0;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 0.9em rgba(var(--hero-ground), 1), 0 0 0.3em rgba(var(--hero-ground), 1);
}

.s-hero__card {
  display: block;
}

/* During the show the three cards share one line and fade through in turn. */
.s-hero.is-staging .s-hero__card {
  grid-area: 1 / 1;
  justify-self: start;
  /* Its own dark plate, soft at the edges: the searchlights sweep behind it. */
  background: rgba(var(--hero-ground), 0.8);
  box-shadow: 0 0 1.1rem 0.9rem rgba(var(--hero-ground), 0.8);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.4s linear, transform 0.9s var(--ease-out);
}

.s-hero.is-staging .s-hero__card.is-on {
  opacity: 1;
  transform: none;
}

/* Once the copy is up the whole block has its ground and the plate is not needed. */
.s-hero.is-staging.is-copy .s-hero__card {
  background: none;
  box-shadow: none;
}

.s-hero__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.3rem + 4.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
  color: var(--cream);
  text-shadow: 0.05em 0.05em 0 var(--velvet), 0 0 1em rgba(var(--hero-ground), 0.8);
}

.s-hero__tagline span {
  display: block;
}

.s-hero__tagline .s-hero__tagline-turn {
  width: fit-content;
  padding-bottom: 0.08em;
  background: var(--foil-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0.04em 0.05em 0 #5e2a0c);
}

.s-hero__subline {
  max-width: 33ch;
  margin: 0;
  font-size: clamp(1.0625rem, 0.96rem + 0.42vw, 1.3rem);
  line-height: 1.42;
  color: var(--cream);
  text-shadow: 0 0 0.8em rgba(var(--hero-ground), 1), 0 0 0.25em rgba(var(--hero-ground), 0.9);
}

.s-hero__actions {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  margin-top: 0.35rem;
}

/* Full width is for a phone: on a tablet the buttons keep to the text column. */
@media (min-width: 40em) {
  .s-hero__actions {
    max-width: 24rem;
  }
}

.s-hero__replay {
  display: none;
  min-height: 2.75rem;
  background: rgba(var(--hero-ground), 0.55);
}

.s-hero.is-staging .s-hero__replay,
.s-hero.is-late .s-hero__replay {
  display: inline-flex;
}

.s-hero__lean {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75rem;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--dur-2) var(--ease-out);
}

/* No counter without a module to count: not before it starts, not where it failed. */
.s-hero:not([data-module-state]) .s-hero__lean,
.s-hero[data-module-state="failed"] .s-hero__lean {
  display: none;
}

.s-hero__lean .icon {
  color: var(--gold);
  transition: transform var(--dur-3) var(--ease-overshoot);
}

.s-hero__lean:hover,
.s-hero__lean:focus-visible {
  color: var(--cream);
}

.s-hero__lean:hover .icon,
.s-hero__lean:focus-visible .icon {
  transform: rotate(72deg) scale(1.25);
}

.s-hero__lean-count {
  display: inline-block;
  min-width: 1.4em;
  font-weight: 500;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.s-hero__lean-count.is-bumped {
  animation: hero-count-bump 0.5s var(--ease-overshoot);
}

@keyframes hero-count-bump {
  0% { transform: translateY(0.5em) scale(1.7); opacity: 0.2; }
  100% { transform: none; opacity: 1; }
}

/* The copy arrives line by line once the stamp has landed. */
.s-hero.is-staging .s-hero__tagline span,
.s-hero.is-staging .s-hero__subline,
.s-hero.is-staging .s-hero__actions,
.s-hero.is-staging .s-hero__lean {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.5s linear, transform 0.9s var(--ease-overshoot);
  transition-delay: calc(var(--i, 0) * 0.13s);
}

.s-hero.is-staging .s-hero__tagline span:nth-child(2) { --i: 1; }
.s-hero.is-staging .s-hero__tagline span:nth-child(3) { --i: 2; }
.s-hero.is-staging .s-hero__subline { --i: 4; }
.s-hero.is-staging .s-hero__actions { --i: 5; }
.s-hero.is-staging .s-hero__lean { --i: 6; }

.s-hero.is-staging.is-copy .s-hero__tagline span,
.s-hero.is-staging.is-copy .s-hero__subline,
.s-hero.is-staging.is-copy .s-hero__actions,
.s-hero.is-staging.is-copy .s-hero__lean {
  opacity: 1;
  transform: none;
}

/* The stage is claimed the moment the show is ready, with the curtain about to
   part: everything is put away at once, whatever transition it has, so nothing is
   seen fading out between the drapes. */
.s-hero.is-claiming *,
.s-hero.is-claiming *::before {
  transition: none !important;
}

/* Until the copy is on stage its controls cannot be clicked by accident. */
.s-hero.is-staging:not(.is-copy) .s-hero__copy a,
.s-hero.is-staging:not(.is-copy) .s-hero__copy button {
  pointer-events: none;
}

/* Scroll cue --------------------------------------------------------------------- */

.s-hero__cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 2.75rem;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-shadow: 0 0 0.8em rgba(var(--hero-ground), 1);
  transition: opacity 0.8s linear;
}

.s-hero__cue .icon {
  font-size: 1.35em;
  animation: fg-bob 1.5s var(--ease-in-out) infinite alternate;
}

.s-hero__cue:hover {
  color: var(--gold);
}

.s-hero.is-staging .s-hero__cue {
  opacity: 0;
}

.s-hero.is-staging.is-cue .s-hero__cue {
  opacity: 1;
}

/* A short phone held upright (320 by 568): the gaps close up a little, so the
   gold button, the way on, is whole above the fold. */
@media (orientation: portrait) and (max-height: 37.5em) {
  .s-hero__overlay {
    row-gap: 0.4rem;
  }

  .s-hero__copy {
    gap: 0.4rem;
  }
}

/* Landscape: the logo stands centre right and high, the copy takes the empty
   lower left of the L, the stamp lands between them. --------------------------- */

@media (min-width: 56em) and (min-aspect-ratio: 5/4) {
  .s-hero__shade::before {
    background:
      radial-gradient(64% 78% at 10% 84%, rgba(var(--hero-ground), 0.93) 0%, rgba(var(--hero-ground), 0.74) 42%, transparent 76%),
      linear-gradient(180deg, transparent 84%, rgba(var(--hero-ground), 0.7) 100%);
  }

  .s-hero__overlay {
    display: block;
    padding: 0;
  }

  .s-hero {
    --slot-h: min(calc(73.5vh - var(--nav-h)), calc(66vw / 1.537));
    --slot-h: min(calc(73.5svh - var(--nav-h)), calc(66vw / 1.537));
  }

  .s-hero__slot {
    position: absolute;
    top: calc(var(--nav-h) + 4.5vh);
    top: calc(var(--nav-h) + 4.5svh);
    right: max(6vw, 3rem);
    width: auto;
    height: var(--slot-h);
  }

  .s-hero__verdict {
    left: 23%;
    top: 41%;
    font-size: clamp(1.05rem, 3.6cqw, 2.6rem);
  }

  .s-hero__copy {
    position: absolute;
    left: var(--hero-pad);
    bottom: clamp(3.75rem, 9vh, 6rem);
    width: min(36rem, 41vw);
    gap: 1.05rem;
  }

  /* The billing keeps to the column left of the logo, so it can never run
     under the F however the copy block stacks up. */
  .s-hero__cards {
    max-width: max(13rem, calc(100vw - max(6vw, 3rem) - var(--slot-h) * 1.537 - var(--hero-pad) - 1.5rem));
    font-size: var(--fs-label);
    letter-spacing: var(--tracking-wide);
    text-wrap: balance;
  }

  /* Sized by the shorter side as well, so the block never climbs into the logo. */
  .s-hero__tagline {
    font-size: clamp(2.3rem, min(4.7vw, 8.2vh), 5rem);
    font-size: clamp(2.3rem, min(4.7vw, 8.2svh), 5rem);
  }

  /* At rest only the first card stays up as the billing line; there is no room
     beside the logo for all three. The others are still read aloud. */
  .s-hero:not(.is-staging) .s-hero__card:not(:first-child) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* One row even where the column is narrower than the two buttons: a second
     row would push the billing line up into the logo. */
  .s-hero__actions {
    display: flex;
    gap: 0.9rem;
    width: max-content;
    max-width: calc(100vw - 2 * var(--hero-pad));
    margin-top: 0.5rem;
  }

  .s-hero__replay {
    min-height: 3.25rem;
  }

  .s-hero__cue {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    flex-direction: row;
    gap: 0.8em;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}
/* The Formality: breaking news meets corporate status page. Ticker, status board,
   the consent-o-meter, the flip counter, the statement on velvet, the petition and
   the minutes of the Board. */

.s-formality {
  padding-top: 0;
}

/* 1. The ticker ---------------------------------------------------------------- */

.s-formality__ticker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  height: 3.25rem;
  background: linear-gradient(180deg, #1d1540, var(--ink) 85%);
  border-block: 1px solid var(--brass);
  box-shadow:
    inset 0 3px 0 var(--ink),
    inset 0 4px 0 rgba(242, 193, 78, 0.32),
    inset 0 -3px 0 var(--ink),
    inset 0 -4px 0 rgba(242, 193, 78, 0.32),
    0 18px 28px -16px rgba(0, 0, 0, 0.9);
}

/* The right edge fades out; the tab covers the left. */
.s-formality__ticker::after {
  content: "";
  position: absolute;
  inset: 5px 0 5px auto;
  width: clamp(2rem, 8vw, 7rem);
  background: linear-gradient(90deg, rgba(10, 7, 20, 0), var(--ink));
  pointer-events: none;
}

.s-formality__ticker-tab {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0 2.2rem 0 var(--gutter);
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(180deg, var(--velvet-hi), var(--velvet) 62%, #6a0c1f);
  clip-path: polygon(0 0, calc(100% - 1.15rem) 0, 100% 50%, calc(100% - 1.15rem) 100%, 0 100%);
}

.s-formality__ticker-lamp {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--gold-hi) 60%);
  box-shadow: 0 0 0.7em var(--gold-hi);
  animation: fg-blink 1.2s steps(1, end) infinite;
}

.s-formality.is-approved .s-formality__ticker-lamp {
  animation: none;
}

/* Static and scrollable by default (no JavaScript, reduced motion); the module
   adds .is-rolling once it has doubled the run. */
.s-formality__ticker-view {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  margin-left: -1.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  outline-offset: -4px;
}

.s-formality__ticker-view::-webkit-scrollbar {
  display: none;
}

.s-formality.is-rolling .s-formality__ticker-view {
  overflow: hidden;
}

.s-formality__ticker-track {
  display: flex;
  flex: none;
  width: max-content;
}

.s-formality.is-rolling .s-formality__ticker-track {
  animation: formality-ticker var(--ticker-dur, 150s) linear infinite;
}

.s-formality.is-rolling .s-formality__ticker-view:hover .s-formality__ticker-track,
.s-formality.is-rolling .s-formality__ticker-view:focus .s-formality__ticker-track,
.s-formality.is-ticker-idle .s-formality__ticker-track {
  animation-play-state: paused;
}

.s-formality__ticker-run {
  display: flex;
  flex: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.09em;
  line-height: 1;
  color: var(--cream);
}

.s-formality__ticker-run > li {
  display: flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
}

.s-formality__ticker-run > li::before {
  content: "";
  flex: none;
  width: 0.8em;
  aspect-ratio: 1;
  margin-inline: 1.9rem;
  background: var(--gold);
  clip-path: var(--star);
}

.s-formality__ticker-run > .s-formality__ticker-update {
  color: var(--gold);
}

/* 2. Header and status board ----------------------------------------------------- */

.s-formality__intro {
  padding-top: clamp(4.5rem, 9vw, 8rem);
}

.s-formality__head {
  max-width: none;
}

.s-formality__title {
  display: grid;
  gap: 0.06em;
  font-size: clamp(2.7rem, 0.9rem + 6.9vw, 6.6rem);
  line-height: 0.96;
}

.s-formality__title-a {
  padding-bottom: 0.08em;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.03em 0 rgba(0, 0, 0, 0.6));
}

.s-formality__title-b {
  color: var(--cream);
  text-shadow: 0.045em 0.05em 0 var(--velvet);
}

.s-formality__brief {
  display: grid;
  gap: var(--sp-7);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.s-formality__prose > p:first-child {
  font-size: var(--fs-lede);
  font-weight: 380;
  line-height: 1.36;
}

.s-formality__status {
  --lamp: var(--approved);
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.4;
  color: var(--cream);
  background: var(--grain-light), linear-gradient(180deg, #1b1338, #0c081c);
  border: 1px solid rgba(242, 193, 78, 0.55);
  border-radius: var(--r-2);
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(242, 193, 78, 0.22), var(--shadow-deep);
}

.s-formality__status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  padding-bottom: 1rem;
}

.s-formality__status-kicker {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-formality__status-title {
  margin-top: 0.3rem;
  font-family: var(--font-logo);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.s-formality__status-summary {
  --lamp: #ff5d77;
  padding: 0.45em 0.9em;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lamp);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
}

.s-formality.is-approved .s-formality__status-summary {
  --lamp: var(--approved);
}

.s-formality__svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.15rem 1rem;
  padding: 0.75rem 0 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.s-formality__svc[data-state="degraded"] { --lamp: var(--amber); }
.s-formality__svc[data-state="down"] { --lamp: #ff5d77; }

.s-formality__svc-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.s-formality__svc-state {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lamp);
}

.s-formality__svc-note {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Thirty days of history, one bar a day. */
.s-formality__svc-bars {
  grid-column: 1 / -1;
  height: 0.6rem;
  margin-top: 0.4rem;
  background: repeating-linear-gradient(90deg, var(--lamp) 0 5px, transparent 5px 8px);
  opacity: 0.8;
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease-out);
}

.s-formality__svc:nth-child(2) .s-formality__svc-bars { transition-delay: 0.1s; }
.s-formality__svc:nth-child(3) .s-formality__svc-bars { transition-delay: 0.2s; }
.s-formality__svc:nth-child(4) .s-formality__svc-bars { transition-delay: 0.3s; }
.s-formality__svc:nth-child(5) .s-formality__svc-bars { transition-delay: 0.4s; }
.s-formality__svc:nth-child(6) .s-formality__svc-bars { transition-delay: 0.5s; }

.s-formality.is-armed .s-formality__status:not(.is-in) .s-formality__svc-bars {
  transform: scaleX(0);
}

.s-formality__lamp {
  position: relative;
  flex: none;
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--lamp) 55%);
  box-shadow: 0 0 0.6em var(--lamp);
}

.s-formality__svc[data-state="down"] .s-formality__lamp::after,
.s-formality__reading .s-formality__lamp::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid var(--lamp);
  border-radius: 50%;
  opacity: 0;
  animation: formality-pulse 1.5s var(--ease-out) infinite;
}

.s-formality__status-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(242, 193, 78, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-formality__status-foot b {
  font-weight: 500;
  color: var(--gold);
}

.s-formality__signoff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5) var(--sp-6);
  max-width: 62ch;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
}

.s-formality__signed {
  display: grid;
  gap: 0.35rem;
  color: var(--gold);
}

.s-formality__signed .script {
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem);
}

.s-formality__signed-role {
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
}

.s-formality__verdict {
  margin: 0.4rem 0.6rem;
  font-size: clamp(1.15rem, 0.9rem + 0.9vw, 1.6rem);
}

@media (min-width: 64em) {
  .s-formality__brief {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28.5rem);
    gap: var(--sp-8);
    align-items: start;
  }
}

/* 3. The consent-o-meter ------------------------------------------------------------ */

.s-formality__meter {
  display: grid;
  justify-items: center;
  margin-top: clamp(5.5rem, 12vw, 10rem);
}

.s-formality__meter-head {
  gap: var(--sp-4);
}

/* One short sentence: balanced, so that its last two words are not left alone. */
.s-formality__meter-head .lede {
  text-wrap: balance;
}

.s-formality__gauge {
  position: relative;
  isolation: isolate;
  width: min(100%, 52rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* Lamplight on the wall behind the instrument. */
.s-formality__gauge::before {
  content: "";
  position: absolute;
  inset: -12% -8% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 193, 78, 0.22), rgba(242, 193, 78, 0.07) 55%, transparent);
  pointer-events: none;
}

/* Its shadow on the wall: painted once, so nothing is re-filtered while the needle moves. */
.s-formality__gauge::after {
  content: "";
  position: absolute;
  inset: auto 3% -9% 3%;
  z-index: -1;
  height: 20%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* Three stacked layers: the dial, the needle, the glass. Only the needle layer
   ever moves, and it moves as a whole, so nothing is repainted. */
.s-formality__gauge-body {
  position: relative;
}

.s-formality__gauge-body.is-slammed {
  animation: formality-shake 0.5s var(--ease-out);
}

.s-formality__dial {
  width: 100%;
  height: auto;
}

.s-formality__needle,
.s-formality__needle-art,
.s-formality__glass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The pivot sits at 500, 510 of the 1000 by 680 drawing. Rests at NEJ. */
.s-formality__needle {
  transform: rotate(6deg);
  transform-origin: 50% 75%;
  will-change: transform;
}

.s-formality__zone-label {
  font-family: var(--font-logo);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.s-formality__zone-label--light { fill: var(--cream); }
.s-formality__zone-label--dark { fill: var(--paper-ink); }

.s-formality__numerals {
  font-family: var(--font-mono);
  font-size: 17px;
  fill: var(--paper-ink);
  fill-opacity: 0.62;
}

.s-formality__end-label {
  font-family: var(--font-logo);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.s-formality__end-label--low { fill: var(--velvet); }
.s-formality__end-label--high { fill: #4c7414; }

.s-formality__inscription {
  font-family: var(--font-logo);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.34em;
  fill: var(--paper-ink);
  fill-opacity: 0.72;
}

.s-formality__maker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  fill: var(--paper-ink);
  fill-opacity: 0.55;
}

/* Approved: the needle sits at FINE. and hums. */
.s-formality__needle-art {
  transform-origin: 50% 75%;
}

.s-formality.is-approved .s-formality__needle-art {
  animation: formality-purr 0.11s linear infinite alternate;
}

.s-formality.is-approved.is-gauge-idle .s-formality__needle-art {
  animation-play-state: paused;
}

.s-formality__grades {
  display: grid;
  width: min(100%, 52rem);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--rule);
}

.s-formality__grade {
  position: relative;
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.4rem 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.s-formality__grade[data-grade="stadig"] { --zone: #e5506b; }
.s-formality__grade[data-grade="naeh"] { --zone: #e58a3f; }
.s-formality__grade[data-grade="nja"] { --zone: #e9b048; }
.s-formality__grade[data-grade="tja"] { --zone: #f0d06c; }
.s-formality__grade[data-grade="tjo"] { --zone: #cfd572; }

.s-formality__grade::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--zone);
}

.s-formality__grade::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--zone);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.s-formality__grade.is-live::after {
  opacity: 0.2;
}

.s-formality__grade b {
  font-family: var(--font-logo);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zone);
}

.s-formality__grade span {
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.3;
  color: var(--fg);
}

.s-formality__desk {
  display: grid;
  gap: var(--sp-5);
  width: min(100%, 52rem);
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.s-formality__reading {
  --lamp: #ff5d77;
}

.s-formality.is-approved .s-formality__reading {
  --lamp: var(--approved);
}

.s-formality__reading-line {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.35;
  color: var(--gold);
}

.s-formality__reading-caption {
  max-width: 46ch;
  margin-top: 0.7rem;
  font-style: italic;
  color: var(--muted);
}

.s-formality__persuade {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
}

.s-formality__persuade .btn {
  min-width: 13rem;
}

.s-formality__attempts {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.04em;
  color: var(--fg);
}

@media (min-width: 48em) {
  .s-formality__grades {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-bottom: 1px solid var(--rule);
  }

  .s-formality__grade {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: start;
    gap: 0.3rem;
    padding: 1.1rem 0.6rem 1rem;
    text-align: center;
    border-bottom: 0;
  }

  .s-formality__grade::before {
    inset: 0 0 auto 0;
    width: auto;
    height: 4px;
  }

  .s-formality__grade + .s-formality__grade {
    border-left: 1px solid var(--rule);
  }

  .s-formality__desk {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-7);
  }

  .s-formality__persuade {
    justify-items: end;
    text-align: right;
  }

  .s-formality__attempts {
    max-width: 13rem;
  }
}

/* 4. The counter ---------------------------------------------------------------------- */

.s-formality__counter {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
  margin-top: clamp(5rem, 10vw, 8rem);
}

.s-formality__clock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5) var(--sp-6);
}

.s-formality__flip {
  --flip-size: clamp(4.75rem, 15vw, 9.5rem);
  filter: drop-shadow(0 1.2rem 1rem rgba(0, 0, 0, 0.6));
}

.s-formality__clock-text {
  flex: 1 1 14rem;
}

.s-formality__clock-label {
  max-width: 13em;
  font-family: var(--font-logo);
  font-size: clamp(1.1rem, 0.85rem + 1.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.s-formality__clock-sub {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.03em;
  color: var(--gold);
}

/* The agenda: a slip of paper pinned beside the clock. */
.s-formality__agenda {
  position: relative;
  justify-self: start;
  width: min(100%, 17rem);
  padding: 1.6rem 1.4rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--paper-ink);
  background: var(--grain-dark), linear-gradient(180deg, var(--cream), var(--parchment));
  box-shadow: var(--shadow-lift), 0 2px 0 rgba(0, 0, 0, 0.35);
  transform: rotate(2.2deg);
}

.s-formality__agenda-title {
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(28, 18, 38, 0.4);
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--velvet);
}

.s-formality__agenda ol {
  margin: 0;
  padding-left: 1.6em;
}

.s-formality__pin {
  position: absolute;
  left: 50%;
  top: -0.7rem;
  z-index: 1;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: -0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff6cf 0, #e7b94a 34%, #a8741a 62%, #5c3d08 100%);
  box-shadow: 0.25rem 0.5rem 0.4rem -0.1rem rgba(0, 0, 0, 0.5), inset 0 -1px 1px rgba(0, 0, 0, 0.4);
}

@media (min-width: 56em) {
  .s-formality__counter {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sp-8);
  }

  .s-formality__agenda {
    justify-self: end;
  }
}

/* 5. The statement, on velvet ---------------------------------------------------------- */

.s-formality__statement {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: clamp(5.5rem, 12vw, 10rem);
  padding-block: clamp(7rem, 13vw, 11rem) clamp(4.5rem, 9vw, 8rem);
  text-align: center;
  color: var(--fg);
  background-color: var(--bg);
  border-bottom: 3px solid var(--brass);
  box-shadow: 0 1px 0 #5c3d08, 0 30px 50px -30px rgba(0, 0, 0, 0.9);
}

.s-formality__corner {
  position: absolute;
  top: clamp(4.25rem, 8vw, 6rem);
  left: clamp(0.75rem, 3vw, 2.5rem);
  width: clamp(3rem, 8vw, 6.5rem);
  height: clamp(3rem, 8vw, 6.5rem);
  fill: currentColor;
  color: var(--gold);
  opacity: 0.75;
}

.s-formality__corner--tr {
  left: auto;
  right: clamp(0.75rem, 3vw, 2.5rem);
  transform: scaleX(-1);
}

.s-formality__statement-inner {
  display: grid;
  /* Not an auto column: the unbreakable word would widen it past a narrow phone. */
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.s-formality__statement-heading {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  max-width: 24rem;
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--gold);
}

.s-formality__statement-heading::after {
  content: "";
  width: 1px;
  height: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--gold), transparent);
}

.s-formality__no {
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
  width: 100%;
}

.s-formality__no-stage {
  --no-size: clamp(7rem, 35vw, 25rem);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: calc(var(--no-size) * 1.02);
}

.s-formality__no-stage .sunburst {
  --sunburst-size: min(135vmin, 78rem);
}

.s-formality:not(.is-statement-live) .s-formality__no-stage .sunburst {
  animation-play-state: paused;
}

.s-formality__no-word {
  display: block;
  padding: 0.1em 0.06em 0.16em;
  font-family: var(--font-display);
  font-size: calc(var(--no-size) * var(--k, 1));
  line-height: 1;
  white-space: nowrap;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.028em 0 #4a2f06) drop-shadow(0 0.1em 0.12em rgba(0, 0, 0, 0.5));
  transition: opacity 0.3s var(--ease-in-out), transform 0.3s var(--ease-in-out);
}

.s-formality__no-word.is-swapping {
  opacity: 0;
  transform: scale(0.95);
}

.s-formality__no-word.is-absent {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
}

/* Funen Danish: as above, but sung. */
.s-formality__no-word.is-sung:not(.is-swapping) {
  animation: formality-sung 1.5s var(--ease-in-out) infinite alternate;
}

.s-formality__no-by {
  max-width: 36ch;
  font-size: var(--fs-lede);
  font-style: italic;
  font-weight: 380;
  line-height: 1.34;
}

.s-formality__statement-rule {
  margin-block: clamp(2rem, 5vw, 3.25rem);
}

.s-formality__exegesis {
  max-width: 56ch;
  text-align: center;
  text-wrap: balance;
}

.s-formality__motto {
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 4vw, 3rem);
  width: 100%;
  margin-top: clamp(4.5rem, 9vw, 7.5rem);
}

.s-formality__motto-heading {
  max-width: 21ch;
  font-size: var(--fs-h3);
  line-height: 1.04;
  text-shadow: 0.05em 0.06em 0 var(--offset);
}

.s-formality__plaques {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  margin: 0;
}

/* An engraved brass plate, four screws. */
.s-formality__plaque {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.15rem 0.7rem 1.2rem;
  color: #2a1a04;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 40%, rgba(60, 35, 0, 0.22)),
    linear-gradient(100deg, #b98a26 0%, #e7c260 26%, #f3dc8e 44%, #d2a43c 66%, #b3821f 100%);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 0 1px #6b440c,
    inset 0 0 0 4px rgba(255, 246, 207, 0.22),
    0 3px 0 #4a2f06,
    0 16px 18px -10px rgba(0, 0, 0, 0.75);
  transition: transform var(--dur-2) var(--ease-overshoot);
}

.s-formality__plaque::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  background:
    radial-gradient(circle closest-side, #5c3d08 0 55%, rgba(255, 246, 207, 0.8) 62% 80%, transparent 86%) left top / 0.42rem 0.42rem no-repeat,
    radial-gradient(circle closest-side, #5c3d08 0 55%, rgba(255, 246, 207, 0.8) 62% 80%, transparent 86%) right top / 0.42rem 0.42rem no-repeat,
    radial-gradient(circle closest-side, #5c3d08 0 55%, rgba(255, 246, 207, 0.8) 62% 80%, transparent 86%) left bottom / 0.42rem 0.42rem no-repeat,
    radial-gradient(circle closest-side, #5c3d08 0 55%, rgba(255, 246, 207, 0.8) 62% 80%, transparent 86%) right bottom / 0.42rem 0.42rem no-repeat;
  pointer-events: none;
}

/* The picture light: on for the language now showing above. */
.s-formality__plaque::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--gold-hi);
  border-radius: 6px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 70%);
  box-shadow: 0 0 1.6rem rgba(255, 243, 196, 0.65);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}

.s-formality__plaque.is-lit {
  transform: translateY(-0.35rem);
}

.s-formality__plaque.is-lit::after {
  opacity: 1;
}

.s-formality__plaque-pick {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  width: 100%;
  min-height: 4.4rem;
  color: inherit;
  --focus: var(--ink);
}

.s-formality__plaque-lang {
  font-family: var(--font-logo);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  text-wrap: balance;
  color: #4a2f06;
}

.s-formality__plaque-word {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.2rem);
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255, 246, 207, 0.7);
}

.s-formality__plaque-word--absent {
  padding-block: 0.3em;
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-style: italic;
}

.s-formality__plaque-gloss {
  position: relative;
  z-index: 1;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.3;
  text-wrap: balance;
  color: #3d2706;
}

.s-formality__plaque .fn-mark {
  color: #3d2706;
}

.s-formality__plaque .fn-mark:hover,
.s-formality__plaque .fn-mark[aria-expanded="true"] {
  background: #3d2706;
  color: var(--gold-hi);
}

@media (min-width: 40em) {
  .s-formality__plaques {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.2rem 1rem;
  }
}

/* 6. The notice board: petition and minutes ------------------------------------------- */

.s-formality__board {
  display: grid;
  gap: var(--sp-8) var(--sp-7);
  align-items: start;
  margin-top: clamp(5.5rem, 12vw, 10rem);
}

.s-formality__paper-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.s-formality__paper-title {
  margin-top: 0.6rem;
  font-size: var(--fs-h3);
  line-height: 1.02;
}

.s-formality__petition {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
  transform: rotate(-1.3deg);
}

.s-formality__petition .s-formality__paper-title {
  margin-top: 0;
}

.s-formality__tally {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  padding-block: var(--sp-4);
  border-block: 1px solid var(--rule);
}

.s-formality__tally-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.25rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--velvet);
}

.s-formality__odo {
  display: flex;
  /* A total far beyond the printed one takes a second line and stays on the paper. */
  flex-wrap: wrap;
}

.s-formality__odo-digit {
  display: block;
  height: 1em;
  overflow: hidden;
}

.s-formality__odo-strip {
  display: block;
  transform: translateY(calc(var(--d, 0) * -1em));
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--n, 0) * 60ms);
}

.s-formality__odo-strip > span {
  display: block;
  height: 1em;
}

.s-formality__tally-label {
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
}

.s-formality__petition-msg {
  min-height: 4.4em;
  padding-left: 1rem;
  border-left: 3px solid var(--velvet);
  font-style: italic;
  line-height: 1.4;
}

.s-formality__petition-msg.is-new {
  animation: formality-msg 0.5s var(--ease-out) both;
}

.s-formality__minutes {
  transform: rotate(0.6deg);
}

.s-formality__names {
  display: grid;
  margin: var(--sp-5) 0 0;
  counter-reset: minute;
}

.s-formality__name {
  position: relative;
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0.25rem 0.5rem;
  padding: 0.95rem 0 1rem;
  border-top: 1px solid var(--rule);
  counter-increment: minute;
}

.s-formality__name::before {
  content: counter(minute, lower-alpha) ")";
  padding-top: 0.2em;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.s-formality__name-text {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  font-weight: 500;
  line-height: 1.3;
}

.s-formality__name-text s {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.s-formality__name-text s::after {
  content: "";
  position: absolute;
  left: -0.3em;
  right: -0.3em;
  top: 52%;
  height: 2px;
  background: var(--velvet-hi);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-out);
}

.s-formality__name-reason {
  grid-column: 2;
  max-width: 40ch;
  padding-right: 4.5rem;
  font-size: 0.95em;
  line-height: 1.4;
}

.s-formality__name-reason small {
  font-size: 0.8em;
  font-style: italic;
  color: var(--muted);
}

.s-formality__name-stamp {
  position: absolute;
  right: -0.4rem;
  top: 0.55rem;
  font-size: 0.8rem;
  pointer-events: none;
}

.s-formality.is-armed .s-formality__name:not(.is-stamped) .s-formality__name-stamp {
  opacity: 0;
}

.s-formality.is-armed .s-formality__name:not(.is-stamped) s::after {
  transform: scaleX(0);
}

.s-formality.is-armed .s-formality__name.is-stamped .s-formality__name-stamp {
  animation: fg-stamp-slam 0.5s var(--ease-slam) both;
}

.s-formality__name--adopted {
  padding-block: 1.3rem 1.1rem;
  border-top: 3px double var(--paper-ink);
}

.s-formality__name--adopted .s-formality__name-text {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  font-weight: 500;
  color: var(--velvet);
}

.s-formality__name--adopted .s-formality__name-stamp {
  top: 1rem;
  font-size: 0.95rem;
}

/* A note in pencil, added afterwards. */
.s-formality__pencil {
  display: block;
  width: fit-content;
  margin-top: 0.5rem;
  font-family: var(--font-script);
  font-size: 1.75rem;
  line-height: 1.1;
  color: rgba(60, 52, 72, 0.78);
  transform: rotate(-2.5deg);
  transform-origin: 0 50%;
}

.s-formality__pencil small {
  font-size: 0.7em;
  font-style: normal;
  color: inherit;
  white-space: nowrap; /* the line may break before the fine print, never inside it */
}

.s-formality.is-approved .s-formality__pencil[data-pencil] {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

@media (min-width: 40em) {
  /* The note keeps clear of its stamp: the stamp's own width and 0.75rem are reserved
     beside it. On a wide sheet the measure is what it was, 40ch less 8rem. */
  .s-formality__name-reason {
    max-width: calc(40ch + 1.75rem);
    padding-right: 9.75rem;
  }

  .s-formality__name--adopted .s-formality__name-reason {
    max-width: calc(40ch + 3.75rem);
    padding-right: 11.75rem;
  }

  /* The pencilled notes lie below the stamp and keep the room they had. */
  .s-formality__name--adopted .s-formality__pencil {
    margin-right: -3.75rem;
  }

  .s-formality__name-stamp {
    right: 0;
    top: 50%;
    margin-top: -1.1rem;
    font-size: 1rem;
  }

  .s-formality__name--adopted .s-formality__name-stamp {
    top: 1.4rem;
    margin-top: 0;
    font-size: 1.15rem;
  }
}

/* Beside the petition the sheet is at its narrowest: the stamps hang a little over
   the edge of the column, so that the longest name stays clear of its stamp. */
@media (min-width: 64em) and (max-width: 71.99em) {
  .s-formality__name-stamp {
    right: -0.75rem;
  }
}

@media (min-width: 64em) {
  .s-formality__board {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .s-formality__petition {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }
}

/* 7. The closing line -------------------------------------------------------------------- */

.s-formality__closer {
  display: grid;
  justify-items: center;
  gap: var(--sp-6);
  margin-top: clamp(5.5rem, 11vw, 9rem);
  text-align: center;
}

.s-formality__closer-line {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: 1.04;
  text-wrap: balance;
}

.s-formality__closer-turn {
  display: block;
  padding-bottom: 0.1em;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Nothing blinks while the section is off stage. */
.s-formality.is-offstage .s-formality__ticker-lamp,
.s-formality.is-offstage .s-formality__lamp::after {
  animation-play-state: paused;
}

/* Phones ------------------------------------------------------------------------------ */

@media (max-width: 39.99em) {
  .s-formality__ticker-tab {
    padding-left: 1rem;
    padding-right: 1.8rem;
  }

  /* The instrument runs nearly edge to edge so its engraving stays legible. */
  .s-formality__gauge {
    width: calc(100% + 2 * (var(--gutter) - 0.5rem));
    max-width: none;
  }

  .s-formality__persuade .btn {
    width: 100%;
  }

  .s-formality__persuade {
    justify-items: stretch;
  }

  /* The minutes: the stamp takes a column of its own beside the name, so a long
     name wraps before the stamp instead of running under it, and the reason has
     the full width below. */
  .s-formality__name {
    grid-template-columns: 1.9rem minmax(0, 1fr) auto;
  }

  .s-formality__name-text {
    grid-column: 2;
    grid-row: 1;
    overflow-wrap: anywhere;
  }

  .s-formality__name-reason {
    grid-column: 2 / -1;
    grid-row: 2;
    padding-right: 0;
  }

  .s-formality__name-stamp {
    position: static;
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    margin: -0.35rem -0.4rem 0.3rem 0;
    font-size: clamp(0.64rem, 3.2vw, 0.8rem);
  }

  /* A name that wraps is struck out line by line. */
  .s-formality__name:not(.s-formality__name--adopted) .s-formality__name-text {
    margin-left: -0.2em;
  }

  .s-formality__name-text s {
    display: inline;
    padding-inline: 0.2em;
    background: linear-gradient(var(--velvet-hi), var(--velvet-hi)) 0 54% / 100% 2px no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size 0.4s var(--ease-out);
  }

  .s-formality__name-text s::after {
    content: none;
  }

  .s-formality.is-armed .s-formality__name:not(.is-stamped) s {
    background-size: 0 2px;
  }

  /* The adopted name keeps the whole line; its stamp closes the entry underneath. */
  .s-formality__name--adopted .s-formality__name-text {
    grid-column: 2 / -1;
  }

  .s-formality__name--adopted .s-formality__name-stamp {
    grid-column: 2 / -1;
    grid-row: 3;
    justify-self: end;
    margin: 0.7rem -0.4rem 0;
    font-size: 0.95rem;
  }
}

/* Keyframes --------------------------------------------------------------------------- */

@keyframes formality-ticker {
  to { transform: translateX(-50%); }
}

@keyframes formality-pulse {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.8); }
}

@keyframes formality-shake {
  0% { transform: none; }
  14% { transform: translate(-0.5rem, 0.22rem) rotate(-0.7deg); }
  32% { transform: translate(0.32rem, -0.1rem) rotate(0.45deg); }
  52% { transform: translate(-0.18rem, 0.06rem) rotate(-0.2deg); }
  74% { transform: translate(0.08rem, 0); }
  100% { transform: none; }
}

@keyframes formality-purr {
  from { transform: rotate(-0.35deg); }
  to { transform: rotate(0.35deg); }
}

@keyframes formality-sung {
  0% { transform: translateY(0.035em) rotate(-2.2deg); }
  100% { transform: translateY(-0.035em) rotate(2.2deg); }
}

@keyframes formality-msg {
  from { opacity: 0; transform: translateY(0.6rem); }
  to { opacity: 1; transform: none; }
}
/* The Founder: a museum shrine and a luxury spirits label.
   Every picture of him is the one real photograph, framed and cropped here. */

.s-founder {
  /* THE CROPS ------------------------------------------------------------------
     The photo is 788 x 1600. Each window onto it is described by three numbers:
       zoom  = image width / window width (1 = the whole width of the photo fits)
       x, y  = the point of the photo (0 to 1 from its left / top edge) that sits
               at the centre of the window
     Retune these if the photo is ever swapped; nothing else depends on its content,
     except --crop-portrait-face-*: where his face lands inside the main portrait
     window, which is where the spotlight iris opens. */
  --crop-portrait-zoom: 1.313;
  --crop-portrait-x: 0.489;
  --crop-portrait-y: 0.4375;
  --crop-portrait-face-x: 47.8%;
  --crop-portrait-face-y: 33.3%;

  --crop-medallion-zoom: 2.39;
  --crop-medallion-x: 0.451;
  --crop-medallion-y: 0.352;

  --crop-face-zoom: 2.318;
  --crop-face-x: 0.444;
  --crop-face-y: 0.353;

  --crop-glass-zoom: 2.627;
  --crop-glass-x: 0.495;
  --crop-glass-y: 0.574;

  --crop-figure-zoom: 1.02;
  --crop-figure-x: 0.5;
  --crop-figure-y: 0.4575;

  --crop-closer-zoom: 2.919;
  --crop-closer-x: 0.446;
  --crop-closer-y: 0.355;
  /* --------------------------------------------------------------------------- */

  --s-founder-gilt: linear-gradient(135deg, #a8781f 0%, #f3d277 22%, #c99b35 44%, #f7e3a1 58%, #b98522 76%, #e2bb58 100%);
  --s-founder-brass: linear-gradient(160deg, #e9c66b 0%, #c9962b 36%, #f1d58a 52%, #b98522 74%, #dcb352 100%);
  --s-founder-engraved: #3b2606;
  /* Mitre shading for a frame of the main portrait's proportions: top lit, bottom in shade. */
  --s-founder-mitre: conic-gradient(from -40.2deg, rgba(255, 255, 255, 0.26) 0 80.4deg, rgba(0, 0, 0, 0.1) 80.4deg 180deg, rgba(0, 0, 0, 0.36) 180deg 260.4deg, rgba(255, 255, 255, 0.04) 260.4deg 360deg);
  --s-founder-damask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='144' viewBox='0 0 96 144'%3E%3Cg fill='none' stroke='%23f2c14e' stroke-opacity='.085' stroke-width='1.2'%3E%3Cpath d='M48 3C64 27 93 44 93 72C93 100 64 117 48 141C32 117 3 100 3 72C3 44 32 27 48 3Z'/%3E%3Cpath d='M48 104C40 96 27 98 21 88C31 90 39 86 44 77M48 104C56 96 69 98 75 88C65 90 57 86 52 77M48 40C42 47 31 45 27 55C35 51 42 55 46 63M48 40C54 47 65 45 69 55C61 51 54 55 50 63'/%3E%3Ccircle cx='0' cy='0' r='7'/%3E%3Ccircle cx='96' cy='0' r='7'/%3E%3Ccircle cx='0' cy='144' r='7'/%3E%3Ccircle cx='96' cy='144' r='7'/%3E%3C/g%3E%3Cg fill='%23f2c14e' fill-opacity='.05'%3E%3Cpath d='M48 42C56 53 61 61 61 72C61 83 54 91 48 102C42 91 35 83 35 72C35 61 40 53 48 42Z'/%3E%3Cpath d='M48 12L52 20L48 28L44 20ZM48 116L52 124L48 132L44 124Z'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='96' cy='0' r='3'/%3E%3Ccircle cx='0' cy='144' r='3'/%3E%3Ccircle cx='96' cy='144' r='3'/%3E%3C/g%3E%3C/svg%3E");
  /* The label's die-cut outline with a deckled edge. The roughness is baked into this
     image, so it is drawn once and costs nothing while the foil sheen moves. */
  --s-founder-deckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 760' preserveAspectRatio='none'%3E%3Cfilter id='d' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='2' seed='11' result='n'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='n' scale='7' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cpath filter='url(%23d)' d='M4 757V152A196 148 0 0 1 396 152V757Z'/%3E%3C/svg%3E");

  /* A museum wall at night: damask instead of the theme's curtain pleats. */
  background-image:
    var(--grain),
    linear-gradient(180deg, rgba(10, 7, 20, 0.72) 0%, transparent 10%, transparent 90%, rgba(10, 7, 20, 0.78) 100%),
    radial-gradient(120% 60% at 26% 18%, rgba(122, 14, 35, 0.55) 0%, transparent 70%),
    var(--s-founder-damask),
    linear-gradient(180deg, #4a0916 0%, var(--velvet-deep) 55%, #2b040d 100%);
}

/* The crop mechanism --------------------------------------------------------------- */

.s-founder__crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #20140c;
}

/* The pan layer is what a Ken Burns push scales, about the focal point. */
.s-founder__pan {
  position: absolute;
  inset: 0;
}

.s-founder__crop img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--zoom) * 100%);
  max-width: none;
  height: auto;
  transform: translate(calc(var(--x) * -100%), calc(var(--y) * -100%));
}

.s-founder__crop--portrait { --zoom: var(--crop-portrait-zoom); --x: var(--crop-portrait-x); --y: var(--crop-portrait-y); }
.s-founder__crop--medallion { --zoom: var(--crop-medallion-zoom); --x: var(--crop-medallion-x); --y: var(--crop-medallion-y); }
.s-founder__crop--face { --zoom: var(--crop-face-zoom); --x: var(--crop-face-x); --y: var(--crop-face-y); }
.s-founder__crop--glass { --zoom: var(--crop-glass-zoom); --x: var(--crop-glass-x); --y: var(--crop-glass-y); }
.s-founder__crop--figure { --zoom: var(--crop-figure-zoom); --x: var(--crop-figure-x); --y: var(--crop-figure-y); }
.s-founder__crop--closer { --zoom: var(--crop-closer-zoom); --x: var(--crop-closer-x); --y: var(--crop-closer-y); }

/* Gallery layout ---------------------------------------------------------------- */

.s-founder__gallery {
  display: grid;
  gap: var(--sp-8);
}

.s-founder__shrine-col {
  min-width: 0;
}

.s-founder__shrine {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 0.5rem;
  max-width: 38rem;
  margin-inline: auto;
}

.s-founder__text {
  display: grid;
  justify-items: start;
  gap: var(--sp-8);
  min-width: 0;
  max-width: 44rem;
  margin-inline: auto;
}

@media (min-width: 75em) {
  .s-founder__gallery {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
    gap: clamp(3rem, 5vw, 5rem);
  }

  .s-founder__shrine,
  .s-founder__text {
    max-width: none;
    margin-inline: 0;
  }
}

/* The shrine stays in view beside the text, so the whole of it has to fit under
   the nav: the frame is sized from the viewport height (its outer height is
   1.1825 x its width; the rem term is everything else in the shrine). */
@media (min-width: 75em) and (min-height: 44em) {
  .s-founder__shrine {
    position: sticky;
    top: calc(var(--nav-h) + 0.5rem);
  }

  .s-founder .s-founder__altar {
    --frame-col: min(calc(100% - 12.4rem), calc((100svh - var(--nav-h) - 20.5rem) / 1.1825), 26rem);
  }
}

/* Laptop heights: the same shrine, drawn a little tighter. */
@media (min-width: 75em) and (min-height: 44em) and (max-height: 52.99em) {
  .s-founder .s-founder__altar {
    --frame-col: min(calc(100% - 12.4rem), calc((100svh - var(--nav-h) - 19.2rem) / 1.1825), 26rem);
    row-gap: 0.7rem;
  }

  .s-founder .s-founder__side { gap: 0.7rem; }
  .s-founder .s-founder__request { width: 4rem; padding: 0.35rem; }
  .s-founder .s-founder__request-word { font-size: 1.15rem; }
  .s-founder .s-founder__plaque { gap: 0.4rem; padding: 0.75rem 0.8rem 0.8rem; }
  .s-founder .s-founder__caption { font-size: 0.875rem; line-height: 1.32; }
  .s-founder .s-founder__cordon { height: 6.1rem; }
  .s-founder .s-founder__post { height: 5rem; }
  .s-founder .s-founder__rope { height: 1.6rem; }
  .s-founder .s-founder__sign { margin-top: 1.8rem; }
  .s-founder .s-founder__offering { margin-top: 0.6rem; }
}

/* The altar: frame, the request alongside, plaque, caption ------------------------- */

.s-founder__altar {
  --frame-col: min(100%, 21rem);
  display: grid;
  grid-template-columns: var(--frame-col);
  justify-content: center;
  gap: 0.9rem 1.1rem;
}

.s-founder__legend {
  display: contents;
}

@media (min-width: 40em) {
  .s-founder__altar {
    --frame-col: min(calc(100% - 12.4rem), 26rem);
    grid-template-columns: var(--frame-col) minmax(0, 11.3rem);
  }

  .s-founder__caption {
    grid-column: 1 / -1;
  }
}

.s-founder__stage {
  position: relative;
  container-type: inline-size;
  padding-top: 1.7rem;
  perspective: 70rem;
}

/* The pool of lamplight on the wall, and the halo. Both sit behind the frame. */
.s-founder__pool {
  position: absolute;
  left: 50%;
  top: -7rem;
  z-index: -2;
  width: 240%;
  height: 150%;
  translate: -50% 0;
  background: radial-gradient(40% 46% at 50% 22%, rgba(255, 206, 128, 0.42) 0%, rgba(255, 168, 80, 0.16) 48%, transparent 100%);
  /* The glow is taller than the room above the lamp, so its box would cut it off in
     a straight line: the top is feathered instead. */
  -webkit-mask: linear-gradient(transparent, #000 7rem);
  mask: linear-gradient(transparent, #000 7rem);
  pointer-events: none;
}

.s-founder__halo {
  position: absolute;
  left: 50%;
  top: 53%;
  z-index: -1;
  width: 196%;
  aspect-ratio: 1;
  translate: -50% -50%;
  transform: translate(calc(var(--tilt-x, 0) * -16px), calc(var(--tilt-y, 0) * -12px));
  transition: transform 0.7s var(--ease-out), opacity 2s var(--ease-out);
  pointer-events: none;
}

.s-founder__rays {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(242, 193, 78, 0.5) 0 3.5deg, transparent 3.5deg 12deg);
  -webkit-mask: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, 0.8) 44%, transparent 100%);
  mask: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, 0.8) 44%, transparent 100%);
  animation: fg-spin 100s linear infinite;
}

.s-founder__flare {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 243, 196, 0.95) 0%, rgba(242, 193, 78, 0.55) 38%, transparent 74%);
  opacity: 0;
}

.s-founder.is-flaring .s-founder__flare {
  animation: s-founder-flare 1.2s var(--ease-out) both;
}

.s-founder.is-flaring .s-founder__halo {
  animation: s-founder-halo-pulse 1.2s var(--ease-out) both;
}

/* The brass picture light. */
.s-founder__lamp {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  width: 48%;
  height: 1.9rem;
  translate: -50% 0;
  pointer-events: none;
}

.s-founder__lamp-shade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.85rem;
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #f7e3a1 0%, #d9a437 22%, #8a5a12 58%, #5c3d08 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 10px -4px rgba(0, 0, 0, 0.7);
}

.s-founder__lamp-arm {
  position: absolute;
  top: 0.5rem;
  left: 22%;
  width: 0.28rem;
  height: 1.4rem;
  border-radius: 0.14rem;
  background: linear-gradient(90deg, #5c3d08, #e7b94a 45%, #7a520f);
}

.s-founder__lamp-arm + .s-founder__lamp-arm {
  left: auto;
  right: 22%;
}

.s-founder__lamp-glow {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 0.7rem;
  height: 1.6rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 205, 0.95), rgba(255, 200, 110, 0.5) 45%, transparent 100%);
}

/* The gilded frame: carved outer rail with beading, a cove in shade, a bright
   inner lip, an ivory mount. Proportions are in cqw (hundredths of its width). */
.s-founder__frame {
  --bead: 5cqw;
  --pearl: #fff6cf 0 16%, #e2bb58 34%, #8a5a12 62%, rgba(92, 61, 8, 0) 70%;
  position: relative;
  padding: 5cqw;
  background:
    radial-gradient(circle closest-side, var(--pearl)) left top / var(--bead) var(--bead) round no-repeat,
    radial-gradient(circle closest-side, var(--pearl)) left bottom / var(--bead) var(--bead) round no-repeat,
    radial-gradient(circle closest-side, var(--pearl)) left top / var(--bead) var(--bead) no-repeat round,
    radial-gradient(circle closest-side, var(--pearl)) right top / var(--bead) var(--bead) no-repeat round,
    var(--s-founder-mitre),
    var(--s-founder-gilt);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 207, 0.7),
    inset 0 0 0 2px rgba(92, 61, 8, 0.7),
    0 0 0 1px #3a2606,
    0 3px 0 1px #1d1203,
    0 46px 60px -26px rgba(0, 0, 0, 0.9),
    0 14px 22px -8px rgba(0, 0, 0, 0.65);
  transform: rotateX(calc(var(--tilt-y, 0) * -7deg)) rotateY(calc(var(--tilt-x, 0) * 9deg));
  transition: transform 0.5s var(--ease-out);
}

.s-founder__cove {
  padding: 3cqw;
  background:
    conic-gradient(from -40.2deg, rgba(0, 0, 0, 0.42) 0 80.4deg, rgba(0, 0, 0, 0.12) 80.4deg 180deg, rgba(255, 246, 207, 0.3) 180deg 260.4deg, rgba(0, 0, 0, 0.2) 260.4deg 360deg),
    linear-gradient(135deg, #9a6c1a, #c99b35 50%, #86590f);
  box-shadow: 0 0 0 1px rgba(255, 246, 207, 0.65), 0 0 0 2px rgba(74, 50, 6, 0.9), inset 0 0 0 1px rgba(58, 38, 6, 0.8);
}

.s-founder__lip {
  padding: 1.2cqw;
  background: var(--s-founder-mitre), var(--foil-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 1px #4a3206;
}

.s-founder__mount {
  position: relative;
  padding: 4.3cqw;
  background: var(--grain-dark), linear-gradient(170deg, #fffaf0, var(--cream) 60%, #f1e4c6);
  box-shadow: inset 0 0.25rem 0.6rem rgba(60, 40, 10, 0.5), inset 0 0 0 1px rgba(60, 40, 10, 0.55);
}

.s-founder__picture {
  /* bevel of the mount, then a gold fillet line around the window */
  box-shadow: 0 0 0 1px rgba(60, 40, 10, 0.55), 0 0 0 0.22rem #fffdf6, 0 0 0 calc(0.22rem + 1px) rgba(60, 40, 10, 0.3);
  outline: 1px solid var(--gold-deep);
  outline-offset: 0.55rem;
}

/* Light from the picture lamp falls across the top of the canvas. */
.s-founder__lighting {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(95% 55% at 50% 0%, rgba(255, 214, 150, 0.2), transparent 62%),
    linear-gradient(180deg, transparent 58%, rgba(22, 8, 10, 0.3));
  box-shadow: inset 0 0.15rem 0.6rem rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* The spotlight iris: a dark sheet with a soft hole centred on his face. It only
   exists during the unveiling. */
.s-founder__iris {
  position: absolute;
  left: var(--crop-portrait-face-x);
  top: var(--crop-portrait-face-y);
  width: 200%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(circle closest-side, rgba(6, 2, 5, 0) 0 4.2%, rgba(6, 2, 5, 0.55) 6%, rgba(6, 2, 5, 0.97) 8.5%);
  opacity: 0;
  pointer-events: none;
}

/* The glazing: a specular band that slides as the frame tilts. At rest it sits
   off to the upper left, clear of his face. */
.s-founder__glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.s-founder__glare {
  position: absolute;
  inset: -30% -70%;
  background: linear-gradient(112deg, transparent 39%, rgba(255, 255, 255, 0.17) 44%, rgba(255, 255, 255, 0.04) 48%, rgba(255, 255, 255, 0.2) 51%, transparent 57%);
  transform: translate(calc(var(--tilt-x, 0) * 30% - 27%), calc(var(--tilt-y, 0) * 14%));
  transition: transform 0.5s var(--ease-out);
}

/* Corner cartouches. */
.s-founder__corner {
  position: absolute;
  left: -1.4cqw;
  top: -1.4cqw;
  display: grid;
  place-items: center;
  width: 13cqw;
  height: 13cqw;
  font-size: 9.6cqw;
  color: #5c3d08;
  background: radial-gradient(circle at 38% 34%, #fff3c4 0%, #e7b94a 34%, #b98522 70%, #8a5a12 100%);
  border-radius: 20% 14% 58% 14%;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 207, 0.75), inset 0 0 0 2px rgba(92, 61, 8, 0.55), 0 2px 5px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.s-founder__corner .icon {
  filter: drop-shadow(0 1px 0 rgba(255, 246, 207, 0.7));
}

.s-founder__corner--tr { left: auto; right: -1.4cqw; rotate: 90deg; }
.s-founder__corner--br { left: auto; top: auto; right: -1.4cqw; bottom: -1.4cqw; rotate: 180deg; }
.s-founder__corner--bl { top: auto; bottom: -1.4cqw; rotate: 270deg; }

.s-founder__venerate {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

/* The request, displayed alongside, and the brass plaque. */
.s-founder__side {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

@media (min-width: 40em) {
  .s-founder__side {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.1rem;
  }
}

.s-founder__plaque {
  flex: 1;
  display: grid;
  gap: 0.5rem;
  padding: 1rem 0.85rem 1.05rem;
  color: var(--s-founder-engraved);
  text-shadow: 0 1px 0 rgba(255, 244, 200, 0.6);
  background:
    radial-gradient(circle, #6b440c 0 1.3px, #f7e3a1 1.6px 2.7px, #6b440c 3.1px, transparent 3.6px) left 0.3rem top 0.3rem / 8px 8px no-repeat,
    radial-gradient(circle, #6b440c 0 1.3px, #f7e3a1 1.6px 2.7px, #6b440c 3.1px, transparent 3.6px) right 0.3rem top 0.3rem / 8px 8px no-repeat,
    radial-gradient(circle, #6b440c 0 1.3px, #f7e3a1 1.6px 2.7px, #6b440c 3.1px, transparent 3.6px) left 0.3rem bottom 0.3rem / 8px 8px no-repeat,
    radial-gradient(circle, #6b440c 0 1.3px, #f7e3a1 1.6px 2.7px, #6b440c 3.1px, transparent 3.6px) right 0.3rem bottom 0.3rem / 8px 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px),
    var(--s-founder-brass);
  border: 1px solid #4a3206;
  border-radius: var(--r-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -2px 0 rgba(92, 61, 8, 0.55), 0 12px 18px -8px rgba(0, 0, 0, 0.75);
}

.s-founder__plaque-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.1;
  text-wrap: balance;
}

.s-founder__plaque-medium {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(59, 38, 6, 0.45);
  box-shadow: 0 1px 0 rgba(255, 244, 200, 0.5);
  font-family: var(--font-logo);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.s-founder__plaque-text {
  font-size: 0.8125rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
}

/* On a phone the plaque runs beside the request, not in the narrow side column:
   there is room for a larger hand. */
@media (max-width: 39.99em) {
  .s-founder__plaque-medium { font-size: 0.6875rem; }
  .s-founder__plaque-text { font-size: 0.9375rem; }
}

.s-founder__request {
  flex: none;
  display: grid;
  place-items: center;
  width: 5.4rem;
  aspect-ratio: 1;
  padding: 0.45rem;
  background: var(--s-founder-mitre), var(--s-founder-gilt);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 207, 0.7), 0 0 0 1px #3a2606, 0 12px 16px -8px rgba(0, 0, 0, 0.8);
}

.s-founder__request-word {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--paper-ink);
  background: var(--grain-dark), var(--cream);
  box-shadow: inset 0 2px 5px rgba(60, 40, 10, 0.5), 0 0 0 1px #4a3206;
}

.s-founder__caption {
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.38;
  color: var(--fg);
}

.s-founder__caption i {
  font-style: normal;
}

/* Rope, sign, candles ----------------------------------------------------------- */

.s-founder__votive {
  position: relative;
  display: grid;
  justify-items: center;
}

.s-founder__cordon {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  height: 6.9rem;
  /* the floor: a line of light and its shadow */
  background:
    linear-gradient(90deg, transparent, rgba(242, 193, 78, 0.5) 18%, rgba(242, 193, 78, 0.5) 82%, transparent) bottom / 100% 1px no-repeat,
    radial-gradient(50% 100% at 50% 100%, rgba(255, 176, 80, calc(0.1 + var(--candle-glow, 0.2) * 0.3)), transparent 100%) bottom / 100% 70% no-repeat;
}

.s-founder__post {
  position: absolute;
  bottom: 0;
  left: 0.55rem;
  width: 0.62rem;
  height: 5.7rem;
  border-radius: 0.2rem 0.2rem 0 0;
  background: linear-gradient(90deg, #6b440c 0%, #e7b94a 32%, #fff3c4 46%, #c9962b 62%, #5c3d08 100%);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* finial */
.s-founder__post::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.85rem;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: -0.575rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff6cf 0%, #e7b94a 34%, #8a5a12 78%, #4a3206 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* weighted base */
.s-founder__post::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2.3rem;
  height: 0.55rem;
  margin-left: -1.15rem;
  border-radius: 50% 50% 0.15rem 0.15rem / 100% 100% 0.15rem 0.15rem;
  background: linear-gradient(90deg, #5c3d08, #e7b94a 36%, #fff3c4 48%, #b98522 66%, #4a3206);
}

.s-founder__post--right {
  left: auto;
  right: 0.55rem;
}

.s-founder__rope {
  position: absolute;
  left: 0.86rem;
  top: 0.55rem;
  width: calc(100% - 1.72rem);
  height: 2.6rem;
  max-width: none;
  overflow: visible;
  fill: none;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.5));
}

.s-founder__rope path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.s-founder__rope-core {
  stroke: var(--velvet);
  stroke-width: 9px;
}

.s-founder__rope-twist {
  stroke: var(--velvet-hi);
  stroke-width: 5px;
  stroke-dasharray: 5 7;
  stroke-linecap: butt;
}

.s-founder__sign {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: start;
  margin-top: 2.55rem;
  transform-origin: 50% -0.5rem;
}

.s-founder__sign > span {
  display: block;
  padding: 0.42rem 0.8rem 0.4rem;
  font-family: var(--font-logo);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper-ink);
  background: var(--grain-dark), var(--cream);
  border: 1px solid var(--paper-ink);
  border-radius: 1px;
  box-shadow: inset 0 0 0 2px var(--cream), inset 0 0 0 3px rgba(28, 18, 38, 0.45), 0 5px 8px rgba(0, 0, 0, 0.55);
}

/* the two little chains it hangs from */
.s-founder__sign::before,
.s-founder__sign::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 22%;
  width: 1px;
  height: 0.6rem;
  background: var(--gold);
}

.s-founder__sign::after {
  left: auto;
  right: 22%;
}

.s-founder__sign.is-swinging {
  animation: s-founder-swing 1.5s var(--ease-out) both;
}

.s-founder__candles {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding-bottom: 0.2rem;
}

/* A votive: ruby glass with the light of the candle inside it. */
.s-founder__candle {
  position: relative;
  flex: none;
  width: 1.4rem;
  height: 1.7rem;
  border-radius: 0.12rem 0.12rem 0.45rem 0.45rem;
  background: radial-gradient(130% 105% at 50% 0%, #ffd27a 0%, #f2672e 28%, #a3142f 60%, #4b0612 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 200, 150, 0.35), inset 0 -0.2rem 0.3rem rgba(0, 0, 0, 0.5), 0 2px 3px rgba(0, 0, 0, 0.6);
}

.s-founder__candle:nth-child(even) {
  height: 1.5rem;
}

.s-founder__candle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30%;
  width: 4.4rem;
  height: 4.4rem;
  margin-left: -2.2rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 104, 0.4), rgba(255, 150, 60, 0.12) 55%, transparent);
  pointer-events: none;
  animation: fg-flicker 3.4s linear var(--d, 0s) infinite;
}

.s-founder__flame {
  position: absolute;
  left: 50%;
  bottom: 84%;
  width: 0.58rem;
  height: 1.1rem;
  margin-left: -0.29rem;
  border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 50% 80%, #fffbe6 0 20%, #ffd257 44%, #ff8a1f 70%, rgba(255, 100, 20, 0) 100%);
  transform-origin: 50% 100%;
  animation: s-founder-flame 1.7s ease-in-out var(--d, 0s) infinite alternate;
}

/* A newly lit candle: the glass drops in, the flame catches, the glow flares. */
.s-founder__candle.is-new {
  animation: s-founder-candle-in 0.6s var(--ease-overshoot) both;
}

.s-founder__candle.is-new .s-founder__flame {
  animation: s-founder-ignite 0.5s var(--ease-overshoot) 0.3s both, s-founder-flame 1.7s ease-in-out var(--d, 0s) infinite alternate;
}

.s-founder__candle.is-new::after,
.s-founder__candle.is-flaring::after {
  animation: s-founder-candle-flare 1s var(--ease-out) 0.3s both, fg-flicker 3.4s linear 1.3s infinite;
}

.s-founder__candle.is-flaring::after {
  animation-delay: 0s, 1s;
}

@media (max-width: 29.99em) {
  .s-founder__candle:nth-child(n + 10) {
    display: none;
  }
}

.s-founder__offering {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 1.1rem;
  margin-top: 0.75rem;
}

/* Lighting a candle needs the engine. Until the module starts the button keeps
   its place unseen, so the section is the same height before and after. Where
   there will be no module (scripting off, or the module failed) it takes no room. */
.s-founder__light-button {
  visibility: hidden;
}

.s-founder.is-enhanced .s-founder__light-button {
  visibility: visible;
}

.s-founder[data-module-state="failed"] .s-founder__light-button {
  display: none;
}

@media (scripting: none) {
  .s-founder__light-button {
    display: none;
  }
}

.s-founder__count {
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.2;
  color: var(--fg);
}

.s-founder__count b {
  font-family: var(--font-display);
  font-size: 1.5em;
  font-style: normal;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  color: var(--gold);
  vertical-align: -0.06em;
}

/* The unveiling ------------------------------------------------------------------ */
/* Without the engine the shrine is simply lit. With it, the module arms the
   shrine (dark) and lights it when it comes into view. */

.s-founder__dimmer {
  position: absolute;
  inset: -2.5rem -3rem -1rem;
  z-index: 3;
  background: radial-gradient(closest-side, rgba(9, 3, 7, 0.9) 0%, rgba(9, 3, 7, 0.84) 62%, rgba(9, 3, 7, 0) 100%);
  opacity: 0;
  pointer-events: none;
}

.s-founder.is-armed .s-founder__dimmer { opacity: 1; }
.s-founder.is-armed .s-founder__iris { opacity: 1; }
.s-founder.is-armed .s-founder__halo { opacity: 0; }
.s-founder.is-armed .s-founder__pool,
.s-founder.is-armed .s-founder__lamp-glow { opacity: 0; }

.s-founder.is-armed.is-lit .s-founder__dimmer {
  opacity: 0;
  transition: opacity 2.2s var(--ease-out) 0.25s;
}

.s-founder.is-armed.is-lit .s-founder__pool,
.s-founder.is-armed.is-lit .s-founder__lamp-glow {
  animation: s-founder-warm-up 1.5s linear both;
}

.s-founder.is-armed.is-lit .s-founder__iris {
  animation: s-founder-iris 2.3s var(--ease-in-out) 0.7s both;
}

.s-founder.is-armed.is-lit .s-founder__halo {
  opacity: 1;
  transition-delay: 0s, 1.6s;
}

/* Nothing loops while the section is out of sight. */
.s-founder.is-idle .s-founder__rays,
.s-founder.is-idle .s-founder__flame,
.s-founder.is-idle .s-founder__candle::after {
  animation-play-state: paused;
}

/* The text column -------------------------------------------------------------- */

.s-founder__title {
  font-size: clamp(2.9rem, 1.2rem + 5.2vw, 6.2rem);
}

/* All five epithets are always in the document. Listed in a row by default; when
   the module cycles them, they share one line and take turns. */
.s-founder__epithets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.9em;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
  font-family: var(--font-logo);
  font-size: clamp(1rem, 0.85rem + 0.7vw, 1.35rem);
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--gold);
}

/* Without the engine the footnote is printed in line: set it as a note, not a shout. */
.s-founder__epithet .fn {
  font-family: var(--font-text);
  font-size: 0.8em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}

.s-founder.is-cycling .s-founder__epithets {
  display: grid;
  font-size: clamp(1.45rem, 1rem + 2vw, 2.5rem);
  letter-spacing: 0.26em;
}

.s-founder.is-cycling .s-founder__epithet {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out);
}

.s-founder.is-cycling .s-founder__epithet.is-on {
  opacity: 1;
  transform: none;
}

/* A waiting epithet must not catch the pointer meant for the one on show. */
.s-founder.is-cycling .s-founder__epithet:not(.is-on) {
  pointer-events: none;
}

.s-founder.is-cycling .s-founder__epithet.is-leaving {
  transform: translateY(-0.55em);
}

.s-founder__bio {
  font-size: var(--fs-body);
}

.s-founder__bio > p:first-child::first-letter {
  float: left;
  padding: 0.07em 0.1em 0 0;
  font-family: var(--font-display);
  font-size: 4.3em;
  line-height: 0.76;
  color: var(--gold);
  text-shadow: 0.04em 0.045em 0 var(--offset);
}

.s-founder__cellar {
  display: grid;
  justify-items: center;
  gap: var(--sp-8);
  width: 100%;
}

/* The label -------------------------------------------------------------------- */

.s-founder__label {
  --arch: 50% 50% 0.35rem 0.35rem / 9.5rem 9.5rem 0.35rem 0.35rem;
  position: relative;
  isolation: isolate;
  width: min(100%, 25rem);
  padding: 3.3rem 2.1rem 2.3rem;
  text-align: center;
  color: var(--paper-ink);
  transform: rotate(-1.2deg);
}

/* Cream stock with a deckled edge, and the shadow it casts on the wall. */
.s-founder__label-stock {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--grain-dark), radial-gradient(120% 80% at 50% 18%, #fffaf0 0%, var(--cream) 55%, var(--parchment) 100%);
  -webkit-mask: var(--s-founder-deckle) center / 100% 100% no-repeat;
  mask: var(--s-founder-deckle) center / 100% 100% no-repeat;
}

.s-founder__label::before {
  content: "";
  position: absolute;
  inset: 0.5rem 0.5rem 0.25rem;
  z-index: -3;
  border-radius: var(--arch);
  box-shadow: 0 1.3rem 1.6rem rgba(0, 0, 0, 0.6), 0 0.25rem 0.5rem rgba(0, 0, 0, 0.45);
}

/* Gold foil rules that follow the die-cut. */
.s-founder__label-rule {
  position: absolute;
  inset: 0.7rem;
  z-index: -1;
  padding: 3px;
  border-radius: 50% 50% 0.2rem 0.2rem / 8.9rem 8.9rem 0.2rem 0.2rem;
  background: var(--foil-deep);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.s-founder__label-rule--inner {
  inset: 1.08rem;
  padding: 1px;
  border-radius: 50% 50% 0.1rem 0.1rem / 8.55rem 8.55rem 0.1rem 0.1rem;
}

.s-founder__label-body {
  display: grid;
  justify-items: center;
}

.s-founder__label-name {
  width: 100%;
}

.s-founder__label-name svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.s-founder__label-name text {
  font-family: var(--font-display);
  font-size: 54px;
  letter-spacing: 4px;
  fill: var(--paper-ink);
}

/* The medallion: the photograph, toned like an engraving, in a guilloche ring. */
.s-founder__medallion {
  position: relative;
  width: 6.6rem;
  aspect-ratio: 100 / 124;
  margin-top: -16.5%;
}

.s-founder__medallion-face {
  position: absolute;
  inset: 14% 13.5%;
  aspect-ratio: auto;
  border-radius: 50%;
  background: var(--cream);
}

.s-founder__medallion-face img {
  filter: grayscale(1) contrast(1.18) brightness(1.06) sepia(0.42);
}

/* fine ruled lines, as cut by a burin */
.s-founder__medallion-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg, rgba(74, 46, 12, 0.2) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.s-founder__guilloche {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #7a520f;
  stroke-width: 0.9;
}

.s-founder__guilloche-reeds {
  stroke: #a8741a;
  stroke-width: 6.4;
  stroke-dasharray: 0.9 1.5;
}

.s-founder__guilloche-beads {
  stroke: #6b440c;
  stroke-width: 1.5;
  stroke-dasharray: 0.01 3;
  stroke-linecap: round;
}

.s-founder__label-style {
  margin-top: 0.35rem;
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1;
  color: var(--velvet);
}

.s-founder__label-age {
  display: grid;
  justify-items: center;
  width: 100%;
  margin-top: 0.9rem;
  font-family: var(--font-logo);
  font-weight: 800;
  text-transform: uppercase;
}

.s-founder__label-aged,
.s-founder__label-years {
  display: flex;
  align-items: center;
  gap: 0.9em;
  width: 100%;
  font-size: 0.8125rem;
  letter-spacing: 0.42em;
}

.s-founder__label-aged::before,
.s-founder__label-aged::after,
.s-founder__label-years::before,
.s-founder__label-years::after {
  content: "";
  flex: 1;
  height: 3px;
  border-block: 1px solid #a8741a;
}

.s-founder__label-fifty {
  padding: 0 0.04em 0.04em;
  font-family: var(--font-display);
  font-size: 8.2rem;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.02em;
  line-height: 0.86;
  background: var(--foil-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0.025em 0.03em 0 var(--paper-ink));
}

.s-founder__label-rushed {
  margin-top: 0.55rem;
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--velvet);
}

.s-founder__label-claims {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.1rem;
  padding-block: 0.95rem;
  border-block: 3px double #a8741a;
  font-family: var(--font-logo);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.45;
  text-transform: uppercase;
  text-wrap: balance;
}

.s-founder__label-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-top: 0.9rem;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.3;
  text-wrap: balance;
}

.s-founder__label-foot > p {
  padding-inline: 0.6rem;
}

.s-founder__label-foot > p + p {
  border-left: 1px solid #a8741a;
}

.s-founder__label-foot .fn-mark {
  --accent: var(--velvet);
  --on-accent: var(--cream);
}

.s-founder__label-batch {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5d5066;
}

/* The foil catches the light: once as the label arrives, then under the pointer. */
.s-founder__label-sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--arch);
  pointer-events: none;
}

.s-founder__label-sheen::before {
  content: "";
  position: absolute;
  inset: -10% -25%;
  background: linear-gradient(105deg, transparent 41%, rgba(255, 246, 207, 0.5) 47.5%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 246, 207, 0.5) 52.5%, transparent 59%);
  transform: translateX(var(--sheen, -80%));
}

.s-founder__label.is-in .s-founder__label-sheen::before {
  animation: s-founder-sheen 1.7s var(--ease-in-out) 0.7s both;
}

.s-founder__label.is-tracking .s-founder__label-sheen::before {
  animation: none;
  transition: transform 0.25s var(--ease-out);
}

/* Tasting notes ------------------------------------------------------------------ */

.s-founder__tasting {
  display: grid;
  gap: var(--sp-6);
  width: 100%;
}


.s-founder__tasting-notes {
  display: grid;
  gap: var(--sp-5);
}

.s-founder__notes {
  display: grid;
  gap: var(--sp-4) var(--sp-6);
}

@media (min-width: 44em) {
  .s-founder__notes {
    grid-template-columns: 1fr 1fr;
  }
}

.s-founder__notes > div {
  display: grid;
  gap: 0.2rem;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
}

.s-founder__notes dt {
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
}

.s-founder__notes dd {
  font-style: italic;
  line-height: 1.4;
}

.s-founder__radar {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  width: min(100%, 27rem);
  margin-inline: auto;
}

.s-founder__radar svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.s-founder__radar-grid {
  fill: none;
  stroke: rgba(242, 193, 78, 0.3);
  stroke-width: 1;
}

.s-founder__radar-rim {
  stroke: rgba(242, 193, 78, 0.75);
  stroke-width: 1.5;
}

.s-founder__radar-fill {
  fill: rgba(192, 102, 31, 0.42);
  transform-box: fill-box;
  transform-origin: 54% 73%;
}

.s-founder__radar-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.s-founder__radar-dots {
  fill: var(--gold-hi);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.s-founder__radar-labels {
  font-family: var(--font-logo);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  fill: var(--cream);
}

.s-founder__radar-labels text:first-child {
  fill: var(--gold);
}

.s-founder__radar figcaption {
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}

/* The chart draws itself: outline first, then the fill, then the points. */
.s-founder.is-enhanced .s-founder__radar .s-founder__radar-line {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.7s var(--ease-in-out) 0.35s;
}

.s-founder.is-enhanced .s-founder__radar .s-founder__radar-fill {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.7s var(--ease-out) 1.5s, transform 0.9s var(--ease-overshoot) 1.5s;
}

.s-founder.is-enhanced .s-founder__radar .s-founder__radar-dots {
  opacity: 0;
  transition: opacity 0.4s var(--ease-out) 2s;
}

.s-founder.is-enhanced .s-founder__radar.is-in .s-founder__radar-line {
  stroke-dashoffset: 0;
}

.s-founder.is-enhanced .s-founder__radar.is-in .s-founder__radar-fill {
  opacity: 1;
  transform: none;
}

.s-founder.is-enhanced .s-founder__radar.is-in .s-founder__radar-dots {
  opacity: 1;
}

/* Selected achievements ------------------------------------------------------------ */

.s-founder__cv {
  display: grid;
  gap: var(--sp-5);
  width: 100%;
}

.s-founder__subhead {
  font-size: var(--fs-h3);
  color: var(--fg);
  text-shadow: 0.045em 0.05em 0 var(--offset);
}

.s-founder__honours {
  display: grid;
  border-top: 3px double var(--rule);
}

.s-founder__honours > li {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  align-items: center;
  gap: 1.1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
}

.s-founder__honour-no {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.s-founder__honour-no .icon {
  width: 1.15rem;
  height: 2.5rem;
}

.s-founder__honour-no .icon:last-child {
  transform: scaleX(-1);
}

.s-founder__honour-no b {
  min-width: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  line-height: 1;
  text-align: center;
  color: var(--gold-hi);
}

.s-founder__honours p {
  line-height: 1.4;
}

/* The leadership team -------------------------------------------------------------- */

.s-founder__team {
  display: grid;
  gap: var(--sp-8);
  margin-top: clamp(5rem, 10vw, 9rem);
}

.s-founder__posts {
  display: grid;
  gap: var(--sp-7) var(--sp-6);
}

.s-founder__post-card {
  display: grid;
  grid-template-columns: 8.75rem minmax(0, 1fr);
  align-items: center;
  gap: 1.3rem;
}

.s-founder__mini-frame {
  position: relative;
  width: 100%;
  padding: 0.6rem;
  background: var(--s-founder-mitre), var(--s-founder-gilt);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 207, 0.75),
    inset 0 0 0 0.3rem rgba(92, 61, 8, 0.28),
    inset 0 0 0 calc(0.3rem + 1px) rgba(255, 246, 207, 0.6),
    0 0 0 1px #3a2606,
    0 1.4rem 1.6rem -0.9rem rgba(0, 0, 0, 0.85);
  transition: transform 0.6s var(--ease-out);
}

/* picture wire, up to its nail */
.s-founder__mini-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 44%;
  height: 1.9rem;
  translate: -50% 0;
  background:
    radial-gradient(circle, #fff3c4 0 1.5px, #8a5a12 2.5px, transparent 3px) top / 8px 8px no-repeat,
    linear-gradient(to top right, transparent calc(50% - 0.8px), rgba(242, 193, 78, 0.75) 50%, transparent calc(50% + 0.8px)) left bottom / 50% calc(100% - 3px) no-repeat,
    linear-gradient(to top left, transparent calc(50% - 0.8px), rgba(242, 193, 78, 0.75) 50%, transparent calc(50% + 0.8px)) right bottom / 50% calc(100% - 3px) no-repeat;
  pointer-events: none;
}

/* a deeper shadow that fades in as the frame lifts */
.s-founder__mini-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: 0 2.6rem 2.2rem -1rem rgba(0, 0, 0, 0.9), 0 0 2.5rem rgba(242, 193, 78, 0.28);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.s-founder__mini-frame .s-founder__crop {
  box-shadow: 0 0 0 1px #4a3206, 0 0 0 0.28rem var(--cream), 0 0 0 calc(0.28rem + 1px) rgba(60, 40, 10, 0.6);
  margin: 0.28rem;
}

.s-founder__mini-frame .s-founder__pan {
  transition: transform 1.4s var(--ease-out);
}

.s-founder__post-card:hover .s-founder__mini-frame {
  transform: translateY(-0.5rem);
}

.s-founder__post-card:hover .s-founder__mini-frame::after {
  opacity: 1;
}

/* Ken Burns: a slow push in on the crop's focal point. */
.s-founder__post-card:hover .s-founder__pan {
  transform: scale(1.16);
  transition-duration: 7s;
  transition-timing-function: linear;
}

.s-founder__post-text {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
}

.s-founder__post-title {
  padding: 0.55em 0.95em 0.5em;
  font-family: var(--font-logo);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--s-founder-engraved);
  text-shadow: 0 1px 0 rgba(255, 244, 200, 0.6);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px), var(--s-founder-brass);
  border: 1px solid #4a3206;
  border-radius: var(--r-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 6px 10px -4px rgba(0, 0, 0, 0.7);
}

.s-founder__post-text p {
  font-style: italic;
  line-height: 1.4;
}

@media (min-width: 40em) {
  .s-founder__posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s-founder__post-card {
    grid-template-columns: minmax(0, 17rem);
    justify-content: center;
    align-content: start;
    gap: 0;
  }

  .s-founder__post-text {
    position: relative;
    justify-items: center;
    gap: 0.9rem;
    margin-top: -0.95rem;
    text-align: center;
  }
}

@media (min-width: 62em) {
  .s-founder__posts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.s-founder__admission {
  display: grid;
  justify-items: center;
  gap: var(--sp-5);
  max-width: 36ch;
  margin-inline: auto;
  font-size: var(--fs-lede);
  font-style: italic;
  font-weight: 380;
  line-height: 1.34;
  text-align: center;
  text-wrap: balance;
}

.s-founder__admission::before {
  content: "";
  width: 1.5rem;
  aspect-ratio: 1;
  background: var(--gold);
  clip-path: var(--star);
}

/* Keyframes ------------------------------------------------------------------------ */

@keyframes s-founder-warm-up {
  0% { opacity: 0; }
  12% { opacity: 0.55; }
  18% { opacity: 0.1; }
  30% { opacity: 0.7; }
  36% { opacity: 0.3; }
  60%, 100% { opacity: 1; }
}

@keyframes s-founder-iris {
  0% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(26); }
}

@keyframes s-founder-flare {
  0% { opacity: 0; transform: scale(0.5); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25); }
}

@keyframes s-founder-halo-pulse {
  0%, 100% { scale: 1; }
  25% { scale: 1.1; }
}

@keyframes s-founder-swing {
  0% { transform: rotate(0deg); }
  15% { transform: rotate(9deg); }
  35% { transform: rotate(-7deg); }
  55% { transform: rotate(4.5deg); }
  75% { transform: rotate(-2.5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes s-founder-flame {
  0% { transform: scale(1, 1) skewX(0deg); }
  30% { transform: scale(0.92, 1.1) skewX(-4deg); }
  60% { transform: scale(1.06, 0.93) skewX(3deg); }
  100% { transform: scale(0.96, 1.06) skewX(-2deg); }
}

@keyframes s-founder-candle-in {
  from { opacity: 0; translate: 0 -1.1rem; }
  to { opacity: 1; translate: none; }
}

@keyframes s-founder-ignite {
  from { opacity: 0; scale: 0.2; }
  to { opacity: 1; scale: 1; }
}

@keyframes s-founder-candle-flare {
  0% { opacity: 0; scale: 0.3; }
  25% { opacity: 1; scale: 2.3; }
  100% { opacity: 1; scale: 1; }
}

@keyframes s-founder-sheen {
  from { transform: translateX(-80%); }
  to { transform: translateX(80%); }
}
/* The G: brand guidelines drawn as an engineering blueprint.
   State classes set by the module: .is-ready (the module runs), .is-live (motion is
   on: the sheet pins and draws itself with the scroll). Without either, everything
   below shows its finished state. */

.s-letter-g {
  --line: #eef5ff;
  --cyan: #9bd6ff;
  --lift: #10427d;
  --pit: #082a54;
  --alarm: #ff6b81;
  --ok: #7fe3d7;
  --steel: #1b2d47;
}

.s-letter-g__sheet-no {
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--cyan);
}

.s-letter-g__sheet-no::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.s-letter-g__sheet-title {
  display: grid;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1;
  color: var(--line);
  text-shadow: 0.045em 0.05em 0 var(--offset);
}

.s-letter-g__sheet-title .s-letter-g__sheet-no {
  text-shadow: none;
}

/* 1. The cover ------------------------------------------------------------------ */

.s-letter-g__cover {
  position: relative;
  border: 2px solid var(--line);
  outline: 1px solid var(--rule);
  outline-offset: 0.45rem;
  background: rgba(8, 42, 84, 0.55);
}

.s-letter-g__docbar {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--line);
}

.s-letter-g__docbar span {
  flex: 1 1 auto;
  padding: 0.75em 1.2em;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: -1px;
}

.s-letter-g__docbar span:first-child {
  flex-grow: 4;
}

.s-letter-g__docbar span:last-child {
  border-right: 0;
  color: var(--gold);
}

.s-letter-g__cover-body {
  display: grid;
  gap: var(--sp-7);
  padding: clamp(1.5rem, 4.5vw, 4.5rem);
}

.s-letter-g__title {
  font-size: clamp(2.9rem, 7.6vw, 8rem);
}

@media (min-width: 60em) {
  .s-letter-g__title {
    white-space: nowrap;
  }
}

.s-letter-g__title-g {
  background: var(--foil-fill);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0.045em 0.05em 0 var(--offset));
}

.s-letter-g__intro {
  display: grid;
  gap: var(--sp-5) var(--sp-8);
  font-size: var(--fs-body);
  line-height: 1.58;
}

.s-letter-g__intro p {
  max-width: 34em;
  text-wrap: pretty;
}

.s-letter-g__intro p:first-child::first-line {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

@media (min-width: 60em) {
  .s-letter-g__intro {
    grid-template-columns: 1fr 1fr;
    padding-top: var(--sp-6);
    border-top: 1px solid var(--rule);
  }
}

/* 2. The drawing ---------------------------------------------------------------- */

.s-letter-g__track {
  margin-top: var(--sp-8);
}

.s-letter-g__sheet {
  position: relative;
}

.s-letter-g__zones {
  display: none;
}

.s-letter-g__drawing {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 2px solid var(--line);
  background:
    linear-gradient(rgba(238, 245, 255, 0.07) 1px, transparent 1px) 0 0 / 1.5rem 1.5rem,
    linear-gradient(90deg, rgba(238, 245, 255, 0.07) 1px, transparent 1px) 0 0 / 1.5rem 1.5rem,
    var(--bg);
  box-shadow: 0 1.25rem 1.5rem -1rem rgba(3, 14, 32, 0.9);
}

.s-letter-g__canvas {
  position: relative;
  aspect-ratio: 1560 / 960;
}

.s-letter-g__plan {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Linework */
.s-letter-g__ln {
  fill: none;
  stroke: var(--line);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-letter-g__ln--guide {
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-opacity: 0.7;
  stroke-dasharray: 16 9;
  stroke-linecap: butt;
}

.s-letter-g__ln--centre {
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-dasharray: 42 9 5 9;
  stroke-linecap: butt;
}

.s-letter-g__ln--construct {
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-opacity: 0.85;
}

.s-letter-g__ln--thin {
  stroke: var(--cyan);
  stroke-width: 1.4;
  stroke-opacity: 0.6;
}

.s-letter-g__ln--spiral {
  stroke: var(--cyan);
  stroke-width: 3;
}

.s-letter-g__ln--dim {
  stroke-width: 2;
}

.s-letter-g__ln--lead {
  stroke-width: 2.2;
  transition: stroke var(--dur-1) linear;
}

.s-letter-g__ln--ground {
  stroke-width: 5;
  stroke-linecap: butt;
}

.s-letter-g__head {
  fill: var(--line);
  opacity: calc((var(--t, 1) - 0.75) * 4);
  transition: fill var(--dur-1) linear;
}

/* The mark, drawn with the real face at the measured positions of .fg-logo. */
.s-letter-g__glyph {
  font-family: var(--font-logo);
  font-size: 200px;
  font-weight: 800;
  fill: var(--lift);
  stroke: var(--line);
  stroke-width: 7;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.s-letter-g__glyph--stack {
  font-size: 180px;
  font-weight: 870;
}

.s-letter-g__glyph--g {
  stroke: var(--gold);
}

.s-letter-g__plan .s-letter-g__glyph[data-draw] {
  stroke-dasharray: 2600;
  stroke-dashoffset: calc(2600 * (1 - var(--t, 1)));
  fill-opacity: calc(var(--t, 1) * 2.5);
}

.s-letter-g__plan .s-letter-g__hatch {
  stroke: none;
  stroke-dasharray: none;
  fill-opacity: 1;
}

.s-letter-g__hatch-line {
  stroke: var(--gold);
  stroke-width: 4.5;
  stroke-opacity: 0.85;
}

.s-letter-g__plan .s-letter-g__vacant,
.s-letter-g__ghost,
.s-letter-g__void text {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  paint-order: normal;
}

/* What the scroll drives: the module writes --t (0 to 1) on every [data-draw]. */
.s-letter-g .is-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--t, 1));
  opacity: calc(var(--t, 1) * 40);
}

.s-letter-g .is-rule-x {
  transform: scaleX(var(--t, 1));
  transform-box: fill-box;
  transform-origin: 0 50%;
}

.s-letter-g .is-rule-y {
  transform: scaleY(var(--t, 1));
  transform-box: fill-box;
  transform-origin: 50% 0;
}

.s-letter-g .is-fade {
  opacity: var(--t, 1);
}

/* Notes and balloons are HTML over the drawing, so they keep a readable size
   whatever the drawing is scaled to. --x / --y are sheet coordinates. */
.s-letter-g__note,
.s-letter-g__balloon {
  position: absolute;
  left: calc(var(--x) / 1560 * 100%);
  top: calc(var(--y) / 960 * 100%);
}

.s-letter-g__note {
  --tx: 0%;
  --ty: 0%;
  --turn: 0deg;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cyan);
  opacity: var(--t, 1);
  transform: translate(var(--tx), var(--ty)) rotate(var(--turn));
  pointer-events: none;
}

.s-letter-g__note--above { --ty: calc(-100% - 0.35rem); }
.s-letter-g__note--below { --ty: 0.4rem; }
.s-letter-g__note--end { --tx: -100%; }
.s-letter-g__note--centre { --tx: -50%; --ty: -50%; }
.s-letter-g__note--turn { --tx: -50%; --ty: -50%; --turn: -90deg; }

.s-letter-g__note--dim {
  padding: 0.3em 0.5em;
  font-size: 0.75rem;
  color: var(--line);
  background: var(--bg);
}

.s-letter-g__note--dim b {
  font-weight: 500;
  color: var(--gold);
}

.s-letter-g__note--dim span {
  color: var(--cyan);
}

.s-letter-g__balloon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--line);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  opacity: calc(var(--t, 1) * 3);
  transform: translate(-50%, -50%) scale(var(--t, 1));
  cursor: pointer;
  transition: background-color var(--dur-1) linear, color var(--dur-1) linear, border-color var(--dur-1) linear;
}

/* Not drawn yet: nothing to see, so nothing to focus either. The key's own
   "Find part" buttons stay reachable throughout. */
.s-letter-g__balloon.is-undrawn {
  visibility: hidden;
}

.s-letter-g__balloon::after {
  content: "";
  position: absolute;
  inset: -0.55rem;
  border-radius: 50%;
}

.s-letter-g__balloon--inline {
  position: relative;
  left: auto;
  top: auto;
  display: inline-grid;
  margin-left: 0.6em;
  vertical-align: middle;
  transform: scale(var(--t, 1));
}

.s-letter-g__balloon:hover,
.s-letter-g__balloon.is-hot,
.s-letter-g__key.is-hot .s-letter-g__key-no,
.s-letter-g__key-no:hover {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.s-letter-g__leader.is-hot .s-letter-g__ln {
  stroke: var(--gold);
  stroke-width: 4;
}

.s-letter-g__leader.is-hot .s-letter-g__head {
  fill: var(--gold);
}

/* Title block */
.s-letter-g__titleblock {
  display: grid;
  grid-template-columns: minmax(0, 28%) minmax(0, 1fr);
  margin-top: var(--sp-5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--line);
  background: var(--bg);
  border: 2px solid var(--line);
}

.s-letter-g__tb-brand {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1em;
  padding: 1em 0.6em;
  border-right: 2px solid var(--line);
  font-size: 0.82em;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.s-letter-g__tb-brand p {
  font-size: max(1em, 0.625rem);
}

.s-letter-g__tb-brand .fg-logo {
  font-size: 1.75em;
}

.s-letter-g__tb-brand .fg-logo__g {
  color: var(--gold);
}

.s-letter-g__tb {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 0.75fr);
}

.s-letter-g__tb-cell {
  min-width: 0;
  padding: 0.5em 0.7em 0.55em;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.s-letter-g__tb-cell--wide { grid-column: 1 / -1; }
.s-letter-g__tb-cell--half { grid-column: span 2; }

.s-letter-g__tb-cell:nth-child(5),
.s-letter-g__tb-cell:nth-child(7),
.s-letter-g__tb-cell--wide {
  border-right: 0;
}

.s-letter-g__tb-cell--approve {
  border-bottom: 0;
}

.s-letter-g__tb dt {
  /* Small print, but never under 10px however small the sheet is drawn. */
  font-size: max(0.72em, 0.625rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.s-letter-g__tb dd {
  margin-top: 0.25em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.s-letter-g__signbox {
  position: relative;
  height: 4.6em;
  border: 1px dashed var(--line);
}

.s-letter-g__scrawl {
  position: absolute;
  inset: 8% 30% 8% 4%;
  display: none;
  width: 66%;
  height: 84%;
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-letter-g__scrawl path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.s-letter-g__stamp {
  --rot: -5deg;
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 1.2em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--rot));
}

.s-letter-g__stamp--approved {
  --rot: 4deg;
  left: 72%;
  display: none;
}

.s-letter-g__titleblock[data-consent="approved"] .s-letter-g__stamp--pending {
  display: none;
}

.s-letter-g__titleblock[data-consent="approved"] .s-letter-g__stamp--approved {
  display: inline-grid;
}

.s-letter-g__titleblock[data-consent="approved"] .s-letter-g__scrawl {
  display: block;
}

/* While the sheet is still being drawn, nobody has stamped it yet. */
.s-letter-g.is-live .s-letter-g__sheet:not(.is-signed-off) .s-letter-g__stamp {
  opacity: 0;
}

.s-letter-g.is-live .s-letter-g__sheet:not(.is-signed-off) .s-letter-g__scrawl path {
  stroke-dashoffset: 1;
}

.s-letter-g.is-live .s-letter-g__sheet.is-signed-off .s-letter-g__stamp {
  animation: fg-stamp-slam 0.62s var(--ease-slam) both;
}

.s-letter-g.is-live .s-letter-g__scrawl path {
  transition: stroke-dashoffset 0.9s var(--ease-out);
}

/* Legend */
.s-letter-g__legend {
  margin-top: var(--sp-6);
}

.s-letter-g__legend-title {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding-bottom: 0.7em;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--line);
}

.s-letter-g__progress {
  color: var(--gold);
  white-space: nowrap;
}

.s-letter-g__keys {
  list-style: none;
  margin: 0;
  padding: 0;
}

.s-letter-g__key {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  min-height: 3.25rem;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.35;
  transition: background-color var(--dur-1) linear;
}

.s-letter-g__key.is-hot {
  background: rgba(242, 193, 78, 0.12);
}

.s-letter-g__key.is-hot .s-letter-g__key-text {
  color: var(--gold-hi);
}

.s-letter-g__key-no {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--line);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--dur-1) linear, color var(--dur-1) linear, border-color var(--dur-1) linear;
}

.s-letter-g__key-no::after {
  content: "";
  position: absolute;
  inset: -0.55rem;
}

/* Under 48em the sheet is cropped to the mark itself, and the balloons and notes
   that live in its margins step aside (the legend below carries all fourteen).
   The drawing stays put under the nav while the legend scrolls past beneath it. */
@media (max-width: 47.99em) {
  .s-letter-g.is-live .s-letter-g__drawing {
    position: sticky;
    top: var(--nav-h);
  }

  .s-letter-g__canvas {
    width: 136.8%;
    margin-left: -18.9%;
  }

  .s-letter-g [data-desk] {
    display: none;
  }

  .s-letter-g__ln { stroke-width: 3.6; }
  .s-letter-g__ln--guide,
  .s-letter-g__ln--thin { stroke-width: 2.4; }
  .s-letter-g__ln--centre,
  .s-letter-g__ln--construct { stroke-width: 2.8; }
  .s-letter-g__ln--spiral { stroke-width: 4.4; }
  .s-letter-g__glyph { stroke-width: 10; }
  .s-letter-g__head { transform: scale(1.5); transform-box: fill-box; transform-origin: center; }

  .s-letter-g__balloon:not(.s-letter-g__balloon--inline) {
    width: 1.55rem;
    height: 1.55rem;
  }

  .s-letter-g__balloon::after {
    inset: -0.7rem;
  }

  .s-letter-g__note--dim span {
    display: none;
  }

  .s-letter-g__tb-brand .fg-logo {
    font-size: 1.45em;
  }
}

/* In between, the sheet is simply scrolled past: the legend sets in two columns. */
@media (min-width: 48em) {
  .s-letter-g__titleblock {
    max-width: 36rem;
  }

  .s-letter-g__keys {
    columns: 2;
    column-gap: var(--sp-7);
  }

  .s-letter-g__key {
    break-inside: avoid;
  }
}

/* The full sheet: drawing and legend side by side inside a zoned frame, pinned
   while the scroll draws it. */
@media (min-width: 75em) and (min-height: 43em) {
  .s-letter-g__sheet {
    /* The sheet's own size, worked out from the viewport, so the pinned sheet can
       be centred in the space under the nav. */
    --inner-w: calc(min(var(--wrap-wide), 100vw - 2 * var(--gutter)) - 4.8rem);
    --draw-w: min(
      calc(var(--inner-w) * 0.72),
      calc(var(--inner-w) - var(--sp-5) - 19rem),
      calc((100vh - var(--nav-h) - 7rem) * 1.625)
    );
    /* An estimate that holds while the drawing is the taller column. The module
       replaces it with the sheet's measured height (the key can be the taller one). */
    --sheet-h: calc(var(--draw-w) / 1.625 + 4.8rem);
    display: grid;
    grid-template-columns: var(--draw-w) minmax(0, 1fr);
    align-items: center;
    gap: 0 var(--sp-5);
    padding: 2.4rem;
    border: 2px solid var(--line);
    background:
      linear-gradient(var(--rule), var(--rule)) 0 1.7rem / 100% 1px no-repeat,
      linear-gradient(var(--rule), var(--rule)) 0 calc(100% - 1.7rem) / 100% 1px no-repeat,
      linear-gradient(var(--rule), var(--rule)) 1.7rem 0 / 1px 100% no-repeat,
      linear-gradient(var(--rule), var(--rule)) calc(100% - 1.7rem) 0 / 1px 100% no-repeat,
      rgba(8, 42, 84, 0.5);
  }

  /* The pinned track is reserved from the first layout wherever scripts will run and
     motion is wanted, so the section is exactly as tall before its module starts as
     after, and a jump to an anchor further down lands where it aimed. .is-live only
     pins the sheet and switches the drawing states on. */
  @media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
    html:not(.is-calm) .s-letter-g__track {
      height: 270vh;
    }
  }

  /* The same for engines that do not know the scripting media feature. */
  html.js:not(.is-calm) .s-letter-g__track {
    height: 270vh;
  }

  /* A module that failed will never pin the sheet: no empty track under it. */
  html .s-letter-g[data-module-state="failed"] .s-letter-g__track {
    height: auto;
  }

  .s-letter-g.is-live .s-letter-g__sheet {
    position: sticky;
    top: calc(var(--nav-h) + (100vh - var(--nav-h) - var(--sheet-h)) / 2);
  }

  .s-letter-g__zones {
    position: absolute;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    line-height: 1;
    color: var(--cyan);
  }

  .s-letter-g__zones--top,
  .s-letter-g__zones--bottom {
    left: 1.7rem;
    right: 1.7rem;
    height: 1.7rem;
  }

  .s-letter-g__zones--top { top: 0; }
  .s-letter-g__zones--bottom { bottom: 0; }

  .s-letter-g__zones--left,
  .s-letter-g__zones--right {
    top: 1.7rem;
    bottom: 1.7rem;
    width: 1.7rem;
    flex-direction: column;
  }

  .s-letter-g__zones--left { left: 0; }
  .s-letter-g__zones--right { right: 0; }

  .s-letter-g__drawing {
    grid-area: 1 / 1;
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .s-letter-g__titleblock {
    grid-area: 1 / 1;
    z-index: 3;
    align-self: end;
    width: 46%;
    max-width: none;
    margin: 0 0 1.9% 3.2%;
    font-size: clamp(0.56rem, 0.74vw, 0.75rem);
  }

  .s-letter-g__keys {
    columns: auto;
  }

  .s-letter-g__legend {
    grid-area: 1 / 2;
    margin-top: 0;
  }

  .s-letter-g__key {
    grid-template-columns: 2.3rem minmax(0, 1fr);
    min-height: 0;
    /* Tighter rows on short screens, so the key fits the pinned sheet at 43rem high. */
    padding-block: clamp(0.2rem, calc(0.2rem + (100vh - 43rem) * 0.024), 0.32rem);
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .s-letter-g__key-no {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.6875rem;
  }

  .s-letter-g__key-no::after {
    inset: -0.3rem -0.4rem;
  }
}

/* 3. Schedules: specification and the efficiency case ------------------------------ */

.s-letter-g__schedule {
  display: grid;
  gap: var(--sp-8);
  margin-top: var(--sp-9);
}

.s-letter-g__specs,
.s-letter-g__case {
  display: grid;
  align-content: start;
  gap: var(--sp-5);
}

.s-letter-g__specs .spec-table {
  counter-reset: letter-g-spec;
  font-size: 0.9375rem;
}

.s-letter-g__specs .spec-table caption {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
  color: var(--line);
}

.s-letter-g__specs .spec-table tr {
  counter-increment: letter-g-spec;
}

.s-letter-g__specs .spec-table th::before {
  content: "A" counter(letter-g-spec, decimal-leading-zero);
  margin-right: 1em;
  color: var(--cyan);
}

.s-letter-g__specs .spec-table tr:last-child td {
  color: var(--gold);
}

.s-letter-g__case-body {
  max-width: 34em;
  font-size: var(--fs-body);
  line-height: 1.55;
  text-wrap: pretty;
}

.s-letter-g__chart {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
}

.s-letter-g__bars {
  display: grid;
  gap: 0.55rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 12.5% 100%,
    var(--pit);
}

.s-letter-g__bar-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line);
}

.s-letter-g__bar-label:not(:first-child) {
  margin-top: 0.7rem;
}

.s-letter-g__bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(3rem, 7vw, 4.25rem);
  border-left: 2px solid var(--line);
}

.s-letter-g__bar span {
  display: grid;
  place-items: center;
  font-family: var(--font-logo);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  transform-origin: 0 50%;
  transition: transform 0.9s var(--ease-out) calc(var(--i) * 220ms + 150ms);
}

.s-letter-g__bar--ours span {
  color: var(--ink);
  background: var(--foil-soft);
  border: 2px solid var(--gold-hi);
}

.s-letter-g__bar--theirs span {
  color: var(--alarm);
  background: repeating-linear-gradient(-45deg, rgba(255, 107, 129, 0.34) 0 2px, transparent 2px 9px);
  border: 2px solid var(--alarm);
}

.s-letter-g__bar--theirs span + span {
  border-left: 0;
}

.s-letter-g.is-ready .s-letter-g__chart:not(.is-in) .s-letter-g__bar span {
  transform: scaleX(0);
}

.s-letter-g__axis {
  display: flex;
  justify-content: space-between;
  padding-top: 0.5em;
  border-top: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.s-letter-g__chart-caption {
  max-width: 34em;
  font-size: var(--fs-body);
  font-style: italic;
  line-height: 1.45;
  color: var(--fg);
}

@media (min-width: 62em) {
  .s-letter-g__schedule {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-8) var(--sp-9);
  }

  .s-letter-g__chart {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    align-items: end;
    gap: var(--sp-7);
  }

  .s-letter-g__bar {
    height: 5rem;
  }
}

/* 4. Usage plates ---------------------------------------------------------------- */

.s-letter-g__usage,
.s-letter-g__removal {
  margin-top: var(--sp-9);
}

.s-letter-g__plates {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.s-letter-g__plate {
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(8, 42, 84, 0.6);
}

.s-letter-g__plate-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  container-type: inline-size;
  color: var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(238, 245, 255, 0.08) 1px, transparent 1px) 50% 50% / 1rem 1rem,
    linear-gradient(90deg, rgba(238, 245, 255, 0.08) 1px, transparent 1px) 50% 50% / 1rem 1rem,
    var(--pit);
}

.s-letter-g__plate-ref {
  position: absolute;
  left: 0.9rem;
  top: 0.8rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.s-letter-g__mark {
  font-size: 12.4cqw;
}

.s-letter-g__plate--ok .fg-logo__g {
  color: var(--gold);
}

.s-letter-g__plate--void .fg-logo__g,
.s-letter-g__plate--front .fg-logo__g {
  visibility: hidden;
}

.s-letter-g__void {
  position: absolute;
  left: 4.52em;
  top: 0;
  width: 0.77em;
  height: 0.86em;
  overflow: visible;
}

.s-letter-g__void text {
  font-family: var(--font-logo);
  font-size: 200px;
  font-weight: 800;
  stroke-width: 5;
  stroke-dasharray: 3 13;
}

.s-letter-g__tag {
  position: absolute;
  left: 26.4em;
  top: -1.5em;
  padding: 0.5em 0.7em 0.45em 1.5em;
  font-family: var(--font-mono);
  font-size: 0.2em;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  clip-path: polygon(0.7em 0, 100% 0, 100% 100%, 0.7em 100%, 0 50%);
  transform: rotate(-9deg);
  transform-origin: 0 100%;
}

.s-letter-g__tag::before {
  content: "";
  position: absolute;
  left: 0.7em;
  top: 50%;
  width: 0.36em;
  height: 0.36em;
  margin-top: -0.18em;
  border-radius: 50%;
  background: var(--pit);
}

/* The timid one: a size down, and it sags. */
.s-letter-g__plate--lower .fg-logo__g {
  scale: 0.9;
  translate: 0 0.04em;
}

.s-letter-g__nej {
  font-family: var(--font-logo);
  font-size: 25cqw;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}

/* Struck out: two bars along the diagonals of the 4:3 plate. */
.s-letter-g__cross {
  position: absolute;
  inset: 0;
  opacity: 0.92;
  pointer-events: none;
  -webkit-mask: var(--rough) center / 11rem 11rem;
  mask: var(--rough) center / 11rem 11rem;
}

.s-letter-g__cross::before,
.s-letter-g__cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112%;
  height: 0.34rem;
  margin: -0.17rem 0 0 -56%;
  background: var(--alarm);
  border-radius: 0.2rem;
  transform: rotate(36.87deg);
  transition: transform 0.42s var(--ease-slam) 0.5s;
}

.s-letter-g__cross::after {
  transform: rotate(-36.87deg);
  transition-delay: 0.72s;
}

.s-letter-g.is-ready .s-letter-g__plate:not(.is-in) .s-letter-g__cross::before {
  transform: rotate(36.87deg) scaleX(0);
}

.s-letter-g.is-ready .s-letter-g__plate:not(.is-in) .s-letter-g__cross::after {
  transform: rotate(-36.87deg) scaleX(0);
}

.s-letter-g__tick {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 17%;
  fill: none;
  stroke: var(--ok);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-letter-g__tick path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--ease-out) 0.55s;
}

.s-letter-g.is-ready .s-letter-g__plate:not(.is-in) .s-letter-g__tick path {
  stroke-dashoffset: 1;
}

.s-letter-g__plate-caption {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  font-size: 1.0625rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.s-letter-g__verdict {
  display: block;
  margin-bottom: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--alarm);
}

.s-letter-g__plate--ok .s-letter-g__verdict {
  color: var(--ok);
}

@media (min-width: 40em) {
  .s-letter-g__plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64em) {
  .s-letter-g__plates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 5. Do not remove the G --------------------------------------------------------- */

.s-letter-g__rig {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.s-letter-g__specimen {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 2px solid var(--line);
  background:
    linear-gradient(rgba(238, 245, 255, 0.08) 1px, transparent 1px) 0 0 / 1.5rem 1.5rem,
    linear-gradient(90deg, rgba(238, 245, 255, 0.08) 1px, transparent 1px) 0 0 / 1.5rem 1.5rem,
    var(--pit);
}

.s-letter-g__specimen-ref {
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.s-letter-g__specimen-svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

/* A hairline of the ground colour keeps letters apart when they land on each other. */
.s-letter-g__glyph--solid {
  fill: var(--line);
  stroke: var(--pit);
  stroke-width: 5;
}

.s-letter-g__glyph--solid.s-letter-g__glyph--g {
  fill: var(--gold);
}

.s-letter-g__ghost {
  opacity: 0;
}

.s-letter-g__specimen.is-down .s-letter-g__ghost {
  opacity: 0.85;
}

.s-letter-g__specimen.is-down .s-letter-g__ln--guide {
  stroke-opacity: 0.2;
}

.s-letter-g__alarm {
  position: absolute;
  left: 6%;
  top: max(15%, 2.5rem);
  width: 64%;
  font-family: var(--font-logo);
  font-size: clamp(1.25rem, 5.6cqw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--alarm);
}

.s-letter-g__alarm span {
  display: block;
}

.s-letter-g__alarm:empty {
  display: none;
}

.s-letter-g.is-live .s-letter-g__alarm {
  animation: fg-stamp-slam 0.5s var(--ease-slam) both;
  transform-origin: 0 50%;
}

.s-letter-g__specimen {
  container-type: inline-size;
}

/* The control panel */
.s-letter-g__panel {
  display: grid;
  align-content: start;
  gap: var(--sp-5);
}

.s-letter-g__panel-plate {
  position: relative;
  display: grid;
  gap: var(--sp-5);
  padding: 2.4rem 1.5rem 1.5rem;
  color: var(--line);
  border: 2px solid #5d7ea8;
  border-radius: var(--r-2);
  background:
    radial-gradient(circle, #9fb6d4 0 0.2rem, #0a1626 0.22rem 0.32rem, transparent 0.34rem) 0.35rem calc(100% - 0.35rem) / 1rem 1rem no-repeat,
    radial-gradient(circle, #9fb6d4 0 0.2rem, #0a1626 0.22rem 0.32rem, transparent 0.34rem) calc(100% - 0.35rem) calc(100% - 0.35rem) / 1rem 1rem no-repeat,
    linear-gradient(170deg, #263d5e 0%, var(--steel) 45%, #101d31 100%);
  box-shadow: var(--shadow-inset), var(--shadow-lift);
}

.s-letter-g__panel-plate::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1rem;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 0.8rem, var(--ink) 0.8rem 1.6rem);
  border-bottom: 2px solid var(--ink);
}

.s-letter-g__lamp {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  background: #081220;
  border: 1px solid #3b5273;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.s-letter-g__bulb {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e3ffe0 0, #46e07a 40%, #0f7a36 100%);
  box-shadow: 0 0 0.9rem rgba(70, 224, 122, 0.75), inset 0 -2px 3px rgba(0, 0, 0, 0.4);
}

.s-letter-g__lamp[data-state="removed"] {
  color: var(--alarm);
}

.s-letter-g__lamp[data-state="removed"] .s-letter-g__bulb {
  background: radial-gradient(circle at 35% 30%, #ffe1e5 0, #ff4a63 40%, #8a0d22 100%);
  box-shadow: 0 0 0.9rem rgba(255, 74, 99, 0.85), inset 0 -2px 3px rgba(0, 0, 0, 0.4);
  animation: fg-blink 0.7s steps(2, jump-none) infinite reverse;
}

.s-letter-g__lever {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 0.9rem 1rem;
  text-align: left;
  color: var(--gold);
  background: #0c1829;
  border: 0.5rem solid var(--gold);
  border-image: repeating-linear-gradient(-45deg, var(--gold) 0 0.7rem, #0a0714 0.7rem 1.4rem) 8;
  cursor: pointer;
}

.s-letter-g__lever:disabled {
  cursor: default;
}

.s-letter-g__lever-slot {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  width: 4.25rem;
  height: 9.75rem;
  padding: 0.45rem 0;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, transparent calc(50% - 0.3rem), #000 calc(50% - 0.3rem) calc(50% + 0.3rem), transparent calc(50% + 0.3rem)) 0 50% / 100% 62% no-repeat, #1c2b42;
  box-shadow: inset 0 0 0 2px #6b85a8, inset 0 0.3rem 0.6rem rgba(0, 0, 0, 0.6);
}

.s-letter-g__lever-mark {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a9bedb;
}

.s-letter-g__lever-mark:last-child {
  grid-row: 3;
}

.s-letter-g__lever-arm {
  position: absolute;
  left: 50%;
  top: 1.55rem;
  width: 3rem;
  height: 3rem;
  margin-left: -1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffb3be 0, var(--velvet-hi) 42%, #5c0a1a 100%);
  box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.65), inset 0 -0.2rem 0.3rem rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease-slam);
}

.s-letter-g__lever:not(:disabled):hover .s-letter-g__lever-arm {
  transform: translateY(0.35rem);
}

.s-letter-g__lever[aria-pressed="true"] .s-letter-g__lever-arm,
.s-letter-g__lever[aria-pressed="true"]:hover .s-letter-g__lever-arm {
  transform: translateY(3.65rem);
}

.s-letter-g__lever-label {
  font-family: var(--font-logo);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-wrap: balance;
}

.s-letter-g__warning {
  position: relative;
  min-height: 3.6rem;
  padding: 0.8rem 0.9rem 0.8rem 4.1rem;
  font-family: var(--font-logo);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--gold-hi);
  border: 2px solid var(--gold);
}

/* A warning triangle with the only thing worth warning about inside it. */
.s-letter-g__warning::before {
  content: "G";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  display: grid;
  place-items: end center;
  width: 2.6rem;
  height: 2.3rem;
  margin-top: -1.15rem;
  padding-bottom: 0.18rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.s-letter-g__log {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
}

.s-letter-g__counter {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--line);
}

.s-letter-g__count {
  display: inline-block;
  min-width: 2.2em;
  margin-left: 0.4em;
  padding: 0.15em 0.5em;
  font-size: 1.15em;
  font-weight: 500;
  text-align: center;
  color: var(--gold);
  background: var(--pit);
  border: 1px solid var(--gold);
}

.s-letter-g__msg {
  max-width: 30em;
  font-size: var(--fs-body);
  font-style: italic;
  line-height: 1.45;
  text-wrap: pretty;
}

.s-letter-g__msg:empty {
  display: none;
}

@media (min-width: 64em) {
  .s-letter-g__rig {
    grid-template-columns: minmax(0, 1.85fr) minmax(19rem, 1fr);
    align-items: start;
  }
}
/* The Company: a prestige documentary about a house that does not exist yet.
   Mission and values, the figures, the history (a pinned exhibition wall on
   desktop, a vertical timeline elsewhere), laurels, testimonials, governance and
   the world headquarters. */

/* Photo crops ------------------------------------------------------------------
   Both figures frame assets/flemming-rum.jpg (788 x 1600, portrait) with CSS only.
   Neither crop may show the founder: he appears in the shrine and nowhere else.

     size  = 100% / the fraction of the image width that stays visible
     pos-x = left edge / (1 - visible width)
     pos-y = top edge / (1 - visible height)

   Fig. 1, the table: the full width, the bottom 27.7 % (from 72.3 % down).
   Fig. 2, the door: 0 to 69 % across, 1.5 % to 20.6 % down. His hair starts at
   about 24 % down, and the handle (61 % across, 40 % down) sits beside his face,
   so the crop stops at the second row of panes. */
.s-company {
  --table-ratio: 16 / 9;
  --table-size: 100% auto;
  --table-pos: 50% 100%;
  --door-ratio: 16 / 9;
  --door-size: 145% auto;
  --door-pos: 0% 1.9%;

  --plate-w: clamp(24rem, 33vw, 31rem);
  --plate-gap: clamp(4.5rem, 6vw, 6.5rem);
}

/* I. Header, mission, values -------------------------------------------------- */

.s-company__sky {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  height: min(120vh, 62rem);
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent);
  mask: linear-gradient(180deg, #000 55%, transparent);
  pointer-events: none;
}

.s-company__sky .sunburst {
  --sunburst-size: min(170vmin, 100rem);
  top: 34%;
}

.s-company__spark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  background: var(--gold-hi);
  clip-path: var(--star);
  opacity: 0.85;
  animation: fg-flicker 3.4s linear var(--d) infinite;
  animation-play-state: paused;
}

.s-company__sky.is-live .s-company__spark {
  animation-play-state: running;
}

.s-company__head {
  max-width: none;
}

.s-company__title {
  display: grid;
  gap: 0.1em;
}

.s-company__title-big {
  font-size: clamp(3.1rem, 0.6rem + 10.4vw, 9.4rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.s-company__title-rest {
  font-family: var(--font-text);
  font-size: clamp(1.5rem, 0.9rem + 2.7vw, 3.6rem);
  font-style: italic;
  font-weight: 380;
  letter-spacing: 0;
  line-height: 1.05;
  -webkit-text-fill-color: var(--cream);
}

.s-company__mission {
  max-width: 25em;
  margin-block: var(--sp-7) var(--sp-8);
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.7rem);
  font-style: italic;
  font-weight: 360;
  line-height: 1.22;
  text-wrap: balance;
}

.s-company__mission-turn {
  color: var(--gold);
  white-space: nowrap;
}

.s-company__values {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

@media (min-width: 36em) {
  .s-company__values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64em) {
  .s-company__values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* A small brass plaque, engraved, screwed to the wall at each corner. */
.s-company__value {
  --screw: radial-gradient(circle closest-side, #3d2705 0 34%, #f6d77a 38% 62%, #6b440c 70% 100%);
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.55rem;
  padding: 1.9rem 1.4rem 1.7rem;
  text-align: center;
  color: var(--paper-ink);
  background:
    var(--screw) 0.55rem 0.55rem / 0.6rem 0.6rem no-repeat,
    var(--screw) calc(100% - 0.55rem) 0.55rem / 0.6rem 0.6rem no-repeat,
    var(--screw) 0.55rem calc(100% - 0.55rem) / 0.6rem 0.6rem no-repeat,
    var(--screw) calc(100% - 0.55rem) calc(100% - 0.55rem) / 0.6rem 0.6rem no-repeat,
    var(--grain-dark),
    linear-gradient(160deg, #f6d77a 0%, #d9a437 34%, #f1cf6b 58%, #b98522 100%);
  border-radius: var(--r-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 0 rgba(90, 55, 5, 0.6), 0 5px 0 #5c3d08, var(--shadow-lift);
}

.s-company__value::before {
  content: "";
  position: absolute;
  inset: 0.34rem;
  border: 1px solid rgba(60, 35, 0, 0.55);
  border-radius: 3px;
  pointer-events: none;
}

.s-company__value-icon {
  font-size: 2rem;
  color: #4a2f04;
}

.s-company__value-name {
  font-family: var(--font-logo);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  margin-right: calc(var(--tracking-wide) * -1);
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 246, 207, 0.7);
}

.s-company__value-text {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.32;
  text-wrap: balance;
}

/* Sub-headings shared by the six departments ----------------------------------- */

.s-company__block {
  margin-top: clamp(5rem, 11vw, 9rem);
}

.s-company__sub {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.s-company__sub::after {
  content: "";
  flex: 1;
  min-width: 2rem;
  height: 5px;
  border-block: 1px solid var(--rule);
}

.s-company__sub-no {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 2.4rem;
  height: 2.4rem;
  padding-inline: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--rule);
}

.s-company__sub-title {
  font-size: var(--fs-h3);
  line-height: 1;
}

/* II. The numbers ---------------------------------------------------------------- */

.s-company__band.panel {
  margin-top: clamp(5rem, 11vw, 9rem);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  border-inline: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: inset 0 9px 0 -8px rgba(255, 243, 196, 0.5), inset 0 -9px 0 -8px rgba(255, 243, 196, 0.5), var(--shadow-deep);
}

.s-company__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.75rem, 6vw, 5rem) var(--sp-5);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

@media (min-width: 52em) {
  .s-company__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.s-company__stat {
  position: relative;
  isolation: isolate;
  align-content: start;
}

.s-company__stat .stat__value {
  font-size: clamp(3.4rem, 1.2rem + 9vw, 8.6rem);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.s-company__stat .stat__label {
  max-width: 15em;
  text-wrap: balance;
}

/* The zero: rays behind it, a rattle while the drum rolls, a slam when it lands. */
.s-company__zero-rays {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: -1;
  width: clamp(11rem, 26vw, 22rem);
  aspect-ratio: 1;
  margin: clamp(-6.5rem, -7vw, -3.2rem) 0 0 clamp(-11rem, -13vw, -5.5rem);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(242, 193, 78, 0.32) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 100%);
  mask: radial-gradient(closest-side, #000 20%, transparent 100%);
  animation: fg-spin 40s linear infinite;
  animation-play-state: paused;
}

.s-company__band.is-live .s-company__zero-rays {
  animation-play-state: running;
}

.s-company__stat--zero .stat__value {
  color: var(--gold-hi);
}

.s-company__stat--zero.is-rolling .stat__value {
  animation: s-company-rattle 0.11s linear infinite;
}

.s-company__stat--zero.is-landed .stat__value {
  animation: fg-stamp-slam 0.62s var(--ease-slam) both;
}

@keyframes s-company-rattle {
  0% { transform: translate(-0.02em, 0.01em) rotate(-1.2deg); }
  50% { transform: translate(0.02em, -0.015em) rotate(1.2deg); }
  100% { transform: translate(-0.02em, 0.01em) rotate(-1.2deg); }
}

/* III. The timeline: shared parts -------------------------------------------- */

.s-company__journey {
  margin-top: clamp(5rem, 11vw, 9rem);
}

.s-company__stage {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.s-company__stage-head {
  display: grid;
  gap: var(--sp-3);
}

.s-company__stage-hint {
  color: var(--muted);
}

.s-company__date {
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.08em;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 19vw, 7rem);
  font-variant-numeric: lining-nums;
  line-height: 0.86;
  letter-spacing: -0.015em;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.03em 0 rgba(0, 0, 0, 0.6));
}

.s-company__date--mid { font-size: clamp(2.7rem, 11.5vw, 4.4rem); line-height: 0.95; }
.s-company__date--long { font-size: clamp(2rem, 8.4vw, 3rem); line-height: 1; text-wrap: balance; }

.s-company__plate.panel {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
  margin-top: var(--sp-4);
  padding: 1.1rem 1.25rem 1.4rem;
}

.s-company__plate.panel--paper {
  outline-offset: -7px;
  padding: 1.25rem 1.4rem 1.5rem;
}

.s-company__art {
  width: 100%;
  height: clamp(6.5rem, 17vh, 9rem);
  margin-bottom: 0.3rem;
  overflow: visible;
  color: var(--fg);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  background:
    repeating-linear-gradient(-45deg, var(--rule) 0 1px, transparent 1px 7px) center / 100% 100%;
  border: 1px solid var(--rule);
  -webkit-mask: radial-gradient(120% 120% at 50% 50%, #000 62%, rgba(0, 0, 0, 0.65) 100%);
  mask: radial-gradient(120% 120% at 50% 50%, #000 62%, rgba(0, 0, 0, 0.65) 100%);
}

.s-company__art use { stroke: none; }
.s-company__art-gold { fill: var(--accent); stroke: none; }
.s-company__art-ink { fill: currentColor; stroke: none; }
.s-company__art-ground { fill: var(--bg); stroke: none; }
.s-company__art-stroke-gold { stroke: var(--accent); stroke-width: 4.5; }

.s-company__art-glyph {
  font-family: var(--font-display);
  fill: currentColor;
  stroke: none;
}

.s-company__art-ghost {
  font-family: var(--font-display);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-dasharray: 2 3.2;
}

.s-company__art-word {
  font-family: var(--font-logo);
  font-weight: 800;
  fill: var(--bg);
  stroke: none;
}

.s-company__art-mono {
  font-family: var(--font-mono);
  fill: currentColor;
  stroke: none;
}

.s-company__kicker {
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.s-company__plate-title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem);
  line-height: 1.02;
}

.s-company__plate-body {
  font-size: 1.0625rem;
  line-height: 1.46;
}

/* Forecasts: beyond the present day the plates are not yet printed. */
.s-company__entry--future .s-company__plate.panel--night {
  border-style: dashed;
}

/* 2076. The landing of the whole history: gold, and it glows. */
.s-company__entry--fine {
  position: relative;
  isolation: isolate;
}

.s-company__halo {
  position: absolute;
  inset: -22% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(242, 193, 78, 0.5), rgba(242, 193, 78, 0.14) 55%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
}

.s-company__entry--fine.is-arrived .s-company__halo {
  animation: s-company-halo 2.8s var(--ease-in-out) infinite alternate;
}

@keyframes s-company-halo {
  from { opacity: 0.55; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1.06); }
}

.s-company__entry--fine .s-company__date {
  background-image: var(--foil-soft);
  filter: drop-shadow(0 0 0.22em rgba(242, 193, 78, 0.6));
}

.s-company__entry--fine .s-company__plate.panel {
  --accent: var(--velvet);
  --rule: rgba(60, 35, 0, 0.45);
  --bg: #f1cf6b;
  background-image: var(--grain-dark), linear-gradient(150deg, #fff3c4 0%, #f2c14e 30%, #fff6cf 52%, #d9a437 78%, #f6d77a 100%);
  border: 2px solid #fff6cf;
  outline: 1px solid rgba(60, 35, 0, 0.6);
  outline-offset: -8px;
  box-shadow: 0 0 0 1px #6b440c, 0 0 4.5rem rgba(242, 193, 78, 0.5), var(--shadow-deep);
}

.s-company__entry--fine .s-company__plate-title {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
}

/* "You are here": the present day. */
.s-company__here {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 2px dashed var(--gold);
}

.s-company__here-pin {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--velvet-hi);
  border: 2px solid var(--gold-hi);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 4px rgba(194, 24, 58, 0.25);
}

.s-company__here-text {
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.3;
  color: var(--muted);
}

.s-company__here-text strong {
  display: block;
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-style: normal;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold);
}

.s-company__ruler {
  display: none;
}

/* III a. The vertical timeline (phones, calm, no JavaScript) -------------------- */

.s-company .s-company__track {
  position: relative;
  display: grid;
  gap: clamp(3rem, 9vw, 4.5rem);
  margin-top: var(--sp-7);
  padding-left: 2rem;
}

/* The line draws itself down the page: the module scales it, 0 to 1. It is an
   element of its own (the last item of the track, hidden from assistive tech) so
   that a scroll frame restyles the line and nothing else. */
.s-company__line {
  position: absolute;
  left: 0.35rem;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 12%, var(--gold-deep));
  transform-origin: 50% 0;
}

.s-company__entry {
  position: relative;
  min-width: 0;
}

.s-company__entry::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 0.55rem;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--gold);
  clip-path: var(--star);
}

@media (min-width: 60em) {
  .s-company .s-company__track {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 7rem;
    row-gap: 0;
    padding-left: 0;
  }

  .s-company__line {
    left: calc(50% - 1px);
  }

  .s-company__entry {
    grid-column: 1;
    grid-row: var(--n) / span 2;
    padding-bottom: 3.5rem;
  }

  .s-company__entry:nth-child(even) {
    grid-column: 2;
  }

  .s-company__entry::before {
    left: auto;
    right: calc(-3.5rem - 0.575rem);
  }

  .s-company__entry:nth-child(even)::before {
    right: auto;
    left: calc(-3.5rem - 0.575rem);
  }
}

/* III b. The pinned exhibition wall (desktop, with the engine, not calm) -------
   The stage sticks for the height of the journey while the module slides the wall
   sideways. Two nested transforms do it without measuring anything: the wall moves
   right by its own width times progress, the track moves left by its own width
   times progress, and the difference is exactly the overflow. */

@media (min-width: 64em) and (min-height: 40em) {
  .s-company:is(.js:not(.is-calm) *) .s-company__journey {
    height: 560vh;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__stage {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: auto;
    height: 100vh;
    margin: 0;
    padding-top: calc(var(--nav-h) + clamp(0.75rem, 2.4vh, 1.75rem));
    container-type: inline-size;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__stage-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-inline: var(--gutter);
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__wall {
    align-self: center;
    will-change: transform;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__track {
    display: flex;
    align-items: flex-start;
    gap: var(--plate-gap);
    width: max-content;
    margin: 0;
    padding: 0 calc(50cqw - var(--plate-w) / 2);
    will-change: transform;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__line {
    display: none;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__entry::before {
    content: none;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__entry {
    --date-h: clamp(4.2rem, 13.5vh, 7.6rem);
    flex: none;
    width: var(--plate-w);
    padding: 0;
  }

  /* The wall opens on the Big Bang itself: rays filling the empty wall to the
     left of the first plate. */
  .s-company:is(.js:not(.is-calm) *) .s-company__entry:first-child::before {
    content: "";
    left: calc(var(--plate-w) / 2 - 34rem);
    top: 50%;
    z-index: -1;
    width: 68rem;
    height: 68rem;
    margin-top: -34rem;
    background: repeating-conic-gradient(from 0deg, rgba(242, 193, 78, 0.16) 0 3deg, transparent 3deg 11.25deg);
    clip-path: none;
    border-radius: 50%;
    -webkit-mask: radial-gradient(closest-side, transparent 28%, #000 46%, transparent 100%);
    mask: radial-gradient(closest-side, transparent 28%, #000 46%, transparent 100%);
    pointer-events: none;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__date {
    display: flex;
    align-items: flex-end;
    width: auto;
    height: var(--date-h);
    font-size: calc(var(--date-h) * 1.12);
    white-space: nowrap;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__date--mid {
    font-size: calc(var(--date-h) * 0.66);
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__date--long {
    font-size: calc(var(--date-h) * 0.43);
    white-space: normal;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__plate.panel {
    margin-top: clamp(0.6rem, 1.6vh, 1.1rem);
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__art {
    height: clamp(5rem, 15.5vh, 9rem);
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__here {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--plate-gap) / -2 - 1px);
    display: block;
    width: 0;
    margin: 0;
    padding: 0;
    border-top: 0;
    border-left: 2px dashed var(--gold);
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__here-pin {
    position: absolute;
    left: -0.8rem;
    top: -0.5rem;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__here-text {
    position: absolute;
    left: 0.5rem;
    top: 1.6rem;
    writing-mode: vertical-rl;
    white-space: nowrap;
    font-size: 0.8125rem;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__here-text strong {
    display: inline;
    margin-bottom: 0.9em;
  }

  /* The time ruler and the pony that walks it. */
  .s-company:is(.js:not(.is-calm) *) .s-company__ruler {
    display: block;
    padding: clamp(4.4rem, 12vh, 6.2rem) clamp(10rem, 13vw, 12rem) clamp(0.5rem, 1.6vh, 1.1rem) clamp(3.5rem, 6vw, 6rem);
  }
}

/* Laptop-height viewports: the plate lies on its side (drawing beside the text)
   so the whole wall still fits between the nav and the ruler. */
@media (min-width: 64em) and (min-height: 40em) and (max-height: 53.99em) {
  .s-company:is(.js:not(.is-calm) *) {
    --plate-w: clamp(31rem, 46vw, 39rem);
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__entry {
    --date-h: clamp(3.4rem, 11.5vh, 6rem);
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__plate.panel {
    grid-template-columns: clamp(7.5rem, 24vh, 10.5rem) minmax(0, 1fr);
    column-gap: 1.25rem;
    row-gap: 0.45rem;
    align-items: start;
    padding-block: 1.1rem 1.2rem;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__art {
    grid-row: 1 / span 3;
    height: clamp(6.5rem, 25vh, 11rem);
    margin: 0;
  }

  .s-company:is(.js:not(.is-calm) *) .s-company__plate-body {
    font-size: 1rem;
    line-height: 1.42;
  }
}

.s-company__rail {
  position: relative;
  height: 3.1rem;
  border-top: 2px solid var(--gold);
  background: repeating-linear-gradient(90deg, rgba(242, 193, 78, 0.5) 0 1px, transparent 1px 1.6667%) left top / 100% 0.4rem no-repeat;
}

.s-company__ticks li {
  position: absolute;
  left: calc(var(--t) / 12 * 100%);
  top: 0;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  transform: translateX(-50%);
  transition: color var(--dur-2);
}

.s-company__ticks li::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  width: 2px;
  height: 0.75rem;
  background: var(--gold);
}

.s-company__ticks li.is-current {
  color: var(--gold-hi);
}

.s-company__ticks li.is-current::before {
  height: 0.9rem;
  width: 4px;
  left: calc(50% - 2px);
  background: var(--gold-hi);
}

/* Below 90em the rail is too short for the one long label to fit between its
   neighbours, so it steps down a line on a longer tick. */
@media (max-width: 89.99em) {
  .s-company__ticks li.s-company__tick--long {
    padding-top: 2rem;
  }

  .s-company__ticks li.s-company__tick--long::before {
    height: 1.75rem;
  }
}

/* The present day sits between the domain going live and 2031. */
.s-company__now {
  position: absolute;
  left: calc(8.5 / 12 * 100%);
  top: 2rem;
  padding: 0.25em 0.6em 0.2em;
  font-family: var(--font-logo);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  background: var(--velvet);
  border: 1px solid var(--gold);
  transform: translateX(-50%);
}

.s-company__now::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  bottom: 100%;
  height: 6.6rem;
  border-left: 2px dashed rgba(242, 193, 78, 0.7);
}

.s-company__lane {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0;
  will-change: transform;
}

.s-company__walker {
  position: absolute;
  left: -2.9rem;
  bottom: -0.3rem;
  width: 5.8rem;
  color: var(--cream);
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.5));
}

.s-company__pony {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: currentColor;
  transition: transform var(--dur-2) var(--ease-out);
}

.s-company__walker[data-dir="back"] .s-company__pony {
  transform: scaleX(-1);
}

.s-company__limb {
  fill: none;
  stroke: currentColor;
  stroke-width: 7.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Legs swing from the hip only while the visitor scrolls. */
.s-company__leg,
.s-company__pony-bob {
  animation: s-company-trot 0.34s var(--ease-in-out) infinite alternate;
  animation-play-state: paused;
}

.s-company__leg--a { transform-origin: 88px 58px; }
.s-company__leg--b { transform-origin: 82.5px 62px; animation-delay: -0.34s; }
.s-company__leg--c { transform-origin: 41.5px 58px; animation-delay: -0.34s; }
.s-company__leg--d { transform-origin: 50px 61px; }

.s-company__pony-bob {
  animation-name: s-company-bob;
  animation-duration: 0.17s;
}

.s-company__walker.is-trotting .s-company__leg,
.s-company__walker.is-trotting .s-company__pony-bob {
  animation-play-state: running;
}

@keyframes s-company-trot {
  from { transform: rotate(-13deg); }
  to { transform: rotate(13deg); }
}

@keyframes s-company-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-2.5px); }
}

/* What the pony wears in each era. */
.s-company__kit {
  opacity: 0;
  color: var(--gold);
  fill: currentColor;
  transition: opacity var(--dur-2);
}

.s-company__kit-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}

.s-company__kit-glass {
  fill: rgba(255, 243, 196, 0.16);
  stroke: var(--gold-hi);
  stroke-width: 2;
}

.s-company__walker[data-kit="laurel"] [data-kit-part="laurel"],
.s-company__walker[data-kit="crown"] [data-kit-part="crown"],
.s-company__walker[data-kit="hat"] [data-kit-part="hat"],
.s-company__walker[data-kit="keg"] [data-kit-part="keg"],
.s-company__walker[data-kit="rosette"] [data-kit-part="rosette"],
.s-company__walker[data-kit="helmet"] [data-kit-part="helmet"],
.s-company__walker[data-kit="gold"] [data-kit-part="gold"] {
  opacity: 1;
}

.s-company__walker[data-kit="hat"] [data-kit-part="hat"] {
  color: var(--cream);
}

.s-company__walker[data-kit="rosette"] [data-kit-part="rosette"] {
  color: var(--velvet-hi);
}

.s-company__walker[data-kit="gold"] {
  color: var(--gold);
  filter: drop-shadow(0 0 0.6rem rgba(242, 193, 78, 0.75));
}

.s-company__walker[data-kit="gold"] [data-kit-part="gold"] {
  color: var(--gold-hi);
}

.s-company__ruler-note {
  margin-top: 0.2rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* IV. The awards ------------------------------------------------------------------ */

.s-company__awards {
  display: grid;
  justify-items: center;
  gap: var(--sp-6) var(--sp-4);
  margin-top: var(--sp-8);
}

@media (min-width: 40em) {
  .s-company__awards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-5); }
}

@media (min-width: 72em) {
  .s-company__awards { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--sp-6); }
}

.s-company__award {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.7rem;
  width: 100%;
  padding: 1.25rem 0.5rem 1.1rem;
  overflow: hidden;
  text-align: center;
  border-radius: var(--r-2);
}

.s-company__award .laurel {
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
}

.s-company__award .laurel__branch {
  width: 3em;
  height: 6.3em;
}

.s-company__award .laurel__body {
  max-width: 12.5em;
  min-height: 6.3em;
  align-content: center;
}

.s-company__award .laurel__title {
  font-size: 1.24em;
}

.s-company__award .laurel__title::after {
  content: "*";
  margin-left: 0.06em;
  color: var(--accent);
}

/* Four across, a cell is narrower than the full-size wreath with the longest word
   of a title ("Understatement") between its branches until about 1425 px. Each
   laurel is therefore sized from its own cell, branches and words together: two
   branches and their gaps take 6.7em and that word 10.3em, so 5.8cqi (17.2em
   across the cell) keeps every line clear of the leaves. */
@media (min-width: 72em) {
  .s-company__award {
    container-type: inline-size;
    padding-inline: 0;
  }

  .s-company__award .laurel {
    font-size: min(1.1rem, 5.8cqi);
  }
}

/* The shimmer crosses each plaque once as it arrives. The plaque has no card to
   cut the light against, so the band slides inside a box that stays put and fades
   out in every direction from the middle of the wreath. */
.s-company__award::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 45.3%, rgba(255, 246, 207, 0.4) 50%, transparent 54.7%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask-image: radial-gradient(closest-side at 50% 36%, #000 60%, transparent);
  mask-image: radial-gradient(closest-side at 50% 36%, #000 60%, transparent);
  pointer-events: none;
}

.s-company__award.is-in::after {
  animation: s-company-sheen 2.2s var(--ease-in-out) calc(var(--i, 0) * var(--stagger) + 0.35s) both;
}

@keyframes s-company-sheen {
  from { background-position: 100% 0; }
  60%, to { background-position: 0% 0; }
}

.s-company__award-fine {
  max-width: 19em;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--gold);
  border-top: 1px dashed var(--rule);
}

.s-company__award-fine::before {
  content: "*";
  margin-right: 0.2em;
}

/* Fine print is shown outright on touch screens, on hover and focus elsewhere. */
@media (hover: hover) {
  .s-company__award-fine {
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
  }

  .s-company__award:hover .s-company__award-fine,
  .s-company__award:focus-visible .s-company__award-fine {
    opacity: 1;
    transform: none;
  }
}

/* V. The testimonials --------------------------------------------------------------- */

.s-company__voices {
  margin-top: clamp(5rem, 11vw, 9rem);
}

.s-company__rows {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}

/* Resting layout (calm, no JavaScript): a wrapped wall of cards. */
.s-company__row-set {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: var(--sp-5);
  padding-inline: var(--gutter);
}

.s-company__card {
  flex: 0 1 23rem;
  min-width: 0;
  margin: 0;
}

.s-company__card.panel {
  display: grid;
  align-content: center;
  padding: 1.6rem 1.75rem 1.5rem;
}

.s-company__card .quote blockquote {
  font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem);
}

/* The founder's card: bulbs, velvet, laurels, foil. Nothing is too good for "No." */
.s-company__card--founder.marquee-frame {
  --face:
    radial-gradient(90% 80% at 50% 42%, rgba(255, 220, 140, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 26%, transparent 70%, rgba(0, 0, 0, 0.5)),
    var(--pleats),
    linear-gradient(180deg, var(--velvet), #6a0c1f);
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.5rem;
  padding: calc(var(--pitch) + 1.1rem) calc(var(--pitch) + 0.6rem) calc(var(--pitch) + 1rem);
  text-align: center;
}

.s-company__card--founder blockquote p {
  padding: 0.04em 0.08em 0.1em;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12.5vw, 4.5rem);
  line-height: 0.9;
  white-space: nowrap;
  background: var(--foil-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.04em 0 rgba(0, 0, 0, 0.6));
}

.s-company__card-laurel {
  width: clamp(1.9rem, 8vw, 2.5rem);
  height: clamp(4rem, 17vw, 5.2rem);
  color: var(--gold);
}

.s-company__card-laurel--right {
  transform: scaleX(-1);
}

.s-company__card--founder figcaption {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.15rem;
  padding-top: 0.7rem;
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #f3d9cf;
  border-top: 1px solid rgba(242, 193, 78, 0.55);
}

.s-company__card--founder cite {
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  margin-right: calc(var(--tracking-wide) * -1);
  color: var(--gold-hi);
}

/* Drifting rows: one line each, moving in opposite directions. The module clones
   each set once, so a shift of exactly half the track is seamless. */
.s-company:is(.js:not(.is-calm) *) .s-company__row {
  padding-block: 1.1rem 1.6rem;
  overflow: clip;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.s-company:is(.js:not(.is-calm) *) .s-company__row-track {
  display: flex;
  width: max-content;
}

.s-company:is(.js:not(.is-calm) *) .s-company__row-set {
  flex-wrap: nowrap;
  padding-inline: 0 var(--sp-5);
}

.s-company:is(.js:not(.is-calm) *) .s-company__card {
  flex: none;
  width: min(23rem, 80vw);
}

.s-company:is(.js:not(.is-calm) *) .s-company__card--founder {
  width: min(25rem, 86vw);
}

.s-company__rows.is-drifting .s-company__row-track {
  animation: s-company-drift 64s linear infinite;
}

.s-company__rows.is-drifting .s-company__row--back .s-company__row-track {
  animation-direction: reverse;
}

.s-company__rows.is-drifting:not(.is-live) .s-company__row-track,
.s-company__rows.is-held .s-company__row-track,
.s-company__rows .s-company__row:hover .s-company__row-track,
.s-company__rows .s-company__row:focus-within .s-company__row-track {
  animation-play-state: paused;
}

@keyframes s-company-drift {
  to { transform: translateX(-50%); }
}

.s-company__voices-foot {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-5);
}

/* The hold button arrives with the module. Its line (the height of a small
   button) is kept free from the moment the rows drift, so the section does not
   grow under a visitor who is already reading it. */
.s-company:is(.js:not(.is-calm) *) .s-company__voices-foot {
  min-height: 2.75rem;
}

/* VI. Governance ---------------------------------------------------------------- */

.s-company__chart.panel {
  margin-top: var(--sp-7);
  padding: clamp(3.4rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4.5rem) clamp(2.6rem, 6vw, 4.5rem);
}

.s-company__chart-corner {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: clamp(2.2rem, 5vw, 3.4rem);
  height: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--accent);
}

.s-company__chart-corner--tr { left: auto; right: 1.25rem; transform: rotate(90deg); }
.s-company__chart-corner--br { left: auto; top: auto; right: 1.25rem; bottom: 1.25rem; transform: rotate(180deg); }
.s-company__chart-corner--bl { top: auto; bottom: 1.25rem; transform: rotate(270deg); }

.s-company__chart-caption {
  margin-bottom: var(--sp-6);
  text-align: center;
  color: var(--accent);
}

.s-company__org {
  display: grid;
  justify-items: center;
}

/* An engraved box: double rule, hatched shadow. */
.s-company__node {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem 1.1rem 1.05rem;
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--fg);
  box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 4px var(--fg);
}

.s-company__node::after {
  content: "";
  position: absolute;
  inset: 8px -8px -8px 8px;
  z-index: -1;
  background: repeating-linear-gradient(-45deg, var(--fg) 0 1px, transparent 1px 4px);
  opacity: 0.5;
}

.s-company__node-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

.s-company__node-name span {
  display: block;
  margin-top: 0.2em;
  font-family: var(--font-text);
  font-size: 0.72em;
  font-style: italic;
}

.s-company__node-note {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.25;
  color: var(--muted);
  text-wrap: balance;
}

.s-company__node-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.s-company__node--board {
  max-width: 27rem;
  padding-block: 1.3rem;
}

.s-company__node--founder {
  max-width: 23rem;
  border-width: 2.5px;
}

.s-company__node--founder .s-company__node-name {
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
}

.s-company__node--redundant {
  border-style: dashed;
  box-shadow: none;
}

.s-company__node--redundant::after {
  opacity: 0.22;
}

.s-company__consent {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.4rem;
  padding: 0.42em 0.8em 0.38em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: #6f4300;
  background: rgba(255, 176, 46, 0.24);
  border: 1px solid currentColor;
  border-radius: var(--r-1);
}

.s-company__consent::before {
  content: "";
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: currentColor;
  animation: fg-blink 1.6s steps(1, end) infinite;
}

.s-company__consent[data-state="approved"] {
  color: #2f5a14;
  background: rgba(183, 216, 106, 0.4);
}

.s-company__consent[data-state="approved"]::before {
  animation: none;
}

/* Connectors: ruled lines that draw themselves once the chart is revealed. */
.s-company__link {
  position: relative;
  width: 2px;
  height: 3rem;
  background: var(--fg);
  transform-origin: 50% 0;
  transition: transform 0.7s var(--ease-in-out) 0.35s;
}

.s-company__link--dotted {
  height: 5.5rem;
  background: repeating-linear-gradient(180deg, var(--fg) 0 5px, transparent 5px 11px);
}

.s-company__link-label {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: max-content;
  max-width: 9.5rem;
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.2;
  text-align: left;
  color: var(--accent);
  transform: translateY(-50%);
}

.s-company__link--trunk {
  justify-self: start;
  height: 1.75rem;
  margin-left: 0.6rem;
  transition-delay: 0.9s;
}

.s-company .s-company__reports {
  position: relative;
  display: grid;
  gap: 1.4rem;
  width: 100%;
  padding-left: 2rem;
}

.s-company__reports::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 2.4rem;
  width: 2px;
  background: var(--fg);
  transform-origin: 0 0;
  transition: transform 0.7s var(--ease-in-out) 1.2s;
}

.s-company__reports .s-company__node {
  justify-items: start;
  text-align: left;
  transition: opacity 0.5s var(--ease-out) calc(1.5s + var(--k, 0) * 0.14s);
}

.s-company__reports .s-company__node:nth-child(2) { --k: 1; }
.s-company__reports .s-company__node:nth-child(3) { --k: 2; }
.s-company__reports .s-company__node:nth-child(4) { --k: 3; }

.s-company__reports .s-company__node::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 1.5px);
  top: 50%;
  width: 1.4rem;
  height: 2px;
  background: var(--fg);
}

.s-company__reports .s-company__node--redundant::before {
  background: repeating-linear-gradient(90deg, var(--fg) 0 4px, transparent 4px 8px);
}

@media (min-width: 56em) {
  .s-company__link--trunk {
    justify-self: center;
    height: 2.75rem;
    margin-left: 0;
  }

  .s-company .s-company__reports {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 2.4rem 0 0;
  }

  .s-company__reports::before {
    left: 12.5%;
    right: 12.5%;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .s-company__reports .s-company__node {
    width: auto;
    margin-inline: 0.8rem;
    justify-items: center;
    text-align: center;
  }

  .s-company__reports .s-company__node::before {
    left: calc(50% - 1px);
    top: calc(-2.4rem - 1.5px);
    width: 2px;
    height: 2.4rem;
  }

  .s-company__reports .s-company__node--redundant::before {
    background: repeating-linear-gradient(180deg, var(--fg) 0 4px, transparent 4px 8px);
  }
}

/* Waiting state, only when the engine is there to reveal it. */
.s-company:is(.js *) .s-company__chart:not(.is-in) .s-company__link { transform: scaleY(0); }
.s-company:is(.js *) .s-company__chart:not(.is-in) .s-company__reports::before { transform: scale(0); }
.s-company:is(.js *) .s-company__chart:not(.is-in) .s-company__reports .s-company__node { opacity: 0; }

/* The fine print appears when consent is granted (in the finale, far below, or at
   once for a returning visitor). It sits in the chart's bottom padding, midway
   between the hatched shadows (8px) and the panel's inner rule (13px in), so that
   its arrival does not change the chart's height. */
.s-company__chart-fine {
  position: absolute;
  inset-inline: 0;
  bottom: calc((clamp(2.6rem, 6vw, 4.5rem) + 5px - 1.4em) / 2);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}

/* VII. World headquarters: an architecture-magazine spread ----------------------- */

.s-company__hq {
  display: grid;
  gap: var(--sp-8);
}

.s-company__hq-body {
  max-width: 24em;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
  font-weight: 360;
  line-height: 1.32;
}

.s-company__figs {
  display: grid;
  gap: var(--sp-8);
}

.s-company__fig {
  display: grid;
  gap: var(--sp-5);
  min-width: 0;
}

/* A slim gallery frame: brass edge, cream mount, a hairline round the print. */
.s-company__frame {
  --mount: clamp(0.6rem, 1.6vw, 1.1rem);
  position: relative;
  padding: var(--mount);
  background: var(--grain-dark), linear-gradient(180deg, #fffaf0, var(--cream));
  border: 3px solid var(--brass);
  box-shadow: 0 0 0 1px #2a1a04, inset 0 0 0 1px rgba(28, 18, 38, 0.35), var(--shadow-deep);
}

.s-company__photo {
  background-image: url(../flemming-rum.jpg);
  background-repeat: no-repeat;
  outline: 1px solid rgba(28, 18, 38, 0.55);
}

.s-company__photo--table {
  aspect-ratio: var(--table-ratio);
  background-size: var(--table-size);
  background-position: var(--table-pos);
}

.s-company__photo--door {
  aspect-ratio: var(--door-ratio);
  background-size: var(--door-size);
  background-position: var(--door-pos);
}

/* The table is a bare white surface, so the surveyors' marks are what tell the
   eye that the print has loaded: a tab that says what it is, hung from the top
   edge, and two dimension lines. */
.s-company__fig-tab {
  position: absolute;
  left: 50%;
  top: var(--mount);
  padding: 0.35em 0.9em 0.3em;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  background: var(--paper-ink);
  transform: translateX(-50%);
}

.s-company__dim {
  position: absolute;
  left: 9%;
  right: 24%;
  bottom: 15%;
  display: grid;
  justify-items: center;
  height: 0.9rem;
  border-inline: 1.5px solid var(--paper-ink);
  background: linear-gradient(var(--paper-ink), var(--paper-ink)) center / 100% 1.5px no-repeat;
  transform-origin: 50% 50%;
  transition: transform 0.9s var(--ease-in-out) 0.6s;
}

.s-company__dim span {
  align-self: center;
  padding: 0.2em 0.7em;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper-ink);
  background: #e9e3d6;
}

/* Depth runs down the right-hand side. */
.s-company__dim--d {
  left: auto;
  right: 9%;
  top: 10%;
  bottom: 10%;
  align-items: center;
  width: 0.9rem;
  height: auto;
  border-inline: 0;
  border-block: 1.5px solid var(--paper-ink);
  background-size: 1.5px 100%;
  transition-delay: 0.9s;
}

.s-company__dim--d span {
  padding: 0.4em 0.2em;
  letter-spacing: 0.06em;
  writing-mode: vertical-rl;
}

.s-company:is(.js *) .s-company__fig:not(.is-in) .s-company__dim {
  transform: scaleX(0);
}

.s-company:is(.js *) .s-company__fig:not(.is-in) .s-company__dim--d {
  transform: scaleY(0);
}

.s-company__fig-caption {
  font-size: 1.0625rem;
  line-height: 1.45;
}

.s-company__fig-no {
  margin-right: 0.5em;
  color: var(--accent);
}

.s-company__spec {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  border-top: 2px solid var(--fg);
}

.s-company__spec div {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--rule);
}

.s-company__spec dt {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-company__spec dd {
  margin: 0;
}

.s-company__fig--door .s-company__spec div {
  grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr);
}

/* The globe: Odense, and elsewhere. */
.s-company__globe {
  position: relative;
  width: min(100%, 17rem);
  margin-top: var(--sp-7);
}

.s-company__globe svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.s-company__globe-sea {
  fill: var(--midnight);
}

.s-company__globe-grid {
  fill: none;
  stroke: rgba(242, 193, 78, 0.5);
  stroke-width: 1;
}

.s-company__globe-rim {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
}

.s-company__globe-stand {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
}

/* Four meridians breathe between edge-on and face-on: a wireframe globe turning.
   The resting transform is what calm visitors see. */
.s-company__meridian {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: scaleX(calc(0.2 + var(--m) * 0.26));
  animation: s-company-meridian 5s cubic-bezier(0.61, 1, 0.88, 1) calc(var(--m) * -2.5s) infinite alternate;
  animation-play-state: paused;
}

@keyframes s-company-meridian {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.s-company__pin {
  fill: var(--gold);
  stroke: var(--ink);
  stroke-width: 1.5;
}

.s-company__pin-eye {
  fill: var(--ink);
}

.s-company__ping {
  fill: none;
  stroke: var(--gold-hi);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: 0;
  animation: s-company-ping 2.4s var(--ease-out) infinite;
  animation-play-state: paused;
}

@keyframes s-company-ping {
  from { opacity: 0.9; transform: scale(0.6); }
  to { opacity: 0; transform: scale(4.2); }
}

.s-company__hq.is-live .s-company__meridian,
.s-company__hq.is-live .s-company__ping {
  animation-play-state: running;
}

.s-company__globe-odense {
  position: absolute;
  left: 63%;
  top: 14%;
  padding: 0.3em 0.7em 0.25em;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 3px 3px 0 var(--velvet);
}

.s-company__globe-else {
  position: absolute;
  left: 50%;
  top: 60%;
  font-size: var(--fs-micro);
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  color: var(--muted);
  transform: translateX(-50%);
}

@media (min-width: 62em) {
  .s-company__hq {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }

  .s-company__hq-head {
    grid-column: 1 / -1;
  }

  .s-company__hq-text {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }

  .s-company__fig--door {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    align-items: start;
  }
}

/* From here the column is wide enough for the table's longer caption to stand
   beside its print as the door's does: picture and joke in one glance. */
@media (min-width: 80em) {
  .s-company__fig--table {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
    align-items: start;
  }

  .s-company__fig--table .s-company__spec div {
    grid-template-columns: minmax(0, 7.75rem) minmax(0, 1fr);
  }
}
/* One-Trick Pony: a Victorian broadside, a proscenium around the 3D ring, the
   roster as act tickets and the back of the box. */

.s-ponies__defs {
  position: absolute;
}

/* Paper grounds inside this night section take the paper theme slots, so shared
   pieces placed on them (footnote markers, focus rings) restyle themselves. */
.s-ponies__sheet,
.s-ponies__card,
.s-ponies__patrons,
.s-ponies__notice,
.s-ponies__imprint {
  --fg: var(--paper-ink);
  --accent: var(--velvet);
  --on-accent: var(--cream);
  --rule: rgba(28, 18, 38, 0.3);
  --muted: #5d5066;
  --offset: var(--brass);
  --focus: var(--velvet-hi);
  color-scheme: light;
  color: var(--paper-ink);
}

/* The broadside ---------------------------------------------------------------- */

.s-ponies__playbill {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.s-ponies__playbill > .sunburst {
  top: clamp(18rem, 46vw, 34rem);
  --sunburst-size: min(170vmin, 104rem);
}

.s-ponies__bill {
  --stagger: 105ms;
  position: relative;
  isolation: isolate;
  width: min(100%, 45rem);
  transform: rotate(-1.1deg);
}

/* The shadow lives on its own box, so the slamming lines never repaint a filter. */
.s-ponies__bill::before {
  content: "";
  position: absolute;
  inset: 2% 1.5% 0.5%;
  z-index: -1;
  box-shadow: 0 2.2rem 4.5rem 0.6rem rgba(0, 0, 0, 0.75), 0 0.3rem 0.6rem rgba(0, 0, 0, 0.6);
}

.s-ponies__pin {
  position: absolute;
  top: 0.55rem;
  left: 7%;
  z-index: 2;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6cf 0 12%, var(--gold) 30%, var(--gold-deep) 72%, #5c3d08);
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.55);
}

.s-ponies__pin--right {
  left: auto;
  right: 7%;
}

.s-ponies__sheet {
  position: relative;
  padding: clamp(1.9rem, 6.4vw, 4rem) clamp(1.5rem, 6vw, 4rem) clamp(2rem, 6.6vw, 4.2rem);
  background:
    var(--grain-dark),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(94, 42, 12, 0.16) 50%, rgba(255, 255, 255, 0.34) calc(50% + 1px), transparent calc(50% + 2px)),
    linear-gradient(180deg, transparent calc(50% - 1px), rgba(94, 42, 12, 0.16) 50%, rgba(255, 255, 255, 0.34) calc(50% + 1px), transparent calc(50% + 2px)),
    radial-gradient(circle at 9% 12%, rgba(168, 116, 26, 0.26), transparent 16%),
    radial-gradient(circle at 88% 91%, rgba(168, 116, 26, 0.3), transparent 20%),
    radial-gradient(circle at 78% 22%, rgba(168, 116, 26, 0.12), transparent 9%),
    radial-gradient(130% 100% at 50% 42%, transparent 52%, rgba(120, 70, 20, 0.34)),
    linear-gradient(180deg, #f7ebcd, var(--parchment) 58%, #e2cd9c);
  clip-path: polygon(0.3% 0.2%, 14% 0, 31% 0.25%, 52% 0.05%, 70% 0.3%, 88% 0, 99.6% 0.25%, 100% 13%, 99.7% 29%, 100% 47%, 99.6% 66%, 100% 84%, 99.7% 99.7%, 86% 100%, 68% 99.75%, 49% 100%, 30% 99.7%, 12% 100%, 0.2% 99.8%, 0 85%, 0.35% 67%, 0 50%, 0.3% 31%, 0 14%);
}

.s-ponies__sheet::before {
  content: "";
  position: absolute;
  inset: clamp(0.6rem, 2.2vw, 1.2rem);
  border: 3px solid var(--paper-ink);
  outline: 1px solid var(--paper-ink);
  outline-offset: -8px;
  pointer-events: none;
}

.s-ponies__corner {
  position: absolute;
  top: clamp(1.15rem, 3.6vw, 2rem);
  left: clamp(1.15rem, 3.6vw, 2rem);
  width: clamp(1.5rem, 5vw, 2.8rem);
  height: clamp(1.5rem, 5vw, 2.8rem);
  color: var(--velvet);
  fill: currentColor;
}

.s-ponies__corner--tr { left: auto; right: clamp(1.15rem, 3.6vw, 2rem); transform: scaleX(-1); }
.s-ponies__corner--bl { top: auto; bottom: clamp(1.15rem, 3.6vw, 2rem); transform: scaleY(-1); }
.s-ponies__corner--br { top: auto; left: auto; right: clamp(1.15rem, 3.6vw, 2rem); bottom: clamp(1.15rem, 3.6vw, 2rem); transform: scale(-1); }

/* Every row is set to the full measure, as a compositor would lock up a forme:
   the size of each is a fraction of the measure's width (--fit, in cqi). */
.s-ponies__measure {
  container-type: inline-size;
  display: grid;
  gap: clamp(0.6rem, 2.3vw, 1.25rem);
  padding-block: clamp(0.6rem, 2vw, 1.2rem);
}

.s-ponies__line,
.s-ponies__title {
  display: grid;
  gap: clamp(0.3rem, 1.3vw, 0.7rem);
  font: inherit;
}

.s-ponies__row {
  display: block;
  font-size: 5vw;
  font-size: calc(var(--fit) * 1cqi);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-mask: var(--rough) center / 11rem 11rem;
  mask: var(--rough) center / 11rem 11rem;
}

.s-ponies__row--refusal {
  --fit: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  font-family: var(--font-logo);
  font-weight: 800;
  letter-spacing: 0.2em;
}

.s-ponies__fist {
  --manicule-cut: var(--parchment);
  flex: none;
  width: 2.7em;
  height: 1.26em;
  fill: currentColor;
}

.s-ponies__fist--left {
  transform: scaleX(-1);
}

.s-ponies__row--board {
  --fit: 7.25;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.s-ponies__row--honour {
  --fit: 5.4;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-style: italic;
  font-weight: 480;
  text-transform: none;
}

.s-ponies__row--honour::before,
.s-ponies__row--honour::after {
  content: "";
  flex: 1;
  height: 0.2em;
  border-top: 0.07em solid currentColor;
  border-bottom: 0.03em solid currentColor;
}

.s-ponies__row--finest {
  --fit: 6.63;
  font-family: var(--font-display);
  color: var(--velvet);
}

.s-ponies__row--bravest {
  --fit: 6.25;
  font-family: var(--font-logo);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.s-ponies__row--qualified {
  --fit: 3.14;
  padding: 0.75em 0 0.7em;
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: 0.17em;
  color: var(--parchment);
  background: var(--paper-ink);
}

.s-ponies__title {
  gap: 0;
  margin-block: clamp(0.2rem, 1vw, 0.6rem) 0;
  color: var(--velvet);
}

.s-ponies__row--onetrick,
.s-ponies__row--pony {
  font-family: var(--font-circus);
  line-height: 0.92;
  text-shadow: 0.035em 0.04em 0 var(--brass);
}

.s-ponies__row--onetrick { --fit: 20.6; }
.s-ponies__row--pony { --fit: 41; line-height: 0.86; }

.s-ponies__row--eight {
  --fit: 6.71;
  font-family: var(--font-display);
}

.s-ponies__row--more {
  --fit: 6.54;
  font-family: var(--font-logo);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--velvet);
}

.s-ponies__row--encores {
  --fit: 8.95;
  font-family: var(--font-circus);
}

.s-ponies__row--know {
  --fit: 6.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: var(--velvet);
}

/* On a phone's sheet the two smallest rows would be set under 11 px, too small to
   read the jokes in them. Below the measure at which that happens (11 px divided by
   the row's --fit) they hold at 11 px and take two lines, breaking only between the
   two halves marked in the HTML. */
.s-ponies__keep {
  white-space: nowrap;
}

@container (max-width: 22.9rem) {
  .s-ponies__row--refusal {
    font-size: 0.6875rem;
    line-height: 1.4;
    white-space: normal;
  }
}

@container (max-width: 21.9rem) {
  .s-ponies__row--qualified {
    font-size: 0.6875rem;
    line-height: 1.5;
    white-space: normal;
  }
}

.s-ponies__rule {
  display: block;
  color: var(--paper-ink);
}

.s-ponies__rule--oxford {
  height: 8px;
  border-top: 4px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.s-ponies__rule--stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.s-ponies__rule--stars::before,
.s-ponies__rule--stars::after {
  content: "";
  flex: 1;
  height: 6px;
  border-block: 1px solid currentColor;
}

.s-ponies__rule--stars i {
  width: clamp(0.8rem, 2.6vw, 1.3rem);
  aspect-ratio: 1;
  background: var(--velvet);
  clip-path: var(--star);
}

.s-ponies__rule--stars i:nth-child(2) {
  width: clamp(1.1rem, 3.6vw, 1.9rem);
}

.s-ponies__intro {
  max-width: 47ch;
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
  text-align: center;
}

/* The proscenium ---------------------------------------------------------------- */

.s-ponies__theatre {
  display: grid;
  justify-items: center;
  margin-top: clamp(4.5rem, 10vw, 8.5rem);
}

.s-ponies__pediment {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.9rem, 3vw, 1.8rem);
  width: min(25rem, 82%);
  height: clamp(5.4rem, 16vw, 6.8rem);
  margin-bottom: -3px;
  padding-bottom: 0.9rem;
  background:
    radial-gradient(90% 120% at 50% 100%, rgba(242, 193, 78, 0.3), transparent 60%),
    var(--pleats),
    linear-gradient(180deg, var(--velvet), #5a0a1b);
  border: 3px solid var(--brass);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: inset 0 0 0 4px var(--velvet-deep), inset 0 0 0 5px rgba(242, 193, 78, 0.6), 0 -18px 50px -12px rgba(242, 193, 78, 0.28);
}

.s-ponies__crest .fg-logo {
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
}

.s-ponies__pediment-star {
  width: clamp(0.85rem, 2.6vw, 1.15rem);
  aspect-ratio: 1;
  margin-bottom: 0.5rem;
  background: var(--gold);
  clip-path: var(--star);
}

.s-ponies__frame {
  --pitch: 1.05rem;
  width: 100%;
  padding: calc(var(--pitch) + 6px);
}

.s-ponies__frame.is-asleep::before,
.s-ponies__frame.is-asleep::after {
  animation-play-state: paused;
}

.s-ponies__frame.is-chaos::before,
.s-ponies__frame.is-chaos::after {
  animation-duration: 0.28s;
}

.s-ponies__stage {
  position: relative;
  isolation: isolate;
  container-type: size;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: radial-gradient(90% 80% at 50% 100%, var(--plum), var(--ink) 75%);
  box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 3px #1d030a;
}

.s-ponies__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

/* The safety curtain: a painted tableau that hangs in front of the ring. It is what
   a visitor sees without JavaScript or WebGL, it carries the notice while the ring
   loads, and it rises when the ring reports ready. */
.s-ponies__safety {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 0 4cqi clamp(0.9rem, 5cqh, 2.2rem);
  background:
    linear-gradient(180deg, transparent 64%, #caa25a 64%),
    radial-gradient(120% 90% at 50% 100%, transparent 30%, rgba(10, 7, 20, 0.82) 100%),
    repeating-conic-gradient(from 90deg at 50% -18%, #5a0a1b 0 6deg, #1b1338 6deg 12deg);
  box-shadow: inset 0 0 0 0.45rem var(--ink), inset 0 0 0 0.52rem rgba(242, 193, 78, 0.55);
  transition: transform 1.5s var(--ease-drape), visibility 0s linear 1.5s;
}

.s-ponies__stage[data-ring="ready"] .s-ponies__safety {
  transform: translateY(-103%);
  visibility: hidden;
}

/* On a portrait stage the tableau keeps to the upper two thirds, so the whole
   scene fits across and the notice stands on the sawdust beneath it. */
.s-ponies__tableau {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 65%;
}

.s-ponies__notice {
  position: relative;
  display: none;
  max-width: min(33rem, 100%);
  padding: 0.8rem 1.3rem 0.95rem;
  text-align: center;
  background: var(--grain-dark), linear-gradient(180deg, var(--cream), var(--parchment));
  border: 1px solid var(--paper-ink);
  outline: 1px solid rgba(28, 18, 38, 0.5);
  outline-offset: -5px;
  box-shadow: 5px 5px 0 var(--velvet), var(--shadow-lift);
  transform: rotate(-1.2deg);
}

.s-ponies__notice[data-notice="fallback"] {
  display: block;
}

.s-ponies__stage[data-ring="loading"] .s-ponies__notice[data-notice="fallback"],
.s-ponies__stage[data-ring="ready"] .s-ponies__notice[data-notice="fallback"] {
  display: none;
}

.s-ponies__stage[data-ring="loading"] .s-ponies__notice[data-notice="loading"],
.s-ponies__stage[data-ring="ready"] .s-ponies__notice[data-notice="loading"] {
  display: block;
}

.s-ponies__notice-kicker {
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--velvet);
}

.s-ponies__notice-line {
  margin-top: 0.3rem;
  font-size: clamp(1.0625rem, 2.2cqi, 1.3rem);
  font-style: italic;
  line-height: 1.3;
}

.s-ponies__raising {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.s-ponies__raising i {
  width: 0.8rem;
  aspect-ratio: 1;
  background: var(--velvet);
  clip-path: var(--star);
  animation: s-ponies-twinkle 1.6s var(--ease-in-out) infinite;
}

.s-ponies__raising i:nth-child(2) { animation-delay: 0.2s; }
.s-ponies__raising i:nth-child(3) { animation-delay: 0.4s; }
.s-ponies__raising i:nth-child(4) { animation-delay: 0.6s; }
.s-ponies__raising i:nth-child(5) { animation-delay: 0.8s; }
.s-ponies__raising i:nth-child(6) { animation-delay: 1s; }
.s-ponies__raising i:nth-child(7) { animation-delay: 1.2s; }
.s-ponies__raising i:nth-child(8) { animation-delay: 1.4s; }

@keyframes s-ponies-twinkle {
  0%, 60%, 100% { opacity: 1; transform: none; }
  30% { opacity: 0.2; transform: scale(0.6); }
}

/* Tie-back drapes at the wings and the valance across the top. None of them takes
   pointer events: the ring picks through them. */
.s-ponies__drape {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: clamp(1.3rem, 6.5cqi, 5.5rem);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 70%),
    var(--pleats),
    linear-gradient(180deg, var(--velvet), #5a0a1b);
  clip-path: polygon(0 0, 100% 0, 97% 18%, 82% 42%, 54% 60%, 40% 65%, 38% 68%, 44% 71%, 52% 84%, 56% 100%, 0 100%);
  pointer-events: none;
}

.s-ponies__drape--right {
  left: auto;
  right: 0;
  transform: scaleX(-1);
}

.s-ponies__valance {
  --scallop: clamp(1.9rem, 6cqi, 4.2rem);
  --band: 0.55rem;
  z-index: 4;
}

/* The lower-third name plate. */
.s-ponies__plate {
  position: absolute;
  left: clamp(0.5rem, 5cqi, 4.2rem);
  bottom: clamp(0.8rem, 7cqh, 2.6rem);
  z-index: 5;
  display: grid;
  justify-items: start;
  max-width: calc(100% - clamp(1rem, 10cqi, 8.4rem));
  opacity: 0;
  transform: translateX(-112%);
  transition: transform 0.5s var(--ease-in-out), opacity 0.3s linear;
  pointer-events: none;
}

.s-ponies__plate.is-on {
  opacity: 1;
  transform: none;
}

.s-ponies__plate.is-on[data-beat="a"] { animation: s-ponies-plate-a 0.6s var(--ease-out) both; }
.s-ponies__plate.is-on[data-beat="b"] { animation: s-ponies-plate-b 0.6s var(--ease-out) both; }

@keyframes s-ponies-plate-a {
  from { opacity: 0; transform: translateX(-112%); }
  to { opacity: 1; transform: none; }
}

@keyframes s-ponies-plate-b {
  from { opacity: 0; transform: translateX(-112%); }
  to { opacity: 1; transform: none; }
}

.s-ponies__plate-no {
  padding: 0.5em 1em 0.45em 1.1em;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.3em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--foil-soft);
}

.s-ponies__plate-name {
  padding: 0.2em 0.6em 0.26em 0.5em;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.4cqi, 3.2rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--cream);
  background: linear-gradient(180deg, var(--velvet-hi), var(--velvet) 80%);
  border: 1px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 5px 5px 0 rgba(0, 0, 0, 0.55);
}

.s-ponies__plate-billing {
  margin-left: clamp(0.6rem, 2cqi, 1.6rem);
  padding: 0.7em 1.1em 0.65em;
  font-family: var(--font-logo);
  font-size: clamp(0.6875rem, 1.25cqi, 0.8125rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 7, 20, 0.94);
  border: 1px solid rgba(242, 193, 78, 0.5);
  border-top: 0;
}

/* The hover name tag follows the pointer (the module writes --x and --y). */
.s-ponies__tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  padding: 0.45em 0.8em 0.4em;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper-ink);
  background: var(--cream);
  border: 1px solid var(--paper-ink);
  box-shadow: 3px 3px 0 var(--velvet);
  opacity: 0;
  transform: translate(var(--x, 0px), var(--y, 0px)) translate(14px, -150%) rotate(-3deg);
  transition: opacity var(--dur-1) linear;
  pointer-events: none;
}

.s-ponies__tag.is-on {
  opacity: 1;
}

.s-ponies__tag.is-flipped {
  transform: translate(var(--x, 0px), var(--y, 0px)) translate(calc(-100% - 14px), -150%) rotate(3deg);
}

/* Act selector: a scrolling strip of named chips on phones, a row of numbered
   bulbs from tablet width up. Absent without script. With script (html.js) its
   place is held from the first paint and the row is shown once the module is
   wired, so the section never changes height when the module starts. The Spotlight
   buttons and the chaos lever below follow the same rule. */
.s-ponies__acts {
  display: none;
  gap: 0.5rem;
  width: calc(100% + 2 * var(--gutter));
  margin-top: 1.1rem;
  padding: 0.35rem var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}

/* Safari before 18.2 does not know scrollbar-width. */
.s-ponies__acts::-webkit-scrollbar {
  display: none;
}

html.js .s-ponies__acts {
  display: flex;
  visibility: hidden;
}

.s-ponies.is-wired .s-ponies__acts {
  visibility: visible;
}

.s-ponies__act {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75rem;
  padding: 0 1em 0 0.4em;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  background: linear-gradient(180deg, #1b1338, var(--ink));
  border: 1px solid rgba(242, 193, 78, 0.55);
  border-radius: var(--r-pill);
  scroll-snap-align: start;
  transition: transform var(--dur-1) var(--ease-out);
}

.s-ponies__act:hover {
  transform: translateY(-2px);
}

.s-ponies__act--all {
  padding-inline: 1em 1.2em;
  color: var(--gold);
}

.s-ponies__act-no {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  letter-spacing: 0;
  line-height: 1;
  color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.6);
  border-radius: 50%;
}

/* The spoken "Act 1: " before the name stays in sentence case for screen readers. */
.s-ponies__act .visually-hidden {
  text-transform: none;
}

.s-ponies__act[aria-pressed="true"] {
  color: var(--ink);
  background: var(--foil-soft);
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.28), 0 0 22px rgba(242, 193, 78, 0.5);
}

.s-ponies__act[aria-pressed="true"] .s-ponies__act-no {
  color: var(--gold-hi);
  background: var(--ink);
  border-color: var(--ink);
}

/* Front of house -------------------------------------------------------------- */

.s-ponies__apron {
  display: grid;
  justify-items: center;
  gap: var(--sp-6);
  width: 100%;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.s-ponies__lever {
  display: none;
  justify-items: center;
  gap: 1rem;
  width: min(100%, 27rem);
  text-align: center;
}

html.js .s-ponies__lever {
  display: grid;
  visibility: hidden;
}

.s-ponies.is-wired .s-ponies__lever {
  visibility: visible;
}

.s-ponies__chaos {
  font-size: clamp(0.9375rem, 2.4vw, 1.125rem);
}

/* During the chaos the button is aria-disabled, not disabled, so it keeps keyboard focus. */
.s-ponies__chaos[aria-disabled="true"] {
  cursor: progress;
  filter: saturate(0.6) brightness(0.8);
}

.s-ponies__chaos[aria-disabled="true"]::before,
.s-ponies__chaos[aria-disabled="true"]::after {
  animation-duration: 0.28s;
}

.s-ponies__chaos-msg {
  min-height: 3.1em;
  font-size: var(--fs-body);
  font-style: italic;
  line-height: 1.4;
  color: var(--cream);
  text-wrap: balance;
}

.s-ponies__chaos-msg > span {
  display: block;
  animation: s-ponies-msg-in 0.5s var(--ease-overshoot) both;
}

@keyframes s-ponies-msg-in {
  from { opacity: 0; transform: translateY(0.8rem) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.s-ponies__board {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: min(100%, 21rem);
  padding: 1.9rem 1.4rem 1.2rem;
  text-align: center;
  background: var(--grain-light), linear-gradient(180deg, #1b1338, var(--ink));
  border: 1px solid rgba(242, 193, 78, 0.5);
  box-shadow: var(--shadow-letterpress), var(--shadow-lift);
}

/* Hazard tape along the top edge. */
.s-ponies__board::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.7rem;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 0.6rem, var(--ink) 0.6rem 1.2rem);
}

.s-ponies__board[data-shudder="a"] { animation: s-ponies-shudder-a 0.55s linear; }
.s-ponies__board[data-shudder="b"] { animation: s-ponies-shudder-b 0.55s linear; }

@keyframes s-ponies-shudder-a {
  0%, 100% { transform: none; }
  12% { transform: translate(-5px, 3px) rotate(-1.6deg); }
  26% { transform: translate(5px, -3px) rotate(1.4deg); }
  40% { transform: translate(-4px, -2px) rotate(-1deg); }
  56% { transform: translate(3px, 2px) rotate(0.8deg); }
  72% { transform: translate(-2px, 1px) rotate(-0.4deg); }
  86% { transform: translate(1px, -1px); }
}

@keyframes s-ponies-shudder-b {
  0%, 100% { transform: none; }
  12% { transform: translate(-5px, 3px) rotate(-1.6deg); }
  26% { transform: translate(5px, -3px) rotate(1.4deg); }
  40% { transform: translate(-4px, -2px) rotate(-1deg); }
  56% { transform: translate(3px, 2px) rotate(0.8deg); }
  72% { transform: translate(-2px, 1px) rotate(-0.4deg); }
  86% { transform: translate(1px, -1px); }
}

.s-ponies__board-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.s-ponies__board-digits {
  --flip-size: clamp(3.2rem, 9vw, 4.4rem);
}

.s-ponies__board-sub {
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
}

.s-ponies__patrons {
  position: relative;
  width: min(100%, 23rem);
  padding: 1.2rem 1.4rem 1.3rem;
  background: var(--grain-dark), linear-gradient(180deg, var(--cream), var(--parchment));
  border: 1px solid var(--paper-ink);
  outline: 3px double rgba(28, 18, 38, 0.6);
  outline-offset: -9px;
  box-shadow: var(--shadow-lift);
  transform: rotate(0.9deg);
}

.s-ponies__patrons-head {
  margin-bottom: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 3px double var(--paper-ink);
  font-family: var(--font-circus);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  color: var(--velvet);
}

.s-ponies__patrons p {
  font-size: 1.0625rem;
  line-height: 1.42;
}

/* The roster ------------------------------------------------------------------- */

.s-ponies__company,
.s-ponies__shelf {
  display: grid;
  justify-items: center;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  margin-top: clamp(5rem, 11vw, 9rem);
}

.s-ponies__roster {
  display: flex;
  gap: 1rem;
  width: calc(100% + 2 * var(--gutter));
  padding: 0.9rem var(--gutter) 2rem;
  overflow-x: auto;
  overflow-y: hidden; /* the row only ever scrolls sideways: an up or down swipe on a card belongs to the page */
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}

.s-ponies__card {
  --act: var(--velvet);
  --notch: 0.7rem;
  position: relative;
  isolation: isolate;
  flex: 0 0 min(88vw, 23rem);
  display: grid;
  grid-template-rows: auto 1fr;
  cursor: pointer;
  scroll-snap-align: center;
}

.s-ponies__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--grain-dark),
    linear-gradient(180deg, var(--cream), var(--parchment));
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 16px 22px -8px rgba(0, 0, 0, 0.6), 0 2px 3px rgba(0, 0, 0, 0.5);
}

/* The act's colour washes down from the top edge of its ticket. color-mix() is not
   known before Safari 16.2, and a declaration with var() in it cannot fall back by
   order (it is only found invalid once the variables are in, which leaves no
   background at all), so the wash is added here and the plain paper above stays. */
@supports (color: color-mix(in srgb, red, blue)) {
  .s-ponies__card::before {
    background:
      var(--grain-dark),
      linear-gradient(180deg, color-mix(in srgb, var(--act) 22%, transparent), transparent 9rem),
      linear-gradient(180deg, var(--cream), var(--parchment));
  }
}

/* A second inked frame, like a printed ticket. */
.s-ponies__card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(28, 18, 38, 0.55);
  border-radius: 3px;
  pointer-events: none;
}

.s-ponies__stub {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.7rem 0.8rem;
  padding: 1.15rem 1.15rem 1rem;
  border-bottom: 2px dashed rgba(28, 18, 38, 0.45);
}

.s-ponies__no {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.s-ponies__no b {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 400;
  font-variant-numeric: lining-nums;
  letter-spacing: 0;
  line-height: 0.8;
  color: var(--act);
}

.s-ponies__portrait {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(242, 193, 78, 0.32), transparent 72%),
    linear-gradient(180deg, #221741, var(--ink));
  border: 2px solid var(--paper-ink);
  outline: 1px solid rgba(242, 193, 78, 0.6);
  outline-offset: -5px;
}

.s-ponies__portrait svg {
  width: 100%;
  height: 100%;
}

/* The act stirs in its frame while its card is under the pointer or in the ring. */
.s-ponies__card:hover .s-ponies__portrait svg,
.s-ponies__card.is-selected .s-ponies__portrait svg {
  animation: fg-bob 0.9s var(--ease-in-out) infinite alternate;
}

.s-ponies__portrait--fire {
  background: radial-gradient(60% 70% at 50% 45%, #ffcf6b, var(--rum) 52%, var(--rum-deep) 100%);
}

/* The vanisher's portrait slot is, correctly, empty. */
.s-ponies__portrait--empty {
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(242, 193, 78, 0.16), transparent 72%),
    linear-gradient(180deg, #1b1338, var(--ink));
  outline-style: dashed;
}

.s-ponies__note {
  position: absolute;
  top: 16%;
  right: 7%;
  padding: 0.4em 0.7em 0.35em;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper-ink);
  background: #e6cf93;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.5);
  transform: rotate(7deg);
}

.s-ponies__pick {
  display: none;
  grid-column: 2;
  grid-row: 1;
}

html.js .s-ponies__pick {
  display: inline-flex;
  visibility: hidden;
}

.s-ponies.is-wired .s-ponies__pick {
  visibility: visible;
}

.s-ponies__pick[aria-pressed="true"] {
  --btn-edge: #6b440c;
  color: var(--ink);
  background: var(--foil);
}

/* The validation box on the stub: it carries a printed legend until the act is in
   the ring, then the stamp. On phones it collapses and the stamp lands on the
   portrait instead. */
.s-ponies__validate {
  position: absolute;
  right: 1.7rem;
  bottom: 1.6rem;
  z-index: 1;
  pointer-events: none;
}

.s-ponies__stamp {
  display: block;
  padding: 0.45em 0.7em 0.4em;
  font-family: var(--font-logo);
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ff5a76;
  background: rgba(10, 7, 20, 0.6);
  border: 0.17em solid currentColor;
  border-radius: 0.3em;
  opacity: 0;
  transform: rotate(-8deg) scale(2.4);
}

.s-ponies__card.is-selected .s-ponies__stamp {
  opacity: 1;
  transform: rotate(-8deg);
  transition: transform 0.34s var(--ease-slam), opacity 0.12s linear;
}

.s-ponies__main {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.1rem 1.3rem 1.5rem;
}

.s-ponies__name {
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.4rem);
  line-height: 1;
  color: var(--velvet);
}

.s-ponies__gloss {
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.38;
  color: var(--muted);
}

.s-ponies__gloss i {
  font-style: normal;
  color: var(--paper-ink);
}

.s-ponies__billing {
  padding: 0.62em 0 0.55em;
  border-block: 1px solid var(--paper-ink);
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: 0 3px 0 -2px var(--paper-ink), 0 -3px 0 -2px var(--paper-ink);
}

.s-ponies__facts {
  display: grid;
  gap: 0.5rem;
}

.s-ponies__facts div {
  display: grid;
  grid-template-columns: 5.6rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: baseline;
}

.s-ponies__facts dt {
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--velvet);
}

.s-ponies__facts dd {
  font-size: 1.0625rem;
  line-height: 1.34;
}

.s-ponies__facts div:first-child dd {
  font-weight: 650;
}

.s-ponies__danger {
  display: inline-flex;
  gap: 0.14em;
  margin-right: 0.3em;
  font-size: 0.95em;
  vertical-align: -0.1em;
  color: rgba(28, 18, 38, 0.2);
}

.s-ponies__danger[data-level="1"] svg:nth-child(-n + 1),
.s-ponies__danger[data-level="2"] svg:nth-child(-n + 2),
.s-ponies__danger[data-level="3"] svg:nth-child(-n + 3),
.s-ponies__danger[data-level="4"] svg:nth-child(-n + 4),
.s-ponies__danger[data-level="5"] svg {
  color: var(--velvet-hi);
}

.s-ponies__blurb {
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(28, 18, 38, 0.45);
  font-size: 1.0625rem;
  line-height: 1.48;
}

/* The selected act: gilt frame, lifted, stamped. */
.s-ponies__card.is-selected {
  z-index: 1;
}

.s-ponies__card.is-selected::after {
  inset: -5px;
  border: 4px solid var(--gold);
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--gold-deep), 0 0 0 5px rgba(242, 193, 78, 0.22), 0 0 46px rgba(242, 193, 78, 0.6);
}

.s-ponies__card.is-selected .s-ponies__portrait {
  outline-color: var(--gold-hi);
  box-shadow: 0 0 0 3px var(--gold);
}

/* The box back ----------------------------------------------------------------- */

.s-ponies__shelf {
  perspective: 90rem;
}

.s-ponies__box {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  width: min(100%, 60rem);
  padding: clamp(1.4rem, 4.4vw, 3rem);
  color: var(--cream);
  background:
    var(--grain-light),
    radial-gradient(90% 70% at 50% 0%, rgba(194, 24, 58, 0.5), transparent 70%),
    linear-gradient(160deg, #6f0d20, var(--velvet-deep) 72%);
  border: 1px solid var(--gold-deep);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 0.45rem var(--velvet-deep),
    inset 0 0 0 0.52rem rgba(242, 193, 78, 0.55),
    0.5rem 0.5rem 0 #2a040c,
    1rem 1rem 0 #1d030a,
    var(--shadow-deep);
  /* Swings round to face the reader as it enters, then holds still to be read. */
  transform: rotateY(calc(max(0, 0.22 - var(--p, 1)) * -75deg)) rotateX(calc(max(0, 0.22 - var(--p, 1)) * 28deg));
  transform-origin: 50% 60%;
  isolation: isolate; /* keeps the printed rays above the box's own ground */
}

/* Printed rays fanning from the top corner, as on the lid. */
.s-ponies__box::before {
  content: "";
  position: absolute;
  inset: 0.52rem;
  z-index: -1;
  background: repeating-conic-gradient(from 180deg at 100% 0, rgba(242, 193, 78, 0.09) 0 4deg, transparent 4deg 9deg);
  -webkit-mask: radial-gradient(circle at 100% 0, #000, transparent 68%);
  mask: radial-gradient(circle at 100% 0, #000, transparent 68%);
  pointer-events: none;
}

.s-ponies__box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(0.9rem, 2vw, 1.4rem);
  border-bottom: 3px double rgba(242, 193, 78, 0.6);
}

.s-ponies__box-title {
  padding-block: 0.08em;
  font-family: var(--font-circus);
  font-size: clamp(1.9rem, 6.4vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.s-ponies__box-pony {
  flex: none;
  width: clamp(3rem, 9vw, 5.6rem);
  height: clamp(2.4rem, 7.2vw, 4.5rem);
  color: var(--gold);
}

.s-ponies__specs {
  display: grid;
  gap: 1.1rem clamp(1.5rem, 4vw, 3rem);
}

.s-ponies__spec {
  position: relative;
  min-height: 3rem;
  padding-left: 4rem;
}

.s-ponies__spec .icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem;
  height: 3rem;
  padding: 0.62rem;
  color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.6);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--velvet-deep), inset 0 0 0 4px rgba(242, 193, 78, 0.3);
}

.s-ponies__spec dt {
  padding-top: 0.2rem;
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--gold);
}

.s-ponies__spec dd {
  font-size: var(--fs-body);
  line-height: 1.36;
}

.s-ponies__imprint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
  padding: 0.95rem 1.2rem;
  background: var(--grain-dark), linear-gradient(180deg, var(--cream), var(--parchment));
  border: 1px solid var(--paper-ink);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.s-ponies__imprint-logo {
  font-size: 0.95rem;
}

.s-ponies__publisher {
  font-family: var(--font-logo);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.s-ponies__pending {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--velvet);
}

.s-ponies__pending.is-approved {
  color: #0a6b6f;
}

.s-ponies__barcode {
  width: 7.5rem;
  height: 2.5rem;
  margin-left: auto;
  background: repeating-linear-gradient(90deg, var(--paper-ink) 0 2px, transparent 2px 3px, var(--paper-ink) 3px 4px, transparent 4px 7px, var(--paper-ink) 7px 10px, transparent 10px 11px, var(--paper-ink) 11px 12px, transparent 12px 14px, var(--paper-ink) 14px 15px, transparent 15px 19px);
}

/* Phones ------------------------------------------------------------------------ */

/* The roster is a sideways carousel here, so a whole ticket has to fit one screen.
   The stub becomes a single strip, number and Spotlight beside a small portrait,
   and the rows below sit closer. The width matches PHONE_LAYOUT in the module. */
@media (max-width: 43.99em) {
  .s-ponies__stub {
    grid-template-columns: minmax(0, 1fr) 8rem;
    grid-template-rows: auto 1fr;
    gap: 0.4rem 0.9rem;
    padding: 0.9rem 1.1rem 0.8rem 1.2rem;
  }

  .s-ponies__no {
    align-self: start;
    padding-top: 0.2rem;
  }

  .s-ponies__portrait {
    grid-column: 2;
    grid-row: 1 / span 2;
    aspect-ratio: 4 / 3;
  }

  .s-ponies__pick {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: start;
  }

  .s-ponies__validate {
    right: 1.5rem;
    bottom: 1.3rem;
  }

  .s-ponies__stamp {
    font-size: 0.6875rem;
  }

  .s-ponies__main {
    gap: 0.6rem;
    padding: 0.95rem 1.2rem 1.1rem;
  }

  .s-ponies__gloss,
  .s-ponies__facts dd,
  .s-ponies__blurb {
    font-size: 1rem;
  }

  /* Each fact runs on after its label and uses the full width of the ticket. */
  .s-ponies__facts div {
    display: block;
    font-size: 1rem;
    line-height: 1.34;
  }

  .s-ponies__facts dt,
  .s-ponies__facts dd {
    display: inline;
  }

  .s-ponies__facts dt {
    margin-right: 0.45em;
  }
}

/* Small phones: a screen 360 px wide leaves about 580 px for a ticket once the
   browser's toolbars are showing. It is the same ticket with every line on it, set
   closer: a smaller portrait, tighter gaps and leading. Nothing is cut or clamped. */
@media (max-width: 24em) {
  .s-ponies__stub {
    grid-template-columns: minmax(0, 1fr) 7rem;
    row-gap: 0.3rem;
    padding: 0.7rem 1rem 0.65rem;
  }

  .s-ponies__validate {
    right: 1.1rem;
    bottom: 1.05rem;
  }

  .s-ponies__main {
    gap: 0.45rem;
    padding: 0.75rem 1rem 0.9rem;
  }

  .s-ponies__gloss {
    line-height: 1.3;
  }

  .s-ponies__billing {
    padding: 0.5em 0 0.42em;
  }

  .s-ponies__facts {
    gap: 0.3rem;
  }

  .s-ponies__facts div,
  .s-ponies__facts dd {
    line-height: 1.3;
  }

  .s-ponies__blurb {
    padding-top: 0.55rem;
    line-height: 1.42;
  }
}

/* Wider screens ----------------------------------------------------------------- */

@media (min-width: 44em) {
  .s-ponies__stage {
    aspect-ratio: 16 / 10;
  }

  .s-ponies__safety {
    justify-items: end;
    padding-right: clamp(2.2rem, 9cqi, 7.5rem);
    background:
      radial-gradient(120% 90% at 50% 100%, transparent 30%, rgba(10, 7, 20, 0.82) 100%),
      repeating-conic-gradient(from 90deg at 50% -18%, #5a0a1b 0 6deg, #1b1338 6deg 12deg);
  }

  .s-ponies__tableau {
    height: 100%;
  }

  .s-ponies__notice {
    max-width: min(26rem, 44cqi);
  }

  .s-ponies__acts {
    justify-content: center;
    width: 100%;
    padding-inline: 0;
    overflow: visible;
  }

  .s-ponies__act:not(.s-ponies__act--all) {
    padding: 0;
    border: 0;
    background: none;
  }

  .s-ponies__act-no {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.3rem;
    background: linear-gradient(180deg, #1b1338, var(--ink));
  }

  .s-ponies__act:not(.s-ponies__act--all)[aria-pressed="true"] {
    box-shadow: none;
  }

  .s-ponies__act[aria-pressed="true"] .s-ponies__act-no {
    color: var(--ink);
    background: var(--foil-soft);
    border-color: var(--gold-hi);
    box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.28), 0 0 22px rgba(242, 193, 78, 0.55);
  }

  /* The name becomes a small tag above the bulb, on hover and keyboard focus. */
  .s-ponies__act:not(.s-ponies__act--all) .s-ponies__act-name {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    padding: 0.5em 0.8em 0.45em;
    letter-spacing: 0.14em;
    line-height: 1;
    color: var(--paper-ink);
    background: var(--cream);
    border: 1px solid var(--paper-ink);
    box-shadow: 3px 3px 0 var(--velvet);
    opacity: 0;
    transform: translate(-50%, 0.4rem);
    transition: opacity var(--dur-1) linear, transform var(--dur-2) var(--ease-out);
    pointer-events: none;
  }

  .s-ponies__act:hover .s-ponies__act-name,
  .s-ponies__act:focus-visible .s-ponies__act-name {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .s-ponies__roster {
    display: grid;
    gap: clamp(1.5rem, 2.6vw, 2.5rem);
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .s-ponies__card {
    grid-template-columns: 14.5rem minmax(0, 1fr);
    grid-template-rows: none;
  }

  .s-ponies__card:nth-child(4n + 1) { transform: rotate(-0.5deg); }
  .s-ponies__card:nth-child(4n + 2) { transform: rotate(0.4deg); }
  .s-ponies__card:nth-child(4n + 3) { transform: rotate(0.35deg); }
  .s-ponies__card:nth-child(4n + 4) { transform: rotate(-0.45deg); }

  .s-ponies__card.is-selected {
    transform: translateY(-6px);
  }

  .s-ponies__card {
    transition: transform var(--dur-2) var(--ease-out);
  }

  .s-ponies__stub {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    align-items: start;
    justify-items: center;
    gap: 0.9rem;
    padding: 1.3rem 1.1rem 1.3rem 1.3rem;
    border-bottom: 0;
    border-right: 2px dashed rgba(28, 18, 38, 0.45);
  }

  .s-ponies__portrait {
    width: 100%;
    aspect-ratio: 1;
  }

  .s-ponies__pick {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
  }

  .s-ponies__validate {
    position: static;
    display: grid;
    place-items: center;
    align-self: stretch;
    justify-self: stretch;
    min-height: 3.4rem;
    border: 1px dashed rgba(28, 18, 38, 0.4);
    border-radius: 4px;
  }

  /* Printed in the box until the stamp lands on it, so an unvalidated ticket reads
     as waiting for its stamp and not as a missing picture. */
  .s-ponies__validate::before {
    content: "Not yet in the ring";
    grid-area: 1 / 1;
    padding: 0.5rem;
    font-family: var(--font-logo);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1.6;
    text-align: center;
    text-transform: uppercase;
    text-wrap: balance;
    color: rgba(28, 18, 38, 0.62);
    transition: opacity var(--dur-1) linear;
  }

  .s-ponies__card.is-selected .s-ponies__validate::before {
    opacity: 0;
  }

  .s-ponies__stamp {
    grid-area: 1 / 1;
    color: var(--velvet-hi);
    background: none;
    -webkit-mask: var(--rough) center / 9em 9em;
    mask: var(--rough) center / 9em 9em;
  }

  .s-ponies__main {
    padding: 1.4rem 1.6rem 1.5rem 1.5rem;
  }

  .s-ponies__specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .s-ponies__stage {
    aspect-ratio: 21 / 9;
    min-height: 24rem;
    max-height: calc(100svh - var(--nav-h) - 15.5rem);
  }

  .s-ponies__apron {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .s-ponies__board { grid-column: 1; justify-self: start; }
  .s-ponies__lever { grid-column: 2; }
  .s-ponies__patrons { grid-column: 3; justify-self: end; }
}

@media (min-width: 72em) {
  .s-ponies__roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Investors: the annual report of the most liquid company in Denmark.
   Cream stock, fine rules, immaculate charts, and not one honest number. */

.s-investors {
  /* The share price leaves through the top edge of the section, so the section
     lets its content out vertically and keeps clipping at the sides. */
  overflow: clip visible;
}

.s-investors__block {
  margin-top: var(--sp-8);
}

/* Cover ------------------------------------------------------------------------ */

.s-investors__cover {
  display: grid;
  gap: var(--sp-7);
}

.s-investors__masthead {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
  padding-block: 0.95rem 0.8rem;
  border-top: 3px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  font-variant-numeric: lining-nums;
  letter-spacing: var(--tracking-wide);
  line-height: 1.3;
  text-transform: uppercase;
}

.s-investors__masthead::before {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  border-top: 1px solid var(--fg);
}

.s-investors__masthead-item--end {
  text-align: right;
}

/* The bookplate: the gold mark on a night plate, straddling the masthead rules. */
.s-investors__emblem {
  position: relative;
  display: grid;
  place-items: center;
  margin-block: -1.9rem;
  padding: 0.7rem 0.95rem 0.65rem 1.05rem;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--gold-deep), inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(242, 193, 78, 0.5), var(--shadow-letterpress-sm);
}

.s-investors__emblem .fg-logo {
  font-size: 0.95rem;
}

.s-investors__head {
  gap: var(--sp-5);
}

/* On a phone the eyebrow runs to two lines, where a trailing star strays. */
.s-investors__head .eyebrow::after {
  display: none;
}

.s-investors__head .title {
  font-size: clamp(3.3rem, 1rem + 9.6vw, 10.5rem);
  line-height: 0.88;
}

/* Only where there is a second column to put it in. */
.s-investors__contents {
  display: none;
  align-self: end;
  padding-bottom: 0.4rem;
}

.s-investors__contents-title {
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--fg);
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.s-investors__contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.s-investors__contents a {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  align-items: baseline;
  min-height: 2.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-small);
  line-height: 1.25;
  color: var(--fg);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out);
}

.s-investors__contents a:hover {
  transform: translateX(0.4rem);
}

.s-investors__contents span {
  font-family: var(--font-display);
  color: var(--accent);
}

.s-investors__cover-rule {
  height: 5px;
  border-top: 1px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  transform-origin: 0 50%;
}

.s-investors.is-live .s-investors__cover-rule[data-reveal] {
  opacity: 1;
  translate: none;
  transform: scaleX(0);
  transition: transform 1.8s var(--ease-in-out) 0.25s;
}

.s-investors.is-live .s-investors__cover-rule[data-reveal].is-in {
  transform: none;
}

/* The bar that opens every note to the accounts ---------------------------------- */

.s-investors__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.s-investors__bar-num {
  min-width: 1em;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent);
}

.s-investors__bar-title {
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  line-height: 1.3;
  text-transform: uppercase;
}

.s-investors__bar-rule {
  flex: 1;
  min-width: 1.5rem;
  height: 4px;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--rule);
}

.s-investors__bar-aside {
  display: none;
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--muted);
}

/* Key figures ---------------------------------------------------------------------- */

.s-investors__kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.s-investors__kpi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label label" "value spark" "note note";
  align-content: start;
  align-items: end;
  gap: 0.7rem 0.75rem;
  padding: var(--sp-5) var(--sp-4) var(--sp-5) 0;
  border-bottom: 1px solid var(--rule);
}

.s-investors__kpi:nth-child(even) {
  padding: var(--sp-5) 0 var(--sp-5) var(--sp-4);
  border-left: 1px solid var(--rule);
}

.s-investors__kpi-label {
  grid-area: label;
  align-self: start;
  min-height: 2.6em;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent);
}

.s-investors__kpi-value {
  grid-area: value;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.75rem);
  font-variant-numeric: lining-nums;
  line-height: 0.9;
  white-space: nowrap;
  text-shadow: 0.035em 0.04em 0 var(--offset);
}

.s-investors__kpi-unit {
  font-family: var(--font-logo);
  font-size: 0.26em;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: none;
  text-transform: uppercase;
  color: var(--muted);
}

.s-investors__spark {
  grid-area: spark;
  width: clamp(2.6rem, 9vw, 6rem);
  height: auto;
  margin-bottom: 0.2rem;
  overflow: visible;
}

.s-investors__spark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

.s-investors__spark circle {
  fill: var(--accent);
}

.s-investors.is-live .s-investors__kpi .s-investors__spark path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s var(--ease-in-out) calc(var(--i, 0) * var(--stagger) + 0.35s);
}

.s-investors.is-live .s-investors__kpi .s-investors__spark circle {
  opacity: 0;
  transition: opacity 0.3s linear calc(var(--i, 0) * var(--stagger) + 1.7s);
}

.s-investors.is-live .s-investors__kpi.is-in .s-investors__spark path {
  stroke-dashoffset: 0;
}

.s-investors.is-live .s-investors__kpi.is-in .s-investors__spark circle {
  opacity: 1;
}

.s-investors__kpi-note {
  grid-area: note;
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
}

/* The chart that only goes up ---------------------------------------------------- */

.s-investors__chart {
  position: relative;
  margin: var(--sp-8) 0 0;
  padding: clamp(1.1rem, 3.2vw, 2.75rem);
  background: var(--grain), var(--surface);
  border: 1px solid var(--fg);
  box-shadow: var(--shadow-letterpress);
}

.s-investors__chart::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

.s-investors__chart-head {
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
  max-width: 44rem;
  margin-bottom: var(--sp-6);
}

.s-investors__chart-head .s-investors__bar {
  width: 100%;
  margin-bottom: 0;
}

.s-investors__chart-title {
  font-size: var(--fs-h3);
  line-height: 1.02;
}

.s-investors__ticker {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.5em 0.9em;
  border: 1px solid var(--fg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: var(--shadow-letterpress-sm);
}

.s-investors__tri {
  display: inline-block;
  width: 0;
  height: 0;
  border-inline: 0.36em solid transparent;
  border-bottom: 0.62em solid var(--peacock);
}

.s-investors__frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "ylabel ylabel" "yticks plot" ". xaxis" "notes notes";
}

.s-investors__axis {
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--muted);
}

.s-investors__axis--y {
  grid-area: ylabel;
  margin-bottom: var(--sp-4);
}

.s-investors__yticks {
  grid-area: yticks;
  position: relative;
  width: 4rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}

.s-investors__yticks li {
  position: absolute;
  top: calc(var(--at) * 1%);
  right: 0.55rem;
  white-space: nowrap;
  transform: translateY(-50%);
}

.s-investors__yticks span {
  display: block;
}

.s-investors__plot {
  grid-area: plot;
  position: relative;
  aspect-ratio: 100 / 86;
  border-bottom: 1.5px solid var(--fg);
  border-left: 1.5px solid var(--fg);
  cursor: crosshair;
  touch-action: pan-y;
}

.s-investors__plot-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.s-investors__grid line {
  stroke: var(--rule);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  vector-effect: non-scaling-stroke;
}

.s-investors__leaders {
  display: none;
}

.s-investors__leaders line,
.s-investors__leaders polyline {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.s-investors__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* With the engine running, the live line in the overlay (which can leave the plot)
   replaces the printed one. */
.s-investors.is-live .s-investors__line {
  opacity: 0;
}

.s-investors__marker,
.s-investors__note-num {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-logo);
  font-size: 0.6875rem;
  font-weight: 800;
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.s-investors__marker {
  position: absolute;
  top: calc(var(--y) * 1%);
  left: calc(var(--x) * 1%);
  z-index: 3; /* above the live line, which is drawn over the whole section */
  margin: -0.7rem 0 0 -0.7rem;
  box-shadow: 0 0 0 3px var(--surface);
}

.s-investors__notes {
  grid-area: notes;
  display: grid;
  gap: 0.8rem;
  margin: var(--sp-5) 0 0;
}

.s-investors__note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  line-height: 1.35;
}

.s-investors__note-num {
  margin-top: 0.15em;
}

.s-investors.is-live [data-marker],
.s-investors.is-live [data-note],
.s-investors.is-live [data-leader] {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-overshoot);
}

.s-investors.is-live [data-marker] {
  transform: scale(0.2);
}

.s-investors.is-live [data-marker].is-on,
.s-investors.is-live [data-note].is-on,
.s-investors.is-live [data-leader].is-on {
  opacity: 1;
  transform: none;
}

.s-investors__xaxis {
  grid-area: xaxis;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.3;
  white-space: nowrap;
}

.s-investors__xaxis .s-investors__axis {
  text-align: center;
  white-space: normal;
}

/* Crosshair. --x and --y are pixels inside the plot, written by the module. */
.s-investors__cross {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-1) linear;
}

.s-investors__cross.is-on {
  opacity: 1;
}

.s-investors__cross-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--fg);
  transform: translateX(var(--x, 0));
}

.s-investors__cross-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.8rem;
  height: 0.8rem;
  margin: -0.4rem 0 0 -0.4rem;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  transform: translate(var(--x, 0), var(--y, 0));
}

.s-investors__tip {
  position: absolute;
  top: 0.6rem;
  left: 0;
  display: grid;
  gap: 0.3rem;
  width: max-content;
  padding: 0.6rem 0.8rem 0.65rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.1;
  box-shadow: 4px 4px 0 var(--brass);
  transform: translateX(var(--tip-x, 0));
}

.s-investors__tip-sym {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.s-investors__tip-sym .s-investors__tri {
  border-bottom-color: var(--approved);
}

.s-investors__tip-value {
  font-size: 1.0625rem;
  font-weight: 500;
}

.s-investors__tip-dir {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9aecb;
}

.s-investors__chart-foot {
  display: grid;
  gap: 0.35rem;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
}

/* The line once it has left the plot, and the pony riding its tip. One SVG laid
   over the whole section, in section pixels. */
.s-investors__escape {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
  pointer-events: none;
  visibility: hidden;
}

.s-investors.is-live .s-investors__escape {
  visibility: visible;
}

.s-investors__escape-line {
  fill: none;
  stroke: var(--velvet);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.s-investors__rider {
  opacity: 0;
}

.s-investors__rider.is-aboard {
  opacity: 1;
}

/* Colours and a paper-coloured outline that read on the report and on the darker
   section above it, where the pair comes to rest. */
.s-investors__rocket,
.s-investors__jockey {
  stroke: var(--cream);
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.s-investors__rocket {
  color: var(--velvet-hi);
  stroke-width: 5;
}

.s-investors__jockey {
  color: var(--gold-deep);
  stroke-width: 9;
}

.s-investors__flame {
  fill: #e58a2e;
  stroke: var(--gold);
  stroke-width: 0.8;
  transform-origin: 0 1px;
}

.s-investors__rider.is-burning .s-investors__flame {
  animation: investors-flame 0.16s linear infinite alternate;
}

@keyframes investors-flame {
  from { transform: scale(0.8, 0.7); }
  to { transform: scale(1.15, 1.25); }
}

/* Use of funds --------------------------------------------------------------------- */

.s-investors__funds-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}

.s-investors__donut {
  position: relative;
  width: min(100%, 23rem);
  aspect-ratio: 1;
  margin-inline: auto;
}

.s-investors__donut svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.s-investors__donut-ring {
  fill: none;
  stroke: var(--fg);
  stroke-width: 0.6;
  opacity: 0.55;
}

.s-investors__seg {
  fill: none;
  stroke: var(--tone);
  stroke-width: 34;
  stroke-dasharray: var(--dash) 100;
  cursor: pointer;
  pointer-events: stroke;
  transition: transform var(--dur-2) var(--ease-overshoot), opacity var(--dur-2) linear;
}

.s-investors.is-live .s-investors__donut .s-investors__seg {
  stroke-dasharray: 0 100;
  transition:
    stroke-dasharray 1s var(--ease-in-out) calc(var(--i) * 170ms + 250ms),
    transform var(--dur-2) var(--ease-overshoot),
    opacity var(--dur-2) linear;
}

.s-investors.is-live .s-investors__donut.is-in .s-investors__seg {
  stroke-dasharray: var(--dash) 100;
}

.s-investors__seg.is-up {
  transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px));
}

.s-investors__funds.has-active .s-investors__seg:not(.is-up) {
  opacity: 0.32;
}

.s-investors__donut-centre {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
  padding: 27%;
  text-align: center;
  pointer-events: none;
}

.s-investors__donut-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 3vw, 2.9rem);
  font-variant-numeric: lining-nums;
  line-height: 0.9;
  white-space: nowrap;
}

.s-investors__donut-label {
  font-family: var(--font-logo);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
  text-wrap: balance;
}

.s-investors__legend {
  margin: 0;
  border-top: 2px solid var(--fg);
}

.s-investors__legend li {
  border-bottom: 1px solid var(--rule);
}

.s-investors__fund {
  display: grid;
  grid-template-columns: auto minmax(0, max-content) minmax(1rem, 1fr) auto;
  align-items: baseline;
  gap: 0.8rem;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.75rem 0.25rem;
  line-height: 1.25;
  text-align: left;
  transition: transform var(--dur-2) var(--ease-out);
}

.s-investors__fund:hover,
.s-investors__fund.is-up {
  transform: translateX(0.5rem);
}

.s-investors__swatch {
  align-self: center;
  width: 0.95rem;
  height: 0.95rem;
  background: var(--tone);
  box-shadow: 2px 2px 0 var(--offset);
  transition: transform var(--dur-2) var(--ease-overshoot);
}

.s-investors__fund.is-up .s-investors__swatch {
  transform: scale(1.35) rotate(45deg);
}

.s-investors__fund-dots {
  border-bottom: 1px dotted var(--muted);
  transform: translateY(-0.28em);
}

.s-investors__fund-share {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.s-investors__funds-note {
  max-width: 34rem;
  margin-top: var(--sp-5);
  padding-left: var(--sp-4);
  border-left: 3px solid var(--accent);
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
}

/* The strategic rum reserve --------------------------------------------------------- */

/* --level is the rum level as a fraction of the cask (1 is full). 384 is the
   height of the cask's interior in the drawing's own units. */
.s-investors__reserve {
  --level: 0.62;
  --level-time: 2.4s;
}

.s-investors.is-live .s-investors__reserve:not(.is-filled) {
  --level: 0.07;
}

.s-investors__reserve.is-settled {
  --level-time: 0.9s;
}

.s-investors__reserve-grid {
  display: grid;
  gap: var(--sp-7);
}

.s-investors__plate {
  position: relative;
  width: min(100%, 27rem);
  margin-inline: auto;
  padding: clamp(0.9rem, 3vw, 1.6rem) clamp(0.9rem, 3vw, 1.6rem) 0.9rem;
  background: var(--grain), var(--surface);
  border: 1px solid var(--fg);
  outline: 1px solid var(--rule);
  outline-offset: -6px;
  box-shadow: var(--shadow-letterpress);
}

.s-investors__barrel {
  width: 100%;
  height: auto;
  overflow: visible;
}

.s-investors__level {
  transform: translateY(calc((1 - var(--level)) * 384px));
  transition: transform var(--level-time) var(--ease-in-out);
}

.s-investors__wave {
  animation: investors-wave 3.6s linear infinite paused;
}

.s-investors__wave--shine {
  stroke: #ffe2a3;
  stroke-opacity: 0.8;
  stroke-width: 1.6;
}

.s-investors__wisps path {
  fill: none;
  stroke: var(--paper-ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 3 5;
  opacity: 0.7;
  animation: investors-wisp 4.2s var(--ease-in-out) infinite paused;
}

.s-investors__wisps path:nth-child(2) { animation-delay: -1.4s; }
.s-investors__wisps path:nth-child(3) { animation-delay: -2.8s; }

.s-investors__reserve.is-watching .s-investors__wave,
.s-investors__reserve.is-watching .s-investors__wisps path {
  animation-play-state: running;
}

@keyframes investors-wave {
  to { transform: translateX(-32px); }
}

@keyframes investors-wisp {
  0% { opacity: 0; transform: translateY(9px); }
  45% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-13px); }
}

.s-investors__level-word {
  font-family: var(--font-logo);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  fill: var(--paper-ink);
  stroke: #dcc592;
  stroke-width: 5px;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.s-investors__ref-line {
  fill: none;
  stroke: var(--paper-ink);
  stroke-width: 1.2;
}

.s-investors__refs circle {
  fill: var(--surface);
  stroke: var(--paper-ink);
  stroke-width: 1.2;
}

.s-investors__refs text {
  font-family: var(--font-text);
  font-size: 16px;
  font-style: italic;
  fill: var(--paper-ink);
  text-anchor: middle;
  dominant-baseline: central;
}

/* The founder's share is bracketed from just under "full" down to the surface,
   so the bracket grows as the level falls. */
.s-investors__founder-span {
  transform-origin: 0 124px;
  transform: scaleY(calc(1 - var(--level) - 0.0208));
  transition: transform var(--level-time) var(--ease-in-out);
}

.s-investors__founder-foot {
  transform: translateY(calc((1 - var(--level)) * 384px - 8px));
  transition: transform var(--level-time) var(--ease-in-out);
}

.s-investors__founder-mark {
  transform: translateY(calc((1 - var(--level)) * 192px - 4px));
  transition: transform var(--level-time) var(--ease-in-out);
}

.s-investors__plate-caption {
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
}

.s-investors__plate-caption span {
  margin-right: 0.5em;
  font-family: var(--font-logo);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--fg);
}

.s-investors__reserve-title {
  font-size: var(--fs-h2);
  line-height: 0.96;
  text-shadow: 0.04em 0.045em 0 var(--offset);
}

.s-investors__key {
  margin: var(--sp-6) 0 0;
  border-top: 2px solid var(--fg);
}

.s-investors__key li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}

.s-investors__key-mark {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--fg);
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1;
}

.s-investors__key b,
.s-investors__cask b {
  font-family: var(--font-logo);
  font-size: 0.7em;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.s-investors__cask {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
  margin-top: var(--sp-6);
  padding: 1.2rem 1.3rem 1.25rem;
  border: 1px dashed var(--fg);
  background: rgba(255, 250, 240, 0.6);
  line-height: 1.4;
}

.s-investors__cask-icon {
  margin-top: 0.1rem;
  font-size: 2.6rem;
  color: var(--accent);
}

.s-investors__cask-stamp {
  position: absolute;
  top: -0.9rem;
  right: 0.8rem;
  font-size: 0.72rem;
  background: var(--bg);
}

/* The letter, and the notes that follow it --------------------------------------------- */

.s-investors__close-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: start;
}

.s-investors__letter {
  position: relative;
  display: grid;
  gap: var(--sp-5);
  padding: clamp(1.5rem, 4.5vw, 3.5rem);
  background: var(--grain), var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(28, 18, 38, 0.25), 0 22px 36px -22px rgba(63, 36, 4, 0.55);
  transform: rotate(-0.6deg);
}

.s-investors__letterhead {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding-bottom: 1.1rem;
  border-bottom: 3px double var(--fg);
}

.s-investors__letterhead .fg-logo {
  font-size: 1.35rem;
}

.s-investors__letterhead-line {
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.s-investors__letterhead-line i {
  width: 0.9em;
  aspect-ratio: 1;
  background: var(--accent);
  clip-path: var(--star);
}

.s-investors__letter-body {
  display: grid;
  gap: 0.9em;
  max-width: 60ch;
}

.s-investors__salutation {
  font-size: var(--fs-lede);
  font-style: italic;
  line-height: 1.2;
}

.s-investors__signoff {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
}

.s-investors__signature {
  display: grid;
  gap: 0.5rem;
}

.s-investors__signature-hand {
  justify-self: start;
  padding: 0.15em 0.3em 0.1em 0;
  font-size: clamp(2.6rem, 2rem + 3vw, 3.9rem);
  color: var(--blueprint);
  rotate: -3deg;
}

.s-investors.is-live .s-investors__letter .s-investors__signature-hand {
  clip-path: inset(-30% 100% -30% 0);
  transition: clip-path 1.5s var(--ease-in-out) 0.6s;
}

.s-investors.is-live .s-investors__letter.is-in .s-investors__signature-hand {
  clip-path: inset(-30% -6% -30% 0);
}

.s-investors__signature-line {
  max-width: 17rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--fg);
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.s-investors__seal {
  transform: rotate(9deg);
}

.s-investors__matters {
  display: grid;
  gap: var(--sp-5);
}

.s-investors__box {
  padding: 1.2rem 1.35rem 1.35rem;
  border: 1px solid var(--fg);
  border-top-width: 3px;
  background: rgba(255, 250, 240, 0.6);
}

.s-investors__box-title {
  margin-bottom: 0.9rem;
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--accent);
}

.s-investors__box-text {
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  line-height: 1.45;
}

.s-investors__risk {
  margin: 0;
}

.s-investors__risk div {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}

.s-investors__risk dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-investors__risk dd {
  margin: 0;
}

.s-investors__risk div:first-child dd {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: 1.05;
}

.s-investors__matter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem 0.7rem;
  align-items: baseline;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
}

.s-investors__matter-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.s-investors__matter-item {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: 1.1;
  text-decoration: line-through transparent 2px;
  transition: text-decoration-color var(--dur-3) linear, color var(--dur-3) linear;
}

.s-investors__outstanding[data-state="approved"] .s-investors__matter-item {
  color: var(--muted);
  text-decoration-color: var(--accent);
}

.s-investors__matter-status {
  grid-column: 2;
  justify-self: start;
}

.s-investors__matter-stamp {
  font-size: 0.85rem;
}

/* The fine print arrives with approval (in the finale, far below, or at once for a
   returning visitor). On the narrowest phones it has a line of its own under the stamp. */
.s-investors__matter-fine {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--muted);
}

/* From 360px there is room beside the stamp, on the stamp's own line, and there its
   arrival does not make the report any taller. */
@media (min-width: 22.5em) {
  .s-investors__matter-fine {
    display: inline;
    margin: 0 0 0 0.9rem;
    white-space: nowrap;
  }
}

.s-investors__disclaimer {
  max-width: 46rem;
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--fg);
  font-size: 0.8125rem; /* fine print, but a punchline: it has to be readable on a phone */
  line-height: 1.5;
  color: var(--muted);
}

/* Wider than a phone ------------------------------------------------------------------- */

@media (min-width: 40em) {
  .s-investors__kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .s-investors__kpi,
  .s-investors__kpi:nth-child(even) {
    padding: var(--sp-5) var(--sp-5) var(--sp-6);
    border-left: 1px solid var(--rule);
  }

  .s-investors__kpi:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .s-investors__kpi-label {
    min-height: 0;
  }

  .s-investors__bar-aside {
    display: block;
  }

  .s-investors__head .eyebrow::after {
    display: block;
  }

  .s-investors__plot {
    aspect-ratio: 100 / 60;
  }

  .s-investors__yticks {
    width: 4.4rem;
    font-size: 0.75rem;
  }

  .s-investors__xaxis {
    font-size: 0.75rem;
  }

  .s-investors__chart-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem var(--sp-6);
  }
}

@media (min-width: 60em) {
  .s-investors__block {
    margin-top: var(--sp-9);
  }

  .s-investors__chart {
    margin-top: var(--sp-9);
  }

  .s-investors__masthead {
    font-size: var(--fs-label);
  }

  .s-investors__cover {
    grid-template-columns: minmax(0, 1fr) 15.5rem;
    column-gap: var(--sp-8);
  }

  .s-investors__masthead,
  .s-investors__cover-rule {
    grid-column: 1 / -1;
  }

  .s-investors__contents {
    display: block;
  }

  .s-investors__emblem .fg-logo {
    font-size: 1.15rem;
  }

  .s-investors__plot {
    aspect-ratio: 100 / 50;
  }

  /* Call-outs sit inside the plot on leader lines. */
  .s-investors__leaders {
    display: block;
  }

  .s-investors__notes {
    grid-area: plot;
    position: relative;
    display: block;
    margin: 0;
    pointer-events: none;
  }

  .s-investors__note {
    position: absolute;
    bottom: calc(100% - var(--y) * 1%);
    left: calc(var(--x) * 1%);
    display: block;
    width: min(13.5rem, 21%);
    padding: 0.1rem 0 0.25rem 0.7rem;
    border-left: 1px solid var(--fg);
    font-size: var(--fs-small);
    line-height: 1.28;
  }

  .s-investors__note--left {
    right: calc(100% - var(--x) * 1%);
    left: auto;
    padding: 0.1rem 0.7rem 0.25rem 0;
    border-right: 1px solid var(--fg);
    border-left: 0;
    text-align: right;
  }

  .s-investors__note--side {
    top: calc(var(--y) * 1%);
    bottom: auto;
    width: 15.5%;
  }

  .s-investors__note-num {
    display: none;
  }

  .s-investors__note-text {
    background: var(--surface);
    box-shadow: 0 0 0 0.2rem var(--surface);
  }

  .s-investors__funds-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--sp-8);
  }

  .s-investors__reserve-grid {
    grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
    gap: var(--sp-8);
    align-items: center;
  }

  .s-investors__close-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp-8);
  }

  .s-investors__matters {
    padding-top: var(--sp-5);
  }
}
/* FAQ: Frequently Avoided Questions. An earnest help centre for a company with
   nothing to help with. */

.s-faq {
  --lane: 8.75rem;
  --bell: 6.25rem;
  --faq-gap: clamp(0.75rem, 2vw, 1.5rem);
  --faq-indent: calc(1.5rem + var(--faq-gap));
  padding-top: calc(var(--lane) + var(--sp-8));
}

/* The counter along the top of the section. The pony with the sign trots along it. */
.s-faq__lane {
  position: absolute;
  inset: 0 0 auto;
  height: var(--lane);
  pointer-events: none;
}

.s-faq__counter {
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  opacity: 0.7;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.s-faq__runner {
  position: absolute;
  bottom: 4px;
  left: 0;
  animation: faq-run var(--run, 9s) linear both;
}

.s-faq__runner.is-still {
  left: 50%;
  animation: none;
  transform: translateX(-50%);
}

.s-faq__trot {
  display: grid;
  justify-items: center;
  transform-origin: 50% 100%;
  animation: faq-trot 0.34s var(--ease-in-out) infinite alternate;
}

.s-faq__runner.is-still .s-faq__trot {
  animation: none;
}

.s-faq__placard {
  position: relative;
  width: max-content;
  max-width: min(15.5rem, 62vw);
  margin-bottom: 1.15rem;
  padding: 0.6rem 0.85rem;
  background: var(--grain-dark), var(--cream);
  color: var(--paper-ink);
  border: 2px solid var(--paper-ink);
  outline: 1px solid var(--paper-ink);
  outline-offset: -5px;
  box-shadow: 3px 3px 0 var(--velvet);
  font-family: var(--font-logo);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  transform: rotate(-2.5deg);
}

/* The pole, down into the pony's back. */
.s-faq__placard::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - 1.5px);
  width: 3px;
  height: 2.1rem;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
}

.s-faq__pony {
  position: relative;
  width: 1.24em;
  font-size: 3.4rem;
  color: var(--gold);
}

@keyframes faq-run {
  from { transform: translateX(-100%); }
  to { transform: translateX(100vw); }
}

@keyframes faq-trot {
  from { transform: translateY(0) rotate(-1.6deg); }
  to { transform: translateY(-0.32rem) rotate(1.6deg); }
}

/* Header and the help desk ------------------------------------------------------------- */

.s-faq__title {
  font-size: clamp(2.9rem, 1.1rem + 7.6vw, 8rem);
}

/* The bell stands on the counter, so whoever rings it is looking at the lane. */
.s-faq__desk {
  position: absolute;
  inset: 0 0 auto;
  height: var(--lane);
  pointer-events: none;
}

.s-faq__desk-inner {
  position: relative;
  height: 100%;
}

.s-faq__bell {
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  color: var(--fg);
  pointer-events: auto;
}

.s-faq__bell-art {
  width: var(--bell);
  height: auto;
  overflow: visible;
}

.s-faq__bell-label {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: var(--tracking-caps);
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
}

.s-faq__bell:hover .s-faq__bell-label {
  color: var(--gold-hi);
}

.s-faq__bell:active .s-faq__bell-plunger {
  transform: translateY(6px);
}

.s-faq__bell-dome,
.s-faq__bell-plunger,
.s-faq__glint,
.s-faq__ding path {
  transform-box: fill-box;
}

.s-faq__bell-dome {
  transform-origin: 50% 100%;
}

.s-faq__ding path {
  fill: none;
  stroke: var(--gold-hi);
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: 0;
  transform-origin: 50% 50%;
}

/* First sight: faq.js lets the bell give one unprompted wobble. Nobody has pressed
   it, so no plunger and no ding, only a glint on the dome. These rules stay above
   the ringing ones, so a real ring always wins. */
.s-faq__glint {
  opacity: 0;
  transform-origin: 50% 50%;
}

.s-faq__bell.is-greeting .s-faq__bell-dome {
  animation: faq-greet 1.1s var(--ease-in-out);
}

.s-faq__bell.is-greeting .s-faq__glint {
  animation: faq-glint 0.9s var(--ease-out) 0.2s both;
}

@keyframes faq-greet {
  0%, 100% { transform: rotate(0); }
  18% { transform: rotate(-6deg); }
  38% { transform: rotate(5deg); }
  58% { transform: rotate(-3deg); }
  78% { transform: rotate(1.5deg); }
}

@keyframes faq-glint {
  0% { opacity: 0; transform: scale(0.2) rotate(-40deg); }
  35% { opacity: 1; transform: scale(1.2) rotate(0deg); }
  100% { opacity: 0; transform: scale(0.4) rotate(50deg); }
}

.s-faq__bell.is-ringing .s-faq__bell-dome {
  animation: faq-dome 0.55s var(--ease-out);
}

.s-faq__bell.is-ringing .s-faq__bell-plunger {
  animation: faq-plunge 0.28s var(--ease-out);
}

.s-faq__bell.is-ringing .s-faq__ding path {
  animation: faq-ding 0.7s var(--ease-out);
}

.s-faq__bell.is-ringing .s-faq__ding path:nth-child(even) {
  animation-delay: 0.09s;
}

@keyframes faq-dome {
  0% { transform: rotate(0); }
  20% { transform: rotate(-4deg) scaleY(0.95); }
  45% { transform: rotate(3deg); }
  70% { transform: rotate(-1.5deg); }
  100% { transform: rotate(0); }
}

@keyframes faq-plunge {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(7px); }
}

@keyframes faq-ding {
  0% { opacity: 0; transform: scale(0.7); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.35); }
}

.s-faq__bell-count {
  position: absolute;
  top: calc(100% + 2rem);
  right: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The articles ------------------------------------------------------------------------- */

.s-faq__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin-top: var(--sp-8);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.s-faq__meta i {
  width: 0.8rem;
  aspect-ratio: 1;
  background: var(--gold);
  clip-path: var(--star);
}

.s-faq__item {
  --arrival: calc(var(--row, 0) * 60ms);
  position: relative;
  border-bottom: 1px solid var(--rule);
  transition: opacity var(--dur-3) var(--ease-out) var(--arrival);
}

/* First sight: the articles arrive one after another (--row, set by faq.js), their
   stars turning. faq.js stages them only while they are out of sight and lets them go
   when the list comes into view, so without script, for calm visitors, and if the
   module fails they are simply in place. The arrival uses the individual translate,
   rotate and scale properties: the star keeps `transform` for its hover and open states.
   An article is a link target (#faq-...), so its own box never moves: the summary and
   the panel do the travelling, and a jump to it lands where it will stay. */
.s-faq__summary,
.s-faq__panel {
  transition: translate var(--dur-3) var(--ease-out) var(--arrival);
}

.s-faq__list.is-staged .s-faq__item {
  opacity: 0;
  transition: none;
}

.s-faq__list.is-staged :is(.s-faq__summary, .s-faq__panel) {
  translate: 0 1.75rem;
  transition: none;
}

.s-faq__list.is-staged .s-faq__star {
  rotate: -216deg;
  scale: 0.3;
  transition: none;
}

/* The gold rule of the open article. */
.s-faq__item::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto;
  height: 3px;
  background: var(--foil);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-3) var(--ease-out);
}

.s-faq__item[open]:not(.is-closing)::before {
  transform: none;
}

.s-faq__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--faq-gap);
  min-height: 4.5rem;
  padding: clamp(1.1rem, 2.4vw, 1.8rem) 0.25rem;
  cursor: pointer;
  list-style: none;
}

.s-faq__summary::-webkit-details-marker {
  display: none;
}

.s-faq__star {
  width: 1.5rem;
  aspect-ratio: 1;
  background: var(--gold);
  clip-path: var(--star);
  opacity: 0.5;
  transition:
    transform var(--dur-3) var(--ease-overshoot),
    opacity var(--dur-2) linear,
    rotate var(--dur-4) var(--ease-out) var(--arrival),
    scale var(--dur-3) var(--ease-overshoot) var(--arrival);
}

.s-faq__num {
  display: none;
  width: 1.7rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--muted);
}

.s-faq__q {
  font-size: clamp(1.4rem, 1.05rem + 1.8vw, 2.5rem);
  line-height: 1.06;
  color: var(--fg);
  text-wrap: balance;
  transition: transform var(--dur-2) var(--ease-out);
}

.s-faq__turn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform var(--dur-3) var(--ease-overshoot), background-color var(--dur-2) linear, color var(--dur-2) linear;
}

.s-faq__summary:hover .s-faq__q {
  transform: translateX(0.4rem);
}

.s-faq__summary:hover .s-faq__star {
  opacity: 1;
  transform: rotate(72deg);
}

.s-faq__item[open]:not(.is-closing) .s-faq__star {
  opacity: 1;
  transform: rotate(216deg) scale(1.3);
}

.s-faq__item[open]:not(.is-closing) .s-faq__turn {
  background-color: var(--gold);
  color: var(--ink);
  transform: rotate(135deg);
}

.s-faq__panel {
  overflow: clip;
}

.s-faq__answer {
  display: grid;
  gap: 1em;
  max-width: calc(62ch + var(--faq-indent));
  padding: 0 0.25rem clamp(1.6rem, 3vw, 2.4rem) var(--faq-indent);
}

.s-faq__answer p {
  line-height: 1.55;
}

/* "No.", set as the founder's statement is set elsewhere. */
.s-faq__answer .s-faq__no {
  justify-self: start;
  padding: 0 0.06em 0.1em 0;
  font-family: var(--font-display);
  font-size: clamp(6rem, 2rem + 20vw, 16rem);
  line-height: 0.82;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0.03em 0 rgba(0, 0, 0, 0.6));
  transform-origin: 20% 60%;
}

.s-faq__item[open] .s-faq__no {
  animation: fg-stamp-slam 0.62s var(--ease-slam) 0.12s both;
}

/* The pronunciation, as a dictionary would set it. */
.s-faq__entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 1em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid var(--rule);
}

.s-faq__headword {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1;
}

.s-faq__entry-ipa {
  font-size: var(--fs-h4);
  color: var(--gold);
}

.s-faq__cta {
  margin-top: 0.4rem;
}

@media (min-width: 48em) {
  .s-faq {
    --lane: 9.5rem;
    --bell: 8rem;
    --faq-indent: calc(1.5rem + 1.7rem + 2 * var(--faq-gap));
  }

  .s-faq__summary {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .s-faq__num {
    display: block;
  }

  .s-faq__placard {
    font-size: 0.75rem;
  }

  .s-faq__pony {
    font-size: 4rem;
  }
}
/* Finale: the deed of nominal surrender, the ballot with a refusal button that will
   not be clicked, and the ceremony when consent is finally given.
   State lives on the section root: data-consent="pending | approved", plus
   .is-live (module running), .is-ceremony (the show), .is-withdrawing. */

.s-finale {
  padding-bottom: clamp(6rem, 12vw, 11rem);
}

.s-finale__head {
  max-width: 72rem;
}

.s-finale__title {
  font-size: clamp(2.1rem, 9.2vw, 6rem);
  line-height: 0.98;
}

.s-finale__title span {
  display: block;
}

.s-finale__stage {
  display: grid;
  justify-items: center;
  gap: clamp(3rem, 8vw, 4.5rem);
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

/* The exhibit: the deed under a single lamp ------------------------------------- */

.s-finale__exhibit {
  position: relative;
  isolation: isolate;
  width: min(100%, 38rem);
}

/* The pool of light on the velvet around the deed. */
.s-finale__exhibit::before {
  content: "";
  position: absolute;
  inset: -14% -32%;
  z-index: -2;
  background: radial-gradient(closest-side, rgba(255, 224, 160, 0.34), rgba(255, 224, 160, 0.1) 55%, transparent);
  pointer-events: none;
}

/* The glow of an approved deed. Only its opacity ever animates. */
.s-finale__exhibit::after {
  content: "";
  position: absolute;
  inset: 1.5rem 1rem 4.5rem;
  z-index: -1;
  border-radius: 1rem;
  box-shadow: 0 0 5rem 2.2rem rgba(246, 215, 122, 0.6), 0 0 11rem 5rem rgba(242, 193, 78, 0.32);
  opacity: 0;
  transition: opacity var(--dur-4) var(--ease-out);
  pointer-events: none;
}

.s-finale[data-consent="approved"] .s-finale__exhibit::after {
  opacity: 0.55;
}

.s-finale.is-ceremony .s-finale__exhibit::after {
  animation: finale-glow 1.3s var(--ease-in-out) 0.4s infinite alternate both;
}

/* The lamp's cone, falling from above the heading onto the deed. */
.s-finale__beam {
  position: absolute;
  left: 50%;
  bottom: 62%;
  z-index: -2;
  width: 190%;
  height: 78rem;
  translate: -50% 0;
  background: linear-gradient(180deg, rgba(255, 236, 190, 0) 0%, rgba(255, 236, 190, 0.06) 30%, rgba(255, 232, 176, 0.26) 100%);
  clip-path: polygon(45% 0, 55% 0, 90% 100%, 10% 100%);
  /* Soft sides: the cone is brightest along its axis. */
  -webkit-mask: linear-gradient(90deg, transparent 12%, #000 42%, #000 58%, transparent 88%);
  mask: linear-gradient(90deg, transparent 12%, #000 42%, #000 58%, transparent 88%);
  pointer-events: none;
}

.s-finale.is-onscreen .s-finale__beam {
  animation: fg-flicker 5.2s linear infinite;
}

.s-finale__deed {
  --edge: 16px;
  --seal-size: clamp(5.25rem, 21vw, 7rem);
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(1.1rem, 4.4vw, 2.6rem) clamp(0.9rem, 4.6vw, 3rem) clamp(0.9rem, 3vw, 1.6rem);
  text-align: center;
  background:
    var(--grain-dark),
    radial-gradient(110% 60% at 50% 26%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 70%),
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgba(168, 116, 26, 0.22) 100%),
    linear-gradient(180deg, #fcf3df, var(--parchment));
  border: var(--edge) solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cdefs%3E%3Cg id='e' fill='none' stroke-width='.7'%3E%3Cpath stroke='%23a8741a' d='M24 12Q30 -6 36 12T48 12M24 12Q30 30 36 12T48 12'/%3E%3Cpath stroke='%238a1027' d='M24 12Q30 2 36 12T48 12M24 12Q30 22 36 12T48 12'/%3E%3Cpath stroke='%23a8741a' d='M24 3C28 3 32 21 36 21S44 3 48 3M24 21C28 21 32 3 36 3S44 21 48 21'/%3E%3Cpath stroke='%238a1027' stroke-opacity='.7' d='M24 7.5C28 7.5 32 16.5 36 16.5S44 7.5 48 7.5M24 16.5C28 16.5 32 7.5 36 7.5S44 16.5 48 16.5'/%3E%3Cpath stroke='%231c1226' stroke-opacity='.6' d='M24 1.2H48M24 22.8H48'/%3E%3C/g%3E%3Cg id='c' fill='none' stroke-width='.7'%3E%3Cpath stroke='%231c1226' stroke-opacity='.6' d='M24 1.2H1.2V24M24 22.8H22.8V24'/%3E%3Ccircle cx='12' cy='12' r='9' stroke='%23a8741a'/%3E%3Ccircle cx='12' cy='12' r='6.6' stroke='%238a1027'/%3E%3Cpath fill='%238a1027' stroke='none' d='M12 6.9l1.4 3.4 3.7.3-2.8 2.4.9 3.6-3.2-2-3.2 2 .9-3.6-2.8-2.4 3.7-.3z'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23e'/%3E%3Cuse href='%23e' y='48'/%3E%3Cuse href='%23e' transform='rotate(90 36 36)'/%3E%3Cuse href='%23e' transform='rotate(-90 36 36)'/%3E%3Cuse href='%23c'/%3E%3Cuse href='%23c' transform='rotate(90 36 36)'/%3E%3Cuse href='%23c' transform='rotate(180 36 36)'/%3E%3Cuse href='%23c' transform='rotate(-90 36 36)'/%3E%3C/svg%3E") 24 / var(--edge) round;
  outline: 0;
  box-shadow: 0 0 0 1px rgba(28, 18, 38, 0.55), 0 2px 0 rgba(0, 0, 0, 0.4), var(--shadow-deep);
  transform: rotate(-1.1deg);
}

.s-finale.is-ceremony .s-finale__deed {
  animation: finale-jolt 0.5s var(--ease-out) 0.34s both;
}

/* The engraved rosette behind the text, turning very slowly. */
.s-finale__watermark {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.s-finale__rosette {
  position: absolute;
  left: 50%;
  top: 43%;
  width: max(128%, 30rem);
  max-width: none;
  translate: -50% -50%;
  color: rgba(168, 116, 26, 0.3);
}

.s-finale.is-onscreen .s-finale__rosette {
  animation: fg-spin 260s linear infinite;
}

.s-finale__corner {
  position: absolute;
  font-size: clamp(1.6rem, 6vw, 2.5rem);
  color: var(--gold-deep);
  pointer-events: none;
}

.s-finale__corner--tl { top: 0.3rem; left: 0.3rem; }
.s-finale__corner--tr { top: 0.3rem; right: 0.3rem; rotate: 90deg; }
.s-finale__corner--br { bottom: 0.3rem; right: 0.3rem; rotate: 180deg; }
.s-finale__corner--bl { bottom: 0.3rem; left: 0.3rem; rotate: 270deg; }

.s-finale__crest {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--velvet);
}

.s-finale__crest .fg-logo {
  font-size: clamp(0.85rem, 3vw, 1.1rem);
}

.s-finale__laurel {
  width: 1.5rem;
  height: 3.1rem;
  color: var(--gold-deep);
}

.s-finale__laurel--right {
  transform: scaleX(-1);
}

.s-finale__heading {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--paper-ink);
  text-shadow: 0.03em 0.035em 0 rgba(201, 150, 43, 0.75);
}

.s-finale__script {
  padding-inline: 0.04em 0.14em;
  font-family: var(--font-script);
  font-size: 1.12em;
  line-height: 0.8;
  color: var(--velvet);
  text-shadow: none;
}

.s-finale__flourish {
  width: min(78%, 16rem);
  margin-top: 0.7rem;
  color: var(--gold-deep);
}

.s-finale__sub {
  max-width: 38ch;
  margin-top: 0.7rem;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--muted);
  text-wrap: balance;
}

.s-finale__body {
  width: 100%;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.02rem + 0.2vw, 1.15rem);
  line-height: 1.58;
  text-align: left;
  color: var(--paper-ink);
  -webkit-hyphens: auto;
  hyphens: auto;
}

.s-finale__body::first-letter {
  float: left;
  margin: 0.07em 0.09em 0 0;
  font-family: var(--font-display);
  font-size: 3.55em;
  line-height: 0.76;
  color: var(--velvet);
  text-shadow: 0.035em 0.04em 0 rgba(201, 150, 43, 0.8);
}

/* The name, set like the denomination on a banknote. */
.s-finale__name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.05rem 0 0.95rem;
  font-family: var(--font-logo);
  font-size: clamp(1.2rem, 0.9rem + 1.7vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.2em;
  white-space: nowrap;
  -webkit-hyphens: manual;
  hyphens: manual;
}

.s-finale__name::before,
.s-finale__name::after {
  content: "";
  flex: 1;
  height: 5px;
  border-block: 1px solid var(--gold-deep);
}

.s-finale__name > span:first-child {
  margin-right: -0.2em;
  padding-block: 0.1em;
  background: var(--foil-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(63, 7, 19, 0.55));
}

.s-finale__dated {
  margin-top: 1rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--paper-ink);
}

/* The module writes today's date in words, and the deed must be as tall before it
   runs as after, whatever the day. So the longest date of the year shares the line's
   cell, unseen: where that one would take two lines, two are held open, and a shorter
   date sits in the middle of them. */
html.js .s-finale__dated {
  display: grid;
  align-items: center;
}

html.js .s-finale__dated > span,
html.js .s-finale__dated::after {
  grid-area: 1 / 1;
}

html.js .s-finale__dated::after {
  content: "Dated this twenty-seventh day of September, 2026, at Odense.";
  visibility: hidden;
}

/* The signature line ------------------------------------------------------------- */

.s-finale__signing {
  width: 100%;
  margin-top: 0.6rem;
}

/* A stroke that starts here is a signature, never a text selection: no highlight
   dragged up into the deed, no magnifier or callout under a resting finger. */
.s-finale__pad {
  position: relative;
  height: clamp(6.25rem, 24vw, 7.75rem);
  border-bottom: 1.5px solid var(--paper-ink);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* The one canvas on the page that takes the finger: it is a signature line. */
.s-finale__pad canvas {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.s-finale__hint {
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 7vw, 2.5rem);
  line-height: 1;
  white-space: nowrap;
  color: rgba(28, 18, 38, 0.24);
  translate: -50% 0;
  transition: opacity var(--dur-2) var(--ease-out);
  pointer-events: none;
}

.s-finale__pad[data-empty="false"] .s-finale__hint {
  opacity: 0;
}

.s-finale__signed {
  margin-top: 0.55rem;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
  text-wrap: balance;
}

.s-finale__pens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.s-finale__pen {
  min-height: 2.75rem;
  padding: 0 1.1rem;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--velvet);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  transition: background-color var(--dur-1), color var(--dur-1), opacity var(--dur-1);
}

.s-finale__pen:hover:not(:disabled) {
  background: var(--velvet);
  color: var(--cream);
}

.s-finale__pen:disabled {
  opacity: 0.4;
  cursor: default;
}

.s-finale__privacy {
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
  text-wrap: balance;
}

/* Without JavaScript there is nothing to sign with. */
html:not(.js) .s-finale__pens,
html:not(.js) .s-finale__privacy,
.s-finale:not(.is-live) .s-finale__hint {
  display: none;
}

/* Until the module runs, and again once the deed is signed, the pens are out of sight
   but keep their room: the deed is the same height in every state, so it neither
   grows under a reader who arrived by a link or a reload nor jumps as the stamp falls. */
.s-finale:not(.is-live) .s-finale__pens,
.s-finale:not(.is-live) .s-finale__privacy,
.s-finale[data-consent="approved"] .s-finale__pens,
.s-finale[data-consent="approved"] .s-finale__privacy {
  visibility: hidden;
}

.s-finale[data-consent="approved"] .s-finale__pad canvas {
  cursor: default;
}

/* Witnesses and the place of the seal --------------------------------------------- */

.s-finale__attest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 1.1rem;
  width: 100%;
  margin-top: 1.5rem;
  text-align: left;
}

.s-finale__witness {
  display: grid;
  grid-column: 1;
  gap: 0.3rem;
}

.s-finale__mark {
  display: flex;
  align-items: flex-end;
  height: 2.9rem;
  padding: 0 0 0.25rem 0.5rem;
  border-bottom: 1px solid var(--paper-ink);
}

/* The hoofprint: pressed in ink, not quite square to the line. */
.s-finale__mark--hoof .icon {
  font-size: 2.6rem;
  color: #2a1a12;
  opacity: 0.86;
  rotate: -14deg;
  -webkit-mask: var(--rough) center / 4rem 4rem;
  mask: var(--rough) center / 4rem 4rem;
}

/* The G signs in blind embossing: no ink, only relief. */
.s-finale__mark--g > span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-logo);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(226, 207, 165, 0.75);
  border-radius: 50%;
  text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.95), 1px 1.5px 1px rgba(63, 40, 6, 0.75);
  box-shadow: inset 1px 1.5px 2px rgba(63, 40, 6, 0.55), inset -1px -1px 1px rgba(255, 255, 255, 0.95), 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.s-finale__witness-text {
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--paper-ink);
}

.s-finale__sealspot {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: var(--seal-size);
  height: var(--seal-size);
}

.s-finale__ring {
  width: 100%;
  height: 100%;
  color: rgba(138, 16, 39, 0.62);
}

.s-finale__ring-text {
  font-family: var(--font-logo);
  font-size: 8.6px;
  font-weight: 700;
  fill: currentColor;
}

.s-finale__ring-ls {
  font-family: var(--font-text);
  font-size: 15px;
  font-style: italic;
  fill: currentColor;
}

.s-finale__seal {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: calc(var(--seal-size) * -0.54) 0 0 calc(var(--seal-size) * -0.5);
  --seal-size: inherit;
  width: calc(var(--seal-size) * 1.08);
  height: calc(var(--seal-size) * 1.08);
  rotate: -6deg;
  opacity: 0;
  visibility: hidden;
}

.s-finale[data-consent="approved"] .s-finale__seal {
  opacity: 1;
  visibility: visible;
}

.s-finale.is-ceremony .s-finale__seal {
  animation: finale-seal-press 0.95s var(--ease-out) 0.6s both;
}

.s-finale.is-withdrawing .s-finale__seal {
  visibility: visible;
  animation: finale-seal-peel 0.75s var(--ease-in-out) both;
}

.s-finale__motto {
  margin-top: 1.3rem;
  font-family: var(--font-logo);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 1.6;
  color: var(--gold-deep);
  filter: brightness(0.72);
}

/* The marker keeps its own size (11px at least): this 10px line is too small to scale from. */
.s-finale__motto .fn-mark {
  letter-spacing: 0;
  vertical-align: 0.35em;
}

/* The stamps ------------------------------------------------------------------------ */

.s-finale__stamp {
  --rot: -12deg;
  position: absolute;
  left: 50%;
  top: 59%;
  z-index: 2;
  font-size: clamp(2.3rem, 10.5vw, 4.4rem);
  white-space: nowrap;
  translate: -50% -50%;
  pointer-events: none;
}

.s-finale__stamp--pending {
  opacity: 0.3;
}

.s-finale__stamp--approved {
  --rot: -9deg;
  --stamp-ok: #0b6f73;
  font-size: clamp(1.85rem, 8.4vw, 3.4rem);
  opacity: 0;
  visibility: hidden;
}

.s-finale[data-consent="approved"] .s-finale__stamp--pending {
  opacity: 0;
  visibility: hidden;
}

.s-finale[data-consent="approved"] .s-finale__stamp--approved {
  opacity: 0.86;
  visibility: visible;
}

.s-finale.is-ceremony .s-finale__stamp--approved,
.s-finale.is-withdrawing .s-finale__stamp--pending {
  animation: finale-slam 0.62s var(--ease-slam) both;
}

.s-finale__plaque {
  position: relative;
  width: max-content;
  margin: 1.5rem auto 0;
  padding: 0.5em 2.3em;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  line-height: 1.4;
  text-indent: var(--tracking-wide);
  text-transform: uppercase;
  color: #3a2606;
  background:
    radial-gradient(circle at 0.75em 50%, #3a2606 0 0.16em, transparent 0.2em),
    radial-gradient(circle at calc(100% - 0.75em) 50%, #3a2606 0 0.16em, transparent 0.2em),
    var(--foil-soft);
  border-radius: var(--r-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(60, 35, 0, 0.5), 0 3px 0 #5c3d08, var(--shadow-lift);
}

/* The console: ballot, then verdict -------------------------------------------------- */

.s-finale__console {
  display: grid;
  width: min(100%, 34rem);
}

.s-finale__console > * {
  grid-area: 1 / 1;
  min-width: 0;
}

.s-finale__ballot {
  padding: clamp(1rem, 3.4vw, 1.75rem);
  text-align: center;
}

.s-finale__question {
  color: var(--accent);
}

/* The arena: the only ground the refusal button may run on. Its height is fixed so
   nothing around it moves while the button does. */
.s-finale__arena {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  height: 19.5rem;
  margin-top: 0.9rem;
  padding-top: 1.15rem;
  background:
    radial-gradient(90% 60% at 50% 100%, rgba(242, 193, 78, 0.12), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 9px),
    rgba(10, 7, 20, 0.5);
  border: 1px dashed rgba(242, 193, 78, 0.55);
  border-radius: var(--r-2);
  box-shadow: inset 0 0 2.5rem rgba(0, 0, 0, 0.6);
}

/* The escape room at rest: a legend, so the empty ground does not look like something
   that failed to load. It goes once the button has first run. */
.s-finale__vacant {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: min(100% - 3rem, 17rem);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  line-height: 1.9;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--gold);
  opacity: 0.3;
  translate: -50% 0;
  transition: opacity var(--dur-3) var(--ease-out);
  pointer-events: none;
}

.s-finale__arena.is-contested .s-finale__vacant {
  opacity: 0;
}

.s-finale__yes {
  --pitch: 1rem;
  --face:
    var(--foil) center / calc(100% - 2 * var(--pitch) - 4px) calc(100% - 2 * var(--pitch) - 4px) no-repeat,
    linear-gradient(180deg, #2a1f4d, var(--ink));
  --btn-edge: #05030a;
  flex: none;
  width: min(100% - 1.5rem, 21rem);
  min-height: 5.25rem;
  font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.0625rem);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--gold-deep), 0 5px 0 var(--btn-edge), 0 0 2.2rem rgba(242, 193, 78, 0.28), 0 18px 28px -12px rgba(0, 0, 0, 0.75);
}

/* While the deed is being sealed the button is aria-disabled, not disabled, so it keeps
   keyboard focus until the verdict takes it. It no longer answers the pointer. */
.s-finale__yes[aria-disabled="true"] {
  pointer-events: none;
}

.s-finale__nej {
  flex: none;
  padding-inline: 1.45em;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
}

/* Once the module runs, the refusal button leaves the flow and lives at (--x, --y)
   inside the arena. Its place is the `translate` property, so that `rotate` and `scale`
   (the tilt, the leap, the sag) turn it about itself wherever it stands. `transform: none`
   outranks the shared hover and active nudges. On a very narrow arena the longest
   refusals wrap instead of outgrowing it. */
.s-finale.is-live .s-finale__nej {
  position: absolute;
  left: 0;
  top: 0;
  max-width: calc(100% - 28px);
  white-space: normal;
  text-wrap: balance;
  visibility: hidden;
  translate: var(--x, 0px) var(--y, 0px);
  rotate: var(--tilt, 0deg);
  transform: none;
  transition: translate 0.3s var(--ease-out), rotate 0.3s var(--ease-out), filter var(--dur-3) var(--ease-out);
}

.s-finale.is-live .s-finale__nej.is-placed {
  visibility: visible;
}

.s-finale.is-live .s-finale__nej.is-snapping {
  transition: none;
}

/* In flight it cannot be hit: it is, for the moment, above such things. */
.s-finale.is-live .s-finale__nej.is-fleeing {
  pointer-events: none;
}

.s-finale.is-live .s-finale__nej.is-leaping {
  animation: finale-leap 0.32s var(--ease-out);
}

/* Surrender: it hangs from one corner and no longer runs. */
.s-finale.is-live .s-finale__nej.is-surrendered {
  transform-origin: 12% 0;
  rotate: 7deg;
  filter: saturate(0.45) brightness(0.82);
  animation: finale-sag 1.2s var(--ease-out) both;
}

.s-finale__score {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.5;
  color: var(--muted);
}

.s-finale__noscript {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--fg);
}

.s-finale__success {
  display: grid;
  justify-items: center;
  gap: 0.95rem;
  padding: calc(var(--pitch) + clamp(0.9rem, 3vw, 1.6rem));
  text-align: center;
  animation: finale-rise 0.8s var(--ease-out) both;
}

.s-finale__success:focus-visible {
  outline-offset: 6px;
}

/* A burst of stars that needs no fireworks to be there. */
.s-finale__stars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  color: var(--gold);
}

.s-finale__stars span {
  width: 1rem;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: var(--star);
}

.s-finale__stars span:nth-child(2),
.s-finale__stars span:nth-child(4) {
  width: 1.5rem;
  translate: 0 -0.35rem;
}

.s-finale__stars span:nth-child(3) {
  width: 2.3rem;
  translate: 0 -0.8rem;
  background: var(--gold-hi);
}

.s-finale__carried {
  padding-bottom: 0.08em;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 1.05rem + 3vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 0.04em 0 rgba(0, 0, 0, 0.6));
}

.s-finale__success .pill {
  height: auto;
  min-height: 2.125rem;
  padding-block: 0.5em;
  line-height: 1.3;
  white-space: normal;
}

.s-finale__verdict {
  max-width: 34ch;
  line-height: 1.5;
}

.s-finale__device {
  max-width: 38ch;
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.45;
  color: var(--muted);
}

.s-finale__withdraw {
  min-height: 2.75rem;
  padding: 0.3rem 0.6rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.s-finale__withdraw:hover {
  text-decoration-thickness: 2px;
}

.s-finale__regret {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Wider screens ------------------------------------------------------------------------ */

@media (min-width: 36em) {
  .s-finale__deed {
    --edge: 22px;
  }

  .s-finale__body {
    text-align: justify;
  }

  .s-finale__name {
    letter-spacing: 0.36em;
  }

  .s-finale__name > span:first-child {
    margin-right: -0.36em;
  }

  .s-finale__attest {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 1.4rem;
  }

  .s-finale__witness {
    grid-column: auto;
  }

  .s-finale__sealspot {
    grid-column: 3;
    grid-row: 1;
  }

  .s-finale__arena {
    height: 22rem;
  }
}

/* Deed and ballot side by side; the ballot stays in view while the deed is read.
   The deed's floor is the width the name set on it needs: any narrower and its text
   leaves the paper, so the ballot is the one that gives way. */
@media (min-width: 70em) {
  .s-finale__stage {
    grid-template-columns: minmax(34.5rem, 38rem) minmax(22rem, 34rem);
    justify-content: center;
    align-items: start;
    gap: clamp(3.5rem, 6vw, 6.5rem);
  }

  .s-finale__console {
    position: sticky;
    top: calc(var(--nav-h) + 2.5rem);
    margin-top: 2.5rem;
  }

  .s-finale__arena {
    height: 25rem;
  }
}

/* Keyframes ----------------------------------------------------------------------------- */

@keyframes finale-slam {
  0% { opacity: 0; scale: 2.8; }
  55% { opacity: 0.9; scale: 0.92; }
  75% { scale: 1.05; }
  100% { scale: 1; }
}

@keyframes finale-jolt {
  0% { translate: 0 0; }
  22% { translate: 0 6px; }
  50% { translate: 0 -2px; }
  100% { translate: 0 0; }
}

@keyframes finale-seal-press {
  0% { opacity: 0; scale: 1.9; rotate: -24deg; }
  36% { opacity: 1; scale: 0.86 0.78; rotate: -2deg; }
  54% { scale: 1.1 1.05; rotate: -11deg; }
  70% { scale: 0.97; rotate: -3deg; }
  86% { scale: 1.01; rotate: -7.5deg; }
  100% { opacity: 1; scale: 1; rotate: -6deg; }
}

@keyframes finale-seal-peel {
  0% { opacity: 1; scale: 1; rotate: -6deg; translate: 0 0; }
  28% { opacity: 1; scale: 1.08; rotate: 6deg; translate: 0 -0.5rem; }
  100% { opacity: 0; scale: 0.9; rotate: 42deg; translate: 2.5rem -5rem; }
}

@keyframes finale-glow {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes finale-leap {
  45% { scale: 1.07 1.18; }
}

@keyframes finale-sag {
  0% { rotate: 0deg; }
  32% { rotate: 14deg; }
  56% { rotate: 3.5deg; }
  78% { rotate: 9deg; }
  100% { rotate: 7deg; }
}

@keyframes finale-rise {
  from { opacity: 0; translate: 0 1.5rem; }
  to { opacity: 1; translate: none; }
}
/* Footer: the end credits. The page scroll is the credits roll; then the big logo,
   the billing block, the notes, the colophon, and a letter that is only for him.
   State classes on the root: .is-live (module running), .is-onscreen, .is-armed and
   .is-after (the post-credits line). */

.s-footer {
  /* Plain black, as a credits roll should be: the gates fade to exactly this. */
  background-image: none;
}

/* The roll ------------------------------------------------------------------------------ */

.s-footer__roll {
  --gate: 24vh;
  position: relative;
  padding-bottom: calc(var(--gate) + 8vh);
}

/* Two soft gates pinned to the top and bottom of the screen: lines rise out of one
   and vanish into the other. They take no room in the flow. */
.s-footer__gate {
  position: sticky;
  z-index: 2;
  height: var(--gate);
  pointer-events: none;
}

.s-footer__gate--top {
  top: calc(var(--nav-h) - 1px);
  margin-bottom: calc(var(--gate) * -1);
  background: linear-gradient(180deg, var(--ink) 8%, rgba(10, 7, 20, 0.72) 42%, rgba(10, 7, 20, 0));
}

.s-footer__gate--bottom {
  bottom: 0;
  margin-top: calc(var(--gate) * -1);
  background: linear-gradient(0deg, var(--ink) 8%, rgba(10, 7, 20, 0.72) 42%, rgba(10, 7, 20, 0));
}

/* Projection: a scratch wandering down the print and, now and then, a cue mark in
   the corner. Both rest invisible. */
.s-footer__gate--top::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100vh;
  background: linear-gradient(180deg, transparent, rgba(255, 243, 196, 0.2) 30%, rgba(255, 243, 196, 0.08) 70%, transparent);
  opacity: 0;
}

.s-footer__cue {
  position: absolute;
  right: clamp(1.25rem, 6vw, 5rem);
  top: 1.4rem;
  width: 1.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 38%, rgba(255, 243, 196, 0.85) 42% 62%, transparent 66%);
  opacity: 0;
}

.s-footer.is-onscreen .s-footer__gate--top::after {
  animation: footer-scratch 9s steps(1, end) infinite;
}

.s-footer.is-onscreen .s-footer__cue {
  animation: footer-cue 17s steps(1, end) infinite;
}

.s-footer__card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.6rem;
  min-height: 78vh;
  padding: 16vh var(--gutter) 6vh;
  text-align: center;
}

.s-footer__card-logo {
  font-size: clamp(1.5rem, 4.6vw, 2.4rem);
}

.s-footer__heading {
  margin-right: -0.5em;
  font-family: var(--font-logo);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.5em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.s-footer__credits {
  margin: 0;
  padding-inline: var(--gutter);
  text-align: center;
}

.s-footer__credit {
  margin-block: clamp(2.6rem, 7vh, 4rem);
}

.s-footer__credit dt {
  margin-right: -0.34em;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--gold);
  text-wrap: balance;
}

.s-footer__credit dd {
  margin: 0.55rem 0 0;
  font-size: clamp(1.3rem, 1.12rem + 0.9vw, 1.7rem);
  line-height: 1.2;
  color: var(--cream);
  text-wrap: balance;
}

.s-footer__credit small {
  display: block;
  margin-top: 0.3rem;
  font-size: max(0.62em, 0.9375rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--muted);
}

.s-footer__credit--lead {
  margin-block: clamp(4.5rem, 13vh, 7.5rem);
}

.s-footer__credit--lead dd {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3.8vw, 3.75rem);
  line-height: 1.02;
}

.s-footer__credit--lead small {
  margin-top: 0.6rem;
  font-family: var(--font-text);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.35rem);
}

.s-footer__credit .s-footer__reserved {
  color: var(--amber);
}

/* The approval credit has two readings, reserved and approved. They share one cell and
   only one is seen, so the roll is the same length whichever it is. */
.s-footer__credit--approval {
  display: grid;
}

.s-footer__credit--approval dd {
  grid-area: 2 / 1;
  align-self: center;
}

.s-footer__credit--approval:not(.is-approved) [data-credit-approval="approved"],
.s-footer__credit--approval.is-approved [data-credit-approval="pending"] {
  visibility: hidden;
}

.s-footer__credit--last {
  margin-top: clamp(7rem, 22vh, 12rem);
}

.s-footer__credit--last dd {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.1em;
}

/* The crew: role on the left, name on the right, as on a real roll. */
@media (min-width: 48em) {
  .s-footer__credit:not(.s-footer__credit--lead) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 0 2.4rem;
    max-width: 62rem;
    margin: 2.1rem auto;
  }

  .s-footer__credit:not(.s-footer__credit--lead) dt {
    margin-right: 0;
    text-align: right;
  }

  .s-footer__credit:not(.s-footer__credit--lead) dd {
    margin-top: 0;
    text-align: left;
  }

  .s-footer__credit:not(.s-footer__credit--lead) small {
    display: inline;
    margin: 0 0 0 0.35em;
  }
}

/* The last enormous logo ------------------------------------------------------------------ */

.s-footer__finis {
  --sunburst-size: min(112vmin, 64rem);
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(2rem, 5vw, 3.25rem);
  min-height: var(--sunburst-size);
  padding: 4rem var(--gutter);
  text-align: center;
}

.s-footer__logo {
  font-size: clamp(3.3rem, 15.5vw, 11.5rem);
}

.s-footer__copyright {
  max-width: 44ch;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
}

/* Fine print, notes, colophon ---------------------------------------------------------------- */

.s-footer__legal {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 7rem);
}

/* The billing block of a film poster: condensed caps, run together, centred on a
   phone column (justified there, the caps open rivers) and justified from 40em. */
.s-footer__billing {
  --squeeze: 0.74;
  width: calc(100% / var(--squeeze));
  font-family: var(--font-logo);
  font-size: clamp(0.84rem, 0.76rem + 0.42vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.085em;
  line-height: 1.8;
  text-align: center;
  text-align-last: center;
  text-transform: uppercase;
  color: #d5cce2;
  transform: scaleX(var(--squeeze));
  transform-origin: 0 0;
}

.s-footer__billing p {
  display: inline;
}

@media (min-width: 40em) {
  .s-footer__billing {
    text-align: justify;
  }
}

.s-footer__billing p + p::before {
  content: "";
  display: inline-block;
  width: 0.72em;
  aspect-ratio: 1;
  margin: 0 0.95em;
  background: var(--gold);
  clip-path: var(--star);
}

.s-footer__notes {
  margin-top: clamp(4rem, 10vw, 7rem);
}

/* No notes collected (no module, or no footnotes on the page): no empty heading. */
.s-footer__notes:has(.s-footer__fn:empty) {
  display: none;
}

.s-footer__notes-heading {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  font-size: var(--fs-h3);
  text-align: center;
  color: var(--cream);
  text-shadow: 0.045em 0.05em 0 var(--offset);
}

.s-footer__colophon {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  margin-top: clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.s-footer__colophon p {
  max-width: 58ch;
  font-size: var(--fs-small);
  font-style: italic;
  line-height: 1.55;
  color: var(--muted);
}

.s-footer__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.s-footer__control {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  font-family: var(--font-logo);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}

.s-footer__control:hover:not(:disabled),
.s-footer__control[aria-pressed="true"] {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

/* The calm switch when the device itself asked for calm: a notice, not an offer. */
.s-footer__control:disabled {
  font-style: italic;
  color: var(--muted);
  border-style: dashed;
  cursor: default;
}

/* The switches need the module; the way back to the top does not. Without JavaScript
   they are gone; until the module runs they keep their room, unseen, so the colophon
   does not grow under a reader who reloaded at the foot of the page. */
html:not(.js) .s-footer button.s-footer__control {
  display: none;
}

.s-footer:not(.is-live) button.s-footer__control {
  visibility: hidden;
}

/* The sign-off: the one place the mask slips ------------------------------------------------- */

.s-footer__signoff {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: 16vh var(--gutter) 10vh;
  font-family: var(--font-script);
  text-align: center;
}

.s-footer__salutation {
  font-size: clamp(2.9rem, 1.9rem + 5vw, 5rem);
  line-height: 1.1;
  color: var(--gold);
}

.s-footer__letter {
  max-width: 23em;
  font-size: clamp(1.95rem, 1.4rem + 2.5vw, 3rem);
  line-height: 1.32;
  color: var(--cream);
  text-wrap: balance;
}

/* The post-credits scene: the last line of copy on the site. */
.s-footer__stinger {
  padding: 6vh var(--gutter) max(4.5rem, env(safe-area-inset-bottom) + 3rem);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
  color: #cfc6dc;
}

.s-footer.is-armed .s-footer__stinger {
  opacity: 0;
}

.s-footer.is-armed.is-after .s-footer__stinger {
  opacity: 1;
  transition: opacity 2.6s var(--ease-in-out);
}

@keyframes footer-scratch {
  0% { opacity: 0; translate: 22vw 0; }
  12% { opacity: 1; translate: 22vw 0; }
  13% { opacity: 1; translate: 22.4vw 0; }
  15% { opacity: 0; }
  47% { opacity: 1; translate: 71vw 0; }
  48% { opacity: 0.5; translate: 70.6vw 0; }
  50% { opacity: 0; }
  81% { opacity: 1; translate: 43vw 0; }
  83% { opacity: 0; }
  100% { opacity: 0; translate: 22vw 0; }
}

@keyframes footer-cue {
  0%, 100% { opacity: 0; }
  40% { opacity: 1; }
  41.5% { opacity: 0; }
  88% { opacity: 1; }
  89.5% { opacity: 0; }
}
