/* Fonts, self-hosted (latin subset, SIL Open Font License). No calls to Google. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 100% 125%; font-display: swap; src: url(/fonts/archivo-var.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap; src: url(/fonts/instrument-sans-var.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-mono-500.woff2) format('woff2'); }

/* Uber Rail — direction A "Night shift". Tokens from the Uber Rail design system (dark). */
:root {
  --ground: #0C1016;
  --raised: #151B23;
  --raised-2: #1B222C;
  --line: #2B333F;
  --line-strong: #5C6878;
  --ink: #E7ECF2;
  --ink-soft: #C9D2DD;
  --ink-muted: #9BA6B5;
  --cobalt: #7C9BFF;
  --cobalt-deep: #1B47C9;
  --cobalt-night: #0A2466;
  --signal: #FFD100;
  --on-signal: #0F141B;
  --ok: #4CC38A;
  --alert: #FF8A80;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s1: 8px; --s2: 16px; --s3: 32px; --s4: 64px;
  --r-xs: 2px; --r-sm: 6px; --r-pill: 999px;
  --wrap: 1200px;
  --gutter: max(16px, env(safe-area-inset-left, 0px), 2rem);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: #B7C8FF; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--ink-muted); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--signal); color: var(--on-signal); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r-sm);
  font: 600 16px/1.2 var(--font-sans); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s, color .2s;
  will-change: transform;
}
.btn-signal { background: var(--signal); color: var(--on-signal); }
.btn-signal:hover { color: var(--on-signal); background: #FFE04D; box-shadow: 0 0 0 6px rgba(255, 209, 0, .14); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-strong); background: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-muted); background: rgba(255, 255, 255, .04); }
.btn .arrow { transition: transform .2s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 16, 22, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(12, 16, 22, .9); }
.site-header:has(.is-open) { background: var(--ground); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 84px; transition: min-height .3s var(--ease-out); }
.is-scrolled .header-row { min-height: 60px; }
/* Logo lockup: the original über mark with "Rail Services Ltd" set to the mark's width.
   The line's size is a fixed share of the logo width (0.069), so it always spans the mark. */
.lockup { --lw: 136px; display: inline-flex; flex-direction: column; flex: none; width: var(--lw); text-decoration: none; transition: width .3s var(--ease-out); }
.lockup img { width: 100%; height: auto; }
.lockup-sub {
  display: block; margin-top: calc(var(--lw) * .03); overflow: hidden;
  font: 700 calc(var(--lw) * .069)/1.15 var(--font-display); font-stretch: 112%;
  letter-spacing: .2em; margin-right: -.2em; text-transform: uppercase; white-space: nowrap; color: var(--ink);
  text-align: justify; text-align-last: justify;
  max-height: 2em; transition: max-height .3s var(--ease-out), opacity .2s, margin-top .3s var(--ease-out);
}
.site-header .lockup { padding-block: 8px; }
.site-header.is-scrolled .lockup { --lw: 104px; }
.site-header.is-scrolled .lockup-sub { max-height: 0; opacity: 0; margin-top: 0; }
.lockup-footer { --lw: 176px; margin-bottom: 16px; }
@media (max-width: 600px) { .site-header .lockup { --lw: 124px; } .site-header.is-scrolled .lockup { --lw: 96px; } }
.site-nav { display: flex; align-items: center; gap: var(--s3); }
.site-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.site-nav ul a { position: relative; color: var(--ink); text-decoration: none; font-size: 15px; padding: 8px 0; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
    background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: 600 15px var(--font-sans); cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav {
    position: fixed; inset: 0; top: var(--hdr, calc(60px + env(safe-area-inset-top, 0px)));
    flex-direction: column; align-items: stretch; gap: var(--s2);
    padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
    background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .7);
    overflow-y: auto; overscroll-behavior: contain;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .35s var(--ease-out), visibility 0s .35s;
  }
  .js .site-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .35s var(--ease-out); }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; font-family: var(--font-display); font-weight: 700; font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav ul a::after { display: none; }
  .js .site-nav .btn { width: 100%; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 8px 20px; }
  html:not(.js) .header-row { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .menu-btn { display: none; }
}

/* Sections */
.section { padding-block: 96px; }
.section-tight { padding-block: 64px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s2) var(--s3); margin-bottom: 40px; }
.section-head p { max-width: 36em; color: var(--ink-muted); }
.h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
.h3 { font-weight: 700; font-size: 21px; line-height: 1.3; font-stretch: 100%; letter-spacing: 0; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 34em; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px); }
.hero-cloud { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 48% 60% at 22% 50%, rgba(12, 16, 22, .88), rgba(12, 16, 22, .35) 65%, transparent), linear-gradient(to bottom, transparent 75%, var(--ground)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-weight: 800; font-size: clamp(42px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.025em; }
.hero h1 .hl { color: var(--signal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero { padding-block: clamp(48px, 7vw, 88px) 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.03; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Trace figure */
.trace { margin: 0; background: linear-gradient(180deg, rgba(21, 27, 35, .92), rgba(21, 27, 35, .82)); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px; display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(6px); box-shadow: 0 30px 80px -40px rgba(27, 71, 201, .55); min-width: 0; }
.trace svg { width: 100%; height: auto; overflow: visible; }
.trace .route { fill: none; stroke: var(--cobalt); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.trace .route-glow { fill: none; stroke: var(--cobalt); stroke-width: 10; opacity: .14; stroke-linejoin: round; }
.trace .pulse { fill: var(--signal); filter: drop-shadow(0 0 6px rgba(255, 209, 0, .9)); }
.trace .box { fill: rgba(12, 16, 22, .6); stroke: var(--line-strong); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.trace .lbl { fill: var(--ink-muted); font: 11px var(--font-mono); }
.trace .tag rect { fill: var(--signal); }
.trace .tag circle { fill: var(--raised); }
.trace .tag text { fill: var(--on-signal); font: 500 11px var(--font-mono); }
.trace .duct { fill: none; stroke: var(--cobalt); stroke-dasharray: 4 4; opacity: .8; }
.trace .duct-fill { fill: rgba(124, 155, 255, .18); }
.trace .dot { fill: var(--line); }
.trace figcaption { color: var(--ink-muted); }
.trace-readout { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 12px; }
.trace-readout b { color: var(--ink); font-weight: 500; }
.trace-readout .live { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.trace-readout .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(76, 195, 138, .6); animation: ping 2s infinite; }

/* Clients strip */
.clients { border-block: 1px solid var(--line); }
.clients .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px; padding-block: 22px; }
.clients span { color: var(--ink); font-size: 15px; }
.clients .eyebrow { margin-right: 4px; }

/* Cards with cursor glow */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 28px;
  color: var(--ink); text-decoration: none; overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 155, 255, .16), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: #3A4556; color: var(--ink); }
.card:hover::before { opacity: 1; }
.card p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
.card .card-foot { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--cobalt); display: inline-flex; gap: 8px; align-items: center; }
.card .card-foot .arrow { transition: transform .25s var(--ease-out); }
.card:hover .card-foot .arrow { transform: translateX(5px); }
.card-icon { width: 40px; height: 40px; color: var(--signal); }

/* Priority list */
.prio { border-top: 1px solid var(--line); }
.prio a {
  position: relative; display: grid; grid-template-columns: auto minmax(200px, 1fr) minmax(0, 1.6fr) auto; gap: 8px 28px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.prio a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.prio a:hover::after, .prio a:focus-visible::after { transform: scaleX(1); }
.prio .name { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; transition: transform .35s var(--ease-out); }
.prio a:hover .name { transform: translateX(6px); }
.prio .desc { color: var(--ink-muted); }
.prio .go { color: var(--cobalt); font-size: 22px; transition: transform .3s var(--ease-out); }
.prio a:hover .go { transform: translateX(6px); }
@media (max-width: 760px) {
  .prio a { grid-template-columns: auto 1fr; }
  .prio .desc { grid-column: 1 / -1; }
  .prio .go { display: none; }
}

.chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--signal); color: var(--on-signal); font: 500 12px/1 var(--font-mono); padding: 6px 12px 6px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--raised); }

/* Live survey + 360 */
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.survey-app { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.app-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.synced { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--font-mono); color: var(--ok); background: rgba(76, 195, 138, .1); padding: 4px 10px; border-radius: var(--r-pill); }
.synced::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 212px; }
.feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--raised-2); border: 1px solid var(--line); border-radius: var(--r-xs); font-size: 14px; }
.feed li.is-new { animation: feed-in .6s var(--ease-out) both; }
.feed .chip { font-size: 11px; padding: 4px 10px 4px 7px; }
.feed .t { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.feed .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.progress-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bar { height: 8px; background: var(--raised-2); border-radius: var(--r-pill); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--p, 64%); background: linear-gradient(90deg, var(--cobalt-deep), var(--cobalt)); border-radius: inherit; transition: width 1.2s var(--ease-out); }
.example-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }

.tour {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 55%, #1E2A3B, #0C1016 70%); cursor: grab; touch-action: pan-y; user-select: none;
}
.tour canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour .tour-ui { position: absolute; inset: auto 0 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; padding: 16px; background: linear-gradient(to top, rgba(12, 16, 22, .85), transparent); }
.tour .hint { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); display: inline-flex; gap: 8px; align-items: center; }
.tour .hint svg { width: 18px; height: 18px; }
.tour .placeholder-note { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); background: rgba(12, 16, 22, .7); padding: 4px 8px; border-radius: var(--r-xs); }

/* Night band */
.band { position: relative; overflow: hidden; background: var(--cobalt-deep); color: #fff; isolation: isolate; }
.band::before {
  content: ""; position: absolute; inset: -50% -10%; z-index: -1;
  background: repeating-linear-gradient(100deg, transparent 0 120px, rgba(255, 255, 255, .06) 120px 122px, transparent 122px 240px);
  animation: band-drift 18s linear infinite;
}
.band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px 56px; align-items: center; padding-block: 72px; }
.band h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; }
.band p { font-size: 17px; line-height: 1.65; color: #E4EAFF; }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; }
.form { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  font: 16px var(--font-sans); color: var(--ink); background: var(--ground); border: 1px solid var(--line-strong); border-radius: var(--r-xs);
  padding: 11px 12px; min-height: 46px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(124, 155, 255, .25); }
.field .err { display: none; color: var(--alert); font-size: 13px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--alert); }
.field.invalid .err { display: block; }
.form .btn { grid-column: 1 / -1; }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--ink-muted); min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.bad { color: var(--alert); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Article / service page body */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 64px; align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; }
.prose h2 { font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-weight: 700; font-size: 19px; line-height: 1.35; font-stretch: 100%; letter-spacing: 0; margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.2em; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--signal); }
.prose strong { color: var(--ink); font-weight: 600; }
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--line); margin-left: 6px !important; }
.steps li { counter-increment: step; position: relative; padding: 0 0 24px 32px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ground); border: 2px solid var(--signal); color: var(--signal); font: 600 13px/24px var(--font-mono); text-align: center; }
.steps li strong { display: block; margin-bottom: 2px; }
.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.aside-card h2 { font-size: 18px; font-stretch: 100%; letter-spacing: 0; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.aside-card li { display: flex; gap: 10px; }
.aside-card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--signal); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-size: 24px; line-height: 1; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 20px; color: var(--ink-soft); max-width: 70ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #090C11; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; padding-block: 56px 32px; }
.footer-brand p { color: var(--ink-muted); font-size: 14px; max-width: 26em; }
.footer-h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; margin-bottom: 12px; font-stretch: 100%; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-list a { color: var(--ink); text-decoration: none; font-size: 15px; }
.footer-list a:hover { color: var(--signal); }
.site-footer .mono { margin-bottom: 10px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.footer-base a { color: var(--ink-muted); }

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; gap: 20px; padding-block: 96px; }
.lost .code { font-family: var(--font-mono); color: var(--signal); }

/* Scroll reveal: only with JS, only when motion is welcome. Content is visible without JS. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .trace .tag { transform-box: fill-box; transform-origin: center; }
  .js .trace.is-in .tag { animation: tag-on .5s var(--ease-out) both; animation-delay: var(--d, 0s); }
  .js .trace.is-in .duct-fill { animation: fill-up 1.4s var(--ease-out) .9s both; transform-box: fill-box; transform-origin: left; }
  .hero h1 .line { display: inline-block; animation: rise .9s var(--ease-out) both; animation-delay: var(--d, 0s); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .band::before { animation: none; }
}

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(76, 195, 138, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(76, 195, 138, 0); } }
@keyframes feed-in { from { opacity: 0; transform: translateY(-10px) scale(.98); background: rgba(255, 209, 0, .12); } to { opacity: 1; transform: none; } }
@keyframes tag-on { 0% { opacity: 0; transform: scale(.6) rotate(-6deg); } 70% { transform: scale(1.06) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes fill-up { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { transform: translateY(.22em); } to { transform: none; } }
@keyframes band-drift { from { transform: translateX(0); } to { transform: translateX(240px); } }

/* Service page hero panel (pages without a custom figure) */
.hero-panel { position: relative; min-height: 280px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(27, 71, 201, .35), transparent 60%), var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--line) 1.2px, transparent 1.4px); background-size: 32px 32px; opacity: .8; }
.hero-panel svg { position: relative; width: 132px; height: 132px; color: var(--cobalt); filter: drop-shadow(0 0 24px rgba(124, 155, 255, .35)); }
.hero-panel-list { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-panel svg { animation: float 6s ease-in-out infinite; }
  .hero-panel-list .chip { animation: tag-on .5s var(--ease-out) both; }
  .hero-panel-list .chip:nth-child(2) { animation-delay: .12s; }
  .hero-panel-list .chip:nth-child(3) { animation-delay: .24s; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.quote-card { border-left: 0; margin: 32px 0; padding: 28px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); }
.quote-card p { font-size: 18px; line-height: 1.6; color: var(--ink); }
.quote-card footer { margin-top: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; list-style: none; padding: 0 !important; margin: 0 0 24px !important; }
.prog-grid li { margin: 0; padding: 18px 20px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font-weight: 600; }
.prog-grid li::marker { content: ""; }
.contact-list { display: grid; gap: 20px; }
.contact-list dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.contact-list dd { margin: 4px 0 0; font-size: 18px; color: var(--ink); }

/* Click-to-load tour embed */
.embed { margin: 32px 0; }
.embed-poster, .embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r-sm); }
.embed-poster { position: relative; cursor: pointer; background: radial-gradient(ellipse at 50% 55%, #1E2A3B, #0C1016 70%) center / cover; color: var(--ink); font: inherit; display: grid; place-items: center; align-content: center; gap: 14px; padding: 16px; }
.embed-play { width: 72px; height: 72px; border-radius: 50%; background: var(--signal); color: var(--ground); display: grid; place-items: center; transition: transform .25s var(--ease-out); }
.embed-play svg { width: 30px; height: 30px; margin-left: 4px; }
.embed-poster:hover .embed-play, .embed-poster:focus-visible .embed-play { transform: scale(1.08); }
.embed-label { font-weight: 600; background: rgba(12, 16, 22, .75); padding: 6px 12px; border-radius: var(--r-xs); }
.embed figcaption { margin-top: 10px; }

/* Services hub */
.svc-group { padding-block: 48px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.svc-group:first-child { border-top: 0; }
.svc-group > p { color: var(--ink-soft); max-width: 60ch; margin: 8px 0 24px; }

/* Case studies */
.cases { display: grid; gap: 16px; margin: 8px 0 40px; }
.case { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 24px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 96px; }
.case h3 { font-size: 20px; margin: 0; }
.case p { margin: 0; color: var(--ink-soft); }
.case .case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }
.case a { align-self: flex-start; font-weight: 600; color: var(--cobalt); text-decoration: none; display: inline-flex; gap: 8px; }
.case { overflow: hidden; }
.case-media { display: grid; gap: 8px; margin: -24px -24px 8px; }
.case-media.two { grid-template-columns: 1fr 1fr; }
.case-media img { display: block; width: 100%; height: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.case-media.two img { aspect-ratio: 4 / 3; }
.hero-photo { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
