/* Erik's European and Asian Auto Repair: concept site, INDEX format.
   Palette and type are set out in DESIGN.md. Every colour below comes from those tokens. */

:root {
  --alu: #E1DFDA;
  --sheet: #F0EFEB;
  --ink: #1F2226;
  --steel: #50555C;
  --red: #BF1E22;
  --red-dk: #9E181B;
  --scribe: #8A8E93;
  --rule: rgba(31, 34, 38, .22);
  --rule-strong: #1F2226;

  --sa-accent: #BF1E22;
  --sa-accent-ink: #FFFFFF;

  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--alu); color: var(--ink);
  font: 400 1.125rem/1.62 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.08; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); }
.measure { max-width: 64ch; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons and links: rectangular, solid red, no icons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 1.5em; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--red); color: #fff;
  font: 600 1.15rem/1 var(--head); letter-spacing: .01em; text-decoration: none;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--red-dk); }
.btn--sm { min-height: 46px; font-size: 1.05rem; padding: 0 1.2em; }

.ask, .tlink {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 1.08rem/1.2 var(--head); letter-spacing: .01em; color: var(--ink); text-align: left;
  text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.ask:hover, .tlink:hover { color: var(--red); }
.tel { font: 500 1.06rem/1.2 var(--mono); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.tel:hover { color: var(--red); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.actions .or { color: var(--steel); }

/* ---------- running head and tab strip ---------- */
.head__run { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.head__logo img { height: 76px; width: auto; }
.head__meta { text-align: right; font-family: var(--mono); line-height: 1.5; }
.head__meta span { display: block; font-size: .875rem; color: var(--steel); }
.head__meta a { font-size: 1.12rem; font-weight: 500; text-decoration: none; }
.head__meta a:hover { text-decoration: underline; }
.tabs { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.tabs ul { display: grid; grid-template-columns: repeat(7, 1fr); }
.tabs li + li { border-left: 1px solid var(--rule); }
.tabs a {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px;
  font: 500 1.08rem/1 var(--head); letter-spacing: .01em; text-decoration: none;
}
.tabs a:hover { background: var(--sheet); }
.tabs a[aria-current="page"] { background: var(--sheet); color: var(--red); }

/* ---------- statement ---------- */
.statement { padding: clamp(56px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); }
.statement h1 {
  font-size: clamp(3rem, 8.4vw, 7.75rem); line-height: .94; letter-spacing: -.02em; font-weight: 500;
  max-width: 15ch;
}
.statement__lede { font-size: 1.25rem; line-height: 1.55; max-width: 52ch; margin: 36px 0 32px; }
.page .statement h1 { font-size: clamp(2.75rem, 6.4vw, 5.75rem); }
.statement--home h1 { font-size: clamp(3rem, 7.2vw, 6.6rem); }


/* ---------- sections ---------- */
.sec { padding: clamp(56px, 7vw, 104px) 0; }
.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: 28px; }
.sec__head p { margin: 0; max-width: 52ch; color: var(--steel); }

/* ---------- the index: ruled rows with a fixed plate frame ---------- */
.index { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.rows { border-top: 1px solid var(--rule-strong); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; align-items: end;
  padding: 22px 10px 20px; border-bottom: 1px solid var(--rule);
  transition: background-color .15s ease;
}
.row__name { grid-column: 1 / -1; font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.02; }
.row__name a { text-decoration: none; }
.row__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.row__desc { margin: 0; color: var(--steel); max-width: 60ch; }
.row__thumb { display: none; }
.row .ask { white-space: nowrap; }
.row.is-active, .row:hover { background: var(--sheet); }
.rows-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 24px 10px 0; }
.rows-foot p { margin: 0; }

.preview { position: sticky; top: 28px; }
.frame { position: relative; background: var(--sheet); border: 1px solid var(--rule-strong); }
.frame__stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.plate { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .22s ease; }
.plate.is-active { opacity: 1; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate svg { width: 100%; height: 100%; }
.frame__cap { margin: 0; padding: 12px 16px; border-top: 1px solid var(--rule-strong); font: 400 .875rem/1.45 var(--mono); min-height: 3.6em; }
@media (prefers-reduced-motion: reduce) { .plate { transition: none; } }

.statement__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px clamp(32px, 5vw, 80px); }
.seal { width: clamp(300px, 27vw, 390px); aspect-ratio: 1 / 1; transform: rotate(-9deg); filter: drop-shadow(0 18px 28px rgba(31, 34, 38, .18)); }
.seal svg { width: 100%; height: 100%; overflow: hidden; }
.seal .ring-text { font: 600 13px var(--head); letter-spacing: .05em; fill: #fff; }
.seal .num { font: 600 42px var(--head); fill: #fff; text-anchor: middle; }
.seal .unit { font: 500 10px var(--mono); fill: #fff; text-anchor: middle; letter-spacing: .08em; }
@media (prefers-reduced-motion: no-preference) {
  .js .seal { animation: stamp .55s .9s cubic-bezier(.3, 1.3, .5, 1) both; }
}
@keyframes stamp { from { opacity: 0; transform: rotate(-24deg) scale(1.35); } to { opacity: 1; transform: rotate(-9deg) scale(1); } }

/* line drawings: one drafting language */
.dw { background: var(--sheet); }
.dw .o { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.dw .v { fill: var(--alu); stroke: var(--ink); stroke-width: 1.6; }
.dw .l { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.dw .t { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.dw .f { fill: none; stroke: var(--ink); stroke-width: .7; }
.dw .h { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 7 5; }
.dw .c { fill: none; stroke: var(--scribe); stroke-width: 1; stroke-dasharray: 16 4 3 4; }
.dw .k { fill: var(--ink); }
.dw .a { fill: var(--red); }
.dw .spring { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; }
.dw .spring-in { fill: none; stroke: var(--sheet); stroke-width: 4; stroke-linecap: round; }
.dw .lead { fill: none; stroke: var(--ink); stroke-width: 1; }
.dw .lbl { font: 500 16px var(--mono); fill: var(--ink); }
.dw .num { font: 500 15px var(--mono); fill: var(--steel); text-anchor: middle; }
.dw .teeth { fill: none; stroke: var(--ink); stroke-width: 11; }
.dw .belt { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linejoin: round; }
.dw .belt-band { fill: none; stroke: var(--sheet); stroke-width: 5.5; }
.dw .belt-teeth { fill: none; stroke: var(--ink); stroke-width: 5.5; stroke-dasharray: 1.4 4.6; }
.dw .sp { fill: none; stroke: var(--ink); stroke-width: 5; }
.dw .spin { transform-box: fill-box; transform-origin: center; }

/* ---------- makes: a typeset catalogue index ---------- */
.catalogue { columns: 4 200px; column-gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--rule-strong); padding-top: 22px; }
.catalogue__group { break-inside: avoid; display: grid; grid-template-columns: 30px 1fr; margin-bottom: 14px; }
.catalogue__letter { font: 600 1.35rem/44px var(--head); color: var(--steel); }
.entry {
  display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 44px; padding: 8px 0;
  border: 0; background: none; cursor: pointer; text-align: left; color: var(--ink); text-decoration: none;
  font: 500 1.3rem/1.2 var(--head); letter-spacing: .005em;
}
.entry__lead { flex: 1; border-bottom: 2px dotted var(--scribe); transform: translateY(-5px); min-width: 16px; }
.entry__code { font: 500 .9rem/1 var(--mono); color: var(--steel); min-width: 2ch; text-align: right; }
.entry:hover .entry__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.entry[aria-pressed="true"] { color: var(--red); }
.entry[aria-pressed="true"] .entry__lead { border-bottom-color: var(--red); }
.entry[aria-pressed="true"] .entry__code { color: var(--red); }
.key { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 6px 0 0; font: 400 .9rem/1.6 var(--mono); color: var(--steel); }
.key b { font-weight: 500; color: var(--ink); margin-right: 6px; }

.readout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); margin-top: 36px; padding: 32px 0 8px; border-top: 1px solid var(--rule-strong); }
.readout__origin { font: 400 .95rem/1 var(--mono); color: var(--steel); margin: 0 0 12px; }
.readout__name { font: 500 clamp(3rem, 7vw, 6rem)/.92 var(--head); letter-spacing: -.02em; margin: 0 0 22px; }
.readout__text { max-width: 60ch; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0 0 24px; font: 400 .95rem/1.55 var(--mono); border-top: 1px solid var(--rule); }
.spec dt, .spec dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.spec dt { color: var(--steel); padding-right: 20px; }
.readout__photo { margin: 0; }
.readout__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--rule-strong); }
.readout__photo figcaption { margin-top: 10px; font: 400 .875rem/1.45 var(--mono); color: var(--steel); }
.readout__swap { transition: opacity .18s ease, transform .18s ease; }
.readout.is-changing .readout__swap { opacity: 0; transform: translateY(6px); }

/* ---------- sequence ---------- */
.sequence { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.sequence li { padding: 20px 20px 24px 0; }
.sequence li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.sequence .n { display: block; font: 500 .95rem/1 var(--mono); color: var(--red); margin-bottom: 14px; }
.sequence h3 { font-size: 1.45rem; margin-bottom: 8px; }
.sequence p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--steel); }
.seq-foot { padding-top: 20px; }

/* ---------- reviews ---------- */
.quote-lead { margin: 0; padding: 30px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.quote-lead blockquote { margin: 0; font: 400 clamp(1.5rem, 2.6vw, 2.25rem)/1.3 var(--head); letter-spacing: -.005em; max-width: 36ch; }
.quote-lead p { margin: 0; }
.cite { display: block; margin-top: 18px; font: 500 .95rem/1.3 var(--mono); color: var(--steel); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; }
.quotes figure { margin: 0; padding: 26px 32px 28px 0; border-bottom: 1px solid var(--rule); }
.quotes figure + figure { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--rule); }
.quotes blockquote { margin: 0; }
.quotes p { margin: 0; }
.rating { margin: 22px 0 0; max-width: 64ch; }

/* ---------- visit / spec tables ---------- */
.split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.table { border-top: 1px solid var(--rule-strong); margin: 0 0 24px; }
.table div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.table dt { font: 400 .95rem/1.6 var(--mono); color: var(--steel); }
.table dd { margin: 0; font: 500 1.06rem/1.6 var(--mono); }
.table dd a { text-decoration: none; }
.table dd a:hover { text-decoration: underline; }
.areas { max-width: 64ch; color: var(--steel); }
.photo-plate { margin: 0; background: var(--sheet); border: 1px solid var(--rule-strong); }
.photo-plate img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-plate figcaption { padding: 12px 16px; border-top: 1px solid var(--rule-strong); font: 400 .875rem/1.45 var(--mono); }

/* ---------- services manual ---------- */
.entry-sheet { padding: 34px 10px 30px; border-bottom: 1px solid var(--rule); scroll-margin-top: 20px; }
.entry-sheet:first-child { border-top: 1px solid var(--rule-strong); }
.entry-sheet h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.entry-sheet .intro { max-width: 64ch; margin: 16px 0 24px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 40px; }
.cols h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.ticks li { position: relative; padding: 5px 0 5px 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; border-top: 2px solid var(--ink); }
.procedure { counter-reset: p; }
.procedure li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; padding: 5px 0; }
.procedure li::before { content: counter(p); font: 500 .95rem/1.9 var(--mono); color: var(--red); }
.entry-sheet__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 22px; }
.entry-sheet__foot p { margin: 0; font: 400 .9rem/1.5 var(--mono); color: var(--steel); }
.entry-sheet__thumb { display: none; }

/* ---------- ruled entries (makes, shop, financing) ---------- */
.ledger { border-top: 1px solid var(--rule-strong); }
.ledger__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: 12px 40px; padding: 26px 10px; border-bottom: 1px solid var(--rule); scroll-margin-top: 20px; }
.ledger__row h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.ledger__row p { margin: 0 0 10px; max-width: 60ch; }
.ledger__row p:last-child { margin-bottom: 0; }
.ledger__side { font: 400 .95rem/1.55 var(--mono); color: var(--steel); }
.ledger__side .ask, .ledger__side .tlink, .ledger__side .btn { margin-top: 6px; }
.ledger__side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule-strong); margin-bottom: 8px; }
.ledger__side .cap { display: block; margin-bottom: 12px; font-size: .875rem; }
.ledger__row ul.ticks { margin: 4px 0 0; }
.group-head { display: flex; align-items: baseline; gap: 16px; margin: 64px 0 14px; }
.group-head:first-child { margin-top: 0; }
.group-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.group-head .code { font: 500 1rem/1 var(--mono); color: var(--steel); }

.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 10px; font: 500 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--mono); color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 10px 22px; max-width: 64ch; }

/* ---------- form ---------- */
.form { background: var(--sheet); border: 1px solid var(--rule-strong); padding: clamp(22px, 3.5vw, 36px); }
.form h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 8px; }
.form > p { color: var(--steel); }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label { font: 600 1.05rem/1.2 var(--head); }
.field input, .field textarea { width: 100%; font: 400 1.1rem/1.4 var(--body); color: var(--ink); background: #fff; border: 2px solid var(--steel); border-radius: 2px; padding: 12px 14px; min-height: 52px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form .btn { margin-top: 22px; width: 100%; }
.form__status { margin: 16px 0 0; padding: 14px 16px; font-weight: 500; display: none; }
.form__status.is-ok { display: block; background: var(--ink); color: #fff; }
.form__status.is-err { display: block; background: #fff; color: var(--red); border: 2px solid var(--red); }

/* ---------- footer: a drawing title block ---------- */
.foot { padding: 72px 0 36px; }
.titleblock { display: grid; grid-template-columns: 1.35fr 1.25fr .95fr 1.4fr 1.15fr; border: 2px solid var(--ink); background: var(--sheet); }
.tb { padding: 16px 18px; border-left: 1px solid var(--ink); min-width: 0; }
.tb:first-child { border-left: 0; display: flex; align-items: center; gap: 14px; }
.tb__k { display: block; font: 400 .875rem/1.3 var(--mono); color: var(--steel); margin-bottom: 6px; }
.tb__v { font: 500 .95rem/1.5 var(--mono); font-style: normal; overflow-wrap: anywhere; }
.tb__v a { text-decoration: none; }
.tb__v a:hover { text-decoration: underline; }
.tb__v a[href^="mailto"] { white-space: nowrap; }
.tb__name { font: 600 1.2rem/1.1 var(--head); }
.tb--nav { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; }
.tb--nav a { font: 500 1.05rem/1 var(--head); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.tb--nav a:hover { text-decoration: underline; }
.credit { margin: 18px 2px 0; font-size: .8125rem; line-height: 1.5; color: var(--steel); }
.credit a { color: var(--ink); font-weight: 600; }

.bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .sequence { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sequence li:nth-child(4) { padding-left: 0; border-left: 0; }
  .sequence li:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .titleblock { grid-template-columns: 1fr 1fr 1fr; }
  .tb:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--ink); }
  .tb:nth-child(2), .tb:nth-child(5) { border-left: 0; }
  .tb:nth-child(5) { grid-column: 1 / -1; border-top: 1px solid var(--ink); }
  .ledger__row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .ledger__side { grid-column: 2; }
}

/* touch screens and narrow windows: no hover frame, plates sit inline in each row */
@media (max-width: 900px) {
  .statement__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .seal { width: clamp(180px, 30vw, 260px); }
}
@media (max-width: 900px), (hover: none) {
  .index { grid-template-columns: 1fr; }
  .preview { position: static; }
  .frame { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) 112px; align-items: start; padding: 20px 4px; }
  .row.is-active, .row:hover { background: none; }
  .row__name { grid-column: 1; }
  .row__desc { grid-column: 1; }
  .row .ask { grid-column: 1; justify-self: start; }
  .row__thumb { display: block; grid-column: 2; grid-row: 1 / span 3; width: 112px; height: 112px; border: 1px solid var(--rule-strong); background: var(--sheet); overflow: hidden; }
  .row__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .row__thumb svg { width: 100%; height: 100%; }
  .row__thumb .lbl, .row__thumb .num { display: none; }
  .entry-sheet__thumb { display: block; float: right; width: 112px; height: 112px; margin: 0 0 12px 16px; border: 1px solid var(--rule-strong); background: var(--sheet); overflow: hidden; }
  .entry-sheet__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .entry-sheet__thumb svg { width: 100%; height: 100%; }
  .entry-sheet__thumb .lbl, .entry-sheet__thumb .num { display: none; }
}

@media (max-width: 900px) {
  .split, .readout { grid-template-columns: 1fr; }
  .readout__photo { max-width: 360px; }
  .quotes { grid-template-columns: 1fr; }
  .quotes figure + figure { padding-left: 0; border-left: 0; }
  .quotes figure { padding-right: 0; }
  .cols { grid-template-columns: 1fr; }
  .ledger__row { grid-template-columns: 1fr; padding: 22px 4px; }
  .ledger__side { grid-column: 1; }
}
@media (max-width: 760px) {
  body { font-size: 1.0625rem; padding-bottom: 84px; }
  .head__run { padding-top: 12px; padding-bottom: 12px; }
  .head__logo img { height: 52px; }
  .head__meta span { display: none; }
  .head__meta a { font-size: 1rem; }
  .tabs ul { grid-template-columns: repeat(4, 1fr); }
  .tabs li:nth-child(5) { border-left: 0; }
  .tabs li:nth-child(-n+4) { border-bottom: 1px solid var(--rule); }
  .tabs .wrap { padding: 0; }
  .tabs a { min-height: 48px; padding: 0 10px; font-size: 1rem; justify-content: center; }
  .statement h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .page .statement h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .statement__lede { font-size: 1.12rem; margin: 24px 0 26px; }
  .statement .btn { width: 100%; }
  .statement__grid { grid-template-columns: 1fr; }
  .seal { width: 220px; margin: 8px 0 0 4px; }
  .catalogue { columns: 2 140px; column-gap: 20px; }
  .catalogue__group { grid-template-columns: 22px 1fr; }
  .entry { font-size: 1.12rem; }
  .sequence { grid-template-columns: 1fr; border-bottom: 0; }
  .sequence li, .sequence li + li { display: grid; grid-template-columns: 34px 1fr; padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--rule); border-top: 0; }
  .sequence li:nth-child(n+4) { border-top: 0; }
  .sequence .n { grid-row: span 2; margin: 5px 0 0; }
  .table div { grid-template-columns: 96px 1fr; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb { border-left: 0; }
  .tb:nth-child(n+2) { border-top: 1px solid var(--ink); }
  .tb:nth-child(3) { border-left: 1px solid var(--ink); }
  .tb:nth-child(4), .tb:nth-child(5) { grid-column: 1 / -1; }
  .tb:first-child { border-bottom: 0; }
  .bar {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    /* the right padding leaves the assistant launcher its corner, over the bar's own ground */
    padding: 10px 96px calc(10px + env(safe-area-inset-bottom)) 12px;
    background: var(--alu); border-top: 1px solid var(--rule-strong);
  }
  .bar .btn { min-height: 50px; padding: 0 10px; font-size: 1.05rem; }
  .bar .bar__call { background: var(--ink); color: #fff; }
  .bar .bar__call:hover { background: #33373D; }
}
@media (max-width: 420px) {
  .tb:nth-child(2), .tb:nth-child(3) { grid-column: 1 / -1; border-left: 0; }
  .row { grid-template-columns: minmax(0, 1fr) 92px; }
  .row__thumb { width: 92px; height: 92px; }
}

/* =====================================================================
   Enterprise layer: breadcrumbs, proof, reviews, partners, map, footer
   ===================================================================== */
h1, h2, h3 { text-wrap: balance; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-gap { margin-bottom: 24px; }
.after { margin-top: 22px; }

.crumbs { margin-bottom: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font: 400 .875rem/1.6 var(--mono); color: var(--steel); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--scribe); }
.crumbs a { text-decoration: none; color: var(--ink); }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--steel); }

/* rows: review count sits under the one-line description */
.row__desc p { margin: 0; color: var(--steel); }
.row__desc { color: var(--steel); }
.row__meta { display: inline-block; margin-top: 6px; font: 400 .875rem/1.5 var(--mono); color: var(--ink); text-decoration: underline; text-decoration-color: var(--scribe); text-underline-offset: 4px; }
.row__meta:hover { text-decoration-color: var(--red); }

/* proof: the rating set as a figure */
.proof { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; padding-bottom: 28px; }
.proof__figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; font-weight: 500; }
.proof__num { font: 500 clamp(5rem, 13vw, 10.5rem)/.82 var(--head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.proof__words { font: 500 clamp(1.6rem, 3.2vw, 2.8rem)/1.05 var(--head); letter-spacing: -.01em; }
.proof__figure--h1 .proof__num { font-size: clamp(5rem, 14vw, 11rem); }
.proof__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }

.stars { color: var(--red); letter-spacing: .12em; font-size: 1rem; line-height: 1; }
.quote-lead { margin: 0; padding: 32px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.quote-lead blockquote { margin: 0; font: 500 clamp(1.6rem, 3vw, 2.5rem)/1.22 var(--head); letter-spacing: -.01em; max-width: 34ch; }
.quote-lead p { margin: 0; }
.cite { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; font: 500 .95rem/1.3 var(--mono); color: var(--steel); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quotes .rq { padding: 26px 28px 28px 0; border-bottom: 0; }
.quotes .rq + .rq { padding-left: 28px; border-left: 1px solid var(--rule); }

/* one review */
.rq { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.rq__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 10px; font: 400 .875rem/1.5 var(--mono); color: var(--steel); }
.rq__name { font-weight: 500; color: var(--ink); }
.rq__text { margin: 0; max-width: 64ch; }
.rq__text p { margin: 0 0 .7em; }
.rq__text p:last-child { margin-bottom: 0; }
.rq.is-clamped .rq__text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.quotes .rq.is-clamped .rq__text { -webkit-line-clamp: 8; }
.more { margin-top: 8px; padding: 0; min-height: 44px; border: 0; background: none; cursor: pointer; font: 500 1rem/1 var(--head); color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.more:hover { color: var(--red); }
.reply { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--ink); background: var(--sheet); max-width: 64ch; }
.reply__who { display: block; margin-bottom: 6px; font: 500 .875rem/1.4 var(--mono); color: var(--steel); }
.reply p { margin: 0 0 .5em; font-size: 1rem; }
.reply p:last-child { margin-bottom: 0; }
.rq--inline { padding: 18px 0 6px; border-bottom: 0; border-top: 1px solid var(--rule); margin-top: 16px; }
.rq-list { border-top: 1px solid var(--rule-strong); }
.rq-list--page .rq { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 8px 40px; padding: 26px 10px; }
.rq-list--page .rq__meta { flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; grid-row: span 3; }
.rq-list--page .rq__name { font: 500 1.25rem/1.2 var(--head); }
.rq-list--page .more, .rq-list--page .reply { grid-column: 2; justify-self: start; }
.wall-h { margin: 64px 0 18px; font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); border-top: 1px solid var(--rule-strong); }
.wall li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 2px 12px; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule); }
.wall .mono-i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule-strong); background: var(--sheet); font: 500 .875rem/1 var(--mono); }
.wall .w-name { font: 500 1.05rem/1.2 var(--head); }
.wall .w-sub { font: 400 .875rem/1.3 var(--mono); color: var(--steel); display: flex; gap: 10px; align-items: center; }
.wall .stars { font-size: .875rem; letter-spacing: .06em; }

/* readout additions */
.readout__review { margin: 0 0 26px; padding: 0; }
.readout__review blockquote { margin: 0; }
.readout__review p { margin: 0; max-width: 60ch; }
.readout__review .cite { margin-top: 10px; }

/* partners: restrained monochrome row */
.partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.partners li { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 24px 22px 22px 0; min-height: 190px; }
.partners li + li { padding-left: 22px; border-left: 1px solid var(--rule); }
.partners img { width: auto; max-width: 100%; opacity: .9; align-self: flex-start; }
.partners li:nth-child(1) img { height: 88px; }
.partners li:nth-child(2) img { height: 52px; }
.partners li:nth-child(3) img { height: 30px; }
.partners span { font: 400 .95rem/1.5 var(--mono); color: var(--steel); }
.partners .partners__word { font: 600 1.7rem/1 var(--head); color: var(--ink); letter-spacing: -.01em; margin-bottom: auto; padding-top: 22px; }

/* map in a plate frame */
.map-plate iframe { display: block; width: 100%; aspect-ratio: 1 / 1; border: 0; filter: grayscale(.35) contrast(1.02); }

/* detail pages: blocks down the left, plate on the right */
.blocks { border-top: 1px solid var(--rule-strong); }
.block { padding: 30px 10px 34px; border-bottom: 1px solid var(--rule); scroll-margin-top: 20px; }
.block > h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 16px; }
.block > p { max-width: 64ch; }
.block__note { font: 400 .9rem/1.5 var(--mono); color: var(--steel); margin: 14px 0 0; }
.block .rq-list { margin-top: 18px; }
.block .ledger { margin-top: 6px; }
.ledger__row--two { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.more-index { margin-top: 72px; }
.more-index h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 16px; }
.more-index ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--rule-strong); }
.more-index a { display: flex; align-items: center; min-height: 60px; padding: 0 10px; border-bottom: 1px solid var(--rule); font: 500 1.3rem/1.1 var(--head); text-decoration: none; }
.more-index a:hover { background: var(--sheet); color: var(--red); }

.ledger__side { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.side-k { font-size: .875rem; color: var(--steel); }
.side-v { color: var(--ink); margin-bottom: 8px; }
.side-mark { width: auto !important; height: 28px; aspect-ratio: auto !important; border: 0 !important; margin-bottom: 8px; }
.asklist { list-style: none; }
.make-group + .make-group { margin-top: 64px; }
.area-list { columns: 2 180px; border-top: 1px solid var(--rule-strong); }
.area-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--rule); font: 500 1.15rem/1.3 var(--head); }

/* footer: title block and columns */
.tb--logo { display: flex; align-items: center; }
.tb--logo img { width: 100%; max-width: 250px; height: auto; }
.foot__cols { display: grid; grid-template-columns: 1.1fr .9fr 1.2fr 1fr; gap: 28px 40px; padding: 36px 2px 8px; }
.foot__h { font: 600 1.15rem/1.2 var(--head); margin-bottom: 12px; }
.foot__cols ul li { padding: 3px 0; }
.foot__cols ul a { font-size: 1rem; text-decoration: none; }
.foot__cols ul a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.foot__area, .foot__rating { font-size: 1rem; color: var(--steel); }
.foot__rating .mono { color: var(--ink); font-weight: 500; }

@media (max-width: 1080px) {
  .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners li:nth-child(4) { padding-left: 0; border-left: 0; }
  .partners li:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .quotes .rq, .quotes .rq + .rq { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 900px) {
  .rq-list--page .rq { grid-template-columns: 1fr; padding: 22px 4px; }
  .rq-list--page .rq__meta { flex-direction: row; flex-wrap: wrap; grid-row: auto; }
  .rq-list--page .more, .rq-list--page .reply { grid-column: 1; }
  .ledger__row--two { grid-template-columns: 1fr; }
  .block { padding: 26px 4px 30px; }
}
@media (max-width: 760px) {
  .partners { grid-template-columns: 1fr 1fr; }
  .partners li, .partners li + li { padding: 20px 14px 18px 0; border-left: 0; min-height: 0; }
  .partners li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }
  .partners li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__cols ul li { padding: 0; }
  .foot__cols ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .proof__links { flex-direction: column; gap: 0; }
  .tb--logo img { max-width: 220px; }
}


/* tap targets: 44px hit areas on small links without moving the layout */
.table dd a, .tb__v a, .crumbs a, .row__meta, .or .tel, .foot__cols ul a, .head__meta a { display: inline-block; padding-top: 12px; padding-bottom: 12px; margin-top: -12px; margin-bottom: -12px; }
.row__name a { display: inline-block; padding: 8px 0; margin: -8px 0; }
.row__meta { margin-top: -5px; }
.area-list { columns: 2 130px; }

/* small screens: detail pages keep their plate; the shop page shows its photos inline */
.block__photo { display: none; }
@media (max-width: 900px), (hover: none) {
  .index--detail .frame { display: block; max-width: 460px; }
  .index--detail .preview { order: -1; }
  .block__photo { display: block; margin: 0 0 18px; max-width: 460px; border: 1px solid var(--rule-strong); background: var(--sheet); }
  .block__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .block__photo figcaption { padding: 10px 14px; border-top: 1px solid var(--rule-strong); font: 400 .875rem/1.45 var(--mono); }
}
