/* JOSA Automotive — site styles
   One family (Archivo, variable width + weight): expanded for display, normal for text. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0f1113;
  --surface: #16191c;
  --surface-2: #1e2226;
  --line: #2c3137;
  --line-strong: #4a515a;
  --text: #f1f3f4;
  --muted: #a6aeb6;
  --accent: #8fb8d0;      /* drafting blue: annotations, focus, small signals */
  --paper: #f4f5f5;
  --ink: #0f1113;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --section: clamp(56px, 7.2vw, 100px);
  --header-h: 68px;

  --ease-out: cubic-bezier(0.16, 0.8, 0.24, 1);
  --ease-in: cubic-bezier(0.6, 0, 0.9, 0.3);
  --t-fast: 160ms;
  --t-med: 420ms;
  --t-slow: 900ms;

  --z-header: 100;
  --z-menu: 90;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 12px; top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--paper); color: var(--ink);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.display, .h2, .h3, .price, .step-n {
  font-stretch: 125%;
  font-weight: 560;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display { font-size: clamp(2.25rem, 6.4vw, 5.25rem); line-height: 1.02; }
.h2 { font-size: clamp(1.6rem, 3.4vw, 2.75rem); line-height: 1.1; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.2; font-weight: 600; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1.1em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: 2px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-fast) ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-solid { background: var(--paper); color: var(--ink); }
.btn-solid:hover { background: #ffffff; }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); }
.btn-small { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }

/* ---------- Header ---------- */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med) ease, border-color var(--t-med) ease;
}
.header.is-solid, .header.is-open { background: rgba(15, 17, 19, 0.94); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .header.is-solid { background: rgba(15, 17, 19, 0.82); backdrop-filter: blur(12px); }
}
.header-in { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: 132px; height: auto; }
@media (min-width: 1000px) { .brand img { width: 150px; } }

.nav { display: none; }
.nav a, .menu-links a {
  text-decoration: none; color: var(--muted);
  transition: color var(--t-fast) ease;
}
.nav a:hover, .menu-links a:hover { color: var(--text); }

.langs { display: flex; gap: 2px; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none; color: var(--muted);
  border-radius: 2px;
  transition: color var(--t-fast) ease;
}
.langs a:hover { color: var(--text); }
.langs a[aria-current="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.header .langs, .header .header-cta { display: none; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer;
}
.menu-btn span, .menu-btn span::before {
  display: block; width: 24px; height: 2px; background: var(--text);
  transition: transform var(--t-med) var(--ease-out);
}
.menu-btn span { position: relative; transform: translateY(-4px); }
.menu-btn span::before { content: ""; position: absolute; left: 0; top: 0; transform: translateY(8px); }
.header.is-open .menu-btn span { transform: rotate(45deg); }
.header.is-open .menu-btn span::before { transform: rotate(-90deg); }

.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
  background: var(--bg);
  padding: 32px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 32px;
  overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.menu-links a {
  display: block; padding: 14px 0;
  font-size: 1.5rem; font-stretch: 125%; font-weight: 560; color: var(--text);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1000px) {
  .nav { display: flex; gap: 30px; font-size: 0.9375rem; }
  .nav a { padding: 12px 0; }
  .header .langs, .header .header-cta { display: flex; }
  .menu-btn, .menu { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); }
.hero-copy { display: grid; gap: clamp(20px, 2.6vw, 32px); max-width: 980px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.inspect { margin-top: clamp(36px, 4.5vw, 60px); display: flex; flex-direction: column; gap: 20px; }
.inspect-half { min-width: 0; }
.shot { position: relative; overflow: hidden; background: #e9e9e9; }
.shot img { width: 100%; }
.inspect figcaption {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem; color: var(--muted);
}

@media (min-width: 760px) {
  .inspect { flex-direction: row; gap: 0; }
  .inspect-half-a { flex: 1643 1 0; }
  .inspect-half-b { flex: 1213 1 0; }
  .inspect-half-b figcaption { padding-left: 16px; }
}

/* scan line: sweeps once across both shots */
.scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(143, 184, 208, 0) 78%, rgba(143, 184, 208, 0.22) 99.6%, #5f93b3 99.6%, #5f93b3 100%);
  transform: translateX(-101%);
}

/* inspection points */
.point {
  position: absolute; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 8px;
  transform: translate(-7px, -50%);
  pointer-events: none;
}
.point i {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 245, 245, 0.85);
}
.point b {
  padding: 4px 9px; border-radius: 2px;
  background: var(--ink); color: var(--text);
  font-size: 0.75rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
@media (min-width: 1000px) { .point b { font-size: 0.8125rem; padding: 5px 11px; } }

/* ---------- Sections ---------- */

.section { padding-block: var(--section) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 3.4vw, 44px); max-width: 760px; }

/* range: three kinds of car */
.range { display: grid; gap: 0; border-top: 1px solid var(--line); }
.range > li { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.range p { color: var(--muted); max-width: 44ch; }
@media (min-width: 860px) {
  .range { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .range > li { padding: 32px 32px 36px 0; border-bottom: 0; }
  .range > li + li { padding-left: 32px; border-left: 1px solid var(--line); }
}

/* services: a specification sheet, not cards */
.services { border-top: 1px solid var(--line-strong); }
.service {
  display: grid; gap: 20px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.service-intro { display: grid; gap: 10px; align-content: start; }
.service-intro p { color: var(--muted); max-width: 36ch; }
.checks { display: grid; gap: 12px; align-content: start; }
.checks li { position: relative; padding-left: 30px; }
.checks svg {
  position: absolute; left: 0; top: 0.28em; width: 18px; height: 18px;
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.checks path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.price { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { display: block; margin-bottom: 6px; font-size: 0.875rem; font-stretch: 100%; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.service-price { display: grid; gap: 16px; align-content: start; justify-items: start; }
@media (min-width: 900px) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 250px; gap: 48px; }
  .service-price { justify-items: end; text-align: right; }
}

/* process */
.steps { display: grid; gap: 0; position: relative; }
.steps > li { position: relative; padding: 24px 0 28px 56px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.steps p { color: var(--muted); max-width: 34ch; }
.step-n { position: absolute; left: 0; top: 22px; font-size: 1.4rem; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--line); }
  .steps::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
    background: var(--accent); transform-origin: left center;
  }
  .steps > li { padding: 28px 0 0; border-top: 0; }
  .step-n { position: static; font-size: 1.6rem; margin-bottom: 8px; }
}

/* split: text + picture */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-text { display: grid; gap: 22px; align-content: center; }
.frame { position: relative; overflow: hidden; background: var(--surface); }
.frame img { width: 100%; }
.frame-tall { max-width: 520px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .split-rev .split-media { order: 2; }
  .split-narrow { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); }
  .split-narrow.split-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); }
}

.fact { display: grid; gap: 4px; padding: 20px 0; border-block: 1px solid var(--line); }
.fact strong { font-stretch: 125%; font-weight: 560; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.fact span { color: var(--muted); max-width: 40ch; }

.tongues { display: flex; flex-wrap: wrap; gap: 8px; }
.tongues li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.9375rem; }

/* contact */
.contact { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 2px;
  font-size: 1rem;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--accent); background: var(--surface-2); }
.field [aria-invalid="true"] { border-color: #ff9d8a; }
.field-error { color: #ffb3a4; font-size: 0.9375rem; }
.field-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { font-size: 0.9375rem; color: var(--muted); max-width: 52ch; }

.details { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
.details > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.details dt { font-size: 0.9375rem; color: var(--muted); }
.details dd { font-size: 1.125rem; overflow-wrap: anywhere; }
.details a { text-decoration: none; display: inline-block; padding-block: 9px; border-bottom: 1px solid var(--line-strong); transition: border-color var(--t-fast) ease; }
.details a:hover { border-bottom-color: var(--text); }

/* footer */
.footer { margin-top: var(--section); border-top: 1px solid var(--line); padding-block: 40px 48px; }
.footer-in { display: grid; gap: 28px; }
.footer img { width: 132px; }
.footer p { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 760px) {
  .footer-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
  .footer .langs { justify-self: end; }
}

/* ---------- Motion ----------
   Applied only when JS is running and the visitor has not asked for reduced motion.
   Everything animates transform, opacity or clip-path, so it stays smooth on phones. */

@media (prefers-reduced-motion: no-preference) {
  /* page-load sequence */
  .js .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .js .line > span { display: block; transform: translateY(105%); }
  .js .hero-fade { opacity: 0; transform: translateY(12px); }
  .js .shot img { opacity: 0; transform: scale(1.03); }
  .js .inspect figcaption { opacity: 0; }

  .js .is-ready .line > span { transform: none; transition: transform var(--t-slow) var(--ease-out); }
  .js .is-ready .line:nth-child(2) > span { transition-delay: 90ms; }
  .js .is-ready .line:nth-child(3) > span { transition-delay: 180ms; }
  .js .is-ready .hero-fade { opacity: 1; transform: none; transition: opacity 700ms ease 320ms, transform 700ms var(--ease-out) 320ms; }
  .js .is-ready .hero-fade + .hero-fade { transition-delay: 420ms; }
  .js .is-ready .shot img { opacity: 1; transform: none; transition: opacity 900ms ease 500ms, transform 1400ms var(--ease-out) 500ms; }
  .js .is-ready .inspect figcaption { opacity: 1; transition: opacity 700ms ease 900ms; }

  /* inspection scan */
  .js .point { opacity: 0; }
  .js .point i { transform: scale(0.4); }
  .js .point b { transform: translateX(-6px); }
  .js .is-scanning .scan { animation: scan var(--scan-t) linear var(--scan-d) 1 both; }
  .js .is-scanning .point { opacity: 1; transition: opacity 360ms ease var(--d); }
  .js .is-scanning .point i { transform: none; transition: transform 520ms var(--ease-out) var(--d); }
  .js .is-scanning .point b { transform: none; transition: transform 520ms var(--ease-out) var(--d); }

  /* scroll reveals */
  .js .reveal { opacity: 0; transform: translateY(18px); }
  .js .reveal.is-in { opacity: 1; transform: none; transition: opacity 800ms ease var(--rd, 0ms), transform 900ms var(--ease-out) var(--rd, 0ms); }

  .js .frame { clip-path: inset(0 0 100% 0); }
  .js .frame img { transform: scale(1.08); }
  .js .is-in > .frame { clip-path: inset(0); transition: clip-path 1100ms var(--ease-out); }
  .js .is-in > .frame img { transform: none; transition: transform 1600ms var(--ease-out); }

  .js .checks path { stroke-dashoffset: 24; }
  .js .is-in .checks path, .js .checks.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 520ms var(--ease-out) calc(200ms + var(--i, 0) * 90ms); }

  @media (min-width: 900px) {
    .js .steps::before { transform: scaleX(0); }
    .js .steps.is-in::before { transform: none; transition: transform 1400ms var(--ease-out); }
  }
}

@keyframes scan {
  from { transform: translateX(-101%); }
  to { transform: translateX(101%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan { display: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Legal pages ---------- */

.legal { padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px)); max-width: calc(760px + 2 * var(--gutter)); margin-inline: auto; }
.legal h1 { margin: 20px 0 clamp(28px, 4vw, 48px); }
.legal section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal section h2 { margin-bottom: 12px; }
.legal section p { color: var(--muted); max-width: 66ch; overflow-wrap: anywhere; }
.legal section p + p { margin-top: 0.9em; }
.legal a { color: var(--text); text-underline-offset: 3px; }
.legal-back { display: inline-block; padding-block: 10px; color: var(--muted); }
.legal mark { background: #ffd66b; color: #1a1300; padding: 1px 6px; border-radius: 2px; font-weight: 600; }

.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 10px; }
.footer-links a { display: inline-block; padding-block: 10px; color: var(--text); text-underline-offset: 3px; }

/* ---------- Pledge: the investment statement before the prices ---------- */

.pledge { display: grid; gap: clamp(16px, 2vw, 24px); }
.pledge-line { font-stretch: 125%; font-weight: 560; letter-spacing: -0.012em; font-size: clamp(1.55rem, 3.6vw, 3rem); line-height: 1.14; max-width: 24ch; text-wrap: balance; }
.pledge .lead { max-width: 52ch; }

/* ---------- Experience: text only ---------- */

.exp { display: grid; gap: clamp(28px, 4vw, 40px); }
.exp-col { display: grid; gap: 22px; align-content: start; }
@media (min-width: 900px) { .exp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); } }

.footer img { width: 170px; }

/* ---------- Hero photo: studio light inside the page width, dissolving on every side ---------- */

.inspect { margin-top: clamp(8px, 2vw, 28px); gap: 8px; }
.shot {
  background: none;
  --fade-y: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.5) 9%, #000 22%, #000 84%, rgba(0,0,0,0.45) 94%, transparent 100%);
  --fade-x: linear-gradient(to right, transparent 0, rgba(0,0,0,0.5) 4%, #000 10%, #000 90%, rgba(0,0,0,0.5) 96%, transparent 100%);
  -webkit-mask-image: var(--fade-y), var(--fade-x);
  mask-image: var(--fade-y), var(--fade-x);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.inspect figcaption { margin-top: 0; border-top: 0; padding: 4px 0 0; }
.shot .wall-logo { position: absolute; left: 13%; top: 24%; width: 26%; height: auto; }
/* Wide screens show the picture as one piece with labelled leader lines;
   narrower screens stack its two halves with short labels on the pins. */
.inspect { flex-direction: column; }
.inspect-half { flex: none; }
.inspect-half figcaption, .inspect-half-b figcaption { padding: 4px 0 0; }
.inspect-full { display: none; }
@media (min-width: 900px) {
  .inspect { display: block; margin-top: clamp(12px, 2vw, 28px); }
  .inspect-full { display: block; }
  .inspect-half { display: none; }
  .inspect-full .shot {
    --fade-x: linear-gradient(to right, transparent 0, rgba(0,0,0,0.5) 3%, #000 8%, #000 90%, rgba(0,0,0,0.5) 96%, transparent 100%);
    /* shorter fade at the top so the labels sit on the fully lit wall */
    --fade-y: linear-gradient(to bottom, transparent 0, rgba(0,0,0,0.55) 3.5%, #000 9%, #000 84%, rgba(0,0,0,0.45) 94%, transparent 100%);
  }
  .inspect-full .shot .wall-logo { left: 10.15%; top: 25%; width: 10.5%; }
  .inspect-caps { display: grid; grid-template-columns: 50.2% 1fr; }
}

/* labels sit on the studio wall in the top part of the photo, pins on the cars below */
.stage { position: relative; }
.callouts { position: absolute; inset: 0; pointer-events: none; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders path { fill: none; stroke: #3d7090; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--ink);
  box-shadow: 0 0 0 3px rgba(244, 245, 245, 0.85);
}
.pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #3d7090; opacity: 0; }
.tag {
  position: absolute; left: var(--x); top: var(--y); transform: translateY(-100%);
  width: 10.6%; padding: 0 0 5px 7px;
  border-bottom: 1px solid #3d7090;
  font-size: 0.6875rem; font-weight: 650; line-height: 1.22; letter-spacing: 0.01em; color: var(--ink);
  text-wrap: balance; hyphens: auto; overflow-wrap: break-word;
}
@media (min-width: 1100px) { .tag { font-size: 0.75rem; } }
@media (min-width: 1300px) { .tag { font-size: 0.8125rem; } }

@media (prefers-reduced-motion: no-preference) {
  .js .pin { opacity: 0; transform: scale(0.4); }
  .js .leaders path { stroke-dashoffset: 1; }
  .js .tag { opacity: 0; transform: translateY(calc(-100% + 10px)); }
  .js .is-scanning .pin { opacity: 1; transform: none; transition: opacity 360ms ease var(--d), transform 560ms var(--ease-out) var(--d); }
  .js .is-scanning .leaders path { stroke-dashoffset: 0; transition: stroke-dashoffset 520ms cubic-bezier(0.3, 0, 0.2, 1) calc(var(--d) + 100ms); }
  .js .is-scanning .tag { opacity: 1; transform: translateY(-100%); transition: opacity 380ms ease calc(var(--d) + 380ms), transform 480ms var(--ease-out) calc(var(--d) + 380ms); }
  .js .is-scanning .pin::after { animation: pin-ping 3.8s ease-out calc(var(--d) + 1600ms) infinite; }
}
@keyframes pin-ping {
  0% { transform: scale(1); opacity: 0.75; }
  55%, 100% { transform: scale(2.7); opacity: 0; }
}

/* Hero reveal: the studio opens from the centre while the lights come up,
   then the logo settles on the wall and the inspection scan begins. */
@media (prefers-reduced-motion: no-preference) {
  .js .inspect { clip-path: inset(0 50% 0 50%); }
  .js .is-ready .inspect { clip-path: inset(0 0 0 0); transition: clip-path 1200ms cubic-bezier(0.16, 1, 0.3, 1) 250ms; }
  .js .shot picture img { opacity: 1; filter: brightness(0.28) contrast(1.08); transform: scale(1.09); }
  .js .is-ready .shot picture img { opacity: 1; filter: brightness(1) contrast(1); transform: none; transition: filter 1300ms cubic-bezier(0.3, 0, 0.2, 1) 350ms, transform 2000ms var(--ease-out) 250ms; }
  .js .shot .wall-logo { opacity: 0; transform: translateY(8px); }
  .js .is-ready .shot .wall-logo { opacity: 1; transform: none; transition: opacity 800ms ease 1000ms, transform 800ms var(--ease-out) 1000ms; }
  .js .is-ready .inspect figcaption { transition: opacity 700ms ease 1100ms; }
}
