/* Light Automation Academy home page preview.
   Direction: the workshop and the control panel. Neutral panel-grey surfaces, one accent (the brand green),
   one type family (IBM Plex, the same family the student portal uses), square-cornered real photographs,
   and one signature detail: the engraved panel label on each training path. */

:root {
  --paper: #f3f2ed;
  --paper-2: #eae8e2;
  --surface: #fff;
  --ink: #15181a;
  --ink-2: #41474b;
  --muted: #595f63;
  --line: rgba(21, 24, 26, .14);
  --line-strong: rgba(21, 24, 26, .7);
  --green: #0b7a1f;
  --green-ink: #095f18;
  --green-press: #095f18;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 4px;
  --gutter: 24px;
  --max: 1232px;
  --ease: cubic-bezier(.23, 1, .32, 1); /* strong ease-out: starts fast, so the page feels quick to answer */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1); /* for a shape that changes in place */
  --t-press: .16s; --t-out: .15s; --t-in: .2s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; caret-color: var(--green); accent-color: var(--green); scrollbar-gutter: stable; }
/* the page behind stays still while the photo viewer or the phone menu is open */
html:has(dialog.zoom[open]), html:has(.mobile-nav.open) { overflow: hidden; }
a, button, summary, input, select { touch-action: manipulation; }
p { text-wrap: pretty; }
::selection { background: var(--green); color: #fff; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
section[id], div[id] { scroll-margin-top: 88px; }

/* side padding also clears the notch when a phone is turned sideways */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@supports (padding: max(0px)) { .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 50; }
.skip:focus { left: 8px; }

.pv-note { background: #fff3c4; color: #3d3200; font-size: 15px; line-height: 1.4; padding: 8px var(--gutter); text-align: center; }

/* a photograph that fails to load leaves a labelled frame, never a broken box */
.no-photo { position: relative; background: var(--paper-2); }
.no-photo img { visibility: hidden; }
.no-photo::after { content: attr(data-alt); position: absolute; inset: 0; display: grid; place-items: center; padding: 56px 24px 24px; text-align: center; font-size: 15px; line-height: 1.4; color: var(--muted); }
#why .no-photo, #why .no-photo::after { background: #22272a; color: #cdd3cf; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--cond); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 80px); line-height: 1; }
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.06; }
h3 { font: 500 22px/1.3 var(--sans); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.intro { color: var(--ink-2); max-width: 36em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--r); font: 500 17px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .16s var(--ease); }
.btn, .burger, .faq summary, .wall button, .dock a, dialog.zoom .close { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--green-press); } }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
@media (hover: hover) and (pointer: fine) { .btn-outline:hover { background: var(--ink); color: #fff; } }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: #fff; color: var(--ink); } }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.link { color: var(--green-ink); font-weight: 500; text-underline-offset: 4px; }
.link, .buy .apply, .spec.big dd a, .socials a, .faq details a, .form .note a { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color .15s ease; }
@media (hover: hover) and (pointer: fine) { .link:hover, .buy .apply:hover, .spec.big dd a:hover, .socials a:hover, .faq details a:hover, .form .note a:hover { text-decoration-color: currentColor; } }

/* ---------- utility line and header ---------- */
.util { background: var(--ink); color: #d8dcd9; font-size: 15px; }
.util .wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.util a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .util a:hover { text-decoration: underline; } }
.util .sep { color: #8b9195; margin: 0 8px; }

header.site { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 40px; width: auto; }
nav.main { display: flex; gap: 28px; margin-right: auto; }
nav.main a { font-size: 17px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease; }
nav.main a[aria-current] { color: var(--ink); border-bottom-color: var(--green); }
@media (hover: hover) and (pointer: fine) { nav.main a:hover { color: var(--ink); border-bottom-color: var(--green); } }
.head-cta { display: flex; align-items: center; gap: 20px; }
.head-cta .quiet { font-size: 17px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .head-cta .quiet:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform var(--t-in) var(--ease-in-out), opacity var(--t-out) ease; }
.burger:active { transform: scale(.97); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* the menu drops from under the header: in over .2s, out a little faster */
.mobile-nav { position: absolute; left: 0; right: 0; top: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 8px var(--gutter) 24px; max-height: calc(100dvh - 72px); overflow: auto; overscroll-behavior: contain; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s .15s; }
.mobile-nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity var(--t-in) var(--ease), transform var(--t-in) var(--ease); }
.mobile-nav.instant { transition: none; }
@media (min-width: 1081px) { .mobile-nav { display: none; } }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.mobile-nav a:active { color: var(--green-ink); }

/* one entrance, on first load only */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise-lead { from { opacity: 0; transform: translateY(12px); } }
@keyframes rise-small { from { opacity: 0; transform: translateY(6px); } }
.hero-text > h1 { animation: rise-lead .45s var(--ease) both; }
.hero-text > .lead { animation: rise .4s var(--ease) 60ms both; }
.hero-text > .acts { animation: rise-small .4s var(--ease) 110ms both; }
.hero-text > .hero-foot { animation: fade .4s ease 150ms both; }
.hero-pic img.arriving { opacity: 0; }
.hero-pic img.arrived { transition: opacity .4s var(--ease); }

/* ---------- hero: words on the left, one large real photograph running to the edge of the screen ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: min(780px, calc(100svh - 148px)); }
.hero-text { align-self: center; padding: 40px 56px 40px max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.hero-text h1 { margin-bottom: 28px; }
.hero-text .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* the photograph is cropped a little from the top, so the ceiling goes and the people and the kit fill the frame */
.hero-pic { position: relative; min-height: 420px; background: var(--paper-2); overflow: hidden; }
.hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 100%; transform: scale(1.12); transform-origin: 58% 100%; }
.hero-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 15px; color: var(--ink-2); }
.hero-foot ul { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-bottom: 4px; font-size: 17px; color: var(--ink); }
.hero-foot b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.sec { padding: 96px 0; }
.sec.alt { background: var(--paper-2); }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.head.one { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.head .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- the three paths ---------- */
.paths { border-top: 1px solid var(--line-strong); }
.path { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.path .pic { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.path .pic a { display: block; width: 100%; height: 100%; }
.path .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* the signature: an engraved panel label, as fixed to every device in a control panel */
.plate { pointer-events: none; position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); background: #111; color: #fff; font: 600 13px/1.25 var(--cond); letter-spacing: .09em; text-transform: uppercase; padding: 8px 12px; border-radius: 2px; }
.path .meta { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.path h3 { font: 600 32px/1.1 var(--cond); letter-spacing: -.005em; margin-bottom: 12px; }
.path h3 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .path h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; } }
.path .who { color: var(--ink-2); margin-bottom: 20px; }
.spec > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.spec dt { color: var(--muted); }
.buy { border-left: 1px solid var(--line); padding-left: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.buy .lbl { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.buy .fee { font: 500 30px/1.15 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.buy .fee .or { font: 400 17px var(--sans); color: var(--muted); letter-spacing: 0; }
.buy .sub { font-size: 15px; color: var(--ink-2); margin: 8px 0 24px; }
.buy .btn { width: 100%; }
.buy .apply { align-self: center; margin-top: 12px; padding: 8px; font-size: 15px; font-weight: 500; color: var(--green-ink); text-underline-offset: 4px; }
.cmp { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); align-items: center; gap: 16px 40px; padding-top: 32px; }
.cmp .btn { justify-self: start; }
.cmp p { color: var(--ink-2); font-size: 15px; max-width: 34em; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 72px; align-items: start; }
#why { background: var(--ink); color: #fff; padding: 120px 0; }
#why .points li { border-top-color: rgba(255, 255, 255, .18); }
#why .points p { color: #cdd3cf; }
.why .pic { position: sticky; top: 104px; aspect-ratio: 4 / 5; overflow: hidden; background: #22272a; }
.why .pic img { width: 100%; height: 100%; object-fit: cover; }
.why h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; margin-bottom: 48px; max-width: 12em; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.points li { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.points h3 { margin-bottom: 8px; }
.points p { color: var(--ink-2); font-size: 17px; }

/* ---------- facility photo wall ---------- */
.wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.wall figure.tall { grid-column: span 2; }
.wall figure.wide { grid-column: span 3; }
.wall button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: transform var(--t-press) var(--ease); }
.wall button:active { transform: scale(.985); }
.wall .tall button { aspect-ratio: 3 / 4; }
.wall .wide button { aspect-ratio: 16 / 10; }
.wall img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-in) var(--ease); }
@media (hover: hover) and (pointer: fine) { .wall button:hover img { transform: scale(1.025); } }
.wall figure { position: relative; }
.wall figcaption.plate { top: auto; bottom: 12px; }

dialog.zoom { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); }
@keyframes zoom-in { from { opacity: 0; transform: scale(.9); } }
dialog.zoom[open] { animation: zoom-in .25s var(--ease); }
dialog.zoom::backdrop { background: rgba(10, 12, 13, .88); }
dialog.zoom[open]::backdrop { animation: fade .2s ease; }
dialog.zoom.closing { opacity: 0; transform: scale(.94); transition: opacity var(--t-out) var(--ease), transform var(--t-out) var(--ease); }
dialog.zoom.closing::backdrop { opacity: 0; transition: opacity var(--t-out) ease; }
dialog.zoom .close:active { transform: scale(.97); }
dialog.zoom img { max-height: 82vh; width: auto; margin: 0 auto; }
dialog.zoom p { color: #fff; font-size: 15px; padding-top: 12px; text-align: center; }
dialog.zoom .close { display: block; margin: 0 0 12px auto; min-height: 44px; padding: 8px 16px; background: #fff; border: 0; border-radius: var(--r); font: 500 15px var(--sans); cursor: pointer; }

/* ---------- graduates ---------- */
.voices { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; border-top: 1px solid var(--line-strong); padding-top: 32px; }
.voices blockquote p { color: var(--ink); }
.voices .lead-q p { font-size: clamp(20px, 2vw, 26px); line-height: 1.42; }
.voices .side { display: grid; gap: 32px; align-content: start; }
.voices .side blockquote + blockquote { border-top: 1px solid var(--line); padding-top: 32px; }
.voices footer { margin-top: 16px; font-size: 15px; color: var(--muted); }
.voices footer b { color: var(--ink); font-weight: 500; }
.foot { margin-top: 32px; }
.foot .link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- after you apply ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.flow li { counter-increment: step; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.flow li::before { content: counter(step); display: block; font: 600 40px/1 var(--cond); color: var(--ink); margin-bottom: 24px; }
.flow h3 { margin-bottom: 8px; }
.flow p { color: var(--ink-2); font-size: 17px; }

/* ---------- questions ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 500; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; transition: background-size .2s var(--ease); }
.faq details[open] summary::after { background-size: 14px 2px, 2px 0; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--green-ink); } }
.faq details p { color: var(--ink-2); padding: 0 48px 24px 0; max-width: 68ch; }
.faq details a { color: var(--green-ink); }
@supports selector(::details-content) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size .25s var(--ease), opacity var(--t-in) ease, content-visibility .25s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.spec.big { border-bottom: 1px solid var(--line); }
.spec.big > div { padding: 16px 0; font-size: 17px; }
.spec.big dd a { color: var(--green-ink); font-weight: 500; text-underline-offset: 4px; overflow-wrap: anywhere; }
.spec.big small { display: block; font-size: 15px; color: var(--muted); }
.map { margin-top: 32px; aspect-ratio: 16 / 9; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form { background: var(--surface); border: 1px solid var(--line-strong); padding: 32px; }
.form h3 { font: 600 28px/1.15 var(--cond); margin-bottom: 8px; }
.form > p { color: var(--ink-2); font-size: 17px; margin-bottom: 24px; }
.form form { display: grid; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.form input, .form select { width: 100%; min-height: 48px; padding: 12px; border: 1px solid rgba(21, 24, 26, .4); border-radius: var(--r); background: #fff; color: var(--ink); font: 400 17px var(--sans); }
.form input, .form select { transition: border-color .15s ease; }
.form input:focus, .form select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form .note { font-size: 15px; color: var(--ink-2); }
.form .note a { color: var(--green-ink); }
#callbackMsg:not(:empty) { background: #fff3c4; color: #3d3200; padding: 12px; font-size: 15px; animation: fade .2s ease; }

/* ---------- admissions band and footer ---------- */
/* the close: the admissions line set large, the page's one type moment */
.band { background: var(--ink); color: #fff; padding: 120px 0; }
#why :focus-visible, .band :focus-visible, .dock :focus-visible, .util :focus-visible { outline-color: #fff; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 40px; }
.band h2 { font-size: clamp(40px, 6.6vw, 96px); line-height: .98; margin-bottom: 24px; max-width: 10em; }
.band p { color: #cdd3cf; }
.band .acts { display: flex; flex-wrap: wrap; gap: 12px; }

footer.site { padding: 64px 0 40px; font-size: 15px; color: var(--ink-2); }
footer.site .cols { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr)); gap: 40px; }
footer.site .about img { height: 44px; width: auto; margin-bottom: 20px; }
footer.site .about p { margin-bottom: 12px; max-width: 30em; }
footer.site h3 { font: 500 15px var(--sans); color: var(--ink); margin-bottom: 12px; }
footer.site .cols > div:not(.about) a { display: block; padding: 8px 0; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { footer.site a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }
.socials { display: flex; flex-wrap: wrap; gap: 0 24px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-ink); font-weight: 500; }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

.dock { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  nav.main { display: none; }
  .burger { display: flex; }
  .head-cta { margin-left: auto; }
  .path { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .path .buy { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
  .buy .lbl, .buy .sub { margin: 0; }
  .buy .btn { width: auto; margin-left: auto; }
  .buy .apply { margin: 0; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why, .faq-grid, .contact, .voices { gap: 40px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .util, .head-cta .quiet, .head-cta .btn { display: none; } /* Enrol now lives in the bottom bar on a phone */
  header.site .wrap { height: 64px; gap: 12px; }
  .logo img { height: 32px; }
  .head-cta { gap: 12px; }
  .sec { padding: 64px 0; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-text { padding: 32px var(--gutter) 32px; }
  .hero-text h1 { font-size: clamp(40px, 11.5vw, 52px); margin-bottom: 16px; }
  .hero-text .acts { flex-direction: column; margin-top: 24px; }
  .hero-text .acts .btn { width: 100%; }
  .hero-pic { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-foot { margin-top: 28px; }
  .hero-foot ul { flex-direction: column; }

  .head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
  .head .links .btn { width: 100%; }

  .path { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px 0; }
  .path .pic { margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 3 / 2; }
  .path h3 { font-size: 30px; }
  .path h3 a { display: inline-block; padding: 8px 0; }
  .spec > div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .path .buy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .buy .fee { font-size: 28px; }
  .buy .sub { margin-bottom: 16px; }
  .buy .btn { width: 100%; margin: 0; }
  .buy .apply { justify-self: center; min-height: 44px; display: inline-flex; align-items: center; }
  .cmp { grid-template-columns: minmax(0, 1fr); }
  .cmp .btn { width: 100%; }

  #why { padding: 0 0 64px; }
  .why { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .why .pic { position: static; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 4 / 3; }
  .why .pic img { object-position: 50% 35%; }
  .why h2 { margin-bottom: 24px; }
  .points { grid-template-columns: minmax(0, 1fr); }

  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wall figure.tall { grid-column: span 1; }
  .wall figure.tall:first-child { grid-column: span 2; }
  .wall figure.tall:first-child button { aspect-ratio: 4 / 3; }
  .wall figure.wide { grid-column: span 1; }
  .wall .wide button { aspect-ratio: 3 / 4; }

  .voices { grid-template-columns: minmax(0, 1fr); }
  .voices .lead-q p { font-size: 20px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .flow li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; }
  .flow li::before { grid-row: span 2; font-size: 32px; margin: 0; }
  .faq-grid, .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq details p { padding-right: 0; }
  .spec.big > div { grid-template-columns: 96px minmax(0, 1fr); }
  .map { aspect-ratio: 4 / 3; }
  .form { padding: 24px 20px; }

  .band { padding: 72px 0; }
  .band .acts, .band .acts .btn { width: 100%; }
  footer.site .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  footer.site .about { grid-column: 1 / -1; }
  footer.site .cols > div:not(.about) a { padding: 12px 0; }

  /* phone action bar: the three things a visitor on a phone wants, always in reach */
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1.4fr; background: var(--ink); padding-bottom: env(safe-area-inset-bottom, 0px); transition: transform .2s var(--ease); }
  .dock.away { transform: translateY(100%); }
  .dock a { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0 4px; white-space: nowrap; min-height: 56px; color: #fff; font-weight: 500; font-size: 17px; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, .16); }
  .dock a:first-child { border-left: 0; }
  .dock a.go { background: var(--green); border-left: 0; }
  .dock a { -webkit-tap-highlight-color: transparent; transition: background-color .1s ease; }
  .dock a:active { background: #2b3033; }
  .dock a.go:active { background: var(--green-press); }
}

@media (max-width: 1080px) and (min-width: 761px) { .cmp { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (max-width: 360px) { .dock a { font-size: 15px; } .dock { grid-template-columns: 1fr 1.2fr 1.3fr; } }

/* reduced motion: keep the colour and fade changes, take out the movement */
@media (prefers-reduced-motion: reduce) {
  .hero-text > * { animation-name: fade !important; }
  .btn:active, .burger:active, dialog.zoom .close:active { transform: none; }
  .wall img { transition: none; transform: none !important; }
  .faq summary::after { transition: none; }
  .faq details::details-content { transition: opacity var(--t-in) ease, content-visibility var(--t-in) allow-discrete; }
  .wall button:active { transform: none; }
  dialog.zoom.closing { transform: none; }
  .burger span { transition: opacity var(--t-out) ease; }
  .mobile-nav, .mobile-nav.open { transform: none; }
  .dock { transition: none; }
}
@media (prefers-reduced-motion: reduce) { dialog.zoom[open] { animation-name: fade; } }


/* =====================================================================================================
   VERSION 2. Direction: the page speaks in the school's own language.
   A dark, poster-like hero in signage type; photographs in black and white; the four facts on an HMI
   readout; each path drawn as a ladder rung; the steps after applying as one rung that energises in order.
   Everything above this line is version 1; the rules below replace what they need to.
   ===================================================================================================== */
:root {
  --ink: #0e1411; --ink-2: #3c4440; --muted: #57605b; --paper: #f3f2ed; --paper-2: #e6e4dc;
  --lamp: #3ddc6b; --panel: #161e1a; --on-dark: #cdd3cf;
  --disp: "Barlow Condensed", "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
}
h1, h2 { font-family: var(--disp); font-weight: 600; letter-spacing: .005em; text-transform: uppercase; }
h2 { font-size: clamp(40px, 5.2vw, 76px); line-height: .96; }
.head.one { max-width: 1000px; }
.head { align-items: end; margin-bottom: 56px; }

/* ---------- dark chrome ---------- */
.util { border-bottom: 1px solid rgba(255, 255, 255, .1); }
header.site { background: var(--ink); border-bottom-color: rgba(255, 255, 255, .12); }
.logo { background: #fff; padding: 4px 10px; border-radius: 2px; min-height: 44px; }
.logo img { height: 34px; }
nav.main a { color: var(--on-dark); }
nav.main a[aria-current] { color: #fff; border-bottom-color: var(--lamp); }
@media (hover: hover) and (pointer: fine) { nav.main a:hover { color: #fff; border-bottom-color: var(--lamp); } .head-cta .quiet:hover { color: #fff; } }
.head-cta .quiet { color: var(--on-dark); }
header.site :focus-visible, .hero :focus-visible, .hmi :focus-visible, footer.site :focus-visible { outline-color: #fff; }
.burger { border-color: rgba(255, 255, 255, .5); }
.burger span { background: #fff; }
.mobile-nav { background: var(--ink); color: #fff; border-color: rgba(255, 255, 255, .12); }
.mobile-nav a { border-bottom-color: rgba(255, 255, 255, .12); }
.mobile-nav a:active { color: var(--lamp); }

/* ---------- hero: a poster ---------- */
.hero { display: block; min-height: 0; background: var(--ink); color: #fff; padding: 36px 0 0; overflow: hidden; }
.hero .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; font-size: 15px; color: var(--on-dark); animation: fade .4s ease both; }
.status { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 500; }
/* the run lamp: lit because applications are open */
.lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); outline: 3px solid rgba(61, 220, 107, .25); }
.hero h1 { font-size: clamp(52px, 8.5vw, 126px); font-weight: 700; line-height: .88; margin: 0 0 40px; animation: rise-lead .5s var(--ease) both; }
.hero h1 span { display: block; color: var(--lamp); }
.hero-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.hero-copy { padding: 8px 0 56px; animation: rise .4s var(--ease) 80ms both; }
.hero-copy .lead { color: #d8dcd9; }
.hero-copy .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-primary { background: var(--lamp); color: var(--ink); }
.hero .btn-outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
@media (hover: hover) and (pointer: fine) { .hero .btn-primary:hover { background: #63e588; } .hero .btn-outline:hover { background: #fff; color: var(--ink); } }
.hero-pic { position: relative; min-height: 0; aspect-ratio: 16 / 9; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2)); overflow: hidden; background: #1b2420; }
.hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 72%; transform: none; }

/* black and white makes phone photographs from different days read as one set; colour returns under the pointer and in the viewer */
.wall img { transition: transform var(--t-in) var(--ease), filter .3s ease; }
@media (hover: hover) and (pointer: fine) { .wall button:hover img { filter: none; } }

/* ---------- the readout: four facts on an HMI panel ---------- */
.hmi { background: var(--ink); color: #fff; padding: 0 0 80px; }
.hmi .panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid rgba(255, 255, 255, .16); border-top: 0; }
.hmi .panel > div { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.hmi .panel > div:first-child { border-left: 0; }
.hmi dt { font-size: 15px; line-height: 1.35; color: var(--on-dark); }
.hmi dd { align-self: flex-start; min-width: 4.4ch; padding: 10px 14px 8px; background: #080c0a; border: 1px solid rgba(255, 255, 255, .1); border-radius: 3px; font: 500 44px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; text-align: right; color: var(--lamp); }

/* ---------- the three paths, each a rung of a ladder diagram ---------- */
.paths { border-top: 0; }
.path { position: relative; padding: 88px 0 56px; border-bottom: 0; }
.rung { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--ink); }
.rung .contact { position: absolute; left: 132px; top: -12px; width: 20px; height: 26px; background: var(--paper); border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.rung .coil { position: absolute; right: 40px; top: -14px; width: 30px; height: 30px; background: var(--paper); border: 3px solid var(--ink); border-radius: 50%; }
.path .tag { position: absolute; left: 0; top: 17px; background: var(--ink); color: #fff; font: 600 14px/1 var(--disp); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px 6px; border-radius: 2px; }
.path h3 { font: 600 40px/1 var(--disp); letter-spacing: .005em; text-transform: uppercase; }
.buy .fee { font-size: 32px; }
.cmp { grid-template-columns: auto minmax(0, 1fr); border-top: 2px solid var(--ink); padding-top: 32px; }
@media (max-width: 760px) { .cmp { grid-template-columns: minmax(0, 1fr); } }

/* ---------- after you apply: one rung, four contacts in series, then the coil ---------- */
.flow-wrap { position: relative; }
.wire { position: absolute; left: 0; right: 0; top: 21px; height: 2px; background: var(--ink); }
.wire i { position: absolute; inset: 0; background: var(--green); transform-origin: left center; }
.wire::after { content: ""; position: absolute; right: 0; top: -15px; width: 32px; height: 32px; box-sizing: border-box; border: 3px solid var(--green); border-radius: 50%; background: var(--green); }
.flow li { position: relative; border-top: 0; padding-top: 68px; }
.flow li::before { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; background: var(--paper); border-left: 3px solid var(--green); border-right: 3px solid var(--green); font: 600 24px/1 var(--disp); color: var(--green-ink); }
.flow li:last-child { padding-right: 48px; }
/* armed by the script, so without it the rung simply shows energised */
.armed .wire i { transform: scaleX(0); }
.armed .wire::after { background: var(--paper); border-color: var(--ink); }
.armed .flow li::before { border-color: var(--ink); color: var(--ink); }
.armed.lit .wire i { transform: scaleX(1); transition: transform 1.4s linear; }
.armed.lit .flow li::before { border-color: var(--green); color: var(--green-ink); transition: border-color .2s ease, color .2s ease; }
.armed.lit .flow li:nth-child(2)::before { transition-delay: .35s; }
.armed.lit .flow li:nth-child(3)::before { transition-delay: .7s; }
.armed.lit .flow li:nth-child(4)::before { transition-delay: 1.05s; }
.armed.lit .wire::after { background: var(--green); border-color: var(--green); transition: background-color .25s ease 1.4s, border-color .25s ease 1.4s; }

/* ---------- graduates ---------- */
.voices { border-top: 2px solid var(--ink); }
.voices .lead-q p { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.36; }

/* ---------- the close and the footer ---------- */
.band { background: var(--green); padding: 128px 0; }
.band h2 { font-size: clamp(44px, 7.4vw, 112px); font-weight: 700; line-height: .9; max-width: 11em; }
.band p { color: #fff; }
.band .btn-primary { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .band .btn-primary:hover { background: var(--paper-2); } }
footer.site { background: var(--ink); color: var(--on-dark); }
footer.site .about img { background: #fff; padding: 6px 12px; border-radius: 2px; height: 56px; }
footer.site h3 { color: #fff; }
@media (hover: hover) and (pointer: fine) { footer.site a:hover { color: #fff; } }
.socials a { color: var(--lamp); }
.legal { border-top-color: rgba(255, 255, 255, .14); color: #aab2ad; }
.dock a.go { background: var(--lamp); color: var(--ink); }
.dock a.go:active { background: #63e588; }

@media (max-width: 1080px) {
  .hero-row { gap: 40px; }
  .hmi .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hmi .panel > div:nth-child(3) { border-left: 0; }
  .hmi .panel > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .path .buy { border-top-color: var(--line); }
}
@media (max-width: 760px) {
  .logo img { height: 30px; }
  .hero { padding-top: 24px; }
  .hero .top { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(50px, 15.4vw, 72px); margin-bottom: 28px; }
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { padding-bottom: 32px; }
  .hero-copy .acts { flex-direction: column; }
  .hero-copy .acts .btn { width: 100%; }
  .hero-pic { aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--gutter)); }
  .hmi { padding-bottom: 56px; }
  .hmi .panel { margin: 0 calc(-1 * var(--gutter)); border-left: 0; border-right: 0; }
  .hmi .panel > div { padding: 16px 20px; }
  .hmi dd { font-size: 32px; }
  h2 { font-size: clamp(38px, 11vw, 52px); }
  .path { padding: 76px 0 32px; }
  .rung .contact { left: 112px; }
  .rung .coil { right: 0; }
  .path h3 { font-size: 32px; }
  .wire { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .wire i { transform-origin: center top; }
  .wire::after { right: auto; left: -15px; top: auto; bottom: -32px; }
  .armed .wire i { transform: scaleY(0); }
  .armed.lit .wire i { transform: scaleY(1); }
  .flow { gap: 40px; padding-bottom: 32px; }
  .flow li { display: block; padding: 0 0 0 68px; min-height: 44px; }
  .flow li::before { font-size: 24px; border-left: 0; border-right: 0; border-top: 3px solid var(--green); border-bottom: 3px solid var(--green); }
  .armed .flow li::before { border-color: var(--ink); }
  .flow li:last-child { padding-right: 0; }
  .band { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero-copy { animation-name: fade; }
  .armed .wire i, .armed.lit .wire i { transform: none; transition: none; }
  .armed .flow li::before, .armed.lit .flow li::before { border-color: var(--green); color: var(--green-ink); transition: none; }
  .armed .wire::after, .armed.lit .wire::after { background: var(--green); border-color: var(--green); transition: none; }
  .wall img { transition: none; }
}


/* =====================================================================================================
   VERSION 4 = version 2 plus three changes: a three-fact readout, the paths as one ladder board with
   start dates, and graduates and the facility strip together on the dark ground.
   ===================================================================================================== */
.hmi .panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hmi dd { min-width: 0; }

/* ---------- the ladder board ---------- */
.board { border-bottom: 2px solid var(--ink); }
.brow { position: relative; display: grid; grid-template-columns: 150px minmax(0, 5fr) minmax(0, 6fr) 200px; gap: 12px 32px; align-items: center; padding: 60px 0 28px; }
.brow .tag { position: absolute; left: 0; top: 17px; background: var(--ink); color: #fff; font: 600 14px/1 var(--disp); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px 6px; border-radius: 2px; }
/* the coil at the end of a rung is lit while applications for that path are open */
.coil { background: var(--lamp) !important; border-color: var(--green) !important; }
.thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.brow .meta { font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.brow h3 { font: 600 32px/1 var(--disp); letter-spacing: .005em; text-transform: uppercase; margin-bottom: 0; }
.brow h3 a { display: inline-block; padding: 6px 0; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .brow h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; } }
.brow .who { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.cells { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 4fr); gap: 28px; align-items: start; }
.cells dt { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.cells dd { line-height: 1.35; font-weight: 500; }
.cells b { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; }
.cells b.fee { font: 500 24px/1.15 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cells small { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--ink-2); }
.more { grid-column: 2 / -1; }
.more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--green-ink); cursor: pointer; list-style: none; user-select: none; -webkit-user-select: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--t-in) var(--ease); }
.more[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.more .spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 4px; }
.cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; border-top: 0; padding-top: 28px; }
.legend { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.legend .coil { flex: none; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid; border-radius: 50%; }

/* ---------- why goes light, so the dark is kept for the graduates and the facility ---------- */
#why { background: var(--paper-2); color: var(--ink); padding: 96px 0; }
#why .points li { border-top-color: var(--line); }
#why .points p { color: var(--ink-2); }
#why :focus-visible { outline-color: var(--green); }
.why .pic { background: var(--paper); }

/* ---------- graduates and facility, one dark block ---------- */
.sec.dark { background: var(--ink); color: #fff; }
.sec.dark .intro { color: var(--on-dark); }
.sec.dark :focus-visible { outline-color: #fff; }
.sec.dark .link { color: var(--lamp); }
#testimonials { padding-bottom: 56px; }
#testimonials .voices { border-top-color: rgba(255, 255, 255, .5); }
#testimonials .voices blockquote p { color: #fff; }
#testimonials .voices .side blockquote + blockquote { border-top-color: rgba(255, 255, 255, .2); }
#testimonials .voices footer { color: var(--on-dark); }
#testimonials .voices footer b { color: #fff; }
.fac { padding-top: 56px; }
.fac .head { margin-bottom: 32px; }
.fac h2 { font-size: clamp(34px, 3.4vw, 48px); }
.fac .links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 8px; }
.fac .links .link { display: inline-flex; align-items: center; min-height: 44px; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2)) 16px; scroll-padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .5) transparent; }
.strip figure { position: relative; flex: none; scroll-snap-align: start; }
.strip button { display: block; padding: 0; border: 0; background: #1b2420; cursor: zoom-in; overflow: hidden; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; transition: transform var(--t-press) var(--ease); }
.strip button:active { transform: scale(.985); }
.strip img { height: 400px; width: auto; }
@media (hover: hover) and (pointer: fine) { .strip button:hover img { filter: none; } }
.strip figcaption.plate { top: auto; bottom: 12px; }

@media (max-width: 1080px) {
  .brow { grid-template-columns: 120px minmax(0, 1fr); }
  .brow .cells, .brow > .act, .brow .more { grid-column: 1 / -1; }
  .brow > .act { flex-direction: row; align-items: center; gap: 16px; }
}
@media (max-width: 760px) {
  .hmi .panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hmi .panel > div { padding: 14px 10px 16px; border-top: 0 !important; border-left: 1px solid rgba(255, 255, 255, .1) !important; }
  .hmi .panel > div:first-child { border-left: 0 !important; padding-left: 20px; }
  .hmi dt { font-size: 13px; }
  .hmi dd { font-size: 17px; padding: 7px 7px 5px; white-space: nowrap; letter-spacing: 0; }
  .brow { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; padding: 52px 0 20px; }
  .brow h3 { font-size: 30px; }
  .brow .who { grid-column: 1 / -1; }
  .cells { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .cells .len { display: none; } /* the length is already in the line above the title and under "What you get" */
  .cells > div { padding: 10px 0; }
  .cells > div:last-child { padding-left: 14px; border-left: 1px solid var(--line); }
  .cells b { font-size: 17px; }
  .cells b.fee { font-size: 20px; }
  .brow > .act { flex-direction: column; align-items: stretch; gap: 0; }
  .more .spec { grid-template-columns: minmax(0, 1fr); }
  .cmp .btn { width: 100%; }
  #why { padding: 0 0 64px; }
  .fac { padding-top: 40px; }
  .strip img { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .strip img, .strip button, .more summary::after { transition: none; } .strip button:active { transform: none; } }


/* =====================================================================================================
   Apple-style details: chrome as a material that content passes under, type tracking set by size,
   a dimmed and softened page behind the photo viewer, and respect for the visitor's own settings.
   ===================================================================================================== */
/* the header is solid at the top of the page and becomes a dark glass once the page scrolls under it; the phone bar is glass throughout */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.site { transition: background-color .2s ease; }
  header.site.glass { background: rgba(14, 20, 17, .78); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-bottom-color: rgba(255, 255, 255, .14); }
  .mobile-nav { background: rgba(14, 20, 17, .9); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }
  .dock { background: rgba(14, 20, 17, .82); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
  /* behind the photo viewer the page dims and softens, so the photo is the only sharp thing */
  dialog.zoom::backdrop { background: rgba(10, 12, 13, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
/* tracking follows size: the largest type is tightened, small capital labels are opened up */
.hero h1 { letter-spacing: -.012em; }
.band h2 { letter-spacing: -.01em; }
h2 { letter-spacing: -.004em; }
.plate, .path .tag, .brow .tag { letter-spacing: .11em; }
/* the visitor's own settings win */
@media (prefers-reduced-transparency: reduce) {
  header.site, .mobile-nav, .dock { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  dialog.zoom::backdrop { background: rgba(10, 12, 13, .92); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(14, 20, 17, .5); --muted: #3c4440; --on-dark: #fff; }
  header.site, .mobile-nav, .dock { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: #fff; }
  .btn-outline, .form input, .form select { border-width: 2px; }
}
/* the photo strip fades at its right edge, a hint that it carries on; scrolling it uses the phone's own momentum and bounce */
.strip { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); }
@media (prefers-contrast: more) { .strip { -webkit-mask-image: none; mask-image: none; } }


/* =====================================================================================================
   Motion for the parts that are new in version 4. Everything else already moves as in version 2.
   ===================================================================================================== */
/* "What you get" eases open and shut and can be reversed part-way, like the questions; browsers without support open it at once */
@supports selector(::details-content) {
  .more { interpolate-size: allow-keywords; }
  .more::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size .25s var(--ease), opacity var(--t-in) ease, content-visibility .25s allow-discrete; }
  .more[open]::details-content { block-size: auto; opacity: 1; }
}
/* the three coils light one after another, once, when the board comes into view: it shows what a lit coil is before the line under the board says it */
.board .brow .coil { transition: background-color .25s ease, border-color .25s ease; }
.board.armed:not(.lit) .brow .coil { background: var(--paper) !important; border-color: var(--ink) !important; }
.board.lit .brow:nth-child(2) .coil { transition-delay: 80ms; }
.board.lit .brow:nth-child(3) .coil { transition-delay: 160ms; }
@media (prefers-reduced-motion: reduce) {
  .board .brow .coil { transition: none; }
  .more::details-content { transition: opacity var(--t-in) ease, content-visibility var(--t-in) allow-discrete; }
}

/* the route to apply stays beside every path */
.brow .act { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.brow .act .apply { align-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 15px; font-weight: 500; color: var(--green-ink); }


/* =====================================================================================================
   THE REAL SITE. The home page no longer loads site.css or theme-b.css, so the shared pieces that
   chrome.js and site.js put on every page are styled here in the new look: the top bar, the header with
   its drop-down, the phone menu, the footer, the apply window and its forms, and the status messages.
   shortcut: this file is the preview's styles stacked in layers (v1, v2, v4); flatten it into one clean
   sheet once the design is final and before the other pages reuse it.
   ===================================================================================================== */
[hidden] { display: none !important; }
h4 { font: 500 17px/1.3 var(--sans); margin: 0; }
.muted { color: var(--muted); } .small { font-size: 15px; }
body.modal-open { overflow: hidden; }
.demo-banner { background: #fff3c4; color: #3d3200; font-size: 15px; line-height: 1.4; text-align: center; padding: 8px 16px; }

/* top bar */
.topbar { background: var(--ink); color: #d8dcd9; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar span + span { margin-left: 20px; }
@media (hover: hover) and (pointer: fine) { .topbar a:hover { text-decoration: underline; } }

/* header: chrome.js gives the links, a drop-down under Programmes, two buttons and a menu button */
header.site .wrap { justify-content: flex-start; }
nav.main { align-items: center; }
nav.main a.active { color: #fff; border-bottom-color: var(--lamp); }
nav.main .has-menu { position: relative; }
nav.main .menu { display: none; position: absolute; top: 100%; left: -16px; z-index: 5; min-width: 300px; padding: 8px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r); }
nav.main .has-menu:hover .menu, nav.main .has-menu:focus-within .menu { display: block; }
nav.main .menu a { display: block; padding: 10px 12px; border: 0; border-radius: 2px; font-size: 15px; color: #fff; }
nav.main .menu a b { font-weight: 500; }
nav.main .menu small { display: block; font-weight: 400; color: var(--on-dark); }
nav.main .menu a.sub { padding: 8px 12px 8px 24px; color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { nav.main .menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; border: 0; } }
header.site .head-cta .btn-outline { border-color: transparent; background: transparent; color: var(--on-dark); padding-left: 8px; padding-right: 8px; }
@media (hover: hover) and (pointer: fine) { header.site .head-cta .btn-outline:hover { background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 4px; } }
header.site .burger { color: #fff; font-size: 22px; line-height: 1; }
/* the phone menu is a sibling of the header on the real site, so it is pinned just under it */
body > .mobile-nav { position: fixed; top: 72px; z-index: 19; }
.mobile-nav a.sub { padding-left: 16px; color: var(--on-dark); }

/* footer as chrome.js writes it */
footer.site .logo-w { display: inline-block; margin-bottom: 20px; padding: 6px 12px; background: #fff; border-radius: 2px; }
footer.site .logo-w img { display: block; width: auto; }
footer.site .cols > div:first-child p { margin-bottom: 12px; max-width: 30em; }
footer.site h4 { font: 500 15px var(--sans); color: #fff; margin-bottom: 12px; }
footer.site .cols .socials a { display: inline-flex; padding: 0; }
footer.site .legal { display: block; }

/* the apply window */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 12, 13, .72); }
.modal.open { display: flex; }
.modal .box { position: relative; width: min(640px, 100%); max-height: 92vh; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; padding: 28px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r); }
.modal h3 { font: 600 32px/1 var(--disp); text-transform: uppercase; margin: 0 0 16px; }
.modal h4 { margin: 8px 0 4px; }
.modal .x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 44px 20px 0; }
.steps span { padding: 8px 2px 0; border-top: 3px solid var(--line); font-size: 15px; font-weight: 500; color: var(--muted); }
.steps span.on { border-top-color: var(--green); color: var(--green-ink); }
form.std { display: grid; gap: 16px; }
#applyForm > div { display: grid; gap: 16px; }
form.std label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
form.std label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
form.std label.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; }
form.std input, form.std select, form.std textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid rgba(21, 24, 26, .4); border-radius: var(--r); background: #fff; color: var(--ink); font: 400 17px var(--sans); }
form.std input:focus, form.std select:focus, form.std textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
form.std .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.std .note, .note { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.note a { color: var(--green-ink); }
.notice { padding: 12px; background: var(--paper-2); font-size: 15px; color: var(--ink); }
.plans { display: grid; gap: 8px; }
.plan { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid rgba(21, 24, 26, .4); border-radius: var(--r); background: #fff; cursor: pointer; }
.plan.on { border-color: var(--green); outline: 1px solid var(--green); background: #eef7ef; }
.plan b { font-weight: 600; }
.plan small { display: block; font-size: 15px; color: var(--ink-2); }
.wnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.kv { display: grid; gap: 0; margin: 0 0 12px; }
.kv div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: 15px; color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.ok { padding: 12px 16px; background: #e4f3e6; color: #0a4a14; border-radius: var(--r); }
.err, .reg-err { padding: 12px 16px; background: #ffe1e1; color: #7a1616; border-radius: var(--r); }
.reg-err { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reg-err button { min-height: 44px; padding: 8px 16px; border: 1px solid currentColor; border-radius: var(--r); background: transparent; color: inherit; font: 500 15px var(--sans); cursor: pointer; }
#wdone ul { margin: 8px 0; padding-left: 20px; list-style: disc; }
.btn-wa { border-color: var(--line-strong); color: var(--ink); }

/* student and project stories (shown only when the office has published some) */
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.story { border-top: 2px solid var(--ink); padding-top: 16px; cursor: pointer; }
.story-pic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; background: var(--paper-2); }
.story-noimg { display: grid; place-items: center; font: 600 40px var(--disp); color: var(--muted); }
.story .tag { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.story h3 { margin: 4px 0; }
.story-meta { font-size: 15px; color: var(--muted); }
.story-quote { margin: 8px 0; color: var(--ink-2); }
.story-more { min-height: 44px; padding: 0; border: 0; background: none; color: var(--green-ink); font: 500 15px var(--sans); text-decoration: underline; cursor: pointer; }
.stories-foot { margin-top: 32px; }

/* a rung whose path has no open cohort keeps its coil unlit */
.brow.shut .coil { background: var(--paper) !important; border-color: var(--ink) !important; }
.hmi dd b { font: inherit; }

@media (max-width: 1080px) { header.site .head-cta { margin-left: auto; } }
@media (max-width: 760px) {
  .topbar { display: none; }
  body > .mobile-nav { top: 64px; }
  .modal { padding: 0; align-items: stretch; }
  .modal .box { width: 100%; max-height: 100dvh; border: 0; border-radius: 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  form.std .row { grid-template-columns: 1fr; }
  .wnav .btn { flex: 1; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
}

/* HERO as a panel drawing sheet: the border with zone numbers and letters that every electrical drawing carries,
   the photo as the view on the sheet with one callout, and the three figures below as the title block.
   The zone marks are decoration only (hidden from screen readers). */
.hero { --rule: rgba(255, 255, 255, .3); padding-top: 0; }
.sheet { position: relative; }
.zones { display: flex; font: 500 11px/1 var(--mono); color: rgba(255, 255, 255, .6); }
.zones span { flex: 1; display: grid; place-items: center; }
.zx { height: 24px; margin: 0 calc(-1 * var(--gutter)); border-bottom: 1px solid var(--rule); }
.zx span + span { border-left: 1px solid var(--rule); }
.zy { display: none; }
.hero .top { padding-top: 24px; }
.hmi .panel { border-color: var(--rule, rgba(255, 255, 255, .3)); }
.hero-pic figcaption { position: absolute; right: 34%; bottom: 14%; display: flex; align-items: center; transform: translateX(7px); pointer-events: none; }
.hero-pic figcaption span { display: flex; align-items: center; background: #111; color: #fff; font: 600 13px/1.25 var(--cond); letter-spacing: .11em; text-transform: uppercase; padding: 8px 12px; border-radius: 2px; }
.hero-pic figcaption::before { content: ""; order: 1; width: 36px; height: 1px; background: #fff; }
.hero-pic figcaption::after { content: ""; order: 2; width: 14px; height: 14px; box-sizing: border-box; border: 2px solid var(--lamp); border-radius: 50%; }
@media (max-width: 760px) { .zx span:nth-child(n+5) { display: none; } }
@media (min-width: 1081px) {
  .hmi .panel { border-color: rgba(255, 255, 255, .3); }
  .sheet { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: 24px auto auto 1fr; padding-left: 24px; border: 1px solid var(--rule); border-top: 0; border-bottom: 0; }
  .zx { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
  .zy { display: flex; flex-direction: column; position: absolute; left: 0; top: 24px; bottom: 0; width: 24px; border-right: 1px solid var(--rule); }
  .zy span + span { border-top: 1px solid var(--rule); }
  .hero .top { grid-column: 1; padding: 28px 40px 0; margin-bottom: 36px; }
  .hero h1 { grid-column: 1; padding: 0 40px; font-size: clamp(56px, 6.5vw, 86px); margin-bottom: 32px; }
  .hero-row { display: contents; }
  .hero-copy { grid-column: 1; padding: 0 40px 56px; }
  .hero-pic { grid-column: 2; grid-row: 2 / 5; aspect-ratio: auto; min-height: 540px; margin-right: 0; border-left: 1px solid var(--rule); }
  .hero-pic img { object-position: 50% 40%; }
}

/* Drawing sheet, second pass: faint zone lines run through the sheet from the border marks, the callout is larger and
   easier to read, the sheet closes with a line above the title block, and the marks arrive in order once on load. */
.hero-pic figcaption::before { width: 56px; height: 2px; background: #111; }
.hero-pic figcaption::after { width: 20px; height: 20px; background: radial-gradient(circle, var(--lamp) 0 3px, transparent 3.5px); }
.hero-pic figcaption { transform: translateX(10px); }
.zones span { animation: fade .3s ease both; animation-delay: calc(var(--i, 0) * 30ms); }
.zones span:nth-child(2) { --i: 1; } .zones span:nth-child(3) { --i: 2; } .zones span:nth-child(4) { --i: 3; }
.zones span:nth-child(5) { --i: 4; } .zones span:nth-child(6) { --i: 5; } .zones span:nth-child(7) { --i: 6; } .zones span:nth-child(8) { --i: 7; }
.hero-pic figcaption span { animation: fade .3s ease .75s both; }
.hero-pic figcaption::before { transform-origin: 100% 50%; animation: draw-x .3s var(--ease) .55s both; }
.hero-pic figcaption::after { animation: ring-in .3s var(--ease) .4s both; }
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes ring-in { from { opacity: 0; transform: scale(.6); } }
@media (prefers-reduced-motion: reduce) { .zones span, .hero-pic figcaption span, .hero-pic figcaption::before, .hero-pic figcaption::after { animation: none; } }
@media (min-width: 1081px) {
  .sheet { isolation: isolate; border-bottom: 1px solid var(--rule); }
  .sheet::before { content: ""; position: absolute; z-index: -1; left: 24px; right: 0; top: 24px; bottom: 0; pointer-events: none;
    background:
      repeating-linear-gradient(to right, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, .06) calc(12.5% - 1px) 12.5%),
      repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), rgba(255, 255, 255, .06) calc(25% - 1px) 25%); }
  .hero .top { flex-wrap: nowrap; white-space: nowrap; font-size: 14px; }
}
.hero-pic figcaption span { white-space: nowrap; }
@media (max-width: 760px) { .hero-pic figcaption::before { width: 20px; } }

/* UNSLOP PASS: the course board gets room so fees and dates sit on one line (the Length column repeated what the
   line above each title and "What you get" already say); the closing band is tighter and its second button readable.
   Near-duplicate type sizes and colours in this file were merged at the same time. */
.cells .len { display: none; }
.cells { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); }
@media (min-width: 1081px) { .brow { grid-template-columns: 152px minmax(0, 4fr) minmax(0, 7fr) 200px; } .cells { gap: 32px; } }
.band { padding: 96px 0; }
.band .btn-outline, .band .btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
@media (max-width: 760px) { .band { padding: 72px 0; } .cells { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* the hero photo in its own colour (MD, 24 Nov: try colour); the other photos stay black and white */
.hero-pic img { filter: none; }

/* LADDER HERO (MD chose it, 24 Nov): the headline wired as two rungs of a ladder diagram between the power rails.
   It replaces the drawing-sheet hero; the .sheet and .zones rules above are now unused and go when this file is flattened. */
.hb .top { grid-column: auto; padding: 28px 0 0; margin-bottom: 28px; font-size: 15px; }
.hb h1.ladder { padding: 14px 0; margin: 0 0 44px; border-left: 3px solid #fff; font-size: clamp(44px, 13vw, 64px); line-height: 1; }
.hb h1 > span { display: block; padding: 4px 0 4px 16px; color: #fff; }
.hb h1 > span.r2 { color: var(--lamp); }
.hb h1 span.t { display: inline; color: inherit; }
.hb h1 i { display: none; }
@media (min-width: 761px) {
  .hb h1.ladder { border-right: 3px solid #fff; font-size: clamp(40px, 6.9vw, 90px); }
  .hb h1 > span { display: flex; align-items: center; padding: 6px 0 6px 28px; }
  .hb h1 span.t { white-space: nowrap; margin-right: 24px; }
  .hb h1 i { display: block; flex: none; }
  .hb h1 .lw { flex: 1; min-width: 16px; height: 3px; background: currentColor; }
  .hb h1 .lw.end { flex: none; width: 40px; min-width: 0; }
  .hb h1 .lk { width: 20px; height: .52em; border-left: 3px solid; border-right: 3px solid; }
  .hb h1 .lo { width: .56em; height: .56em; border-radius: 50%; background: var(--lamp); box-sizing: border-box; border: 3px solid #0b7a1f; }
  .hb .hero-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; }
  .hb .hero-copy { grid-column: auto; padding: 0 0 56px; }
  .hb .hero-pic { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 8; min-height: 0; border: 0; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2)); }
  .hb .hero-pic img { object-position: 50% 32%; }
}
/* phone: the rung and its lit coil run under the headline from the left rail */
@media (max-width: 760px) {
  .hb h1 > span.r2 { display: flex; flex-wrap: wrap; align-items: center; padding-left: 0; }
  .hb h1 span.r2 .t { flex: none; width: 100%; box-sizing: border-box; padding-left: 16px; }
  .hb h1 .r2 .lw { display: block; flex: none; width: calc(100% - 28px); height: 3px; margin: 14px 0 6px; background: currentColor; }
  .hb h1 .r2 .lw.end { display: none; }
  .hb h1 .r2 .lo { display: block; width: 28px; height: 28px; margin: 14px 0 6px; border-radius: 50%; background: var(--lamp); box-sizing: border-box; border: 3px solid #0b7a1f; }
}

/* FACILITY STRIP in motion (MD, 25 Nov). Three things, kept light:
   1. the photos slide in from the right in turn, once, when the strip first comes into view;
   2. the row then drifts right to left while it is on screen (home-v4.js), and the photo crossing the middle of
      the screen turns to colour and its label lights green;
   3. under the row, in place of the scroll bar, a wire: a green signal runs along it as the photos pass and
      lights the coil at the end, the same contact, wire and coil as the course board.
   Removed on the MD's word to take the heavy things out: the green glow, the photo zoom on arrival, the labels'
   own late entrance and the edge fades tied to the swipe. Only transform, opacity, filter and colour move.
   People who ask their device for less movement get a still row, no colour change, and a wire that only follows
   their own swipe. */
@keyframes strip-plate { 0%, 36% { background-color: #111; color: #fff; } 46%, 54% { background-color: var(--lamp); color: #0e1411; } 64%, 100% { background-color: #111; color: #fff; } }
.strip.armed figure > * { opacity: 0; transform: translateX(160px); }   /* the contents move, not the frame: moving the frame shifts where the row snaps */
.strip.armed.lit figure > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.strip.lit figure:nth-child(2) { --d: 120ms; } .strip.lit figure:nth-child(3) { --d: 230ms; } .strip.lit figure:nth-child(4) { --d: 330ms; }
.strip.lit figure:nth-child(5) { --d: 420ms; } .strip.lit figure:nth-child(6) { --d: 500ms; } .strip.lit figure:nth-child(n+7) { --d: 570ms; }
@media (prefers-reduced-motion: reduce) { .strip.armed figure > * { transform: none; } .strip.armed.lit figure > * { transition: opacity .3s ease; transition-delay: 0ms; } }
.strip.drift { scroll-snap-type: none; }
.strip.loops { -webkit-mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent); }
@media (prefers-contrast: more) { .strip.loops { -webkit-mask-image: none; mask-image: none; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .strip.loops figure { view-timeline: --strip-photo inline; }
    .strip.loops figcaption.plate { animation: strip-plate linear both; animation-timeline: --strip-photo; }
  }
  @media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) { .strip.loops button:hover img { animation: none; filter: none; } }
}
/* the wire: --p is how far along the row we are, 0 to 1, written by home-v4.js as the row scrolls */
.fac:has(.sigwire) .strip { scrollbar-width: none; padding-bottom: 0; }
.fac:has(.sigwire) .strip::-webkit-scrollbar { display: none; }
.sigwire { position: relative; height: 24px; margin-top: 20px; overflow: hidden; }
.sigwire::before { content: ""; position: absolute; left: 0; right: 36px; top: 11px; height: 2px; background: rgba(255, 255, 255, .28); }
.sigwire .w-live { position: absolute; left: 0; right: 36px; top: 11px; height: 2px; background: var(--lamp); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.sigwire .w-run { position: absolute; left: 0; right: 36px; top: 0; height: 24px; transform: translateX(calc(var(--p, 0) * 100%)); }
.sigwire .w-run::before { content: ""; position: absolute; left: -5px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); }
.sigwire .w-end { position: absolute; right: 0; top: 2px; width: 20px; height: 20px; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; background: transparent; transition: background-color .2s ease, border-color .2s ease; }
.sigwire .w-end::before { content: ""; position: absolute; right: 100%; top: 7px; width: 16px; height: 2px; background: rgba(255, 255, 255, .28); }
.sigwire.on .w-end { background: var(--lamp); border-color: var(--lamp); }
@media (prefers-reduced-motion: reduce) { .sigwire .w-end { transition: none; } }

/* GLASS OVALS on the home page, to match the Academy Programme page (MD, 25 Nov: "show me on preview first").
   The header is a floating dark glass oval, the buttons are ovals, the menu is a rounded glass sheet and the phone
   bar is a floating glass oval. At the very top of the page the strip behind the header stays dark so the oval sits
   on the hero; once the page scrolls (home-v4.js adds .glass) the strip clears and the page shows through the oval.
   Solid for visitors who ask for less transparency or more contrast, and where the browser cannot blur. */
.btn { border-radius: 999px; padding-left: 22px; padding-right: 22px; }
header.site { top: 0; padding: 10px 16px; border-bottom: 0; background: var(--ink); }
header.site.glass { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
header.site .wrap { height: 60px; padding: 0 10px 0 12px; border-radius: 999px; background: #1a2320; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 10px 30px rgba(14, 20, 17, .16); }
.logo { border-radius: 999px; padding: 4px 14px; }
nav.main .menu { top: calc(100% + 14px); border-radius: 22px; background: #161e1a; }
nav.main .menu a { border-radius: 14px; }
body > .mobile-nav { left: 12px; right: 12px; top: 88px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; max-height: calc(100dvh - 110px); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.site .wrap { background: rgba(26, 35, 32, .72); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
  nav.main .menu { background: rgba(14, 20, 17, .78); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  header.site .wrap, nav.main .menu { background: #1a2320; -webkit-backdrop-filter: none; backdrop-filter: none; }
  header.site.glass { background: transparent; }
}
@media (max-width: 760px) {
  header.site { padding: 8px 10px; }
  header.site .wrap { height: 56px; }
  body > .mobile-nav { top: 80px; left: 10px; right: 10px; }
  .dock { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding-bottom: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; overflow: hidden; box-shadow: 0 10px 30px rgba(14, 20, 17, .22); }
  .dock.away { transform: translateY(calc(100% + 28px)); }
  .dock a { min-height: 52px; }
}
header.site .burger { border-radius: 999px; }
/* softer, not a full oval (MD, 25 Nov): the header and phone bar are floating panels with gently rounded corners */
header.site .wrap { border-radius: 16px; }
.logo { border-radius: 10px; padding: 4px 10px; }
nav.main .menu, body > .mobile-nav { border-radius: 16px; }
header.site .burger { border-radius: 10px; }
@media (max-width: 760px) { .dock { border-radius: 18px; } }

/* Programmes menu: cover the gap under the button so the menu stays open while the mouse crosses it */
nav.main .menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 7px; }
