/* Grey Lines Rental Equipments. Direction: the garage.
   A bright studio by default (dark is one click away). Machines stand on a gridded floor under brand-blue light,
   every machine has a full screen of its own with its figures read out around it, and the chrome is cut square:
   hairlines, right angles, one cut corner on the main action. Blue is the only accent. */
:root {
  --bg: #f3f4f6; --s1: #fff; --s2: #e8ebee;
  --line: rgba(11, 16, 22, .11); --line2: rgba(11, 16, 22, .24);
  --tx: #0b1016; --tx2: #4a5461; --tx3: #77818d;
  --blue: #1873b0; --blue-hi: #1668a3; --blue-soft: rgba(27, 125, 190, .08);
  --glow: 27, 125, 190; --ga: .3;
  --grid: rgba(11, 16, 22, .2); --floor: rgba(11, 16, 22, .26); --mshadow: rgba(11, 16, 22, .26); --refl: .12;
  --hbg: rgba(243, 244, 246, .88);
  --cut: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: light;
}
[data-theme="dark"], .dk {
  --bg: #07090c; --s1: #0d1116; --s2: #141a21;
  --line: rgba(255, 255, 255, .1); --line2: rgba(255, 255, 255, .22);
  --tx: #f3f5f7; --tx2: #a7b0bb; --tx3: #6d7783;
  --blue-hi: #56b0ee; --blue-soft: rgba(86, 176, 238, .1);
  --ga: .5; --grid: rgba(130, 190, 240, .2); --floor: rgba(150, 205, 250, .3); --mshadow: rgba(0, 0, 0, .5); --refl: .2;
  --hbg: rgba(7, 9, 12, .86);
  color-scheme: dark;
}
.dk { background: var(--bg); color: var(--tx); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 99; padding: 12px 16px; background: var(--tx); color: var(--bg); }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: 1344px; margin-inline: auto; padding-inline: 32px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.7vw, 54px); }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--tx2); text-wrap: pretty; }
/* readout type: small capitals in mono, used for every label, index and tag */
.label, .no, .crumb, .g-tag, .tags li, .readout dt, .gauge-s, .fdiv-n, .result, .rval, .rscale i, .lu-list span, .foot h2, .foot-bar, .cside dt, .rnote, .dr-n, .q-items small { font: 400 11.5px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--tx3); }
.label { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--tx2); }
/* signature: the slanted stroke of the GL mark, in front of every section label */
.label::before { content: ""; flex: none; width: 14px; height: 10px; background: var(--blue); transform: skewX(-30deg); }
.muted { color: var(--tx3); font-size: 14.5px; margin-top: 16px; }
.arr { flex: none; transition: transform .3s var(--ease); }
a:hover > .arr, button:hover > .arr { transform: translateX(4px); }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-hi); font-weight: 500; }
.link { color: var(--tx2); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--tx); }

/* ---------- controls: square, with one cut corner on the main action ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; font-weight: 500; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; border: 1px solid transparent; transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; }
.btn-pri { background: var(--blue); color: #fff; padding-right: 28px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
.btn-pri:hover { background: #125d90; }
.btn-pri:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #fff; }
.btn-pri[aria-pressed="true"] { background: var(--tx); color: var(--bg); }
.btn-line { border-color: var(--line2); }
.btn-line:hover { border-color: var(--tx); }
.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line2); color: var(--tx2); transition: color .25s, border-color .25s; }
.icon-btn:hover { color: var(--tx); border-color: var(--tx); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line2); }
.seg button { height: 42px; padding: 0 14px; font-size: 14px; color: var(--tx2); white-space: nowrap; transition: background-color .25s, color .25s; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button[aria-pressed="true"] { background: var(--tx); color: var(--bg); }
.field { width: 100%; height: 50px; padding: 0 16px; background: var(--s1); border: 1px solid var(--line2); transition: border-color .2s; }
textarea.field { height: auto; padding: 14px 16px; resize: vertical; }
.field:hover { border-color: var(--tx3); }
.field:focus { outline: none; border-color: var(--blue-hi); box-shadow: inset 0 0 0 1px var(--blue-hi); }
.field::placeholder { color: var(--tx3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tags li { padding: 6px 10px; border: 1px solid var(--line2); color: var(--tx2); }
/* corner brackets */
.hud { position: relative; }
.hud::after { content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--blue-hi); --s: 14px; background:
  linear-gradient(var(--c), var(--c)) 0 0 / var(--s) 1px, linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--s),
  linear-gradient(var(--c), var(--c)) 100% 0 / var(--s) 1px, linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--s),
  linear-gradient(var(--c), var(--c)) 0 100% / var(--s) 1px, linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--s),
  linear-gradient(var(--c), var(--c)) 100% 100% / var(--s) 1px, linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--s);
  background-repeat: no-repeat; }
/* lit surfaces: in the dark a soft light follows the pointer. On white it read as a blue stain, so light mode
   keeps to the blue rule and the lift of the machine. */
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--glow), .16), transparent 65%); pointer-events: none; }
[data-theme="dark"] .spot:hover::before { opacity: 1; }

/* ---------- the stage: gridded floor, turntable ring, machine and its reflection ---------- */
.floor { position: absolute; left: 50%; width: 170%; height: 380px; transform: translateX(-50%); z-index: -2; overflow: hidden; pointer-events: none; perspective: 560px; -webkit-mask-image: radial-gradient(52% 100% at 50% 0%, #000 12%, transparent 76%); mask-image: radial-gradient(52% 100% at 50% 0%, #000 12%, transparent 76%); }
.floor::before { content: ""; position: absolute; inset: 0 -10% -160%; transform-origin: 50% 0; transform: rotateX(66deg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 80px 80px; background-position: 50% 0; }
.ring { position: absolute; left: 50%; width: min(86%, 780px); aspect-ratio: 7 / 1; transform: translate(-50%, -52%); z-index: -1; border: 1px solid rgba(var(--glow), .55); border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, var(--floor), transparent 78%); }
.ring::before { content: ""; position: absolute; inset: 14% 9%; border: 1px dashed rgba(var(--glow), .5); border-radius: 50%; }
.m, .refl { object-fit: contain; object-position: center bottom; }
.m { filter: drop-shadow(0 22px 18px var(--mshadow)); }
.refl { position: absolute; transform: scaleY(-1); opacity: var(--refl); -webkit-mask-image: linear-gradient(to top, #000, transparent 26%); mask-image: linear-gradient(to top, #000, transparent 26%); pointer-events: none; }

/* ---------- header: one quiet bar. Over the home film it is clear with white type; it turns solid once the page scrolls ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--hbg); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); view-transition-name: top; transition: background-color .3s, border-color .3s; }
[data-page="home"] .top:not(.stuck) { --tx: #fff; --tx2: rgba(255, 255, 255, .84); --bg: #0b1016; --line2: rgba(255, 255, 255, .36); background: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top-in { height: 68px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand { justify-self: start; }
.brand img { height: 34px; width: auto; }
[data-theme="dark"] .brand img, [data-page="home"] .top:not(.stuck) .brand img { filter: brightness(0) invert(1); }
.nav { display: flex; height: 68px; justify-self: start; margin-left: 16px; }
.nav a { position: relative; display: grid; place-items: center; padding: 0 16px; font-size: 15px; font-weight: 500; color: var(--tx2); transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--tx); }
.nav a[aria-current] { color: var(--tx); }
.nav a[aria-current]::after { transform: none; }
/* the console on the right: who to call, the light switch, and the quote dock */
.top-r { justify-self: end; display: flex; align-items: center; }
/* call: a handset. The number is not printed in the bar; it slides out when the handset is pointed at or focused */
.tel { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border: 1px solid transparent; color: var(--tx2); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .25s, border-color .25s; }
.tel span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s var(--ease), margin-left .45s var(--ease), opacity .3s; }
.tel:hover, .tel:focus-visible { color: var(--tx); border-color: var(--line2); }
.tel:hover span, .tel:focus-visible span { max-width: 160px; margin-left: 10px; opacity: 1; }
/* light switch: the block slides under the sun or the moon */
.theme { position: relative; display: grid; grid-template-columns: 26px 26px; place-items: center; height: 28px; margin: 0 16px 0 8px; border: 1px solid var(--line2); color: var(--tx2); }
.theme i { position: absolute; left: 0; top: 0; width: 26px; height: 26px; background: var(--tx); transition: transform .35s var(--ease); }
.theme svg { position: relative; transition: color .25s; }
:root:not([data-theme="dark"]) .theme svg:first-of-type, [data-theme="dark"] .theme svg:last-of-type { color: var(--bg); }
[data-theme="dark"] .theme i { transform: translateX(26px); }
/* quote dock: the machines on the list stand in it, and it counts them */
.dock { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px 0 16px; background: var(--tx); color: var(--bg); font-weight: 500; font-size: 14.5px; white-space: nowrap; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); transition: background-color .25s, color .25s; }
.dock:hover { background: var(--blue); color: #fff; }
.dock:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--blue-hi); }
.dock-m { flex: none; display: flex; align-items: flex-end; }
.dock-m:empty { display: none; }
.dock-m img { width: 34px; height: 26px; margin-right: -4px; object-fit: contain; object-position: center bottom; }
.dock-m img:last-child { margin-right: 2px; animation: pop .4s var(--ease); }
.dock-n { padding-left: 10px; border-left: 1px solid; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; opacity: .7; }
.top .icon-btn { border-color: transparent; }
.top .icon-btn:hover { border-color: var(--line2); }
.menu-btn { display: none; align-content: center; gap: 5px; }
.menu-btn i { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
#view { min-height: 70vh; outline: none; }

/* ---------- home hero: the showreel (or its still) fills the screen, always dark ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(100svh, 640px); display: flex; align-items: flex-end; padding: 132px 0 72px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 9, 12, .55) 0%, rgba(7, 9, 12, .14) 28%, rgba(7, 9, 12, .66) 58%, rgba(7, 9, 12, .92) 100%); }
.hero .label { color: rgba(255, 255, 255, .86); }
.hero h1 { font-weight: 600; font-size: clamp(42px, min(7.4vw, 12.4vh), 116px); letter-spacing: -.05em; line-height: .96; }
.hero .lede { max-width: 46ch; margin: 28px 0 32px; color: rgba(255, 255, 255, .86); animation: fade 1s .4s ease both; }
.hero .actions { animation: fade 1s .5s ease both; }
.ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.ln > span { display: block; animation: up 1s var(--ease) both; }
.ln + .ln > span { animation-delay: .09s; }
@keyframes up { from { transform: translateY(105%); } }
.g-light { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
@keyframes fade { from { opacity: 0; } }

/* ---------- sections ---------- */
.sec { padding-block: 128px; }
.sec-tight { padding-block: 80px; }
.nopad-t { padding-top: 0; }
.alt { background: var(--s1); border-block: 1px solid var(--line); }
.pad-b { padding-bottom: 40px; }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.sec-h h2 { max-width: 17ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.split h2 + .lede, .split .lede + p { margin-top: 20px; }
.split p:not(.lede):not(.label) { color: var(--tx2); }
.split .more { margin-top: 28px; }
.stick { position: sticky; top: 120px; }

/* figures */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line2); }
.stats > div { padding: 24px 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dd { font-weight: 500; font-size: clamp(48px, 6.2vw, 92px); letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd small { margin-left: 8px; font: 400 .24em/1 var(--mono); letter-spacing: 0; color: var(--tx3); }
.stats dd small.plus { margin-left: 2px; font: 500 .62em/1 var(--font); color: inherit; vertical-align: .32em; } /* client: a bigger + on 35+ */
.stats dt { margin-top: 14px; color: var(--tx2); }

/* divisions: one ruled grid, two halves over three thirds */
.divs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line2); border-left: 1px solid var(--line); }
.tile { grid-column: span 2; min-height: 400px; padding: 24px 28px 28px; overflow: hidden; display: flex; flex-direction: column; gap: 28px; background: var(--s1); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.t0, .t1 { grid-column: span 3; min-height: 460px; }
.tile::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tile:hover::after { transform: none; }
.tile-t { display: grid; gap: 10px; justify-items: start; position: relative; z-index: 1; }
.tile-t b { font-weight: 500; font-size: 27px; letter-spacing: -.03em; line-height: 1.08; max-width: 12ch; }
.tile-t small { color: var(--tx2); font-size: 15px; max-width: 24ch; }
.t0 .tile-t b, .t1 .tile-t b { font-size: clamp(30px, 3vw, 42px); }
.tile-f { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; color: var(--tx2); position: relative; z-index: 1; transition: color .3s; }
.tile-f > span:last-child { display: inline-flex; align-items: center; gap: 8px; }
.tile:hover .tile-f > span:last-child { color: var(--blue-hi); }
.tile:hover .arr { transform: translateX(4px); }
.tile-m { position: absolute; right: 2%; bottom: 6%; height: 50%; width: auto; max-width: 78%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 18px 14px var(--mshadow)); transition: transform .7s var(--ease); }
.t0 .tile-m, .t1 .tile-m { height: 57%; max-width: 58%; right: 4%; }
.tile:hover .tile-m { transform: translateX(-10px) scale(1.04); }

/* reach finder */
.reach { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; padding: 56px; border: 1px solid var(--line); background: var(--s1); }
.reach .lede { margin-top: 16px; max-width: 30ch; }
#reach-out { display: block; margin-top: 40px; font-weight: 500; font-size: clamp(88px, 11vw, 168px); letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
#reach-out small { margin-left: 10px; font: 400 .2em/1 var(--mono); letter-spacing: 0; color: var(--tx3); }
#reach-in { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: 380px; height: 28px; margin-top: 28px; background: transparent; cursor: grab; }
#reach-in::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--blue) var(--p, 35%), var(--line2) var(--p, 35%)); }
#reach-in::-moz-range-track { height: 4px; background: var(--line2); }
#reach-in::-moz-range-progress { height: 4px; background: var(--blue); }
#reach-in::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 28px; margin-top: -12px; background: var(--tx); border: 0; border-radius: 0; }
#reach-in::-moz-range-thumb { width: 14px; height: 28px; background: var(--tx); border: 0; border-radius: 0; }
.reach-n { margin-top: 24px; color: var(--tx2); font-size: 14.5px; max-width: 40ch; min-height: 3.1em; }
.reach-r { align-self: center; display: grid; }
.rrow, .rscale { display: grid; grid-template-columns: 230px minmax(0, 1fr) 80px; align-items: center; gap: 20px; }
.rrow { padding: 14px 0; border-top: 1px solid var(--line); transition: opacity .4s; }
.rwho { display: flex; align-items: center; gap: 14px; }
.rwho img { width: 68px; height: 52px; object-fit: contain; flex: none; transition: transform .4s var(--ease); }
.rrow:hover .rwho img { transform: scale(1.1); }
.rwho b { display: block; font-weight: 500; letter-spacing: -.01em; }
.rwho small { color: var(--tx3); font-size: 13.5px; }
.track { position: relative; height: 8px; background: var(--line); }
.rrow .track i { position: absolute; top: 0; bottom: 0; left: calc(var(--a) / var(--max) * 100%); width: calc((var(--b) - var(--a)) / var(--max) * 100%); background: var(--blue); transition: background-color .4s; }
/* one marker line, drawn row by row so it lines up with every track */
.rrow .track::after { content: ""; position: absolute; top: -37px; bottom: -37px; left: calc(var(--h, 24) / var(--max) * 100%); width: 1px; background: var(--tx); opacity: .55; transition: left .15s linear; }
.rval { color: var(--tx2); text-align: right; white-space: nowrap; }
.rnote { font-size: 10.5px; }
.rrow.off { opacity: .34; }
.rrow.off .track i { background: var(--tx3); }
.rscale { padding-bottom: 14px; }
.rscale .track { height: 14px; background: none; }
.rscale i { position: absolute; left: calc(var(--v) / var(--max) * 100%); transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.rscale i:first-child { transform: none; }
.rscale i:last-child { transform: translateX(-100%); }

/* projects band: full bleed, always dark */
.band { position: relative; isolation: isolate; overflow: hidden; padding: 104px 0 64px; }
.band-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 9, 12, .94) 0%, rgba(7, 9, 12, .62) 30%, rgba(7, 9, 12, .22) 54%, rgba(7, 9, 12, .92) 90%); }
.band-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; min-height: 420px; }
.band-in h2 { max-width: 16ch; font-size: clamp(36px, 4.6vw, 68px); }
.projs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.proj { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; isolation: isolate; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.proj:hover img { transform: scale(1.06); }
.proj::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(7, 9, 12, .86)); }
.proj-t { position: absolute; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 6px; }
.proj-t .no { color: rgba(255, 255, 255, .7); }
.proj-t b { font-weight: 500; font-size: 24px; letter-spacing: -.03em; line-height: 1.1; }

/* services, team, clients */
.svc > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); padding: 30px 0; border-top: 1px solid var(--line2); }
.svc > li:last-child { border-bottom: 1px solid var(--line2); }
.svc .no { padding-top: 8px; color: var(--blue-hi); }
.svc h3, .svc h2 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; line-height: 1.12; }
.svc p { grid-column: 2; margin-top: 10px; color: var(--tx2); max-width: 54ch; }
.team img { width: 100%; aspect-ratio: 16 / 7.4; object-fit: cover; object-position: center 82%; }
/* text beside a whole, uncropped photo */
.team-s, .fac { align-items: center; }
.team-s > img, .fac > img { width: 100%; }
/* the team photo has a ragged white strip along its top edge: trim it, keep everyone in frame */
.team-s > img { aspect-ratio: 3 / 2; object-fit: cover; object-position: center bottom; }
.team-s .lede + .label { margin: 40px 0 14px; }
.team-s .tags { margin-top: 0; }
.marq { display: flex; overflow: hidden; }
.marq ul { display: flex; align-items: center; gap: 24px; padding-right: 24px; flex: none; animation: marq 80s linear infinite; will-change: transform; }
.marq:hover ul { animation-play-state: paused; }
.marq img { width: auto; max-width: none; }
@keyframes marq { to { transform: translateX(-100%); } }
/* the same strip carrying photos */
.marq.pics { margin-top: 56px; }
.pics ul { gap: 8px; padding-right: 8px; animation-duration: 60s; }
.pics img { height: clamp(200px, 24vw, 320px); }

/* clients: an always-dark band. The logos are white marks made by tools/build-images.py:
   one slow line on the home page, a ruled grid of all of them on About. */
.band-c { padding-block: 112px; }
.marks { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marks ul { gap: 40px; padding-right: 40px; animation-duration: 110s; }
.marks img { height: 96px; opacity: .8; transition: opacity .3s; }
.marks li:hover img { opacity: 1; }
.clients { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--line2); border-left: 1px solid var(--line); }
.clients li { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .3s; }
.clients li::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.clients li:hover { background: rgba(255, 255, 255, .04); }
.clients li:hover::after { transform: none; }
.clients img { width: 96%; height: auto; opacity: .8; transition: opacity .3s, transform .5s var(--ease); }
.clients li:hover img { opacity: 1; transform: scale(1.04); }
/* the marks arrive one after another when the grid scrolls in */
.clients.rv li { opacity: 0; }
.clients.rv.in li { opacity: 1; transition: opacity .5s ease calc(var(--i) * 20ms); }

/* closing panel */
.cta { position: relative; overflow: hidden; padding: 104px max(32px, calc((100vw - 1280px) / 2)) 0; min-height: 580px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(60% 90% at 88% 100%, #2f9be0, transparent 62%), linear-gradient(140deg, #0c3f66, #1b7dbe 75%); }
.cta-in { max-width: 720px; }
.cta h2 { font-size: clamp(40px, 5.4vw, 80px); letter-spacing: -.045em; }
.cta p { margin: 20px 0 32px; font-size: 19px; color: rgba(255, 255, 255, .84); max-width: 40ch; }
.cta .btn-pri { background: #fff; color: #0b1016; }
.cta .btn-pri:hover { background: #e6eef5; }
.cta .btn-line, .hero .btn-line { border-color: rgba(255, 255, 255, .5); }
.cta .btn-line:hover, .hero .btn-line:hover { border-color: #fff; }
.cta-line { align-self: flex-end; width: min(1040px, 86%); margin: 24px -8px 0 0; filter: drop-shadow(0 20px 20px rgba(4, 22, 38, .45)); }

/* ---------- footer: always dark ---------- */
.foot { padding: 88px 0 32px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 48px; }
.foot-brand img { width: 104px; }
.foot-brand p { margin-top: 20px; color: var(--tx3); max-width: 28ch; font-size: 14.5px; }
.foot h2 { margin-bottom: 18px; }
.foot li { color: var(--tx2); font-size: 14.5px; padding: 5px 0; }
.foot li a { transition: color .2s; }
.foot li a:hover { color: var(--tx); }
.foot-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- inner pages ---------- */
.phead { position: relative; isolation: isolate; padding: 180px 0 64px; }
.phead::before { content: ""; position: absolute; inset: 0 0 -120px; z-index: -1; background: radial-gradient(56% 78% at 50% 0%, rgba(var(--glow), calc(var(--ga) * .7)), transparent 72%); pointer-events: none; }
.phead h1 { font-weight: 600; font-size: clamp(42px, 6.4vw, 96px); letter-spacing: -.05em; line-height: .98; max-width: 15ch; animation: fade .9s ease both; }
.phead-b { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 28px; }
.phead .lede { max-width: 54ch; }
.phead + .sec-tight { padding-top: 16px; }
/* with a photo: it fades to the page colour behind the text and along the bottom */
.phead.ban { padding-top: 240px; }
.phead-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.phead.ban::before { inset: 0; background: linear-gradient(0deg, var(--bg) 2%, transparent 60%), linear-gradient(90deg, var(--bg) 22%, transparent 88%); opacity: .96; }

/* fleet: tabs, then one ruled grid per division */
.finder { margin-bottom: 64px; }
.chips { display: flex; gap: 28px; border-bottom: 1px solid var(--line2); overflow-x: auto; scrollbar-width: none; }
.chips button { position: relative; flex: none; height: 52px; padding: 0; color: var(--tx2); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: color .25s; }
.chips button::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.chips button:hover { color: var(--tx); }
.chips button[aria-pressed="true"] { color: var(--tx); }
.chips button[aria-pressed="true"]::after { transform: none; }
.search { flex: none; width: 280px; padding-left: 44px; background: var(--s1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2377818d' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5 14 14'/%3E%3C/svg%3E") 16px 50% no-repeat; }
.fdiv { margin-top: 96px; scroll-margin-top: 104px; }
#chart { --max: 70; } /* = REACH_MAX in app.js */
#clients { scroll-margin-top: 72px; }
.fdiv:first-child { margin-top: 0; }
.fdiv > header, .pblock > header { display: flex; align-items: baseline; gap: 24px; padding-bottom: 24px; }
.fdiv > header .no, .pblock .no { color: var(--blue-hi); font-size: 13px; }
.fdiv h2 { font-size: clamp(28px, 3vw, 42px); }
.fdiv header p { color: var(--tx2); margin-top: 8px; }
.fdiv-n { margin-left: auto; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line2); border-left: 1px solid var(--line); }
.unit { aspect-ratio: 1 / 1.02; overflow: hidden; background: var(--s1); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.unit::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); pointer-events: none; }
.unit:hover::after { transform: none; }
.unit > a { position: absolute; inset: 0; padding: 20px 22px; }
.unit-t { padding-right: 44px; }
.unit h3 { font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.unit small { display: block; margin-top: 6px; font: 400 12px/1.3 var(--mono); color: var(--tx2); }
.unit-st { position: absolute; inset: 88px 28px 30px; }
.unit-st::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -10px; height: 20px; z-index: -1; background: radial-gradient(closest-side, var(--floor), transparent); opacity: .7; }
.unit-st img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 14px 10px var(--mshadow)); transition: transform .6s var(--ease); }
.unit:hover .unit-st img { transform: translateY(-6px) scale(1.05); }
.add { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--s1); transition: background-color .25s, border-color .25s, color .25s; }
.add:hover { border-color: var(--tx); }
.add path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.add .c, .add[aria-pressed="true"] .p { display: none; }
.add[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.add[aria-pressed="true"] .c { display: block; }
.add[aria-pressed="true"] svg { animation: pop .35s var(--ease); }
.also { color: var(--tx2); margin-top: 20px; }
.result { margin: 0 0 24px; }
.also a, .result a { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the garage: one machine, one screen ---------- */
.garage { position: relative; isolation: isolate; overflow: hidden; min-height: max(100svh, 760px); padding-top: 68px; display: grid; grid-template-columns: 100%; grid-template-rows: 1fr auto; }
.g-light { background: radial-gradient(40% 50% at 52% 60%, rgba(var(--glow), var(--ga)), transparent 72%), linear-gradient(180deg, var(--bg) 40%, var(--s1)); }
.g-in { display: grid; grid-template-columns: 288px minmax(0, 1fr) 288px; gap: 32px; padding-block: 36px 28px; }
.g-l, .g-r { align-self: center; }
.crumb { display: flex; gap: 10px; }
.crumb a:hover { color: var(--tx); }
.g-l h1 { margin-top: 20px; font-weight: 600; font-size: clamp(38px, 3.9vw, 58px); letter-spacing: -.045em; line-height: 1; }
.g-l .lede { margin-top: 18px; font-size: 16px; }
.readout { margin-top: 28px; border-bottom: 1px solid var(--line2); }
.readout > div { padding: 16px 0 18px; border-top: 1px solid var(--line2); }
.readout dd { margin-top: 6px; font-weight: 500; font-size: clamp(34px, 3.2vw, 46px); letter-spacing: -.045em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.readout dd.sm { font-size: 17px; letter-spacing: -.01em; line-height: 1.35; white-space: normal; }
.gauge { position: relative; height: 10px; margin-top: 14px; background: repeating-linear-gradient(90deg, var(--line2) 0 4px, transparent 4px 7px); }
.gauge i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--blue) 0 4px, transparent 4px 7px); clip-path: inset(0 calc(100% - var(--b)) 0 var(--a)); animation: gauge .9s .25s var(--ease) both; }
[data-theme="dark"] .gauge i { background: repeating-linear-gradient(90deg, var(--blue-hi) 0 4px, transparent 4px 7px); }
@keyframes gauge { from { clip-path: inset(0 calc(100% - var(--a)) 0 var(--a)); } }
.gauge-s { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; }
.g-stage { min-height: 400px; }
.g-stage .m, .g-stage .refl { left: 28px; width: calc(100% - 56px); height: calc(100% - 140px); }
.g-stage .m { position: absolute; top: 56px; view-transition-name: machine; animation: fade .5s ease both; }
.g-stage .refl { top: calc(100% - 84px); }
.g-stage .floor { top: calc(100% - 148px); }
.g-stage .ring { top: calc(100% - 84px); }
.g-tag { position: absolute; z-index: 2; }
.g-tag.tl { top: 14px; left: 18px; color: var(--blue-hi); }
.g-tag.tr { top: 14px; right: 18px; }
.g-tag.bl { bottom: 14px; left: 18px; }
.g-tag.br { bottom: 14px; right: 18px; }
.g-r { display: grid; gap: 12px; }
.panel { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); background: var(--s1); }
.panel .label { margin-bottom: 6px; }
.panel .tags { margin-top: 0; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thumbs button { aspect-ratio: 1; padding: 5px; border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.thumbs button:hover { border-color: var(--tx3); }
.thumbs button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.lineup { border-top: 1px solid var(--line2); background: var(--s1); }
.lineup-in { display: flex; height: 108px; }
.lu-arrow { flex: none; width: 64px; display: grid; place-items: center; border-inline: 1px solid var(--line); color: var(--tx2); transition: background-color .25s, color .25s; }
.lu-arrow:hover { background: var(--blue); color: #fff; }
.lu-list { flex: 1; display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.lu-list a { position: relative; flex: 1 1 0; min-width: 84px; display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 14px 8px 12px; border-right: 1px solid var(--line); transition: background-color .25s; }
.lu-list img { width: 100%; height: 100%; min-height: 0; object-fit: contain; opacity: .6; transition: opacity .25s, transform .4s var(--ease); }
.lu-list span { display: block; font-size: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-list a:hover { background: var(--blue-soft); }
.lu-list a:hover img { opacity: 1; transform: scale(1.06); }
.lu-list a[aria-current] { background: var(--blue-soft); box-shadow: inset 0 2px 0 var(--blue); }
.lu-list a[aria-current] img { opacity: 1; }
.lu-list a[aria-current] span { color: var(--tx); }
.mspec { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.mspec h2 { font-size: 30px; margin-bottom: 20px; }
.mspec .lede + .more { margin-top: 24px; }
.spec { width: 100%; border-collapse: collapse; }
.spec tr { border-top: 1px solid var(--line); }
.spec tr:last-child { border-bottom: 1px solid var(--line); }
.spec th { width: 42%; padding: 16px 16px 16px 0; text-align: left; font-weight: 400; color: var(--tx2); vertical-align: top; }
.spec td { padding: 16px 0; }
.rows > div { padding: 18px 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 500; }
.rows dd { margin-top: 4px; color: var(--tx2); }

/* services, projects, about */
.big-list li { padding: 18px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: clamp(30px, 4vw, 58px); letter-spacing: -.04em; line-height: 1.05; color: var(--tx3); transition: color .3s, padding-left .4s var(--ease); }
.big-list li:last-child { border-bottom: 1px solid var(--line); }
.big-list li:hover { color: var(--tx); padding-left: 12px; }
.pblock { margin-top: 96px; }
.pblock:first-child { margin-top: 0; }
.pblock h2 { font-size: clamp(34px, 4.4vw, 64px); }
.gal { --gh: 260px; display: flex; flex-wrap: wrap; gap: 8px; }
.gal button { flex: var(--ar) 1 calc(var(--ar) * var(--gh)); max-width: calc(var(--ar) * var(--gh) * 1.7); height: var(--gh); overflow: hidden; cursor: zoom-in; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal button:hover img { transform: scale(1.05); }
.about-t { margin-top: 72px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; }
.vm article { min-height: 340px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; background: var(--s1); border: 1px solid var(--line); overflow: hidden; }
.vm article:first-child { color: #fff; border-color: transparent; background: radial-gradient(80% 90% at 100% 100%, #2f9be0, transparent 62%), linear-gradient(140deg, #0c3f66, #1b7dbe 80%); }
.vm article:first-child .label { color: rgba(255, 255, 255, .8); }
.vm article:first-child .label::before { background: #fff; }
.vm article > p:last-child { font-weight: 500; font-size: clamp(26px, 2.7vw, 38px); letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; }
/* assurances: four ruled columns */
.assure { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line2); }
.assure li { padding: 24px 24px 0; border-left: 1px solid var(--line); }
.assure li:first-child { padding-left: 0; border-left: 0; }
.assure .no { color: var(--blue-hi); }
.assure h2 { margin: 28px 0 10px; font-size: 22px; letter-spacing: -.025em; line-height: 1.15; }
.assure p { color: var(--tx2); }

/* contact */
.cgrid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.form { padding: 40px; border: 1px solid var(--line); background: var(--s1); }
.form fieldset { border: 0; padding: 0; margin-bottom: 36px; min-width: 0; }
.form legend { padding: 0; margin-bottom: 16px; font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.form .more { margin-top: 16px; }
.form .seg { display: inline-grid; }
.form .field { background: var(--bg); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { display: grid; gap: 8px; font-size: 14px; color: var(--tx2); }
.fields .full { grid-column: 1 / -1; }
.cside > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 12px; }
.cside dd a:not(.more) { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.cside dd { color: var(--tx); margin-top: 6px; }
.cside .more { margin-top: 8px; font-size: 14.5px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-weight: 500; font-size: 20px; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--tx3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 24px; color: var(--tx2); max-width: 60ch; }

/* quote list: a panel that slides in from the right over the dimmed page */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(7, 9, 12, .55); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 61; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--s1); border-left: 1px solid var(--line2); outline: none; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.dr-h { flex: none; display: flex; align-items: center; gap: 12px; height: 68px; padding: 0 16px 0 28px; border-bottom: 1px solid var(--line); }
.dr-h h2 { font-size: 22px; letter-spacing: -.025em; line-height: 1; }
.dr-n { padding-top: 4px; }
.dr-h .icon-btn { margin-left: auto; border-color: transparent; }
.dr-h .icon-btn:hover, .q-x:hover { border-color: var(--line2); }
.dr-b { flex: 1; overflow: auto; display: grid; padding: 4px 28px; }
.dr-f { flex: none; display: grid; gap: 12px; padding: 20px 28px 28px; border-top: 1px solid var(--line); }
.dr-f .label { margin: 0; }
.q-items { align-self: start; }
.q-items li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); animation: fade .4s ease; }
.q-items img { width: 72px; height: 52px; object-fit: contain; }
.q-items a { display: block; font-weight: 500; transition: color .2s; }
.q-items a:hover { color: var(--blue-hi); }
.q-items small { display: block; margin-top: 4px; font-size: 10.5px; }
.q-x { width: 32px; height: 32px; border-color: transparent; }
/* empty list: the plus from the machine cards, so the gesture is learned here */
.q-empty { place-self: center; display: grid; justify-items: center; gap: 20px; max-width: 280px; text-align: center; }
.q-empty .add { position: static; pointer-events: none; }
.q-empty b { display: block; margin-bottom: 6px; font-weight: 500; font-size: 19px; letter-spacing: -.02em; color: var(--tx); }
.q-empty p { color: var(--tx2); font-size: 15px; }
.form .q-empty { place-self: start; display: flex; align-items: center; gap: 16px; max-width: none; text-align: left; }
.form .q-empty .add { flex: none; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 6, 8, .88); }
.lightbox img { max-width: 94vw; max-height: 86vh; }
.lightbox[open], .sheet[open] { animation: zoom .3s var(--ease); }
.lightbox[open]::backdrop, .sheet[open]::backdrop { animation: fade .3s ease; }
/* brochure form: a small sheet in the middle of the screen, built from the quote panel's parts */
.sheet { width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line2); background: var(--s1); color: var(--tx); }
.sheet::backdrop { background: rgba(7, 9, 12, .6); }
.sheet-b { display: grid; gap: 24px; padding: 24px 28px 28px; }
.sheet-b > p { color: var(--tx2); }
.sheet .field { background: var(--bg); }
.hp { position: absolute; left: -9999px; }
.foot li button { color: inherit; font: inherit; transition: color .2s; }
.foot li button:hover { color: var(--tx); }
@keyframes zoom { from { opacity: 0; transform: scale(.96); } }
.lb-close { display: block; margin: 0 0 12px auto; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .4); color: #fff; font-size: 14px; }

/* ---------- motion ---------- */
.rv { opacity: 0; transform: translateY(30px); }
.rv.in { opacity: 1; transform: none; transition: opacity .9s var(--ease) calc(var(--i, 0) * 70ms), transform .9s var(--ease) calc(var(--i, 0) * 70ms); }
/* photos fade in as they load */
img[loading="lazy"].ld { animation: fade .6s ease; }
/* answers open and close smoothly where the browser can animate to an automatic height */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
::view-transition-old(root) { animation: vt-out .2s ease both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
/* small state changes (theme, fleet tab): a plain cross-fade, nothing moves */
[data-dir="soft"]::view-transition-old(root) { animation: vt-out .25s ease both; }
[data-dir="soft"]::view-transition-new(root) { animation: fade .35s ease both; }
::view-transition-group(machine) { animation-duration: .6s; animation-timing-function: var(--ease); }
::view-transition-old(machine), ::view-transition-new(machine) { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
/* stepping through the garage: the screen stays put, the machine drives out and the next drives in */
[data-dir="next"]::view-transition-new(root), [data-dir="prev"]::view-transition-new(root) { animation: fade .3s ease both; }
[data-dir="next"]::view-transition-old(machine) { animation: out-l .3s ease-in both; }
[data-dir="next"]::view-transition-new(machine) { animation: in-r .55s .12s var(--ease) both; }
[data-dir="prev"]::view-transition-old(machine) { animation: out-r .3s ease-in both; }
[data-dir="prev"]::view-transition-new(machine) { animation: in-l .55s .12s var(--ease) both; }
@keyframes out-l { to { transform: translateX(-45%); opacity: 0; } }
@keyframes out-r { to { transform: translateX(45%); opacity: 0; } }
@keyframes in-r { from { transform: translateX(45%); opacity: 0; } }
@keyframes in-l { from { transform: translateX(-45%); opacity: 0; } }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rrow, .rscale { grid-template-columns: 190px minmax(0, 1fr) 76px; }
  .reach { padding: 40px; gap: 40px; }
  .g-in { grid-template-columns: 248px minmax(0, 1fr) 248px; gap: 20px; }
}
@media (max-width: 900px) {
  .wrap { padding-inline: 20px; }
  .sec { padding-block: 88px; }
  .sec-tight { padding-block: 56px; }
  .nopad-t { padding-top: 0; }
  .top-in { height: 60px; grid-template-columns: auto 1fr; gap: 12px; }
  .brand img { height: 26px; }
  .menu-btn { display: grid; }
  .dock-m, .tel { display: none; }
  .theme { margin: 0 12px 0 0; }
  .nav { position: absolute; top: 60px; left: 0; right: 0; height: auto; margin: 0; justify-self: stretch; display: none; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line2); }
  .nav.open { display: flex; }
  .nav a { justify-items: start; padding: 16px 20px; font-size: 18px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .sec-h { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .split, .reach, .mspec, .cgrid, .vm { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .vm { gap: 0; }
  .stick { position: static; }
  .divs { grid-template-columns: 1fr 1fr; }
  .tile { grid-column: span 1; min-height: 300px; padding: 20px; }
  .t0, .t1 { grid-column: span 2; min-height: 340px; }
  .band { padding-top: 72px; }
  .band-in { flex-direction: column; min-height: 320px; }
  .projs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .proj { flex: none; width: min(72vw, 300px); scroll-snap-align: start; }
  .hero { padding: 112px 0 48px; }
  .team img { aspect-ratio: 4 / 3; }
  .assure { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .assure li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .phead.ban { padding-top: 168px; }
  .phead.ban::before { background: linear-gradient(0deg, var(--bg) 25%, transparent 130%); opacity: 1; }
  .cta { padding: 64px 20px 0; min-height: 0; }
  .cta-line { width: 108%; margin: 40px -12% 0 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .phead { padding: 136px 0 48px; }
  .phead-b { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .finder { margin-bottom: 40px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .garage { min-height: 0; padding-top: 60px; }
  .g-light { background: radial-gradient(80% 240px at 50% 320px, rgba(var(--glow), var(--ga)), transparent 72%); }
  .g-in { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 20px 32px; }
  .g-stage { order: -1; height: min(52vh, 420px); min-height: 320px; }
  .g-tag.bl { display: none; }
  .lineup-in { padding-inline: 0; height: 96px; }
  .lu-list a { flex: none; width: 96px; }
  .clients { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .band-c { padding-block: 80px; }
  .nav.open { animation: drop .3s var(--ease); }
  .gal { --gh: 200px; }
}
@media (max-width: 560px) {
  .dock { height: 40px; padding: 0 18px 0 12px; }
  .marks img { height: 72px; }
  .marks ul { gap: 16px; padding-right: 16px; }
  .stats > div { padding: 20px 0 20px; }
  .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .divs { grid-template-columns: 1fr; }
  .t0, .t1 { grid-column: span 1; }
  .tile, .t0, .t1 { min-height: 320px; }
  .tile-m, .t0 .tile-m, .t1 .tile-m { height: 42%; max-width: 70%; right: 2%; }
  .tile-t small { max-width: 22ch; }
  .reach { padding: 28px 20px; }
  .rrow, .rscale { grid-template-columns: minmax(0, 1fr) 72px; gap: 10px 12px; }
  .rrow .rwho, .rscale > span:first-child { grid-column: 1 / -1; }
  .rscale > span:first-child { display: none; }
  .unit { aspect-ratio: 1 / 1.16; }
  .unit > a { padding: 16px; }
  .unit h3 { font-size: 15.5px; }
  .unit-t { padding-right: 36px; }
  .unit-st { inset: 84px 14px 18px; }
  .add { top: 10px; right: 10px; width: 32px; height: 32px; }
  .fdiv > header { flex-wrap: wrap; gap: 8px 16px; }
  .form { padding: 24px 20px; }
  .fields { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 32px; }
  .assure { grid-template-columns: 1fr; row-gap: 0; }
  .assure li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .assure li:first-child { border-top: 0; }
  .vm article { min-height: 260px; padding: 28px; }
  .gal { --gh: 150px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .marq ul { animation: none; }
  .marq { overflow-x: auto; }
}
