/* ==========================================================================
   iRama Sports Network
   Light theme. Navy #204888, sampled from Logo.png.
   ========================================================================== */

/* ---------- Fonts ---------------------------------------------------------
   Self-hosted, so the site makes no third-party request on load. That is what
   keeps it out of cookie-banner territory — worth not undoing.

   Both faces are variable on the wght axis, which the 450/550/650 weights used
   below depend on; static instances would snap those to 400/500/600.

   Latin and latin-ext only. The unicode-range values are Google's, so
   latin-ext still downloads only when a page needs a character from it.

   Outfit and Inter are both SIL OFL 1.1 — see static/fonts/.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.1ad231aac0a8.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin.260c81a4759b.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: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.6a2414e384c3.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.fdf9c509a809.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;
}

/* ---------- Tokens -------------------------------------------------------- */
:root {
  /* Brand navy, sampled from the logo. --g-600 is the logo blue itself. */
  --g-900: #0c1f3d;
  --g-800: #12305d;
  --g-700: #19407a;
  --g-600: #204888;
  --g-500: #2c5da6;
  --g-400: #4a7cc4;
  --g-300: #85a7da;
  --g-200: #bed1ed;
  --g-100: #dde8f7;
  --g-50:  #f1f5fc;

  /* Neutrals carry a trace of the brand hue rather than a neutral grey, so
     text and rules sit in the same family as the blue instead of fighting it. */
  --ink:      #101722;
  --ink-2:    #28303c;
  --body:     #5e6775;
  --body-2:   #808a99;
  --line:     #e4e8ee;
  --line-2:   #eef1f6;
  --surface:  #ffffff;
  --bg:       #fafbfd;

  /* Status */
  --ok:      #43a047;
  --ok-bg:   #eaf6ea;
  --pending: #e8a03a;
  --pend-bg: #fdf4e6;
  --none:    #b9c3bd;

  /* Alert / Danger reds */
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #a3161f;
  --red-600: #d02030;
  --red-500: #e03344;
  --red-400: #f87171;
  --red-300: #fca5a5;
  --red-200: #fecaca;
  --red-100: #fee2e2;
  --red-50:  #fef2f2;

  /* Type */
  --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Space & shape. --r-pill is for things that genuinely read as a tag — a
     surface label, a status chip. Buttons are not tags; they get --r-btn. */
  --r-btn: 5px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 23, 34, .05);
  --shadow-sm: 0 1px 3px rgba(16, 23, 34, .06);
  --shadow-md: 0 6px 20px -10px rgba(16, 23, 34, .18), 0 1px 3px rgba(16, 23, 34, .05);
  --shadow-lg: 0 20px 44px -22px rgba(16, 23, 34, .25), 0 4px 12px -8px rgba(16, 23, 34, .10);

  --maxw: 1240px;
  --nav-h: 74px;
  --gutter: 28px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --spring:   cubic-bezier(.34, 1.56, .64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient brand-blue mesh behind everything — the same three-pool layout as
   Vanclare's green one (top right, left edge, bottom), in the --g-* blues. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 520px at 82% -6%,  rgba(74, 124, 196, .16), transparent 62%),
    radial-gradient(620px 460px at -8% 18%,  rgba(44, 93, 166, .10), transparent 60%),
    radial-gradient(900px 620px at 50% 108%, rgba(133, 167, 218, .14), transparent 62%);
  pointer-events: none;
}
/* Fine grid texture, masked to the top of the page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(13, 18, 30, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 18, 30, .022) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button, summary, label { -webkit-tap-highlight-color: rgba(44, 93, 166, .14); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--g-200); color: var(--g-900); }

/* ---------- Typography ------------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

/* Type scale matches Vanclare's. */
.h-display { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 600; letter-spacing: -0.035em; }
.h-page    { font-size: clamp(2.2rem, 4.4vw, 3.9rem); font-weight: 600; letter-spacing: -0.032em; }
.h-2       { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.h-3       { font-size: clamp(1.12rem, 1.7vw, 1.34rem); letter-spacing: -0.016em; }
.h-4       { font-size: 1.02rem; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1rem, 1.24vw, 1.115rem);
  color: var(--body);
  max-width: 60ch;
  line-height: 1.72;
}
.grad-text {
  background: linear-gradient(100deg, var(--g-700) 0%, var(--g-500) 42%, var(--g-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--body-2); }
.small { font-size: .875rem; }

/* ---------- Layout ---------------------------------------------------- */
/* env() keeps content clear of the rounded corners / camera cutout when a
   phone is held in landscape; it resolves to 0 everywhere else. */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: calc(var(--gutter) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(48px, 5.5vw, 76px); position: relative; }
.section--tight { padding-block: clamp(34px, 3.8vw, 52px); }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Two columns that are deliberately uneven: the reading column and a rail. */
.split { display: grid; gap: clamp(28px, 4vw, 52px); align-items: start; }
.split--wide-left  { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }

.sec-head { margin-bottom: 22px; }
/* Section heading led by a short brand gradient dash, as on Vanclare. */
.sec-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.16rem, 1.9vw, 1.42rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.018em;
}
.sec-title::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--g-600), var(--g-400));
  flex: none;
}
.sec-sub { margin-top: 9px; color: var(--body); max-width: 62ch; }
/* The names and particulars under a video topic's short title. Indented by
   the dash and its gap (22px + 14px) so it lines up with the title text. */
.sec-sub--topic {
  margin-top: 6px;
  padding-left: 36px;
  max-width: calc(72ch + 36px);
  font-size: .9rem;
  line-height: 1.55;
  color: var(--body-2);
}

/* ---------- Header / Nav --------------------------------------------- */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--g-700), var(--g-400), var(--g-300));
  z-index: 120;
  will-change: transform;
}

.site-head {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: height .35s var(--ease-out);
}
.site-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  pointer-events: none;
  z-index: -1;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.site-head.is-stuck::before {
  background: rgba(255, 255, 255, .9);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(12, 26, 50, .5);
}
.site-head .wrap { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* Logo.png has a white ground baked in, so `multiply` drops it into whatever
   light surface sits behind. Logo-white.png is used on the dark footer. */
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 34px; width: auto; mix-blend-mode: multiply; }
.site-head.is-stuck .brand-logo { height: 30px; }
.site-foot .brand-logo { height: 36px; mix-blend-mode: normal; }

/* Nav links */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 13px;
  font-size: .905rem;
  font-weight: 450;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color .25s var(--ease-out);
  white-space: nowrap;
}
.nav a::before {
  content: "";
  position: absolute;
  inset: 4px 6px;
  border-radius: 9px;
  background: var(--g-50);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out);
  z-index: -1;
}
.nav a:hover { color: var(--g-700); }
.nav a:hover::before { opacity: 1; transform: scale(1); }
.nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  bottom: -25px;
  height: 2.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--g-600), var(--g-400));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .45s var(--spring);
}
.site-head.is-stuck .nav a::after { bottom: -20px; }
.nav a[aria-current="page"] { color: var(--g-600); font-weight: 550; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  place-content: center;
  align-items: center;
  justify-items: center;
  flex: none;
  position: relative;
  z-index: 110;
  box-shadow: var(--shadow-xs);
  transition: background .25s, border-color .25s, transform .2s var(--spring), box-shadow .25s;
}
.nav-toggle:hover {
  background: var(--g-50);
  border-color: var(--g-200);
}
.nav-toggle:active {
  transform: scale(0.95);
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), opacity .2s, background .25s;
}
.nav-toggle span + span { margin-top: 5px; }
body.menu-open .nav-toggle {
  background: var(--g-50);
  border-color: var(--g-300);
  box-shadow: 0 4px 14px -4px rgba(25, 64, 122, .3);
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--g-700); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--g-700); }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-size: .93rem;
  font-weight: 550;
  font-family: var(--font-body);
  letter-spacing: -0.005em;
  transition: background-position .5s var(--ease-out), background-color .25s, border-color .25s, color .25s, box-shadow .35s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }

/* Brand gradient, as Vanclare's primary button. Vanclare darkens on hover
   with a ::before overlay and sweeps a sheen with ::after, which needs
   position:relative on .btn — that would trap .ground-card .btn::after (the
   whole-card link) inside the button. So the hover shift is done with one
   double-width gradient whose position slides instead: the right half is the
   resting g-700 → g-400 ramp, the left half the deeper hover ramp. */
.btn--primary {
  color: #fff;
  border-color: transparent;
  background-color: var(--g-600);
  background-image: linear-gradient(120deg, var(--g-800) 0%, var(--g-600) 27%, var(--g-700) 50%, var(--g-500) 80%, var(--g-400) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  box-shadow: 0 18px 40px -18px rgba(44, 93, 166, .55);
}
.btn--primary:hover {
  background-position: 0 0;
  box-shadow: 0 24px 48px -20px rgba(25, 64, 122, .7);
}

.btn--ghost {
  color: var(--g-700);
  background: rgba(255, 255, 255, .7);
  border: 1.5px solid var(--g-200);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--g-400);
  background: var(--g-50);
  box-shadow: 0 14px 30px -18px rgba(25, 64, 122, .45);
}

.btn--sm { padding: 8px 15px; font-size: .86rem; }

/* Text link that underlines on hover. No arrow glyph — the underline is
   the affordance, and it does not need a trailing chevron to say "link". */
.link-arrow {
  display: inline-block;
  font-size: .89rem;
  font-weight: 550;
  color: var(--g-600);
  position: relative;
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: .35;
  transition: opacity .18s;
}
.link-arrow:hover::after { opacity: 1; }

/* ---------- Surfaces / Cards ---------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
}
/* Soft brand-blue glow from the top on hover, as on Vanclare's cards. */
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at 50% 0%, rgba(74, 124, 196, .13), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--g-300); box-shadow: var(--shadow-sm); }
/* Top accent line that wipes in */
.card--accent::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g-600), var(--g-400), var(--g-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.card:hover.card--accent::after { transform: scaleX(1); }

/* Football Grounds: photo, name, description, Learn more — the four things
   iRama's brief lists for a box, in that order, and nothing else.

   The photograph leads. It runs the full width of the card with the body
   under it, so a row of three reads as three sites rather than as three
   paragraphs with a thumbnail on top — which is what it was when the image
   sat inside the padding wearing .framed.

   .card.ground-card, not .ground-card: .card re-declares its padding inside
   two later media queries, and a single class here would lose to them on
   source order and put the padding back around the photo on a phone. */
.card.ground-card { display: flex; flex-direction: column; padding: 0; }

.ground-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--g-50);
}
.ground-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ground-card:hover .ground-card__media img { transform: scale(1.05); }

.ground-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
/* The name is .h-4, a shade over body size, so weight and colour are most of
   what separates it from the paragraph under it. The gap does the rest —
   under about 12px the heading starts reading as a bold first line. */
.ground-card__desc { margin-top: 12px; margin-bottom: 20px; color: var(--body); }

/* The whole card is the link. One <a> still does it — the button's ::after
   covers the card, which keeps a single tab stop and a single announced
   link instead of the three a wrapping anchor plus the button would make.

   margin-top:auto is what holds the three buttons on one line. iRama's
   descriptions run 63, 58 and 41 words, so Brighouse carries the slack as
   space above its button. The alternative is three buttons at three
   heights, which looks like a mistake rather than like short copy. */
.ground-card .btn { margin-top: auto; align-self: flex-start; }
.ground-card .btn::after { content: ''; position: absolute; inset: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel--pad { padding: 20px 22px; }

/* Photographs. Was six copies of the same inline style attribute. */
.framed {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

/* ---------- Icons ----------------------------------------------------- */
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Section kicker ------------------------------------------------ */
/* Section kicker. Set as small caps above the heading, not as a floating
   capsule — it is a label on the section, not a badge. */
.eyebrow {
  display: block;
  margin-bottom: 9px;
  font-size: .73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--body-2);
}

/* ---------- Hero ----------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(38px, 6vw, 76px));
  padding-bottom: clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 26px; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stages img { width: 100%; height: auto; display: block; }

/* Two stages side by side in the hero. The track ratio is not a taste
   choice: to end up the same height, a 16/9 panel and a 9/16 panel need
   widths in the ratio 16/9 : 9/16, which is 256 : 81. Feeding those straight
   in as fr units lets the pair stay flush at every width without a single
   fixed pixel. */
.hero-stages {
  display: grid;
  grid-template-columns: minmax(0, 256fr) minmax(0, 81fr);
  gap: 14px;
  align-items: start;
}
/* The NHS campaign button: iRama's ambulance graphic, under the film row and
   spanning both tracks. The graphic is on black, so it takes the same dark
   rounded shell as the video panels above it. */
.campaign-banner {
  grid-column: 1 / -1;
  display: block;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.campaign-banner img { width: 100%; height: auto; display: block; }
.campaign-banner:hover { transform: translateY(-3px); }
.campaign-banner:focus-visible { outline: 3px solid var(--g-400); outline-offset: 3px; }

/* The campaign page: rows of five, ruled apart, as in iRama's mock-up. */
.campaign-sections > * {
  border-top: 2px solid var(--g-200);
  padding-block: 32px;
}
/* Scoped so it outranks the plain .video-grid rules further down. */
.campaign-sections .video-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .campaign-sections .video-grid--five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .campaign-sections .video-grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.campaign-sections > :last-child { border-bottom: 2px solid var(--g-200); }
.campaign-row__heading { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .04em; }

/* Hero video stage (replaced the canvas globe).
   16/9 so the source frame shows uncropped; the dark ground keeps the panel
   from flashing white while the poster decodes. */
.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.video-stage__media {
  position: relative;
  z-index: 0;                /* explicit: WebKit composites <video> on the GPU
                                and can paint it over positioned siblings that
                                only rely on document order */
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
/* The portrait companion. It borrows the stage shell - the ground, the
   border, the rounded corners, the overlay - but holds a poster and a
   lightbox trigger rather than a player, so none of the is-playing rules
   ever apply to it. */
.video-stage--portrait { aspect-ratio: 9 / 16; }

/* The overlay is sized for the wide panel. In a track roughly a quarter as
   wide, the 74px ring and the 17px title crowd each other and the title card
   underneath, so the portrait stage gets its own smaller set. */
.video-stage--portrait .video-stage__play { gap: 10px; padding: 14px; }
.video-stage--portrait .video-stage__ring { width: 52px; height: 52px; }
.video-stage--portrait .video-stage__play .ico { width: 19px; height: 19px; }
/* The title stays in the accessible name - it is what the button announces -
   but it is not drawn. Around 150px wide it wraps to three lines and lands on
   top of the poster, which is itself a title card carrying the same words. */
.video-stage--portrait .video-stage__title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.video-stage--portrait .video-stage__meta { font-size: .75rem; margin-top: 0; }
/* A portrait panel whose poster is a plain photograph rather than a title
   card has nothing on it saying what it is, so it draws a short caption.
   Short on purpose: the track is about 125px wide on a desktop. The full
   name is the button's aria-label and the lightbox heading. */
.video-stage--portrait.video-stage--captioned .video-stage__title {
  position: static; width: auto; height: auto; margin: 0;
  overflow: visible; clip: auto; white-space: normal;
  font-size: .8rem;
  line-height: 1.25;
  text-shadow: 0 1px 10px rgba(13, 18, 30, .6);
}
.video-stage--captioned .video-stage__text { display: grid; gap: 3px; }

.video-stage__fallback { color: #fff; padding: 20px; }
.video-stage__fallback a { color: var(--g-300); }

/* The opt-in overlay. It covers the whole stage so the entire panel is one
   big target, and it is a real <button> so keyboard and AT get it free. */
.video-stage__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-auto-rows: max-content;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 20px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font: inherit;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(13, 18, 30, .12) 0%, rgba(13, 18, 30, .58) 100%);
  transition: opacity .45s var(--ease-out), background .45s;
}
.video-stage__play .ico {
  /* .ico is stroke-only by default; the play glyph is a solid triangle. */
  width: 26px; height: 26px;
  fill: currentColor;
  stroke: none;
  /* optical centring — a triangle's visual mass sits left of its box */
  margin-left: 4px;
}
.video-stage__ring {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1.5px solid rgba(255, 255, 255, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .5s var(--spring), background .4s, border-color .4s,
              box-shadow .4s;
}
.video-stage__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
}
.video-stage__meta {
  display: block;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .78);
  margin-top: 2px;
}

.video-stage__play:hover .video-stage__ring,
.video-stage__play:focus-visible .video-stage__ring {
  transform: scale(1.09);
  background: var(--g-500);
  border-color: var(--g-400);
  box-shadow: var(--shadow-glow);
}
.video-stage__play:focus-visible {
  outline: 3px solid var(--g-400);
  outline-offset: -3px;
}

/* Once playing, the overlay is gone and the native controls take over. */
.video-stage.is-playing .video-stage__play {
  opacity: 0;
  pointer-events: none;
}

/* Title card across the top of the hero video. Carries its own scrim so it
   stays legible over a bright frame, and clears out once playback starts. */
.video-stage__headline {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  margin: 0;
  padding: 16px 20px 34px;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.1vw, 1.42rem);
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 14px rgba(8, 12, 22, .55);
  background: linear-gradient(180deg, rgba(13, 18, 30, .62), transparent);
  transition: opacity .45s var(--ease-out);
}
.video-stage.is-playing .video-stage__headline { opacity: 0; }

/* ---------- Video library (home) ------------------------------------- */
/* iRama's own films: a heading per topic, a grid of thumbnails under it.
   Ported from vanclarepatent.com, which carries the same component, with
   the card names dropped -- these films are numbered rather than titled and
   the heading above the row says what the row is. */
.video-row + .video-row { margin-top: clamp(38px, 4.4vw, 58px); }

/* A rule running out from the heading to the right margin, so twenty-four
   of them read as a list of topics rather than as twenty-four sections.
   .sec-title is already a flex row (for its leading dash). */
.sec-title--rule { display: flex; align-items: center; gap: 14px; }
.sec-title--rule::after {
  content: "";
  /* 1 0 48px, not 1: most of these headings wrap, and a plain `flex: 1`
     line is allowed to shrink to nothing, so the rule appeared on the short
     headings and vanished on the long ones. A floor of 48px keeps it on
     every row -- the text wraps a word earlier instead. */
  flex: 1 0 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* Three fixed tracks, like .g-3 elsewhere in this file. Vanclare runs four,
   but its rows hold eleven films each; here most topics hold one, and a
   single card in a quarter-width track reads as a grid somebody forgot to
   fill rather than as the topic's film. At a third of the page it is about
   390px -- a frame you can see what is in, with the row still left-aligned
   under its heading rather than stretched across it.
   Deliberately NOT repeat(auto-fill, minmax(min(240px, 100%), 1fr)):
   min() inside minmax() is parsed inconsistently by older WebKit, and a
   dropped grid-template-columns collapses the row into one column. */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.vthumb__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.vthumb__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out),
              border-color .4s;
}
.vthumb__frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}
.vthumb__ring {
  position: absolute;
  top: 50%; left: 50%;
  /* transform, not the standalone translate property: the hover rule sets
     transform too, and the two compose rather than override -- the ring was
     being shifted a second full -50%/-50% on hover. */
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .66);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: transform .5s var(--spring), background .35s, border-color .35s;
}
.vthumb__ring .ico {
  width: 17px; height: 17px;
  /* .ico is stroke-only by default; the play glyph is a solid triangle. */
  fill: currentColor;
  stroke: none;
  margin-left: 2px;          /* optical centring of the triangle */
}
.vthumb__time {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(13, 18, 30, .78);
  color: #fff;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* iRama's own name for a film, where it gave one (pages/videos.py,
   FILM_TITLES), and a document's title. As on Vanclare. */
.vthumb__name {
  display: block;
  margin-top: 11px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  color: var(--ink);
  transition: color .3s;
}
.vthumb__btn:hover .vthumb__name { color: var(--g-700); }

/* A document card: its cover is a white page, so the frame takes a light
   ground and a darker ring, and the corner badge names the kind. */
.vthumb--doc .vthumb__frame { background: var(--surface); }
.vthumb--doc .vthumb__frame img { object-position: top; }
.vthumb--doc .vthumb__ring {
  color: var(--g-700);
  background: rgba(255, 255, 255, .78);
  border-color: var(--g-300);
  box-shadow: var(--shadow-sm);
}
.vthumb--doc .vthumb__ring .ico { fill: none; stroke: currentColor; margin-left: 0; }
.vthumb__kind { text-transform: uppercase; letter-spacing: .07em; font-size: .62rem; }

.vthumb__btn:hover .vthumb__frame,
.vthumb__btn:focus-visible .vthumb__frame {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--g-200);
}
.vthumb__btn:hover .vthumb__frame img { transform: scale(1.045); }
.vthumb__btn:hover .vthumb__ring,
.vthumb__btn:focus-visible .vthumb__ring {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--g-500);
  border-color: var(--g-400);
}
.vthumb--doc .vthumb__btn:hover .vthumb__ring,
.vthumb--doc .vthumb__btn:focus-visible .vthumb__ring { color: #fff; }
.vthumb__btn:focus-visible {
  outline: 3px solid var(--g-400);
  outline-offset: 4px;
  border-radius: var(--r-md);
}

/* ---------- Video / image lightbox ---------------------------------- */
.vlb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}
.vlb[hidden] { display: none; }
.vlb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 22, .84);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: vlbFade .3s var(--ease-out) both;
}
.vlb__panel {
  position: relative;
  width: 100%;
  max-width: 980px;
  animation: vlbRise .4s var(--ease-out) both;
}
.vlb__frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.vlb__video,
.vlb__still { width: 100%; height: 100%; display: block; }
/* display:block above would otherwise beat the hidden attribute, and the
   dialog shows exactly one of the two at a time. */
.vlb__video[hidden],
.vlb__still[hidden] { display: none; }
.vlb__still { object-fit: contain; }

/* Only video is reliably 16:9. A still keeps its own shape instead, so a
   newspaper page or a portrait card is shown whole and at its own size
   rather than shrunk inside a letterbox. The frame becomes a plain wrapper
   and the picture carries the corners and shadow it used to provide. */
.vlb__panel--still { max-width: min(1180px, 94vw); }
.vlb__frame--still {
  aspect-ratio: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  text-align: center;
}
.vlb__frame--still .vlb__still {
  width: auto;
  height: auto;
  max-width: 100%;
  /* Leaves room for the close button above and the caption below. */
  max-height: 76vh;
  margin: 0 auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.vlb__title {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
}
.vlb__close {
  position: absolute;
  top: -48px; right: 0;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .34);
  transition: background .3s, transform .4s var(--spring);
}
.vlb__close .ico { width: 18px; height: 18px; }
.vlb__close:hover { background: rgba(255, 255, 255, .26); transform: scale(1.08); }
.vlb__close:focus-visible { outline: 3px solid var(--g-400); outline-offset: 3px; }

@keyframes vlbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vlbRise {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Scroll lock while the dialog owns the screen. */
body.vlb-open { overflow: hidden; }

/* The video panels are the only layouts here that would collapse outright
   without aspect-ratio, so give them a padding-top ratio box when it is
   missing. 56.25% = 9/16. */
@supports not (aspect-ratio: 16 / 9) {
  .video-stage, .vthumb__frame, .vlb__frame { height: 0; padding-top: 56.25%; }
  /* 177.78% = 16/9, the portrait stage the other way up. */
  .video-stage--portrait { padding-top: 177.78%; }
  .video-stage__media, .vlb__video, .vlb__still { position: absolute; inset: 0; }
  .vthumb__frame img { position: absolute; inset: 0; }
  .vlb__frame--still { height: auto; padding-top: 0; }
  .vlb__frame--still .vlb__still { position: static; }
}

/* Short viewports: the close button has no room above the panel. */
@media (max-height: 520px), (max-width: 560px) {
  .vlb__close {
    top: 8px; right: 8px;
    background: rgba(8, 12, 22, .62);
  }
}

@keyframes drawArc { to { stroke-dashoffset: 0; } }

/* Floating blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .34;
  pointer-events: none;
  z-index: -1;
}
.blob-1 { width: 380px; height: 380px; background: rgba(74, 124, 196, .34); top: -80px; right: 6%; animation: float1 15s ease-in-out infinite; }
.blob-2 { width: 300px; height: 300px; background: rgba(44, 93, 166, .22); bottom: -60px; left: -60px; animation: float2 19s ease-in-out infinite; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-34px, 30px) scale(1.09); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(38px, -28px) scale(1.12); } }

/* Page hero for inner pages */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 5.5vw, 66px));
  padding-bottom: clamp(26px, 3.6vw, 42px);
  overflow: hidden;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { max-width: 62ch; }

/* ---------- Word-by-word headline reveal ---------------------------- */
/* padding-bottom gives descenders (g, y) room; the extra travel on .split-word
   keeps the word fully hidden behind the mask edge before it animates up. */
.split-line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.12em; }
.split-word {
  display: inline-block;
  transform: translateY(128%) rotate(4deg);
  opacity: 0;
  animation: wordUp 1.05s var(--ease-out) forwards;
}
@keyframes wordUp { to { transform: translateY(0) rotate(0); opacity: 1; } }

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .95s var(--ease-out) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(1) { transition-delay: 60ms; }
.stagger.is-in > *:nth-child(2) { transition-delay: 145ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 230ms; }
.stagger.is-in > *:nth-child(4) { transition-delay: 315ms; }
.stagger.is-in > *:nth-child(5) { transition-delay: 400ms; }
.stagger.is-in > *:nth-child(6) { transition-delay: 485ms; }
.stagger.is-in > *:nth-child(7) { transition-delay: 570ms; }
.stagger.is-in > *:nth-child(8) { transition-delay: 655ms; }
.stagger.is-in > *:nth-child(9) { transition-delay: 740ms; }
.stagger.is-in > *:nth-child(10) { transition-delay: 825ms; }


/* ---------- Notes / callouts ---------------------------------------- */
/* A block aside: heading, a line or two, sometimes a button. Stacked, not a
   flex row — the earlier flex version squashed the heading into its own
   column and shunted the button off to the side. */
.note {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--g-600);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--g-50);
  font-size: .9rem;
  line-height: 1.65;
  color: var(--body);
}
.note > * + * { margin-top: 10px; }
.note .h-4 { color: var(--ink); }
.note .btn { margin-top: 16px; }

/* ---------- Prose --------------------------------------------------------- */
/* Long-form copy: terms, a venue description out of the admin. Needs its own
   measure and its own paragraph spacing, because the reset zeroes both. */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 38px; }
.prose h3 { margin-top: 28px; }
.prose h2 + *, .prose h3 + * { margin-top: 10px; }
.prose p { color: var(--body); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--g-50);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---------- Legal pages --------------------------------------------------- */
/* Long clause-by-clause documents. Numbered h2s need more air above them than
   .prose gives, and anchor links have to clear the fixed header. */
.legal { max-width: 68ch; }
.legal h2 { margin-top: 46px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.legal h2:first-of-type { margin-top: 28px; }
.legal h3 { margin-top: 26px; }
.legal p + p { margin-top: 14px; }
.legal .spec { margin-bottom: 4px; }

/* A fact the business still has to supply. Loud on purpose: these pages are
   not finished until none of these are left. */
.gap {
  background: var(--pend-bg);
  border: 1px dashed #d9a54a;
  border-radius: 4px;
  padding: 1px 7px;
  color: #8a5a10;
  font-size: .92em;
  font-style: italic;
}

.prose-list { margin: 0; padding-left: 22px; list-style: disc; }
.prose-list li { margin-bottom: 8px; }
.prose-list li:last-child { margin-bottom: 0; }

/* Contents rail on the terms page. The sticky element has to be the grid item
   itself — a sticky child of a start-aligned grid item is only as tall as its
   own content, so it has nothing to travel within and never moves. */
.legal-rail { position: sticky; top: calc(var(--nav-h) + 20px); }
.toc-list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc-list li { border-top: 1px solid var(--line-2); }
.toc-list li:first-child { border-top: 0; }
.toc-list a { display: block; padding: 9px 0; font-size: .9rem; color: var(--body); }
.toc-list a:hover { color: var(--g-700); }

@media (max-width: 1080px) {
  .legal-rail { position: static; }
}

/* ---------- Numbered rules ------------------------------------------------ */
/* The booking conditions, as a list rather than a row of cards. The numeral
   hangs in the margin so the rules read as a sequence you work down. */
.rules { counter-reset: rule; max-width: 74ch; }
.rules > li {
  counter-increment: rule;
  position: relative;
  list-style: none;
  padding: 0 0 26px 54px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 26px;
}
.rules > li:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.rules > li::before {
  content: counter(rule);
  position: absolute;
  left: 0; top: -2px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g-300);
  line-height: 1;
}
.rules h3 { margin-bottom: 7px; }
.rules p { color: var(--body); font-size: .94rem; }

/* ---------- Spec list ----------------------------------------------------- */
/* Key/value facts about a venue. A ruled list, not a grid of icon chips —
   a reader scanning for "is it floodlit" wants one column to run down. */
.spec { border-top: 1px solid var(--line); }
.spec > div {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: .91rem;
}
.spec dt { color: var(--body-2); flex: none; }
.spec dd { color: var(--ink-2); font-weight: 550; text-align: right; }
.spec dd.is-none { color: var(--body-2); font-weight: 450; }

/* Below this the value wraps into two right-aligned lines, which reads worse
   than putting it under its own label. */
@media (max-width: 460px) {
  .spec > div { display: block; padding: 10px 0; }
  .spec dd { text-align: left; margin-top: 2px; }
}

/* ---------- Footer --------------------------------------------------- */
.site-foot {
  margin-top: clamp(50px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(241, 245, 252, .5), rgba(255, 255, 255, .9));
  padding-top: 54px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 40px;
}
.foot-grid h5 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-2);
  margin-bottom: 15px;
  font-weight: 600;
}
.foot-links { display: grid; gap: 10px; }
.foot-links a {
  font-size: .865rem;
  color: var(--body);
  width: fit-content;
  position: relative;
  transition: color .3s, transform .35s var(--ease-out);
}
.foot-links a:hover { color: var(--g-600); transform: translateX(4px); }
.foot-blurb { font-size: .865rem; max-width: 34ch; margin-top: 14px; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: .795rem;
  color: var(--body-2);
}


/* ---------- Forms ---------------------------------------------------- */
.field { display: grid; gap: 7px; margin-bottom: 17px; position: relative; }
.field label { font-size: .82rem; font-weight: 550; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: .9rem;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out);
  outline: none;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--g-400);
  box-shadow: 0 0 0 4px rgba(74, 124, 196, .16);
}
.field .err { font-size: .75rem; color: #d0473b; min-height: 0; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #e08279; }

/* ---------- Utilities ----------------------------------------------------- */
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Back to top --------------------------------------------- */
.to-top {
  position: fixed;
  right: calc(26px + env(safe-area-inset-right, 0px));
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--g-600);
  z-index: 90;
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--spring), background .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--g-50); transform: translateY(-3px); }

/* ---------- Justice timer -------------------------------------------- */
/* Ported from vanclarepatent.com, where it counts from 30 September 2010 in
   the corner of every page. Same panel, same wording, same red; only the
   date differs.

   It counts calendar time rather than elapsed milliseconds - years, then
   months, then the remainder - so it reads the way a person would say it out
   loud. main.js does that arithmetic and fills the figures in; the markup
   ships with zeros and [hidden], so with JS off nothing appears at all. That
   is deliberate: a number frozen at the moment the page was served would be
   wrong within a second and stay wrong. */
.justice-timer {
  position: fixed;
  left: calc(20px + env(safe-area-inset-left, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  /* Over the page, under the nav (120) and the player dialog (200), which
     has to be able to cover this. The back-to-top button is 90 and sits in
     the opposite corner. */
  z-index: 80;
  width: min(370px, calc(100vw - 40px));
  padding: 15px 18px 13px;
  border-radius: var(--r-lg);
  background: linear-gradient(142deg, var(--red-500) 0%, var(--red-700) 52%, var(--red-900) 100%);
  border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: 0 24px 50px -18px rgba(127, 29, 29, .72),
              0 6px 18px -8px rgba(16, 23, 34, .34);
  color: #fff;
  display: grid;
  gap: 9px;
}
/* display:grid above would otherwise beat the hidden attribute. */
.justice-timer[hidden] { display: none; }

.justice-timer__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.84rem, 1.5vw, .96rem);
  line-height: 1.22;
  letter-spacing: .055em;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}
.justice-timer__clock {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.jt-unit {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 7px 2px 5px;
  border-radius: var(--r-sm);
  background: rgba(16, 23, 34, .26);
  border: 1px solid rgba(255, 255, 255, .13);
}
.jt-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.12rem, 2.4vw, 1.42rem);
  line-height: 1;
  /* Tabular figures: without them every tick changes the width of the cell
     and the whole row twitches once a second. */
  font-variant-numeric: tabular-nums;
}
.jt-lab {
  font-size: .575rem;
  font-weight: 600;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
/* The seconds cell draws the eye on its own by changing; this just gives the
   change somewhere to land. One beat per second is well under the WCAG
   three-per-second threshold, and the reduced-motion rule below stops it. */
.justice-timer.is-ticking .jt-unit--sec { animation: jt-tick .9s var(--ease-out); }
@keyframes jt-tick {
  0%   { background: rgba(255, 255, 255, .30); }
  100% { background: rgba(16, 23, 34, .26); }
}
.justice-timer__since {
  margin: 0;
  font-size: .68rem;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .82);
}
.justice-timer__since time { font-weight: 600; color: #fff; }

@media (max-width: 860px) {
  .justice-timer { width: min(320px, calc(100vw - 36px)); padding: 13px 15px 11px; }
  .jt-num { font-size: 1.16rem; }
}

/* On a phone the panel spans the width, so it is underneath the back-to-top
   button rather than beside it. --jt-h is the panel's measured height, set by
   main.js, which is why neither side hard-codes a number that goes stale the
   moment the headline rewraps. */
@media (max-width: 560px) {
  .justice-timer {
    left: calc(9px + env(safe-area-inset-left, 0px));
    right: calc(9px + env(safe-area-inset-right, 0px));
    bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    width: auto;
    padding: 7px 10px 6px;
    gap: 5px;
    border-radius: var(--r-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .justice-timer.is-ticking .jt-unit--sec { animation: none; }
}

/* A live clock is meaningless on paper. */
@media print {
  .justice-timer { display: none; }
}

/* ---------- Responsive ----------------------------------------------- */
/* Seven nav links + the wordmark stop fitting around here, so the drawer
   takes over well before the content grids reflow. */
@media (max-width: 1080px) {
  :root { --nav-h: 66px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  /* The cap moved from the stage to the pair. Capping .video-stage itself
     would now also be read by the portrait panel, which at 560px wide would
     stand 995px tall. */
  .hero-stages { max-width: 640px; margin-inline: auto; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* minmax(0,…) not 1fr: a bare 1fr track keeps min-width:auto and would be
     stretched wide by the min-content of the wide data tables. */
  .split { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(340px, 86vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: calc(var(--nav-h) + 14px) 18px calc(24px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: -16px 0 50px -15px rgba(12, 26, 50, .35);
    border-left: 1px solid var(--line-2);
    transform: translateX(105%);
    transition: transform .42s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 105;
  }
  body.menu-open .nav { transform: translateX(0); }
  .nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 11px 16px;
    font-size: 1.02rem;
    font-weight: 550;
    color: var(--ink-2);
    border-radius: 12px;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .35s, transform .45s var(--ease-out), background .2s, color .2s;
  }
  .nav a::after { display: none; }
  .nav a:hover {
    background: var(--g-50);
    color: var(--g-700);
  }
  .nav a[aria-current="page"] {
    background: linear-gradient(90deg, rgba(37, 82, 150, .12), rgba(74, 124, 196, .16));
    color: var(--g-700);
    border-color: rgba(37, 82, 150, .2);
    font-weight: 600;
  }
  .nav a[aria-current="page"]::before {
    display: none;
  }
  body.menu-open .nav a { opacity: 1; transform: none; }
  body.menu-open .nav a:nth-child(1) { transition-delay: .06s; }
  body.menu-open .nav a:nth-child(2) { transition-delay: .10s; }
  body.menu-open .nav a:nth-child(3) { transition-delay: .14s; }
  body.menu-open .nav a:nth-child(4) { transition-delay: .18s; }
  body.menu-open .nav a:nth-child(5) { transition-delay: .22s; }
  body.menu-open .nav a:nth-child(6) { transition-delay: .26s; }
  body.menu-open .nav a:nth-child(7) { transition-delay: .30s; }
  body.menu-open .nav a:nth-child(8) { transition-delay: .34s; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 42, .42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .38s ease;
    z-index: 100;
  }
  body.menu-open .nav-scrim { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; touch-action: none; }
}

/* Three grounds across stop working before two do. Below about 880px each
   card is under 260px wide, which leaves the photo at ~210px and the
   description at roughly 25 characters a line, so the row goes to one. */
@media (max-width: 880px) {
  .g-3 { grid-template-columns: minmax(0, 1fr); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Two tracks on a phone, not one. A 16/9 card across the full width of a
   phone is about 195px of frame, and there are 25 of them down this page --
   some 5,000px of scroll, most of it the same courtroom. Two tracks halve
   that, and nothing is lost by it: the heading above the row says what the
   row is, so the thumbnail only has to be a target. */
@media (max-width: 520px) {
  .video-grid .vthumb__ring { width: 34px; height: 34px; }
  .video-grid .vthumb__ring .ico { width: 13px; height: 13px; }
  .video-grid .vthumb__time { right: 5px; bottom: 5px; padding: 1px 5px; font-size: .58rem; }
  .video-grid .vthumb__name { font-size: .82rem; margin-top: 7px; line-height: 1.32; }
  /* The rule after a heading has nowhere to go once the heading wraps to
     three lines, which at this width most of them do. */
  .sec-title--rule::after { display: none; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .g-2 { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .card { padding: 22px; }
  /* .card.ground-card keeps padding:0 so the photo stays full bleed to the
     card edge; the body inside it carries its own padding and needs none of
     this. */
  .to-top {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

/* Below 560px the timer spans the full width along the bottom, so the
   back-to-top button has to clear it rather than sit beside it. This has to
   come after the 700px rule above, which sets `bottom` too and would
   otherwise win on source order and drop the button back onto the panel.

   --jt-h is the panel's measured height, published by main.js, so neither
   side hard-codes a number that goes stale the moment the headline rewraps.
   It resolves to 0px on a page where the timer never painted. */
@media (max-width: 560px) {
  .to-top {
    bottom: calc(16px + var(--jt-h, 0px) + env(safe-area-inset-bottom, 0px));
  }
}

/* The two hero panels hold their side-by-side shape down to here. Below it
   the portrait track is under about 120px wide, which is too narrow for its
   own title card to read, so the pair stacks and the portrait panel takes a
   width of its own rather than the full column. */
@media (max-width: 560px) {
  .hero-stages { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .video-stage--portrait { max-width: 240px; margin-inline: auto; }}

/* ---------- Phone layout ------------------------------------------- */

/* Touch devices: no hover to reveal things, and fingers need bigger targets */
@media (hover: none) {
  .btn--sm { padding: 12px 20px; }
  .link-arrow { padding-block: 7px; }
  .foot-links a { padding-block: 5px; }
}

@media (max-width: 700px) {
  /* Under 16px iOS Safari zooms the page when a field takes focus */
  .field input,
  .field select,
  .field textarea { font-size: 16px; }

  /* Lighter decoration — these are full-screen blurred layers on a phone */
  .blob-1 { width: 250px; height: 250px; }
  .blob-2 { width: 200px; height: 200px; }

  /* Grow the small text links into ~44px tap targets. Done by width as well
     as by (hover: none) so touch laptops and hybrids get it too. */
  .brand { padding-block: 8px; }
  .link-arrow { padding-block: 10px; }
  .foot-links { gap: 2px; }
  .foot-links a { padding-block: 10px; }

}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .h-display { font-size: clamp(2.05rem, 10.5vw, 2.4rem); }
  .h-page { font-size: clamp(1.95rem, 9.8vw, 2.2rem); }
  .card { padding: 18px; }
  .brand-logo { height: 30px; }
  .site-head.is-stuck .brand-logo { height: 27px; }
}

/* ---------- Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .stagger > *, .split-word, .fade-up { opacity: 1 !important; transform: none !important; }
}

/* ---------- Print ---------------------------------------------------- */
@media print {
  .site-head, .to-top, .scroll-bar, .nav-scrim, .blob,
  .alert-banner-wrap { display: none !important; }
  body::before, body::after { display: none; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; }
  .card, .panel { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  /* The topic headings print; twenty-five posters of the same courtroom and
     a dialog that cannot be opened on paper do not. */
  .video-grid, .vlb { display: none !important; }
}

/* ---------- Alert banner (home) -------------------------------------- */
/* Ported whole from vanclarepatent.com, including the .alert-cta rules:
   the markup here carries no call to action, but keeping the component
   entire is what lets tools/port_vanclare_assets.py stay a straight copy
   rather than a copy-with-exceptions. The reds resolve to the iRama ramp
   through the tokens; the one hard-coded glow was retinted by hand. */
.alert-banner-wrap {
  padding: 16px var(--gutter) 0;
  margin-top: var(--nav-h);
  position: relative;
  z-index: 40;
}
/* Calibrate hero padding when banner precedes <main> */
.alert-banner-wrap + main .hero {
  padding-top: clamp(24px, 4.2vw, 56px);
}

/* Solid-red emergency bar. The WHOLE banner flashes — background colour and the
   surrounding halo swing together on a 1.2s cycle (~0.83 flashes/sec, safely
   under the WCAG 3-per-second seizure threshold). All motion stops, but the red
   stays, when the visitor mutes it or prefers reduced motion. */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px 60px 16px 26px;
  border-radius: var(--r-md);
  background-color: var(--red-700);
  background-image: linear-gradient(120deg, rgba(0, 0, 0, .22), rgba(255, 255, 255, .10) 48%, rgba(0, 0, 0, .18));
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  animation: alertFlash 1.2s var(--ease-io) infinite;
}
@keyframes alertFlash {
  0%, 100% {
    background-color: var(--red-800);
    box-shadow: 0 14px 34px -18px rgba(153, 27, 27, .85), 0 0 0 0 rgba(224, 51, 68, .55);
  }
  50% {
    background-color: var(--red-500);
    box-shadow: 0 18px 46px -14px rgba(224, 51, 68, .95), 0 0 0 10px rgba(224, 51, 68, 0);
  }
}

/* Warning-light rail, pulsing in step with the banner */
.alert-banner::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: #fff;
  animation: alertRail 1.2s var(--ease-io) infinite;
}
@keyframes alertRail {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}
/* Light sweeping across the bar, like a beacon */
.alert-banner::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -50%;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: alertSheen 3.4s var(--ease-io) infinite;
}
@keyframes alertSheen {
  0%, 55% { left: -50%; }
  100%    { left: 130%; }
}

.alert-bolt {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  position: relative;
  animation: alertBoltFlash 1.2s var(--ease-io) infinite;
}
@keyframes alertBoltFlash {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
}
/* Expanding ring on top of the flash */
.alert-bolt::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85);
  animation: alertRing 2.4s var(--ease-out) infinite;
}
@keyframes alertRing {
  0%        { transform: scale(.9); opacity: .85; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
.alert-bolt .ico {
  width: 21px; height: 21px;
  color: var(--red-700); fill: var(--red-700); stroke: none;
  position: relative; z-index: 1;
}

.alert-banner-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 6px;
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.alert-kicker {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.alert-detail {
  font-size: .88rem;
  color: rgba(255, 255, 255, .93);
  font-weight: 500;
  line-height: 1.45;
}
.alert-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .9);
  background: #fff;
  color: var(--red-700);
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  animation: alertCtaPulse 1.2s var(--ease-io) infinite;
}
@keyframes alertCtaPulse {
  0%, 100% { transform: scale(1);     box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .55); }
  50%      { transform: scale(1.045); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
}
.alert-banner-link:hover .alert-cta,
.alert-banner-link:focus-visible .alert-cta {
  animation: none;
  background: var(--red-900);
  border-color: var(--red-900);
  color: #fff;
  transform: translateX(3px) scale(1.04);
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .6);
}
.alert-cta svg { width: 14px; height: 14px; }

.alert-mute {
  /* Pinned to the corner rather than sitting in the flex row: the link content
     wraps onto two rows at mid widths, which would leave it floating mid-bar. */
  position: absolute;
  top: 13px;
  right: 13px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .16);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background .25s, border-color .25s, transform .2s;
}
.alert-mute:hover { background: rgba(255, 255, 255, .3); border-color: #fff; transform: scale(1.05); }
.alert-mute:active { transform: scale(0.95); }
.alert-mute .ico { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.alert-mute .ico-off { display: none; }
.alert-banner.is-muted .alert-mute .ico-on { display: none; }
.alert-banner.is-muted .alert-mute .ico-off { display: block; }

/* Muted: all motion off, but the alert stays loud and red */
.alert-banner.is-muted,
.alert-banner.is-muted::before,
.alert-banner.is-muted::after,
.alert-banner.is-muted .alert-bolt,
.alert-banner.is-muted .alert-bolt::after,
.alert-banner.is-muted .alert-cta {
  animation: none;
}
.alert-banner.is-muted {
  background-color: var(--red-700);
  box-shadow: 0 14px 34px -18px rgba(153, 27, 27, .85);
}
.alert-banner.is-muted::before { opacity: 1; }
.alert-banner.is-muted::after,
.alert-banner.is-muted .alert-bolt::after { opacity: 0; }
.alert-banner.is-muted .alert-bolt { transform: none; box-shadow: none; }
.alert-banner.is-muted .alert-cta { transform: none; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .55); }

@media (prefers-reduced-motion: reduce) {
  .alert-banner,
  .alert-banner::before,
  .alert-banner::after,
  .alert-banner .alert-bolt,
  .alert-banner .alert-bolt::after,
  .alert-banner .alert-cta {
    animation: none !important;
  }
  .alert-banner {
    background-color: var(--red-700);
    box-shadow: 0 14px 34px -18px rgba(153, 27, 27, .85);
  }
  .alert-banner::before { opacity: 1; }
  .alert-banner::after,
  .alert-banner .alert-bolt::after { opacity: 0; }
  .alert-banner .alert-bolt { transform: none; box-shadow: none; }
  .alert-banner .alert-cta { transform: none; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .55); }
}

/* Alert banner responsiveness for tablet & mobile.
   Below 1024px the single row can no longer hold headline + detail + CTA, so the
   bar stacks and the CTA runs full width — a far bigger tap target than a pill
   stranded on its own wrapped row. */
@media (max-width: 1024px) {
  .alert-banner-wrap {
    padding: 12px var(--gutter) 0;
  }
  .alert-banner {
    display: block;
    padding: 16px 16px 16px 22px;
    border-radius: var(--r-md);
  }
  .alert-banner-link {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: center;
  }
  .alert-banner-link .alert-bolt {
    grid-column: 1;
    grid-row: 1;
  }
  .alert-banner-link .alert-kicker {
    grid-column: 2;
    grid-row: 1;
    padding-right: 40px;
    font-size: .95rem;
  }
  .alert-banner-link .alert-detail {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: .86rem;
    line-height: 1.45;
  }
  .alert-banner-link .alert-cta {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 4px;
    justify-content: center;
    padding: 12px 18px;
    min-height: 44px;
    font-size: .86rem;
    box-sizing: border-box;
    /* Full width here, so pulse with a halo rather than scaling — scaling would
       push the button past the banner's clipped edges. */
    animation-name: alertCtaGlow;
  }
  @keyframes alertCtaGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0),    0 10px 26px -14px rgba(0, 0, 0, .55); }
    50%      { box-shadow: 0 0 0 5px rgba(255, 255, 255, .4), 0 12px 28px -12px rgba(0, 0, 0, .5); }
  }
  .alert-banner.is-muted .alert-cta,
  .alert-banner-link:hover .alert-cta,
  .alert-banner-link:focus-visible .alert-cta { transform: none; }
}

@media (max-width: 680px) {
  .alert-banner-wrap {
    padding: 10px var(--gutter) 0;
  }
  .alert-banner-link .alert-kicker { font-size: .9rem; padding-right: 36px; }
  .alert-banner-link .alert-detail { font-size: .84rem; }
}
