/* Riser & Trap Plumbing (Sample). Hand-Painted Sign, cobalt. Yellowtail + Sofia Sans. Single-screen dispatcher. */
@font-face { font-family: "Yellowtail"; src: url("fonts/yellowtail.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sofia Sans"; src: url("fonts/sofia-sans.woff2") format("woff2"); font-weight: 1 1000; font-style: normal; font-display: swap; }

:root {
  --cobalt: #1E3A8A;
  --cobalt-d: #13286A;
  --glass: #141414;
  --glass-2: #1D1D1D;
  --cream: #F4ECD6;
  --cream-2: rgba(244, 236, 214, 0.78);
  --cream-3: rgba(244, 236, 214, 0.28);
  --gold: #D9AE52;
  --gold-d: #8A6A22;
  --ink: #141414;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --sans: "Sofia Sans", "Arial Narrow", Arial, sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --gut: 16px;
  /* type: seven sizes, one per token */
  --f1: 14px; --f2: 16px; --f3: 18px; --f4: 22px; --f5: 30px; --f6: 40px; --f7: 56px;
}
@media (min-width: 900px) {
  :root { --gut: 40px; --f3: 20px; --f4: 28px; --f5: 44px; --f6: 60px; --f7: 96px; }
}
@media (min-width: 1800px) {
  :root { --gut: 56px; --f2: 18px; --f3: 22px; --f4: 32px; --f5: 52px; --f6: 72px; --f7: 116px; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--cobalt);
  color: var(--cream);
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
}
body {
  margin: 0;
  background: var(--cobalt);
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--f2);
  line-height: 1.45;
  font-weight: 450;
  overscroll-behavior-y: none;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, input, select, textarea, label { -webkit-tap-highlight-color: transparent; }
::selection { background: transparent; color: var(--gold); }
[data-tone="cream"] ::selection { color: var(--cobalt); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }

/* tags and buttons */
.tag { display: inline-block; font-size: var(--f1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: 6px 8px 5px; border-radius: 2px; white-space: nowrap; }
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--line { box-shadow: inset 0 0 0 1px currentColor; color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 20px; border: 2px solid var(--cream); border-radius: 2px;
  font-size: var(--f2); font-weight: 800; letter-spacing: .02em; line-height: 1; text-decoration: none; white-space: nowrap;
  background: transparent; color: var(--cream);
  transition: background-color .12s linear, color .12s linear, border-color .12s linear;
}
.btn--call { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--call:hover { background: var(--cream); border-color: var(--cream); }
.btn--line:hover { background: var(--cream); color: var(--ink); }
.btn--wide { width: 100%; }
.txt-link { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--gold); font-weight: 700; }
.txt-link:hover { color: var(--gold); }

/* ---------------- the door: the whole site on one screen ---------------- */
.door {
  position: relative;
  min-height: var(--app-h, 100vh);
  padding: 30px var(--gut) 28px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
  background: var(--cobalt) radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 60%);
  isolation: isolate;
}
.keyline { position: absolute; inset: 14px; border: 1px solid var(--gold); pointer-events: none; z-index: -1; }
.corner { position: absolute; width: 22px; height: 22px; background: var(--cobalt); pointer-events: none; z-index: -1; }
.c-tl { top: 14px; left: 14px; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); border-bottom-right-radius: 22px; }
.c-tr { top: 14px; right: 14px; border-left: 1px solid var(--gold); border-bottom: 1px solid var(--gold); border-bottom-left-radius: 22px; }
.c-bl { bottom: 14px; left: 14px; border-right: 1px solid var(--gold); border-top: 1px solid var(--gold); border-top-right-radius: 22px; }
.c-br { bottom: 14px; right: 14px; border-left: 1px solid var(--gold); border-top: 1px solid var(--gold); border-top-left-radius: 22px; }

.d-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.name { font-family: var(--script); font-weight: 400; font-size: var(--f7); line-height: 1; color: var(--cream); position: relative; display: inline-block; letter-spacing: 0; white-space: nowrap; }
.name-t { display: inline-block; padding: .04em .14em .16em .02em; margin: -.04em -.14em -.16em -.02em; text-shadow: .035em .045em 0 var(--gold-d), .02em .025em 0 var(--gold); }
.swash { position: absolute; left: 4%; right: -2%; bottom: -.02em; width: 98%; height: .16em; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; overflow: visible; }
.swash path { stroke-dasharray: 420; stroke-dashoffset: 0; }
.sub { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: var(--f3); font-weight: 600; color: var(--cream-2); }

.plate { text-align: right; display: grid; justify-items: end; gap: 6px; }
.plate-open { font-family: var(--script); font-size: var(--f4); line-height: 1; color: var(--gold); }
.plate-num { display: inline-block; min-height: 44px; font-size: var(--f6); font-weight: 850; line-height: 1; letter-spacing: -.01em; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 4px; text-underline-offset: 10px; padding-bottom: 12px; white-space: nowrap; }
.plate-num:hover { color: var(--gold); }
.rating { font-size: var(--f1); font-weight: 600; color: var(--cream-2); white-space: nowrap; }

.pick-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rest-btn {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--cream-3); border-radius: 2px; background: transparent;
  font-size: var(--f1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: border-color .12s linear, color .12s linear;
}
.rest-btn:hover { border-color: var(--gold); color: var(--gold); }

.d-board { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 28px; min-height: 0; }
.pick { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.pick-h { font-family: var(--script); font-weight: 400; font-size: var(--f4); line-height: 1.1; color: var(--gold); }
.tiles { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px; min-height: 0; }
.tile {
  position: relative; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: start; align-content: stretch; gap: 6px;
  padding: 16px 16px 16px; text-align: left; background: rgba(19, 40, 106, 0.55); color: var(--cream);
  border: 1px solid var(--cream-3); border-radius: 2px; min-height: 0;
  transition: border-color .1s linear;
}
.tile:hover { border-color: var(--gold); }
.tile-n { font-size: var(--f1); font-weight: 800; letter-spacing: .08em; color: var(--gold); line-height: 1; }
.tile-i { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; align-self: center; }
.tile-l { font-size: var(--f4); font-weight: 850; line-height: 1.05; white-space: nowrap; }
.tile-s { font-size: var(--f1); font-weight: 500; color: var(--cream-2); line-height: 1.25; white-space: nowrap; }
.tile[aria-pressed="true"] { background: var(--cream); color: var(--cobalt); }
.tile[aria-pressed="true"] .tile-n { color: var(--cobalt); }
.tile[aria-pressed="true"] .tile-s { color: rgba(30, 58, 138, 0.8); }
.tile--gas .tile-l { color: var(--gold); }
.tile--gas[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.tile--gas[aria-pressed="true"] .tile-l, .tile--gas[aria-pressed="true"] .tile-n, .tile--gas[aria-pressed="true"] .tile-s { color: var(--ink); }

/* the answer card: lettering on the van window */
.card { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--glass); color: var(--cream); border: 1px solid var(--gold); border-radius: 2px; min-height: 0; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(217, 174, 82, 0.35); pointer-events: none; }
.card-ph { position: relative; aspect-ratio: 16 / 5; overflow: hidden; background: var(--glass-2); }
.card-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--op, 50% 50%); }
.gas-sign { position: absolute; inset: 0; display: none; align-content: center; justify-items: start; padding: 0 24px; background: var(--gold); color: var(--ink); font-size: var(--f5); font-weight: 900; line-height: 1; letter-spacing: -.01em; }
.card[data-mode="gas"] .gas-sign { display: grid; }
.card[data-mode="gas"] .card-img { visibility: hidden; }
.card-b { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px 22px; min-height: 0; }
.card-u { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.u-badge { font-size: var(--f1); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1; padding: 6px 8px 5px; background: var(--gold); color: var(--ink); border-radius: 2px; white-space: nowrap; }
.card[data-urg="today"] .u-badge { background: var(--cream); }
.card-now { font-size: var(--f1); font-weight: 600; color: var(--cream-2); white-space: nowrap; }
.card-h { font-size: var(--f4); font-weight: 850; line-height: 1.08; }
.card-do { font-size: var(--f2); color: var(--cream); max-width: 46ch; }
.card-do b { color: var(--gold); font-weight: 800; }
.card-f { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { border-top: 1px solid var(--cream-3); padding-top: 10px; display: grid; gap: 4px; min-width: 0; }
.fact dt { font-size: var(--f1); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.fact dd { font-size: var(--f3); font-weight: 800; line-height: 1.15; white-space: nowrap; }
.card-rev { font-size: var(--f1); color: var(--cream-2); line-height: 1.5; }
.card-rev .tag { margin-right: 4px; vertical-align: 1px; }
.rev-q { color: var(--cream); }
.rev-by { white-space: nowrap; }
.card[data-mode="gas"] .card-f, .card[data-mode="gas"] .card-rev { display: none; }
.gas-steps { display: none; gap: 10px; }
.card[data-mode="gas"] .gas-steps { display: grid; }
.gas-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; font-size: var(--f2); font-weight: 650; }
.gs-n { width: 32px; height: 32px; display: grid; place-items: center; font-family: var(--script); font-size: var(--f3); line-height: 1; background: var(--gold); color: var(--ink); border-radius: 50%; }
.card-act { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card[data-mode="gas"] .card-act { grid-template-columns: 1fr; }
.card[data-mode="gas"] .btn--line { display: none; }

.d-foot { display: flex; align-items: center; gap: 32px; min-height: 44px; }
.lic { font-size: var(--f1); font-weight: 600; color: var(--cream-2); }
.more { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--f1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--gold); white-space: nowrap; }
.more:hover { color: var(--cream); }
.more .ic { width: 18px; height: 18px; }

/* ---------------- the signboard: five faces on one screen, flipped by the tabs ---------------- */
.signboard {
  position: relative; min-height: var(--app-h, 100vh); padding: 40px var(--gut);
  display: grid; grid-template-columns: 300px minmax(0, 1fr); background: var(--cobalt);
}
.sb-rail { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.sb-tabs { display: grid; align-content: start; padding-top: 24px; }
.sb-tab {
  display: flex; align-items: baseline; gap: 14px; min-height: 64px; padding: 12px 20px 12px 0; margin: 0;
  background: transparent; border: 0; border-radius: 0; color: var(--cream); text-align: left;
  transition: color .1s linear;
}
.sb-tab:hover { color: var(--gold); }
.sb-n { font-family: var(--script); font-size: var(--f4); line-height: 1; color: var(--gold); width: 28px; flex: none; }
.sb-l { font-size: var(--f4); font-weight: 850; line-height: 1.1; white-space: nowrap; }
.sb-tab[aria-selected="true"] { color: var(--gold); }
.sb-tab[aria-selected="true"] .sb-l { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.sb-call { grid-row: 3; display: grid; gap: 12px; justify-items: start; padding: 24px 32px 8px 0; }
.sb-call-k { font-family: var(--script); font-size: var(--f4); line-height: 1; color: var(--gold); }
.sb-num { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--f4); font-weight: 850; line-height: 1; text-decoration: none; white-space: nowrap; }
.sb-num:hover { color: var(--gold); }
.sb-act { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
.sb-stage { position: relative; display: grid; min-height: calc(var(--app-h, 100vh) - 80px); perspective: 1600px; }
.face { position: relative; display: grid; align-items: center; padding: 48px 56px; border: 1px solid var(--gold); border-radius: 2px; transform-origin: 50% 0; }
.face[hidden] { display: none; }
.face > *, .s-in > * { min-width: 0; }
.face::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(217, 174, 82, 0.4); pointer-events: none; }
.face[data-tone="glass"] { background: var(--glass); color: var(--cream); }
.face[data-tone="cream"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.face[data-tone="cream"]::before { border-color: rgba(30, 58, 138, 0.4); }
.face[data-tone="cobalt"] { background: var(--cobalt-d); color: var(--cream); }
.s-in { width: 100%; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.s-lic .s-in, .s-time .s-in { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
.s-in--col { display: block; }
.s-ph { max-width: 400px; width: 100%; justify-self: center; }
.s-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: calc(var(--app-h, 100vh) - 260px); }
.s-body { display: grid; gap: 24px; align-content: center; min-width: 0; }
.s-no { font-size: var(--f1); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
[data-tone="cream"] .s-no { color: var(--cobalt); }
.s-h { font-size: var(--f5); font-weight: 850; line-height: 1.04; letter-spacing: -.01em; max-width: 17ch; text-wrap: balance; }
.s-note { font-size: var(--f1); color: var(--cream-2); max-width: 60ch; }
[data-tone="cream"] .s-note { color: rgba(20, 20, 20, 0.75); }

.board { display: grid; }
.board li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(244, 236, 214, 0.16); }
.b-job { font-size: var(--f3); font-weight: 650; white-space: nowrap; }
.b-dots { flex: 1 1 24px; min-width: 24px; align-self: center; height: 2px; background-image: radial-gradient(circle, rgba(217, 174, 82, 0.75) 1px, transparent 1.4px); background-size: 7px 2px; background-repeat: repeat-x; }
.b-p { font-size: var(--f3); font-weight: 850; color: var(--gold); white-space: nowrap; }

.steps { display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center; }
.st-n { width: 48px; height: 48px; display: grid; place-items: center; font-family: var(--script); font-size: var(--f4); line-height: 1; background: var(--cobalt); color: var(--cream); border-radius: 50%; }
.st-t { font-size: var(--f3); font-weight: 650; line-height: 1.3; }
.clock { justify-self: center; width: 100%; max-width: 340px; display: grid; gap: 18px; justify-items: center; }
.clock-svg { width: 100%; height: auto; overflow: visible; }
.clock-face { fill: var(--cobalt); stroke: var(--cobalt-d); stroke-width: 6; }
.clock-ticks line { stroke: var(--cream); stroke-width: 2; stroke-linecap: square; }
.clock-ticks line.big { stroke-width: 4; }
.clock-arc { fill: none; stroke: var(--gold); stroke-width: 16; stroke-linecap: butt; }
.clock-hand { stroke: var(--cream); stroke-linecap: square; }
.clock-hand--h { stroke-width: 7; }
.clock-hand--m { stroke-width: 4; }
.clock-pin { fill: var(--gold); }
.clock figcaption { display: grid; gap: 4px; justify-items: center; text-align: center; }
.clock-k { font-size: var(--f1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.clock-v { font-size: var(--f4); font-weight: 850; line-height: 1.1; text-wrap: balance; }

.creds { display: grid; }
.creds div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(244, 236, 214, 0.2); align-items: baseline; }
.creds dt { font-size: var(--f1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.creds dd { font-size: var(--f3); font-weight: 650; line-height: 1.3; }
.s-lic .txt-link { justify-self: start; font-size: var(--f3); display: inline-flex; align-items: center; min-height: 44px; }

.route { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.route li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(244, 236, 214, 0.16); }
.r-n { font-size: var(--f3); font-weight: 700; white-space: nowrap; }
.r-m { font-size: var(--f3); font-weight: 850; color: var(--gold); white-space: nowrap; }

.rev-head { display: grid; gap: 14px; margin-bottom: 36px; }
.revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rv { display: grid; align-content: start; gap: 16px; padding: 24px; background: var(--glass); border: 1px solid rgba(217, 174, 82, 0.4); border-radius: 2px; }
.rv .tag { justify-self: start; }
.rv-q { font-size: var(--f3); font-weight: 600; line-height: 1.35; }
.rv-by { font-size: var(--f1); color: var(--cream-2); }
.rv-by span { display: block; color: var(--gold); margin-top: 2px; }
.s-rev .s-note { margin-top: 18px; }

.ft { background: var(--cobalt); padding: 8px var(--gut) 48px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.ft-note { font-size: var(--f1); color: var(--cream-2); max-width: 62ch; }
.ft-note .tag { margin-right: 6px; vertical-align: 1px; }

/* ---------------- sheets ---------------- */
.sheet { padding: 0; border: 0; background: var(--glass); color: var(--cream); max-width: none; max-height: none; }
.sheet::backdrop { background: rgba(8, 16, 44, 0.72); }
.sheet--quote { width: min(940px, calc(100vw - 48px)); margin: auto; border: 1px solid var(--gold); border-radius: 2px; }
.sheet--rest { width: 400px; height: var(--app-h, 100vh); margin: 0 0 0 auto; border-left: 1px solid var(--gold); }
.sh-in { padding: 28px 32px 32px; display: grid; gap: 24px; }
.sheet--rest .sh-in { height: 100%; align-content: start; }
.sh-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-h { font-family: var(--script); font-weight: 400; font-size: var(--f5); line-height: 1; color: var(--gold); padding: 4px 0; }
.sh-x { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--cream-3); border-radius: 2px; color: var(--cream); }
.sh-x:hover { border-color: var(--gold); color: var(--gold); }
.sh-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.clipcard { display: grid; gap: 12px; }
.clipcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.clipcard figcaption { display: grid; gap: 8px; justify-items: start; font-size: var(--f1); color: var(--cream-2); }
.cc-q { color: var(--cream); }
.qform { min-width: 0; }
.q-step { display: grid; gap: 16px; }
.q-step[hidden] { display: none; }
.fld { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fld-k { font-size: var(--f1); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); padding: 0; }
.fld input:not([type="radio"]):not([type="file"]), .fld select {
  width: 100%; min-height: 50px; padding: 0 14px; font-size: var(--f2); background: var(--glass-2); color: var(--cream);
  border: 1px solid var(--cream-3); border-radius: 2px; appearance: none; -webkit-appearance: none;
}
.fld select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.fld input:focus-visible, .fld select:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }
.fld--file input { font-size: var(--f1); color: var(--cream-2); min-height: 44px; }
.fld--file input::file-selector-button { font: inherit; font-weight: 800; min-height: 44px; margin-right: 12px; padding: 0 14px; background: var(--cream); color: var(--ink); border: 0; border-radius: 2px; cursor: pointer; }
.fld-h { font-size: var(--f1); color: var(--cream-2); }
.fld-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
.when { display: flex; flex-wrap: wrap; gap: 8px; }
.when legend { width: 100%; margin-bottom: 8px; }
.w-opt { position: relative; }
.w-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.w-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--cream-3); border-radius: 2px; font-size: var(--f2); font-weight: 700; cursor: pointer; white-space: nowrap; }
.w-opt input:checked + span { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.w-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.q-err { font-size: var(--f1); color: var(--gold); font-weight: 700; }
.q-done-h { font-size: var(--f4); font-weight: 850; line-height: 1.1; }
.q-done-p { font-size: var(--f2); color: var(--cream-2); }

.idx { display: grid; }
.idx a { display: flex; align-items: baseline; gap: 16px; min-height: 60px; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--cream-3); }
.idx-n { font-size: var(--f1); font-weight: 800; color: var(--gold); width: 20px; }
.idx-t { font-size: var(--f4); font-weight: 850; line-height: 1.1; }
.idx a:hover .idx-t { color: var(--gold); }

/* ---------------- motion (fast, hard cuts) ---------------- */
.motion .name-t { animation: wipe .5s var(--ease) both; }
.motion .swash path { animation: draw .28s var(--ease) .38s both; }
.motion .card.swap .card-b, .motion .card.swap .card-ph { animation: cut .14s steps(3, end) both; }
.motion .face.flip { animation: flip .2s var(--ease) both; }
.motion .face.flip .clock-arc { animation: arc .4s var(--ease) .1s both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes flip { from { transform: rotateX(-88deg); } to { transform: rotateX(0deg); } }
@keyframes arc { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes cut { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.clock-arc { stroke-dasharray: 100 100; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }

}

/* ---------------- phones and narrow windows ---------------- */
@media (max-width: 899px) {
  .door { padding: 22px var(--gut) 24px; gap: 12px; grid-template-rows: auto auto auto; align-content: start; background: var(--cobalt); }
  .keyline { inset: 6px; }
  .corner { width: 16px; height: 16px; }
  .c-tl { top: 6px; left: 6px; border-bottom-right-radius: 16px; }
  .c-tr { top: 6px; right: 6px; border-bottom-left-radius: 16px; }
  .c-bl { bottom: 6px; left: 6px; border-top-right-radius: 16px; }
  .c-br { bottom: 6px; right: 6px; border-top-left-radius: 16px; }
  .d-top { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .sub { margin-top: 8px; font-size: var(--f1); gap: 6px 10px; }
  .name { margin-top: 2px; }
  .plate { justify-items: start; text-align: left; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num num" "open rate"; column-gap: 12px; row-gap: 8px; align-items: center; }
  .plate-num { grid-area: num; text-decoration-thickness: 3px; text-underline-offset: 8px; padding-bottom: 8px; }
  .plate-open { grid-area: open; }
  .plate .rating { grid-area: rate; }
  .d-board { grid-template-columns: 1fr; gap: 12px; }
  .pick { gap: 8px; }
  .pick-h { font-size: var(--f4); }
  .tiles { grid-auto-rows: 62px; gap: 8px; }
  .tile { padding: 9px 9px 9px; grid-template-rows: auto auto; grid-template-columns: 1fr auto; align-content: space-between; column-gap: 4px; row-gap: 6px; }
  .tile-n { grid-row: 1; grid-column: 1; }
  .tile-i { grid-row: 1; grid-column: 2; width: 22px; height: 22px; stroke-width: 2; align-self: start; }
  .tile-l { grid-row: 2; grid-column: 1 / -1; font-size: var(--f2); letter-spacing: -.01em; }
  .tile-s { display: none; }
  .card-ph { aspect-ratio: 5 / 1; }
  .gas-sign { font-size: var(--f4); padding: 0 16px; }
  .card-b { gap: 8px; padding: 12px 16px 14px; }
  .card-f { gap: 12px; }
  .fact { padding-top: 8px; }
  .card-act .btn { min-height: 48px; padding: 0 12px; }
  .d-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .more { margin-left: 0; }

  .signboard { min-height: 0; padding: 40px var(--gut) 32px; grid-template-columns: minmax(0, 1fr); }
  .sb-rail { display: contents; }
  .sb-tabs { order: 1; }
  .sb-stage { order: 2; }
  .sb-call { order: 3; grid-row: auto; }
  .sb-tabs { padding-top: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
  .sb-tab { flex-direction: column; align-items: center; gap: 4px; min-height: 60px; padding: 8px 0; text-align: center; }
  .sb-n { width: auto; font-size: var(--f3); }
  .sb-l { font-size: var(--f1); }
  .sb-tab[aria-selected="true"] .sb-l { text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .sb-stage { min-height: 0; }
  .face { padding: 32px 20px; align-items: start; }
  .face::before { inset: 6px; }
  .sb-call { padding: 32px 0 0; justify-items: stretch; text-align: left; }
  .sb-num { font-size: var(--f6); }
  .sb-act { grid-template-columns: 1fr 1fr; }
  .board li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; }
  .b-dots { display: none; }
  .b-job, .b-p { font-size: var(--f2); }
  .s-in, .s-lic .s-in, .s-time .s-in { grid-template-columns: 1fr; gap: 32px; }
  .s-ph { max-width: none; }
  .s-ph img { aspect-ratio: 4 / 3; max-height: none; }
  .s-lic .s-ph, .s-time .clock { order: -1; }
  .clock { max-width: 280px; }
  .creds div { grid-template-columns: 1fr; gap: 4px; }
  .route { grid-template-columns: 1fr; }
  .revs { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; scroll-padding-inline: 20px; }
  .revs::-webkit-scrollbar { display: none; }
  .rv { scroll-snap-align: start; }


  .sheet--quote { width: 100vw; height: var(--app-h, 100vh); margin: 0; border: 0; }
  .sheet--rest { width: 100vw; border-left: 0; }
  .sh-in { padding: 16px var(--gut) 32px; gap: 18px; }
  .sh-grid { grid-template-columns: 1fr; gap: 20px; }
  .clipcard { grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 14px; }
  .clipcard img { aspect-ratio: 1; }
}
@media (max-width: 359px) {
  .plate { grid-template-columns: 1fr; grid-template-areas: "num" "open" "rate"; }
  .plate-num, .sb-num { font-size: var(--f5); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-act { grid-template-columns: 1fr; }
  .sb-act { grid-template-columns: 1fr; }
  .board li { grid-template-columns: 1fr; }
  .sb-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fld-row { grid-template-columns: 1fr; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .card-ph { aspect-ratio: 16 / 4; }
  .tile-i { width: 32px; height: 32px; }
}

/* spacing gate (2026-10-20): clear space around the sign's script name, the phone plate */
.sub { margin-top: clamp(24px, 3vw, 54px); }
.plate { row-gap: 16px; }
@media (min-width: 900px) { .d-top { padding-top: 8px; } }
@media (max-width: 899px) { .door { padding-top: 30px; } .sub { margin-top: 16px; } }

/* ================= FIRST SCREEN (2026-10-21) =================
   The door glass shows the plumber at work: on desktop the photo fills the right of the door inside the keyline, the
   phone number is painted over it, and the dispatcher keeps the left; on phones the photo sits under the number. */
.d-ph { position: relative; margin: 0; overflow: hidden; }
.d-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.d-ph-c { position: absolute; right: 0; bottom: 0; padding: 6px 10px; background: var(--ink); color: var(--cream-2); font-size: var(--f1); }
@media (max-width: 899px) {
  .d-ph { margin: 0 calc(-1 * var(--gut)); height: max(300px, calc(var(--app-h, 100vh) * .54)); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
}
@media (min-width: 900px) {
  .door { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); column-gap: 40px; }
  .d-top { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 1; }
  .d-board { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px; }
  .d-foot { grid-column: 1; grid-row: 3; flex-wrap: wrap; gap: 6px 24px; }
  .d-ph { position: absolute; z-index: -2; top: 14px; right: 14px; bottom: 14px; width: calc(60% - 34px); }
  .d-ph::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 240px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(20, 20, 20, .55), rgba(20, 20, 20, 0)); }
  .plate { padding-right: 12px; }
  .plate .rating { color: var(--cream); }
  .tiles { flex: none; grid-auto-rows: 72px; }
  .tile { padding: 10px 12px; grid-template-rows: auto auto; grid-template-columns: 1fr auto; align-content: space-between; column-gap: 4px; row-gap: 6px; }
  .tile-n { grid-row: 1; grid-column: 1; }
  .tile-i { grid-row: 1; grid-column: 2; width: 26px; height: 26px; align-self: start; }
  .tile-l { grid-row: 2; grid-column: 1 / -1; }
  .tile-s { display: none; }
  .tile-l { font-size: var(--f3, var(--f2)); }
  .card-ph { display: none; }
  .card { grid-template-rows: minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .d-ph-c { right: 40px; bottom: 18px; }
  .d-top { padding-top: 14px; }
  .sub { margin-top: clamp(30px, 3.2vw, 58px); }
  .plate { row-gap: 20px; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .tile-l { font-size: var(--f2); white-space: normal; }
  .tiles { gap: 8px; }
}

/* ================= CALL BAR (2026-10-21) =================
   Phones: the van's tailgate. A slim glass strip with the gold keyline, pinned to the bottom from load to the footer,
   so the number is under the thumb while reading prices. The page gets the same room at the bottom, so nothing hides. */
.callbar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; gap: 12px;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--glass); color: var(--cream); border-top: 1px solid var(--gold); text-decoration: none;
  }
  .callbar::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1px solid rgba(217, 174, 82, 0.35); pointer-events: none; }
  .cb-k { font-family: var(--script); font-size: var(--f3); line-height: 1; color: var(--gold); white-space: nowrap; }
  .cb-num { font-size: var(--f3); font-weight: 850; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
  .cb-btn {
    margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
    background: var(--gold); color: var(--ink); border-radius: 2px;
    font-size: var(--f2); font-weight: 800; letter-spacing: .02em; line-height: 1; white-space: nowrap;
    transition: background-color .12s linear;
  }
  .callbar:active .cb-btn { background: var(--cream); }
  .cb-btn .ic { width: 18px; height: 18px; }
}
@media (max-width: 374px) { .cb-k { display: none; } }
