/* NY iPhone Repair: the public site. One world, the repair bench: a light counter top, the blue anti-static
   mat with its printed grid, manila claim tags and tickets, and photographs of the work.
   Type is Archivo throughout, its width axis doing the work a second family would: condensed for the shop's
   own lettering (prices, headings, numbers), normal width for reading. */

:root {
  /* the counter */
  --bench: oklch(0.966 0.007 88);
  --bench-2: oklch(0.928 0.01 86);
  --line: oklch(0.82 0.012 86);
  --ink: oklch(0.2 0.018 252);
  --ink-2: oklch(0.43 0.018 252);
  /* the mat */
  --mat: oklch(0.47 0.11 240);
  --mat-deep: oklch(0.39 0.1 242);
  --mat-print: oklch(0.95 0.02 235);
  --mat-print-2: oklch(0.84 0.045 235);
  --mat-grid: oklch(0.95 0.02 235 / 0.13);
  --mat-grid-major: oklch(0.95 0.02 235 / 0.26);
  /* the tag */
  --tag: oklch(0.87 0.085 82);
  --tag-edge: oklch(0.76 0.09 76);
  --tag-ink: oklch(0.25 0.035 65);
  /* the shop's state */
  --open: oklch(0.56 0.14 150);
  --closed: oklch(0.56 0.16 30);

  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4.2vw, 56px);
  --wrap: 1360px;
  --wrap-max: calc(var(--wrap) + 2 * var(--gutter));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar-h: 64px;

  /* tokens the street map component reads */
  --bg: var(--bench);
  --muted: var(--ink-2);
  --accent: var(--mat);
  --accent-ink: var(--mat-print);
  --font-text: var(--font);
  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 28px;
  --r-md: 4px; --r-lg: 6px;
  --t-label: 12px; --t-small: 13px;
  --cx-line: var(--line);
  --cx-panel: var(--bench-2);
  --cx-shadow: 0 1px 0 oklch(0.2 0.02 252 / 0.12), 0 8px 20px -10px oklch(0.2 0.02 252 / 0.35);
  --cx-ease: var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bench); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mat); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bench);
  font-weight: 700; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* The shop's lettering: condensed, heavy, tight */
.counter__h, .mat__head h2, .how__head h2, .ticket h2, .visit h2, .close h2, .step__no, .cell__price, .door__title, .logo span {
  font-stretch: 72%;
}

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}

/* ------------------------------------------------------------------ the bar */
.bar {
  position: sticky; top: 0; z-index: 40; height: var(--bar-h);
  background: color-mix(in oklab, var(--bench) 97%, transparent);
  border-bottom: 1px solid var(--line);
}
.bar__in {
  height: 100%; max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-size: 22px; letter-spacing: 0; }
.logo__mark { width: 26px; height: 26px; flex: none; }
.lobe-head { fill: var(--ink); }
.lobe-recess circle { fill: var(--bench); }
.bar__nav { display: flex; gap: 26px; margin-left: 12px; }
.bar__nav a, .bar__signin { text-decoration: none; font-weight: 550; font-size: 15px; position: relative; }
.bar__nav a::after, .bar__signin::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.bar__nav a:hover::after, .bar__signin:hover::after { transform: scaleX(1); }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.bar__call { font-weight: 700; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.bar__call:hover { text-decoration: underline; text-underline-offset: 4px; }

.status { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); flex: none; position: relative; }
html[data-shop="open"] .status__dot { background: var(--open); }
html[data-shop="closed"] .status__dot { background: var(--closed); }
html[data-shop="open"] .status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--open); opacity: 0;
  animation: ping 2.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.bar__status { font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------------ the counter (first screen) */
.counter {
  max-width: var(--wrap-max); margin: 0 auto; padding: clamp(28px, 5vh, 64px) var(--gutter) clamp(40px, 7vh, 88px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: stretch;
  min-height: calc(100svh - var(--bar-h));
}
.counter__text { display: flex; flex-direction: column; align-self: center; }
.counter__h {
  margin-top: 16px; font-size: clamp(50px, 6.3vw, 102px); line-height: 0.9; font-weight: 880; letter-spacing: -0.015em;
  text-wrap: balance;
}
.counter__h span { display: block; }
.counter__h span:nth-child(2) { color: var(--mat); }
.counter__status { margin-top: 26px; font-size: 19px; }
.counter__facts {
  margin-top: 26px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.counter__facts div { padding: 14px 28px 14px 0; }
.counter__facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.counter__facts dt { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.counter__facts dd { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; font-stretch: 80%; line-height: 1.1; white-space: nowrap; }
.counter__also { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* the two doors: an ink slab for walking in, a manila claim tag for the online request */
.doors { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; }
.door {
  position: relative; display: grid; gap: 4px; padding: 20px 52px 20px 22px; min-height: 96px; text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.door__title { font-size: 28px; line-height: 0.95; font-weight: 850; white-space: nowrap; }
.door__note { font-size: 14px; font-weight: 550; opacity: 0.85; }
.door__arrow { position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 600; transition: translate 0.35s var(--ease); }
.door:hover .door__arrow { translate: 5px -50%; }
.door:active { transform: translateY(1px) scale(0.99); }
.door--walk { background: var(--ink); color: var(--bench); }
.door--walk:hover { box-shadow: 0 10px 24px -14px oklch(0.2 0.02 252 / 0.7); transform: translateY(-2px); }
.door--tag {
  background: var(--tag); color: var(--tag-ink); padding-left: 46px;
  /* a tag's clipped corners on the hole end */
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  transform-origin: 18px 50%;
}
.door--tag::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--tag-edge); clip-path: inherit; pointer-events: none; }
.door__hole {
  position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  background: var(--bench); box-shadow: inset 0 0 0 3px var(--tag-edge);
}
.door--tag:hover { transform: rotate(-1.2deg) translateY(-2px); }

/* the printed grid of the anti-static mat: a major line every 5 cells; --cell sets the size */
.counter__mat, .mat {
  --cell: 24px; background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--mat-grid-major) 1px, transparent 1px),
    linear-gradient(var(--mat-grid) 1px, transparent 1px), linear-gradient(90deg, var(--mat-grid) 1px, transparent 1px);
  background-size: calc(5 * var(--cell)) calc(5 * var(--cell)), calc(5 * var(--cell)) calc(5 * var(--cell)), var(--cell) var(--cell), var(--cell) var(--cell);
}

/* the hero photograph laid on the mat, its printed grid showing round the edge */
.counter__mat {
  position: relative; padding: 14px; display: flex; min-height: 420px;
  background-position: 14px 14px;
}
.counter__photo { flex: 1; display: block; overflow: hidden; }
.counter__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }

/* ------------------------------------------------------------------ the price mat */
.mat {
  --cell: 32px; color: var(--mat-print); position: relative;
  background-position: center top;
}
.mat__in { max-width: var(--wrap-max); margin: 0 auto; padding: clamp(64px, 10vh, 120px) var(--gutter) clamp(56px, 8vh, 96px); }
.mat__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; align-items: end; }
.mat__head h2 { font-size: clamp(54px, 8vw, 128px); line-height: 0.84; font-weight: 880; text-transform: uppercase; letter-spacing: -0.01em; }
.mat__head p { max-width: 42ch; color: var(--mat-print-2); font-size: 18px; justify-self: end; }

.pm { margin-top: clamp(32px, 5vh, 56px); }
.pm__tabs { display: flex; gap: 0; border-bottom: 2px solid var(--mat-print); overflow-x: auto; scrollbar-width: none; }
.pm__tabs::-webkit-scrollbar { display: none; }
.pm__tab {
  flex: 1 1 0; min-width: 120px; display: grid; gap: 2px; text-align: left; padding: 14px 18px 12px; cursor: pointer;
  background: transparent; border: 0; color: var(--mat-print); font-size: 26px; font-weight: 800;
  font-stretch: 78%; line-height: 1; transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.pm__tab span { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; font-stretch: 100%; color: var(--mat-print-2); text-transform: none; }
.pm__tab:hover { background: oklch(0.95 0.02 235 / 0.08); }
.pm__tab[aria-selected="true"] { background: var(--mat-print); color: var(--mat-deep); }
.pm__tab[aria-selected="true"] span { color: var(--mat); }
.pm__tab:focus-visible { outline-color: var(--tag); outline-offset: -3px; }

/* the compartments of a magnetic screw mat: numbered, ruled, each holding one repair */
.pm__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--mat-print-2); }
.cell {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 168px; padding: 18px 18px 20px;
  border-right: 1px solid var(--mat-print-2); border-bottom: 1px solid var(--mat-print-2);
  background: oklch(0.39 0.1 242 / 0.35);
  animation: cell-in 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes cell-in { from { opacity: 0; transform: translateY(10px); } }
.cell__no { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--mat-print-2); font-variant-numeric: tabular-nums; }
.cell__name { font-size: 19px; font-weight: 650; line-height: 1.2; }
.cell__price { margin-top: auto; font-size: clamp(46px, 4.4vw, 68px); line-height: 0.9; font-weight: 850; font-variant-numeric: lining-nums; }
.cell__price small { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; font-stretch: 100%; color: var(--mat-print-2); vertical-align: 0.9em; margin-right: 2px; }
.cell--none { background: transparent; }
.cell__price--none { font-size: 22px; font-weight: 650; color: var(--mat-print-2); }
.cell--note { background: var(--tag); color: var(--tag-ink); border-color: var(--tag-edge); }
.cell--note .cell__no { color: var(--tag-ink); opacity: 0.7; }
.cell__note { margin-top: auto; font-size: 15px; line-height: 1.4; }

.mat__all { margin-top: 26px; border-top: 1px solid var(--mat-print-2); }
.mat__all summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 12px;
}
.mat__all summary::-webkit-details-marker { display: none; }
.mat__all summary::before {
  content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--mat-print);
  font-weight: 600; transition: transform 0.3s var(--ease);
}
.mat__all[open] summary::before { transform: rotate(45deg); }
.mat__scroll { overflow-x: auto; padding-bottom: 8px; }
.mat__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.mat__table th, .mat__table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--mat-grid-major); }
.mat__table th:first-child { text-align: left; padding-left: 0; }
.mat__table thead th { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; vertical-align: bottom; border-bottom: 2px solid var(--mat-print); }
.mat__table thead th span { display: block; font-size: 12.5px; font-weight: 550; letter-spacing: 0; text-transform: none; color: var(--mat-print-2); }
.mat__table tbody th { font-weight: 600; }
.mat__table td { font-weight: 700; font-size: 18px; }

/* the parts tray: six photographs in square bins */
.tray { margin-top: clamp(36px, 6vh, 64px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tray li { aspect-ratio: 1; padding: 6px; background: var(--mat-deep); box-shadow: inset 0 0 0 1px var(--mat-print-2); overflow: hidden; }
.tray img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tray li:hover img { transform: scale(1.04); }

/* ------------------------------------------------------------------ how a repair goes */
.how { max-width: var(--wrap-max); margin: 0 auto; padding: clamp(72px, 12vh, 140px) var(--gutter) clamp(56px, 8vh, 96px); }
.how__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; align-items: end; }
.how__head h2 { font-size: clamp(50px, 7vw, 112px); line-height: 0.86; font-weight: 880; text-transform: uppercase; max-width: 9ch; }
.how__head p { justify-self: end; max-width: 36ch; font-size: 18px; color: var(--ink-2); }
.how__steps { margin-top: clamp(40px, 7vh, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.step:nth-child(2) { margin-top: clamp(32px, 6vw, 88px); }
.step:nth-child(3) { margin-top: clamp(64px, 12vw, 176px); }
/* each print sits on the bench with a white border, like a photo pinned beside the work */
.step__print { background: oklch(0.99 0.004 88); padding: 10px 10px 34px; box-shadow: 0 1px 0 var(--line), 0 18px 30px -22px oklch(0.2 0.02 252 / 0.55); transition: transform 0.5s var(--ease); }
.step:nth-child(1) .step__print { rotate: -1.2deg; }
.step:nth-child(2) .step__print { rotate: 0.8deg; }
.step:nth-child(3) .step__print { rotate: -0.5deg; }
.step:hover .step__print { transform: translateY(-4px); }
.step__print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.step__no { margin-top: 22px; font-size: 64px; line-height: 0.8; font-weight: 880; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.step h3 { margin-top: 12px; font-size: 26px; line-height: 1.05; font-weight: 800; text-transform: uppercase; font-stretch: 80%; }
.step p:last-child { margin-top: 8px; color: var(--ink-2); max-width: 34ch; }

/* ------------------------------------------------------------------ the repair ticket (terms) */
.terms { max-width: var(--wrap-max); margin: 0 auto; padding: clamp(40px, 6vh, 72px) var(--gutter) clamp(72px, 11vh, 128px); }
.ticket { display: grid; grid-template-columns: 120px minmax(0, 1fr); background: var(--tag); color: var(--tag-ink); position: relative; box-shadow: 0 1px 0 var(--tag-edge), 0 22px 40px -30px oklch(0.25 0.04 65 / 0.8); }
.ticket::before {
  /* perforation between stub and body */
  content: ""; position: absolute; left: 119px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, var(--bench) 0 6px, transparent 6px 12px);
}
.ticket__stub { border-right: 1px solid var(--tag-edge); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 28px 0; }
.ticket__stub span { writing-mode: vertical-rl; rotate: 180deg; font-size: 13px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.ticket__mark { width: 40px; height: 40px; }
.ticket__mark .lobe-head { fill: var(--tag-ink); }
.ticket__mark .lobe-recess circle { fill: var(--tag); }
.ticket__body { padding: clamp(28px, 4vw, 56px); }
.ticket h2 { font-size: clamp(40px, 5vw, 76px); line-height: 0.88; font-weight: 880; text-transform: uppercase; }
.ticket__terms { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; counter-reset: term; }
.ticket__terms li {
  counter-increment: term; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 15px 0;
  border-top: 1px dashed var(--tag-edge); font-size: 18px; font-weight: 550; line-height: 1.35;
}
.ticket__terms li::before { content: counter(term, decimal-leading-zero); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; }

/* ------------------------------------------------------------------ the visit */
.visit {
  max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 11vh, 128px);
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: stretch;
}
.visit__card { border-top: 3px solid var(--ink); padding-top: 22px; display: flex; flex-direction: column; }
.visit h2 { font-size: clamp(44px, 5.6vw, 88px); line-height: 0.88; font-weight: 880; text-transform: uppercase; }
.visit__addr { margin-top: 22px; font-style: normal; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 750; }
.visit__addr a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat; transition: background-size 0.35s var(--ease); }
.visit__addr a:hover { background-size: 100% 2px; }
.visit__status { margin-top: 18px; font-size: 17px; }
.hours { margin-top: 18px; width: 100%; border-collapse: collapse; font-size: 17px; }
.hours th, .hours td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr[data-today] th, .hours tr[data-today] td { font-weight: 800; }
.hours tr[data-today] th::after { content: "Today"; margin-left: 10px; padding: 2px 7px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--bench); vertical-align: 2px; }
.visit__rows { margin-top: 18px; }
.visit__rows li { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.visit__rows li span:first-child { font-weight: 600; white-space: nowrap; }
.visit__rows li span:last-child { color: var(--ink-2); text-align: right; }
.visit__actions { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; font-weight: 700; text-decoration: none; transition: transform 0.25s var(--ease), background-color 0.25s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--bench); }
.btn--ink:hover { background: var(--mat-deep); }
.btn--line { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: var(--bench-2); }
.visit__map { min-height: 420px; background: var(--mat); padding: 14px; }
.visit__map .cx-map { height: 100%; border-radius: 0; border: 0; }
.visit__map .cx-map__ground { height: 100%; min-height: 392px; }

/* ------------------------------------------------------------------ the close */
.close { position: relative; isolation: isolate; color: var(--bench); min-height: min(88svh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.close__photo, .close__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.close__photo { z-index: -1; }
.close__photo img { object-fit: cover; }
.close::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, oklch(0.18 0.02 252 / 0.3) 0%, oklch(0.18 0.02 252 / 0.8) 42%, oklch(0.16 0.02 252 / 0.94) 100%); }
.close__in { width: 100%; max-width: var(--wrap-max); margin: 0 auto; padding: 120px var(--gutter) clamp(48px, 8vh, 96px); }
.close h2 { font-size: clamp(54px, 8.4vw, 136px); line-height: 0.84; font-weight: 880; text-transform: uppercase; max-width: 12ch; }
.close p { margin-top: 18px; max-width: 46ch; font-size: 19px; color: oklch(0.92 0.01 88); }
.close .door--walk { background: var(--bench); color: var(--ink); }

/* ------------------------------------------------------------------ the footer */
.foot { background: var(--ink); color: oklch(0.88 0.01 88); }
.foot__in {
  max-width: var(--wrap-max); margin: 0 auto; padding: 56px var(--gutter) 28px;
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px;
}
.foot .logo { color: var(--bench); }
.foot .lobe-head { fill: var(--bench); }
.foot .lobe-recess circle { fill: var(--ink); }
.foot__brand p { margin-top: 14px; max-width: 34ch; color: oklch(0.72 0.012 88); }
.foot h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: oklch(0.72 0.012 88); }
.foot ul { margin-top: 12px; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { grid-column: 1 / -1; margin-top: 24px; padding-top: 20px; border-top: 1px solid oklch(0.35 0.015 252); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: oklch(0.72 0.012 88); }

/* ------------------------------------------------------------------ the phone dock */
.dock { display: none; }

/* ------------------------------------------------------------------ first-screen entrance, once */
@media (prefers-reduced-motion: no-preference) {
  .counter__h span, .counter__status, .counter__facts, .counter__also, .counter .doors, .counter .eyebrow {
    animation: rise 0.8s var(--ease) both;
  }
  .counter .eyebrow { animation-delay: 0.05s; }
  .counter__h span:nth-child(1) { animation-delay: 0.1s; }
  .counter__h span:nth-child(2) { animation-delay: 0.18s; }
  .counter__h span:nth-child(3) { animation-delay: 0.26s; }
  .counter__status { animation-delay: 0.36s; }
  .counter__facts { animation-delay: 0.42s; }
  .counter__also { animation-delay: 0.48s; }
  .counter .doors { animation-delay: 0.54s; }
  .counter__mat { animation: lay 1s var(--ease) 0.15s both; }
  .counter__photo img { animation: settle 1.4s var(--ease) 0.2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes lay { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1100px) {
  .bar__status { display: none; }
  .pm__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ticket__terms { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --bar-h: 58px; }
  .bar__nav, .bar__signin { display: none; }
  .bar__end { gap: 0; }
  .counter { grid-template-columns: 1fr; min-height: 0; }
  .counter__mat { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .mat__head, .how__head { grid-template-columns: 1fr; gap: 16px; }
  .mat__head p, .how__head p { justify-self: start; }
  .how__steps { grid-template-columns: 1fr; gap: 48px; }
  .step:nth-child(n) { margin-top: 0; }
  .step__print { max-width: 520px; }
  .step:nth-child(2) { justify-self: end; }
  .visit { grid-template-columns: 1fr; }
  .visit__map { min-height: 320px; }
  .visit__map .cx-map__ground { min-height: 292px; }
  .tray { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .logo { font-size: 18px; }
  .counter { padding-top: 16px; gap: 22px; }
  .counter__mat { padding: 8px; aspect-ratio: 4 / 4.4; background-position: 8px 8px; }
  .counter__h { font-size: clamp(46px, 14.5vw, 72px); margin-top: 12px; }
  .counter__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .counter__facts div { padding: 12px 8px 12px 0; }
  .counter__facts div + div { padding-left: 10px; }
  .counter__facts dd { font-size: 22px; white-space: normal; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 84px; }
  .door__title { font-size: 26px; }
  .pm__tab { min-width: 0; padding: 12px 8px 10px; font-size: 19px; }
  .pm__tab span { font-size: 11.5px; letter-spacing: 0; }
  .cell { min-height: 132px; padding: 14px 12px 16px; }
  .cell__name { font-size: 16px; }
  .cell__price { font-size: 44px; }
  .cell__price small { font-size: 12px; }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before { display: none; }
  .ticket__stub { flex-direction: row; padding: 14px 22px; border-right: 0; border-bottom: 1px dashed var(--tag-edge); justify-content: flex-start; gap: 14px; }
  .ticket__stub span { writing-mode: initial; rotate: 0deg; }
  .ticket__mark { width: 28px; height: 28px; }
  .ticket__terms li { font-size: 16px; grid-template-columns: 36px 1fr; }
  .close { min-height: 78svh; }
  .close .doors { margin-top: 24px; }
  .foot__in { grid-template-columns: 1fr; padding-bottom: 20px; }
  .dock {
    display: grid; grid-template-columns: auto auto 1fr; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--ink);
  }
  .dock a { display: grid; place-items: center; min-height: 48px; padding: 0 14px; font-weight: 750; text-decoration: none; font-size: 15px; }
  .dock__walk { color: var(--bench); box-shadow: inset 0 0 0 1.5px oklch(0.5 0.015 252); }
  .dock .dock__tag { background: var(--tag); color: var(--tag-ink); text-transform: uppercase; font-stretch: 80%; font-size: 17px; letter-spacing: 0.01em; }
}
/* "30–45 min" needs 94px at 22px type; a third of a 360px phone leaves it 90 */
@media (max-width: 374px) {
  .counter__facts dd { font-size: 20px; }
}
@media (max-width: 359px) {
  .pm__grid { grid-template-columns: 1fr; }
  .counter__facts dd { font-size: 17px; }
  /* the brand, the phone number and the dock's button each stay on one line */
  .logo { font-size: 16px; white-space: nowrap; }
  .bar__call { font-size: 14px; white-space: nowrap; }
  .dock a { padding: 0 10px; }
  .dock .dock__tag { font-size: 15px; white-space: nowrap; }
}

/* ------------------------------------------------------------------ the credits page */
.credits-page { max-width: 860px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.credits-page h1 { margin: 18px 0 28px; font-size: clamp(44px, 7vw, 80px); line-height: 0.9; font-weight: 880; text-transform: uppercase; font-stretch: 72%; }
.credits-page .rows li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.credits-page .rows__name { display: block; font-weight: 700; }
.credits-page > .wrap > p:last-child { margin-top: 24px; }
.credits-page .link { text-decoration: underline; text-underline-offset: 3px; }
