/* ==========================================================================
   The Phone Shop Farnham
   Warm paper + near-black ink for calm, high-contrast reading; "volt" lime for
   anything charged, open or callable; electric blue for highlights; coral only
   for the broken moments the animations fix.
   Type: Bricolage Grotesque (headlines) + Atkinson Hyperlegible Next (reading).
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #121317;
  --ink-2: #2B2D35;
  --muted: #565964;
  --paper: #F4F2EC;
  --paper-2: #EAE6DC;
  --card: #FFFFFF;
  --line: #D9D4C7;
  --night: #111318;
  --night-2: #1A1D25;
  --night-line: rgba(255, 255, 255, .12);
  --on-night: #F3F3EE;
  --on-night-muted: #ABAFBA;
  --volt: #D4FF3D;
  --volt-soft: #F1FFC4;
  --blue: #3354FF;
  --blue-soft: #E8ECFF;
  --coral: #FF5A45;
  --amber: #FFB01F;
  --green: #2F9E44;
  --focus: var(--blue);

  --font-head: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --sheet-r: 32px;
  --gutter: 16px;
  --header-h: 76px;
  --bar-h: 84px;
  --sec-pad: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.lenis) { scroll-behavior: auto; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-x: clip;
}
@media (min-width: 960px) { body { padding-bottom: 0; } }

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 760; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
strong { font-weight: 700; }
address { font-style: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 12px; background: var(--volt); color: var(--ink);
  border: 2px solid var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

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

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 28px; } }

/* ---------- Buttons: chunky, press-down "sticker" style (transform-only motion) ---------- */
.btn {
  --bg: var(--volt); --fg: var(--ink); --bd: var(--ink); --drop: 5px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 22px;
  border: 0; border-radius: 16px; background: none; color: var(--fg);
  font: 700 1.08rem/1.15 var(--font-head);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {               /* face */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg); border: 2.5px solid var(--bd); border-radius: inherit;
}
.btn::after {                /* the block it sits on */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--bd); border-radius: inherit;
  transform: translateY(var(--drop));
  transition: transform .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateY(calc(var(--drop) + 2px)); }
.btn:active { transform: translateY(4px); }
.btn:active::after { transform: translateY(calc(var(--drop) - 4px)); }
.btn:focus-visible { outline-offset: 6px; }
.btn-lg { min-height: 60px; padding: 0 26px; font-size: 1.15rem; }
.btn-sm { min-height: 46px; padding: 0 16px; font-size: 1rem; --drop: 4px; }
.btn-volt { --bg: var(--volt); --fg: var(--ink); }
.btn-paper { --bg: var(--card); --fg: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: var(--volt); --bd: var(--ink); }
.sheet-night .btn { --bd: #000; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px 14px; }

/* little "ring" on phone icons (CSS so the icon is never moved in the DOM) */
.motion .i.is-ringing { animation: ring .7s ease-in-out; transform-origin: 50% 50%; }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  12% { transform: rotate(-16deg); } 28% { transform: rotate(14deg); }
  44% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } 76% { transform: rotate(-4deg); }
}

/* ---------- Live status pill ---------- */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--ink);
  font: 700 1rem/1.25 var(--font-head); color: var(--ink);
}
.status .dot { position: relative; width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--muted); }
.status.is-open .dot { background: var(--green); }
.status.is-closed .dot { background: var(--amber); }
.status .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.motion .status.is-open .dot::after { animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.status-sm { padding: 5px 12px 5px 9px; font-size: .95rem; border-width: 1.5px; }
.status-lg { font-size: 1.05rem; }
.status-ink { background: var(--ink); color: var(--on-night); }
.status-ink.is-open .dot { background: var(--volt); }

/* ---------- Battery-style scroll progress ---------- */
.charge { display: none; position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 4px; overflow: hidden; pointer-events: none; }
.motion .charge { display: block; }
.charge-win { position: absolute; inset: 0; overflow: hidden; transform: translateX(-100%); }
.charge-grad {
  position: absolute; inset: 0; transform: translateX(100%);
  background: linear-gradient(90deg, var(--coral), var(--amber) 45%, var(--volt) 88%);
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--paper); border-bottom: 1.5px solid var(--line); }
.header-row {
  display: grid; align-items: center; gap: 6px 12px;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand status" "nav nav";
  padding-top: 12px;
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 11px; min-height: 48px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 800 1.2rem/1 var(--font-head); letter-spacing: -.02em; }
.brand-town { margin-top: 5px; font: 700 .76rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.header-row > .status { grid-area: status; justify-self: end; }
.nav { grid-area: nav; margin-inline: calc(var(--gutter) * -1); border-top: 1.5px solid var(--line); }
.nav ul { list-style: none; margin: 0; padding: 0 calc(var(--gutter) - 10px); display: flex; flex-wrap: wrap; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 50px; padding: 0 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 3px; border-radius: 3px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-call { display: none; }
@media (min-width: 960px) {
  .site-header { position: sticky; top: 0; }
  .header-row {
    grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand nav status call";
    gap: 22px; padding-block: 12px; min-height: var(--header-h);
  }
  .nav { margin: 0; border: 0; justify-self: end; }
  .nav ul { padding: 0; gap: 2px; }
  .nav a { padding: 0 14px; }
  .nav a::after { left: 14px; right: 14px; }
  .header-call { display: inline-flex; grid-area: call; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 30px 0 48px; }
.hero::before {                       /* soft glow + dot grid behind the phone */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(34rem 26rem at 78% 58%, rgba(212, 255, 61, .55), transparent 65%),
    radial-gradient(30rem 24rem at 92% 20%, rgba(51, 84, 255, .16), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(18, 19, 23, .16) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(55% 50% at 75% 55%, #000, transparent 75%);
  mask-image: radial-gradient(55% 50% at 75% 55%, #000, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 34px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-title {
  font-size: clamp(2.65rem, 5.4vw + .7rem, 4.75rem);
  font-weight: 800; line-height: .97; letter-spacing: -0.042em;
}
.ht { display: block; }
.ht-hl { position: relative; display: inline-block; isolation: isolate; padding-right: .12em; }
.hl-mark {
  position: absolute; z-index: -1; left: -.06em; right: 0; top: .16em; bottom: .02em;
  transform: rotate(-1.6deg);
}
.hl-fill { position: absolute; inset: 0; border-radius: .14em; background: var(--volt); transform-origin: left center; }
.motion .hl-fill { transform: scaleX(0); }
.hero-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 35rem; }
.hero .cta-row, .finale .cta-row { width: 100%; }
.hero .cta-row .btn, .finale .cta-row .btn { flex: 1 1 100%; }
.hero-note { color: var(--muted); }
@media (min-width: 640px) { .hero .cta-row .btn, .finale .cta-row .btn { flex: 0 0 auto; } }

.hero-art { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-visual { position: relative; width: min(250px, 62vw); padding-top: 6px; }
.hp-float, .hp-shake { will-change: transform; }
.hp { width: 100%; height: auto; }
.hp-shadow {
  width: 78%; height: 26px; margin: 10px auto 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(18, 19, 23, .32), transparent);
}
.hp-date { font: 600 17px var(--font-head); fill: #FFFFFF; opacity: .9; }
.hp-time { font: 700 82px var(--font-head); fill: #FFFFFF; letter-spacing: -2px; }
.hp-note-title { font: 800 15px var(--font-body); fill: #FFFFFF; }
.hp-note-time { font: 500 13px var(--font-body); fill: #FFFFFF; opacity: .7; }
.hp-note-body { font: 700 15px var(--font-body); fill: #FFFFFF; }
.hp-note-sub { font: 500 14px var(--font-head); fill: #FFFFFF; opacity: .85; }

/* phone states: calm version = already fixed; motion version starts shattered */
.hp-flat, .hp-shards { display: none; }
.motion .hp-flat, .motion .hp-shards { display: inline; }
.motion .hp-on { opacity: 0; }
.hp-sweep { opacity: 0; }
.hp-shards polygon { fill: #FFFFFF; stroke: #FFFFFF; stroke-opacity: .75; stroke-width: 1.1; stroke-linejoin: round; }

.sticker {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 8px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  font: 800 .95rem/1 var(--font-head); white-space: nowrap;
}
.sticker .i { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: var(--volt); stroke-width: 3.2; }
.st-a { left: -22%; top: 15%; transform: rotate(-6deg); }
.st-b { right: -24%; top: 43%; transform: rotate(5deg); }
.st-c { left: -16%; bottom: 17%; transform: rotate(-3deg); }
.motion .sticker { opacity: 0; }

.replay {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: transparent; border: 1.5px dashed var(--ink-2); color: var(--ink-2);
  font: 700 .98rem/1 var(--font-body); cursor: pointer;
}
.replay[hidden] { display: none; }
.replay:hover { background: rgba(18, 19, 23, .05); }
.replay-dark { border-color: rgba(255, 255, 255, .45); color: var(--on-night); }
.replay-dark:hover { background: rgba(255, 255, 255, .06); }

.facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.facts li {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border-radius: var(--r); background: var(--card); border: 1.5px solid var(--line);
  color: var(--muted); font-size: .98rem; line-height: 1.35;
}
.facts .i { width: 26px; height: 26px; color: var(--ink); }
.facts strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 2px; }

@media (min-width: 960px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1.12fr .88fr; align-items: center; gap: 48px; }
  .hero-copy { gap: 26px; }
  .hero-visual { width: min(310px, 25vw); }
  .facts { grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
  .facts li { flex-direction: row; align-items: flex-start; gap: 12px; }
}

/* ---------- Sections & stacked "sheets" ---------- */
.section { position: relative; padding-block: var(--sec-pad); }
.sheet { position: relative; margin-top: calc(var(--sheet-r) * -1); border-radius: var(--sheet-r) var(--sheet-r) 0 0; }
.sheet-night { background: var(--night); color: var(--on-night); --focus: var(--volt); }
.sheet-paper { background: var(--paper); }
.sheet-volt { background: var(--volt); color: var(--ink); }
@media (min-width: 960px) { .section { scroll-margin-top: calc(var(--header-h) - var(--sheet-r)); } }

.section-head { max-width: 46rem; margin-bottom: clamp(34px, 4.5vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font: 800 .9rem/1 var(--font-head); letter-spacing: .15em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 13px; height: 13px; border-radius: 4px; background: var(--volt); border: 2px solid var(--ink); }
.sheet-night .eyebrow::before { border-color: var(--volt); }
.section-head h2 { font-size: clamp(2.35rem, 5vw + .6rem, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.lead { margin-top: 18px; font-size: 1.22rem; color: var(--muted); max-width: 40rem; }
.sheet-night .lead { color: var(--on-night-muted); }

.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; }

/* ---------- Repairs: device cards ---------- */
.devices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 14px; border-radius: var(--r-lg);
  background: var(--card); border: 1.5px solid var(--line);
  transition: transform .35s var(--ease);
}
.dc::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  box-shadow: 0 22px 44px -22px rgba(18, 19, 23, .35); opacity: 0; transition: opacity .35s var(--ease);
}
@media (hover: hover) {
  .dc:hover { transform: translateY(-4px); }
  .dc:hover::after { opacity: 1; }
}
.dc-art {
  display: grid; place-items: center; overflow: hidden; aspect-ratio: 1 / 1;
  border-radius: var(--r);
  background-color: var(--blue-soft);
  background-image:
    linear-gradient(rgba(51, 84, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 84, 255, .09) 1px, transparent 1px);
  background-size: 14px 14px;
}
.dart { width: 100%; height: auto; overflow: visible; }
.dc-body h3 { font-size: 1.38rem; margin-bottom: 6px; }
.dc-body p { color: var(--muted); font-size: 1.02rem; }
.dc-more { background: transparent; border: 2px dashed #B9B4A7; }
.dc-more .dc-art { background-color: var(--volt-soft); background-image: none; }
.dc-more .dc-cta { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .dc-more .dc-art { grid-row: span 2; }
  .dc-more .dc-cta { grid-column: 2; justify-self: start; margin-top: -4px; }
}

/* device illustration parts */
.d-shadow { fill: var(--ink); opacity: .12; }
.d-body { fill: var(--ink); }
.d-off { fill: #08090C; }
.d-volt { fill: var(--volt); }
.d-coral { fill: var(--coral); }
.d-tick { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.d-line { fill: #FFFFFF; opacity: .35; }
.d-island { fill: #000; }
.a-crack { fill: none; stroke: #FFFFFF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.d-outline { fill: none; stroke: #FFFFFF; stroke-width: 3; }
.d-outline-thin { fill: none; stroke: #FFFFFF; stroke-width: 1.6; }
.d-cap { fill: #FFFFFF; }
.d-bolt { fill: var(--ink); }
.a-low { opacity: 0; }
.d-stroke-w { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; }
.a-power { opacity: 0; }
.d-base { fill: #DAD6CB; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.d-notch { fill: var(--ink); opacity: .4; }
.d-ram { fill: var(--volt); stroke: var(--ink); stroke-width: 2.2; }
.d-chip { fill: var(--ink); }
.d-tower { fill: #ECE9E1; stroke: var(--ink); stroke-width: 3; }
.d-vent { stroke: var(--ink); stroke-width: 2.2; opacity: .45; stroke-linecap: round; }
.d-fan-ring { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.d-blade { fill: var(--ink); }
.d-led-off { fill: #9A9DA6; }
.d-pins { stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; }
.d-die { fill: #2B2D35; }
.d-q { font: 800 32px var(--font-head); fill: var(--volt); }
.a-q { opacity: 0; }
.d-spark { fill: var(--volt); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }

@media (min-width: 640px) {
  .devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc { grid-template-columns: 1fr; align-content: start; padding: 16px 16px 22px; }
  .dc-art { aspect-ratio: 1.6 / 1; }
  .dc-phone, .dc-more { grid-column: 1 / -1; }
  .dc-phone, .dc-more { grid-template-columns: minmax(200px, .9fr) 1fr; align-items: center; }
}
@media (min-width: 1040px) {
  .devices { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .dc-phone { grid-column: 1 / 4; grid-row: 1 / 3; grid-template-columns: 1fr; align-content: stretch; }
  .dc-phone .dc-art { aspect-ratio: auto; min-height: 320px; height: 100%; }
  .dc-phone .dart { width: 92%; }
  .dc-tablet, .dc-laptop, .dc-desktop, .dc-more { grid-column: span 3; grid-template-columns: 210px 1fr; align-items: center; }
  .dc-tablet .dc-art, .dc-laptop .dc-art, .dc-desktop .dc-art, .dc-more .dc-art { aspect-ratio: 1.2 / 1; }
}

/* ---------- Common jobs + exploded phone ---------- */
.jobs { margin-top: clamp(56px, 8vw, 96px); }
.jobs-title { font-size: clamp(1.7rem, 2.4vw + .7rem, 2.3rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.jobs-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .jobs-grid { grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: center; } }

.xray {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 62px 8px 8px; border-radius: var(--r-lg);
  background:
    radial-gradient(28rem 20rem at 35% 52%, rgba(51, 84, 255, .32), transparent 70%),
    var(--night);
}
.xray::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 40% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse at 40% 50%, #000 10%, transparent 75%);
}
.xray-svg { width: 100%; height: auto; overflow: visible; }
.xray-caps { position: absolute; left: 16px; top: 16px; height: 34px; }
.xr-cap {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--night-line);
  color: var(--on-night); font: 700 .95rem/1.2 var(--font-head);
  opacity: 0;
}
.xr-cap:nth-child(2) { opacity: 1; }
.xr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--on-night-muted); }
.xr-dot.is-coral { background: var(--coral); }
.xr-dot.is-blue { background: #8FA0FF; }
.xr-dot.is-volt { background: var(--volt); }
.xr-halo, .xr-leader { fill: none; stroke-linecap: round; }
.xr-halo { stroke: var(--night); stroke-width: 6; }
.xr-leader { stroke: #ABAFBA; stroke-width: 1.6; }
.xr-label circle { fill: var(--volt); stroke: var(--night); stroke-width: 2.5; }
.xr-label text { font: 650 25px var(--font-head); fill: var(--on-night); }
.xg-cracks { display: none; }
.motion .xg-cracks { display: inline; }

.job-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line); }
.job-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 4px; border-bottom: 1.5px solid var(--line); color: var(--muted); }
.job-list .i { width: 28px; height: 28px; color: var(--ink); margin-top: 1px; }
.job-list strong { display: block; color: var(--ink); font-size: 1.15rem; }

.quote {
  margin-top: clamp(48px, 7vw, 80px);
  display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
  padding: 26px; border-radius: var(--r-lg);
  background: var(--ink); color: var(--on-night); --focus: var(--volt);
}
.quote h3 { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.quote p { color: var(--on-night-muted); font-size: 1.12rem; max-width: 36rem; }
.quote .btn { --bd: #000; width: 100%; }
@media (min-width: 760px) {
  .quote { flex-direction: row; align-items: center; justify-content: space-between; padding: 34px 38px; }
  .quote .btn { width: auto; }
}

/* ---------- How a repair works: the journey ---------- */
.how { background: var(--paper-2); }
.journey { position: relative; padding-top: 8px; }
.motion .journey { padding-top: 82px; padding-bottom: 96px; }
.journey-svg { display: none; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.motion .journey-svg { display: block; }
.jp-guide { fill: none; stroke: var(--ink); stroke-opacity: .22; stroke-width: 3; stroke-dasharray: 1 11; stroke-linecap: round; }
.jp-line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.token { display: none; position: absolute; left: 0; top: 0; z-index: 1; width: 58px; height: 58px; }
.motion .token { display: block; }
.token svg { width: 100%; height: 100%; }
.tk-bg { fill: #FFFFFF; stroke: var(--ink); stroke-width: 2.5; }
.tk-phone { fill: var(--ink); }
.tk-scan, .tk-fixed { opacity: 0; }

.steps { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.step { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; align-content: start; }
.marker {
  position: relative; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--card); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
}
.marker-fill { position: absolute; inset: 0; border-radius: 50%; background: var(--volt); }
.motion .marker-fill { transform: scale(0); }
.marker-num { position: relative; font: 800 1.9rem/1 var(--font-head); }
.step-body { padding-top: 12px; }
.step-body h3 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 6px; }
.step-body p { color: var(--muted); max-width: 26rem; }
/* calm version: simple connectors between the steps */
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 34.5px; top: 82px; bottom: -40px; width: 3px; border-radius: 2px; background: var(--ink); opacity: .25;
}
.motion .step::before { display: none; }
/* if the path plugins couldn't load, fall back to the calm layout */
.motion .journey.no-path { padding-top: 8px; padding-bottom: 0; }
.motion .journey.no-path .journey-svg, .motion .journey.no-path .token { display: none; }
.motion .journey.no-path .step::before { display: block; }
.motion .journey.no-path .marker-fill { transform: none; }

@media (min-width: 960px) {
  .motion .journey { padding-top: 96px; padding-bottom: 8px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step { grid-template-columns: 1fr; gap: 20px; }
  .step-body { padding-top: 0; }
  .step:not(:last-child)::before { left: 90px; right: -22px; top: 35px; bottom: auto; width: auto; height: 3px; }
}

.prep { margin-top: clamp(52px, 7vw, 84px); padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1.5px solid var(--line); }
.prep h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 14px; font-size: 1.12rem; }
.tick-box { width: 36px; height: 36px; flex: none; }
.tick-box rect { fill: var(--volt); stroke: var(--ink); stroke-width: 2.5; }
.tick-path { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 960px) {
  .prep { display: grid; grid-template-columns: 230px 1fr; align-items: center; padding: 30px 34px; }
  .prep h3 { margin: 0; }
  .checks { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .checks li { font-size: 1.06rem; }
}

/* ---------- Buy & sell: the trade-in machine ---------- */
.trade { background-image: radial-gradient(40rem 28rem at 75% 40%, rgba(51, 84, 255, .22), transparent 70%); }
.trade-grid { display: grid; gap: 30px; grid-template-areas: "head" "machine" "copy"; }
.trade-head { grid-area: head; margin-bottom: 0; }
.machine-stage { grid-area: machine; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.trade-copy { grid-area: copy; }
.machine { width: min(100%, 400px); height: auto; overflow: visible; }
.m-sign { font: 800 22px var(--font-head); letter-spacing: 3px; fill: var(--ink); }
.m-t1, .m-t2 { font: 800 16px var(--font-head); letter-spacing: 1px; fill: var(--volt); }
.m-t3 { font: 600 13px var(--font-body); fill: #FFFFFF; opacity: .85; }
.m-ticket-text { font: 800 11.5px var(--font-head); letter-spacing: .3px; fill: var(--ink); }
.m-coin-text { font: 800 19px var(--font-head); fill: var(--ink); }
/* calm version shows the finished state */
.m-phone, .m-t1, .m-scan { opacity: 0; }
html:not(.motion) .m-needle-1 { transform: rotate(70deg); transform-origin: 148px 320px; }
html:not(.motion) .m-needle-2 { transform: rotate(55deg); transform-origin: 252px 320px; }
html:not(.motion) .m-lever { transform: rotate(18deg); transform-origin: 344px 252px; }

.trade-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trade-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px;
  border-radius: var(--r); background: var(--night-2); border: 1px solid var(--night-line);
  color: var(--on-night-muted);
}
.tl-num {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 14px; background: var(--volt); color: var(--ink); font: 800 1.35rem/1 var(--font-head);
}
.trade-list strong { display: block; margin-bottom: 2px; color: var(--on-night); font: 800 1.22rem/1.2 var(--font-head); }
.trade-copy .cta-row { margin-top: 26px; }
.trade-note { margin-top: 14px; color: var(--on-night-muted); }
@media (min-width: 960px) {
  .trade-grid {
    grid-template-columns: 1fr 1fr; grid-template-areas: "head machine" "copy machine";
    column-gap: 64px; row-gap: 34px; align-items: center;
  }
  .trade-head { align-self: end; }
  .trade-copy { align-self: start; }
  .machine { width: min(100%, 470px); }
}

/* ---------- Visit: diorama, hours, contact ---------- */
.visit-grid { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .visit-grid { grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
}
.dio-card { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: #DCE7FF; }
.dio { width: 100%; height: auto; }
.dio-open {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .94); border: 1.5px solid var(--ink);
  color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: transform .25s var(--ease);
}
.dio-open .i { width: 17px; height: 17px; }
.dio-open:hover { transform: translateY(-2px); }

.find-card h3, .hours-card h3, .contact-card h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.find-us { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--volt-soft); border-left: 5px solid var(--ink); line-height: 1.5; }
.find-card address { margin: 20px 0 22px; font-size: 1.2rem; line-height: 1.5; }
.find-card .cta-row .btn { flex: 1 1 auto; }

.hours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hours-head .status { font-size: .95rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.hours th, .hours td { padding: 12px 10px; text-align: left; border-bottom: 1.5px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-family: var(--font-head); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today { background: var(--volt-soft); }
.hours tr.is-today th { font-weight: 800; }
.hours tr.is-today th::after {
  content: "Today"; margin-left: 10px; padding: 2px 8px; border-radius: 6px; vertical-align: 2px;
  background: var(--ink); color: var(--volt); font-size: .78rem; font-weight: 700;
}
.hours tr.is-today td { font-weight: 800; }
.hours-note { margin-top: 14px; color: var(--muted); }

.contact-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px;
  border-radius: var(--r-sm); background: var(--paper); color: var(--ink); text-decoration: none;
  overflow-wrap: anywhere; transition: transform .25s var(--ease);
}
.contact-list a:hover { transform: translateX(4px); }
.contact-list .i { width: 24px; height: 24px; }
.contact-list span { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 700; line-height: 1.3; }
.contact-list small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .9rem; }

/* diorama colours: day by default, night after dark in Farnham */
.dio {
  --t-top: #EEEAE0; --t-l: #D8D2C4; --t-r: #C7C0B1; --road: #A9B0BF; --kerb: #FFFFFF; --road-line: #FFFFFF;
  --b-top: #FBF9F4; --b-front: #E6E1D5; --b-side: #D1CBBD; --win: #A9BCE0; --win-warm: #A9BCE0; --shop: #8FA6CF;
  --stroke: #121317; --us-top: #EAFFA6; --us-front: #D4FF3D; --us-win: #121317;
  --pr-top: #F5F5F5; --pr-front: #FFFFFF; --door: #121317; --door-light: rgba(0, 0, 0, 0);
  --low-top: #F3F1EA; --low-front: #E2DDD1; --low-side: #D3CDC0;
  --label: #3C3F48; --label-strong: #121317; --road-text: #121317; --foot: #121317; --pointer: #121317;
}
.dio.is-night {
  --t-top: #2A3050; --t-l: #1E2340; --t-r: #191D36; --road: #3A4163; --kerb: #5A6390; --road-line: #8C95BD;
  --b-top: #3E4569; --b-front: #30365A; --b-side: #282D4C; --win: #1C2142; --win-warm: #FFD27A; --shop: #232850;
  --stroke: #070914; --us-top: #7E9A24; --us-front: #9DBB2C; --us-win: #0E1126;
  --pr-top: #4A5178; --pr-front: #B9BED6; --door: #0B0D1A;
  --low-top: #353B5E; --low-front: #2B3052; --low-side: #24294A;
  --label: #C9CDE0; --label-strong: #F3F3EE; --road-text: #C9CDE0; --foot: #D4FF3D; --pointer: #F3F3EE;
}
.dio.is-night.is-open { --us-front: #D4FF3D; --us-top: #B8E02E; --us-win: #FFF1B0; --door: #FFE9A6; --door-light: rgba(255, 233, 166, .55); }
.sky-night, .dio-stars, .dio-moon { opacity: 0; }
.dio.is-night .sky-night, .dio.is-night .dio-stars, .dio.is-night .dio-moon { opacity: 1; }
.dio.is-night .dio-sun { opacity: 0; }
.t-top { fill: var(--t-top); }
.t-side-l { fill: var(--t-l); }
.t-side-r { fill: var(--t-r); }
.street { fill: var(--road); }
.kerb { fill: none; stroke: var(--kerb); stroke-width: 1.5; opacity: .8; }
.street-line { fill: none; stroke: var(--road-line); stroke-width: 2; stroke-dasharray: 10 12; opacity: .85; }
.door-light { fill: var(--door-light); }
.bld polygon { stroke: var(--stroke); stroke-width: 1.1; stroke-linejoin: round; }
.b-top { fill: var(--b-top); }
.b-front { fill: var(--b-front); }
.b-side { fill: var(--b-side); }
.bld .win { fill: var(--win); stroke-width: .8; }
.bld .win-warm { fill: var(--win-warm); }
.bld .win-shop { fill: var(--shop); }
.bld-us .b-top { fill: var(--us-top); }
.bld-us .b-front { fill: var(--us-front); }
.bld .win-us { fill: var(--us-win); }
.bld .win-glare { fill: #FFFFFF; opacity: .2; stroke: none; }
.bld-premier .b-top { fill: var(--pr-top); }
.bld-premier .b-front { fill: var(--pr-front); }
.bld .door { fill: var(--door); }
.bld-low .b-top { fill: var(--low-top); }
.bld-low .b-front { fill: var(--low-front); }
.bld-low .b-side { fill: var(--low-side); }
.us-pulse { fill: none; stroke: var(--volt); stroke-width: 3.5; stroke-linejoin: round; opacity: 0; }
.walk-path { fill: none; stroke: none; }
.foot { fill: var(--foot); opacity: .55; }
.walker { opacity: 0; }
.w-shadow { fill: #000; opacity: .2; }
.w-torso, .w-head { fill: var(--ink); }
.w-legs { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.w-phone { fill: var(--volt); stroke: var(--ink); stroke-width: 1; }
.dio.is-night .w-torso, .dio.is-night .w-head { fill: #F3F3EE; }
.dio.is-night .w-legs { stroke: #F3F3EE; }
.street-name { font: 800 14px var(--font-head); letter-spacing: 3px; fill: var(--road-text); }
.roof-label { font: 700 15px var(--font-body); fill: var(--label); }
.roof-label.roof-strong { fill: var(--label-strong); }
.tag-box { fill: var(--volt); stroke: var(--ink); stroke-width: 2.5; }
.tag-title { font: 800 17px var(--font-head); fill: var(--ink); }
.tag-sub { font: 700 14px var(--font-head); fill: var(--ink); }
.tag-pointer { stroke: var(--pointer); stroke-width: 2.5; stroke-linecap: round; }
.tag-dot { fill: var(--volt); stroke: var(--ink); stroke-width: 2.5; }
.tag-box-light { fill: #FFFFFF; stroke: var(--ink); stroke-width: 2; }
.tag-small { font: 800 14px var(--font-head); fill: var(--ink); }

/* ---------- Final call ---------- */
.finale { padding-block: var(--sec-pad) calc(var(--sec-pad) + var(--sheet-r)); --focus: var(--blue); }
.finale-title { margin: 24px 0 30px; line-height: .9; }
.ft-small { display: block; font-size: clamp(1.9rem, 3vw + 1rem, 3.1rem); font-weight: 760; letter-spacing: -.03em; }
.ft-big { display: block; font-size: clamp(3.9rem, 15vw, 11.5rem); font-weight: 800; letter-spacing: -.055em; }
.finale-note { margin-top: 22px; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; }
.footer-grid { display: grid; gap: 26px; }
.brand-dark { color: var(--on-night); }
.brand-dark .brand-town { color: var(--on-night-muted); }
.footer-brand p { margin-top: 16px; color: var(--on-night-muted); }
.footer-brand p a { font-family: var(--font-head); display: inline-flex; align-items: center; min-height: 44px; color: var(--on-night); text-underline-offset: 3px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; margin-left: -10px; color: var(--on-night-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--on-night); text-decoration: underline; }
.footer-legal { margin-top: 30px; font-size: .94rem; color: var(--on-night-muted); }
.footer-legal::before { content: ""; display: block; margin-bottom: 26px; border-top: 1px solid var(--night-line); }
.privacy { margin-top: 16px; }
.privacy summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer;
  color: var(--on-night); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.privacy p { margin-top: 10px; max-width: 48rem; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }

/* ---------- Sticky phone bar ---------- */
.mobile-bar {
  position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom));
  background: rgba(244, 242, 236, .97); border-top: 1.5px solid var(--line);
}
.mobile-bar .btn { min-height: 56px; font-size: 1.15rem; }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* ---------- Print ---------- */
@media print {
  .mobile-bar, .hero-art, .machine-stage, .charge, .skip, .xray, .replay { display: none !important; }
  .sheet-night, .sheet-volt, .quote { background: #FFFFFF !important; color: #000000 !important; }
}

/* digits in the headline font (the reading font uses a crossed zero) */
.num { font-family: var(--font-head); font-weight: 700; }
