/* ---- 00-base.css ---- */
/* Humanoid Industries · base design system (Tesla dark).
   Joined with the other src/css/*.css files, in name order, into /assets/css/site.css by tools/build.ps1.
   A theme (src/themes/<id>.css) is layered on top and mostly re-sets the tokens below.

   1 Tokens  2 Reset  3 Type  4 Calls to action  5 Header and menu  6 Media  7 Shared patterns
   8 Forms  9 Panels: modal, cookie bar, demo bar, switcher  10 Footer  11 Motion */

/* ---------------------------------------------------------------- 1 Tokens */
:root {
  /* colour: near-black, warm white, one grey. Photography does the rest. */
  --bg: #0c0c0d;
  --bg-2: #141416;
  --bg-3: #1d1d20;
  --fg: #f4f3ef;
  --fg-2: #d8d7d2;
  --dim: #8c8c88;
  --line: rgba(244, 243, 239, .14);
  --line-2: rgba(244, 243, 239, .3);
  --scrim: 12, 12, 13;            /* rgb of the dark gradient laid under text on photographs */
  --accent: var(--fg);            /* v1 has no colour accent; themes may set one */
  --on-accent: var(--bg);

  /* type */
  --font-sans: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "Red Hat Mono", ui-monospace, "SFMono-Regular", monospace;
  --fw-scale: 1;                  /* lift or lower every weight at once */
  --fw-light: calc(300 * var(--fw-scale));
  --fw-regular: calc(450 * var(--fw-scale));
  --fw-medium: calc(550 * var(--fw-scale));
  --fw-semibold: calc(600 * var(--fw-scale));
  --fw-bold: calc(700 * var(--fw-scale));
  --display-weight: var(--fw-regular);   /* small display uses (sub-nav name, option names); the big words are light, below */
  --display-tracking: -.022em;
  --display-case: none;
  --fs-display: clamp(3rem, 7.2vw, 6rem);      /* product names on full screens */
  --fs-title: clamp(2.25rem, 4.8vw, 4rem);     /* section titles */
  --fs-lede: clamp(1rem, 1.2vw, 1.125rem);
  --fs-mono: .72rem;
  --mono-tracking: .08em;

  /* shape and space */
  --radius: 14px;                 /* frames and cards */
  --radius-cta: 999px;            /* buttons */
  --radius-input: 8px;
  --cta-h: 2.75rem;
  --cta-min: 12.5rem;
  --g: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 13vh, 9rem);
  --header-h: 3.5rem;
  --demobar-h: 3.75rem;
  --measure: 76rem;               /* widest content column */

  --ease: cubic-bezier(.16, 1, .3, 1);
  --slow: 1s;
}

/* ---------------------------------------------------------------- 2 Reset */
*, *::before, *::after { box-sizing: border-box; }
/* scroll padding keeps a focused or linked element clear of the fixed header and the fixed demo bar */
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); scroll-padding-bottom: calc(var(--demobar-h) + 1rem); }
body {
  margin: 0; padding-bottom: var(--demobar-h);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 1rem; font-weight: var(--fw-regular); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { display: block; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure, fieldset, legend, blockquote { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: var(--fw-semibold); }
b, strong { font-weight: var(--fw-bold); }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, video, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }
.visually-hidden, .hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--g); top: -4rem; z-index: 300; padding: .7rem 1rem; border-radius: var(--radius-cta); background: var(--fg); color: var(--bg); font-weight: var(--fw-semibold); font-size: .875rem; }
.skip:focus { top: .6rem; }

/* ---------------------------------------------------------------- 3 Type */
.mono, .eyebrow, .label {
  font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: var(--fw-regular);
  letter-spacing: var(--mono-tracking); text-transform: uppercase; line-height: 1.4;
}
.eyebrow, .label--dim { color: var(--dim); }
.display { font-family: var(--font-display); font-size: var(--fs-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1; }
.title { font-family: var(--font-display); font-size: var(--fs-title); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1.02; text-wrap: balance; }
.headline { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1; text-wrap: balance; }
.headline--lg { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.04; }
.mega { display: block; font-family: var(--font-display); font-size: clamp(3.5rem, min(14vw, 24vh), 10rem); font-weight: var(--display-weight); letter-spacing: -.03em; text-transform: var(--display-case); line-height: .9; }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--fg-2); max-width: 38rem; text-wrap: pretty; }
.dim, .tbc { color: var(--dim); }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.link:hover { text-decoration-thickness: 2px; }
.optional { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--dim); }

/* ---------------------------------------------------------------- 4 Calls to action
   .cta--solid (warm white pill), .cta--line (thin outline pill on glass), .cta--link (text with arrow).
   The older .btn classes map onto the same three so every template shares one look. */
.cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: var(--cta-min); height: var(--cta-h); padding: 0 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius-cta);
  font-family: var(--font-sans); font-size: .875rem; font-weight: var(--fw-semibold); letter-spacing: .01em; line-height: 1;
  white-space: nowrap; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.cta--solid, .btn--primary, .btn--solid { background: var(--fg); color: var(--bg); }
.cta--solid:hover, .btn--primary:hover, .btn--solid:hover { background: #fff; }
.cta--line, .btn--light, .btn--outline { border-color: var(--line-2); background: rgba(var(--scrim), .28); color: var(--fg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cta--line:hover, .btn--light:hover, .btn--outline:hover { border-color: var(--fg); background: rgba(244, 243, 239, .08); }
.cta--accent { background: var(--accent); color: var(--on-accent); }
.cta--link { min-width: 0; height: auto; min-height: 1.5rem; padding: .25rem 0; border: 0; border-radius: 0; background: none;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .45s var(--ease); }
.cta--link::after { content: "→"; transition: transform .3s var(--ease); }
.cta--link:hover { background-size: 100% 1px; }
.cta--link:hover::after { transform: translateX(3px); }
.btn--sm, .cta--sm { min-width: 0; height: 2.25rem; padding: 0 1rem; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn[disabled], .cta[disabled] { opacity: .55; cursor: default; }
.ctas, .btns { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.ctas--center { justify-content: center; }
@media (max-width: 40rem) { .ctas > .cta:not(.cta--link), .btns > .btn { flex: 1 1 9rem; min-width: 0; } }

/* ---------------------------------------------------------------- 5 Header and menu */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: 0 var(--g); color: var(--fg); transition: background-color .4s, box-shadow .4s;
}
.hdr.is-solid, .hdr.is-open { background: rgba(var(--scrim), .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.has-subnav .hdr { position: absolute; }
.has-subnav .hdr.is-open { position: fixed; }
.hdr__brand { justify-self: start; display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-family: var(--font-display); font-size: .9rem; font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.hdr__brand svg { width: 1.2rem; height: 1.2rem; flex: none; }
.hdr__nav { display: none; gap: .25rem; }
.hdr__nav a { padding: .45rem .9rem; border-radius: 6px; font-size: .875rem; font-weight: var(--fw-medium); transition: background-color .25s; }
.hdr__nav a:hover, .hdr__nav a[aria-current] { background: rgba(244, 243, 239, .1); }
.hdr__end { justify-self: end; grid-column: 3; display: flex; align-items: center; gap: .5rem; }
.hdr__cta { display: none; height: 2.25rem; padding: 0 1rem; border: 1px solid var(--line-2); border-radius: var(--radius-cta); font-size: .8125rem; font-weight: var(--fw-semibold); align-items: center; transition: border-color .25s, background-color .25s; }
.hdr__cta:hover { border-color: var(--fg); background: rgba(244, 243, 239, .08); }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(244, 243, 239, .1); }
.icon-btn svg { width: 1.375rem; height: 1.375rem; }
.hdr__toggle .i-close, .hdr__toggle[aria-expanded="true"] .i-open { display: none; }
.hdr__toggle[aria-expanded="true"] .i-close { display: inline; }
@media (min-width: 40rem) { .hdr__cta { display: inline-flex; } }
@media (min-width: 64rem) { .hdr__nav { display: flex; } .hdr__toggle { display: none; } }
@media (max-width: 24rem) { .hdr__brand { font-size: .75rem; letter-spacing: .08em; } }

.menu { position: fixed; inset: var(--header-h) 0 0; z-index: 90; overflow-y: auto; display: flex; flex-direction: column; gap: 2rem; padding: 1.5rem var(--g) calc(var(--demobar-h) + 2rem); background: var(--bg); }
.menu__main a { display: flex; align-items: center; min-height: 3.5rem; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2.25rem); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); }
.menu__small { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.menu__small a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--dim); font-weight: var(--fw-medium); }
/* the open menu always has its "Book a demo" bar, even over the home first screen where the bar waits off screen */
.is-menu-open .demobar.is-away { transform: none; opacity: 1; }

/* ---------------------------------------------------------------- 6 Media
   .fill: a cover layer behind a section's content (holds the <picture> or the clip). */
.fill { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--bg-2); }
.fill img, .fill video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fill video { z-index: 1; }
.fill[data-tone="bright"] img { filter: brightness(.72) contrast(1.06); }
.fill--contain { background: var(--bg); }
.fill--contain img { object-fit: contain; mix-blend-mode: lighten; }   /* a render on black: its backdrop takes the page colour */
.fill--film video { object-fit: contain; background: #000; }
@media (max-width: 47.99rem) { .fill--small-contain { background: var(--bg); } .fill--small-contain img { mix-blend-mode: lighten; } .fill--small-contain img { object-fit: contain; object-position: 50% 35% !important; } }
/* "fit": "cutout", a render on black: it fills the frame as usual, but on a full screen with a name at the top
   (.screen, the compare columns) it starts below the name, so the name and price never sit on the subject's face. */
.fill--cutout { background: #000; }
.screen, .vs__col { --stage-top: calc(var(--header-h) + 9.5rem); --stage-bottom: calc(var(--demobar-h) + 7rem); }
.screen .fill--cutout img { top: var(--stage-top); height: calc(100% - var(--stage-top)); object-position: 50% 0 !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%); mask-image: linear-gradient(to bottom, transparent, #000 9%); }
/* "fit": "contain" on a full screen: the whole picture stands between the name and the actions, not behind them */
.screen .fill--contain img { top: var(--stage-top); height: calc(100% - var(--stage-top) - var(--stage-bottom)); }
/* phones (with "fitSmall": "contain" too, the JS01): a full-width 3:2 frame centred in that band, which trims the
   render's black margins so the subject is as large as the screen allows */
@media (max-width: 47.99rem) {
  .screen .fill--contain.fill--small-contain img { bottom: var(--stage-bottom); height: 66.667vw; margin: auto 0; object-fit: cover; object-position: 50% 50% !important; }
}
.shade::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--scrim), .72) 0%, rgba(var(--scrim), .5) 14%, rgba(var(--scrim), .12) 28%, rgba(var(--scrim), 0) 50%, rgba(var(--scrim), .82) 100%); }
.is-playing .fill::after { opacity: 0; }
.meta { position: absolute; right: var(--g); bottom: .75rem; z-index: 2; display: flex; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(244, 243, 239, .62); }
.meta__btn { min-height: 2rem; padding: 0 .25rem; border: 0; background: none; color: var(--fg); font: inherit; text-decoration: underline; text-underline-offset: .3em; cursor: pointer; }
.ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 2rem var(--g) 30%; text-align: center; background: repeating-linear-gradient(135deg, #151517 0 14px, #18181a 14px 28px); }
.ph b, .ph span, .ph small { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .08em; text-transform: uppercase; }
.ph span, .ph small { color: var(--dim); }
.ph small { max-width: 34rem; text-transform: none; letter-spacing: .02em; font-size: .8rem; line-height: 1.5; }

/* ---------------------------------------------------------------- 7 Shared patterns
   .screen: a full-screen photographic section with a centred name at the top and the
   readout and calls to action at the foot (Tesla's model screen). Used by home and product pages. */
.screen { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--header-h) + 3rem) var(--g) calc(2.25rem + var(--demobar-h)); text-align: center; }
/* a bright picture (the PM01 in Paris): a deeper veil behind the name and price than the standard shade, and the same dark foot */
.screen--light::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--scrim), .8) 0%, rgba(var(--scrim), .68) 25%, rgba(var(--scrim), 0) 50%, rgba(var(--scrim), 0) 58%, rgba(var(--scrim), .82) 100%); }
.screen__num { position: absolute; left: var(--g); top: calc(var(--header-h) + 1.25rem); color: var(--fg); text-shadow: 0 0 8px rgba(var(--scrim), .7), 0 1px 14px rgba(var(--scrim), .6); }
.screen__sub { margin-top: .6rem; color: var(--fg-2); text-wrap: pretty; }
.screen__foot { position: relative; display: grid; justify-items: center; gap: 1.75rem; width: 100%; }
/* the readout and actions sit on a dark band that fades in above them, so they hold over a white robot or a bright street */
.screen__foot::before { content: ""; position: absolute; inset: -4.5rem -100vw -12rem; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--scrim), 0), rgba(var(--scrim), .58) 4.5rem); }
.readout { display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 4.5rem); }
.readout div { display: grid; gap: .25rem; }
.readout b { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: var(--fw-semibold); letter-spacing: -.01em; line-height: 1.1; }
.readout b small { margin-left: .15em; font-size: .55em; font-weight: var(--fw-medium); color: var(--fg-2); }
.readout span { color: var(--fg-2); }
@media (max-width: 40rem) { .readout { gap: 1.25rem; } }

.sec { padding: var(--section) var(--g); }
.sec--tight { padding-block: calc(var(--section) * .6); }
.sec__head { display: grid; justify-items: center; gap: .75rem; max-width: var(--measure); margin: 0 auto clamp(2rem, 5vh, 3.5rem); text-align: center; }
.sec__head--left { justify-items: start; text-align: left; }
.measure { max-width: var(--measure); margin-inline: auto; }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------------------------------------------------------------- 8 Forms: dark fields, one look for every form */
.form { display: grid; gap: 1.5rem; width: 100%; max-width: 46rem; }
.form__grid { display: grid; gap: 1.25rem var(--g); }
@media (min-width: 40rem) { .form__grid { grid-template-columns: 1fr 1fr; } }
.form__part { display: grid; gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form__part > h2 { font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: var(--fw-regular); letter-spacing: var(--mono-tracking); text-transform: uppercase; color: var(--dim); }
.field { display: grid; gap: .4rem; align-content: start; }
.field label, .fieldset__label { font-size: .8125rem; font-weight: var(--fw-medium); color: var(--fg-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .9rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-input);
  font-size: 1rem; color: var(--fg); appearance: none; -webkit-appearance: none; transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field select { padding-right: 2.25rem; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%) calc(100% - 1.15rem) 55% / 5px 5px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--fg-2) 50%) calc(100% - .85rem) 55% / 5px 5px no-repeat, var(--bg-2); }
.field select option { background: var(--bg-2); color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: #6f6f6c; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--fg); background-color: var(--bg-3); }
.field [aria-invalid="true"], .field [aria-invalid="true"]:hover { border-color: #ff7a6b; }   /* stays red under the pointer */
.field__error, .form-error { font-size: .8125rem; color: #ff9b8f; }
.field__error::before, .form-error::before { content: "! "; font-weight: var(--fw-bold); }
.form-note { font-size: .8125rem; color: var(--dim); max-width: 40rem; }
.form-note a { color: var(--fg-2); text-decoration: underline; text-underline-offset: .25em; }
.fieldset { display: grid; gap: .75rem; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-input); font-size: .875rem; font-weight: var(--fw-medium); color: var(--fg-2); transition: border-color .2s, color .2s, background-color .2s; }
.opt input:hover + span { border-color: var(--line-2); }
.opt input:checked + span { border-color: var(--fg); color: var(--fg); background: rgba(244, 243, 239, .06); }
.opt input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.opt input:disabled + span { opacity: .45; }

/* ---------------------------------------------------------------- 9 Panels: modal, cookie bar, demo bar, switcher */
.modal { width: min(32rem, 100%); max-width: none; height: 100%; max-height: none; margin: 0 0 0 auto; padding: 0; overflow-y: auto; background: var(--bg-2); color: var(--fg); border: 0; border-left: 1px solid var(--line); }
.modal::backdrop { background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal .form { max-width: none; gap: 1.25rem; padding: 1.25rem var(--g) 2.5rem; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
.modal__line { color: var(--dim); }

.consent { position: fixed; left: .75rem; right: .75rem; bottom: calc(var(--demobar-h) + .75rem); z-index: 120; display: grid; gap: .85rem; padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(22, 22, 23, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); font-size: .875rem; line-height: 1.45; color: var(--fg-2); }
.consent p { min-width: 0; }
.consent .btns { justify-content: flex-end; }
@media (min-width: 40rem) { .consent { left: auto; right: var(--g); width: 23rem; } }
.demobar.is-away ~ .consent { bottom: .75rem; }
.consent .btns { flex: none; flex-wrap: nowrap; gap: .5rem; }
.consent .btn { flex: none; min-width: 0; height: 2.25rem; padding: 0 1rem; }
.consent a { text-decoration: underline; text-underline-offset: .25em; }

.demobar { position: fixed; inset: auto 0 0; z-index: 110; height: var(--demobar-h); display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 0 var(--g) env(safe-area-inset-bottom); background: rgba(var(--scrim), .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  transition: transform .5s var(--ease), opacity .5s; }
.demobar__line { display: none; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--mono-tracking); text-transform: uppercase; color: var(--dim); }
.demobar .btn { width: 100%; max-width: 22rem; height: 2.5rem; }
.demobar.is-away { transform: translateY(100%); opacity: 0; }
@media (min-width: 40rem) { .demobar .btn { width: auto; min-width: 14rem; } }

/* Preview only: a small chip at the bottom left, just above the demo bar, that opens upwards to the four variants.
   Fixed colours on purpose, so it looks the same in every theme. */
.switcher { position: fixed; left: .5rem; bottom: calc(var(--demobar-h) + .5rem); z-index: 130; font: 500 .72rem/1 ui-monospace, monospace; color: #f4f3ef; }
.demobar.is-away ~ .switcher { bottom: .5rem; }
.is-menu-open .demobar.is-away ~ .switcher { bottom: calc(var(--demobar-h) + .5rem); }
.consent:not([hidden]) ~ .switcher { bottom: calc(var(--demobar-h) + 4rem); }   /* above the cookie bar while it shows */
.switcher summary { display: flex; align-items: center; gap: .3rem; height: 1.75rem; padding: 0 .55rem; border: 1px solid rgba(244, 243, 239, .3); border-radius: 999px; background: rgba(12, 12, 13, .9); list-style: none; cursor: pointer; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary::after { content: ""; width: .3rem; height: .3rem; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(.08rem) rotate(-45deg); }
.switcher [open] summary::after { transform: translateY(-.08rem) rotate(135deg); }
.switcher__list { position: absolute; left: 0; bottom: calc(100% + .35rem); display: grid; gap: .15rem; padding: .25rem; border: 1px solid rgba(244, 243, 239, .3); border-radius: 1rem; background: rgba(12, 12, 13, .94); }
.switcher a { display: grid; place-items: center; min-width: 2rem; height: 1.75rem; padding: 0 .45rem; border-radius: 999px; }
.switcher a:hover { background: rgba(244, 243, 239, .12); }
.switcher a[aria-current] { background: #f4f3ef; color: #0c0c0d; }

/* ---------------------------------------------------------------- 10 Footer */
.ftr { display: grid; gap: 1.5rem; padding: 3rem var(--g) 2.5rem; border-top: 1px solid var(--line); background: var(--bg); }
.ftr__links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.ftr__links a, .ftr__links button { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0; border: 0; background: none; font-size: .875rem; color: var(--dim); cursor: pointer; transition: color .2s; }
.ftr__links a:hover, .ftr__links button:hover { color: var(--fg); }
.ftr__contact a { font-weight: var(--fw-semibold); color: var(--fg); }
.ftr__base { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; line-height: 1.7; color: var(--dim); max-width: 64rem; }

/* ---------------------------------------------------------------- 11 Motion: slow, and off when asked
   .rv: reveal once on scroll (site.js adds .in). [data-reveal] .rise: the older pattern, same effect. */
.rv, .js [data-reveal] .rise { opacity: 0; transform: translateY(1.25rem); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.rv.in, .js [data-reveal].is-in .rise { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 90ms; } .rv-d2 { transition-delay: 180ms; } .rv-d3 { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .js [data-reveal] .rise { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print { .hdr, .menu, .consent, .modal, .demobar, .switcher, .meta { display: none !important; } body { padding: 0; } }

/* ---- 10-home.css ---- */
/* Home: robot screens (base .screen), capability reel, up close, the moment, events, tiles. */

/* ---- Robot screens: the first one sits under a transparent header */
.is-home [data-first-screen] { padding-bottom: 2.75rem; }   /* the demo bar is hidden on the first screen */
.screen__head .display { text-shadow: 0 1px 24px rgba(0, 0, 0, .25); }

/* ---- Capability reel: full-screen landscape, slides on its own, all four live in the dock.
   It is one header shorter than the screen, so wherever it comes to rest (flush with the top, or under the header
   after a link or keyboard jump) the dock, its labels and the Pause control stay clear of the demo bar.
   --reel-dock-h is the dock's height (16:9 minis plus label and bar), so the clip name always stands above it. */
.reel { position: relative; isolation: isolate; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 34rem; overflow: hidden; background: #000; touch-action: pan-y;
  --reel-dock-w: min(64rem, 100vw - 2 * var(--g));
  --reel-dock-h: calc((var(--reel-dock-w) - 5.25rem) / 4 * 9 / 16 + 2.5rem); }
.reel__track { position: absolute; inset: 0; display: flex; transition: transform 1.1s var(--ease); will-change: transform; }
.reel__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.reel__slide img, .reel__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__slide video { z-index: 1; }
.reel::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--scrim), .84) 0%, rgba(var(--scrim), .55) 20%, rgba(var(--scrim), 0) 36%, rgba(var(--scrim), 0) 52%, rgba(var(--scrim), .9) 100%); }
.reel__head { position: absolute; left: var(--g); top: calc(var(--header-h) + 1.25rem); z-index: 2; display: grid; gap: .4rem; text-shadow: 0 1px 24px rgba(var(--scrim), .6); }
.reel__head .mono { color: var(--fg-2); }
.reel__now { position: absolute; left: 50%; bottom: calc(var(--demobar-h) + 1.25rem + var(--reel-dock-h) + .9rem); z-index: 2; transform: translateX(-50%); display: flex; align-items: baseline; gap: .6rem; text-align: center; white-space: nowrap; text-shadow: 0 1px 12px rgba(var(--scrim), .7); }
.reel__now b { font-size: 1rem; font-weight: var(--fw-medium); letter-spacing: 0; line-height: 1.2; transition: opacity .4s; }
.reel__now .mono { color: var(--fg-2); }
.reel__arrow { position: absolute; top: 50%; z-index: 3; display: none; place-items: center; width: 3.25rem; height: 3.25rem; margin-top: -1.625rem; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(var(--scrim), .35); color: var(--fg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transition: background-color .25s, border-color .25s; }
.reel__arrow:hover { background: rgba(244, 243, 239, .12); border-color: var(--fg); }
.reel__arrow svg { width: 1.5rem; height: 1.5rem; }
.reel__arrow--prev { left: var(--g); } .reel__arrow--next { right: var(--g); }
@media (min-width: 48rem) { .reel__arrow { display: grid; } }

.reel__dock { position: absolute; left: 50%; bottom: calc(var(--demobar-h) + 1.25rem); z-index: 3; transform: translateX(-50%); display: flex; align-items: flex-end; gap: .75rem; width: min(64rem, calc(100% - 2 * var(--g))); }
.reel__thumb { position: relative; flex: 1 1 0; min-width: 0; display: grid; gap: .45rem; padding: 0; border: 0; background: none; color: var(--fg-2); text-align: left; cursor: pointer; }
.reel__mini { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; outline: 1px solid var(--line); outline-offset: -1px; opacity: .62; transform: translateY(0); transition: opacity .4s, transform .5s var(--ease), outline-color .4s; }
.reel__mini img, .reel__mini video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__mini video { z-index: 1; }
.reel__label { font-size: .8125rem; font-weight: var(--fw-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel__label .mono { margin-right: .3rem; font-size: .66rem; color: var(--dim); }
.reel__bar { display: block; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.reel__bar i { display: block; width: 0; height: 100%; background: var(--fg); }
.reel__thumb:hover .reel__mini { opacity: .9; }
.reel__thumb[aria-selected="true"] { color: var(--fg); }
.reel__thumb[aria-selected="true"] .reel__mini { opacity: 1; transform: translateY(-4px); outline-color: var(--fg); }
.reel__thumb[aria-selected="true"] .reel__bar i { width: calc(var(--p, 0) * 100%); }
.reel__pause { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 1.25rem; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(var(--scrim), .35); color: var(--fg); cursor: pointer; }
.reel__pause svg { width: .95rem; height: .95rem; }
.reel__pause .i-play, .reel.is-paused .reel__pause .i-pause { display: none; }
.reel.is-paused .reel__pause .i-play { display: inline; }
.reel.is-dragging .reel__track { transition: none; }
@media (max-width: 47.99rem) {
  .reel__dock { gap: .4rem; bottom: calc(var(--demobar-h) + .75rem); }
  .reel__label { font-size: .68rem; }
  .reel__label .mono { display: none; }
  .reel__now b { font-size: .9375rem; }
}

/* ---- Cinema: one full-screen landscape clip, no words. On portrait screens a 16:9 band, so it stays landscape */
.cinema { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: 26rem; overflow: hidden; background: #000; }
.cinema .meta { bottom: calc(var(--demobar-h) + .75rem); }
.cinema::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(var(--scrim), .85) 0%, rgba(var(--scrim), .45) 30%, rgba(var(--scrim), 0) 55%); }
.cinema__body { position: absolute; left: var(--g); bottom: calc(var(--demobar-h) + clamp(1.5rem, 5vh, 3rem)); z-index: 2; display: grid; gap: .6rem; max-width: 34rem; text-shadow: 0 1px 18px rgba(var(--scrim), .6); }
.cinema__body .mono { color: var(--fg-2); }
.cinema__title { font-family: var(--font-display); font-size: var(--fs-title); font-weight: var(--fw-light); letter-spacing: var(--display-tracking); line-height: 1.04; text-wrap: balance; }
.cinema__line { font-size: var(--fs-lede); color: var(--fg-2); }
/* portrait screens: the clip is a 16:9 band and the words sit under it */
@media (max-aspect-ratio: 1/1) {
  .cinema { height: auto; min-height: 0; overflow: visible; background: var(--bg); }
  .cinema > .fill { position: relative; inset: auto; z-index: 0; height: 56.25vw; }
  .cinema::after { display: none; }
  .cinema .meta { top: calc(56.25vw - 1.75rem); bottom: auto; }
  .cinema__body { position: static; padding: 1.5rem var(--g) 2.5rem; text-shadow: none; }
}

/* Reel controls: no strip of clips, just four thin progress bars (one per clip, tap to jump) and Pause */
.reel { --reel-dock-w: min(17rem, 100vw - 2 * var(--g)); --reel-dock-h: 2.25rem; }
.reel__dock { width: var(--reel-dock-w); align-items: center; gap: .5rem; }
.reel__thumb { padding: 1rem 0; }
.reel__thumb .reel__bar { height: 3px; background: rgba(244, 243, 239, .28); }
.reel__thumb:hover .reel__bar { background: rgba(244, 243, 239, .5); }
.reel__pause { margin-bottom: 0; }

/* ---- Up close */
.upclose__grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); max-width: var(--measure); margin: 0 auto; }
@media (min-width: 48rem) { .upclose__grid { grid-template-columns: 1fr 1fr; } }
.upclose__img { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.upclose__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.upclose__item:hover .upclose__img img { transform: scale(1.03); }
.upclose__item figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem .2rem 0; font-weight: var(--fw-medium); }
.upclose__item figcaption .mono { color: var(--dim); }

/* ---- The moment: full-width slow-motion loop, one line */
.moment { position: relative; isolation: isolate; height: 86vh; height: 86svh; min-height: 26rem; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding-bottom: calc(var(--demobar-h) + clamp(1.5rem, 5vh, 3rem)); }
.moment::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(var(--scrim), .55), rgba(var(--scrim), 0) 38%); }
.moment__line { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: var(--fw-medium); letter-spacing: -.01em; text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }

/* ---- Events: real event footage, one headline, one line, one action, and a slow ticker of where we go */
.events { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.events::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to right, rgba(var(--scrim), .82) 0%, rgba(var(--scrim), .35) 45%, rgba(var(--scrim), 0) 70%), linear-gradient(to top, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), 0) 40%); }
.events__body { display: grid; justify-items: start; gap: 1.1rem; max-width: 46rem; padding: calc(var(--header-h) + 4rem) var(--g) 2.5rem; }
.events__body .mono { color: var(--fg-2); text-shadow: 0 1px 10px rgba(var(--scrim), .75); }
.events__title { font-family: var(--font-display); font-size: clamp(3rem, 7.4vw, 6.75rem); font-weight: var(--display-weight); letter-spacing: -.035em; text-transform: var(--display-case); line-height: .94; text-wrap: balance; }
.events__line { color: var(--fg-2); font-size: var(--fs-lede); margin-bottom: .5rem; }
.events__marquee { overflow: hidden; padding: 1rem 0 calc(var(--demobar-h) + 1rem); border-top: 1px solid var(--line); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.events__track { display: flex; width: max-content; gap: 3rem; animation: events-tick 46s linear infinite; }
.events__track span { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: var(--fw-medium); color: rgba(244, 243, 239, .55); white-space: nowrap; }
.events__track span::after { content: "·"; margin-left: 3rem; color: rgba(244, 243, 239, .3); }
@keyframes events-tick { to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .events__track { animation: none; } }
/* the section's Pause stops the ticker as well as the footage (site.js marks the section while its clip is paused) */
.events.is-loop-paused .events__track { animation-play-state: paused; }

.events .meta { top: calc(var(--header-h) + 1rem); bottom: auto; }

/* ---- Tiles: customisation, rental, schools */
.tiles { display: grid; gap: clamp(1rem, 2vw, 1.5rem); max-width: var(--measure); margin: 0 auto; }
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile a { position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.tile__img img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(var(--scrim), .88) 0%, rgba(var(--scrim), .6) 40%, rgba(var(--scrim), 0) 70%); }
.tile a:hover .tile__img img { transform: scale(1.04); }
.tile__text { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; display: grid; justify-items: start; gap: .35rem; }
.tile__text .mono { color: var(--fg-2); text-shadow: 0 1px 10px rgba(var(--scrim), .75); }
.tile__text b { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); }
.tile__text .cta--link { font-size: .875rem; }
.tile a:hover .cta--link { background-size: 100% 1px; }
@media (max-width: 47.99rem) { .tile a { aspect-ratio: 4 / 3; } }

/* Pause controls clear of the demo bar (it is hidden only while the first screen is in view) */
.screen .meta, .moment .meta { bottom: calc(var(--demobar-h) + .75rem); }
.is-home [data-first-screen] .meta { bottom: .75rem; }
/* A tile whose picture is a clip gets its own Pause control, top right */
.tile { position: relative; }
.tile__btn { position: absolute; top: .6rem; right: .8rem; z-index: 2; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* The moment on portrait screens: a tall crop of this landscape clip keeps only the gap between the child and the
   robot, so it becomes a 4:3 band that keeps both of them (and the fist bump) in frame. */
@media (max-aspect-ratio: 1/1) {
  .moment { height: 75vw; min-height: 0; padding-bottom: 1.25rem; }   /* 4:3 of the full width */
  .moment .meta { bottom: .5rem; }
}
/* a single tile (Schools): one wide panel instead of a third of a row */
@media (min-width: 48rem) { .tiles:has(> li:only-child) { grid-template-columns: 1fr; } .tiles > li:only-child a { aspect-ratio: 21 / 8; } }

/* ---- 20-product.css ---- */
/* Product pages: T800 and PM01 model pages (pages/product.html), JS01 (pages/js01.html), Compare (pages/compare.html),
   and the shared partials clips.html (up close) and stats.html (big numbers).
   Builds on the base primitives (.screen, .readout, .cta, .title, .rv). Tokens only, so themes restyle it too.

   1 Hero  2 Sub-nav  3 Feature panels  4 Up close  5 Big numbers  6 Specs  7 Order  8 JS01  9 Compare */

.has-subnav, .is-product { --subnav-h: 3rem; }

/* ---------------------------------------------------------------- 1 Hero: a full .screen with the name, price, readout and two actions */
.pd-hero__name { font-size: calc(var(--fs-display) * 1.3); text-shadow: 0 1px 24px rgba(var(--scrim), .3); }
.pd-hero .screen__sub { font-size: 1.0625rem; }
.pd-hero .meta { bottom: calc(var(--demobar-h) + .6rem); }
.pd-hero__readout div { display: grid; gap: .3rem; }
.pd-hero__readout dd { order: -1; }
.pd-hero__readout dt { color: var(--fg-2); }
.pd-hero__soon { color: var(--fg-2); }
.pd-hero--soon { --stage-bottom: calc(var(--demobar-h) + 9.5rem); }   /* the JS01 picture stops above the line and both actions */
@media (max-width: 40rem) {
  .pd-hero__readout { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 1.1rem 2.75rem; }
  /* two actions share the row by their own length, so a longer label like "Book a demonstration" still fits */
  .pd-hero .ctas > .cta, .order .ctas > .cta { flex: 1 1 auto; padding-inline: 1.15rem; }
}
/* phones: a tall crop of a landscape picture can lose the robot, so a panel may set its own focal point */
@media (max-width: 47.99rem) {
  .has-focus > .fill img, .has-focus > .fill video { object-position: var(--focus-sm) !important; }
}

/* ---------------------------------------------------------------- 2 Sub-nav: slim, sticky, dark glass. The header scrolls away above it (.has-subnav). */
.subnav { position: sticky; top: 0; z-index: 80; height: var(--subnav-h); display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 0 var(--g); background: rgba(var(--scrim), .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav__name { display: none; font-family: var(--font-display); font-size: 1.0625rem; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); }
.subnav__links { display: flex; gap: clamp(1.25rem, 3vw, 2.25rem); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__links a { display: inline-flex; align-items: center; height: var(--subnav-h); font-size: .8125rem; font-weight: var(--fw-medium); color: var(--dim); white-space: nowrap;
  box-shadow: inset 0 0 0 transparent; transition: color .25s, box-shadow .3s var(--ease); }
.subnav__links a:hover { color: var(--fg); }
.subnav__links a[aria-current] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.subnav__cta { display: none; }
.subnav .cta--sm { height: 2rem; }
@media (min-width: 48rem) {
  .subnav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .subnav__name { display: block; justify-self: start; }
  .subnav__cta { display: inline-flex; justify-self: end; }
}

/* ---------------------------------------------------------------- 3 Feature panels: full screen, one picture or clip each.
   Each panel sticks under the sub-nav and the next one slides over it like a curtain. */
.feats { position: relative; }
.feat { position: sticky; top: var(--subnav-h); isolation: isolate; overflow: hidden;
  height: calc(100vh - var(--subnav-h)); height: calc(100svh - var(--subnav-h)); min-height: 30rem;
  display: flex; align-items: flex-end; padding: 0 var(--g) calc(var(--demobar-h) + clamp(2rem, 8vh, 5rem));
  background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
.feat::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity .4s;
  background: linear-gradient(to top, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .5) 26%, rgba(var(--scrim), 0) 56%),
              linear-gradient(to right, rgba(var(--scrim), .55) 0%, rgba(var(--scrim), 0) 52%); }
.feat__body { display: grid; justify-items: start; gap: .85rem; max-width: 44rem; }
.feat__num { color: var(--fg-2); text-shadow: 0 0 8px rgba(var(--scrim), .7); }
.feat__num span { color: var(--fg-2); }
.feat__title { font-family: var(--font-display); font-size: clamp(2.6rem, 6.2vw, 5.5rem); font-weight: var(--display-weight); letter-spacing: calc(var(--display-tracking) - .01em);
  text-transform: var(--display-case); line-height: .96; text-wrap: balance; }
.feat__line { max-width: 30rem; font-size: var(--fs-lede); color: var(--fg-2); }
.feat__body .cta { margin-top: .5rem; }
.feat .meta { bottom: calc(var(--demobar-h) + .6rem); }
.feat .ph { padding-bottom: 40%; }
.feat.is-playing::after, .feat.is-playing .feat__body, .feat.is-playing .meta { opacity: 0; visibility: hidden; }
.feat.is-playing .fill { bottom: var(--demobar-h); }   /* the film and its controls sit clear of the demo bar */
@media (max-height: 32rem) { .feat { position: relative; top: auto; } }
/* keyboard focus inside a panel: lift it over the later panels stacked on top, so the control and its ring stay visible */
.feat:has(:focus-visible) { z-index: 1; }

/* ---------------------------------------------------------------- 4 Up close: large framed loops with numbered captions, all playing at once */
.closeup { padding: var(--section) var(--g); }
.closeup__head { display: grid; justify-items: start; gap: .75rem; max-width: var(--measure); margin: 0 auto clamp(2rem, 5vh, 3.5rem); }
.closeup__grid { display: grid; gap: clamp(1.25rem, 2.2vw, 1.75rem); max-width: var(--measure); margin: 0 auto; }
.closeup__item figure { display: flex; flex-direction: column; height: 100%; }
.closeup__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.closeup__frame::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.closeup__frame img, .closeup__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closeup__frame video { z-index: 1; }
.closeup__cap { display: flex; align-items: baseline; gap: .9rem; padding: .9rem .15rem 0; }
.closeup__n { color: var(--dim); }
.closeup__label { flex: 1; min-width: 0; font-weight: var(--fw-medium); }
.closeup__credit { font-size: .625rem; color: var(--dim); white-space: nowrap; }
.closeup__btn { min-height: 2rem; padding: 0 .2rem; border: 0; background: none; color: var(--fg-2); font-size: .625rem; text-decoration: underline; text-underline-offset: .3em; cursor: pointer; }
.closeup__btn:hover { color: var(--fg); }
@media (min-width: 48rem) {
  .closeup__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  .closeup__item:first-child { grid-row: span 2; }
  .closeup__item:first-child .closeup__frame { flex: 1; aspect-ratio: auto; min-height: 18rem; }
  .closeup__item:first-child .closeup__label { font-size: 1.125rem; }
}
@media (max-width: 30rem) { .closeup__credit { display: none; } }

/* ---------------------------------------------------------------- 5 Big numbers (partials/stats.html): numbers set as type */
.strip__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem var(--g); }
.stat { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.stat dd { order: -1; font-family: var(--font-display); font-size: clamp(2.25rem, 4.4vw, 3.5rem); font-weight: var(--display-weight); letter-spacing: calc(var(--display-tracking) - .01em); text-transform: var(--display-case); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat dd i { margin-left: .18em; font-size: .36em; font-style: normal; font-weight: var(--fw-medium); letter-spacing: 0; color: var(--fg-2); }
.stat dt { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--mono-tracking); text-transform: uppercase; color: var(--dim); }
@media (min-width: 60rem) { .strip .strip__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- 6 Specs: a picture beside the numbers and the full sheet */
.specs { padding: var(--section) var(--g); border-top: 1px solid var(--line); }
.specs__wrap { display: grid; gap: clamp(2.5rem, 5vw, 5.5rem); max-width: 84rem; margin: 0 auto; }
/* the plate takes the picture's own background; a white studio cut-out or drawing melts into it */
.specs__plate { overflow: hidden; border-radius: var(--radius); background: var(--fg); }
.specs__plate img { width: 100%; height: auto; max-height: 76vh; object-fit: contain; mix-blend-mode: multiply; }
.specs__head { display: grid; gap: .6rem; margin-bottom: clamp(1.75rem, 4vh, 2.5rem); }
.specs__nums { padding: 1.75rem 0 2rem; border-top: 1px solid var(--line); }
.specs__nums .stat dd { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }
.specs__groups { margin-top: 1rem; border-bottom: 1px solid var(--line); }
.specs__group { border-top: 1px solid var(--line); }
.specs__group > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; padding: .85rem 0;
  list-style: none; cursor: pointer; font-size: 1.0625rem; font-weight: var(--fw-medium); transition: color .2s; }
.specs__group > summary::-webkit-details-marker { display: none; }
.specs__group > summary:hover { color: var(--fg-2); }
.specs__group > summary i { position: relative; flex: none; width: .85rem; height: .85rem; color: var(--fg-2); }
.specs__group > summary i::before, .specs__group > summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .35s var(--ease); }
.specs__group > summary i::after { transform: rotate(90deg); }
.specs__group[open] > summary i::after { transform: rotate(0deg); }
.specs__rows { margin: 0 0 1.25rem; font-size: .9375rem; }
.specs__rows th, .specs__rows td { padding: .8rem 0; text-align: left; vertical-align: top; font-weight: var(--fw-regular); border-top: 1px solid var(--line); }
.specs__rows tr:first-child th, .specs__rows tr:first-child td { border-top: 0; }
.specs__rows th { width: 40%; padding-right: 1.5rem; color: var(--dim); }
.specs__rows td { color: var(--fg); font-variant-numeric: tabular-nums; }
.specs__notes { display: grid; gap: .8rem; max-width: 44rem; padding: 0 0 1.5rem; font-size: .875rem; color: var(--dim); }
.specs__compare { margin-top: 1.75rem; font-size: .875rem; }
@media (min-width: 64rem) {
  .specs__wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .specs__plate { position: sticky; top: calc(var(--subnav-h) + 2rem); }
}

/* ---------------------------------------------------------------- 7 Order: edition selector beside a big picture */
.order { position: relative; display: grid; background: var(--bg); border-top: 1px solid var(--line); }
.order__media { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 3; }
.order__media .meta { padding: .3rem .5rem; border-radius: 4px; background: rgba(var(--scrim), .66); }
.order__media .fill--contain img { object-fit: cover; object-position: 50% 25%; }   /* a portrait fills the column instead of floating in it */
.order__form { display: grid; align-content: center; gap: 1.75rem; width: 100%; max-width: 36rem; padding: clamp(2.5rem, 8vh, 4.5rem) var(--g); }
.order__head { display: grid; gap: .6rem; }
.order__tag { color: var(--fg-2); }
.order__editions { display: grid; gap: .6rem; }
.order__editions legend { margin-bottom: .9rem; padding: 0; color: var(--dim); }
.choice__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .4rem 1rem;
  padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-input); cursor: pointer; transition: border-color .25s, background-color .25s; }
.choice__row input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.choice__row:hover { border-color: var(--line-2); }
.choice__row.is-checked, .choice__row:has(input:checked) { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 5%, transparent); }
.choice__row:has(input:focus-visible) { outline: 2px solid var(--fg); outline-offset: 2px; }
.choice__name { font-weight: var(--fw-semibold); }
.choice__price { font-size: .875rem; color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice__body { display: none; grid-column: 1 / -1; max-width: 30rem; font-size: .875rem; color: var(--dim); }
.choice__row input:checked ~ .choice__body { display: block; }
/* the price is sized to the column (cqi), so "From $74,900 inc. GST" stays on one line from phones to wide screens */
.order__total { container-type: inline-size; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.order__total .mono { color: var(--dim); }
.order__price { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-size: clamp(1.375rem, 7.4cqi, 2.5rem); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.05; text-align: right; font-variant-numeric: tabular-nums; text-wrap: balance; }
.order__note { margin-top: -.75rem; font-size: .8125rem; color: var(--dim); }
@media (min-width: 64rem) {
  .order { grid-template-columns: minmax(0, 1.4fr) minmax(26rem, 1fr); }
  .order__media { align-self: start; position: sticky; top: var(--subnav-h); aspect-ratio: auto; height: calc(100vh - var(--subnav-h)); height: calc(100svh - var(--subnav-h)); min-height: 34rem; }
  .order__media .meta { bottom: calc(var(--demobar-h) + .6rem); }
  .order__form { min-height: calc(100svh - var(--subnav-h)); padding: var(--section) clamp(2rem, 4vw, 4.5rem); }
}

/* ---------------------------------------------------------------- 8 JS01: coming soon */
.soon { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; max-width: var(--measure); margin: 0 auto; padding: var(--section) var(--g); }
.soon__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--bg-2); }
.soon__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.soon__media figcaption { position: absolute; right: 1rem; bottom: .75rem; font-size: .625rem; color: var(--fg-2); }
.soon__body { display: grid; justify-items: start; gap: 1rem; }
.soon__body .ctas { margin-top: .5rem; }
@media (min-width: 64rem) { .soon { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }

.pair { display: grid; gap: 1px; background: var(--line); }
.pair__item { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 62vh; min-height: 62svh; padding: 2rem var(--g); background: var(--bg); }
.pair__item::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(var(--scrim), .85) 0%, rgba(var(--scrim), 0) 50%); }
.pair__item .fill img { transition: transform 1.4s var(--ease); }
.pair__item:hover .fill img { transform: scale(1.03); }
.pair__text { display: grid; justify-items: start; gap: .35rem; }
.pair__text > .mono { color: var(--fg-2); }
.pair__name { font-family: var(--font-display); font-size: var(--fs-title); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1; }
.pair__price { color: var(--fg-2); }
.pair__text .cta--link { margin-top: .35rem; font-size: .875rem; }
.pair__item:hover .cta--link { background-size: 100% 1px; }
@media (min-width: 48rem) { .pair { grid-template-columns: 1fr 1fr; } .pair__item { min-height: 78vh; min-height: 78svh; } }

/* ---------------------------------------------------------------- 9 Compare: the robots on top, then one clean table */
/* the hairline between the two columns starts under the header, so it never runs through the transparent header's links */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: linear-gradient(to bottom, var(--bg) var(--header-h), var(--line) var(--header-h)); }
/* a render on black (slot "fit": "cutout", the PM01) starts below the name, so the name never sits on its face */
.vs__col .fill--cutout img { top: var(--stage-top); height: calc(100% - var(--stage-top)); object-position: 50% 0 !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%); mask-image: linear-gradient(to bottom, transparent, #000 9%); }
.vs__col { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  height: 100vh; height: 100svh; min-height: 32rem; padding: calc(var(--header-h) + 2.5rem) clamp(.75rem, 3vw, 2rem) calc(var(--demobar-h) + 2.25rem); text-align: center; background: var(--bg); }
.vs__head { display: grid; justify-items: center; gap: .55rem; }
.vs__kind, .vs__price { color: var(--fg-2); }
.vs__name { font-size: calc(var(--fs-display) * 1.15); text-shadow: 0 1px 24px rgba(var(--scrim), .3); }
.vs__ctas > .cta { min-width: 9.5rem; }
@media (max-width: 47.99rem) {
  .vs__col { height: 78vh; height: 78svh; min-height: 30rem; padding-bottom: 1.5rem; }
  .vs__name { font-size: clamp(2.5rem, 12vw, 3.25rem); }
  .vs__price { font-size: .8125rem; }
  .vs__kind { font-size: .625rem; }
  .vs__ctas { flex-direction: column; align-items: stretch; width: 100%; gap: .5rem; }
  .vs__ctas > .cta:not(.cta--link) { flex: none; width: 100%; min-width: 0; height: 2.5rem; padding: 0 .75rem; font-size: .8125rem; }
}

.vs-specs { max-width: 64rem; margin: 0 auto; padding: var(--section) var(--g); }
.vs-specs__head { display: grid; gap: .6rem; margin-bottom: 2rem; }
.vs-table { table-layout: fixed; font-size: .9375rem; border-collapse: separate; border-spacing: 0; }   /* separate borders keep the sticky head opaque */
.vs-table thead th { position: sticky; top: var(--header-h); z-index: 2; padding: 1rem 1.5rem .9rem 0; background: var(--bg); text-align: left; border-bottom: 1px solid var(--line-2);
  font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); }
.vs-table__corner { width: 30%; }
.vs-table th[scope="row"], .vs-table td { padding: .9rem 1.5rem .9rem 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); font-weight: var(--fw-regular); }
.vs-table th[scope="row"] { color: var(--dim); }
.vs-table td { font-variant-numeric: tabular-nums; }
.vs-table__group th { padding: 2.75rem 0 .9rem; text-align: left; font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: var(--fw-regular);
  letter-spacing: var(--mono-tracking); text-transform: uppercase; color: var(--fg-2); }
.vs-table tbody:first-of-type .vs-table__group th { padding-top: 1.75rem; }
.vs-table__group + tr th, .vs-table__group + tr td { border-top-color: var(--line-2); }
.vs-specs__notes { margin-top: 3rem; border-bottom: 1px solid var(--line); }
@media (max-width: 47.99rem) {
  .vs-table, .vs-table tbody, .vs-table thead { display: block; }
  .vs-table thead { position: sticky; top: var(--header-h); z-index: 2; background: var(--bg); }
  .vs-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.25rem; }
  .vs-table thead th { position: static; padding-right: 0; font-size: 1.125rem; }
  .vs-table__corner { display: none; }
  .vs-table th[scope="row"] { grid-column: 1 / -1; padding: .9rem 0 .3rem; font-size: .8125rem; }
  .vs-table td { padding: 0 0 .9rem; border-top: 0; font-size: .875rem; }
  .vs-table td[colspan] { grid-column: 1 / -1; }
  .vs-table__group th { grid-column: 1 / -1; }
}

.vs-end { display: grid; justify-items: center; gap: 1rem; padding: var(--section) var(--g); text-align: center; border-top: 1px solid var(--line); }
.vs-end .lede { color: var(--fg-2); }
.vs-end .ctas { margin-top: .75rem; }
/* a bright hero photo (PM01 in Paris): a deeper veil across the top keeps the name and price readable */
.pd-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 45%%; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(var(--scrim), .55), rgba(var(--scrim), 0)); }
.pd-hero .screen__sub { text-shadow: 0 1px 14px rgba(var(--scrim), .8); }

/* T800 order: the way into the 3D colour studio (customisation is reached from buying, not the menu) */
.order__studio { display: grid; gap: .25rem; margin: .25rem 0 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--radius-input); color: var(--fg); text-decoration: none; transition: border-color .25s, background-color .25s; }
.order__studio:hover { border-color: var(--fg); background: rgba(244, 243, 239, .04); }
.order__studio .mono { color: var(--dim); }
.order__studio b { font-weight: var(--fw-medium); }
.order__studio b::after { content: " \2192"; }
.order__studio-sub { font-size: .875rem; color: var(--fg-2); }

/* ---- 30-commerce.css ---- */
/* Commerce: the order and demo checkout (/buy/, /demo/), and customisation with the 3D colour studio (/customisation/).
   Tesla's order and design pages, dark: the robot large on the left and sticky, the choices in a narrow column on the right.
   One column on phones, with the picture first.

   1 Shared  2 Checkout stage  3 Checkout form  4 Customisation hero and closing screen  5 Studio stage  6 Studio panel
   7 Colour picker (markup generated by assets/js/t800-studio.v1.js)  8 Studio summary */

/* ---------------------------------------------------------------- 1 Shared */
.checkout, .studio { --panel: clamp(25rem, 34vw, 32rem); --pad: clamp(1.5rem, 2.6vw, 2.75rem); }

/* A numbered step title: "01  Robot". Used by the checkout form parts and the studio fieldsets. */
.checkout__form .form__part > h2, .step {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .7rem;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  text-transform: var(--display-case); line-height: 1.2; color: var(--fg);
}
.checkout__form .form__part > h2 .mono, .step .mono { font-size: var(--fs-mono); font-weight: var(--fw-regular); letter-spacing: var(--mono-tracking); color: var(--dim); }
.step .optional { font-size: .875rem; font-weight: var(--fw-regular); letter-spacing: 0; text-transform: none; }

/* Option layouts: large rows (robot), a three-way segmented choice (next step), and an even grid (branding). */
.opts--rows { display: grid; gap: .6rem; }
.opts--rows .opt span {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .15rem 1rem;
  width: 100%; min-height: 4.25rem; padding: .85rem 1.15rem;
}
.opts--rows .opt b { font-family: var(--font-display); font-size: 1.125rem; font-weight: var(--fw-semibold); text-transform: var(--display-case); line-height: 1.2; color: var(--fg); }
.opts--rows .opt small { grid-column: 1; font-size: .8125rem; line-height: 1.3; color: var(--dim); }
.opts--rows .opt em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: .875rem; font-weight: var(--fw-medium); color: var(--fg-2); white-space: nowrap; }
.opts--seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.opts--seg .opt span { justify-content: center; width: 100%; min-height: 3rem; padding: .5rem .6rem; text-align: center; line-height: 1.2; }
.opts--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); gap: .5rem; }
.opts--grid .opt span { width: 100%; height: 100%; line-height: 1.25; }
.opts--rows .opt input:checked + span, .opts--seg .opt input:checked + span, .opts--grid .opt input:checked + span {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}

/* ---------------------------------------------------------------- 2 Checkout stage
   One view per robot, stacked. The view for the checked "product" radio shows (CSS :has(), no script needed);
   without :has() the T800 view stays. Hidden views are display: none, so their pictures and clips do not load or play. */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "head" "form"; }
.checkout__stage { grid-area: stage; position: relative; height: clamp(26rem, 66vh, 40rem); height: clamp(26rem, 66svh, 40rem); overflow: hidden; background: var(--bg-2); }
.checkout__view { position: absolute; inset: 0; isolation: isolate; display: none; animation: checkout-fade .6s ease both; }
.checkout__view[data-view="t800"] { display: block; animation: none; }  /* the first view paints at once (it holds the main picture) */
.checkout:has([name="product"][data-key="pm01"]:checked) .checkout__view[data-view="t800"],
.checkout:has([name="product"][data-key="unsure"]:checked) .checkout__view[data-view="t800"] { display: none; }
.checkout:has([name="product"][data-key="pm01"]:checked) .checkout__view[data-view="pm01"],
.checkout:has([name="product"][data-key="unsure"]:checked) .checkout__view[data-view="unsure"] { display: block; }
.checkout__view .fill { animation: checkout-settle 1.8s var(--ease) both; }
.checkout__half { position: absolute; top: 0; bottom: 0; left: 0; z-index: auto; isolation: auto; width: 50%; overflow: hidden; }
.checkout__half + .checkout__half { left: 50%; border-left: 1px solid var(--line); }
.checkout__half + .checkout__half .fill { animation-delay: .12s; }
.checkout__cap { --cap-x: var(--g); position: absolute; left: var(--cap-x); right: var(--cap-x); bottom: 1.75rem; display: grid; justify-items: start; gap: .35rem; animation: checkout-rise 1s var(--ease) .12s both; }
/* the name, price and readout sit on a dark band that fades in above them, so they hold over a white robot */
.checkout__cap::before { content: ""; position: absolute; inset: -4.5rem -100vw -100vh; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--scrim), 0), rgba(var(--scrim), .58) 4.5rem); }
.checkout__cap > .mono { color: var(--fg-2); }
.checkout__cap .display { text-shadow: 0 1px 24px rgba(var(--scrim), .4); }
.checkout__price { color: var(--fg-2); }
.checkout__cap .readout { justify-content: flex-start; gap: clamp(1.25rem, 3vw, 3rem); margin-top: 1rem; text-align: left; }
.checkout__cap .cta--link { margin-top: .5rem; font-size: .875rem; }
/* Not sure yet: the insets are equal, so two even columns put each name over its own half of the picture. */
.checkout__cap--split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
.checkout__cap--split > .mono, .checkout__cap--split > .cta--link { grid-column: 1 / -1; }
.checkout__cap--split > div { display: grid; gap: .35rem; margin-top: .25rem; }
.checkout__cap--split > div + div { padding-left: var(--cap-x); }
@media (max-width: 63.99rem) { .checkout__cap { bottom: 2.75rem; } }  /* clear of a clip's Pause control */
@keyframes checkout-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes checkout-settle { from { transform: scale(1.04); } to { transform: none; } }
@keyframes checkout-rise { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
@media (max-width: 40rem) { .checkout__cap .readout div:nth-child(n+4) { display: none; } }

/* ---------------------------------------------------------------- 3 Checkout form */
.checkout__head { grid-area: head; display: grid; justify-items: start; gap: .7rem; padding: 2.25rem var(--g) 1.75rem; }
.checkout__head .lede { text-wrap: pretty; }
.checkout__form { grid-area: form; gap: 0; padding: 0 var(--g) calc(var(--section) * .6); }
.checkout__form .form__part { gap: 1.1rem; padding-block: 1.75rem; }
.checkout__form .form__part .form-note { margin-top: -.35rem; }
.checkout__send { display: grid; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.checkout__sum { display: grid; gap: .55rem; padding-bottom: .5rem; }
.checkout__sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.checkout__sum dt { color: var(--dim); }
.checkout__sum dd { font-size: .9375rem; font-weight: var(--fw-medium); text-align: right; }
.checkout__send .btn { height: 3.25rem; font-size: .9375rem; }
@media (max-width: 24rem) { .opts--seg .opt span { font-size: .8125rem; padding-inline: .35rem; } }

@media (min-width: 64rem) {
  .checkout { grid-template-columns: minmax(0, 1fr) var(--panel); grid-template-rows: auto 1fr; grid-template-areas: "stage head" "stage form"; }
  .checkout__stage { position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; min-height: 36rem; max-height: none; }
  .checkout__cap { --cap-x: clamp(1.5rem, 3.5vw, 3.5rem); bottom: calc(var(--demobar-h) + clamp(1.75rem, 5vh, 3rem)); }
  .checkout__view .meta { bottom: calc(var(--demobar-h) + .75rem); }
  .checkout__head { padding: calc(var(--header-h) + clamp(2.5rem, 9vh, 5rem)) var(--pad) 1.75rem; }
  .checkout__form { max-width: none; padding: 0 var(--pad) calc(var(--section) * .6); }
  .checkout__form .form__grid[data-show-for] { grid-template-columns: minmax(0, 1fr); }
  .checkout__form .form__grid--qty { grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); }
}

/* ---------------------------------------------------------------- 4 Customisation hero and closing screen (base .screen) */
.custom-hero .display { font-size: clamp(3rem, 7.4vw, 6.25rem); text-shadow: 0 1px 24px rgba(var(--scrim), .35); }
.custom-hero .meta, .custom-proof .meta { bottom: calc(var(--demobar-h) + .75rem); }
/* The closing screen keeps its words low, over the darker foot of the picture and clear of the robots. */
.custom-proof { justify-content: flex-end; }
.custom-proof .display { max-width: 14ch; margin-inline: auto; text-wrap: balance; text-shadow: 0 1px 24px rgba(var(--scrim), .4); }

/* ---------------------------------------------------------------- 5 Studio stage: sticky under the header on every size */
.studio-sec { position: relative; border-top: 1px solid var(--line); background: var(--bg); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr); }
.studio__stage {
  position: sticky; top: var(--header-h); z-index: 3; height: 44vh; height: 44svh; min-height: 19rem; overflow: hidden;
  display: grid; place-items: end center; background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.studio__still { position: relative; z-index: 1; width: auto; height: calc(100% - 5rem); max-width: 90%; margin-bottom: 2.4rem; object-fit: contain; transition: opacity .5s; }
/* The model sits between the label at the top and the hint at the foot, so neither covers it. */
.studio__3d { position: absolute; inset: 2.6rem 0 2.4rem; z-index: 2; opacity: 0; transition: opacity .8s var(--ease); }
.studio__stage.is-3d .studio__3d { opacity: 1; }
.studio__stage.is-3d .studio__still { opacity: 0; }
.studio__stage.is-3d { cursor: grab; }
.studio__stage.is-3d:active { cursor: grabbing; }
.studio__tag, .studio__load, .studio__hint {
  position: absolute; z-index: 3; font-family: var(--font-mono); font-size: var(--fs-mono); font-weight: var(--fw-regular);
  letter-spacing: var(--mono-tracking); text-transform: uppercase; line-height: 1.4; pointer-events: none;
}
.studio__tag { left: var(--g); right: var(--g); top: .9rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--fg-2); }
.studio__load { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: .55rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-cta); background: rgba(var(--scrim), .72); color: var(--fg-2); white-space: nowrap; }
.studio__hint { right: var(--g); bottom: .8rem; color: var(--dim); }
.studio__fail {
  position: absolute; left: 50%; bottom: 2.75rem; z-index: 3; transform: translateX(-50%); width: min(22rem, calc(100% - 2 * var(--g)));
  padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-input); background: var(--bg-3);
  font-size: .8125rem; line-height: 1.45; text-align: center; color: var(--fg-2);
}
/* While the stage covers the top of a phone screen, keep focused controls out from under it. */
@media (max-width: 63.99rem) { .studio__panel :is(button, input, a) { scroll-margin-top: calc(var(--header-h) + 44svh + 1rem); } }

/* ---------------------------------------------------------------- 6 Studio panel */
.studio__panel { display: grid; align-content: start; gap: 2rem; padding: 2.25rem var(--g) 0; }
.studio__head { display: grid; justify-items: start; gap: .6rem; }
.cfg__group { display: grid; gap: .9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.cfg__group > legend { float: left; width: 100%; padding: 0; }
.studio__fine { font-size: .75rem; line-height: 1.5; color: var(--dim); }

@media (min-width: 64rem) {
  .studio { grid-template-columns: minmax(0, 1fr) var(--panel); align-items: start; }
  .studio__stage { height: calc(100vh - var(--header-h) - var(--demobar-h)); height: calc(100svh - var(--header-h) - var(--demobar-h)); min-height: 32rem; border-bottom: 0; }
  .studio__3d { inset: 4.75rem 0 4rem; }
  .studio__still { height: calc(100% - 8.75rem); margin-bottom: 4rem; }
  .studio__tag { left: clamp(1.5rem, 3vw, 2.5rem); right: clamp(1.5rem, 3vw, 2.5rem); top: 1.5rem; white-space: normal; }
  .studio__hint { right: clamp(1.5rem, 3vw, 2.5rem); bottom: 1.5rem; }
  .studio__panel { min-height: calc(100svh - var(--header-h) - var(--demobar-h)); padding: clamp(2.5rem, 7vh, 4rem) var(--pad) 0; border-left: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- 7 Colour picker (classes come from t800-studio.v1.js) */
.t8-picker { display: grid; }
.t8-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: .4rem; }
.t8-role {
  display: flex; align-items: center; gap: .75rem; min-width: 0; min-height: 4.25rem; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-input); background: none; color: var(--fg);
  text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.t8-role:hover { border-color: var(--line-2); }
.t8-role.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--bg-2); }
.t8-role i { flex: none; width: 1.75rem; height: 1.75rem; border: 2px solid var(--bg); border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); }
.t8-role i.carbon { background-image: repeating-linear-gradient(45deg, rgba(var(--scrim), .45) 0 2px, transparent 2px 4px) !important; }
.t8-role span { min-width: 0; }
.t8-role strong { display: block; font-size: .875rem; font-weight: var(--fw-semibold); }
.t8-role small { display: block; margin-top: .1rem; font-size: .75rem; line-height: 1.3; color: var(--dim); overflow-wrap: anywhere; }

.cfg-step { margin: 1.1rem 0 .6rem; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: var(--mono-tracking); text-transform: uppercase; color: var(--dim); }
.ftabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.ftab {
  min-height: 2.25rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--radius-cta); background: none;
  font-size: .8125rem; font-weight: var(--fw-medium); color: var(--fg-2); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.ftab:hover { border-color: var(--line-2); color: var(--fg); }
.ftab.on { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.ftab i { margin-left: .3rem; font-style: normal; opacity: .6; }

.swatches { display: flex; flex-wrap: wrap; gap: .55rem; min-height: 2.75rem; }
.sw {
  position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0;
  border: 2px solid var(--bg); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line-2);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.sw:hover { transform: scale(1.08); }
.sw.on { box-shadow: 0 0 0 2px var(--accent); }
.sw-img { background-size: 1200% 1000%; background-repeat: no-repeat; background-color: var(--bg-3); }
.sw-flat { background: var(--c); }
.sw-none { background: var(--fg); }
.sw-none::after { content: "F"; font-family: var(--font-mono); font-size: .75rem; font-weight: var(--fw-semibold); color: var(--bg); }
.sw-custom { display: none; background: conic-gradient(#ff3b3b, #ffd23b, #3bff7a, #3bc8ff, #a33bff, #ff3bb5, #ff3b3b); } /* a colour wheel: the colours are the content */
.swatches.custom .sw-custom { display: grid; }
.sw-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sw-custom span { font-weight: var(--fw-bold); color: var(--fg); text-shadow: 0 1px 2px rgba(var(--scrim), .8); pointer-events: none; }
.sw-custom:focus-within { outline: 2px solid var(--fg); outline-offset: 3px; }
.cfg-pick { min-height: 1.4em; margin-top: .9rem; font-size: .8125rem; font-weight: var(--fw-medium); color: var(--fg-2); }
.t8-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: .9rem; }
.t8-carbon { display: flex; align-items: center; gap: .55rem; min-height: 2.25rem; font-size: .875rem; color: var(--fg-2); cursor: pointer; }
.t8-carbon input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--accent); }
.t8-carbon input:disabled + span { color: var(--dim); }
.t8-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.t8-btn {
  min-height: 2.25rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--radius-cta); background: none;
  font-size: .75rem; font-weight: var(--fw-medium); color: var(--fg-2); cursor: pointer; transition: border-color .2s, color .2s;
}
.t8-btn:hover { border-color: var(--line-2); color: var(--fg); }

/* ---------------------------------------------------------------- 8 Studio summary: the build, the price and the one action */
.studio__sum { display: grid; gap: .6rem; padding: 1.5rem 0 calc(var(--section) * .5); border-top: 1px solid var(--line); }
.studio__line { font-size: 1.0625rem; font-weight: var(--fw-medium); line-height: 1.4; }
.studio__price { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; padding-top: .35rem; font-size: .9375rem; color: var(--fg-2); }
.studio__price b { font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--fw-semibold); letter-spacing: -.01em; color: var(--fg); white-space: nowrap; }
.studio__price small { font-size: .6em; font-weight: var(--fw-medium); color: var(--fg-2); }
.studio__sum .form-note { margin-top: -.2rem; }
.studio__sum .ctas { margin-top: .4rem; }
.studio__sum .cta--solid { flex: 1 1 12rem; }
/* the studio opens the page: clear the fixed header */
.studio-sec:first-child { border-top: 0; padding-top: var(--header-h); }

/* the other path: order instead of a demo, or a free demo instead of an order */
.checkout__alt { margin-top: .25rem; font-size: .9375rem; color: var(--fg-2); }
.checkout__alt a { color: var(--fg); text-decoration: underline; text-underline-offset: .2em; }

/* ---- 40-pages.css ---- */
/* Info pages: events, rental, schools, support, about, contact, thanks, 404 and the legal pages.
   Every class here starts with .pg- so nothing collides with the home, product or commerce sheets.
   Tokens only (themes restyle these pages through them); shared primitives come from 00-base.css.

   1 First screens  2 Sections and heads  3 Lists, tables, numbers  4 Bands over pictures
   5 Folds (collapsible groups)  6 Contact  7 Routes  8 Centred pages  9 Legal */

/* ---------------------------------------------------------------- 1 First screens
   .pg-hero: full-screen picture or clip, one headline, one line, one or two actions, bottom left
   (the same voice as the home events screen). .pg-in rises the first screen's text once, on load. */
@keyframes pg-rise { from { opacity: 0; transform: translateY(1.25rem); } }
.pg-in { animation: pg-rise 1.1s var(--ease) both; }
.pg-in-1 { animation-delay: .1s; } .pg-in-2 { animation-delay: .2s; } .pg-in-3 { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .pg-in { animation: none; } }

.pg-hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 4rem) var(--g) calc(var(--demobar-h) + clamp(3.5rem, 9vh, 5.5rem)); }
.pg-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to right, rgba(var(--scrim), .8) 0%, rgba(var(--scrim), .34) 46%, rgba(var(--scrim), 0) 72%),
              linear-gradient(to top, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), 0) 48%),
              linear-gradient(to bottom, rgba(var(--scrim), .55) 0%, rgba(var(--scrim), 0) 20%); }
.pg-hero__body { display: grid; justify-items: start; gap: 1.1rem; max-width: 52rem; }
.pg-hero__body > .mono { color: var(--fg); }   /* small label over a photo: full white, with the shared shadow below */
.pg-hero__title { font-family: var(--font-display); font-size: clamp(3rem, 7.6vw, 7rem); font-weight: var(--display-weight);
  letter-spacing: calc(var(--display-tracking) * 1.75); text-transform: var(--display-case); line-height: .94; text-wrap: balance; }
.pg-hero__line { max-width: 34rem; margin-bottom: .5rem; font-size: var(--fs-lede); line-height: 1.55; color: var(--fg-2); text-wrap: balance; }
.pg-hero__manifesto { max-width: 50rem; margin-bottom: .75rem; font-family: var(--font-display); font-size: clamp(1.6rem, 3.3vw, 3rem);
  font-weight: var(--fw-medium); letter-spacing: var(--display-tracking); line-height: 1.14; text-wrap: pretty; }
.pg-hero__body > *, .pg-band__body > * { text-shadow: 0 1px 22px rgba(var(--scrim), .45); }
.pg-hero .cta, .pg-band .cta { text-shadow: none; }
.pg-hero .meta { bottom: calc(var(--demobar-h) + .75rem); }
/* a bright picture: darken the whole frame a little more */
.pg-hero--deep::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(var(--scrim), .38); }
/* a clip with thin black bars top and bottom: let it run past the frame so they are cropped off */
.pg-hero--letterbox .fill img, .pg-hero--letterbox .fill video { inset: -5% 0; height: 110%; }
@media (min-width: 48rem) {
  .pg-hero--letterbox::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to right, rgba(var(--scrim), .9) 0%, rgba(var(--scrim), .66) 40%, rgba(var(--scrim), 0) 72%); }
}
@media (max-width: 47.99rem) {
  .pg-hero::after { background: linear-gradient(to top, rgba(var(--scrim), .94) 0%, rgba(var(--scrim), .72) 38%, rgba(var(--scrim), 0) 72%),
                                linear-gradient(to bottom, rgba(var(--scrim), .55) 0%, rgba(var(--scrim), 0) 18%); }
  /* --pos-small on the section: where to frame the picture or clip on a phone */
  .pg-hero[style] .fill img, .pg-hero[style] .fill video, .pg-band[style] .fill img, .pg-band[style] .fill video { object-position: var(--pos-small) !important; }
}

/* the legal pages' label: the date stays whole, and on phones it drops to its own line */
.legal-date { white-space: nowrap; }
@media (max-width: 40rem) { .legal-date { display: block; } .legal-date__sep { display: none; } }

/* .pg-intro: the first block of a text page (support, legal) under the transparent header */
.pg-intro { padding: calc(var(--header-h) + clamp(4rem, 15vh, 9rem)) var(--g) clamp(3rem, 9vh, 5.5rem); }
.pg-intro__in { display: grid; justify-items: start; gap: 1.25rem; max-width: var(--measure); margin: 0 auto; }
.pg-intro__in .headline { max-width: 15ch; }
.pg-intro__in .ctas { margin-top: .75rem; }
/* phones: first-screen actions stack full width, as on the home screens */
@media (max-width: 40rem) {
  .pg-hero__body .ctas, .pg-intro__in .ctas { width: 100%; }
  .pg-hero__body .ctas > .cta, .pg-intro__in .ctas > .cta { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- 2 Sections and heads
   .pg-split: a numbered head on the left (sticky on wide screens) and the content on the right, under one hairline. */
.pg-flush { padding-top: 0; }
.pg-split { display: grid; gap: 2.25rem var(--g); max-width: var(--measure); margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pg-split__head { display: grid; gap: .9rem; align-content: start; justify-items: start; }
.pg-split__note { max-width: 24rem; color: var(--dim); }
.pg-split__body { min-width: 0; }
@media (min-width: 64rem) {
  .pg-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .pg-split__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .pg-split--stack { grid-template-columns: none; }
}
.pg-head { display: grid; gap: .9rem; justify-items: start; margin-bottom: clamp(2rem, 5vh, 3rem); }
.pg-statement { max-width: 52rem; font-family: var(--font-display); font-size: clamp(1.75rem, 3.6vw, 3.25rem); font-weight: var(--fw-medium);
  letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1.1; text-wrap: balance; }
.pg-statement + .lede { margin-top: 1.25rem; }
.pg-after { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin-top: 1.5rem; color: var(--fg-2); }
.pg-after .mono { color: var(--dim); }

/* closing call to action */
.pg-close { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.pg-close .title { max-width: 18ch; }
.pg-close__line { color: var(--dim); }
.pg-close .ctas { width: min(100%, 27rem); margin-top: 1rem; }

/* ---------------------------------------------------------------- 3 Lists, tables, numbers */
/* big typographic list (event types) */
.pg-types { border-top: 1px solid var(--line); }
.pg-types li { display: flex; align-items: baseline; gap: 1.25rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.75rem); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1.05; }
.pg-types .mono { flex: none; min-width: 2rem; color: var(--dim); }
.pg-figure { margin-top: clamp(1.5rem, 4vh, 2.5rem); aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.pg-figure img { width: 100%; height: 100%; object-fit: cover; }

/* school packages: one row per package, price on the right */
.pg-pack { border-top: 1px solid var(--line); }
.pg-pack tr { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: .6rem 2rem; align-items: start; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.pg-pack th { display: grid; gap: .4rem; text-align: left; font-weight: inherit; }
.pg-pack th b, .pg-pack__price { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1.1; }
.pg-pack__s { font-size: .9375rem; color: var(--fg-2); }
.pg-pack__body { padding-top: .35rem; font-size: .9375rem; color: var(--dim); }
.pg-pack__price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 47.99rem) {
  .pg-pack tr { grid-template-columns: minmax(0, 1fr) auto; }
  .pg-pack__body { grid-column: 1 / -1; grid-row: 2; padding-top: 0; }
}

/* numbered terms */
.pg-terms { counter-reset: pg-t; border-top: 1px solid var(--line); }
.pg-terms li { counter-increment: pg-t; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.5; color: var(--fg-2); }
.pg-terms li::before { content: counter(pg-t, decimal-leading-zero); padding-top: .4em; font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: var(--mono-tracking); color: var(--dim); }

/* about: the numbers, large, with mono labels under hairlines */
.pg-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (min-width: 56rem) { .pg-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pg-nums > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .9rem; padding: 2rem 1rem 2.25rem 0; border-bottom: 1px solid var(--line); }
.pg-nums dd { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); font-weight: var(--display-weight);
  letter-spacing: calc(var(--display-tracking) * 1.75); line-height: .95; }
.pg-nums dd i { margin-left: .12em; font-size: .36em; font-style: normal; font-weight: var(--fw-medium); letter-spacing: 0; color: var(--fg-2); }
.pg-nums dd.tbc { color: var(--dim); }
.pg-nums dt { max-width: 14rem; color: var(--dim); }
.pg-fine { display: grid; gap: .5rem; margin-top: 2rem; font-size: .9375rem; color: var(--dim); }
.pg-fine b { font-weight: var(--fw-medium); color: var(--fg-2); }
.pg-fine a { color: var(--fg-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }

/* ---------------------------------------------------------------- 4 Bands over pictures
   .pg-band: a tall picture or clip with one line and a row of mono items, text kept clear of the demo bar. */
.pg-band { position: relative; isolation: isolate; min-height: 88vh; min-height: 88svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 6rem var(--g) calc(var(--demobar-h) + clamp(2rem, 6vh, 3.5rem)); }
.pg-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(var(--scrim), .88) 0%, rgba(var(--scrim), .3) 38%, rgba(var(--scrim), 0) 60%),
              linear-gradient(to bottom, rgba(var(--scrim), .45) 0%, rgba(var(--scrim), 0) 18%); }
.pg-band .meta { top: calc(var(--header-h) + .75rem); bottom: auto; }
.pg-band__body { display: grid; gap: 1.75rem; width: 100%; }
.pg-band__body > .mono { color: var(--fg-2); }
.pg-band__line { max-width: 40rem; font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.75rem); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1.02; text-wrap: balance; }
.pg-band__tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 var(--g); border-top: 1px solid var(--line-2); }
.pg-band__tags li { display: flex; align-items: baseline; gap: .8rem; padding-top: 1.1rem; font-size: clamp(1rem, 1.3vw, 1.125rem); font-weight: var(--fw-medium); }
.pg-band__tags .mono { color: var(--fg-2); }
.pg-band__tags--lg li { padding-top: 1.4rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1.12; }
.pg-band__tags--lg li .mono { font-family: var(--font-mono); letter-spacing: var(--mono-tracking); }
@media (max-width: 40rem) { .pg-band__tags li { padding: .8rem 0; border-bottom: 1px solid var(--line); } .pg-band__tags li:last-child { border-bottom: 0; } }
@media (max-width: 47.99rem) {
  .pg-band::after { background: linear-gradient(to top, rgba(var(--scrim), .94) 0%, rgba(var(--scrim), .7) 40%, rgba(var(--scrim), 0) 70%),
                                linear-gradient(to bottom, rgba(var(--scrim), .45) 0%, rgba(var(--scrim), 0) 18%); }
}

/* ---------------------------------------------------------------- 5 Folds: collapsible groups (native <details>)
   Opening animates where the browser can (::details-content); everywhere else it simply opens. */
.pg-folds { border-top: 1px solid var(--line); }
.pg-fold { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.pg-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4rem; padding: 1.1rem 0;
  list-style: none; cursor: pointer; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: var(--fw-medium); line-height: 1.35; color: var(--fg-2); transition: color .25s; }
.pg-fold > summary::-webkit-details-marker { display: none; }
.pg-fold > summary::after { content: ""; flex: none; width: .875rem; height: .875rem;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .45s var(--ease); }
.pg-fold > summary:hover, .pg-fold[open] > summary { color: var(--fg); }
.pg-fold[open] > summary::after { transform: rotate(45deg); }
.pg-fold::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.pg-fold[open]::details-content { block-size: auto; }
.pg-fold__body { display: grid; gap: .9rem; max-width: 44rem; padding: 0 2.5rem 1.9rem 0; line-height: 1.65; color: var(--fg-2); }
.pg-fold__body a { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.pg-fold__body a:hover { text-decoration-thickness: 2px; }
.pg-fold__body ul { display: grid; gap: .6rem; }
.pg-fold__body li { position: relative; padding-left: 1.4rem; }
.pg-fold__body li::before { content: ""; position: absolute; left: 0; top: .82em; width: .6rem; height: 1px; background: var(--dim); }
.pg-fold__body strong { font-weight: var(--fw-semibold); color: var(--fg); }
@media (max-width: 40rem) { .pg-fold__body { padding-right: 0; } }

/* question groups on the support page, with a small index in the head */
.pg-qgroup + .pg-qgroup { margin-top: clamp(3rem, 7vh, 4.5rem); }
.pg-qgroup > h3 { display: flex; align-items: baseline; gap: .9rem; padding-bottom: 1rem; font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-transform: var(--display-case); }
.pg-qgroup > h3 .mono { color: var(--dim); }
.pg-index { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .5rem; }
.pg-index a { display: inline-flex; align-items: center; min-height: 2.5rem; font-weight: var(--fw-medium); color: var(--dim); transition: color .2s; }
.pg-index a:hover { color: var(--fg); }

/* ---------------------------------------------------------------- 6 Contact: large contact lines beside the form */
.pg-contact { padding: calc(var(--header-h) + clamp(3.5rem, 13vh, 7.5rem)) var(--g) var(--section); }
.pg-contact__grid { display: grid; gap: 3.5rem var(--g); max-width: var(--measure); margin: 0 auto; }
@media (min-width: 64rem) { .pg-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.pg-contact__head { display: grid; justify-items: start; gap: 1.25rem; min-width: 0; }
.pg-lines { width: 100%; margin-top: 1.25rem; border-top: 1px solid var(--line); }
.pg-lines li { display: grid; gap: .4rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.pg-lines .mono { color: var(--dim); }
.pg-lines a, .pg-lines b { justify-self: start; max-width: 100%; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 2rem); font-weight: var(--fw-medium);
  letter-spacing: var(--display-tracking); line-height: 1.2; overflow-wrap: anywhere; }
.pg-lines a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .45s var(--ease); }
.pg-lines a:hover { background-size: 100% 1px; }
.pg-contact__form { display: grid; gap: 1.5rem; min-width: 0; }
.pg-contact__form > h2 { color: var(--dim); }
@media (min-width: 64rem) { .pg-contact__form { padding-top: .5rem; } }

/* ---------------------------------------------------------------- 7 Routes: three pictures that lead on (rental) */
.pg-routes { display: grid; gap: 2rem clamp(1rem, 2vw, 1.5rem); margin-top: clamp(3rem, 8vh, 5rem); }
@media (min-width: 48rem) { .pg-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-route a { display: grid; gap: 1.1rem; }
.pg-route__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.pg-route__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pg-route a:hover .pg-route__img img { transform: scale(1.04); }
.pg-route__text { display: grid; justify-items: start; gap: .35rem; }
.pg-route__text .mono { color: var(--dim); }
.pg-route__text b { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: var(--display-case); line-height: 1.1; }
.pg-route__sub { color: var(--fg-2); }
.pg-route__text .cta--link { margin-top: .35rem; font-size: .875rem; }
.pg-route a:hover .cta--link { background-size: 100% 1px; }
@media (max-width: 47.99rem) { .pg-route__img { aspect-ratio: 3 / 2; } }

/* ---------------------------------------------------------------- 8 Centred pages: thanks and 404 */
.pg-center { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; place-content: center; justify-items: center; gap: 1.25rem;
  padding: calc(var(--header-h) + 3rem) var(--g) calc(var(--demobar-h) + 3rem); text-align: center; }
.pg-center--media::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--scrim), .55), rgba(var(--scrim), .72) 50%, rgba(var(--scrim), .9)); }
.pg-center > .mono { color: var(--fg-2); }
.pg-center__line { max-width: 32rem; color: var(--fg-2); }
.pg-center .ctas { justify-content: center; width: min(100%, 27rem); margin-top: 1rem; }
.pg-center .meta { bottom: calc(var(--demobar-h) + .75rem); }

/* ---------------------------------------------------------------- 9 Legal: a comfortable measure, the four pages linked on the left */
.pg-legal { display: grid; gap: 2rem var(--g); max-width: var(--measure); margin: 0 auto; }
@media (min-width: 64rem) {
  .pg-legal { grid-template-columns: 13rem minmax(0, 46rem); justify-content: space-between; }
  .pg-legal__nav { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.pg-legal__nav ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; padding-top: .75rem; border-top: 1px solid var(--line); }
@media (min-width: 64rem) { .pg-legal__nav ul { display: grid; } }
.pg-legal__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: var(--fw-medium); color: var(--dim); transition: color .2s; }
.pg-legal__nav a:hover, .pg-legal__nav a[aria-current] { color: var(--fg); }
.pg-legal__nav a[aria-current]::before { content: ""; width: .9rem; height: 1px; margin-right: .6rem; background: currentColor; }
.pg-legal .pg-fold__body { max-width: 41rem; font-size: 1.0625rem; }

/* ---- Type, last so it wins over the component rules: the big words are set light (Red Hat Display 300) */
.display, .title, .headline, .mega, .pd-hero__name, .feat__title, .events__title, .pg-hero__title, .pg-band__line,
.vs__name, .pair__name, .pg-statement, .pg-nums dd, .stat dd, .order__price, .moment__line { font-weight: var(--fw-light); }


/* Photo in the head column of a split section (schools page). */
.pg-split__photo { margin: .75rem 0 0; width: 100%; max-width: 22rem; }
.pg-split__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: .5rem; background: var(--line); }
