/*
 * ParkSplain V1 — Base Stylesheet
 * Composition pass: spatial layout, proportions, hierarchy, transitions.
 * Tokens and visual treatment are provisional — not approved.
 */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ===== TOKENS (provisional) ===== */
:root {
  --ps-yellow: #F3A712;
  --ps-yellow-soft: rgba(243, 167, 18, 0.92);
  --ps-ink: #14120F;
  --ps-dark: #0a0c0f;
  --ps-grey: #6f7a77;
  --ps-cream: #F3EAD6;
  --ps-white: #FFF9EF;
  --ps-green: #14603c;
  --ps-road-dark: #05070a;

  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --max-width: 1200px;
  --page-gutter: 20px;

  --font-body: 'Overpass', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

@media (min-width: 768px)  { :root { --page-gutter: 32px; } }
@media (min-width: 1024px) { :root { --page-gutter: 48px; } }

body {
  font-family: var(--font-body);
  color: var(--ps-ink);
  line-height: 1.5;
  background: var(--ps-white);
  overflow-x: hidden;
}

:focus-visible { outline: 3px solid var(--ps-yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ================================================================
   NAVIGATION (provisional)
   ================================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243, 167, 18, 0.15);
}
/* No logo in the bar: a three-column grid keeps the links centred and
   Check My Ticket on the right without the logo holding the left edge. */
.site-nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 12px var(--page-gutter);
}
.site-nav-links { grid-column: 2; }
.site-nav-checker { grid-column: 2; justify-self: center; }
.site-nav-toggle { grid-column: 3; justify-self: end; }
@media (min-width: 768px) {
  .site-nav-checker { grid-column: 3; justify-self: end; }
}
.site-nav-links {
  display: none; align-items: center; gap: 24px;
}
.site-nav-links a {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ps-cream);
  transition: color 0.2s;
}
.site-nav-links a:hover { color: var(--ps-yellow); }
.site-nav-checker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ps-yellow); border: 1.5px solid var(--ps-yellow);
  padding: 8px 14px; transition: all 0.2s;
}
.site-nav-checker:hover { background: var(--ps-yellow); color: var(--ps-ink); }
.site-nav-toggle {
  display: flex; flex-direction: column; gap: 4px; padding: 8px;
}
.site-nav-toggle span {
  width: 20px; height: 2px; background: var(--ps-cream);
}
@media (min-width: 768px) {
  .site-nav-links { display: flex; }
  .site-nav-toggle { display: none; }
}

/* ================================================================
   SECTION 1: ROADSHOW HERO — Gateway + iframe integration
   ================================================================ */
/* Height comes from its child: the gateway before START, the 100dvh player after */
.roadshow-hero {
  position: relative; width: 100%;
  background: var(--ps-road-dark); overflow: hidden;
}

/* Gateway screen: START THE ROADSHOW / SKIP TO PARKSPLAIN.
   Shorter than the viewport so the glass cards begin just below the fold line. */
.roadshow-gateway {
  position: relative; width: 100%; min-height: 76dvh;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.roadshow-gateway-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #05070a 0%, #111820 30%, #0a1218 60%, #05070a 100%);
}
.roadshow-gateway-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(243,167,18,0.04) 0%, transparent 60%);
}
/* Let the gateway settle into the road scene behind the navigation cards */
.roadshow-gateway::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(to bottom, transparent, var(--ps-road-dark));
  pointer-events: none; z-index: 1;
}
.roadshow-gateway-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 80px var(--page-gutter) 40px;
  color: #fff;
}
.roadshow-hero-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--ps-green); color: #fff;
  padding: 6px 14px; border: 1.5px solid rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.roadshow-hero-title {
  font-size: clamp(28px, 5vw, 52px); font-weight: 900;
  letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 12px;
}
.roadshow-hero-sub {
  font-size: 15px; color: rgba(255,255,255,0.8); margin-bottom: 32px;
  font-style: italic; line-height: 1.6;
}

/* Two-button gateway */
.roadshow-gateway-buttons {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
@media (min-width: 480px) {
  .roadshow-gateway-buttons { flex-direction: row; gap: 20px; }
}
.roadshow-btn-start {
  background: var(--ps-yellow); color: var(--ps-ink); border: none;
  padding: 18px 36px; font-family: var(--font-body); font-weight: 800;
  font-size: 17px; letter-spacing: 0.08em; cursor: pointer;
  box-shadow: 0 0 36px rgba(243, 167, 18, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.roadshow-btn-start:hover {
  transform: scale(1.03);
  box-shadow: 0 0 48px rgba(243, 167, 18, 0.5);
}
.roadshow-btn-skip {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); padding: 12px 24px;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.roadshow-btn-skip:hover {
  color: var(--ps-cream); border-color: rgba(255,255,255,0.5);
}

/* Roadshow iframe container */
.roadshow-container {
  position: relative; width: 100%; height: 100dvh;
  background: #05070a;
}
.roadshow-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: none; background: #05070a;
}
.roadshow-exit {
  position: absolute; top: 12px; right: 12px; z-index: 100;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); background: rgba(5,7,10,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 14px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s;
}
.roadshow-exit:hover {
  color: var(--ps-yellow); border-color: rgba(243,167,18,0.4);
  background: rgba(5,7,10,0.85);
}

/* ================================================================
   FOUR-ROUTE JUNCTION
   ================================================================ */
/* The supplied landscape sits behind four separate, supplied card images.
   Background and fade start 2px down so nothing paints a sub-pixel line against the hero. */
.junction {
  position: relative; z-index: 10; isolation: isolate; overflow: hidden;
  background: var(--ps-road-dark);
  padding: clamp(28px, 4vw, 56px) var(--page-gutter) clamp(40px, 5vw, 72px);
}
.junction::before {
  content: ''; position: absolute; inset: 2px 0 0 0; z-index: -1;
  background: url("../assets/navigation-cards/v2/landscape.jpg") center / cover no-repeat;
  pointer-events: none;
}
/* the existing blend out of the hero above, so the two sections meet without a seam */
.junction::after {
  content: ''; position: absolute; inset: 2px 0 0 0; z-index: -1;
  background: linear-gradient(to bottom, var(--ps-road-dark) 0, rgba(5,7,10,0.6) 6%, rgba(5,7,10,0) 18%);
  pointer-events: none;
}
.junction-inner {
  position: relative;
  max-width: 1600px; margin: 0 auto;
}
/* heading as in the visual guide: white, spaced capitals between two short yellow rules */
.junction-label {
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.4vw, 22px);
  font-family: var(--font-mono); font-size: clamp(14px, 1.55vw, 26px); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.2;
  color: #fff; text-align: center;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  margin: 0 0 clamp(16px, 2vw, 34px);
}
.junction-label::before, .junction-label::after {
  content: ''; flex: none; width: clamp(22px, 2.6vw, 44px); height: 3px;
  background: var(--ps-yellow);
}
.junction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 440px; margin: 0 auto;
  perspective: 1000px;
}
@media (min-width: 768px) {
  .junction-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2.2vw, 40px);
    max-width: none;
  }
}

/* Each card is a supplied PNG (transparent corners). The link or button is only a
   wrapper: equal boxes, each image shown whole at its own proportions. */
.junction-panel {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative; display: block;
  aspect-ratio: 640 / 522;
  container-type: inline-size;
  padding: 0; border: 0; background: none;
  border-radius: 4.5% / 5.5%;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.45s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.junction-panel img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
.junction-panel:hover, .junction-panel:focus-visible { --lift: -5px; }
.junction-panel.is-tracking { transition: transform 0.12s ease-out; }
.junction-panel:focus-visible { outline: 3px solid var(--ps-yellow); outline-offset: 3px; }
/* cards without a destination yet are buttons: match the link cards exactly */
button.junction-panel { width: 100%; font: inherit; cursor: pointer; }
/* "Coming soon" tag, shown briefly when such a card is pressed */
.glass-soon {
  position: absolute; top: 6%; right: 6%; z-index: 2;
  font-family: var(--font-mono); font-size: max(10px, 4.2cqw); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ps-ink);
  background: rgba(246, 236, 212, 0.94); border-radius: 999px;
  padding: 0.5em 0.9em; box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  opacity: 0; transform: translateY(-4px); transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.junction-panel.is-soon .glass-soon { opacity: 1; transform: none; }

/* Touch: a small press instead of cursor tracking */
@media (hover: none) {
  .junction-panel:hover { --lift: 0px; }
  .junction-panel:active { transform: scale(0.97); transition-duration: 0.12s; }
}
@media (prefers-reduced-motion: reduce) {
  .junction-panel, .junction-panel:hover, .junction-panel:active { transform: none; }
}

/* ================================================================
   SECTION 2: UNDERSTAND PARKING
   ================================================================ */
.understand {
  background: var(--ps-cream);
  padding: clamp(20px, 2.4vw, 36px) var(--page-gutter) var(--space-2xl);
}
@media (min-width: 1200px) { .understand { padding-left: 24px; padding-right: 24px; } }
/* wider than the site's usual 1200px so the slanted Council panels can be larger */
.understand-inner {
  max-width: 1440px; margin: 0 auto;
}
/* one compact row above the panels: a reserved intro area on the left (empty for now),
   the COUNCIL / PRIVATE selector on the right; stacked on narrow screens */
.understand-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.understand-intro { flex: 1 1 auto; max-width: 560px; }
.understand-header .pathway-toggle { flex: none; }
/* Council introduction, copied from the "Council cards" reference. Two columns: the
   building icon with the hand-written prompt beneath it on the left; the two-line heading
   with the two-line description directly beneath it on the right.
   The reference is on dark navy; on this beige its white text becomes the site's ink. The
   icon, "Council" and the hand-written prompt use the Roadshow's Start-the-Engine orange. */
.council-intro {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  column-gap: clamp(14px, 1.6vw, 24px); row-gap: clamp(6px, 0.8vw, 10px);
  color: var(--ps-ink);
}
.council-intro-head { display: contents; }
.council-intro-icon {
  grid-column: 1; grid-row: 1;
  width: clamp(54px, 4.8vw, 74px); height: auto; fill: #f3a712;
}
.council-intro-title {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-body); font-weight: 800;
  font-size: clamp(22px, 2.2vw, 34px); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--ps-ink); margin: 0;
}
.council-intro-title span { color: #f3a712; }
.council-intro-switch {
  grid-column: 1; grid-row: 2; align-self: start;
  font-family: 'Kalam', 'Segoe Print', cursive; font-weight: 700;
  font-size: clamp(14px, 1.2vw, 18px); line-height: 1.2; white-space: nowrap;
  color: #f3a712; margin: 0.35em 0 0;
  transform: rotate(-8deg); transform-origin: left center;
}
.council-intro-text {
  grid-column: 2; grid-row: 2; align-self: start;
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(13px, 1.05vw, 16px); line-height: 1.4;
  color: #3a3d42; margin: 0;
}
@media (max-width: 599px) {
  .understand-header { flex-direction: column; align-items: flex-start; }
  .understand-intro:empty { display: none; }
  /* too narrow for the two-line break: let the description wrap naturally */
  .council-intro-text br { display: none; }
}
/* Council / Private toggle: larger, each option in its own colour with its own icon
   (council building; mini barrier). The chosen option is full colour, the other dimmed. */
.pathway-toggle {
  display: inline-flex; border: 2px solid var(--ps-ink); overflow: hidden;
}
.pathway-toggle button {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 800; font-size: clamp(15px, 1.25vw, 18px);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: clamp(11px, 1vw, 15px) clamp(20px, 2vw, 30px); color: #fff;
  opacity: 0.5; transition: opacity 0.2s; cursor: pointer;
}
.pathway-toggle button[data-pathway-btn="council"] { background: #f3a712; color: #0e1113; }
.pathway-toggle button[data-pathway-btn="private"] { background: #2563b8; }
.pathway-toggle button[aria-pressed="true"] { opacity: 1; }
.pathway-toggle button:hover:not([aria-pressed="true"]) { opacity: 0.75; }
.toggle-icon { width: 1.5em; height: auto; fill: currentColor; flex: none; }
.toggle-icon--barrier { width: 1.9em; }
/* Scene windows grid */
.scene-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (min-width: 768px) {
  .scene-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
/* COUNCIL: slanted (parallelogram) scene cards — one per row on phones, two on
   tablets, four across from 1000px wide, so each card's text keeps its room */
:is(#path-council, #path-private) .scene-grid {
  grid-template-columns: 1fr; gap: 12px;
  max-width: 520px; margin: 0 auto;
}
/* Side by side, neighbouring panels overlap by their slant so their parallel slanted edges
   sit 10px apart (a plain grid gap would add the whole slant to the visible gap).
   With a 14% slant: 4 across, each panel is (100% - 30px) / 3.58 wide and overlaps the
   previous one by 3.91% - 11.17px; 2 across, each is 53.76% - 5.38px, overlapping by
   7.53% - 10.75px. Each panel only responds to clicks inside its slanted shape. */
@media (min-width: 600px) {
  :is(#path-council, #path-private) .scene-grid { display: flex; flex-wrap: wrap; column-gap: 0; row-gap: 12px; max-width: none; }
  :is(#path-council, #path-private) .scene-window { flex: 0 0 auto; width: calc(53.76% - 5.38px); }
  :is(#path-council, #path-private) .scene-window:nth-child(even) { margin-left: calc(10.75px - 7.53%); }
}
@media (min-width: 1000px) {
  :is(#path-council, #path-private) .scene-grid { flex-wrap: nowrap; }
  :is(#path-council, #path-private) .scene-window { flex: 1 1 0; width: auto; }
  :is(#path-council, #path-private) .scene-window + .scene-window { margin-left: calc(11.17px - 3.91%); }
}
/* Pathway visibility */
.pathway { display: none; }
.pathway.active { display: block; }

/* Individual scene window */
.scene-window {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer;
  background: var(--ps-ink); border: 2px solid var(--ps-ink);
}
@media (min-width: 768px) {
  .scene-window { aspect-ratio: 3 / 4; }
}
/* COUNCIL scene cards: parallelograms leaning like the CAMERAS reference card
   (top edge shifted right, bottom edge left; the slant is 14% of the width) */
:is(#path-council, #path-private) .scene-window {
  --slant: 14%;
  aspect-ratio: 1.4 / 1.45; /* taller panels: height is 104% of the width */
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  container-type: inline-size;
}
/* Scene illustration area — each subject gets a distinctive visual presence */
.scene-stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-m); text-align: center;
}
.scene-stage svg {
  width: 52px; height: 52px; margin-bottom: 10px; opacity: 0.65;
}
@media (min-width: 768px) {
  .scene-stage svg { width: 64px; height: 64px; }
}
.scene-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ps-cream);
}
/* A scene whose illustration is an animation (Council → Cameras), filling the slanted
   panel. The animation is 2.05:1 with the camera at its left edge and the car at its
   right, so its size is set by the panel's width and slant: 97% wide from 6.35% in, lowered
   to 24% down, keeps the camera, its pole and the car's headlights and plate inside both
   slants. Above it, a
   band of the animation's own sky colour holds the CAMERAS label; below, an illustrated
   kerb and paving foreground (with the camera pole standing on it) runs to the bottom of
   the panel. Its kerb covers the foot of the animation, so the car sits behind the kerb.
   The video's top 1.6% (a pale rim from the source card) is hidden. */
.scene-stage--video {
  display: block; padding: 0;
  background: linear-gradient(to bottom, rgb(96, 138, 155) 0 50%, rgb(114, 124, 125) 50% 100%) !important;
}
.scene-video {
  position: absolute; top: 24.3%; left: 6.35%; width: 97%; height: auto;
  aspect-ratio: 800 / 390; display: block;
  clip-path: inset(1.6% 0 0 0);
}
/* Kerb and paving foreground: starts at the foot of the animation (69.94% down) with a thin kerb, so the car and its
   wheels show as far as the animation has them; it fills to the bottom; soft, low-contrast and darker towards the viewer so
   it doesn't pull the eye from the car. Drawn 1250×399 to match the panel's proportions. */
.scene-paving {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 30.06%;
  max-width: none; display: block; object-fit: cover; object-position: top;
}
/* Scene label in the style of the SIGNAGE label in the Signage artwork: a cream, rounded,
   forward-leaning plate tilted up slightly to the right, with heavy black capitals */
.scene-tag {
  position: absolute; top: 6%; left: 11%; isolation: isolate;
  font-family: 'Roboto', var(--font-body); font-weight: 900; font-style: italic; font-size: max(11px, 6.3cqw);
  letter-spacing: 0; text-transform: uppercase; line-height: 1;
  color: #111; padding: 0.55em 0.95em 0.45em;
  transform: rotate(-2.9deg);
}
.scene-tag::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, #fdfaf3 0%, #f8f2e5 100%);
  border-radius: 0.32em; transform: skewX(-11deg);
  box-shadow: 0 0.05em 0.16em rgba(0, 0, 0, 0.16);
}
/* Council → Signage: the original Signage artwork (1346×1168) in layers. The background
   layer has the artwork's own black card outline replaced by its sky and pavement, so the
   scene fills the whole slanted panel edge to edge. The scene never moves; the head and
   magnifier turn towards the sign on pivots at the neck and wrist, the lens glints and the
   SIGNAGE heading wipes in once. At 128.44% of the panel width, shifted 14.12% left and
   5.44% up, the panel frames the whole SIGNAGE label, the character and the parking sign
   inside its 14% slants. Nothing is stretched. */
.scene-stage--signage { display: block; padding: 0; background: #e8d29a; }
:is(#path-council, #path-private) .scene-window:has(.scene-stage--signage) { border: 0; } /* the scene runs to the panel's edges */
.sg-card { position: absolute; left: -14.122%; top: -5.436%; width: 128.435%; aspect-ratio: 1346 / 1168; }
.sg-card img, .sg-move { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.sg-head { transform-origin: 33.507% 55.651%; animation: sg-head 8s infinite; }
.sg-mag  { transform-origin: 42.496% 59.932%; animation: sg-mag 8s infinite; }
.sg-head, .sg-mag { will-change: transform; }
.sg-glint {
  position: absolute; left: 45.394%; top: 38.356%; width: 6.909%; height: 10.788%;
  overflow: hidden;
  -webkit-mask: url(../assets/scenes/signage/lens-mask.png) 0 0 / 100% 100% no-repeat;
          mask: url(../assets/scenes/signage/lens-mask.png) 0 0 / 100% 100% no-repeat;
}
.sg-glint::before {
  content: ""; position: absolute; top: -40%; left: 0; width: 55%; height: 180%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 45%, rgba(255,255,255,.9) 52%, rgba(255,255,255,0) 100%);
  transform: translateX(-160%) rotate(22deg);
  animation: sg-glint 8s linear infinite;
}
.sg-heading {
  -webkit-mask: linear-gradient(90deg, #000 48.5%, transparent 51.5%) 40% 0 / 200% 100% no-repeat;
          mask: linear-gradient(90deg, #000 48.5%, transparent 51.5%) 40% 0 / 200% 100% no-repeat;
  animation: sg-heading-in 1s cubic-bezier(.3,.6,.3,1) .3s both;
}
/* held at the start until the card scrolls into view (see index.html) */
.sg-wait .sg-head, .sg-wait .sg-mag, .sg-wait .sg-glint::before, .sg-wait .sg-heading { animation-play-state: paused; }
/* 8s loop: think → turn to the sign → pause and study (scanning the times) → turn back → think */
@keyframes sg-head {
  0%, 4%   { transform: rotate(0deg);    animation-timing-function: cubic-bezier(.4,0,.2,1); }
  15%      { transform: rotate(4.8deg);  animation-timing-function: ease-in-out; }
  20%, 30% { transform: rotate(4.3deg);  animation-timing-function: ease-in-out; }
  38%      { transform: rotate(4.9deg);  animation-timing-function: ease-in-out; }
  46%      { transform: rotate(4.2deg);  animation-timing-function: ease-in-out; }
  54%      { transform: rotate(4.5deg);  animation-timing-function: cubic-bezier(.45,0,.2,1); }
  64%      { transform: rotate(-1deg);   animation-timing-function: ease-in-out; }
  71%, 100%{ transform: rotate(0deg); }
}
@keyframes sg-mag {
  0%, 7%   { transform: rotate(0deg);    animation-timing-function: cubic-bezier(.4,0,.2,1); }
  18%      { transform: rotate(7.6deg);  animation-timing-function: ease-in-out; }
  23%, 30% { transform: rotate(6.8deg);  animation-timing-function: ease-in-out; }
  37%      { transform: rotate(5deg);    animation-timing-function: ease-in-out; }
  44%      { transform: rotate(7.2deg);  animation-timing-function: ease-in-out; }
  51%      { transform: rotate(5.6deg);  animation-timing-function: ease-in-out; }
  56%      { transform: rotate(6.2deg);  animation-timing-function: cubic-bezier(.45,0,.2,1); }
  67%      { transform: rotate(-1.5deg); animation-timing-function: ease-in-out; }
  74%, 100%{ transform: rotate(0deg); }
}
@keyframes sg-glint {
  0%, 21%  { transform: translateX(-160%) rotate(22deg); }
  31%, 100%{ transform: translateX(260%) rotate(22deg); }
}
@keyframes sg-heading-in {
  from { -webkit-mask-position: 80% 0; mask-position: 80% 0; opacity: 0; }
  30%  { opacity: 1; }
  to   { -webkit-mask-position: 40% 0; mask-position: 40% 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-card *, .sg-card *::before { animation: none !important; }
}
/* Council → Letters & Notices: the original Letters & Notices artwork (1390×1132, on a
   1390×1260 canvas) in layers, filling the slanted panel edge to edge like Signage. The
   caption banner is replaced by a quiet desk the character sits behind; the wall is extended
   above the card's own edge. The card never moves; the head looks down at the letter and
   lifts in surprise (pivot at the neck), the letter tilts in his hand (pivot at the hand,
   which stays on top), the surprise marks pop, and the lamp glows. At 128.70% of the panel
   width, shifted 12.96% left and 7.87% up, the LETTERS & NOTICES label meets the panel's
   left edge and the lamp sits inside the right one. Nothing is stretched. */
.scene-stage--letters { display: block; padding: 0; background: #b48fbd; }
:is(#path-council, #path-private) .scene-window:has(.scene-stage--letters) { border: 0; } /* the scene runs to the panel's edges */
.ln-card { position: absolute; left: -12.963%; top: -7.867%; width: 128.704%; aspect-ratio: 1390 / 1260; }
.ln-card img, .ln-move { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
/* the LETTERS & NOTICES label plate at 88% (from its left end, so it stays flush) to match the SIGNAGE and CAMERAS labels */
.ln-plate { transform: scale(0.88); transform-origin: 17.698% 20%; }
.ln-head   { transform-origin: 32.734% 53.016%; animation: ln-head 7s infinite; }
.ln-letter { transform-origin: 43.885% 57.143%; animation: ln-letter 7s infinite; }
.ln-marks  { transform-origin: 44.029% 37.143%; animation: ln-marks 7s infinite; }
.ln-head, .ln-letter, .ln-marks { will-change: transform; }
.ln-glow {
  position: absolute; left: 68.2%; top: 18.65%; width: 25.9%; height: 28.57%;
  background: radial-gradient(closest-side, rgba(255, 214, 140, 0.75), rgba(255, 176, 96, 0.32) 45%, rgba(255, 160, 90, 0) 100%);
  mix-blend-mode: screen; opacity: 0.45; animation: ln-glow 3.5s ease-in-out infinite alternate;
}
/* 7s loop: look down at the letter → lift in surprise (marks pop) → tilt the letter to read closer → settle back */
@keyframes ln-head {
  0%, 6%   { transform: rotate(0deg);                         animation-timing-function: ease-in-out; }
  20%      { transform: translateY(0.4%) rotate(4.5deg);      animation-timing-function: ease-in-out; }
  27%      { transform: translateY(0.3%) rotate(3.8deg);      animation-timing-function: ease-in-out; }
  33%      { transform: translateY(0.4%) rotate(4.5deg);      animation-timing-function: cubic-bezier(.3,0,.2,1); }
  38%      { transform: translateY(-0.24%) rotate(-3deg);     animation-timing-function: ease-in-out; }
  48%, 60% { transform: translateY(-0.16%) rotate(-2.2deg);   animation-timing-function: ease-in-out; }
  78%, 100%{ transform: rotate(0deg); }
}
@keyframes ln-letter {
  0%, 8%   { transform: rotate(0deg);   animation-timing-function: ease-in-out; }
  20%, 33% { transform: rotate(1.5deg); animation-timing-function: ease-in-out; }
  47%      { transform: rotate(5deg);   animation-timing-function: ease-in-out; }
  54%      { transform: rotate(3.4deg); animation-timing-function: ease-in-out; }
  61%      { transform: rotate(5deg);   animation-timing-function: ease-in-out; }
  78%, 100%{ transform: rotate(0deg); }
}
@keyframes ln-marks {
  0%, 5%   { transform: scale(1);    opacity: 1; }
  12%, 33% { transform: scale(0.75); opacity: 0; animation-timing-function: cubic-bezier(.2,.8,.3,1.2); }
  38%      { transform: scale(1.4);  opacity: 1; }
  44%      { transform: scale(1); }
  50%      { transform: scale(1.18); }
  56%, 100%{ transform: scale(1);    opacity: 1; }
}@keyframes ln-glow { from { opacity: 0.35; } to { opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) {
  .ln-card *, .ln-card *::before { animation: none !important; }
}
/* Council → Forms & Processes: the original Forms & Processes artwork (800×1000) in layers,
   filling the slanted panel like the others. The caption banner is replaced by a table (with a
   faint plant) the laptop sits on; the wall is extended past the card's edges. The card never
   moves; the hands type, the head moves slightly, and soft amber light runs through the
   flowchart in the direction of its arrows (top-left → top-right → bottom-left → bottom-right),
   then all four boxes glow together. The glow sits over the boxes only as a tint, so their
   outlines and arrows are unchanged. At 114.29% of the panel width, shifted 5.71% left and
   20.69% up, the FORMS & PROCESSES label meets the panel's left edge. */
.scene-stage--forms { display: block; padding: 0; background: #a3bd98; }
:is(#path-council, #path-private) .scene-window:has(.scene-stage--forms) { border: 0; }
.fp-card { position: absolute; left: -5.714%; top: -20.69%; width: 114.286%; aspect-ratio: 800 / 1000; }
.fp-card img, .fp-move { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.fp-head   { transform-origin: 30.625% 52.5%; animation: fp-head 7s ease-in-out infinite; }
.fp-hand-l { animation: fp-type 0.42s ease-in-out infinite alternate; }
.fp-hand-r { animation: fp-type 0.42s ease-in-out -0.21s infinite alternate; }
.fp-box {
  position: absolute; border-radius: 1px; opacity: 0;
  background: rgba(255, 170, 60, 0.55); mix-blend-mode: multiply;
  box-shadow: 0 0 2.2cqw 0.9cqw rgba(255, 168, 60, 0.55);
  animation: 7s ease-in-out infinite;
}
.fp-b1 { left: 51.5%; top: 35.9%; width: 8.125%; height: 4.1%; animation-name: fp-b1; }
.fp-b2 { left: 70.5%; top: 35.8%; width: 8.375%; height: 4.2%; animation-name: fp-b2; }
.fp-b3 { left: 51.5%; top: 45.5%; width: 8.0%;   height: 3.8%; animation-name: fp-b3; }
.fp-b4 { left: 70.5%; top: 45.6%; width: 8.375%; height: 4.2%; animation-name: fp-b4; }
.fp-dot {
  position: absolute; width: 1.4%; aspect-ratio: 1; margin: -0.7% 0 0 -0.7%; border-radius: 50%; opacity: 0;
  background: #ffc35a; box-shadow: 0 0 1.6cqw 0.6cqw rgba(255, 176, 64, 0.7);
  animation: 7s linear infinite;
}
.fp-d1 { left: 61%;    top: 37.8%; animation-name: fp-d1; }   /* top arrow: top-left → top-right */
.fp-d2 { left: 55.5%;  top: 40.4%; animation-name: fp-d2; }   /* left arrow: top-left ↓ bottom-left */
.fp-d3 { left: 74.65%; top: 40.4%; animation-name: fp-d3; }   /* right arrow: top-right ↓ bottom-right */
.fp-d4 { left: 60.75%; top: 47.5%; animation-name: fp-d4; }   /* bottom arrow: bottom-left → bottom-right */
@keyframes fp-type { from { transform: translateY(0); } to { transform: translateY(-0.45%); } }
@keyframes fp-head {
  0%, 4%   { transform: rotate(0deg); }
  16%      { transform: rotate(1.6deg); }
  30%      { transform: rotate(-1.2deg); }
  44%      { transform: rotate(1.4deg); }
  62%, 70% { transform: translateY(-0.3%) rotate(-2.2deg); }
  82%, 100%{ transform: rotate(0deg); }
}
@keyframes fp-b1 { 0%, 6% { opacity: 0; } 11%, 20% { opacity: 1; } 28%, 58% { opacity: .45; } 63%, 72% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes fp-b2 { 0%, 19% { opacity: 0; } 24%, 32% { opacity: 1; } 40%, 58% { opacity: .45; } 63%, 72% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes fp-b3 { 0%, 32% { opacity: 0; } 37%, 44% { opacity: 1; } 52%, 58% { opacity: .45; } 63%, 72% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes fp-b4 { 0%, 46% { opacity: 0; } 51%, 72% { opacity: 1; } 82%, 100% { opacity: 0; } }
@keyframes fp-d1 { 0%, 12% { left: 61%; opacity: 0; } 13% { left: 61%; opacity: 1; } 20% { left: 69%; opacity: 1; } 22%, 100% { left: 69%; opacity: 0; } }
@keyframes fp-d2 { 0%, 25% { top: 40.4%; opacity: 0; } 26% { top: 40.4%; opacity: 1; } 33% { top: 45%; opacity: 1; } 35%, 100% { top: 45%; opacity: 0; } }
@keyframes fp-d3 { 0%, 38% { top: 40.4%; opacity: 0; } 39% { top: 40.4%; opacity: 1; } 47% { top: 45%; opacity: 1; } 49%, 100% { top: 45%; opacity: 0; } }
@keyframes fp-d4 { 0%, 38% { left: 60.75%; opacity: 0; } 39% { left: 60.75%; opacity: 1; } 47% { left: 69%; opacity: 1; } 49%, 100% { left: 69%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fp-card *, .fp-card *::before { animation: none !important; }
}
/* Yellow information layer — slides up on click/tap */
.scene-info {
  position: absolute; inset: 0;
  background: var(--ps-yellow-soft);
  color: var(--ps-ink);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex; flex-direction: column;
  justify-content: center; padding: var(--space-l) var(--space-m);
}
:is(#path-council, #path-private) .scene-info {
  /* clear of the slanted edges: the left edge leans in at the top, the right at the bottom */
  padding: var(--space-m) calc(var(--slant) + 14px) var(--space-m) calc(var(--slant) + 12px);
}
.scene-window.open .scene-info {
  transform: translateY(0);
}
.scene-info-title {
  font-weight: 800; font-size: 16px; margin-bottom: 8px;
}
.scene-info-desc {
  font-size: 13px; line-height: 1.45; margin-bottom: 14px;
}
.scene-info-action {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 16px; border: 2px solid var(--ps-ink); color: var(--ps-ink);
  align-self: flex-start; transition: all 0.2s;
}
.scene-info-action:hover {
  background: var(--ps-ink); color: var(--ps-yellow);
}
.scene-info-action.coming-soon {
  border-color: rgba(20, 18, 15, 0.4); color: rgba(20, 18, 15, 0.6);
  cursor: default;
}
.scene-info-action.coming-soon:hover {
  background: transparent; color: rgba(20, 18, 15, 0.6);
}

/* ================================================================
   SECTION 3: PARKSPLAIN DISPATCH
   Matches established references: Car for Newsletter.png and
   parking ticket newsletter.png from Website Design Ideas.
   ================================================================ */
.dispatch {
  background: var(--ps-ink); color: var(--ps-cream);
  overflow: hidden;
}
/* Hero: car windscreen with penalty notice */
.dispatch-hero {
  position: relative; min-height: 480px;
  background: linear-gradient(160deg, #0c1014 0%, #1a1e24 40%, #111518 100%);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl);
  overflow: hidden;
}
/* Atmospheric glow behind the car area */
.dispatch-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(243,167,18,0.05) 0%, transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(255,200,80,0.03) 0%, transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255,200,80,0.03) 0%, transparent 30%);
}
.dispatch-hero > * { position: relative; z-index: 1; }
.dispatch-hero-badge {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ps-ink); background: var(--ps-yellow);
  padding: 5px 14px; margin-bottom: var(--space-m);
  display: inline-block;
}
.dispatch-hero-title {
  font-size: clamp(28px, 4.5vw, 48px); font-weight: 900;
  letter-spacing: -0.015em; line-height: 1.05; color: #fff;
  text-transform: uppercase; margin-bottom: 8px;
}
.dispatch-hero-sub {
  font-size: 15px; color: rgba(255,255,255,0.7); font-style: italic;
  line-height: 1.5; max-width: 440px; margin-bottom: var(--space-xl);
}
/* The current-issue penalty notice on the windscreen */
.dispatch-ticket-current {
  position: relative; width: 280px; max-width: 80%;
  background: var(--ps-yellow); color: var(--ps-ink);
  padding: 18px 16px 20px; cursor: pointer;
  border: 2px solid rgba(20,18,15,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 2px 8px rgba(243,167,18,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.dispatch-ticket-current:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 18px 50px rgba(0,0,0,0.6), 0 4px 12px rgba(243,167,18,0.3);
}
.dispatch-ticket-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px;
}
.dispatch-ticket-brand {
  font-weight: 900; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.2;
}
.dispatch-ticket-issue-num {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ps-ink); color: var(--ps-yellow);
  padding: 3px 8px;
}
.dispatch-ticket-notice {
  font-weight: 900; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.02em; border-top: 2px solid var(--ps-ink);
  border-bottom: 1px solid rgba(20,18,15,0.3);
  padding: 8px 0; margin-bottom: 8px;
}
.dispatch-ticket-headline {
  font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 6px;
}
.dispatch-ticket-teaser {
  font-size: 12px; color: rgba(20,18,15,0.7); line-height: 1.4;
}
.dispatch-ticket-peek {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; margin-top: 12px; color: rgba(20,18,15,0.5);
  font-style: italic;
}
/* Checkerboard stripe at bottom of ticket */
.dispatch-ticket-stripe {
  height: 8px; margin-top: 10px;
  background: repeating-linear-gradient(
    90deg, var(--ps-ink) 0px, var(--ps-ink) 8px,
    var(--ps-yellow) 8px, var(--ps-yellow) 16px
  );
}

/* Value props row */
.dispatch-values {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(243,167,18,0.1);
  border-bottom: 1px solid rgba(243,167,18,0.1);
}
@media (min-width: 640px) {
  .dispatch-values { grid-template-columns: repeat(3, 1fr); }
}
.dispatch-value {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px var(--page-gutter);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
@media (min-width: 640px) {
  .dispatch-value { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.04); }
  .dispatch-value:last-child { border-right: none; }
}
.dispatch-value-icon {
  width: 28px; height: 28px; flex-shrink: 0; opacity: 0.8;
}
.dispatch-value-icon svg { width: 100%; height: 100%; }
.dispatch-value-text h4 {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 3px; color: var(--ps-cream);
}
.dispatch-value-text p {
  font-size: 12px; color: var(--ps-grey); line-height: 1.45;
}

/* Issue archive: parking-ticket-shaped browsable entries */
.dispatch-archive {
  padding: var(--space-xl) var(--page-gutter);
  max-width: var(--max-width); margin: 0 auto;
}
.dispatch-archive-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ps-grey); margin-bottom: var(--space-l);
  text-align: center;
}
.dispatch-archive-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 640px; margin: 0 auto;
}
@media (min-width: 640px) {
  .dispatch-archive-grid { grid-template-columns: repeat(4, 1fr); }
}
/* Individual archive ticket */
.dispatch-archive-ticket {
  background: var(--ps-yellow); color: var(--ps-ink);
  padding: 14px 12px 10px; cursor: pointer;
  border: 1px solid rgba(20,18,15,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 2px 3px 10px rgba(0,0,0,0.3);
}
.dispatch-archive-ticket:hover {
  transform: translateY(-3px);
  box-shadow: 3px 6px 16px rgba(0,0,0,0.4);
}
.dispatch-archive-ticket-header {
  font-family: var(--font-mono); font-size: 7px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(20,18,15,0.5); border-bottom: 1px solid rgba(20,18,15,0.15);
  padding-bottom: 6px; margin-bottom: 8px;
}
.dispatch-archive-ticket-icon {
  width: 24px; height: 24px; margin: 0 auto 6px; opacity: 0.7;
}
.dispatch-archive-ticket-icon svg { width: 100%; height: 100%; }
.dispatch-archive-ticket-name {
  font-weight: 800; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.02em; text-align: center; line-height: 1.3;
  margin-bottom: 4px;
}
.dispatch-archive-ticket-desc {
  font-size: 10px; color: rgba(20,18,15,0.6);
  text-align: center; line-height: 1.35;
}
.dispatch-archive-ticket-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding-top: 6px;
  border-top: 1px solid rgba(20,18,15,0.1);
  font-family: var(--font-mono); font-size: 8px; color: rgba(20,18,15,0.4);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.dispatch-archive-ticket-stripe {
  height: 6px; margin-top: 6px;
  background: repeating-linear-gradient(
    90deg, var(--ps-ink) 0px, var(--ps-ink) 6px,
    var(--ps-yellow) 6px, var(--ps-yellow) 12px
  );
}

/* Email capture bar */
.dispatch-capture {
  background: rgba(243,167,18,0.08);
  border-top: 1px solid rgba(243,167,18,0.15);
  padding: 20px var(--page-gutter);
}
.dispatch-capture-inner {
  max-width: 700px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px;
}
.dispatch-capture-cta {
  flex: 1; min-width: 200px;
}
.dispatch-capture-cta h3 {
  font-size: 16px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--ps-yellow);
}
.dispatch-capture-cta p {
  font-size: 12px; color: var(--ps-grey); margin-top: 2px;
}
.dispatch-capture-form {
  display: flex; gap: 0; flex: 1; min-width: 240px;
}
.dispatch-capture-form input {
  flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 13px;
  padding: 12px 14px; border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: var(--ps-cream);
}
.dispatch-capture-form input::placeholder { color: var(--ps-grey); }
.dispatch-capture-form button {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 18px; background: var(--ps-yellow); color: var(--ps-ink);
  cursor: pointer; white-space: nowrap;
}
.dispatch-capture-note {
  font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.3);
  width: 100%; text-align: center; margin-top: 4px;
}

/* ================================================================
   SECTION 4: WATCH, LEARN & PLAY
   ================================================================ */
.watch {
  background: var(--ps-cream);
  padding: var(--space-2xl) var(--page-gutter);
}
.watch-inner {
  max-width: var(--max-width); margin: 0 auto;
}
.watch-header {
  text-align: center; margin-bottom: var(--space-xl);
}
.watch-kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ps-grey); margin-bottom: var(--space-s);
}
.watch-title {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 900;
  letter-spacing: -0.015em; color: var(--ps-ink);
}
/* Retro television grid */
.tv-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 600px)  { .tv-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .tv-grid { grid-template-columns: repeat(3, 1fr); } }

.tv-unit {
  display: flex; flex-direction: column; align-items: center;
}
/* The television body */
.tv-body {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  background: #2a2520; border: 6px solid #1a1714;
  border-radius: 16px 16px 8px 8px;
  overflow: hidden; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.tv-screen {
  position: absolute; inset: 10px;
  background: #333; border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tv-screen-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); text-align: center;
  padding: var(--space-m);
}
.tv-knob-row {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 8px; padding: 0 12px 6px;
}
.tv-knob {
  width: 14px; height: 14px; border-radius: 50%;
  background: #3a3530; border: 1px solid #4a4540;
}
/* The legs */
.tv-legs {
  display: flex; justify-content: center; gap: 40%; width: 60%;
}
.tv-leg {
  width: 4px; height: 40px;
  background: linear-gradient(to bottom, #1a1714 0%, #3a3530 100%);
  transform-origin: top center;
}
.tv-leg:first-child { transform: rotate(8deg); }
.tv-leg:last-child { transform: rotate(-8deg); }
.tv-topic {
  font-weight: 700; font-size: 14px; margin-top: 12px;
  text-align: center; color: var(--ps-ink);
}

/* ================================================================
   SECTION 5: SHOP
   A genuine homepage layer for products and future e-commerce.
   Purchasing/backend functionality comes later; the visual area
   is intentionally designed now.
   ================================================================ */
.shop {
  background: var(--ps-ink); color: var(--ps-cream);
  padding: var(--space-2xl) var(--page-gutter);
}
.shop-inner {
  max-width: var(--max-width); margin: 0 auto;
}
.shop-header {
  text-align: center; margin-bottom: var(--space-xl);
}
.shop-kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ps-yellow); margin-bottom: var(--space-s);
}
.shop-title {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 900;
  letter-spacing: -0.015em; color: var(--ps-cream);
}
.shop-subtitle {
  font-size: 15px; color: var(--ps-grey); margin-top: var(--space-s);
  max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.5;
}
/* Product display area */
.shop-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 600px) { .shop-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

.shop-product {
  position: relative; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-xl) var(--space-l) var(--space-l);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; transition: border-color 0.25s;
}
.shop-product:hover { border-color: rgba(243,167,18,0.2); }
/* Device frame placeholder for digital products (brief §5) */
.shop-product-frame {
  width: 100%; aspect-ratio: 4 / 3; margin-bottom: var(--space-l);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.shop-product-frame-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.shop-product-name {
  font-weight: 800; font-size: 15px; margin-bottom: 6px;
}
.shop-product-desc {
  font-size: 13px; color: var(--ps-grey); line-height: 1.45;
  margin-bottom: var(--space-m);
}
.shop-product-price {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--ps-yellow);
}

/* ================================================================
   FOOTER (provisional)
   ================================================================ */
.site-footer {
  background: var(--ps-ink); color: var(--ps-cream);
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl);
}
.site-footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: var(--space-xl);
}
@media (min-width: 768px) {
  .site-footer-inner { grid-template-columns: 2fr 1fr; }
}
.site-footer-about p {
  font-size: 14px; line-height: 1.6; color: var(--ps-grey);
  margin-bottom: var(--space-s);
}
.site-footer-about em { color: var(--ps-cream); font-style: normal; font-weight: 600; }
.site-footer-links {
  display: flex; flex-direction: column; gap: var(--space-s);
}
.site-footer-links a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ps-grey); transition: color 0.2s;
}
.site-footer-links a:hover { color: var(--ps-yellow); }
.site-footer-legal {
  font-size: 12px; color: rgba(255,255,255,0.25);
  padding-top: var(--space-xl); border-top: 1px solid rgba(255,255,255,0.06);
  grid-column: 1 / -1;
}

/* ================================================================
   COUNCIL SECTION — dark centred layout and refined cards (approved from the preview)
   ================================================================ */
/* 1. Shorter panels: height 85% of the width (was 103.6%). The scenes inside were placed as a
   percentage of the old height, so their vertical positions are restated in container-width
   units (cqw) — each scene stays exactly where it was, and only the empty bottom is trimmed.
   The slant stays 14% of the width, so the horizontal 10px gaps between panels are unchanged. */
:is(#path-council, #path-private) .scene-window { aspect-ratio: 1 / 0.85; }
:is(#path-council, #path-private) .sg-card { top: -5.63cqw; }
:is(#path-council, #path-private) .ln-card { top: -8.148cqw; }
:is(#path-council, #path-private) .fp-card { top: -21.43cqw; }
:is(#path-council, #path-private) .scene-video { top: 25.17cqw; }
:is(#path-council, #path-private) .scene-tag { top: 6.21cqw; }
:is(#path-council, #path-private) .scene-paving { top: 72.44cqw; height: calc(100% - 72.44cqw); }

/* 2. More breathing room between the Council introduction and the cards (the introduction
   and the switch themselves are untouched) */
:is(#path-council, #path-private) { margin-top: clamp(14px, 2.2vw, 30px); }

/* 3. Depth: a soft shadow under the row, gentle atmospheric shading inside each card, and a
   little transparency towards the bottom of the background so the cards will sit well on a
   darker page later. Labels, characters and details stay crisp (no blur, no glow). */
:is(#path-council, #path-private) .scene-grid { filter: drop-shadow(0 14px 18px rgba(40, 30, 20, 0.34)) drop-shadow(0 3px 4px rgba(40, 30, 20, 0.26)); }
:is(#path-council, #path-private) .scene-stage {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.66) 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, 0.66) 100%);
}
:is(#path-council, #path-private) .scene-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(255, 250, 235, 0.20) 0%, rgba(255, 250, 235, 0) 34%),          /* soft light from above */
    radial-gradient(130% 95% at 50% 32%, rgba(0, 0, 0, 0) 48%, rgba(20, 12, 24, 0.38) 100%),          /* gentle vignette */
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 56%, rgba(20, 14, 24, 0.32) 100%);                   /* grounded bottom */
}
/* a fine light edge along the top of each card, like a printed card catching the light */
:is(#path-council, #path-private) .scene-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6) 30%, rgba(255, 255, 255, 0.6) 70%, rgba(255, 255, 255, 0));
}
/* keep the shading under the CAMERAS label */
:is(#path-council, #path-private) .scene-tag { z-index: 2; }


/* 1. Dark section, the site's own near-black ink (as used by the Dispatch section) */
.understand {
  background: var(--ps-ink);
  padding-top: clamp(30px, 3.6vw, 52px);
}

/* 2–4. Centred stack: icon → heading → explanation → switch */
.understand-header {
  position: relative;
  flex-direction: column; align-items: center; justify-content: flex-start;
  gap: clamp(14px, 1.6vw, 20px);
  margin-bottom: clamp(18px, 2vw, 26px);
  text-align: center;
}
.understand-intro { flex: none; max-width: none; width: 100%; }
.council-intro {
  display: flex; flex-direction: column; align-items: center;
  row-gap: clamp(6px, 0.7vw, 10px); color: #f2efe9;
}
.council-intro-head { display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 1vw, 14px); }
.council-intro-icon { width: clamp(52px, 4.4vw, 70px); }
.council-intro-title {
  color: #fff; font-size: clamp(26px, 3vw, 46px); line-height: 1.08;
}
.council-intro-text { color: #cfcac2; font-size: clamp(14px, 1.15vw, 18px); align-self: center; text-align: center; }
.council-intro-text br { display: none; }                  /* one centred sentence */

/* 5. The switch: a pill outlined in the Roadshow orange. COUNCIL is filled orange when chosen;
   PRIVATE is transparent with white lettering and its barrier icon (filled in its existing blue
   only when chosen). Both options stay fully legible; the click behaviour is unchanged. */
.pathway-toggle {
  border: 2px solid #f3a712; border-radius: 999px; padding: 4px; gap: 4px;
  background: rgba(255, 255, 255, 0.02);
}
.pathway-toggle button[data-pathway-btn] {
  border-radius: 999px; opacity: 1; background: transparent; color: #fff;
  transition: background-color 0.2s, color 0.2s;
}
.pathway-toggle button[data-pathway-btn="council"][aria-pressed="true"] { background: #f3a712; color: #0e1113; }
.pathway-toggle button[data-pathway-btn="private"][aria-pressed="true"] { background: #2563b8; color: #fff; }
.pathway-toggle button[data-pathway-btn="council"]:not([aria-pressed="true"]) { color: #f3a712; }
.pathway-toggle button:hover:not([aria-pressed="true"]) { background: rgba(255, 255, 255, 0.08); opacity: 1; }

/* 6. Hand-written note: to the right, level with the switch and above the Forms & Processes
   card, its arrow pointing back at the switch */
.council-intro-switch {
  position: absolute; left: calc(50% + min(13.4vw, 185px) + 18px); bottom: 6px;   /* just beside the switch */
  display: flex; align-items: center; gap: 0.45em;
  margin: 0; text-align: left; white-space: nowrap;
  transform: rotate(-8deg); transform-origin: left center;
}
.council-intro-switch::before { content: "\2190"; font-size: 1.5em; line-height: 1; }
/* not enough room beside the switch: the note sits centred just above it, pointing down at it */
@media (max-width: 899px) {
  .council-intro-switch {
    position: static; order: 3; transform: rotate(-4deg); transform-origin: center;
    justify-content: center; align-self: center; margin-top: -4px;
  }
  .council-intro-switch::before { content: "\2193"; }
  .council-intro-switch br { display: none; }
}
@media (max-width: 599px) {
  .understand-header { align-items: center; }
  .pathway-toggle button { padding-left: 18px; padding-right: 18px; }
}

/* 9. Balanced spacing: the cards follow the switch closely (overrides the card preview's gap) */
:is(#path-council, #path-private) { margin-top: clamp(8px, 1.2vw, 16px); }
/* no drop-shadow filter on the row: on the dark page it is barely visible, and a filter over the
   animated layers makes some browsers repaint them unreliably */
:is(#path-council, #path-private) .scene-grid { filter: none; }

/* Card finish (overrides the card preview): no see-through areas; the shading sits mostly at
   the TOP of each card and is deliberately uneven, like the navigation cards — a warm bloom of
   light falling near the label, darker shaded top corners, a mottled tone across the upper
   scene and a soft fall-off to the edges. Each card's light falls in a slightly different place. */
:is(#path-council, #path-private) .scene-stage { -webkit-mask-image: none; mask-image: none; }
:is(#path-council, #path-private) .scene-window { --bx: 30%; --mx: 70%; }
:is(#path-council, #path-private) .scene-window:nth-child(2) { --bx: 44%; --mx: 22%; }
:is(#path-council, #path-private) .scene-window:nth-child(3) { --bx: 64%; --mx: 34%; }   /* under the lamp */
:is(#path-council, #path-private) .scene-window:nth-child(4) { --bx: 38%; --mx: 76%; }
:is(#path-council, #path-private) .scene-stage::after {
  background:
    radial-gradient(46% 34% at var(--bx) 3%, rgba(255, 242, 210, 0.42), rgba(255, 242, 210, 0) 72%),   /* warm bloom of light */
    radial-gradient(62% 58% at 102% -4%, rgba(10, 8, 14, 0.75), rgba(10, 8, 14, 0) 70%),               /* shaded top-right corner */
    radial-gradient(38% 38% at -2% -2%, rgba(10, 8, 14, 0.58), rgba(10, 8, 14, 0) 70%),                /* shaded top-left corner */
    radial-gradient(28% 20% at var(--mx) 20%, rgba(10, 8, 14, 0.28), rgba(10, 8, 14, 0) 76%),          /* uneven, mottled tone */
    radial-gradient(22% 16% at calc(var(--mx) - 40%) 30%, rgba(255, 240, 210, 0.16), rgba(255, 240, 210, 0) 76%),
    linear-gradient(to bottom, rgba(10, 8, 14, 0.46) 0%, rgba(10, 8, 14, 0.18) 20%, rgba(10, 8, 14, 0) 48%),   /* darker towards the top */
    radial-gradient(135% 100% at 50% 42%, rgba(0, 0, 0, 0) 58%, rgba(10, 8, 14, 0.32) 100%),           /* soft edge fall-off */
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 78%, rgba(10, 8, 14, 0.10) 100%);                      /* just a touch at the base */
}
/* A little roughness so the cards feel hand-made rather than neat: a fine paper grain with soft
   blotches over the whole card, and faint pencil hatching concentrated in the shaded top area,
   fading out by the middle. (Replaces the card preview's neat light line along the top edge.) */
:is(#path-council, #path-private) .scene-stage::before {
  top: 0; bottom: 0; height: auto;
  background: url(../assets/scenes/texture/hatch.png) 0 0 / 150px 150px repeat;
  opacity: 0.44;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 22%, rgba(0, 0, 0, 0) 52%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 22%, rgba(0, 0, 0, 0) 52%);
}
:is(#path-council, #path-private) .scene-window:nth-child(even) .scene-stage::before { background-position: 70px 40px; }
:is(#path-council, #path-private) .scene-stage::after {
  background-image: url(../assets/scenes/texture/grain.png),
    radial-gradient(46% 34% at var(--bx) 3%, rgba(255, 242, 210, 0.42), rgba(255, 242, 210, 0) 72%),
    radial-gradient(62% 58% at 102% -4%, rgba(10, 8, 14, 0.75), rgba(10, 8, 14, 0) 70%),
    radial-gradient(38% 38% at -2% -2%, rgba(10, 8, 14, 0.58), rgba(10, 8, 14, 0) 70%),
    radial-gradient(28% 20% at var(--mx) 20%, rgba(10, 8, 14, 0.28), rgba(10, 8, 14, 0) 76%),
    radial-gradient(22% 16% at calc(var(--mx) - 40%) 30%, rgba(255, 240, 210, 0.16), rgba(255, 240, 210, 0) 76%),
    linear-gradient(to bottom, rgba(10, 8, 14, 0.46) 0%, rgba(10, 8, 14, 0.18) 20%, rgba(10, 8, 14, 0) 48%),
    radial-gradient(135% 100% at 50% 42%, rgba(0, 0, 0, 0) 58%, rgba(10, 8, 14, 0.32) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 78%, rgba(10, 8, 14, 0.10) 100%);
  background-size: 200px 200px, auto, auto, auto, auto, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

/* Council cards 10% smaller, centred as a group. Each card's contents are sized in its own
   width units (cqw), so the illustrations, labels and animations all scale with the card. */
:is(#path-council, #path-private) .scene-grid { max-width: 468px; }                          /* phones: was 520px */
@media (min-width: 600px) {
  :is(#path-council, #path-private) .scene-grid { max-width: 90%; margin-left: auto; margin-right: auto; }
}
/* Spacing: 20px more room between the switch and the cards, and 14px (was 10px) between
   neighbouring cards' slanted edges. The grid widens by the extra gaps, so each card keeps its
   size. Four across: card width = (grid - 3 × 14px) / 3.58; each overlaps the previous one by
   its 14% slant less the gap. Two across: width = (grid - 14px) / 1.86. */
:is(#path-council, #path-private) { margin-top: calc(clamp(8px, 1.2vw, 16px) + 20px); }
@media (min-width: 600px) {
  :is(#path-council, #path-private) .scene-grid { max-width: calc(90% + 4px); }
  :is(#path-council, #path-private) .scene-window { width: calc(53.763% - 7.527px); }
  :is(#path-council, #path-private) .scene-window:nth-child(even) { margin-left: calc(15.05px - 7.527%); }
}
@media (min-width: 1000px) {
  :is(#path-council, #path-private) .scene-grid { max-width: calc(90% + 12px); }
  :is(#path-council, #path-private) .scene-window { width: auto; }
  :is(#path-council, #path-private) .scene-window:nth-child(even) { margin-left: 0; }
  :is(#path-council, #path-private) .scene-window + .scene-window { margin-left: calc(15.64px - 3.911%); }
}