@font-face { font-family: "Big Shoulders Display"; src: url(../fonts/big-shoulders-display-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url(../fonts/big-shoulders-display-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* Palette sampled from the storefront (g02): painted brick, the board's charcoal and red, the bay signs' blue */
:root {
  --ground: #EDECE7;
  --ground-2: #E3E2DC;
  --board: #F7F7F4;
  --ink: #1C1D21;
  --muted: #575C62;
  --red: #B5232D;
  --red-hover: #9E1C25;
  --blue: #283582;
  --on-blue: #E6E8F2;
  --on-blue-muted: #B9BFDB;
  --pave: #1C1D21;
  --on-pave: #ECECE8;
  --on-pave-muted: #B3B6BB;

  --pad: clamp(16px, 2.4vw, 32px);
  --anchor: 42%;
  --nav-h: 64px;
  --gap-section: clamp(88px, 12vw, 200px);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;

  --settle: cubic-bezier(.22, 1, .36, 1);
  --inout: cubic-bezier(.65, 0, .25, 1);
  --t-control: 220ms;
  --t-enter: 900ms;
  --t-scene: 1200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--text); caret-color: var(--red); }
::selection { background: var(--blue); color: var(--on-blue); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(3rem, 6.4vw, 6rem); margin-bottom: clamp(24px, 3vw, 40px); }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--pad); top: -60px; z-index: 30; background: var(--blue); color: var(--on-blue); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.need { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Buttons: flat and square, like the board */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; font: 800 20px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; border: 0; border-radius: 0; cursor: pointer; transition: transform 160ms ease-out, background-color 200ms ease; white-space: nowrap; font-variant-numeric: tabular-nums; }
.btn--call { background: var(--red); color: #fff; }
.btn:active, .motion:active { transform: scale(0.97); }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.link--light { color: var(--on-pave); }
@media (hover: hover) and (pointer: fine) {
  .btn--call:hover { background: var(--red-hover); }
  .link:hover, .nav__links a:hover { text-decoration-thickness: 2px; }
}

/* Nav: on the brick ground, never over the photo */
.nav { display: flex; align-items: center; gap: 28px; height: var(--nav-h); padding: 0 var(--pad); background: var(--ground); }
.nav__mark { font: 800 28px/1 var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: 0.01em; color: var(--red); }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; min-height: 44px; display: inline-flex; align-items: center; transition: text-decoration-color 200ms ease; }
.motion { min-height: 44px; padding: 0 4px; background: none; border: 0; font: 500 15px/1 var(--text); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; transition: transform 160ms ease-out; }
.nav__call { gap: 0.3em; min-height: 44px; font-size: 18px; padding: 0 16px; }

/* Hero: the real storefront full-bleed, the copy set on the wet pavement below the bays */
.hero { position: relative; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); display: grid; align-items: end; background: var(--pave); color: var(--on-pave); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; margin: 0; }
.hero__photo img, .hero__photo picture { width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 50% 30%; transition: transform var(--t-scene) var(--settle), opacity var(--t-scene) var(--settle); }
.hero__photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, rgba(28, 29, 33, 0) 0%, rgba(28, 29, 33, 0.72) 48%, rgba(28, 29, 33, 0.94) 100%); } /* taste-skill-ignore: neutral scrim over the photo */
.is-loading .hero__photo img { transform: scale(1.04); opacity: 0.6; }
.hero__copy { position: relative; padding: 0 var(--pad) clamp(28px, 5vh, 56px); max-width: 100%; }
.hero h1 { font-size: clamp(3.6rem, 8.2vw, 8.6rem); color: var(--board); max-width: 12ch; }
.hero__line { font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; margin: 16px 0 10px; max-width: 44ch; }
.hero__meta { margin: 0 0 22px; color: var(--on-pave-muted); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.status.is-open .status__dot { background: #3DBE6A; opacity: 1; }
.status.is-open { color: var(--on-pave); }
.status--ink, .status--ink.is-open { color: var(--ink); }
.status--ink.is-open .status__dot { background: #1E8A45; }

/* Hours: the bay-sign blue as a full field, the week as bars */
.hours { background: var(--blue); color: var(--on-blue); padding: var(--gap-section) var(--pad); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 96px); align-items: start; }
.hours h2 { color: var(--on-blue); font-size: clamp(3rem, 5.6vw, 5.6rem); }
.hours__lead { font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; max-width: 28ch; }
.hours__now { font: 700 clamp(26px, 2.6vw, 36px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; margin: 28px 0 28px; font-variant-numeric: tabular-nums; }
.clock { margin: 0; padding-top: 12px; }
.clock__rows { display: grid; gap: 10px; }
.clock__row, .clock__scale { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 14px; }
.clock__day { font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: var(--on-blue-muted); }
.clock__track { position: relative; height: 34px; background: rgba(230, 232, 242, 0.1); }
.clock__span { position: absolute; top: 0; bottom: 0; left: calc(var(--from) / 24 * 100%); width: calc((var(--to) - var(--from)) / 24 * 100%); background: var(--on-blue); opacity: 0.82; transform-origin: left center; transition: transform var(--t-enter) var(--settle); }
.clock__row.is-today .clock__day { color: var(--on-blue); }
.clock__row.is-today .clock__span { opacity: 1; }
.clock__needle { position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1px; background: var(--red); }
.clock__ticks { display: flex; justify-content: space-between; font-size: 13px; color: var(--on-blue-muted); font-variant-numeric: tabular-nums; }
.clock figcaption { margin-top: 18px; font-size: 15px; color: var(--on-blue-muted); }
.js-clock .clock__rows.is-pending .clock__span { transform: scaleX(0.96); }
.hours__quote { grid-column: 2; margin: 8px 0 0; max-width: 46ch; }
.hours__quote p { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; margin-bottom: 10px; }
.hours__quote footer { font-size: 15px; color: var(--on-blue-muted); }
.hours__quote .need { color: var(--on-blue-muted); display: block; margin-top: 6px; }

/* The bays: each row headed like the blue bay signs */
.bays { padding: var(--gap-section) var(--pad); }
.bays__head { display: grid; grid-template-columns: var(--anchor) 1fr; align-items: end; gap: 24px; margin-bottom: clamp(56px, 7vw, 104px); }
.bays__head h2 { margin: 0; }
.bays__intro { font-size: clamp(18px, 1.5vw, 21px); max-width: 44ch; margin: 0; }
.plate { display: inline-block; background: var(--board); color: var(--blue); font-size: clamp(2.2rem, 3.6vw, 3.4rem); padding: 10px 16px 8px; margin: 0 0 22px; letter-spacing: 0.02em; }
.plate--red { color: var(--red); }
.bay { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 88px); padding: clamp(56px, 6vw, 96px) 0; align-items: start; }
.bay__text { max-width: 58ch; }
.bay__text > p:first-of-type { font-size: 18px; }
.q { margin: 22px 0; }
.q p { font-size: 19px; line-height: 1.45; margin-bottom: 6px; }
.q footer { font-size: 14px; color: var(--muted); }
.bay__photo { margin: 0; }
.bay__photo img { width: 100%; object-fit: cover; }
.bay__photo figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.bay--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
.bay--wide .bay__photo--land img { aspect-ratio: 4 / 3; object-position: 30% 50%; }
.bay__photo--port img { aspect-ratio: 4 / 5; object-position: 50% 60%; }
.bay--wide .bay__photo--port { align-self: end; }
.bay--tires { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--ground-2); margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }
.bay--tires .bay__text { grid-column: 2; grid-row: 1; align-self: center; }
.bay--tires .bay__photo { grid-column: 1; grid-row: 1; max-width: 520px; justify-self: end; }
.bay-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 5vw, 88px); }
.bay--half { display: block; }
.js-reveal [data-reveal].is-pending img { clip-path: inset(0 0 100% 0); }
.js-reveal [data-reveal] img { clip-path: inset(0); transition: clip-path var(--t-scene) var(--settle); }
.js-reveal [data-rise] { transition: opacity var(--t-enter) var(--settle), transform var(--t-enter) var(--settle); }
.js-reveal [data-rise].is-pending { opacity: 0; transform: translateY(28px); }

/* Reviews: one statement and the score */
.reviews { padding: var(--gap-section) var(--pad); background: var(--pave); color: var(--on-pave); }
.reviews h2 { color: var(--on-pave); }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 112px); align-items: start; }
.reviews__lead { margin: 0; }
.reviews__lead p { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; font-weight: 500; max-width: 26ch; margin-bottom: 18px; }
.reviews__lead footer { color: var(--on-pave-muted); font-size: 15px; }
.score { display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px; }
.score__n { font: 800 clamp(5rem, 9vw, 8rem)/0.85 var(--display); color: var(--board); }
.score__of { font-size: 17px; color: var(--on-pave-muted); }
.reviews__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 22px; }
.reviews__list p { margin: 0 0 4px; font-size: 18px; }
.reviews__list span { font-size: 14px; color: var(--on-pave-muted); }
.reviews .muted { color: var(--on-pave-muted); }

/* Visit: the address as graphic type */
.visit { padding: var(--gap-section) var(--pad) calc(var(--gap-section) * 0.8); }
.visit__street { font: 800 clamp(4rem, 13.4vw, 15rem)/0.86 var(--display); text-transform: uppercase; letter-spacing: -0.005em; margin: 0 0 clamp(40px, 5vw, 72px); color: var(--ink); display: flex; flex-wrap: wrap; column-gap: 0.25em; }
.visit__street span:first-child { color: var(--red); }
.visit__grid { display: grid; grid-template-columns: var(--anchor) minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px clamp(32px, 4vw, 64px); align-items: start; }
.visit__addr { font: 700 clamp(28px, 2.6vw, 38px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.visit__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 24px; }
.table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 10px 12px; font-size: 17px; }
.table th { font-weight: 500; }
.table td { text-align: right; }
.table tr:nth-child(odd) { background: var(--ground-2); }
.table tr.is-today { background: var(--blue); color: var(--on-blue); }
.table tr.is-today th { font-weight: 600; }
.visit__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.visit__facts li { font-size: 17px; }

/* Footer: the board's bottom line */
.foot { background: var(--pave); color: var(--on-pave); padding: clamp(64px, 8vw, 120px) var(--pad) calc(40px + env(safe-area-inset-bottom)); }
.foot__board { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font: 800 clamp(2.4rem, 6vw, 6rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 28px; }
.foot__board a { text-decoration: none; font-variant-numeric: tabular-nums; }
.foot__board span:nth-child(2) { color: var(--on-pave-muted); }
.foot__name { font-weight: 600; margin-bottom: 8px; }
.foot__note { font-size: 14px; color: var(--on-pave-muted); max-width: 70ch; margin: 0; }

/* Phone bar */
.bar { display: none; }

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .motion { margin-left: auto; }
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .visit__where { grid-column: 1 / -1; }
}

@media (max-width: 759px) {
  :root { --nav-h: 58px; }
  body { font-size: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .nav { gap: 12px; }
  .nav__mark { font-size: 24px; }
  .hide-s { display: none; }
  .hero { min-height: 0; display: block; }
  .hero__photo { position: relative; inset: auto; }
  .hero__photo img { height: auto; aspect-ratio: 1 / 1; object-position: 50% 50%; }
  .hero__photo::after { display: none; }
  .hero__copy { padding: 26px var(--pad) 40px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero__line { font-size: 17px; margin-top: 12px; }
  .hours { grid-template-columns: 1fr; }
  .hours__quote { grid-column: 1; }
  .clock__row, .clock__scale { grid-template-columns: 40px 1fr; gap: 10px; }
  .clock__day { font-size: 17px; }
  .clock__track { height: 26px; }
  .clock__ticks { font-size: 12px; }
  .clock__ticks span:nth-child(2), .clock__ticks span:nth-child(4) { visibility: hidden; }
  .bays__head, .bay, .bay--wide, .bay--tires, .bay-pair, .reviews__grid, .visit__grid { grid-template-columns: 1fr; }
  .bay-pair { gap: 0; }
  .bay__text, .bay--tires .bay__text, .bay--tires .bay__photo { grid-column: 1; grid-row: auto; }
  .bay--wide .bay__photo--land img { aspect-ratio: 4 / 3; }
  .bay--wide .bay__photo--port { width: 72%; }
  .bay--tires .bay__photo { width: 86%; }
  .plate { font-size: 2.1rem; }
  .visit__street { font-size: clamp(2.6rem, 12.6vw, 4rem); }
  .foot__board { justify-content: flex-start; gap: 4px 0.4em; font-size: clamp(1.6rem, 7.4vw, 2.2rem); }
  .bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; gap: 12px; align-items: center; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--ground); box-shadow: 0 -6px 18px rgba(28, 29, 33, 0.12); transition: transform 250ms var(--settle); } /* taste-skill-ignore: sticky bar overlay */
  .bar .btn { flex: 1; }
  .bar__link { min-height: 50px; display: inline-flex; align-items: center; padding: 0 8px; font-weight: 600; text-decoration: underline; }
  .bar.is-away { transform: translateY(110%); transition-duration: 150ms; }
}

/* Motion off (toggle or OS setting): no movement; colour and opacity still change */
.still *, .still *::before, .still *::after { transition-property: opacity, color, background-color !important; animation: none !important; }
.still .hero__photo img { transform: none !important; }
.still [data-reveal] img, .still .is-pending img { clip-path: none !important; }
.still .clock__span { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-property: opacity, color, background-color !important; animation: none !important; scroll-behavior: auto !important; }
  .hero__photo img { transform: none !important; }
  [data-reveal] img { clip-path: none !important; }
  .clock__span { transform: none !important; }
}
