/* Hallmark · shape: Feature Stack · genre: editorial · theme: Specimen (deal 3/3, seed luxury-pre-owned-car-showroom-a137·85641cc5·2026-11-18·r0) · job: visit · draw: 27a4e5 · brand: Triple Two Motors (spec 2026-11-18, black and chrome)
 * hero: Stage · nav: edge-aligned · footer: mast · imagery: the showroom's own listing photographs, in true colour · signature: the gold-striped 911 GT3 outside their own door, turned by hand
 * axes: light/high-contrast-serif/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a showroom argues by order: the four 911s first, then the collection, then everything by budget */
/* Hallmark · swap · the draw's dated rows have no dates here, so the brand-new cars take those rows */
/* Hallmark · answered F4 · the filled ink states belong to the booking dialog, its own page, where the chosen day and tab must read as chosen */
/* Hallmark · answered F15 · the dialog keeps tighter gaps for its fields; page sections use the column gap and the split gap */
/* Hallmark · waive 83 · the finder and the collection rail show the showroom's own photographs · the cars on the floor are what a visitor came to see */
@import url("./tokens.css");
@import url("./base.css");

h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.02; }
h1, h2 { font-variation-settings: "opsz" var(--display-optical); }
h3 { font-optical-sizing: auto; line-height: 1.15; }
body { color: var(--color-ink-2); }
a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* controls: ink rectangle beside an outlined one */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: 0; font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-ink-2); }
.btn--secondary { background: transparent; color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn--sm { min-height: 44px; font-size: var(--text-sm); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.k-btn { border-radius: 0; }
.k-btn.k-pri { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.k-btn.k-pri:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }

/* the visit job's action: open now, held at the top */
.open { position: sticky; top: 0; z-index: var(--z-sticky-nav); display: flex; justify-content: center; align-items: center; gap: var(--space-md); padding: var(--space-2xs) var(--space-md); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.open p { font-size: var(--text-sm); color: var(--color-ink); }

/* nav: edge-aligned */
.nav__in { display: flex; justify-content: space-between; align-items: center; min-height: 80px; gap: var(--space-lg); }
.nav__mark img { height: 56px; width: auto; }
.nav nav { display: flex; gap: var(--space-lg); }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); text-decoration: none; }
.nav nav a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }

/* hero: stage */
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; min-height: calc(100dvh - 140px); padding-block: var(--space-xl); }
.hero h1 { font-size: clamp(3rem, 5vw + 1rem, 5.75rem); }
.hero .lead { margin-top: var(--space-lg); }
.hero__act { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__fig { margin: 0; }
.hero__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
.hero__fig figcaption { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.hero__vid { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-ink); color: var(--color-paper); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
html:not(.js) [data-loop-toggle] { display: none; }
@media (prefers-reduced-motion: reduce) { [data-loop-toggle] { display: none; } }

/* sections */
.sec { padding-block: var(--section-gap); }
.sec--rule { border-top: var(--rule-hair) solid var(--color-rule); }
.sec--top0 { padding-top: 0; }
.head { margin-bottom: var(--space-2xl); }
.head h2 { color: var(--color-ink); }
.head--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; }

/* the 911s as a ruled table under the double rule */
.fall { width: 100%; margin-top: var(--space-2xl); border-collapse: collapse; border-top: 3px double var(--color-rule-2); }
.fall th { text-align: left; font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.fall td { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); vertical-align: baseline; }
.fall td:first-child, .fall td:nth-child(3) { font: 400 var(--text-sm)/1.3 var(--font-outlier); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.fall td:nth-child(2) { font: 400 var(--text-xl)/1.2 var(--font-display); color: var(--color-ink); }
.fall td:last-child { font: 400 var(--text-lg)/1.2 var(--font-display); color: var(--color-ink); font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.fall th:last-child { text-align: right; }

/* the collection as a rail */
.rail { list-style: none; margin: 0; padding: 0 var(--gutter) var(--space-lg); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(17rem, 26%); gap: var(--gap-columns); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; scrollbar-color: var(--color-rule-2) transparent; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.rail > li { scroll-snap-align: start; display: grid; gap: var(--space-2xs); align-content: start; }
.rail .ph { display: block; padding: 0; border: 0; background: var(--color-paper-2); cursor: pointer; margin-bottom: var(--space-sm); transition: opacity var(--dur-short) var(--ease-out); }
.rail .ph:hover { opacity: 0.86; }
.rail .ph:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.rail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }
.rail h3 { font-size: var(--text-xl); color: var(--color-ink); }
.rail .pr { font: 400 var(--text-sm)/1.3 var(--font-outlier); color: var(--color-muted); font-variant-numeric: tabular-nums; }

/* brand new rows */
.rows { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.rows__list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.rows__list li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) auto; gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows__list .nm { font: 400 var(--text-xl)/1.2 var(--font-display); color: var(--color-ink); }
.rows__list .pr { font: 400 var(--text-sm)/1.3 var(--font-outlier); color: var(--color-muted); font-variant-numeric: tabular-nums; }

/* footer: mast */
.foot { border-top: var(--rule-hair) solid var(--color-ink); padding-block: var(--space-3xl) var(--space-2xl); }
.foot__mast { font: 400 clamp(4rem, 13vw, 12rem)/0.9 var(--font-display); font-variation-settings: "opsz" 96; letter-spacing: -0.03em; color: var(--color-ink); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); margin-top: var(--space-xl); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.foot__legal { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); max-width: 80ch; }

@media (max-width: 60rem) {
  .nav nav { display: none; }
  .hero__grid, .head--split, .rows, .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: var(--space-xl); min-height: 0; }
  .head--split { gap: var(--space-md); }
  .rail { grid-auto-columns: minmax(15rem, 74%); }
  .rows__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .rows__list li .pr { grid-column: 1; }
  .fall td:nth-child(3), .fall th:nth-child(3) { display: none; }
  .open { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .btn, .rail .ph { transition: none; } }
