/* MIRRORHALL — a detailing house. Racing-green lacquer, mercury white, and two light temperatures. */
:root {
  --ink: #08090a;
  --ink-2: #111315;
  --lacquer: #0e211d;
  --mercury: #e8eaec;
  --mute: #9aa0a6;
  --line: rgba(232, 234, 236, .16);
  --line-2: rgba(232, 234, 236, .32);
  --amber: #ffb468; /* 3200 K */
  --ice: #b3dcff; /* 6500 K */
  --fg: var(--mercury);
  --fg-mute: var(--mute);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --pad: clamp(16px, 2.6vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0; background: var(--ink); color: var(--fg); font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr { 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: fixed; left: 12px; top: -60px; z-index: 50; background: var(--mercury); color: var(--ink); padding: 10px 14px; border-radius: 2px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 70% 40%, rgba(8, 9, 10, .72), rgba(8, 9, 10, .94) 70%); }
.grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ------------------------------------------------------------------ loader */
.load { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--ink); transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
body.go .load { opacity: 0; visibility: hidden; }
.load-mark { width: 54px; height: 54px; color: var(--mercury); opacity: .9; }
.load .tube { width: 180px; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.load .tube i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--amber), #fff 60%, var(--ice)); }
.load .lk { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.load .lk b { color: var(--mercury); font-weight: 500; }

/* ------------------------------------------------------------------ header */
.top { position: fixed; z-index: 20; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad) 0; pointer-events: none; color: var(--fg); transition: color .6s var(--ease), opacity .8s var(--ease);
  opacity: 0; }
body.on .top { opacity: 1; }
.top > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; padding-bottom: 12px;
  border-bottom: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); min-width: min(230px, 30vw); }
.logo svg { width: 22px; height: 22px; }
.logo b { font: 500 15px/1 var(--sans); letter-spacing: -.01em; }
.where { margin: 0 0 12px; font: 400 13px/1 var(--sans); white-space: nowrap; color: var(--fg-mute); }
.where #where-b { color: var(--amber); margin-left: .6em; transition: color .6s; }
.links { justify-self: end; display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; padding-bottom: 12px; }
.links a, .links button { background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; font: 500 13px/1 var(--sans); }
.links a:hover, .links button:hover { color: var(--amber); }
.links .cta { border-bottom: 1px solid currentColor; }

body.light { --fg: #121416; --fg-mute: #4e555b; }
body.light .where #where-b { color: #8a4b12; }
body.light .hud { color: #121416; }
body.light .hud-k i { box-shadow: none; }

/* ------------------------------------------------------------------ index */
.index { position: fixed; inset: 0; z-index: 30; background: rgba(8, 9, 10, .94); display: grid; place-items: center; padding: var(--pad); }
.index[hidden] { display: none; }
.index-in { width: min(760px, 100%); }
.index-k { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; }
.index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: 3.2em 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; text-decoration: none;
  font: 400 clamp(22px, 3.2vw, 34px)/1.15 var(--serif); }
.index a i { font: 500 11px/1 var(--mono); font-style: normal; color: var(--mute); letter-spacing: .1em; }
.index a em { font: 400 13px/1 var(--sans); font-style: normal; color: var(--mute); }
.index a:hover, .index a:focus-visible { color: var(--amber); }
.index-x { margin-top: 22px; background: none; border: 1px solid var(--line-2); padding: 10px 16px; cursor: pointer; border-radius: 2px; }

/* ------------------------------------------------------------------ HUD, hint, sound */
.hud { position: fixed; z-index: 12; left: var(--pad); bottom: 22px; display: flex; gap: 22px; align-items: center;
  font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-mute); opacity: 0; transition: opacity .8s var(--ease), color .6s; }
body.on .hud { opacity: 1; }
body.end .hud { opacity: 0; }
.hud b { color: var(--fg); font-weight: 500; }
.hud em { font-style: normal; margin-left: .6em; color: var(--fg); }
.hud-k { display: inline-flex; gap: 8px; align-items: center; }
.hud-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp, #fff); box-shadow: 0 0 10px var(--lamp, #fff); }
.hint { position: fixed; z-index: 12; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; pointer-events: none;
  font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); opacity: 0; transition: opacity 1s var(--ease); }
body.on .hint { opacity: .8; }
body.past .hint { opacity: 0; }
.snd { position: fixed; z-index: 12; right: var(--pad); bottom: 18px; display: inline-flex; align-items: flex-end; gap: 2px; height: 22px;
  background: none; border: 0; padding: 0 0 2px; cursor: pointer; opacity: 0; transition: opacity .8s var(--ease); color: var(--fg); }
body.on .snd { opacity: .85; }
body.end .snd { opacity: 0; pointer-events: none; }
.snd i { width: 2px; height: 4px; background: currentColor; transition: height .3s; }
.snd[aria-pressed="true"] i { animation: eq 1s ease-in-out infinite alternate; }
.snd i:nth-child(2) { animation-delay: -.3s !important; } .snd i:nth-child(3) { animation-delay: -.6s !important; } .snd i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
.snd span { margin-left: 10px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------------------------ notes pinned to the car */
.notes { position: fixed; inset: 0; z-index: 8; pointer-events: none; }
.note { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 10px; opacity: 0; transition: opacity .45s var(--ease);
  will-change: transform; }
.note.on { opacity: 1; }
.note::before { content: ""; flex: none; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 0 14px rgba(255, 255, 255, .6); }
.note::after { content: ""; position: absolute; left: 6px; top: 0; width: 26px; height: 1px; background: rgba(255, 255, 255, .55); }
.note p { margin: -10px 0 0 26px; max-width: 230px; padding: 9px 12px 10px; background: rgba(8, 9, 10, .78); border: 1px solid rgba(255, 255, 255, .1);
  font: 400 13px/1.4 var(--sans); color: var(--mercury); }
.note p i { font: 500 10px/1 var(--mono); font-style: normal; color: var(--amber); margin-right: 8px; letter-spacing: .08em; }

/* ------------------------------------------------------------------ hall */
.hall { height: 210vh; position: relative; }
.cue { position: sticky; top: calc(100vh - 92px); margin: 0 auto; width: max-content; display: grid; justify-items: center; gap: 10px;
  font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); opacity: 0; transition: opacity 1.2s var(--ease) .4s; }
body.on .cue { opacity: 1; }
body.past .cue { opacity: 0; transition-delay: 0s; }
.cue i { width: 1px; height: 34px; background: linear-gradient(var(--mute), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.nojs { position: relative; z-index: 5; max-width: 520px; margin: 40vh auto 0; text-align: center; }

/* ------------------------------------------------------------------ bays */
.bay { height: 380vh; position: relative; z-index: 5; }
.panel { position: sticky; top: 0; height: 100vh; height: 100svh; width: min(400px, 34vw); margin-left: var(--pad); display: flex; flex-direction: column;
  justify-content: center; padding: 90px 0 80px; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.bay.in .panel { opacity: 1; transform: none; }
.panel::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(-1 * var(--pad)); width: calc(100% + var(--pad) + 18vw);
  background: linear-gradient(90deg, rgba(8, 9, 10, .62), rgba(8, 9, 10, .38) 55%, transparent); pointer-events: none; }
body.light .panel::before { background: linear-gradient(90deg, rgba(236, 238, 240, .72), rgba(236, 238, 240, .42) 55%, transparent); }
.meta { margin: 0 0 18px; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); }
.meta span { color: var(--amber); margin-right: .8em; }
body.light .meta span { color: #8a4b12; }
.panel h2 { margin: 0 0 18px; font: 400 clamp(46px, 5.4vw, 84px)/.92 var(--serif); letter-spacing: -.02em; }
.lead { margin: 0 0 26px; font: 400 clamp(16px, 1.25vw, 19px)/1.45 var(--sans); letter-spacing: -.005em; }
.rates { margin: 0 0 18px; border-top: 1px solid var(--line); }
body.light .rates, body.light .rates div { border-color: rgba(18, 20, 22, .18); }
.rates div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rates dt { color: var(--fg-mute); }
.rates dd { margin: 0; font-variant-numeric: tabular-nums; }
.small { margin: 0 0 22px; font-size: 13px; color: var(--fg-mute); }
.small b { color: var(--fg); font-weight: 500; }
.bk { align-self: flex-start; text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .25s; }
.bk:hover { color: var(--amber); }
body.light .bay, body.light .panel { color: #121416; }
.sw { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.sw button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 7px; border-radius: 99px; cursor: pointer;
  background: rgba(8, 9, 10, .45); border: 1px solid var(--line); font: 500 12px/1 var(--sans); transition: border-color .25s, background .25s; }
.sw button i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.sw button[aria-pressed="true"] { border-color: var(--mercury); background: rgba(232, 234, 236, .1); }
.sw button:hover { border-color: var(--line-2); }

/* ------------------------------------------------------------------ after the bays */
.rules, .works, .desk, .open { position: relative; z-index: 5; padding: clamp(110px, 16vh, 180px) var(--pad); }
.wrap { max-width: 1240px; margin: 0 auto; }
.big { margin: 0 0 30px; font: 400 clamp(46px, 7.4vw, 118px)/.94 var(--serif); letter-spacing: -.025em; }
.big em { font-style: italic; }
.big span { color: var(--amber); }
.intro { max-width: 560px; margin: 0 0 64px; font-size: clamp(16px, 1.3vw, 19px); color: var(--mute); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px clamp(24px, 3vw, 56px); }
.grid article { border-top: 1px solid var(--line); padding-top: 18px; }
.grid h3, .cols h3 { margin: 0 0 10px; font: 500 15px/1.3 var(--sans); }
.grid p, .cols p { margin: 0; color: var(--mute); }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 760px; }
th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 0 12px 14px 0; border-bottom: 1px solid var(--line-2); }
td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { font: 500 12px/1.6 var(--mono); color: var(--mute); width: 4em; }
td.w b { display: block; font: 400 21px/1.2 var(--serif); }
td.w span { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); max-width: 360px; }
th:nth-child(n+3), td:nth-child(n+3) { text-align: right; }
tbody tr { transition: background .25s; }
tbody tr:hover { background: rgba(232, 234, 236, .035); }

.book { display: grid; gap: 26px; max-width: 900px; }
.book fieldset { border: 0; padding: 0; margin: 0; }
.book legend { padding: 0; margin-bottom: 12px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: 2px; }
.seg label { position: relative; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line-2); }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 13px 6px; font-weight: 500; transition: background .2s, color .2s; }
.seg em { display: block; font: 400 11px/1.3 var(--sans); font-style: normal; color: var(--mute); margin-top: 3px; }
.seg input:checked + span { background: var(--mercury); color: var(--ink); }
.seg input:checked + span em { color: #50565c; }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: -2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; border-top: 1px solid var(--line); }
.checks label { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.checks input, .tog input { appearance: none; width: 18px; height: 18px; margin: 0; border: 1px solid var(--line-2); border-radius: 2px; display: grid; place-items: center; cursor: pointer; }
.checks input:checked, .tog input:checked { background: var(--amber); border-color: var(--amber); }
.checks input:checked::after, .tog input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.checks b { font-weight: 500; }
.checks em { font-style: normal; color: var(--mute); font-variant-numeric: tabular-nums; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; align-items: end; }
.fld { display: grid; gap: 8px; }
.fld span { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.fld input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0; color: var(--mercury); font: 400 18px/1.3 var(--sans); border-radius: 0; }
.fld input:focus { outline: none; border-color: var(--amber); }
.fld input[aria-invalid="true"] { border-color: #ff7a6b; }
.fld input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; cursor: pointer; }
.tog { display: flex; gap: 12px; align-items: center; padding: 10px 0; cursor: pointer; }
.tog em { font-style: normal; color: var(--mute); margin-left: .4em; }
.sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sum p { margin: 0; background: var(--ink); padding: 16px 16px 18px; display: grid; gap: 8px; }
.sum span { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.sum b { font: 400 26px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
#total { color: var(--amber); }
.err { margin: 0; color: #ff9b8f; }
.send { justify-self: start; background: var(--mercury); color: var(--ink); border: 0; padding: 16px 28px; font-weight: 600; cursor: pointer; border-radius: 2px; transition: background .25s; }
.send:hover { background: var(--amber); }
.done { border-left: 2px solid var(--amber); padding: 6px 0 6px 18px; }
.done p { margin: 0; font: 400 21px/1.4 var(--serif); }
.next { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; }
.next li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.next b { font: 400 26px/1 var(--serif); color: var(--amber); }
.next p { margin: 0; color: var(--mute); }

.open .big { margin-bottom: 70px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 22px; }
.cols a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot { margin-top: 110px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.foot p { margin: 0 0 10px; max-width: 900px; }
.foot .cred a { color: var(--mercury); text-decoration: none; border-bottom: 1px solid var(--line-2); }

/* ------------------------------------------------------------------ phones */
@media (max-width: 760px) {
  .top { grid-template-columns: 1fr auto; padding-top: 12px; }
  .where { display: none; }
  .logo { min-width: 0; border-bottom: 0; padding-bottom: 0; }
  .links { padding-bottom: 0; gap: 16px; }
  .links a[href="#works"] { display: none; }
  .panel::before { display: none; }
  .links .cta { white-space: nowrap; }
  .panel { width: auto; margin: 0; padding: 0 var(--pad) 70px; justify-content: flex-end;
    background: linear-gradient(to top, rgba(8, 9, 10, .92) 30%, rgba(8, 9, 10, .55) 58%, transparent 74%); }
  body.light .panel { background: linear-gradient(to top, rgba(240, 241, 242, .94) 30%, rgba(240, 241, 242, .6) 58%, transparent 74%); }
  .panel h2 { font-size: 46px; margin-bottom: 12px; }
  .lead { font-size: 15px; margin-bottom: 16px; }
  .rates { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; margin-bottom: 12px; }
  .rates div { padding: 7px 0; }
  .small { display: none; }
  .hud { bottom: 14px; gap: 12px; }
  .hud-r { display: none; }
  .note p { max-width: 170px; font-size: 12px; }
  .grid, .cols, .next { grid-template-columns: 1fr; gap: 28px; }
  .checks, .row2 { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr 1fr; }
  .seg label:nth-child(3) { border-left: 0; }
  .seg label:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .sum { grid-template-columns: 1fr 1fr; }
  .bay { height: 330vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
