/* Hallmark · shape: Feature Stack (ordered by the brief's six sequences) · genre: atmospheric · theme: Midnight (deal 2/3, seed premium-automotive-showroom-sports-dd30·75e0439e·2026-11-06·r0) · job: visit · draw: 51729e
 * hero: Stage · nav: masthead · footer: mast · imagery: photographs, the shop's own 11, mono, customers' cars and the closing facade in full colour (facade by client request) · signature: the shop's wall of wheels zooms into one wheel and turns into the AMG GT in colour as you scroll
 * axes: dark/grotesk-sans/neutral · posture: committed · contrast: pass · fold: pass · brand: Marcel Rodas e Pneus (spec 2026-11-06) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a wall of wheels could front any wheel shop; made it this shop's by using only its own photos and keeping colour for the customer's car */
/* Hallmark · waive 83 · 41% at 1440, the photo-led sections never touch: detail, rows, rail, figure, quote band, facade · the brief makes the customers' cars the protagonists and the rail is this wheel shop's portfolio */
/* Hallmark · hero-review: not run, page built in one pass · finish-review: subagent · 8 findings · 7 resolved 1 partial · gap: the signature photos are 800 to 1024px sources, softness eased by a 2:1 frame capped at 800px and a 1.6x zoom, fixed only by new originals */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 72px; }
@media (max-width: 60rem) { :root { --nav-h: 64px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- chrome ---------- */
.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-toast); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-paper); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

.masthead { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); transition: transform var(--dur-short) var(--ease-out); }
.masthead.is-hidden { transform: translateY(-100%); }
.masthead__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-md); min-height: var(--nav-h); }
.masthead__nav { justify-self: start; }
.masthead__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.masthead__links a { color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; text-decoration: none; text-underline-offset: 0.3em; }
.masthead__links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.masthead__menu { display: none; min-height: 40px; padding: 0 var(--space-sm); background: none; border: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.masthead__menu:hover { background: var(--color-paper-2); }
.masthead__menu:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.masthead__cta { justify-self: end; }

.brand { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; }
.brand img { width: 36px; height: auto; }
.brand__name { font-weight: 500; font-size: var(--text-md); line-height: 1.1; white-space: nowrap; }
.brand__sub { color: var(--color-muted); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid transparent; border-radius: var(--radius-pill); background: none; color: var(--color-ink); 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), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); }
.btn--quiet { border-color: var(--color-rule-2); }
.btn--quiet:hover { background: var(--color-paper-2); }
.btn--small { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn--icon { width: 48px; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* WhatsApp flutuante: o mesmo vermelho da ação principal, ícone oficial (Simple Icons 16.36.0) */
.wa-fab { position: fixed; right: max(var(--space-md), env(safe-area-inset-right)); bottom: max(var(--space-md), env(safe-area-inset-bottom)); z-index: var(--z-sticky); display: grid; place-items: center; width: 56px; height: 56px; background: var(--color-accent); color: var(--color-accent-ink); box-shadow: var(--shadow-card); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.wa-fab svg { width: 28px; height: 28px; fill: currentColor; }
.wa-fab:hover { background: var(--color-accent-2); }
.wa-fab:active { transform: translateY(1px); }
.wa-fab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
@media (min-width: 60rem) { .wa-fab { right: var(--space-lg); bottom: var(--space-lg); } }

.row__link, .project__link { color: var(--color-ink-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.3em; transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.row__link:hover, .project__link:hover { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.row__link:focus-visible, .project__link:focus-visible, .rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }

/* ---------- display type ---------- */
h1, h2, .row__title, .story__year, .mast__word { font-weight: var(--display-weight); font-stretch: var(--display-stretch); }
h1 { max-width: none; font-size: clamp(2.5rem, 4.6vw, 4.5rem); line-height: 1.04; }
h1 span { display: block; white-space: nowrap; }
h2 { line-height: 1.04; }
h3 { font-weight: 500; }

/* photographs that keep their own colour: the customer's car */
[data-tone="natural"]:has(> img) { background: var(--color-paper-2); }
[data-tone="natural"] > img { filter: none; mix-blend-mode: normal; }
[data-tone="natural"]::before { content: none; }

/* ---------- hero (Stage) ---------- */
.hero { display: grid; align-items: center; min-height: calc(100svh - var(--nav-h)); padding-block: var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero .lead { color: var(--color-ink-2); max-width: 34ch; }
.hero__visual { margin: 0; aspect-ratio: 5 / 4; max-height: 72svh; width: 100%; }
.settle { animation: settle var(--dur-long) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes settle { from { opacity: 0.6; } }

/* ---------- the detail: wall of wheels to the car ---------- */
.detail { padding-top: var(--section-gap); }
.detail__pane { display: grid; align-items: center; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: center; }
.detail__copy { display: grid; gap: var(--space-lg); }
.detail__lines { margin: 0; font-size: var(--text-title); line-height: 1.35; color: var(--color-ink-2); }
.detail__lines span { display: block; }
.detail__stage { margin: 0; display: grid; gap: var(--space-sm); }
.detail__frame { position: relative; aspect-ratio: 2 / 1; max-width: 800px; overflow: hidden; background: var(--color-paper-2); }
.detail__layer { position: absolute; inset: 0; }
.detail__caption { color: var(--color-muted); font-size: var(--text-sm); }
.motion .detail__track { height: 320svh; }
.motion .detail__pane { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); }

/* ---------- ranges: hairline rows ---------- */
.ranges { padding-block: var(--section-gap) var(--section-gap-s); }
.rows { margin: var(--space-2xl) 0 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.row__title { max-width: none; font-size: clamp(2rem, 2.6vw + 0.75rem, 3.25rem); line-height: 1.05; letter-spacing: var(--tracking-display); }
.row__text { color: var(--color-ink-2); max-width: 44ch; }
.row__link { justify-self: end; }
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- projects: a rail ---------- */
.projects { padding-block: var(--section-gap-s) var(--section-gap); }
.projects__head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.projects__controls { display: flex; gap: var(--space-xs); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(18rem, 36vw, 34rem); gap: var(--gap-columns); margin: 0; padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) var(--space-md); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); overscroll-behavior-x: contain; scrollbar-width: thin; }
.project { display: grid; gap: var(--space-sm); align-content: start; scroll-snap-align: start; }
.project__photo { margin: 0 0 var(--space-xs); aspect-ratio: 800 / 405; }
.project__photo > .project__color { z-index: 2; filter: none; mix-blend-mode: normal; transition: opacity var(--dur-long) var(--ease-out); }
.js .project__color { opacity: 0; }
.js .project.is-active .project__color, .js .project:hover .project__color, .js .project:focus-within .project__color { opacity: 1; }
.project__name { font-size: var(--text-title); }

/* ---------- story: a figure as the statement ---------- */
.story { padding-block: var(--section-gap-l); }
.story__figure { display: grid; gap: var(--space-sm); }
.story__unit { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.story__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: end; }
.story__year { margin: 0; font-size: clamp(5.5rem, 16vw, 14rem); line-height: 0.82; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.story__text { display: grid; gap: var(--space-md); }
.story__text p { color: var(--color-ink-2); max-width: 46ch; }
.story__text h2 { margin-bottom: var(--space-xs); }

/* ---------- quote: the band ---------- */
.quote { padding-block: var(--section-gap); background: var(--color-paper-2); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: start; }
.quote__intro { display: grid; gap: var(--space-md); }
.quote__intro p { color: var(--color-ink-2); max-width: 36ch; }
.quote__form { display: grid; gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .quote__label { padding: 0; color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.field input, .field select { min-height: 48px; padding: 0 var(--space-sm); background: var(--color-paper); color: var(--color-ink); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-card); transition: border-color var(--dur-short) var(--ease-out); }
.field input::placeholder { color: var(--color-muted); }
.field input:hover, .field select:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg label { position: relative; display: grid; color: var(--color-ink); font-size: var(--text-md); cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 48px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); text-align: center; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg label + label span { border-left-color: transparent; }
.seg label:hover span { background: var(--color-paper-3); }
.seg input:checked + span { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.quote__preview { display: grid; gap: var(--space-xs); padding: var(--space-md); background: var(--color-paper); }
.quote__preview p:last-child { color: var(--color-ink); }
.quote__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.quote__note { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- visit ---------- */
.visit { padding-top: var(--section-gap); }
.visit__photo { margin: 0; aspect-ratio: 1600 / 756; max-height: 72svh; width: 100%; }
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); padding-block: var(--space-2xl) var(--section-gap); align-items: start; }
.visit__info { display: grid; gap: var(--space-xl); justify-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); margin: 0; width: 100%; }
.facts dt { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.facts dd { margin: var(--space-2xs) 0 0; font-size: var(--text-lg); }
.facts a { text-decoration-color: var(--color-rule-2); }
.facts a:hover { text-decoration-color: var(--color-accent); }

/* ---------- footer: mast ---------- */
.mast { padding-block: var(--space-3xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.mast__word { margin: 0 0 var(--space-xl); font-size: clamp(2.25rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -0.02em; }
.mast__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin: 0 0 var(--space-xl); padding: 0; list-style: none; }
.mast__links a { color: var(--color-ink-2); text-decoration-color: var(--color-rule-2); }
.mast__links a:hover { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.mast__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- under 60rem ---------- */
@media (max-width: 72rem) {
  .masthead__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .brand { justify-self: center; }
  .js .masthead__menu { display: inline-flex; align-items: center; }
  .masthead__links { flex-wrap: wrap; gap: var(--space-xs) var(--space-md); }
  .js .masthead__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: var(--space-xs) var(--gutter) var(--space-md); background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .js .masthead__links.is-open { display: flex; }
  .js .masthead__links a { display: block; padding: var(--space-sm) 0; font-size: var(--text-md); }
}
@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: var(--space-xl) var(--space-2xl); }
  .hero__grid, .detail__grid, .story__grid, .quote__grid, .visit__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero__visual { aspect-ratio: 4 / 3; }
  .detail__grid { gap: var(--space-lg); }
  .detail__frame { aspect-ratio: 4 / 3; }
  .detail__layer--car > img { object-position: 38% 50%; }
  .motion .detail__track { height: 240svh; }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .row__link { justify-self: start; }
  .rail { grid-auto-columns: 84%; }
  .story__grid { gap: var(--space-lg); }
}
@media (max-width: 40rem) {
  .brand__sub { display: none; }
  .brand img { width: 32px; }
  .masthead__bar { gap: var(--space-xs); }
  .projects__head { align-items: start; flex-direction: column; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .seg { grid-template-columns: minmax(0, 1fr); }
  .seg label + label span { border-left-color: var(--color-rule-2); border-top-color: transparent; }
}
