/* Fonts are served from the site itself: remote fonts would need a consent banner (see CLAUDE.md). */
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #11151b;
  --muted: #5a6370;
  --paper: #ffffff;
  --band: #eef1f5;
  --rule: rgba(17, 21, 27, 0.16);
  /* Blaumann: the blue of workshop overalls. */
  --blau: #1e3d7b;
  --blau-deep: #142b59;
  /* Instrument panel. */
  --dash: #0c0f14;
  --dash-panel: #151a22;
  --unlit: #4a5361;
  --amber: #ffb000;
  --red: #ff3b30;
  --green: #2fb46a;
  --plate-red: #c8102e;
  --plate-blue: #003399;

  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 9vw, 7rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--condensed);
  font-weight: 700;
  line-height: 0.95;
}

h2 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  letter-spacing: -0.005em;
}

p {
  margin: 0;
  max-width: 60ch;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  color: inherit;
}

section[id] {
  scroll-margin-top: 1rem;
}

[hidden] {
  display: none !important;
}

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

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Number plate: the phone number, and the call button everywhere on the page. */

.plate {
  display: inline-flex;
  align-items: stretch;
  overflow: hidden;
  border: 0.06em solid #0b0d10;
  border-radius: 0.15em;
  background: linear-gradient(#ffffff, #f1f2f4);
  box-shadow: 0 0.05em 0 #0b0d10, 0 0.55em 0.9em -0.5em rgba(17, 21, 27, 0.55);
  color: #0b0d10;
  font-family: var(--condensed);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.045em;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  transition: transform 0.15s ease;
}

.plate:hover {
  transform: translateY(-2px);
}

.plate:active {
  transform: translateY(1px);
}

.plate__eu {
  display: grid;
  align-content: space-between;
  justify-items: center;
  width: 1.75em;
  padding: 0.5em 0 0.3em;
  background: var(--plate-blue);
  color: #ffffff;
  font-size: 0.3em;
  letter-spacing: 0;
}

/* The ring of stars on the EU band. */
.plate__eu i {
  width: 1em;
  height: 1em;
  border: 0.14em dotted #ffcc00;
  border-radius: 50%;
}

.plate__num {
  padding: 0.2em 0.36em 0.2em 0.3em;
  /* The red-white-red stripes along the top and bottom edge of an Austrian plate. */
  background:
    linear-gradient(var(--plate-red), var(--plate-red)) 0 0.045em / 100% 0.035em no-repeat,
    linear-gradient(var(--plate-red), var(--plate-red)) 0 0.115em / 100% 0.035em no-repeat,
    linear-gradient(var(--plate-red), var(--plate-red)) 0 calc(100% - 0.045em) / 100% 0.035em no-repeat,
    linear-gradient(var(--plate-red), var(--plate-red)) 0 calc(100% - 0.115em) / 100% 0.035em no-repeat;
}

.plate--small {
  font-size: 1.6rem;
}

.plate--big {
  font-size: clamp(2.9rem, 11vw, 4.75rem);
}

.plate--bar {
  font-size: 1.9rem;
}

.plate--inline {
  margin-left: 0.4rem;
  font-size: 1.6rem;
}

/* Header */

.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 76rem;
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
}

.top__brand {
  display: grid;
  line-height: 1.1;
  text-decoration: none;
}

.top__brand strong {
  font-family: var(--condensed);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.top__brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.top__nav {
  display: none;
  gap: 2rem;
  font-size: 1rem;
  font-weight: 500;
}

.top__nav a {
  text-decoration: none;
}

.top__nav a:hover {
  text-decoration: underline;
}

.top .plate--small {
  display: none;
}

/* Hero */

.hero {
  padding-block: clamp(2rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.75rem, 15vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero__row {
  display: grid;
  gap: 2rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

/* The one entrance on the page: headline, text, then the plate. */
.hero h1,
.hero__intro,
.hero__call {
  animation: rise 0.8s var(--ease) both;
}

.hero__intro {
  animation-delay: 0.12s;
}

.hero__call {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 1.25rem;
  }
}

.hero__intro {
  max-width: 34ch;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.4;
}

.hero__call {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.status {
  font-weight: 500;
}

.status__dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: #a9b0ba;
}

.status--open .status__dot {
  background: var(--green);
  box-shadow: 0 0 0 0.25rem rgba(47, 180, 106, 0.25);
}

.facts {
  display: grid;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  border-top: 2px solid var(--ink);
}

.facts > div {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.facts dd {
  margin: 0.1rem 0 0;
  font-weight: 500;
  line-height: 1.35;
}

.facts small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

/* One line for the time of year */

.season {
  background: #fff3d1;
  padding-block: 0.9rem;
  font-size: 1rem;
  font-weight: 500;
}

.season p {
  max-width: none;
  padding-left: 1.35rem;
  background: radial-gradient(circle at 0.35rem 0.8em, var(--amber) 0.35rem, transparent 0.38rem) no-repeat;
}

.season a {
  white-space: nowrap;
}

/* Services board */

.services {
  background: var(--band);
  padding-block: var(--section);
}

.services__grid {
  display: grid;
  gap: 2rem;
}

.board {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.services__head p {
  margin-top: 1rem;
  max-width: 24ch;
  color: var(--muted);
  font-size: 1rem;
}

.board li {
  border-bottom: 1px solid var(--rule);
}

.board li > * {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
  text-decoration: none;
}

.board li span {
  display: grid;
  gap: 0.3rem;
}

/* The plus on the right says the row can be tapped; it turns blue under the pointer. */
.board__go {
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0.45rem;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, rotate 0.4s var(--ease);
}

.board a:hover .board__go,
.board a:focus-visible .board__go {
  border-color: var(--blau);
  background: var(--blau);
  color: #ffffff;
  rotate: 90deg;
}

.board h3 {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.05;
}

.board p {
  color: var(--muted);
  font-size: 1rem;
}

.board .board__price {
  color: var(--ink);
  font-weight: 600;
}

/* Warning lamps */

.dash {
  background: radial-gradient(120% 90% at 80% 0%, #1a212c 0%, var(--dash) 60%);
  color: #eef1f5;
  padding-block: var(--section);
}

.dash :focus-visible {
  outline-color: var(--amber);
}

.dash__grid {
  display: grid;
  gap: 2rem;
}

.dash__head p {
  margin-top: 1rem;
  max-width: 38ch;
  color: #b3bcc8;
}

.cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.6);
}

.lamp {
  --lamp: var(--amber);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.5rem;
  aspect-ratio: 1;
  padding: 0.5rem;
  border: 0;
  background: var(--dash-panel);
  color: #7d8795;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lamp--red {
  --lamp: var(--red);
}

.lamp svg {
  width: 48%;
  max-width: 4.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--unlit);
  transition: color 0.2s ease, filter 0.2s ease;
}

.lamp:hover svg {
  color: #8a94a3;
}

.lamp[aria-pressed="true"] {
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--lamp) 18%, var(--dash-panel)), var(--dash-panel) 70%);
  color: #ffffff;
}

.lamp[aria-pressed="true"] svg {
  color: var(--lamp);
  filter: drop-shadow(0 0 0.5rem var(--lamp));
}

/* Ignition check: every lamp lights once, then goes out. */
.dash--ignition .lamp svg {
  animation: ignition 1.7s ease-out;
}

.dash--ignition .lamp:nth-child(2) svg { animation-delay: 0.06s; }
.dash--ignition .lamp:nth-child(3) svg { animation-delay: 0.12s; }
.dash--ignition .lamp:nth-child(4) svg { animation-delay: 0.18s; }
.dash--ignition .lamp:nth-child(5) svg { animation-delay: 0.24s; }
.dash--ignition .lamp:nth-child(6) svg { animation-delay: 0.3s; }

@keyframes ignition {
  0% {
    color: var(--unlit);
    filter: none;
  }
  12%,
  58% {
    color: var(--lamp);
    filter: drop-shadow(0 0 0.5rem var(--lamp));
  }
  100% {
    color: var(--unlit);
    filter: none;
  }
}

.readout {
  display: grid;
  align-content: start;
  gap: 1.75rem;
}

.readout__idle {
  display: none;
  color: #7d8795;
}

.readout__item h3 {
  font-size: clamp(2rem, 4.5vw, 2.6rem);
}

.readout__item p {
  margin-top: 0.75rem;
  max-width: 44ch;
  color: #c3cad4;
}

.readout__item .readout__verdict {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #ffffff;
  font-weight: 600;
}

.readout__verdict::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--amber);
}

.readout__verdict--stop::before {
  background: var(--red);
}

.readout__call {
  color: #c3cad4;
}

/* With the script running, only the chosen lamp's text is shown. */
.dash--js .readout__item {
  display: none;
}

.dash--js .readout__item.is-on {
  display: block;
}

.dash--js .readout__idle {
  display: block;
}

.dash--js.dash--lit .readout__idle,
.dash--js:not(.dash--lit) .readout__call {
  display: none;
}

/* Pickerl */

.pickerl {
  background: var(--blau);
  color: #ffffff;
  padding-block: var(--section);
}

.pickerl :focus-visible {
  outline-color: var(--amber);
}

.pickerl__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.pickerl__text p {
  margin-top: 1rem;
  max-width: 44ch;
  color: #d5dcec;
}

.pickerl__result {
  min-height: 6.5rem;
}

.pickerl__result p {
  max-width: 26ch;
  color: #ffffff;
  font-family: var(--condensed);
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
}

.pickerl__result a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
}

/* The sticker sits slightly askew, the way it does on a windscreen. */
.sticker {
  justify-self: center;
  width: min(100%, 22rem);
  padding: 1.25rem 1.25rem 1.4rem;
  border-radius: 1.5rem;
  background: #fbfbf8;
  box-shadow: 0 1.75rem 3rem -1.5rem rgba(0, 0, 0, 0.6);
  color: var(--ink);
  transform: rotate(-2.5deg);
}

.sticker__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--condensed);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.sticker__title span {
  font-family: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}

.sticker__months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.hole {
  display: grid;
  place-content: center;
  justify-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.hole span {
  font-family: var(--condensed);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.hole small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.hole:hover {
  background: var(--band);
}

/* Punched: the blue behind the sticker shows through the hole. */
.hole[aria-pressed="true"] {
  border-color: var(--blau-deep);
  background: var(--blau);
  box-shadow: inset 0 0.2rem 0.45rem rgba(0, 0, 0, 0.55);
  color: #ffffff;
}

/* The punch: the hole gives way for a moment. */
.hole[aria-pressed="true"] {
  animation: punch 0.45s var(--ease);
}

@keyframes punch {
  from {
    scale: 0.8;
  }
}

/* A text that has just changed settles into place. */
.is-new,
.dash--js .readout__item.is-on {
  animation: settle 0.45s var(--ease) both;
}

@keyframes settle {
  from {
    opacity: 0;
    translate: 0 0.6rem;
  }
}

.hole[aria-pressed="true"] small {
  color: #d5dcec;
}

/* About */

.about {
  padding-block: var(--section);
}

.about__grid {
  display: grid;
  gap: 1.5rem 4rem;
}

.about__grid h2 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 0.92;
  text-wrap: balance;
}

.about__body p {
  max-width: 34ch;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.4;
}

.about__body .about__signature {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.about__grid img {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

/* Reviews: the figures from the public listing, and texts the owner has cleared. */

.reviews {
  background: var(--band);
  padding-block: var(--section);
}

.reviews__grid {
  display: grid;
  gap: 3rem;
}

.score__value {
  margin-top: 1.5rem;
  font-family: var(--condensed);
  font-size: clamp(6rem, 17vw, 9.5rem);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.02em;
}

/* Five outlined stars, and the same five filled, cut off at the rating. */
.stars {
  position: relative;
  width: 9.5rem;
  margin-top: 1.25rem;
}

.stars svg {
  display: block;
  width: 9.5rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.stars span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--share);
  overflow: hidden;
}

.stars span svg {
  fill: var(--amber);
}

/* The stars fill from the left when the rating scrolls into view. */
.js .stars span {
  width: 0;
  transition: width 1.4s var(--ease) 0.2s;
}

.js .reviews.is-in .stars span {
  width: var(--share);
}

.score__count {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1rem;
}

.score p:last-child {
  margin-top: 0.6rem;
}

.quotes {
  min-width: 0;
}

.quotes__track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-top: 2px solid var(--ink);
}

.quotes__track::-webkit-scrollbar {
  display: none;
}

.quote {
  flex: 0 0 100%;
  padding: 1.5rem 0.25rem 0 0;
  scroll-snap-align: start;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  max-width: 24ch;
  font-family: var(--condensed);
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
}

.quote__by {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Demo only: where a review will stand. */
.quote--slot blockquote p {
  color: var(--muted);
}

.quote--slot .quote__by::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--amber);
}

.quotes__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.quotes__nav button {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

/* Only where there is a pointer: on a touch screen the hover look would stick after a tap. */
@media (hover: hover) {
  .quotes__nav button:hover:not(:disabled) {
    background: var(--ink);
    color: #ffffff;
  }
}

.quotes__nav button:disabled {
  opacity: 0.3;
  cursor: default;
}

.quotes__nav svg {
  width: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hours and directions */

.visit {
  padding-block: var(--section);
}

.visit__grid {
  display: grid;
  gap: 2.5rem;
}

.visit__info {
  display: grid;
  gap: 2.5rem;
  align-content: start;
}

.visit__grid h2 {
  margin-bottom: 1.25rem;
}

.hours {
  border-collapse: collapse;
  font-size: 1.2rem;
}

.hours th,
.hours td {
  padding: 0.35rem 0;
  text-align: left;
  font-weight: 400;
}

.hours th {
  padding-right: 2rem;
  font-weight: 600;
}

.hours tr:not(.is-today) {
  color: var(--muted);
}

/* Without the script no row is marked, and none should look faded. */
html:not(.js) .hours tr {
  color: inherit;
}

address {
  font-style: normal;
  font-size: 1.2rem;
}

.transit {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.transit li {
  padding-block: 0.6rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1rem;
}

.transit strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.visit__grid p {
  margin-top: 1rem;
}

.link {
  font-weight: 500;
}

/* The street map: drawn from OpenStreetMap, part of the page, nothing loaded from elsewhere. */

.visit__map {
  margin: 0;
}

.visit__map > a {
  display: block;
  overflow: hidden;
  border-radius: 0.75rem;
}

.map {
  --ground: #e6eaf0;
  display: block;
  width: 100%;
  height: 21rem;
  background: var(--ground);
}

.map__park {
  fill: #d3e2d3;
}

.map__road {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map__road--minor {
  stroke: #f3f5f8;
  stroke-width: 2.5;
}

.map__road--street {
  stroke-width: 6.5;
}

.map__road--main {
  stroke-width: 11;
}

.map__rail {
  fill: none;
  stroke: #8b95a3;
  stroke-width: 3.4;
}

.map__ties {
  fill: none;
  stroke: var(--ground);
  stroke-width: 1.6;
  stroke-dasharray: 6 6;
}

.map text {
  font-family: var(--text);
  paint-order: stroke;
  stroke-linejoin: round;
}

.map__name {
  fill: #586170;
  stroke: var(--ground);
  stroke-width: 3;
  font-size: 12.5px;
  font-weight: 500;
  text-anchor: middle;
}

.map__stop rect {
  fill: var(--blau);
}

.map__mark {
  fill: #ffffff;
  font-family: var(--condensed);
  font-size: 16px;
  font-weight: 700;
  text-anchor: middle;
}

.map__stopname {
  fill: var(--blau-deep);
  stroke: var(--ground);
  stroke-width: 3.5;
  font-size: 13px;
  font-weight: 600;
}

.map__dot {
  fill: var(--plate-red);
  stroke: #ffffff;
  stroke-width: 3.5;
}

.map__pulse {
  fill: var(--plate-red);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.map .map__shop {
  fill: var(--ink);
  stroke: #ffffff;
  stroke-width: 5;
  font-family: var(--condensed);
  font-size: 22px;
  font-weight: 700;
}

/* The pin drops once when the map scrolls into view; then two rings spread from it. */
.js .map__pin .map__dot,
.js .map__pin .map__shop {
  opacity: 0;
}

.js .map.is-in .map__dot {
  animation: drop 0.7s var(--ease) both;
}

.js .map.is-in .map__shop {
  animation: appear 0.5s 0.35s ease both;
}

.js .map.is-in .map__pulse {
  animation: ring 1.6s 0.6s ease-out 2;
}

@keyframes drop {
  from {
    opacity: 0;
    translate: 0 -40px;
  }
  to {
    opacity: 1;
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ring {
  from {
    opacity: 0.35;
    scale: 0.8;
  }
  to {
    opacity: 0;
    scale: 4;
  }
}

.visit__map figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Appointment request */

.order {
  background: var(--band);
  padding-block: var(--section);
}

.order__grid {
  display: grid;
  gap: 2.5rem;
}

.order__head p {
  margin-top: 1rem;
  max-width: 30ch;
  color: var(--muted);
}

/* The builder works only with the script; without it the plate and the plain link remain. */
.order__build {
  display: none;
}

.js .order__build {
  display: block;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--ink);
}

.order__label {
  margin: 1.75rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.order__label:first-child {
  margin-top: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(17, 21, 27, 0.3);
  border-radius: 999px;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, scale 0.15s ease;
}

.chip:active {
  scale: 0.95;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  border-color: var(--blau);
  background: var(--blau);
  color: #ffffff;
}

.order__text {
  max-width: 34ch;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
}

.order__send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.send {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.send:hover {
  background: var(--blau);
}

.order__hint {
  display: none;
  color: var(--muted);
  font-size: 1rem;
}

/* A computer cannot send an SMS: there the note replaces the button. */
@media (hover: hover) and (pointer: fine) {
  .send--sms {
    display: none;
  }

  .order__hint {
    display: block;
  }
}

.order__call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.order__call p {
  max-width: 14ch;
  font-family: var(--condensed);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 0.95;
}

/* Footer */

.foot {
  background: var(--ink);
  color: #c3cad4;
  /* Room for the call bar, which lies over the end of the page on phones. */
  padding-block: 2rem 5.5rem;
  font-size: 0.95rem;
}

.foot :focus-visible {
  outline-color: var(--amber);
}

.foot__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.foot nav {
  display: flex;
  gap: 1.5rem;
}

/* Legal pages */

.legal {
  padding-block: var(--section);
}

.legal h1 {
  margin-bottom: 2rem;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
}

.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.8rem;
}

.legal dt {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal dd {
  margin: 0;
  font-weight: 500;
}

/* Call bar: on phones the plate stays in reach at the bottom of the screen. */

.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  transition: translate 0.4s var(--ease);
}

.callbar.is-away {
  translate: 0 110%;
}

.callbar :focus-visible {
  outline-color: var(--amber);
}

@media (min-width: 40rem) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }
}

@media (min-width: 56rem) {
  section[id] {
    scroll-margin-top: 5rem;
  }

  /* The bar with the plate stays at the top while the page scrolls. */
  .top {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--rule);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(0.75rem);
  }

  .top__in {
    padding-block: 0.7rem;
  }

  .foot {
    padding-block: 2rem;
  }

  .callbar {
    display: none;
  }

  .reviews__grid {
    grid-template-columns: 1fr 2fr;
    column-gap: 4rem;
    align-items: start;
  }

  .quotes {
    padding-top: 0.6rem;
  }

  .visit__grid--map {
    grid-template-columns: 1fr 2fr;
    column-gap: 4rem;
  }

  .map {
    height: auto;
    aspect-ratio: 640 / 440;
  }

  .order__grid {
    grid-template-columns: 1fr 2fr;
    column-gap: 4rem;
  }

  .top .plate--small {
    display: inline-flex;
  }

  .top__nav {
    display: flex;
  }

  .hero__row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .hero__call {
    justify-items: end;
  }

  .facts {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  }

  .facts > div {
    border-bottom: 0;
  }

  .services__grid {
    grid-template-columns: 1fr 2fr;
  }

  .board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .about__grid {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .dash__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas:
      "head cluster"
      "readout cluster";
    column-gap: 4rem;
    align-items: start;
  }

  .dash__head {
    grid-area: head;
  }

  .cluster {
    grid-area: cluster;
  }

  .readout {
    grid-area: readout;
    min-height: 15rem;
  }

  .pickerl__grid,
  .visit__grid:not(.visit__grid--map) {
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
  }

  .pickerl__grid {
    grid-template-areas:
      "text sticker"
      "result sticker";
    row-gap: 1.75rem;
  }

  .pickerl__text {
    grid-area: text;
    align-self: end;
  }

  .sticker {
    grid-area: sticker;
  }

  .pickerl__result {
    grid-area: result;
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .plate,
  .lamp,
  .lamp svg,
  .hole,
  .chip,
  .send,
  .board__go,
  .callbar,
  .quotes__nav button {
    transition: none;
  }

  .js .stars span {
    transition: none;
  }

  .hole[aria-pressed="true"],
  .is-new,
  .dash--js .readout__item.is-on,
  .hero h1,
  .hero__intro,
  .hero__call,
  .js .map.is-in .map__dot,
  .js .map.is-in .map__shop,
  .js .map.is-in .map__pulse {
    animation: none;
  }

  .js .map__pin .map__dot,
  .js .map__pin .map__shop {
    opacity: 1;
  }
}
