/* Bluegate concept 02: The Rota. Timetable grid, road-sign type, orange as the signal colour. */

:root {
  --navy: #07367A;
  --deep: #041E45;
  --ink: #06275A;
  --mute: #4A5F80;
  --paper: #F3F6FA;
  --paper-2: #E6EDF6;
  --white: #FFFFFF;
  --rule: #CBD6E5;
  --rule-soft: #DFE6F0;
  --orange: #FC4C02;
  --orange-text: #C23A00;
  --on-orange: #041E45;
  --sky-mid: #8FA6C8;

  --display: 'Overpass', system-ui, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.2rem, 1.08rem + 0.55vw, 1.55rem);
  --fs-xl: clamp(1.65rem, 1.25rem + 1.8vw, 2.75rem);
  --fs-2xl: clamp(2.1rem, 1.3rem + 3.4vw, 4.25rem);
  --fs-hero: clamp(2.6rem, 1.1rem + 5.4vw, 6rem);

  --pad: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --gut: 36px;
  --head-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 900px) { :root { --gut: 76px; --head-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--fs-base);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--on-orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 10px 16px; font-weight: 800; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.mono-k { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.hl { color: var(--navy); background: linear-gradient(transparent 70%, rgba(252, 76, 2, .28) 70%, rgba(252, 76, 2, .28) 92%, transparent 92%); }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px;
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: .8em 1.3em .7em;
  font: 800 var(--fs-sm)/1 var(--display); letter-spacing: .01em;
  text-decoration: none; border: 2px solid transparent; border-radius: 3px;
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.btn--lg { min-height: 56px; font-size: var(--fs-base); padding: .9em 1.5em .8em; }
.btn__arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--orange); color: var(--on-orange); }
.btn--signal:hover { background: #FF6A2B; }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--deep); }
.btn--inv { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--inv:hover { background: var(--white); color: var(--deep); }

/* ---------- Utility bar and header ---------- */
.utility { background: var(--deep); color: #C9D6EA; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .04em; }
.utility__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utility .mono-k { color: var(--orange); margin-right: .6em; }
.utility__links { display: flex; gap: 24px; }
.utility a { text-decoration: none; }
.utility a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.utility__cv strong { color: var(--white); font-weight: 600; }
@media (max-width: 899px) { .utility__hours, .utility__links a:first-child { display: none; } .utility__in { justify-content: center; } }

.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--rule); transition: transform .4s var(--ease); }
.site-head.is-hidden { transform: translateY(-100%); }
.site-head__in { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); height: var(--head-h); }
.brand img { height: 48px; width: auto; }
@media (min-width: 900px) { .brand img { height: 54px; } }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.nav__list a { position: relative; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--ink); padding: 6px 0; }
.nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__list a:hover::after, .nav__list a[aria-current]::after { transform: scaleX(1); }
.head-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--navy); padding-left: clamp(12px, 2vw, 28px); border-left: 1px solid var(--rule); }
.head-phone svg { width: 16px; height: 16px; fill: var(--orange); }
.head-phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; }
@media (max-width: 1099px) { .head-phone { display: none; } }
@media (max-width: 899px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 14px; border: 2px solid var(--navy); border-radius: 3px; background: var(--white); color: var(--navy); font: 800 var(--fs-sm) var(--display); cursor: pointer; }
  .menu-btn__bars { position: relative; width: 18px; height: 2px; background: currentColor; transition: background-color .2s; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .menu-btn__bars::before { top: -6px; } .menu-btn__bars::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
}
.menu { position: fixed; inset: var(--head-h) 0 0 0; background: var(--white); z-index: 49; overflow-y: auto; padding: 8px var(--pad) 32px; border-top: 1px solid var(--rule); }
.menu[hidden] { display: none; }
.menu__list li { border-bottom: 1px solid var(--rule); }
.menu__list a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; font-weight: 800; font-size: var(--fs-xl); text-decoration: none; color: var(--navy); letter-spacing: -.01em; }
.menu__list .mono-k { color: var(--orange-text); }
.menu__foot { display: grid; gap: 12px; margin-top: 28px; }
.menu__foot .btn { justify-content: center; }
@media (min-width: 900px) { .menu { display: none !important; } }
body.menu-open { overflow: hidden; }

/* ---------- Shared labels and headings ---------- */
.label { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: clamp(14px, 2vw, 22px); }
.label__n { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 2px 6px 0; background: var(--navy); color: var(--white); font-weight: 600; border-radius: 2px; }
.label__sep { color: var(--rule); }
.label--inv { color: #A9BCD9; }
.label--inv .label__n { background: var(--orange); color: var(--on-orange); }
.h2 { font-weight: 900; font-size: var(--fs-2xl); line-height: .98; letter-spacing: -.025em; color: var(--navy); max-width: 16ch; text-wrap: balance; }
.lead { font-size: var(--fs-lg); line-height: 1.45; color: var(--ink); max-width: 46ch; margin-top: clamp(14px, 2vw, 22px); }
.section { padding-block: clamp(64px, 9vw, 132px); }
.sec-head { margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head--split { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1.1fr 1fr; gap: 48px; } .sec-head--split .lead { margin-top: 0; } }

/* Board-flip scramble: the real character keeps its width, a glyph sits over it */
.fx-w { white-space: nowrap; }
.fx-c { position: relative; }
.fx-c[data-g] { color: transparent; }
.fx-c[data-g]::after { content: attr(data-g); position: absolute; inset: 6% 1px 10%; display: grid; place-items: center; overflow: hidden; background: var(--deep); color: var(--orange); font: 700 .5em/1 var(--mono); border-radius: 2px; background-image: linear-gradient(transparent calc(50% - .5px), rgba(255, 255, 255, .25) calc(50% - .5px), rgba(255, 255, 255, .25) calc(50% + .5px), transparent calc(50% + .5px)); }
.closing .fx-c[data-g]::after { background-color: var(--orange); color: var(--deep); }

/* ---------- Tiles (photos and pictograms) ---------- */
.tile { position: relative; width: 128px; background: var(--deep); overflow: hidden; border-radius: 2px; }
.tile picture, .tile > .picto { display: block; aspect-ratio: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile figcaption { background: var(--navy); color: var(--white); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile--sm { width: 112px; flex: none; }
.tile--md { width: 176px; }
.tile--sign { background: var(--navy); }
.tile--sign .picto { width: 100%; padding: 22% 16% 30%; fill: var(--white); }
.tile__lanes { position: absolute; left: 12%; right: 12%; bottom: calc(24px + 16%); height: 3px; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 18px); }
.tile--cone { background: var(--paper-2); }
.tile--cone .picto { width: 100%; padding: 16% 18% 14%; }
.tile--cone figcaption { position: relative; }
.tile__chev { position: absolute; left: 6px; top: 8px; display: flex; gap: 0; }
.tile__chev svg { width: 14px; height: 14px; fill: var(--navy); opacity: .35; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 88px) clamp(56px, 8vw, 112px); background:
  linear-gradient(var(--rule-soft) 1px, transparent 1px) 0 0 / 100% 48px,
  var(--paper); }
.hero__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--white); border: 1px solid var(--rule); padding: 6px 12px 4px 6px; border-radius: 2px; }
.eyebrow__code { background: var(--orange); color: var(--on-orange); padding: 3px 6px 1px; font-weight: 700; border-radius: 2px; }
.hero__title { margin-top: clamp(20px, 3vw, 32px); font-weight: 900; font-size: var(--fs-hero); line-height: .92; letter-spacing: -.035em; color: var(--navy); text-wrap: balance; }
.hero__title .hl { display: inline; }
.hero__sub { margin-top: clamp(20px, 3vw, 32px); font-size: var(--fs-lg); line-height: 1.45; max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.hero__door { margin-top: 18px; font-size: var(--fs-sm); color: var(--mute); }
.hero__door a { color: var(--navy); font-weight: 800; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--orange); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--navy); }
.facts div { padding: 12px 24px 0 0; margin-right: 24px; border-right: 1px solid var(--rule); }
.facts div:last-child { border-right: 0; margin-right: 0; }
.facts dt { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.facts dd { font-weight: 900; font-size: var(--fs-lg); color: var(--navy); line-height: 1.2; }
@media (max-width: 480px) { .facts div { padding-right: 14px; margin-right: 14px; } }

/* Departure board */
.board { background: var(--deep); color: var(--white); border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(4, 30, 69, .55); overflow: hidden; }
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px clamp(16px, 2vw, 24px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.board__title { font-weight: 900; font-size: var(--fs-lg); letter-spacing: -.01em; }
.board__clock { font-family: var(--mono); font-size: var(--fs-sm); color: #A9BCD9; white-space: nowrap; }
.board__clock time { color: var(--orange); font-weight: 700; font-size: 1.25em; font-variant-numeric: tabular-nums; }
.board__table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: var(--fs-sm); }
.board__table th, .board__table td { text-align: left; padding: 11px clamp(8px, 1.2vw, 14px) 9px; border-bottom: 1px solid rgba(255, 255, 255, .09); vertical-align: middle; }
.board__table thead th { font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #A9BCD9; padding-block: 10px 8px; }
.board__table tr > :first-child { padding-left: clamp(16px, 2vw, 24px); color: #A9BCD9; width: 3.2em; }
.board__table tr > :last-child { padding-right: clamp(16px, 2vw, 24px); }
.board__table tbody th { font-family: var(--display); font-weight: 800; font-size: var(--fs-base); }
.board__table tbody th a { text-decoration: none; }
.board__table tbody tr { transition: background-color .25s; }
.board__table tbody tr:hover, .board__table tbody tr:focus-within { background: rgba(252, 76, 2, .12); }
.board__table tbody tr:hover th a, .board__table tbody tr:focus-within th a { color: var(--orange); }
.board__line { width: 3.5em; }
.board__code { display: inline-grid; place-items: center; width: 26px; height: 24px; padding-top: 2px; background: rgba(255, 255, 255, .1); color: var(--white); font-weight: 700; border-radius: 2px; }
.board__table tbody th { white-space: nowrap; }
.board__status { color: var(--orange); white-space: nowrap; font-size: 12px; }
.board__status::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--orange); border-radius: 50%; vertical-align: 1px; }
.board__foot { display: flex; justify-content: space-between; padding: 16px clamp(16px, 2vw, 24px); font-weight: 800; text-decoration: none; background: rgba(255, 255, 255, .04); }
.board__foot:hover { background: var(--orange); color: var(--on-orange); }
.js .board__clock time:empty { visibility: hidden; }
@media (max-width: 420px) { .board__line, .board__line-h { display: none; } .board__table tbody th { white-space: normal; } }

/* ---------- A day on the rota ---------- */
.rota { position: relative; background: var(--white); border-block: 1px solid var(--rule); }
.rota__top { padding-block: clamp(56px, 8vw, 104px) clamp(28px, 4vw, 48px); }
.rota__top-in { display: grid; gap: 24px; }
.rota__clock { display: none; }
.rota__stage { position: relative; }
.sky, .rota__ruler-base, .rota__now, .ruler { display: none; }

/* Stacked layout (mobile, reduced motion, no JS): a vertical list of time slots */
.rota__list { max-width: var(--max); margin-inline: auto; padding: 0 var(--pad) clamp(56px, 8vw, 104px); display: grid; }
.slot { display: grid; grid-template-columns: 76px 1fr; gap: 0 16px; padding: 18px 0; border-top: 1px solid var(--rule); align-items: start; }
.slot__time { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); line-height: 1.3; padding-top: 4px; }
.slot__time span { display: block; font-size: 1.35rem; font-weight: 700; color: var(--navy); letter-spacing: 0; margin-bottom: 2px; }
.slot__card { display: flex; gap: 16px; align-items: center; }
.slot__role { font-weight: 900; font-size: var(--fs-lg); line-height: 1.05; letter-spacing: -.015em; color: var(--navy); }
.slot__role a { text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.slot__role a:hover, .slot__role a:focus-visible { background-size: 100% 2px; }
.slot__meta { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.slot--night { background: var(--deep); margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); border-top-color: rgba(255, 255, 255, .1); }
.slot--night .slot__time { color: #A9BCD9; }
.slot--night .slot__time span, .slot--night .slot__role { color: var(--white); }
.slot--night .slot__meta { color: #A9BCD9; }
.mixed { background: var(--paper-2); border-left: 4px solid var(--orange); padding: clamp(20px, 3vw, 32px); }
.mixed__title { font-weight: 900; font-size: var(--fs-xl); line-height: 1; letter-spacing: -.02em; color: var(--navy); }
.mixed p { margin: 12px 0 20px; max-width: 38ch; }
@media (max-width: 480px) { .slot .tile--sm { width: 84px; } .slot { grid-template-columns: 62px 1fr; gap: 0 12px; } .slot__card { gap: 12px; } }

@media (min-width: 900px) {
  .rota:not(.hs) .rota__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .rota:not(.hs) .slot--night { margin-inline: 0; padding: 18px; border-radius: 3px; border-top: 0; margin-bottom: 1px; }
  .rota:not(.hs) .slot--mixed { grid-column: 1 / -1; }
}

/* Horizontal layout: only when JS adds .hs (desktop with motion) */
.rota.hs { border: 0; }
.rota.hs .rota__pin { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: var(--white); }
.rota.hs .rota__top { padding-block: calc(var(--head-h) * .35 + 28px) 22px; border-bottom: 1px solid var(--rule); flex: none; }
.rota.hs .rota__top-in { grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
.rota.hs .h2 { font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem); max-width: 22ch; }
.rota.hs .lead { font-size: var(--fs-base); margin-top: 10px; }
.rota.hs .label { margin-bottom: 12px; }
.rota.hs .rota__clock { display: grid; justify-items: end; text-align: right; gap: 4px; }
.rota__clock-k { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.rota__clock-v { font-family: var(--mono); font-weight: 700; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: .9; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.rota__clock-v::first-letter { color: inherit; }
.rota__clock-note { font-size: 12px; color: var(--mute); max-width: 30ch; }

.rota.hs .rota__stage { flex: 1; min-height: 0; overflow: hidden; --m: calc(var(--sw, 1440px) * .28); --hour: calc(var(--sw, 1440px) * .12); --ruler: 58px; }
.rota.hs .sky { display: block; position: absolute; inset: 0 0 var(--ruler) 0; background: linear-gradient(180deg, #EAF1FA, #F7F9FC); overflow: hidden; }
.sky__night { position: absolute; inset: 0; opacity: 0; background:
  radial-gradient(1.5px 1.5px at 12% 22%, #fff 99%, transparent), radial-gradient(1px 1px at 28% 60%, #fff 99%, transparent),
  radial-gradient(1.5px 1.5px at 44% 14%, #fff 99%, transparent), radial-gradient(1px 1px at 58% 44%, #fff 99%, transparent),
  radial-gradient(1.5px 1.5px at 72% 26%, #fff 99%, transparent), radial-gradient(1px 1px at 86% 58%, #fff 99%, transparent),
  radial-gradient(1px 1px at 94% 12%, #fff 99%, transparent), radial-gradient(1px 1px at 36% 84%, #fff 99%, transparent),
  linear-gradient(180deg, #031633, var(--deep) 70%, #0A2C60); }
.sky__dusk { position: absolute; inset: 0; opacity: 0; background: linear-gradient(180deg, #33558F 0%, #7F8FB8 55%, #E9B79A 100%); }
.sky__sun { position: absolute; right: 9%; top: 12%; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--orange); background: radial-gradient(circle, rgba(252, 76, 2, .16), transparent 70%); }
.sky__moon { position: absolute; right: 22%; top: 12%; width: 72px; height: 72px; border-radius: 50%; box-shadow: inset -16px 6px 0 0 #E9EEF7; opacity: 0; }
.rota.hs .rota__ruler-base { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: var(--ruler); background: var(--white); border-top: 2px solid var(--navy); }
.rota.hs .rota__now { display: block; position: absolute; top: 0; bottom: 0; left: var(--m); width: 2px; margin-left: -1px; background: var(--orange); z-index: 3; pointer-events: none; }
.rota.hs .rota__now span { position: absolute; bottom: calc(var(--ruler) - 2px); left: 0; transform: translateX(-50%); background: var(--orange); color: var(--on-orange); font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 7px 3px; border-radius: 2px; }
.rota.hs .rota__now::after { content: ''; position: absolute; left: 50%; bottom: var(--ruler); width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(252, 76, 2, .22); }

.rota.hs .rota__track { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--hour) * 24 + var(--sw, 1440px)); will-change: transform; }
.rota.hs .rota__list { position: absolute; inset: 0 0 var(--ruler) 0; max-width: none; margin: 0; padding: 0; display: block; }
.rota.hs .slot { position: absolute; top: 0; bottom: 0; left: calc(var(--m) + (var(--h) - 6) * var(--hour)); width: clamp(270px, 23vw, 350px); display: block; padding: 0; border: 0; margin: 0; background: none; }
.rota.hs .slot::before { content: ''; position: absolute; left: 0; bottom: 0; top: calc(var(--row) * 40% + 44px); width: 2px; background: var(--sky-mid); }
.rota.hs .slot::after { content: ''; position: absolute; left: -5px; bottom: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); }
.rota.hs .slot__time { position: absolute; left: 12px; top: calc(var(--row) * 40% + 10px); padding: 5px 8px 3px; background: var(--white); border: 1px solid var(--rule); border-radius: 2px; display: flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.rota.hs .slot__time span { font-size: 13px; margin: 0; }
.rota.hs .slot__card, .rota.hs .mixed { position: absolute; left: 12px; right: 0; top: calc(var(--row) * 40% + 44px); background: var(--white); padding: 12px; border-radius: 3px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(4, 30, 69, .45); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.rota.hs .slot--night .slot__role { color: var(--navy); }
.rota.hs .slot--night .slot__meta { color: var(--mute); }
.rota.hs .slot--night .slot__time { color: var(--mute); }
.rota.hs .slot--night .slot__time span { color: var(--navy); }
.rota.hs .slot.is-live .slot__card, .rota.hs .slot.is-live .mixed { box-shadow: 0 0 0 2px var(--orange), 0 22px 44px -22px rgba(4, 30, 69, .5); }
.rota.hs .slot.is-live::before { background: var(--orange); }
.rota.hs .slot.is-live::after { background: var(--orange); border-color: var(--orange); }
.rota.hs .slot.is-live .slot__time { border-color: var(--orange); }
.rota.hs .slot--mixed { width: clamp(320px, 30vw, 440px); }
.rota.hs .mixed { border-left: 4px solid var(--orange); padding: 22px; }
.rota.hs .mixed__title { font-size: clamp(1.5rem, 1rem + 1.2vw, 2.1rem); }
.rota.hs .mixed p { font-size: var(--fs-sm); margin: 10px 0 16px; }

.rota.hs .ruler { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: var(--ruler); }
.tick { position: absolute; bottom: 0; top: 2px; left: calc(var(--m) + var(--i) * var(--hour)); width: 0; }
.tick::before { content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 10px; background: var(--navy); }
.tick--half::before { height: 6px; background: var(--rule); }
.tick span { position: absolute; top: 18px; left: 0; transform: translateX(-50%); font: 600 12px/1 var(--mono); color: var(--navy); letter-spacing: .02em; }

/* ---------- Route zone (orange road line) ---------- */
.route-zone { position: relative; }
.route { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.route__base { fill: none; stroke: var(--rule); stroke-width: 2; stroke-dasharray: 6 8; }
.route__line { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.route__dash { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 7 9; }
.route__mask { fill: none; stroke: #fff; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.route__tip { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.no-route .route__tip { display: none; }
.lane { display: grid; grid-template-columns: var(--gut) minmax(0, 1fr); column-gap: clamp(8px, 2vw, 32px); }
.gutter { position: relative; z-index: 2; display: flex; justify-content: center; }
.stop { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--navy); margin-top: 2px; transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.stop.is-reached { border-color: var(--orange); }
.stop--lg { width: 34px; height: 34px; display: grid; place-items: center; border-width: 3px; font: 700 13px/1 var(--mono); color: var(--navy); padding-top: 2px; }
.stop--lg.is-reached { background: var(--orange); color: var(--on-orange); transform: scale(1.08); }
.terminus { width: 30px; height: 30px; border-radius: 3px; background: var(--orange); border: 4px solid var(--white); margin-top: 6px; box-shadow: 0 0 0 2px var(--orange); }
.cone-mark { align-self: center; width: 34px; height: 34px; }
.cone-mark svg { width: 100%; height: 100%; }
.lorry-mark { align-self: center; width: 40px; height: 40px; display: grid; place-items: center; background: var(--navy); border: 2px solid var(--white); border-radius: 4px; box-shadow: 0 0 0 2px var(--navy); }
.lorry-mark svg { width: 28px; height: 28px; fill: var(--white); }
@media (max-width: 899px) { .cone-mark { width: 26px; height: 26px; } .lorry-mark { width: 30px; height: 30px; } .lorry-mark svg { width: 20px; } .stop--lg { width: 28px; height: 28px; font-size: 12px; } }

/* ---------- Timetable ---------- */
.timetable { padding-bottom: clamp(40px, 6vw, 80px); }
.tt-head { display: none; }
.group { display: flex; align-items: center; gap: 14px; margin-top: clamp(28px, 4vw, 48px); padding: 12px 0 10px; border-bottom: 2px solid var(--navy); font-weight: 800; font-size: var(--fs-base); color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.group__code { display: grid; place-items: center; width: 30px; height: 30px; padding-top: 2px; background: var(--navy); color: var(--white); font: 700 15px/1 var(--mono); border-radius: 2px; }
.tt-row { position: relative; }
.tt-row__in { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "no no" "tile main" "chips chips" "link link"; gap: 12px 18px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); scroll-margin-top: 100px; }
.tt-row__in::before { content: ''; position: absolute; left: -12px; top: -1px; bottom: -1px; width: 4px; background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.tt-row:hover .tt-row__in::before, .tt-row:focus-within .tt-row__in::before, .tt-row:target .tt-row__in::before { transform: scaleY(1); }
.tt-row:hover .tile img { transform: scale(1.06); }
.tt-no { grid-area: no; font-family: var(--mono); font-weight: 700; font-size: var(--fs-sm); color: var(--orange-text); }
.tt-row .tile { grid-area: tile; width: 96px; align-self: start; }
.tt-main { grid-area: main; }
.tt-role { font-weight: 900; font-size: var(--fs-xl); line-height: 1; letter-spacing: -.02em; color: var(--navy); margin-bottom: 10px; }
.tt-main p { max-width: 52ch; }
.chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.chips li { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; padding: 6px 9px 4px; border: 1px solid var(--rule); background: var(--white); color: var(--ink); border-radius: 2px; }
.tt-link { grid-area: link; justify-self: start; display: inline-block; font-weight: 800; font-size: var(--fs-sm); color: var(--navy); text-decoration: none; padding: 10px 0; border-bottom: 2px solid var(--orange); }
.tt-link span { display: inline-block; margin-left: 6px; transition: transform .3s var(--ease); }
.tt-link:hover span, .tt-link:focus-visible span { transform: translateX(5px); }
.tt-link:hover { color: var(--orange-text); }
@media (max-width: 480px) { .tt-row__in { grid-template-columns: 76px minmax(0, 1fr); } .tt-row .tile { width: 76px; } .tt-role { font-size: 1.45rem; } }
@media (min-width: 900px) {
  .tt-head { display: grid; grid-template-columns: 52px 128px minmax(0, 1.2fr) minmax(0, 1fr) 190px; gap: 24px; padding: 0 0 10px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
  .tt-head span:nth-child(2) { grid-column: 2 / 4; }
  .tt-head span:nth-child(3) { display: none; }
  .tt-row__in { grid-template-columns: 52px 128px minmax(0, 1.2fr) minmax(0, 1fr) 190px; grid-template-areas: "no tile main chips link"; gap: 24px; padding: 28px 0; align-items: start; }
  .tt-row .tile { width: 128px; }
  .tt-no { padding-top: 6px; font-size: var(--fs-base); }
  .tt-link { justify-self: end; margin-top: 2px; text-align: right; padding-top: 4px; }
  .chips { padding-top: 4px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .tt-head { grid-template-columns: 52px 128px minmax(0, 1fr) 170px; }
  .tt-head span:nth-child(4) { display: none; }
  .tt-row__in { grid-template-columns: 52px 128px minmax(0, 1fr) 170px; grid-template-areas: "no tile main link" "no tile chips link"; }
}

/* ---------- Sectors: direction signs ---------- */
.sectors { background: var(--white); border-block: 1px solid var(--rule); }
.signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.sign { position: relative; display: flex; align-items: center; gap: 14px; min-height: 78px; padding: 14px 16px 12px; background: var(--navy); color: var(--white); border-radius: 6px; box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 4px rgba(255, 255, 255, .85); font-weight: 800; font-size: var(--fs-base); line-height: 1.15; transition: transform .35s var(--ease), background-color .3s; }
.sign svg { flex: none; width: 30px; height: 30px; fill: var(--white); transform: rotate(var(--r)); transition: transform .45s var(--ease); }
.sign:hover { background: var(--deep); transform: translateY(-3px); }
.sign:hover svg { transform: rotate(var(--r)) translateY(-3px); fill: var(--orange); }

/* ---------- Why ---------- */
.why__tile { justify-self: end; width: 200px; }
@media (max-width: 899px) { .why__tile { display: none; } }
.why__list { display: grid; border-top: 2px solid var(--navy); }
@media (min-width: 900px) { .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .why__item:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 40px; } .why__item:nth-child(even) { padding-left: 40px; } }
.why__item { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.why__n { grid-row: span 2; font-family: var(--mono); font-weight: 700; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: .9; color: var(--sky-mid); transition: color .3s; }
.why__item:hover .why__n { color: var(--orange); }
.why__item h3 { font-weight: 900; font-size: var(--fs-lg); line-height: 1.1; letter-spacing: -.01em; color: var(--navy); }
.why__item p { color: var(--ink); max-width: 44ch; }

/* ---------- How it works ---------- */
.how { padding-bottom: clamp(48px, 7vw, 96px); }
.how__step { padding-block: 0; }
.how__step .gutter { align-items: flex-start; padding-top: 22px; }
.how__body { display: grid; gap: 6px; padding: 24px 0 36px; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .how__body { grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: baseline; padding: 30px 0 48px; } }
.how__k { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-text); font-weight: 600; }
.how__body h3 { font-weight: 900; font-size: var(--fs-xl); line-height: 1; letter-spacing: -.02em; color: var(--navy); }
.how__body p { max-width: 44ch; }

/* ---------- Closing ---------- */
.closing { background: var(--deep); color: var(--white); padding-block: clamp(72px, 10vw, 150px); background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 100% 48px; }
.closing__title { font-weight: 900; font-size: var(--fs-hero); line-height: .92; letter-spacing: -.035em; max-width: 14ch; text-wrap: balance; }
.closing__title .hl { color: var(--orange); background: none; }
.closing .route__base { stroke: rgba(255, 255, 255, .2); }

/* ---------- Work with us ---------- */
.work__grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .work__grid { grid-template-columns: 1fr 1fr; gap: 64px; padding-left: calc(var(--gut) + clamp(8px, 2vw, 32px)); } }
.work__body .lead { margin: 0 0 28px; }
.work { border-bottom: 1px solid var(--rule); }

/* ---------- Quote form ---------- */
.quote { background: var(--white); }
.quote__grid { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 1000px) { .quote__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); padding-left: calc(var(--gut) + clamp(8px, 2vw, 32px)); } }
.contact { margin-top: 36px; border-top: 2px solid var(--navy); }
.contact div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 14px 0 12px; border-bottom: 1px solid var(--rule); }
.contact dt { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.contact dd { font-weight: 600; }
.contact a { color: var(--navy); text-underline-offset: 4px; text-decoration-color: var(--orange); }
.form { display: grid; grid-template-columns: 1fr; gap: 0; border: 2px solid var(--navy); background: var(--paper); align-self: start; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.form__head { grid-column: 1 / -1; display: flex; justify-content: space-between; background: var(--navy); color: var(--white); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; padding: 12px 18px 10px; }
.field { display: grid; gap: 6px; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .field:not(.field--full):nth-of-type(odd) { border-right: 1px solid var(--rule); } }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); font-weight: 600; }
.req { color: var(--orange-text); }
.field input, .field select, .field textarea { width: 100%; font: 400 var(--fs-base)/1.4 var(--display); color: var(--ink); background: var(--white); border: 1px solid var(--rule); border-bottom: 2px solid var(--navy); border-radius: 2px; padding: 11px 12px 9px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #6A7C98; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(252, 76, 2, .25); }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: var(--orange-text); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 18px; }
.form__small { font-size: var(--fs-sm); color: var(--mute); }
.form__note { padding: 0 18px; font-weight: 800; color: var(--navy); }
.form__note:not(:empty) { padding: 14px 18px; background: var(--paper-2); border-top: 2px solid var(--orange); }

/* ---------- Footer ---------- */
.foot { background: var(--deep); color: #C9D6EA; padding-top: clamp(56px, 7vw, 96px); font-size: var(--fs-sm); }
.foot__grid { display: grid; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.4fr 1fr .8fr 1.2fr; gap: 48px; } }
.foot__brand img { height: 60px; width: auto; margin-bottom: 18px; }
.foot__brand p { max-width: 34ch; }
.foot__k { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.foot__col li { padding: 4px 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 28px; font-size: 13px; }
.foot__note { color: #8FA3C3; }

/* ---------- Mobile dock ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.4fr; background: var(--deep); padding: 8px; gap: 8px; box-shadow: 0 -8px 24px rgba(4, 30, 69, .2); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 800; text-decoration: none; border-radius: 3px; }
.dock svg { width: 16px; height: 16px; fill: currentColor; }
.dock__call { color: var(--white); border: 2px solid rgba(255, 255, 255, .5); }
.dock__req { background: var(--orange); color: var(--on-orange); }
@media (max-width: 899px) { body { padding-bottom: 64px; } }
@media (min-width: 900px) { .dock { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
