/* emmediauto - a workshop manual in two colours: Bosch blue, brake-light red. */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../assets/fonts/literata-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --paper-2: #eef2f6;
  --ink: #0e1c27;
  --ink-soft: #4b5967;
  --navy: #002942;
  --navy-2: #0b3a58;
  --blue: #4384c6;
  --blue-ink: #001b2c;
  --red: #ea211e;
  --action: #c8170f;
  --action-strong: #a31008;
  --green: #17803a;

  --serif: "Literata", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-head: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --step-display: clamp(3rem, 0.8rem + 5vw, 5.75rem);

  --m: clamp(16px, 2.2vw, 32px);
  --axis: 42vw;
  --gap-section: clamp(96px, 12vw, 200px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-hover: 180ms;
  --t-press: 120ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans), sans-serif; font-size: var(--step-body); line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
header, main, footer { overflow-x: clip; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif), serif; font-optical-sizing: auto; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--m); top: var(--m); z-index: 10; background: var(--paper); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.head { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.45; }

/* Buttons: square, one fill. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border: 2px solid var(--action); border-radius: 0;
  background: var(--action); color: #fff;
  font: 600 var(--step-body)/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button-ink { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.button-line { background: transparent; border-color: currentColor; color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--action-strong); border-color: var(--action-strong); }
  .button-ink:hover { background: var(--red); border-color: var(--red); color: #fff; }
  .button-line:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
}
.link { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- Header: wordmark, three links, one action ---------- */
.bar { display: flex; align-items: center; gap: 32px; height: 76px; padding: 0 var(--m); background: var(--paper); }
.bar-logo { flex: none; }
.bar-logo img { width: clamp(180px, 19vw, 270px); }
.bar-nav { display: flex; gap: clamp(20px, 2.4vw, 40px); margin-left: auto; }
.bar-nav a { font-weight: 600; text-decoration: none; color: var(--ink); text-underline-offset: 0.3em; }
@media (hover: hover) and (pointer: fine) { .bar-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); } }
.bar-call { min-height: 46px; padding: 0 18px; }

/* ---------- Hero: title left, the car on a blue field right ---------- */
.hero { display: grid; grid-template-columns: 46vw 1fr; min-height: calc(100svh - 76px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px 40px 64px var(--m); }
.display { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.035em; }
.lines .line { display: block; white-space: nowrap; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.standfirst { margin-top: 28px; font-size: var(--step-lead); line-height: 1.45; max-width: 30ch; }
.status { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: var(--step-body); font-weight: 600; }
.status-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.status.is-open .status-dot { background: var(--green); }
.status.is-open { color: var(--green); }
.status.is-closed .status-dot { background: var(--action); }
.status.is-closed { color: var(--action); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.garage { position: relative; background: var(--blue); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3vh, 36px); padding: 40px clamp(24px, 4vw, 64px) 48px; overflow: clip; }
.scan-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.scan-tabs button {
  min-height: 46px; padding: 0 20px; border: 0; border-radius: 0; cursor: pointer;
  background: rgba(0, 27, 44, 0.16); color: var(--blue-ink); font: 600 var(--step-body) var(--sans);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.scan-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
@media (hover: hover) and (pointer: fine) { .scan-tabs button[aria-selected="false"]:hover { background: rgba(0, 27, 44, 0.3); } }
.scan-tabs button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.scan { position: relative; width: 100%; max-width: 980px; margin: 0 auto; aspect-ratio: 492 / 282; touch-action: pan-y; }
.scan img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan-layer { clip-path: inset(0 calc(100% - var(--scan)) 0 0); opacity: 0; transition: opacity 300ms ease; }
.scan[data-layer="meccanica"] .scan-layer[data-for="meccanica"],
.scan[data-layer="elettronica"] .scan-layer[data-for="elettronica"] { opacity: 1; }
.scan-line { position: absolute; top: -4%; bottom: -4%; left: var(--scan); width: 4px; margin-left: -2px; background: var(--red); pointer-events: none; transition: opacity 300ms ease; }
.scan-grip { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--red); border: 4px solid #fff; }
.scan[data-layer="carrozzeria"] .scan-line { opacity: 0; }
.scan-range { position: absolute; inset: -4% 0; width: 100%; height: 108%; margin: 0; opacity: 0; cursor: ew-resize; }
.scan-range:focus-visible + .scan-line, .scan:has(.scan-range:focus-visible) .scan-grip { outline: 3px solid #fff; outline-offset: 3px; }
.scan.is-animating .scan-layer { transition: opacity 300ms ease, clip-path 900ms var(--ease-in-out); }
.scan.is-animating .scan-line { transition: opacity 300ms ease, left 900ms var(--ease-in-out); }
.scan-hint { font-weight: 600; color: var(--blue-ink); }
.scan-panels { min-height: 168px; }
.scan-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.scan-panel li { position: relative; padding-left: 22px; font-size: var(--step-body); line-height: 1.4; color: var(--blue-ink); font-weight: 600; }
.scan-panel li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 10px; height: 10px; background: #fff; }

/* ---------- Services: comparison set as text ---------- */
.services { padding: var(--gap-section) var(--m) 0; }
.services > .head, .services-lead { margin-left: calc(var(--axis) - var(--m)); }
.services-lead { margin-top: 20px; margin-bottom: 72px; font-size: var(--step-lead); line-height: 1.45; max-width: 36ch; }
.compare { display: grid; }
.compare-row { --r: 0; display: grid; grid-template-columns: 5fr 3.5fr 3.5fr; min-height: 68px; }
.compare-row:nth-child(even) { background: var(--paper-2); }
.compare-row > span { padding: 16px 20px; display: flex; align-items: center; }
.c-name { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; }
.c-us { color: #fff; background: var(--navy); font-weight: 500; }
.compare-row:nth-child(even) .c-us { background: var(--navy-2); }
.c-them { color: var(--ink-soft); }
.compare-top { min-height: 0; align-items: end; }
.compare-top > span { padding-top: 0; padding-bottom: 18px; font-weight: 700; }
.compare-top .c-us { padding-top: 24px; }
.compare-top .c-them { color: var(--ink); }

/* ---------- Revisione: navy field, the result is stamped on the libretto ---------- */
.revisione { margin-top: var(--gap-section); background: var(--navy); color: #c9d6e0; }
.field { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; row-gap: 48px; padding: clamp(72px, 9vw, 140px) var(--m); }
.field-copy { grid-column: 1 / 6; }
.field .head { color: #fff; }
.statement { margin-top: 24px; font-size: var(--step-lead); line-height: 1.45; max-width: 32ch; }
.statement a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--red); }
@media (hover: hover) and (pointer: fine) { .statement a:hover { text-decoration-color: #fff; } }
.rev { grid-column: 7 / 13; }
.rev-kind { border: 0; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.rev-kind legend { font-weight: 700; color: #fff; margin-bottom: 12px; padding: 0; }
.rev-kind label { position: relative; cursor: pointer; }
.rev-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rev-kind span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; background: var(--navy-2); color: #fff; font-weight: 600; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.rev-kind input:checked + span { background: #fff; color: var(--navy); }
.rev-kind input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .rev-kind label:hover input:not(:checked) + span { background: #174b70; } }
.rev-date { display: grid; grid-template-columns: 1fr 7.5em auto; align-items: end; gap: 8px; }
.rev-date label { display: grid; gap: 8px; font-weight: 700; color: #fff; font-size: var(--step-body); }
.rev-date select, .rev-date input { width: 100%; height: 52px; padding: 0 14px; border: 0; border-radius: 0; background: #fff; color: var(--ink); font: 500 var(--step-body) var(--sans); }
.rev-help { margin-top: 12px; }
.rev-out { display: block; }
.rev-out:empty { display: none; }

/* The libretto page with the stamp. */
.libretto { position: relative; margin-top: 28px; background: #f6f4ee; color: var(--ink); padding: 26px 28px 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.libretto-text strong { display: block; font-family: var(--serif), serif; font-size: var(--step-lead); font-weight: 500; line-height: 1.25; }
.libretto-text p { margin-top: 8px; }
.stamp {
  display: grid; justify-items: center; gap: 2px; padding: 12px 18px; min-width: 150px;
  border: 4px solid var(--action); color: var(--action); transform: rotate(-6deg);
  font-weight: 800; line-height: 1.05; text-align: center;
}
.stamp-word { font-size: 1rem; }
.stamp-date { font-size: 2rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.libretto.is-late .stamp { color: var(--navy); border-color: var(--navy); }

/* ---------- About ---------- */
.about { padding: var(--gap-section) var(--m) 0; }
.about-head { display: grid; grid-template-columns: calc(var(--axis) - var(--m)) minmax(0, 40ch); align-items: start; }
.about-head h2, .about-head .lead { grid-column: 2; }
.about-head .lead { margin-top: 24px; }
.facts { grid-column: 1; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; margin: 0; max-width: 380px; padding-top: 0.5em; }
.facts dt { font-size: var(--step-small); color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-family: var(--serif), serif; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.about-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 72px; }
.about-photo { grid-column: 1 / 8; aspect-ratio: 16 / 10; overflow: clip; background: var(--ground, #777); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.promise { grid-column: 8 / 13; background: var(--paper-2); padding: clamp(28px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.promise h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.promise ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.promise li { position: relative; padding-left: 26px; line-height: 1.45; }
.promise li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; background: var(--red); }
.promise strong { font-weight: 700; }

/* ---------- Contact: navy field, the phone number is the headline ---------- */
.contact { margin-top: var(--gap-section); background: var(--navy); color: #c9d6e0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; row-gap: 56px; padding: clamp(72px, 9vw, 140px) var(--m); }
.contact-main { grid-column: 1 / 7; }
.contact .head { color: #fff; }
.contact-phone { display: inline-block; margin-top: 28px; color: #fff; font-weight: 700; font-size: clamp(2.75rem, 1.2rem + 5vw, 5.5rem); letter-spacing: -0.03em; line-height: 1; text-decoration: none; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .contact-phone:hover { color: #9cc6ee; } }
.contact-lines { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font-size: var(--step-lead); }
.contact-lines a { color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact .button-line { color: #fff; }
@media (hover: hover) and (pointer: fine) { .contact .button-line:hover { background: #fff; border-color: #fff; color: var(--navy); } }
.contact-side { grid-column: 8 / 13; }
.contact-photo { aspect-ratio: 3 / 2; overflow: clip; background: var(--ground, #777); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-address { margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; }
.contact-address strong { color: #fff; font-weight: 600; }
.status-light { margin-top: 24px; }
.status-light.is-open { color: #5fd38a; }
.status-light.is-open .status-dot { background: #5fd38a; }
.status-light.is-closed { color: #ff8a85; }
.status-light.is-closed .status-dot { background: #ff8a85; }
.hours { width: 100%; margin-top: 16px; border-collapse: collapse; }
.hours th { text-align: left; font-weight: 600; color: #fff; padding: 12px 12px 12px 0; }
.hours td { padding: 12px 0 12px 12px; text-align: right; }
.hours tr { background: transparent; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; font-weight: 700; }
.hours tr.is-today th::after { content: " (oggi)"; font-weight: 500; color: #9cc6ee; }

/* ---------- Footer: photograph half, menu half ---------- */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 80svh; background: var(--paper-2); color: var(--ink); }
.foot-photo { overflow: clip; min-height: 60svh; background: var(--ground, #777); }
.foot-photo img { width: 100%; height: 100%; object-fit: cover; }
.foot-menu { display: grid; grid-template-rows: auto 1fr auto auto; padding: clamp(40px, 5vw, 72px) var(--m) var(--m) clamp(32px, 5vw, 72px); gap: 32px; }
.foot-menu nav { display: grid; justify-items: start; gap: 4px; }
.foot-menu nav a { color: var(--ink); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.18em; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .foot-menu nav a:hover { text-decoration-color: var(--red); } }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px 48px; align-self: end; line-height: 1.6; }
.foot-cols strong { font-weight: 700; }
.foot-privacy summary { cursor: pointer; font-weight: 600; }
.foot-privacy p { margin-top: 12px; max-width: 62ch; color: var(--ink-soft); }
.legal { font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 40px var(--m) 48px; }
  .garage { min-height: 70svh; }
  .field-copy { grid-column: 1 / 13; }
  .rev { grid-column: 1 / 13; max-width: 640px; }
  .contact-main, .contact-side { grid-column: 1 / 13; }
  .contact-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
  .contact-photo { grid-row: 1 / 4; }
  .contact-address { margin-top: 0; }
}
@media (max-width: 860px) {
  :root { --axis: var(--m); }
  .bar { height: 64px; gap: 16px; }
  .bar-nav { display: none; }
  .bar-call { margin-left: auto; }
  .display { font-size: clamp(2.9rem, 13vw, 5rem); }
  .garage { padding: 28px var(--m) 32px; min-height: 0; row-gap: 20px; }
  .scan-panel ul { grid-template-columns: 1fr; }
  .scan-tabs button { padding: 0 14px; }
  .services > .head, .services-lead { margin-left: 0; }
  .services-lead { margin-bottom: 40px; }
  .compare-top { display: none; }
  .compare-row { grid-template-columns: 1fr; padding: 18px 0 0; background: var(--paper); }
  .compare-row:nth-child(odd) { background: var(--paper-2); }
  .compare-row > span { padding: 0 16px; }
  .c-name { padding-bottom: 10px !important; font-size: 1.25rem; }
  .c-us { background: var(--navy) !important; padding: 12px 16px !important; display: block !important; }
  .c-us::before { content: "Da emmediauto: "; font-weight: 700; }
  .c-them { padding: 12px 16px 18px !important; display: block !important; }
  .c-them::before { content: "Altrimenti: "; font-weight: 700; color: var(--ink); }
  .rev-date { grid-template-columns: 1fr 1fr; }
  .rev-date .button { grid-column: 1 / 3; }
  .libretto { grid-template-columns: 1fr; }
  .stamp { justify-self: start; }
  .about-head { grid-template-columns: 1fr; }
  .about-head h2, .about-head .lead { grid-column: 1; }
  .facts { grid-column: 1; grid-row: 3; margin-top: 32px; padding-top: 0; }
  .about-body { grid-template-columns: 1fr; margin-top: 40px; gap: 0; }
  .about-photo, .promise { grid-column: 1; }
  .about-photo { aspect-ratio: 4 / 3; }
  .contact-side { display: block; }
  .contact-address { margin-top: 24px; }
  .foot { grid-template-columns: 1fr; min-height: 0; }
  .foot-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .foot-menu { padding: 40px var(--m) var(--m); }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) { .wide-only { display: none; } }

/* ---------- Motion (only with JS and without a reduced-motion preference) ---------- */
@keyframes line-up { to { transform: none; } }
@keyframes load-rise { to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(1.8); } 60% { opacity: 1; transform: rotate(-5deg) scale(0.94); } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
@keyframes slide-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@keyframes car-in { from { opacity: 0; transform: translateX(8%); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .js .scan { animation: car-in 1100ms var(--ease-out) 150ms both; }
  .scan-panel:not([hidden]) { animation: slide-in 400ms var(--ease-out); }
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 200ms); }
  .js [data-load] { opacity: 0; transform: translateY(12px); animation: load-rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }

  .status.is-open .status-dot::after, .status-light.is-open .status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--ease-out) infinite; }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-row] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--r, 0) * 60ms); }
  .js [data-row].is-in { opacity: 1; transform: none; }
  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 850ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.12); transition: transform 1300ms var(--ease-out); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }

  .libretto { animation: slide-in 450ms var(--ease-out); }
  .stamp { animation: stamp 520ms cubic-bezier(0.3, 1.4, 0.5, 1) 220ms both; }
  .foot-photo img { animation: drift 24s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.06) translateX(-1.5%); } to { transform: scale(1.06) translateX(1.5%); } }
}

.hours td { white-space: nowrap; }
@media (max-width: 480px) {
  .hours, .hours tbody, .hours tr { display: block; }
  .hours tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; }
  .hours tr + tr { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .hours th, .hours td { padding: 2px 0; border: 0 !important; }
  .hours th { grid-column: 1 / 3; }
  .hours td { text-align: left; }
}
@media (max-width: 520px) {
  .scan-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .scan-tabs button { padding: 0 6px; font-size: 1rem; }
}
.c-name { gap: 16px; }
.c-icon { width: 44px; height: 44px; flex: none; }
.compare-row.is-in .c-icon { animation: icon-in 600ms var(--ease-out) both; animation-delay: calc(var(--r, 0) * 60ms + 150ms); }
@keyframes icon-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .compare-row.is-in .c-icon { animation: none; } }
@media (max-width: 860px) { .c-icon { width: 36px; height: 36px; } .c-name { display: flex !important; align-items: center; } }
.narrow-only { display: none; }
@media (max-width: 480px) { .narrow-only { display: inline; } }
