/* Grime Guys · www.grimeguys.net
   Editorial premium on the film's dark studio: navy night, crisp blue light, condensed uppercase display.
   Order: hero + price strip, the film, prices, before/after, booking, request. */

@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* colour: the film's navy studio */
  --night-0: #04070d;
  --night: #070b13;
  --night-1: #0b111c;
  --night-2: #111a29;
  --night-3: #18233a;
  --line: rgb(148 178 226 / 0.14);
  --line-strong: rgb(148 178 226 / 0.28);
  --text: #f1f5fb;
  --text-2: #b3c0d3;   /* 9.9:1 on night */
  --text-3: #8b99af;   /* 6.6:1 on night, 5.8:1 on night-2 */

  --blue: #0675ec;           /* brand blue: large type, light, rules */
  --blue-btn: #0567d6;       /* button fill with white label: 5.4:1 */
  --blue-btn-hover: #0458bc;
  --blue-on-dark: #5aa9ff;   /* small blue text on night: 7.6:1 */
  --blue-glow: rgb(6 117 236 / 0.55);
  --focus: #8cc4ff;

  /* theme-dependent surfaces and effects (light values below) */
  --masthead-bg: rgb(7 11 19 / 0.86);
  --bar-bg: rgb(4 7 13 / 0.9);
  --deal-text: #fff;
  --text-glow: rgb(6 117 236 / 0.55);
  --step-glow: rgb(6 117 236 / 0.6);
  --hover-line: rgb(200 220 255 / 0.7);
  --ghost-bg: rgb(255 255 255 / 0.02);
  --ghost-bg-hover: rgb(255 255 255 / 0.06);
  --muted-underline: rgb(255 255 255 / 0.25);
  --bundle-top: #0d1b33;
  --bundle-wash: rgb(6 117 236 / 0.34);
  --wash: rgb(6 117 236 / 0.24);
  --wash-soft: rgb(6 117 236 / 0.16);
  --deep-shadow: rgb(0 0 0 / 0.9);
  --map-grid: rgb(120 160 220 / 0.09);
  --map-road: rgb(61 151 255 / 0.35);

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  /* space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: clamp(16px, 4.4vw, 64px);
  --section: clamp(72px, 10vw, 152px);
  --max: 1360px;
  --radius: 4px;
  --header-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --actionbar-h: 0px;
  color-scheme: dark;
}

/* ---------- light theme: daylight on the same studio. Text pairs are AA on every surface they sit on. ---------- */
:root[data-theme="light"] {
  --night-0: #e9eef5;
  --night: #f6f8fb;
  --night-1: #ffffff;
  --night-2: #eef2f7;
  --night-3: #e1e8f1;
  --line: rgb(16 36 72 / 0.12);
  --line-strong: rgb(16 36 72 / 0.24);
  --text: #0a1220;
  --text-2: #3a4658;    /* 9.0:1 on night, 8.5:1 on night-2 */
  --text-3: #556175;    /* 5.9:1 on night, 5.1:1 on night-3 */
  --blue-on-dark: #0556bd; /* small blue text on light: 6.8:1 on white, 5.5:1 on night-3 */
  --blue-glow: rgb(6 117 236 / 0.32);
  --focus: #0556bd;

  --masthead-bg: rgb(246 248 251 / 0.88);
  --bar-bg: rgb(255 255 255 / 0.92);
  --deal-text: #0a1220;
  --text-glow: transparent;
  --step-glow: transparent;
  --hover-line: rgb(16 36 72 / 0.55);
  --ghost-bg: rgb(16 36 72 / 0.02);
  --ghost-bg-hover: rgb(16 36 72 / 0.06);
  --muted-underline: rgb(16 36 72 / 0.3);
  --bundle-top: #e3eefc;
  --bundle-wash: rgb(6 117 236 / 0.14);
  --wash: rgb(6 117 236 / 0.13);
  --wash-soft: rgb(6 117 236 / 0.08);
  --deep-shadow: rgb(16 36 72 / 0.32);
  --map-grid: rgb(16 36 72 / 0.08);
  --map-road: rgb(6 117 236 / 0.3);
  color-scheme: light;
}
/* No JavaScript (so no data-theme): follow the device. Same tokens as above. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --night-0: #e9eef5;
    --night: #f6f8fb;
    --night-1: #ffffff;
    --night-2: #eef2f7;
    --night-3: #e1e8f1;
    --line: rgb(16 36 72 / 0.12);
    --line-strong: rgb(16 36 72 / 0.24);
    --text: #0a1220;
    --text-2: #3a4658;    /* 9.0:1 on night, 8.5:1 on night-2 */
    --text-3: #556175;    /* 5.9:1 on night, 5.1:1 on night-3 */
    --blue-on-dark: #0556bd; /* small blue text on light: 6.8:1 on white, 5.5:1 on night-3 */
    --blue-glow: rgb(6 117 236 / 0.32);
    --focus: #0556bd;

    --masthead-bg: rgb(246 248 251 / 0.88);
    --bar-bg: rgb(255 255 255 / 0.92);
    --deal-text: #0a1220;
    --text-glow: transparent;
    --step-glow: transparent;
    --hover-line: rgb(16 36 72 / 0.55);
    --ghost-bg: rgb(16 36 72 / 0.02);
    --ghost-bg-hover: rgb(16 36 72 / 0.06);
    --muted-underline: rgb(16 36 72 / 0.3);
    --bundle-top: #e3eefc;
    --bundle-wash: rgb(6 117 236 / 0.14);
    --wash: rgb(6 117 236 / 0.13);
    --wash-soft: rgb(6 117 236 / 0.08);
    --deep-shadow: rgb(16 36 72 / 0.32);
    --map-grid: rgb(16 36 72 / 0.08);
    --map-road: rgb(6 117 236 / 0.3);
    color-scheme: light;
  }
  :root:not([data-theme]) .film__frame::before { display: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; background: var(--night); }
/* smooth only for in-page links (focus moves with them), never for scripted scrolls */
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
s { text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

.skip {
  position: absolute; left: var(--s-4); top: var(--s-4); z-index: 200;
  padding: var(--s-3) var(--s-4); background: var(--text); color: var(--night);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

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

/* ---------- buttons: condensed uppercase, like the film's type ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 52px; padding: 2px var(--s-5) 0;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; margin-top: -2px; transition: transform 0.25s var(--ease-out); }
.btn .icon--lead { width: 17px; height: 17px; color: var(--blue-on-dark); }
.btn:hover .icon:not(.icon--lead) { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue-btn); color: #fff; box-shadow: 0 1px 0 rgb(160 205 255 / 0.35) inset, 0 10px 30px -12px var(--blue-glow); }
.btn--primary:hover { background: var(--blue-btn-hover); box-shadow: 0 1px 0 rgb(160 205 255 / 0.35) inset, 0 14px 36px -10px var(--blue-glow); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: var(--ghost-bg); }
.btn--ghost:hover { border-color: var(--hover-line); background: var(--ghost-bg-hover); }
.btn--sm { min-height: 44px; padding: 2px var(--s-4) 0; font-size: 1.0625rem; }
.btn--lg { min-height: 60px; padding: 2px var(--s-6) 0; font-size: 1.3125rem; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center;
  padding: 4px 8px 3px; border-radius: 2px;
  background: var(--blue-btn); color: #fff;
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  line-height: 1.1; white-space: nowrap; vertical-align: middle;
  box-shadow: 0 6px 18px -6px var(--blue-glow);
}
.chip--lg { font-size: 1.0625rem; padding: 7px 11px 6px; }

/* the blue strike on "booked separately" prices */
.was { position: relative; display: inline-block; color: var(--text-2); }
.was::after {
  content: ""; position: absolute; left: -8%; right: -8%; top: 50%; height: 3px; margin-top: -1px; border-radius: 2px;
  background: var(--blue-on-dark); transform: rotate(-10deg); transform-origin: 0 50%;
}
.was--sm::after { height: 2px; transform: rotate(-12deg); }

/* ---------- masthead ---------- */
.masthead { position: relative; z-index: 60; }
.masthead__row { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.masthead__brand { display: block; flex: none; margin-right: auto; padding-block: var(--s-2); }
.masthead__brand img { width: 150px; }

/* the client's logo: his transparent original, exactly as supplied, on both themes. No plate, never filtered.
   On the dark theme a soft pool of light sits behind it (page lighting, not an edit to the file), so the
   dark GRIME letters still separate from the navy. */
.brand { display: block; position: relative; isolation: isolate; }
.brand::before {
  content: ""; position: absolute; z-index: -1; inset: -40% -14%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(196 212 236 / 0.2), rgb(196 212 236 / 0.07) 62%, transparent);
}
:root[data-theme="light"] .brand::before { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .brand::before { display: none; } }

/* theme toggle */
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--ghost-bg); color: var(--text); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--hover-line); background: var(--ghost-bg-hover); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle__moon { display: none; }
:root[data-theme="light"] .theme-toggle__sun { display: block; }
.no-js .theme-toggle { display: none; }
.masthead__nav { display: none; gap: var(--s-6); }
.masthead__nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; white-space: nowrap; padding-block: var(--s-2);
  background: linear-gradient(var(--blue), var(--blue)) 50% 100% / 0 2px no-repeat;
  transition: color 0.2s, background-size 0.25s var(--ease-out);
}
.masthead__nav a:hover { color: var(--text); background-size: 100% 2px; }
.masthead__actions { display: flex; align-items: center; gap: var(--s-5); }
.masthead__phone {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding-inline: var(--s-3);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--text); text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}
.masthead__phone:hover { border-color: var(--hover-line); }
.masthead__phone .icon { width: 16px; height: 16px; color: var(--blue-on-dark); }
.masthead__phone-full { display: none; }
.masthead__cta { display: none; }
/* the smallest phones (320 to 359): tighter row, smaller wordmark, Call as an icon button (name kept for AT) */
@media (max-width: 359px) {
  .masthead__row, .masthead__actions { gap: var(--s-2); }
  .masthead__brand img { width: 120px; }
  .masthead__phone { justify-content: center; width: 44px; padding-inline: 0; }
  .masthead__phone .icon { width: 18px; height: 18px; }
  .masthead__phone-short { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(12px, 4vw, 56px) clamp(28px, 5vw, 72px); isolation: isolate; }
.hero__light {
  position: absolute; inset: calc(-1 * var(--header-h)) 0 auto; height: 680px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 46% at 72% 0%, var(--wash), transparent 70%),
    radial-gradient(40% 30% at 10% 100%, rgb(6 117 236 / 0.08), transparent 70%),
    linear-gradient(180deg, var(--night-0), var(--night) 70%);
}
.hero__light::after {
  /* the studio light bar */
  content: ""; position: absolute; left: 46%; right: var(--gutter); top: calc(var(--header-h) + 4px); height: 1px;
  background: linear-gradient(90deg, transparent, rgb(90 169 255 / 0.9) 30%, #fff 60%, rgb(90 169 255 / 0.9) 85%, transparent);
  opacity: 0.6;
}
.hero__grid { display: grid; gap: var(--s-5); }
/* 3D SLOT: hero logo. The box owns the layout (the canvas fills it), so nothing shifts when 3D arrives. */
/* (selectors carry .hero / .local so they outrank the 3D runtime's own [data-3d] rule)
   Phones: its own band under the headline, about 60vw wide. Tablets: top right. Desktop: its own cell above the prices. */
.hero__grid { position: relative; }
.hero .hero__mark {
  position: relative; display: block; z-index: 1;
  width: min(62vw, 300px); aspect-ratio: 5 / 4; margin-block: calc(-1 * var(--s-2)) calc(-1 * var(--s-1));
}
.hero__mark-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.hero__mark-fallback img { width: 88%; height: auto; max-height: 88%; object-fit: contain; }
.hero__intro { display: grid; gap: var(--s-4); }
.hero__title { display: grid; gap: var(--s-4); font-weight: 400; }
.hero__display {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(4.75rem, 1.2rem + 18vw, 10rem); line-height: 0.84; letter-spacing: -0.012em;
  color: var(--text);
}
.mask { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.mask > span { display: block; }
.hero__display .dot { color: var(--blue); }
/* sub (inside the h1) and lede read as one two-line block */
.hero__sub, .hero__lede {
  display: block; font-family: var(--font-body); font-weight: 500; font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem); line-height: 1.35;
  color: var(--text-2); letter-spacing: 0;
}
.hero__title .hero__sub { color: var(--text); }
.hero__intro .hero__lede { margin-top: calc(-1 * var(--s-4)); }

.specs {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr);
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
}
.spec { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-3) var(--s-4) 0; }
.spec + .spec { padding-left: var(--s-3); border-left: 1px solid var(--line); }
.spec dt { order: 2; font-size: 0.8125rem; font-weight: 500; color: var(--text-2); line-height: 1.25; }
.spec dd {
  order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.5rem); line-height: 0.9;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em;
}
.spec--deal { position: relative; }
.spec--deal::before {
  /* blue key light over the deal */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue) 30%, #9fd0ff 60%, var(--blue) 85%, transparent);
}
.spec--deal dd { color: var(--deal-text); }
.spec--deal dt { color: var(--text); font-weight: 600; }
.spec--deal .chip { font-size: 0.75rem; padding: 4px 7px 3px; }
.spec dd.spec__was {
  order: 3; display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.8125rem; line-height: 1.25; letter-spacing: 0;
  color: var(--text-3);
}
.spec__was .was { font-weight: 600; margin-right: 2px; }

.hero__cta { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--s-2); margin-top: var(--s-5); }
.hero__cta .btn { padding-inline: var(--s-4); }
.hero__call-full { display: none; }
.hero__note { margin-top: var(--s-4); font-size: 0.9375rem; color: var(--text-3); }
.hero__note a { color: var(--blue-on-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero__note a:hover { color: var(--text); }

/* ---------- film ---------- */
.film { position: relative; background: var(--night); padding-bottom: clamp(56px, 8vw, 112px); }
.film__frame { position: relative; aspect-ratio: 16 / 9; }
.film__frame[data-format="vertical"] { aspect-ratio: 9 / 16; max-height: 88svh; margin-inline: auto; }
.film__stage {
  --inset: 0px;
  --round: 0px;
  position: absolute; inset: 0; overflow: hidden;
  background: var(--night-0);
}
.film__video { width: 100%; height: 100%; object-fit: cover; background: var(--night-0); }
/* daylight: no fade into the dark frame, the video simply starts at a clean edge */
:root[data-theme="light"] .film__frame::before { display: none; }
.film__frame::before {
  /* fade the hero's night into the top edge of the frame */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, var(--night), transparent);
}
.film__controls {
  position: absolute; z-index: 3; right: calc(var(--inset) + var(--gutter)); bottom: clamp(16px, 3.4vw, 40px);
  display: flex; align-items: center; gap: var(--s-2);
}
.ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-width: 48px; height: 48px; padding: 0;
  border: 1px solid rgb(255 255 255 / 0.4); border-radius: 999px;
  background: rgb(4 7 13 / 0.66); color: #fff; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 0.2s, border-color 0.2s;
}
.ctl:hover { background: var(--blue-btn); border-color: var(--blue-btn); }
.ctl .icon { width: 20px; height: 20px; }
.ctl > span { padding-top: 2px; }
.ctl--pill { padding-inline: var(--s-4) calc(var(--s-4) + 2px); }
.ctl--sound.is-on { background: var(--blue-btn); border-color: var(--blue-btn); }
/* Play shows its word only while the video waits (reduced motion, data saver, or paused) */
.ctl__label { display: none; }
.film__stage[data-state="paused"] .ctl--play { padding-inline: var(--s-4) calc(var(--s-4) + 2px); }
.film__stage[data-state="paused"] .ctl__label { display: inline; }
.film__progress { position: absolute; z-index: 3; left: var(--inset); right: var(--inset); bottom: 0; height: 3px; background: rgb(255 255 255 / 0.12); }
.film__progress span { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }

.no-js .film__video { background: var(--night-0) url("media/poster-wide.jpg") center / cover no-repeat; }
@media (max-width: 600px) and (orientation: portrait) { .no-js .film__video { background-image: url("media/poster-vertical.jpg"); } }
.no-js .js-only { display: none; }
.no-js .film__controls, .no-js .film__progress, .no-js .film__frame::before { display: none; }

.film__caption { display: grid; gap: var(--s-3); padding-top: var(--s-6); }
.film__caption h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 0.92; letter-spacing: -0.005em;
}
.film__caption p { color: var(--text-2); max-width: 48ch; }

/* ---------- section heads ---------- */
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(40px, 6vw, 80px); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 1.6rem + 6.4vw, 7rem); line-height: 0.86; letter-spacing: -0.012em;
}
.section-head p { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); max-width: 40ch; color: var(--text-2); }
.hl { color: var(--blue); }

/* 3D SLOT: the price stage. Takes space only where WebGL exists (main.js sets html.webgl) and gives it back if a scene fails. */
.services__stage { display: none; height: clamp(200px, 52vw, 260px); margin-inline: calc(var(--gutter) * -0.5); }
.webgl .services__stage { display: block; }
.webgl .services__stage[data-3d-state="failed"] { display: none; }

/* ---------- services ---------- */
.services { position: relative; isolation: isolate; background: var(--night-1); padding-block: var(--section); }
.services::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(90 169 255 / 0.55) 25%, rgb(220 236 255 / 0.9) 50%, rgb(90 169 255 / 0.55) 75%, transparent);
}
.services__light {
  position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 0%, var(--wash-soft), transparent 70%);
}
.trims { display: grid; gap: var(--s-4); }
.trim {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  background: linear-gradient(180deg, var(--night-2), var(--night-1));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 rgb(160 205 255 / 0.08) inset;
}
.trim__media { position: relative; overflow: hidden; background: var(--night-3); }
.trim__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.trim:hover .trim__media img { transform: scale(1.03); }
.trim__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-4) var(--s-4) var(--s-4); min-width: 0; }
.trim h3 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 0.95; letter-spacing: 0;
}
.trim__price { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); }
.amount {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 2.4rem + 2.4vw, 4.5rem); line-height: 0.9;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.015em;
}
.trim__desc { color: var(--text-2); font-size: 0.9875rem; line-height: 1.5; }
.trim__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-1) var(--s-4); margin-top: auto; padding-top: var(--s-3); }
.trim__link {
  display: inline-flex; align-items: center; gap: var(--s-2); max-width: 100%;
  min-height: 44px; color: var(--blue-on-dark); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase;
}
@media (max-width: 599px) { .trim__link-what { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.trim__link .icon { width: 15px; height: 15px; margin-top: -2px; transition: transform 0.25s var(--ease-out); }
.trim__link:hover { color: var(--focus); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.trim__link:hover .icon { transform: translate(2px, -2px); }

/* the bundle: a lit receipt that ends on the deal */
.trim--bundle {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: var(--s-5);
  padding: var(--s-6) var(--s-5) var(--s-5);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--bundle-wash), transparent 60%),
    linear-gradient(180deg, var(--bundle-top), var(--night-2));
  border-color: rgb(61 151 255 / 0.55);
  box-shadow:
    0 1px 0 rgb(160 205 255 / 0.35) inset,
    0 0 0 1px rgb(6 117 236 / 0.22),
    0 30px 80px -24px rgb(6 117 236 / 0.45);
  overflow: hidden;
}
.trim__bundle-light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.trim__bundle-light::before {
  /* crisp light bar on top */
  content: ""; position: absolute; left: var(--s-5); right: var(--s-5); top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue) 15%, #9fd0ff 50%, var(--blue) 85%, transparent);
}
.trim__bundle-light::after {
  /* the one-time light sweep (see motion) */
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgb(190 222 255 / 0.13) 45%, rgb(255 255 255 / 0.2) 50%, rgb(190 222 255 / 0.13) 55%, transparent);
  transform: translateX(-120%) skewX(-12deg); opacity: 0;
}
/* 3D SLOT: the deal object. Behind the text, never covering a price or the button. */
.bundle__head { display: grid; gap: var(--s-3); }
.trim--bundle h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.trim--bundle .trim__desc { color: var(--text-2); max-width: 34ch; }
.tally { display: grid; border-top: 1px solid var(--line-strong); font-variant-numeric: tabular-nums lining-nums; }
.tally > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.tally dt { color: var(--text-2); font-size: 0.9375rem; }
.tally dd { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--text); }
.tally__sum dt { color: var(--text); font-weight: 600; }
.tally__sum dd { font-size: 1.75rem; }
.bundle__deal { display: grid; gap: var(--s-5); margin-top: auto; padding-top: var(--s-2); }
.trim__price--big .amount {
  font-size: clamp(5.5rem, 3.6rem + 7vw, 10rem); line-height: 0.86; padding-bottom: 0.04em;
  color: var(--deal-text); text-shadow: 0 0 60px var(--text-glow);
}
.bundle__save { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); color: var(--text-2); font-size: 0.9375rem; }
.trim--bundle .btn { margin-top: var(--s-1); }

.cans {
  display: grid; gap: var(--s-4); margin-top: clamp(40px, 6vw, 72px); padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.cans h3 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); line-height: 0.95;
}
.cans__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cans__list li { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-1); padding: var(--s-4) var(--s-3) var(--s-4) 0; }
.cans__list li + li { padding-left: var(--s-3); border-left: 1px solid var(--line); }
.cans__list span { font-size: 0.875rem; color: var(--text-2); line-height: 1.25; }
.cans__list b { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.cans .trim__link { justify-self: start; }

/* ---------- work ---------- */
.work { position: relative; background: var(--night); padding-block: var(--section); }

.work__grid { display: grid; gap: var(--s-6); }
.work__intro { display: grid; gap: var(--s-5); align-content: start; }
.work__head { margin-bottom: 0; }
.work__more { justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-4); margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
/* phones and tablets: heading, chooser, photo, then the TikTok link */
@media (max-width: 1023px) {
  .work__intro { display: contents; }
  .work__head { order: 1; }
  .work__tabs { order: 2; margin-bottom: calc(var(--s-6) * -1 + var(--s-4)); }
  .work__stage { order: 3; }
  .work__more { order: 4; margin-top: calc(var(--s-6) * -1 + var(--s-2)); }
}

/* the chooser: three transformations, one at a time */
.work__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.work__tab {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 2px;
  min-height: 52px; padding: var(--s-2) var(--s-2); border: 0; background: transparent; cursor: pointer; text-align: center;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}
.work__tab + .work__tab { border-left: 1px solid var(--line-strong); }
.work__tab-num, .work__tab-what { display: none; }
@media (max-width: 479px) { .work__tab-long { display: none; } }
.work__tab-name { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.05; }
.work__tab:hover { color: var(--text); background: var(--ghost-bg-hover); }
.work__tab[aria-selected="true"] { color: #fff; background: var(--blue-btn); }
.work__tab:focus-visible { outline-offset: -3px; }

.work__stage { display: grid; gap: var(--s-7); min-width: 0; }
.has-tabs .work__stage { gap: 0; }
.compare { display: grid; gap: var(--s-3); margin: 0; min-width: 0; }
.compare__frame {
  --pos: 50%;
  position: relative; overflow: hidden; aspect-ratio: 3 / 4; width: 100%;
  border-radius: var(--radius); background: var(--night-2);
  box-shadow: 0 0 0 1px var(--line-strong), 0 40px 90px -40px var(--deep-shadow);
  touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: ew-resize;
  -webkit-tap-highlight-color: transparent;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* Labels sit in their own top corners and stay over their own photo: when the line comes close, the label
   rides along beside it (8px clear), and only slides out of the frame together with its photo. main.js
   supplies the label widths (--lw-b, --lw-a); the fallbacks fit the 390px size. */
.compare__label {
  --edge: var(--s-3);
  position: absolute; top: var(--edge); z-index: 2; pointer-events: none; white-space: nowrap;
  padding: 7px 10px 5px; border-radius: 2px;
  background: rgb(4 7 13 / 0.86); color: #fff; border: 1px solid rgb(255 255 255 / 0.5);
  font-family: var(--font-display); font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
}
.compare__label { transition: opacity 0.18s linear; }
.compare.hide-before-label .compare__label--before, .compare.hide-after-label .compare__label--after { opacity: 0; }
.compare__label--before { left: min(var(--edge), calc(var(--pos) - var(--lw-b, 80px) - 8px)); }
.compare__label--after { right: min(var(--edge), calc(100% - var(--pos) - var(--lw-a, 66px) - 8px)); background: var(--blue-btn); border-color: rgb(160 205 255 / 0.6); }
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 1; width: 2px; margin-left: -1px; pointer-events: none;
  background: #fff; box-shadow: 0 0 0 1px rgb(4 7 13 / 0.25), 0 0 16px rgb(90 169 255 / 0.65);
}
.compare__grip {
  /* --gshift (main.js) slides the grip off the line near the frame edges so it is never cut in half */
  position: absolute; left: calc(50% + var(--gshift, 0px)); top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: #0a1220;
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.25), 0 8px 24px rgb(4 7 13 / 0.45);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.compare__grip .icon { width: 26px; height: 26px; }
.compare__frame:hover .compare__grip, .compare__frame.is-dragging .compare__grip { transform: translate(-50%, -50%) scale(1.08); }
/* the slider: keyboard and screen readers use it; pointers drag the frame itself */
.compare__range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.compare__frame:has(.compare__range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.compare__frame:has(.compare__range:focus-visible) .compare__grip { box-shadow: 0 0 0 4px var(--focus), 0 8px 24px rgb(4 7 13 / 0.45); }
/* at the very ends the grip tucks inside the frame instead of being cut in half by the edge */
/* Full before / Compare / Full after (shown by main.js; the line still drags) */
.compare__presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.compare__presets[hidden] { display: none; }
.compare__presets button {
  min-height: 44px; padding: 8px 6px 6px; border: 0; background: transparent; color: var(--text-2); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1;
  transition: background-color 0.2s, color 0.2s;
}
.compare__presets button + button { border-left: 1px solid var(--line-strong); }
.compare__presets button:hover { color: var(--text); background: var(--ghost-bg-hover); }
.compare__presets button[aria-pressed="true"] { color: var(--text); background: var(--wash-soft); box-shadow: inset 0 -2px 0 var(--blue); }
.compare__presets button:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) {
  .compare.is-gliding .compare__img--before { transition: clip-path 0.6s var(--ease-out); }
  .compare.is-gliding .compare__line, .compare.is-gliding .compare__label--before { transition: left 0.6s var(--ease-out); }
  .compare.is-gliding .compare__label--after { transition: right 0.6s var(--ease-out); }
}
.no-js .compare__range { display: none; }
.no-js .compare__frame { cursor: default; }
.compare__cap { font-size: 0.875rem; line-height: 1.5; color: var(--text-3); }
.compare__cap b { margin-right: 2px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }

/* ---------- booking + where we work ---------- */
.booking { position: relative; isolation: isolate; overflow: hidden; background: var(--night-1); padding-block: var(--section); }
.booking::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(90 169 255 / 0.4) 25%, rgb(220 236 255 / 0.7) 50%, rgb(90 169 255 / 0.4) 75%, transparent);
}
.booking__grid { display: grid; gap: var(--s-8); }
.section-head--stack { margin-bottom: var(--s-7); }
.steps { display: grid; border-top: 1px solid var(--line-strong); }
.step { display: grid; align-content: start; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-2); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.step__num {
  grid-row: span 2; font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; line-height: 0.85;
  color: var(--blue-on-dark); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px var(--step-glow);
}
.step h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 0.95; }
.step p { color: var(--text-2); max-width: 34ch; }

.booking__copy { position: relative; z-index: 2; }
.local { position: relative; justify-self: center; width: min(86%, 520px); aspect-ratio: 4 / 5; }
/* 3D SLOT: the Indianapolis map. A square around the photo; the drawn map is its fallback. */
.local .local__map-slot {
  position: absolute; z-index: 0; pointer-events: none;
  width: 190%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.local__map { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.75; }
.map__grid { stroke: var(--map-grid); stroke-width: 1; }
.map__road { stroke: var(--map-road); stroke-width: 3; }
.map__loop { stroke: #3d97ff; stroke-width: 6; filter: drop-shadow(0 0 10px rgb(6 117 236 / 0.9)); }
.local__photo {
  position: absolute; inset: 0; z-index: 1; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-strong), 0 50px 100px -40px var(--deep-shadow), 0 0 80px -30px var(--blue-glow);
}
.local__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.local__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(4 7 13 / 0.78), transparent 42%); pointer-events: none; }
.pin-chip {
  position: absolute; left: var(--s-4); bottom: var(--s-4); z-index: 1;
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 9px var(--s-4) 7px var(--s-3);
  border-radius: 999px; background: rgb(7 11 19 / 0.8); border: 1px solid rgb(61 151 255 / 0.6); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  box-shadow: 0 0 30px -4px var(--blue-glow);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
/* Where WebGL exists (html.webgl, set by main.js long before this section can be on screen) the map is the
   picture (the pin lands mid-frame) and the photo is a corner card from the start. Deciding on WebGL rather
   than on the scene going live means the photo never resizes in view: no layout shift while three.js loads.
   The drawn map shows in the same place until the 3D one fades in. Without WebGL, the layout above stands. */
.webgl .local .local__map-slot { inset: -8% -14%; width: auto; height: auto; aspect-ratio: auto; transform: none; }
.webgl .local .local__photo {
  inset: auto auto 0 0; width: clamp(130px, 44%, 290px); aspect-ratio: 4 / 5; border-radius: 10px;
}
/* the card never covers the middle of the map, where the pin lands */
@media (min-width: 768px) and (max-width: 1023px) { .webgl .local .local__photo { width: 36%; } }
@media (min-width: 1024px) {
  .webgl .local .local__photo { width: 46%; }
  /* bleed toward the gap beside the steps, not past the page edge */
  .webgl .local .local__map-slot { inset: -6% -3% -6% -20%; }
}
.webgl .local .local__photo img { object-position: 50% 45%; }
.webgl .local .pin-chip { left: var(--s-2); right: var(--s-2); bottom: var(--s-2); padding: 7px var(--s-3) 5px var(--s-2); font-size: clamp(0.75rem, 0.6rem + 0.5vw, 0.875rem); }
.pin-chip .icon { color: #5aa9ff; width: 18px; height: 18px; margin-top: -2px; }

/* ---------- request ---------- */
.request { position: relative; isolation: isolate; overflow: hidden; background: var(--night-0); padding-block: var(--section); }
.request__light {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 90% at 0% 100%, var(--bundle-wash), transparent 60%),
    linear-gradient(180deg, var(--night-0), var(--night));
}
.request__light::before {
  content: ""; position: absolute; left: 0; right: 40%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(140 196 255 / 0.9) 40%, transparent);
}
.request__grid { display: grid; gap: var(--s-6); }
.request h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.5rem, 1.6rem + 8.6vw, 9rem); line-height: 0.84; letter-spacing: -0.012em;
}
.request__aside { display: grid; gap: var(--s-5); align-content: end; }
.request__aside > p:first-child { color: var(--text-2); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); max-width: 40ch; }
.request__cta { display: grid; gap: var(--s-5); justify-items: start; }
.request__phone {
  display: grid; gap: var(--s-2);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem); line-height: 1;
  text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: color 0.2s, text-shadow 0.25s;
}
.request__phone-label { font-weight: 600; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.request__phone:hover { color: var(--blue-on-dark); text-shadow: 0 0 40px var(--text-glow); }
.request__fine { font-size: 0.9375rem; color: var(--text-3); max-width: 44ch; }

/* ---------- footer ---------- */
.footer { background: var(--night-0); border-top: 1px solid var(--line); padding-block: var(--s-8) calc(var(--s-6) + var(--actionbar-h) + env(safe-area-inset-bottom)); color: var(--text-2); font-size: 0.9375rem; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--text); }
.footer__top { display: grid; gap: var(--s-3); }
.footer__brand { justify-self: start; }
.footer__brand img { width: 200px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); margin-top: var(--s-6); padding-block: var(--s-5); border-block: 1px solid var(--line); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.footer__links a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; color: var(--text); }
.footer__links .icon { width: 14px; height: 14px; color: var(--blue-on-dark); }
.footer__hsh { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; }
.footer__hsh img { width: 32px; height: 32px; border-radius: 6px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); font-size: 0.875rem; color: var(--text-3); }
.footer__base { align-items: center; }
.footer__base a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted-underline); }

/* ---------- phone action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-2);
  padding: var(--s-2) var(--s-3) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: var(--bar-bg); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: transform 0.35s var(--ease-out), visibility 0s;
}
.actionbar__call {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
}
.actionbar__call .icon { width: 18px; height: 18px; color: var(--blue-on-dark); }
.actionbar__req { min-height: 52px; }
/* hidden = off screen and out of the tab order */
.js .actionbar[data-hidden="true"] { transform: translateY(110%); visibility: hidden; transition: transform 0.35s var(--ease-out), visibility 0s 0.35s; }
body { --actionbar-h: 76px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .mask > span { animation: rise 0.9s var(--ease-out) both; }
  .js .hero .mask + .mask > span { animation-delay: 0.08s; }
  .js .hero__intro .hero__sub, .js .hero__intro .hero__lede { animation: fade-up 0.7s var(--ease-out) 0.12s both; }
  .js .hero__aside { animation: fade-up 0.7s var(--ease-out) 0.2s both; }
  .js .hero__light::after { animation: light-on 1.4s var(--ease-out) 0.1s both; transform-origin: 70% 50%; }
  .js .spec__was .was::after { animation: strike 0.6s var(--ease-out) 0.9s both; }

  .js [data-reveal] .was::after { transform: rotate(-10deg) scaleX(0); transition: transform 0.6s var(--ease-out) 0.4s; }
  .js [data-reveal].is-in .was::after { transform: rotate(-10deg) scaleX(1); }
  .js .trim--bundle.is-in .trim__bundle-light::after { animation: sweep 1.6s var(--ease-in-out) 0.9s 1 both; }

  .map__loop, .map__road { stroke-dasharray: 1; }
  .js .local:not(.is-in) .map__loop, .js .local:not(.is-in) .map__road { stroke-dashoffset: 1; }
  .js .local.is-in .map__loop { animation: draw 2.4s var(--ease-out) both; }
  .js .local.is-in .map__road { animation: draw 2.8s var(--ease-out) 0.3s both; }
}
@keyframes rise { from { transform: translateY(102%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes light-on { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 0.6; } }
@keyframes strike { from { transform: rotate(-12deg) scaleX(0); } to { transform: rotate(-12deg) scaleX(1); } }
@keyframes sweep { 0% { transform: translateX(-120%) skewX(-12deg); opacity: 1; } 100% { transform: translateX(320%) skewX(-12deg); opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- 380+ ---------- */
@media (min-width: 380px) {
  .trim__body { padding: var(--s-5) var(--s-4) var(--s-4) var(--s-5); }
}

/* ---------- 600+ ---------- */
@media (min-width: 600px) {
  .hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
  .hero__cta .btn { padding-inline: var(--s-5); }
  .hero__call-short { display: none; }
  .hero__call-full { display: inline; }
  .trims { grid-template-columns: 1fr 1fr; }
  .trim { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .trim__media img { aspect-ratio: 4 / 3; }
  .trim__body { padding: var(--s-5); }
  .trim--bundle { grid-column: 1 / -1; padding: var(--s-7) var(--s-6) var(--s-6); }
  .trim--bundle .btn { align-self: flex-start; width: auto; }
}

/* ---------- 600 to 1023: the bundle reads left to right, receipt then deal ---------- */
@media (min-width: 600px) and (max-width: 1023px) {
  .trim--bundle {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 64px); row-gap: var(--s-5);
    grid-template-areas: "head deal" "tally deal" "tally btn";
  }
  .bundle__head { grid-area: head; }
  .tally { grid-area: tally; align-self: start; }
  .bundle__deal { grid-area: deal; align-self: end; padding-top: 0; }
  .trim--bundle .btn { grid-area: btn; align-self: end; width: 100%; }
}

/* ---------- 768+ ---------- */
@media (min-width: 768px) {
  :root { --header-h: 80px; }
  .masthead__brand img { width: 184px; }
  .masthead__phone { border: 0; padding-inline: var(--s-2); font-size: 1.1875rem; letter-spacing: 0.04em; }
  .masthead__phone-full { display: inline; }
  .masthead__phone-short { display: none; }
  .masthead__cta { display: inline-flex; }

  .compare__label { --edge: var(--s-4); font-size: 1rem; padding: 8px 12px 6px; }
  .hero .hero__mark { position: absolute; right: var(--gutter); top: 0; width: 150px; height: 150px; aspect-ratio: auto; margin: 0; }

  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .step { grid-template-columns: 1fr; row-gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-6) 0; border-top: 1px solid var(--line-strong); border-bottom: 0; }
  .step + .step { padding-left: var(--s-5); }
  .step__num { grid-row: auto; font-size: clamp(3.5rem, 2rem + 4vw, 5rem); }
  .local { width: min(100%, 560px); }
  .local { aspect-ratio: 4 / 3; }
  .local__photo img { object-position: 50% 70%; }

  .footer__top { grid-template-columns: auto 1fr; align-items: center; gap: var(--s-6); }
  .footer__line { justify-self: end; }
}

/* ---------- 1024+ ---------- */
@media (min-width: 1024px) {
  /* the masthead follows on desktop and turns solid once the hero scrolls under it */
  html { scroll-padding-top: calc(var(--header-h) + 16px); }
  .masthead { position: sticky; top: 0; transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
  .masthead.is-solid, .no-js .masthead {
    background: var(--masthead-bg);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 var(--line);
  }
  .masthead__nav { display: flex; margin-right: var(--s-4); }

  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "intro mark" "intro aside"; column-gap: clamp(32px, 5vw, 96px); row-gap: var(--s-4); align-items: end; }
  .hero__intro { grid-area: intro; }
  .hero .hero__mark { grid-area: mark; position: relative; right: auto; top: auto; width: 100%; height: clamp(180px, 17vw, 250px); }
  .hero__mark-fallback img { width: auto; height: 86%; max-width: 100%; }
  .hero__aside { grid-area: aside; padding-bottom: 6px; }
  .hero__display { font-size: clamp(7rem, 1rem + 10.6vw, 11.5rem); }

  .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: clamp(32px, 5vw, 96px); }
  .section-head p { padding-bottom: 0.4em; }
  .section-head--stack { grid-template-columns: minmax(0, 1fr); }
  .webgl .section-head--stage { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-rows: auto auto; align-items: end; }
  .webgl .section-head--stage h2 { grid-column: 1; grid-row: 1; }
  .webgl .section-head--stage p { grid-column: 1; grid-row: 2; padding-bottom: 0; }
  .webgl .section-head--stage .services__stage { grid-column: 2; grid-row: 1 / span 2; height: clamp(260px, 24vw, 340px); margin: 0; align-self: stretch; }

  .trims { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: var(--s-4); }
  .trim { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: none; min-height: 288px; }
  .trim__media img { position: absolute; inset: 0; aspect-ratio: auto; }
  .trim__body { padding: var(--s-6); }
  .trim--bundle { grid-column: 2; grid-row: 1 / span 2; padding: var(--s-7) var(--s-6) var(--s-6); }
  .trim--bundle .btn { align-self: stretch; }

  .cans { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; align-items: center; column-gap: var(--s-7); }
  .cans__list { border: 0; }
  .cans__list li { padding-block: 0; }

  .film__caption { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; }

  .booking__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); column-gap: clamp(48px, 7vw, 128px); align-items: center; }
  .steps { grid-template-columns: 1fr; border-top: 1px solid var(--line-strong); }
  .step { grid-template-columns: 88px minmax(0, 1fr); row-gap: var(--s-2); padding: var(--s-5) 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .step + .step { padding-left: 0; }
  .step__num { grid-row: span 2; font-size: 3.5rem; }
  .local { width: 100%; }
  .local .local__map-slot { width: 230%; }
  .local { aspect-ratio: 3 / 4; }
  .local__photo img { object-position: 50% 40%; }

  .request__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; }

  /* our work: the chooser on the left, one big comparison on the right */
  .work__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 112px); align-items: center; }
  .work__intro { gap: var(--s-6); }
  .work__head h2 { font-size: clamp(4rem, 1.6rem + 5vw, 7rem); }
  .work__tabs { grid-template-columns: 1fr; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; overflow: visible; }
  .work__tab {
    grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "num name" "num what"; justify-items: start; align-items: baseline;
    column-gap: var(--s-3); row-gap: 4px; min-height: 0; padding: var(--s-4) var(--s-3) var(--s-4) var(--s-4); text-align: left;
    border-bottom: 1px solid var(--line);
  }
  .work__tab + .work__tab { border-left: 0; }
  .work__tab::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: 50% 0; transition: transform 0.35s var(--ease-out); }
  .work__tab-num { display: block; grid-area: num; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--text-3); font-variant-numeric: tabular-nums; }
  .work__tab-name { grid-area: name; font-size: 1.625rem; font-weight: 800; letter-spacing: 0.02em; }
  .work__tab-what { display: block; grid-area: what; font-size: 0.9375rem; color: var(--text-3); }
  .work__tab[aria-selected="true"] { color: var(--text); background: linear-gradient(90deg, var(--wash-soft), transparent 80%); }
  .work__tab[aria-selected="true"]::before { transform: scaleY(1); }
  .work__tab[aria-selected="true"] .work__tab-num { color: var(--blue-on-dark); }
  .work__stage .compare { justify-items: center; }
  /* frame + Full before/Compare/Full after + caption fit on screen together under the sticky header
     (checked at 1366x768, 1440x900, 1536x864) */
  .compare__frame { width: min(100%, calc(min(66svh, 760px) * 0.75)); }
  .compare__cap, .compare__presets { width: min(100%, calc(min(66svh, 760px) * 0.75)); }
  .compare__grip { width: 64px; height: 64px; }

  /* the action bar is a phone and tablet affordance; the sticky masthead carries both actions on desktop */
  .actionbar { display: none; }
  body { --actionbar-h: 0px; }
}

/* ---------- film opens to full bleed as it scrolls in (where supported) ---------- */
@property --inset { syntax: "<length-percentage>"; inherits: true; initial-value: 0px; }
@property --round { syntax: "<length>"; inherits: true; initial-value: 0px; }
@media (min-width: 768px) {
  .film__stage:not([data-format="vertical"]) { --inset: var(--gutter); --round: 6px; clip-path: inset(0 var(--inset) round var(--round)); }
}
@supports (animation-timeline: view()) {
  @media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
    .film__stage:not([data-format="vertical"]) {
      animation: film-open linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 50%;
    }
  }
}
@keyframes film-open {
  from { --inset: var(--gutter); --round: 6px; }
  to { --inset: 0px; --round: 0px; }
}
