/* Back Rhodes Multimedia, shared stylesheet.
   Structure and type scale from glacial.com (tokens in NOTES.md), colors from the brand package:
   Glacial navy -> asphalt, Glacial gold -> line yellow, light grounds -> white and paper. */

/* Fonts, self-hosted (Sep 29): Poppins and Barlow, latin subset, from Google Fonts under the SIL Open Font License
   (licenses in assets/fonts/). Served from our own site, so no render-blocking request to Google and no visitor IP sent there. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/barlow-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 300; font-display: swap; src: url("../assets/fonts/poppins-300-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../assets/fonts/poppins-300.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --asphalt: #262a31;
  --asphalt-deep: #1b1e23;
  --asphalt-soft: #31363f;
  --yellow: #e6b422;
  --yellow-hover: #f0c53d;
  --yellow-ink: #8a680c;   /* the yellow as text on white or paper: 5.2:1 and 4.7:1 */
  --paper: #f7f4ed;
  --white: #ffffff;
  --ink: #262a31;
  --body: #3d434c;
  --muted: #646b77;   /* 4.9:1 on paper (was #6b7280, 4.4:1) */
  --on-dark: #d9dbe0;
  --on-dark-muted: #9aa0aa;
  --rule: #e3dfd4;
  --rule-dark: rgba(255, 255, 255, .14);
  --pass: #1f6f43;   /* grader pass, the same green and red as the emailed report card PDF */
  --fail: #a8321e;

  --display: "Poppins", system-ui, sans-serif;
  --label: "Barlow", "Poppins", system-ui, sans-serif;

  --wrap: 1600px;
  --edge: 160px;
  --header-h: 88px;   /* 72 until Sep 29: Paxton wanted a larger logo, since the eye starts top left */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.9;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: var(--asphalt); padding: 10px 18px; font: 600 15px var(--label); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--edge) * 2); margin: 0 auto; padding: 0 var(--edge); }
.narrow { max-width: 1180px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---------- type ---------- */
.h1 { font-size: 65px; line-height: 70px; font-weight: 600; color: var(--white); letter-spacing: -.5px; }
.h2 { font-size: 50px; line-height: 60px; font-weight: 300; letter-spacing: -.5px; }
.h2 strong, .h1 strong { font-weight: 700; }
.h3 { font-size: 32px; line-height: 40px; font-weight: 600; }
.h4 { font-size: 22px; line-height: 30px; font-weight: 600; }
.lead { font-size: 19px; line-height: 34px; }
.lead-line {
  font-family: var(--label); font-weight: 600; font-size: 20px; line-height: 29px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--yellow); margin: 0 0 30px;
}
.on-light .lead-line, .lead-line.dark-text { color: var(--yellow-ink); }   /* 4.7:1 on paper (was #9a7410, 3.9:1) */

/* The road underline: Glacial's gold underline, drawn as a stretch of road with a dashed center line. */
.road-mark { position: relative; display: inline-block; white-space: nowrap; }
.road-mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 2px; height: 12px; z-index: -1;
  background:
    repeating-linear-gradient(90deg, var(--yellow) 0 14px, transparent 14px 24px) center / 100% 2px no-repeat,
    var(--asphalt-soft);
  transform-origin: left center;
}
.hero .road-mark { z-index: 0; }
.js .hero .road-mark::after { transform: scaleX(0); animation: road-in .9s 1.5s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes road-in { to { transform: scaleX(1); } }

/* Eyebrow tag: a quiet chip on a thin rule, centered, as Glacial draws it.
   Class design check (Sep 28): the chip was a yellow block; yellow now stays for actions (60-30-10).
   The chip's ground is the opposite light ground (white on paper, paper on white), asphalt on dark bands. */
.tag-rule { position: relative; text-align: center; margin: 0 0 42px; }
.tag-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; opacity: .22; }
.tag {
  position: relative; display: inline-block; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule);
  font: 600 14px/30px var(--label); letter-spacing: 4px; text-transform: uppercase; padding: 4px 20px 4px 24px;
}
.bg-paper .tag { background: var(--white); }
.dark .tag { background: var(--asphalt); color: var(--white); box-shadow: inset 0 0 0 1px var(--rule-dark); }
.tag-plain { margin: 0 0 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--yellow); color: var(--asphalt); text-decoration: none;
  font: 600 15px/20px var(--label); letter-spacing: 2px; text-transform: uppercase;
  padding: 20px 50px; border: 0; cursor: pointer; transition: background .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--yellow-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--yellow); }
.btn-ghost:hover { background: var(--yellow); color: var(--asphalt); }
.btn-dark { background: var(--asphalt); color: var(--white); }
.btn-dark:hover { background: var(--asphalt-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 4px; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px; font: 600 15px/20px var(--label); letter-spacing: 2px;
  text-transform: uppercase; color: var(--yellow); text-decoration: none; min-height: 24px;   /* 24px tap target */
}
.link-more::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.link-more:hover::after { transform: translateX(4px) rotate(45deg); }
.on-light .link-more { color: var(--yellow-ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--asphalt); height: var(--header-h); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; padding-left: 64px; padding-right: 64px; max-width: none; }
.brand img { height: 64px; width: auto; }   /* screen lockup; 48 until Sep 29, raised so the top-left start of the scan path is the brand */
.nav { display: flex; align-items: center; height: 100%; }
.nav > a, .nav .has-menu > a {
  display: flex; align-items: center; height: var(--header-h); padding: 0 14px; color: var(--white); text-decoration: none;
  font: 400 15px/22px var(--display); letter-spacing: 1px; text-transform: uppercase; position: relative;
}
.nav > a::after, .nav .has-menu > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: calc(var(--header-h) / 2 - 20px); height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav > a:hover::after, .nav .has-menu:hover > a::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .has-menu { position: relative; height: 100%; }
.nav .has-menu > a { padding-right: 28px; }
.nav .has-menu > a::before { content: ""; position: absolute; right: 13px; top: calc(50% - 5px); width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.submenu {
  position: absolute; left: 0; top: 100%; min-width: 320px; background: var(--white); padding: 10px 0;
  box-shadow: 0 18px 40px rgba(0,0,0,.18); border-top: 3px solid var(--yellow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu, .has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; white-space: nowrap; padding: 10px 24px; color: var(--ink); text-decoration: none; font: 400 16px/24px var(--display); }
.submenu a:hover { background: var(--paper); }
.nav .nav-cta { margin-left: 18px; }
.nav .nav-cta .btn { padding: 13px 26px; font-size: 15px; }
.menu-toggle { display: none; }
/* Client login (Sep 29): a quiet link with a lock, just before Start a project. It opens portal/, the sign-in page. */
.nav > a.nav-login { gap: 8px; }
.nav-login .lock { flex: 0 0 auto; }

/* ---------- hero ---------- */
/* Glacial's full-bleed hero, with the Arkansas reel in place of their photo. First screen at 1920 x 1080:
   header 72 + hero 908 + ticker 100, the same split as before the video. */
.hero {
  --ticker-h: 100px;
  position: relative; overflow: hidden; color: var(--on-dark); background: var(--asphalt);
  min-height: max(480px, calc(100vh - var(--header-h) - var(--ticker-h)));
  min-height: max(480px, calc(100svh - var(--header-h) - var(--ticker-h)));
  display: flex; align-items: center;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background: var(--asphalt) url("../assets/video/brmm-hero-poster.jpg") center / cover no-repeat;
}
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; }
html:not(.js) .hero-video { display: none; }   /* without JS browsers add native controls over the poster */
.hero-media::after {
  /* Scrim: dark behind the copy, clear on the right so the footage reads. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(27,30,35,.86) 0, rgba(27,30,35,.74) 900px, rgba(27,30,35,.24) 1450px, rgba(27,30,35,.14) 100%),
    linear-gradient(0deg, rgba(27,30,35,.5) 0, rgba(27,30,35,0) 28%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero-copy { padding-left: 32px; max-width: 900px; }
.hero .kicker { font: 600 16px/22px var(--label); letter-spacing: 4px; text-transform: uppercase; color: var(--yellow); margin: 0 0 26px; text-wrap: balance; }
.hero .h1 { margin: 0 0 30px; text-shadow: 0 2px 30px rgba(0,0,0,.35); text-wrap: balance; }
.hero .lead { color: var(--on-dark); max-width: 620px; margin-bottom: 44px; text-shadow: 0 1px 16px rgba(0,0,0,.4); }
/* Tablets: the desktop scrim's pixel stops leave the whole frame dark here, so darken only the copy band. */
@media (min-width: 761px) and (max-width: 1180px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(27,30,35,.5) 0, rgba(27,30,35,.82) 14%, rgba(27,30,35,.8) 86%, rgba(27,30,35,.5) 100%); }
}

/* ---------- ticker strip (Glacial's client logo strip) ---------- */
.ticker { background: var(--asphalt-deep); overflow: hidden; height: 100px; display: flex; align-items: center; border-top: 1px solid var(--rule-dark); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker ul { display: flex; align-items: center; }
.ticker li { display: flex; align-items: center; white-space: nowrap; font: 500 18px/1 var(--label); letter-spacing: 3px; text-transform: uppercase; color: var(--on-dark); }
.ticker li::after { content: ""; width: 38px; height: 3px; margin: 0 34px; background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, transparent 10px 16px); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Short desktop windows (1366 x 657, 1536 x 730 laptops): tighten so the ticker stays on the first screen. */
@media (min-width: 761px) and (max-height: 760px) {
  .hero { --ticker-h: 72px; }
  .ticker { height: 72px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 36px; }
  .hero .kicker { margin-bottom: 18px; }
  .hero .h1 { margin-bottom: 22px; }
  .hero .lead { margin-bottom: 30px; }
}

/* ---------- sections ---------- */
.section { padding: 130px 0; }
.section-sm { padding: 90px 0; }
.bg-white { background: var(--white); }
.bg-paper { background: var(--paper); }
.dark { background: var(--asphalt); color: var(--on-dark); }
.dark h2, .dark h3, .dark h4, .dark .h1 { color: var(--white); }
.dark .tag-rule { color: var(--white); }
.deep { background: var(--asphalt-deep); }
.roadlines {
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,.035) 46% 54%, transparent 54%),
    linear-gradient(115deg, transparent 0 49.85%, rgba(230,180,34,.16) 49.85% 50.15%, transparent 50.15%);
  background-size: 100% 100%;
}

/* intro (Glacial "Leaders in") */
.intro .h2 { margin-bottom: 40px; }
.intro p { max-width: 700px; margin-left: auto; margin-right: auto; line-height: 35px; }
.intro .emph { font-weight: 600; color: var(--white); }
.values { display: grid; grid-template-columns: repeat(5, 1fr); margin: 70px 0 76px; }
.values li { padding: 8px 26px; border-left: 1px solid var(--rule-dark); text-align: center; }
.values li:first-child { border-left: 0; }
.values b { display: block; color: var(--white); font-weight: 600; line-height: 25px; margin-bottom: 6px; }
.values span { display: block; font-style: italic; line-height: 25px; color: var(--on-dark); text-wrap: balance; }

/* tabs (Glacial "What We Specialize In") */
.spec .h2 { margin-bottom: 36px; }
.tabs { display: grid; grid-template-columns: 380px 1fr; gap: 50px 50px; align-items: start; }
.tablist { display: flex; flex-direction: column; gap: 10px; }
.tablist button {
  text-align: left; border: 0; border-left: 4px solid var(--yellow); background: var(--white); color: var(--ink);
  font: 300 18px/25px var(--display); padding: 15px 30px; cursor: pointer; box-shadow: 0 2px 10px rgba(38,42,49,.06); transition: background .2s, color .2s;
}
.tablist button:hover { background: #fffaf0; }
.tablist button[aria-selected="true"] { background: var(--asphalt); color: var(--white); }
.tabpanel { padding: 32px 0 0 10px; max-width: 900px; }
.tabpanel > p { max-width: 700px; }
.tabpanel[hidden] { display: none; }
.tabpanel .h3 { margin-bottom: 24px; }
.tabpanel .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; margin: 10px 0 34px; }
.checks li { position: relative; padding-left: 30px; line-height: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 6px, transparent 6px 9px); }
.js .tabpanel:not([hidden]) { animation: panel-in .35s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.split .h2 { margin-bottom: 30px; }
.split .h2 strong { display: block; }
.split p { max-width: 640px; }
.split .btn { margin-top: 18px; }

/* search wheel (Glacial's service circle) */
.wheel { width: 100%; max-width: 820px; justify-self: center; }
.wheel svg { width: 100%; height: auto; overflow: visible; }
/* sizes are SVG units: the wheel draws at 0.46 to 0.8 scale, so these land at about 15 to 22px on screen */
.wheel text { font-family: var(--display); font-size: 28px; fill: var(--ink); }
.wheel .lbl-hi { fill: var(--yellow-ink); font-weight: 600; }
.wheel .center-t { font-family: var(--label); font-weight: 600; font-size: 24px; letter-spacing: 3px; fill: var(--muted); text-transform: uppercase; transform: translateY(-6px); }
.wheel .center-b { font-weight: 700; font-size: 40px; fill: var(--ink); transform: translateY(6px); }
/* two-column laptops (1181 to 1500) draw the wheel smallest, so its labels go up a step there */
@media (min-width: 1181px) and (max-width: 1500px) {
  .wheel text { font-size: 33px; }
  .wheel .center-t { font-size: 28px; }
  .wheel .center-b { font-size: 44px; }
}
.js .wheel .ring-seg { stroke-dasharray: 0 1000; transition: stroke-dasharray 1.4s cubic-bezier(.45,.1,.2,1); }
.js .wheel.is-in .ring-seg { stroke-dasharray: var(--len) 1000; }
.js .wheel .node { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; transition: opacity .4s, transform .4s; }
.js .wheel.is-in .node { opacity: 1; transform: none; }

/* big statement band (Glacial "The Best in") */
.statement { text-align: center; padding: 160px 0; }
.statement .h2 { margin-bottom: 26px; }
.statement p { max-width: 700px; margin: 0 auto 22px; line-height: 32px; }
.statement .btn { margin-top: 26px; }

/* process road (stands in for Glacial's testimonials, which we do not have yet) */
.process .h2 { margin-bottom: 18px; }
.process .sub { max-width: 760px; margin: 0 auto 80px; font-size: 18px; line-height: 32px; }
.route { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px; }
.route::before {
  content: ""; position: absolute; left: -40px; right: -40px; top: 36px; height: 30px; background:
    repeating-linear-gradient(90deg, var(--yellow) 0 26px, transparent 26px 44px) center / 100% 3px no-repeat, var(--asphalt);
}
.js .route::before { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s cubic-bezier(.45,.1,.2,1); }
.js .route.is-in::before { clip-path: inset(0 0 0 0); }
.stop { position: relative; text-align: left; padding-top: 110px; }
.stop .mile {
  position: absolute; top: 18px; left: 0; width: 66px; height: 66px; border-radius: 50%; background: var(--white);
  border: 4px solid var(--yellow); display: grid; place-items: center; font: 700 22px/1 var(--display); color: var(--ink);
}
.stop h3 { font-size: 24px; line-height: 32px; font-weight: 600; margin-bottom: 12px; }
.stop p { line-height: 30px; }

/* portfolio tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; display: block; aspect-ratio: 640 / 400; overflow: hidden; color: var(--white); text-decoration: none; background: var(--asphalt); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; filter: grayscale(.5) brightness(.36) blur(1.5px); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); filter: brightness(.7); }
.tile .tile-name { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; background: rgba(27,30,35,.42); transition: background .4s; }
.tile:hover .tile-name { background: linear-gradient(0deg, rgba(27,30,35,.85), rgba(27,30,35,0) 60%); justify-content: flex-end; }
.tile b { font: 600 30px/1.2 var(--display); letter-spacing: .5px; }
.tile small { display: block; margin-top: 8px; font: 500 15px/1 var(--label); letter-spacing: 3px; text-transform: uppercase; color: var(--yellow); }
.tile .badge { position: absolute; top: 20px; left: 20px; background: var(--paper); color: var(--ink); font: 600 14px/1 var(--label); letter-spacing: 2.5px; text-transform: uppercase; padding: 9px 14px; }   /* paper, not yellow: a label, not an action (Sep 28) */

/* care split (Glacial "people who care"), paper with the mark */
.care { background: var(--paper); overflow: hidden; }
.care .split { min-height: 760px; padding: 110px 0; }
.care-art { display: grid; place-items: center; }
.care-art img { width: min(70%, 430px); height: auto; }
.care .h2 { font-size: 40px; line-height: 52px; }

/* why choose (dark band with icon items) */
.why .h2 { margin-bottom: 70px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.why-item svg { width: 54px; height: 54px; margin: 0 auto 22px; }
.why-item h3 { font: 600 16px/24px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.why-item p { font-size: 16px; line-height: 28px; color: var(--on-dark); }

/* CTA band (Glacial "Schedule Your Free Assessment"), road yellow */
.cta-band { background: var(--yellow); color: var(--asphalt); padding: 130px 0 120px; position: relative; overflow: hidden; }
.cta-band .h2 { color: var(--asphalt); font-size: 58px; line-height: 66px; margin-bottom: 26px; }
.cta-band .split { align-items: start; }
.cta-band p { color: var(--asphalt); font-weight: 400; }
.cta-band ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.cta-band ol li { counter-increment: s; position: relative; padding: 0 0 26px 70px; font-weight: 400; line-height: 28px; }
.cta-band ol li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--asphalt); color: var(--yellow); font: 700 18px/1 var(--display); }
.cta-band ol b { display: block; font-weight: 600; font-size: 19px; margin-bottom: 2px; }
.cta-band .email-big { display: inline-block; margin-top: 8px; font: 600 26px/1.3 var(--display); color: var(--asphalt); text-decoration: none; border-bottom: 3px solid var(--asphalt); overflow-wrap: anywhere; }

/* page hero for inner pages (Glacial inner pages: dark banner with centered title) */
.page-hero { background: var(--asphalt); color: var(--on-dark); position: relative; overflow: hidden; padding: 150px 0 140px; text-align: center; }
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background:
    repeating-linear-gradient(90deg, var(--yellow) 0 26px, transparent 26px 44px) center / 100% 3px no-repeat, var(--asphalt-deep);
}
.page-hero .h1 { margin-bottom: 22px; }
.page-hero .lead { max-width: 820px; margin: 0 auto; color: var(--on-dark); }
.crumbs { font: 500 15px/1.6 var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 28px; }
.crumbs a { color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }   /* white, not yellow, so the banner button is the one accent (Sep 28) */
.crumbs a:hover { color: var(--yellow); }

/* prose and lists on inner pages */
.prose { max-width: 700px; }   /* about 78 characters a line */
.prose h2 { font-size: 34px; line-height: 44px; font-weight: 600; margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; line-height: 30px; font-weight: 600; margin: 32px 0 10px; }
.prose ul { margin: 0 0 1.1em; }
.prose ul li { position: relative; padding-left: 30px; line-height: 30px; margin-bottom: 6px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 6px, transparent 6px 9px); }
.prose a { color: var(--yellow-ink); }

/* who we build for (home): six business groups, road-paint top rules */
.industries .h2 { margin-bottom: 18px; }
.industries .sub { max-width: 760px; margin: 0 auto 64px; font-size: 18px; line-height: 32px; }
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; text-align: left; max-width: 1240px; margin: 0 auto; }
.biz li { padding: 30px 0 34px; border-top: 1px solid var(--rule); position: relative; }
.biz li::before { content: ""; position: absolute; left: 0; top: -2px; width: 46px; height: 3px; background: repeating-linear-gradient(90deg, var(--yellow) 0 12px, transparent 12px 18px); }
.biz b { display: block; font: 600 22px/30px var(--display); color: var(--ink); margin-bottom: 6px; }
.biz span { display: block; color: var(--body); line-height: 28px; }
.biz-foot { margin: 48px 0 0; font-style: italic; }
@media (max-width: 1180px) { .biz { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .biz { grid-template-columns: 1fr; } .industries .sub { margin-bottom: 40px; } .biz li { padding: 22px 0 24px; } }

/* cards (service hub, work hub) */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.card { background: var(--white); border-top: 4px solid var(--yellow); padding: 50px 50px 46px; box-shadow: 0 10px 30px rgba(38,42,49,.07); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .3s, box-shadow .3s; }
a.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(38,42,49,.13); }
.card .num { font: 600 15px/1 var(--label); letter-spacing: 3px; color: var(--muted); margin-bottom: 22px; }
.card h2, .card h3 { font-size: 30px; line-height: 38px; font-weight: 600; margin-bottom: 16px; }
.card p { flex: 1; }
.card .link-more { margin-top: 18px; color: var(--yellow-ink); }
.process .cards .card p { max-width: 560px; margin-left: auto; margin-right: auto; }
@media (min-width: 761px) and (max-width: 1180px) {
  .process .cards .card { padding: 40px 30px 36px; }
  .process .cards .card h3 { font-size: 25px; line-height: 32px; }
  .tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 1280 / 400; }   /* three tiles on a two-column tablet grid: the last one runs full width, no orphan */
}
/* no one-word last lines in headings and short copy */
.h2, .industries .sub, .process .sub, .card h3, .biz b { text-wrap: balance; }
.card p, .biz span, .biz-foot, .why-item p, .intro p, .statement p, .prose p, .tabpanel > p { text-wrap: pretty; }

/* work rows */
.work-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; align-items: center; padding: 110px 0; border-top: 1px solid var(--rule); }
.work-row:first-child { border-top: 0; padding-top: 0; }
.work-row.flip { grid-template-columns: 1fr 1.25fr; }
.work-row.flip .work-shot { order: 2; }
.work-shot { position: relative; }
.work-shot .desk { box-shadow: 0 30px 60px rgba(38,42,49,.18); border: 1px solid var(--rule); }
.work-shot .phone { position: absolute; right: -30px; bottom: -40px; width: 26%; border: 6px solid var(--asphalt); border-radius: 22px; box-shadow: 0 20px 40px rgba(0,0,0,.28); }
.work-row.flip .work-shot .phone { right: auto; left: -30px; }
.work-row .tag { margin-bottom: 22px; }
.work-row h2 { font-size: 40px; line-height: 50px; font-weight: 600; margin-bottom: 20px; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.email-card { background: var(--asphalt); color: var(--on-dark); padding: 60px; }
.email-card h2 { color: var(--white); font-size: 30px; line-height: 40px; font-weight: 600; margin-bottom: 14px; }
.email-card .addr { display: block; font: 600 26px/1.35 var(--display); color: var(--yellow); text-decoration: none; overflow-wrap: anywhere; margin: 16px 0 28px; padding: 2px 0; }
.email-card .btn-col { display: grid; gap: 8px; }
.copy-btn { background: transparent; border: 1px solid var(--rule-dark); color: var(--on-dark); font: 500 15px/1 var(--label); letter-spacing: 2px; text-transform: uppercase; padding: 13px 18px; cursor: pointer; margin-top: 16px; }
.copy-btn:hover { border-color: var(--yellow); color: var(--yellow); }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; } .js .reveal.d2 { transition-delay: .2s; } .js .reveal.d3 { transition-delay: .3s; } .js .reveal.d4 { transition-delay: .4s; }

/* ---------- footer ---------- */
.site-footer { background: var(--asphalt); color: var(--on-dark); padding: 100px 0 40px; font-size: 16px; }
.site-footer .foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 50px; padding: 0 50px; }
.site-footer .logo { height: 50px; width: auto; margin-bottom: 26px; }
.site-footer h2 { font: 400 16px/20px var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .btn, .site-footer .btn:hover { color: var(--asphalt); }   /* the footer link color made this label white on yellow (1.9:1) and yellow on hover */
.site-footer li { line-height: 30px; }
.site-footer .f-email { display: inline-block; font-size: 18px; margin: 6px 0 14px; overflow-wrap: anywhere; }
.site-footer .f-note { color: var(--on-dark-muted); font-size: 16px; line-height: 27px; }
.site-footer .legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 70px 50px 0; padding-top: 30px; border-top: 1px solid var(--rule-dark); font-size: 15px; line-height: 26px; }
.site-footer .legal .credit { color: var(--yellow); }
.site-footer .legal ul { display: flex; gap: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1500px) {
  :root { --edge: 80px; }
  .h1 { font-size: 58px; line-height: 64px; }
  .values li { padding: 8px 16px; }
}
@media (max-width: 1180px) {
  :root { --edge: 48px; }
  .site-header .wrap { padding-left: 24px; padding-right: 24px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 26px; height: 2px; background: var(--white); position: relative; transition: transform .25s, background .25s; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -8px; } .menu-toggle span::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }
  .nav { display: none; position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; height: auto; flex-direction: column; align-items: stretch; background: var(--asphalt); padding: 20px 24px 40px; overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav > a, .nav .has-menu > a { height: auto; padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--rule-dark); }
  .nav > a::after, .nav .has-menu > a::after { display: none; }
  .nav .has-menu { height: auto; }
  .nav .has-menu > a::before { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 4px 0 8px 16px; }
  .submenu a { color: var(--on-dark); padding: 9px 0; white-space: normal; }
  .submenu a:hover { background: none; color: var(--yellow); }
  .nav .nav-cta { margin: 24px 0 0; }
  .nav .nav-cta .btn { width: 100%; padding: 18px; }
  .hero .wrap { padding-top: 90px; padding-bottom: 90px; }
  .hero-copy { padding-left: 0; }
  .values { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .values li:nth-child(4) { border-left: 0; }
  .tabs { grid-template-columns: 1fr; gap: 20px; }
  .tablist { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .tablist button { border-left: 0; border-bottom: 3px solid var(--yellow); padding: 12px 18px; font-size: 16px; }
  .tabpanel { padding: 20px 0 0; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .care .split { min-height: 0; }
  .care-art img { width: min(60%, 360px); }
  .route { grid-template-columns: 1fr 1fr; gap: 50px 40px; }
  .route::before { display: none; }
  .stop { padding-top: 90px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 50px 40px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .site-footer .foot { grid-template-columns: 1fr 1fr; padding: 0; }
  .site-footer .legal { margin: 60px 0 0; }
  .work-row, .work-row.flip { grid-template-columns: 1fr; gap: 70px; }
  .work-row.flip .work-shot { order: 0; }
  .work-shot .phone { right: 10px; }
  .work-row.flip .work-shot .phone { left: 10px; }
}
@media (max-width: 760px) {
  :root { --edge: 20px; --header-h: 72px; }
  body { font-size: 16px; line-height: 1.75; }
  .brand img { height: 52px; }
  .h1 { font-size: 40px; line-height: 46px; }
  .h2 { font-size: 34px; line-height: 42px; }
  .h3 { font-size: 25px; line-height: 32px; }
  .lead { font-size: 17px; line-height: 29px; }
  .lead-line { font-size: 16px; line-height: 24px; letter-spacing: 2px; }
  .section { padding: 80px 0; }
  .statement { padding: 90px 0; }
  .hero { --ticker-h: 72px; min-height: max(560px, calc(100vh - var(--header-h) - var(--ticker-h))); min-height: max(560px, calc(100svh - var(--header-h) - var(--ticker-h))); }
  .hero .wrap { padding-top: 56px; padding-bottom: 70px; }
  .hero-media { background-image: url("../assets/video/brmm-hero-poster-phone.jpg"); }
  /* the copy fills most of the phone hero, so the scrim stays at .8 or more behind it (4.5:1 over every clip) */
  .hero-media::after { background: linear-gradient(0deg, rgba(27,30,35,.7) 0, rgba(27,30,35,.8) 45%, rgba(27,30,35,.82) 100%); }
  .hero .kicker-sep { display: none; }
  .hero .kicker-place { display: block; }
  .hero .road-mark { white-space: normal; }
  .btn { padding: 18px 28px; width: 100%; }
  .btn-row { gap: 8px; }
  .ticker { height: 72px; }
  .ticker li { font-size: 15px; }
  .ticker li::after { margin: 0 22px; }
  .values { grid-template-columns: 1fr; margin: 44px 0; }
  .values li { border-left: 0; border-top: 1px solid var(--rule-dark); padding: 20px 0 0; }
  .values li:first-child { border-top: 0; padding-top: 0; }
  .tabpanel .checks { grid-template-columns: 1fr; }
  .route, .why-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .care .h2 { font-size: 30px; line-height: 40px; }
  .cta-band { padding: 80px 0; }
  .cta-band .h2 { font-size: 38px; line-height: 46px; }
  .cta-band .email-big { font-size: 17px; }
  .wheel { display: none; }
  .intro p { line-height: 30px; }
  .site-footer .legal ul { flex-wrap: wrap; gap: 8px 18px; }
  .page-hero { padding: 90px 0 100px; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 36px 26px 32px; }
  .card h2, .card h3 { font-size: 25px; line-height: 32px; }
  .work-row { padding: 70px 0; }
  .work-row h2 { font-size: 30px; line-height: 38px; }
  .work-shot .phone { right: -6px; bottom: -30px; }
  .work-row.flip .work-shot .phone { left: -6px; }
  .email-card { padding: 36px 24px; }
  .email-card .addr { font-size: 19px; }
  .site-footer { padding-top: 70px; }
  .site-footer .foot { grid-template-columns: 1fr; gap: 36px; }
  .prose h2 { font-size: 27px; line-height: 36px; }
}
/* ---------- inner pages (consolidated from the parallel page pass, Sep 24) ---------- */
.split > .card { width: 100%; max-width: 640px; justify-self: center; }
.split .card .checks li { margin-bottom: 8px; }
.split .lead-line { margin-top: -12px; }
.svc-head, .section-head { max-width: 900px; margin: 0 auto 64px; text-align: center; }
.svc-head .h2, .section-head .h2, .svc-hub .h2 { margin-bottom: 22px; }
.svc-head p.measure { max-width: 720px; margin-left: auto; margin-right: auto; }
.svc-sub { max-width: 760px; margin: 0 auto 64px; }
.why .h2 + .svc-sub { margin-top: -44px; }
.svc-note { max-width: 820px; margin: 56px auto 0; font-size: 16px; line-height: 28px; color: var(--muted); }
.page-hero .btn-row { justify-content: center; margin-top: 44px; }
.wd-phone { display: grid; place-items: center; }
.wd-phone img { width: min(100%, 400px); height: auto; border: 8px solid var(--asphalt); border-radius: 30px; box-shadow: 0 30px 60px rgba(38,42,49,.22); }
.wd-includes .h2 { margin-bottom: 26px; }
.checks.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.wd-steps { margin-top: 70px; text-align: left; }
.wd-steps .why-item { border-top: 1px solid var(--rule-dark); padding-top: 26px; }
.wd-steps .mile-n { display: block; font: 700 34px/1 var(--display); color: var(--white); margin-bottom: 14px; }
.mark-panel { background: var(--paper); aspect-ratio: 1 / 1; max-width: 640px; width: 100%; justify-self: center; display: grid; place-items: center; }
.mark-panel img { width: 52%; height: auto; }
.wd-recent .h2 { margin-bottom: 18px; }
.wd-recent .sub { max-width: 760px; margin: 0 auto; }
.tiles.two { grid-template-columns: 1fr 1fr; }
.wd-recent-foot { text-align: center; padding: 60px 0 80px; }
.work-shot img { height: auto; }
.work-shot .desk { width: 100%; }
.contact-grid .h3 { margin: 0 0 20px; }
.contact-grid .h2 { margin: 0 0 24px; }
.contact-grid .h3 + p, .contact-grid .checks + .h3 { margin-top: 0; }
.contact-grid .checks { display: grid; gap: 8px; margin: 0 0 60px; }
.email-card .btn-col .btn { width: 100%; }
.email-card .based { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--rule-dark); font-size: 16px; line-height: 27px; color: var(--on-dark-muted); }
.audit-checks { grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 70px; text-align: left; }
.audit-checks .card { padding: 36px 30px 32px; }
.audit-checks .card h3 { font-size: 21px; line-height: 28px; margin-bottom: 12px; }
.audit-checks .card p:not(.num) { font-size: 16px; line-height: 27px; }
.card .num { flex: 0 0 auto; }
.audit-checks .card .num { margin-bottom: 18px; }
.route.route-3 { grid-template-columns: repeat(3, 1fr); margin-top: 80px; text-align: left; }
.audit-cost .checks { display: grid; gap: 10px; }
.audit-cost .checks li { color: var(--white); font-weight: 400; }
.tag-rule.tag-left { text-align: left; margin-bottom: 30px; }
.prose .updated { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
@media (min-width: 1181px) { .split.flip > :first-child { order: 2; } }
@media (max-width: 1500px) { .audit-checks { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1180px) { .audit-checks, .route.route-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .checks.cols, .tiles.two, .audit-checks, .route.route-3 { grid-template-columns: 1fr; }
  .wd-steps { margin-top: 44px; }
  .audit-checks { margin-top: 44px; }
  .route.route-3 { margin-top: 40px; }
  .email-card .addr { font-size: 16px; letter-spacing: -.2px; overflow-wrap: normal; }
}

@media (max-width: 380px) {
  .hero .h1 { font-size: 36px; line-height: 42px; }
  /* the address stays on one line: 15px text and 18px sides fit a 360px phone */
  .email-card { padding-left: 18px; padding-right: 18px; }
  .email-card .addr { font-size: 15px; }
}
/* Short phones (360 x 640): tighter rhythm keeps both buttons above the fold. */
@media (max-width: 760px) and (max-height: 700px) {
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .hero .kicker { margin-bottom: 14px; }
  .hero .h1 { margin-bottom: 18px; }
  .hero .lead { margin-bottom: 26px; }
}

/* ---------- instant website grader (Free Audit, Sep 27): Google PageSpeed scores as a report card ---------- */
.grader .section-head { margin-bottom: 44px; }
.grader-form { max-width: 900px; margin: 0 auto; }
.grader-label { display: block; font: 600 15px/20px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.grader-row { display: flex; gap: 4px; }
.grader-row input {
  flex: 1; min-width: 0; height: 60px; padding: 0 20px; border: 2px solid var(--rule); border-radius: 0; background: var(--white);
  font: 400 18px/1 var(--display); color: var(--ink); transition: border-color .2s;
}
.grader-row input::placeholder { color: var(--muted); }
.grader-row input:hover { border-color: var(--muted); }
.grader-row input:focus { border-color: var(--yellow); outline: none; }
.grader-row input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.grader-row input[aria-invalid="true"] { border-color: var(--fail); }
.grader-row .btn { flex: 0 0 auto; height: 60px; padding: 0 40px; }
.grader-row .btn:disabled { cursor: progress; opacity: .75; transform: none; }
.grader-error { margin: 12px 0 0; color: var(--fail); font-weight: 400; }
.grader-hint { margin: 12px 0 0; font-size: 15px; line-height: 24px; color: var(--muted); }

/* "Ask a question" box (What Are AEO and SEO, AEO and SEO; Oct 5): the grader's field and button, answer in a ruled box.
   The section ships hidden and js/ask.js shows it, so it never appears without JavaScript. */
.ask .section-head { margin-bottom: 44px; }
.ask .sub { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 32px; }
.ask .btn[aria-disabled="true"] { cursor: progress; opacity: .75; transform: none; }
.ask-answer { max-width: 900px; margin: 0 auto; }
.ask-answer.is-on { margin-top: 30px; padding: 28px 30px; background: var(--paper); border-left: 4px solid var(--yellow); }
.bg-paper .ask-answer.is-on { background: var(--white); }
.ask-text { margin: 0; color: var(--ink); }
.ask-text a, .ask .grader-hint a[href^="tel"] { white-space: nowrap; }
.ask-note { margin: 12px 0 0; font-size: 15px; line-height: 24px; color: var(--muted); }
@media (max-width: 760px) {
  .ask .grader-row input { flex: 0 0 60px; }   /* stacked, flex: 1 would squeeze the field to its text height */
  .ask-answer.is-on { padding: 22px 20px; }
  .ask .sub { font-size: 17px; line-height: 29px; }
}

.grader-status { max-width: 900px; margin: 30px auto 0; padding: 28px 30px; background: var(--paper); border-left: 4px solid var(--yellow); }
.grader-status:focus { outline: none; }
.grader-status p { margin: 0 0 8px; }
.grader-status-title { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.grader-status-note { font-size: 15px; color: var(--muted); }
.grader-status .btn { margin-top: 12px; }
.grader-bar { height: 6px; margin: 14px 0; background: var(--rule); overflow: hidden; }
.grader-bar span { display: block; width: 30%; height: 100%; background: var(--yellow); animation: grader-slide 1.6s ease-in-out infinite; }
@keyframes grader-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

.report { max-width: 1100px; margin: 40px auto 0; background: var(--white); border-top: 4px solid var(--yellow); box-shadow: 0 10px 30px rgba(38,42,49,.07), 0 0 0 1px var(--rule); padding: 50px; }
.report:focus { outline: none; }
.report-head { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.report-grade { display: grid; justify-items: center; gap: 10px; }
.grade-letter { display: grid; place-items: center; width: 128px; height: 128px; background: var(--asphalt); color: var(--yellow); font: 700 76px/1 var(--display); }
.grade-caption { font: 600 15px/20px var(--label); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); text-align: center; }
.report-kicker { margin: 0 0 6px; font: 600 15px/20px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--yellow-ink); }
.report-site { font-size: 32px; line-height: 40px; font-weight: 600; margin: 0 0 12px; overflow-wrap: anywhere; }
.report-when { margin: 0; font-size: 15px; line-height: 26px; color: var(--muted); }
.report-shot { margin: 0; }
.report-shot img { width: 150px; height: auto; border: 6px solid var(--asphalt); border-radius: 22px; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.report-h4 { margin: 40px 0 18px; font: 600 15px/20px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }

.subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.subject { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--rule); }
.subject-grade { display: grid; place-items: center; width: 56px; height: 56px; background: var(--asphalt); color: var(--yellow); font: 700 30px/1 var(--display); }
.subject-name { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.subject-name b { color: var(--ink); }
.subject-score { color: var(--body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.subject-meter { display: block; height: 6px; background: var(--rule); margin-bottom: 10px; }
.subject-meter span { display: block; height: 100%; background: var(--yellow); }
.subject-note { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }

.basics { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.basics li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--rule); line-height: 26px; }
.basic-mark { font-weight: 700; text-align: center; }
.basic-result { font: 600 15px/26px var(--label); letter-spacing: 1px; text-transform: uppercase; }
.basics .is-pass .basic-mark, .basics .is-pass .basic-result { color: var(--pass); }
.basics .is-fail .basic-mark, .basics .is-fail .basic-result { color: var(--fail); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.metric { border-top: 3px solid var(--rule); padding-top: 14px; }
.metric.is-good { border-top-color: var(--pass); }
.metric.is-needs-work { border-top-color: var(--yellow); }
.metric.is-slow { border-top-color: var(--fail); }
.metric dt { font-weight: 600; color: var(--ink); line-height: 24px; }
.metric dd { margin: 6px 0 0; }
.metric dd b { display: block; font: 600 28px/36px var(--display); color: var(--ink); }
.metric-band { display: block; font: 600 15px/22px var(--label); letter-spacing: 1px; text-transform: uppercase; color: var(--body); }
.metric-note { display: block; margin-top: 6px; font-size: 15px; line-height: 24px; color: var(--muted); }

.report-next { margin: 44px -50px -50px; padding: 40px 50px 44px; background: var(--paper); }
.report-next h4 { font-size: 24px; line-height: 32px; font-weight: 600; margin-bottom: 10px; }
.report-next p { max-width: 700px; }
.report-next .btn-row { margin: 22px 0 18px; }
.report-scale { margin: 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost-dark:hover { background: var(--asphalt); color: var(--white); }

/* Two grades on one card (Sep 30): SEO from Google, AEO from ten questions in each AI assistant */
.report-grades { display: flex; gap: 22px; }
.grade-letter.is-waiting, .subject-grade.is-waiting { color: var(--on-dark-muted, #9aa1ab); }
.report-part { margin-top: 44px; }
.report-part-h { margin: 0 0 10px; font: 600 24px/32px var(--display); color: var(--ink); }
.report-part-lead { margin: 0 0 24px; max-width: 760px; text-wrap: pretty; }
.report-part-foot { margin: 22px 0 0; max-width: 760px; font-size: 15px; line-height: 24px; color: var(--muted); }
.report-note { margin: 0; max-width: none; }
.report-shot-slot:empty { display: none; }
.seo-part { padding-top: 40px; border-top: 1px solid var(--rule); }
.ai-logo { display: inline-block; flex: none; vertical-align: middle; }
.ai-strip { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.ai-strip li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: var(--paper); border: 1px solid var(--rule); font-weight: 600; color: var(--ink); }
.ai-name { display: inline-flex; align-items: center; gap: 8px; }
.ai-grades .subject { grid-template-columns: 56px minmax(0, 1fr); }
.ai-grades .subject-name { flex-wrap: wrap; gap: 4px 12px; }
.aeo-table-wrap { overflow-x: auto; }
.aeo-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.aeo-table th, .aeo-table td { padding: 12px 10px; border-top: 1px solid var(--rule); text-align: center; vertical-align: middle; }
.aeo-table thead th { border-top: 0; padding-top: 0; }
.aeo-table .aeo-q-h, .aeo-table .aeo-q { text-align: left; padding-left: 0; font-weight: 400; color: var(--body); }
.aeo-table .aeo-q-h { font: 600 15px/20px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); vertical-align: bottom; }
.aeo-e-h { width: 72px; }
.aeo-cell { font-weight: 700; font-size: 20px; }
.aeo-cell.is-yes, .aeo-key .is-yes b { color: var(--pass); }
.aeo-cell.is-no, .aeo-key .is-no b { color: var(--fail); }
.aeo-cell.is-skip, .aeo-cell.is-wait, .aeo-key .is-skip b { color: var(--muted); }
.aeo-key { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 14px 0 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.aeo-answers { margin-top: 26px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.aeo-answers summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); min-height: 24px; }
.aeo-answers summary:focus-visible { outline: 3px solid var(--asphalt); outline-offset: 2px; }
.aeo-answer { padding: 18px 0 8px; border-top: 1px solid var(--rule); }
.aeo-answer-q { margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.aeo-say { display: grid; grid-template-columns: 140px 1fr; gap: 16px; margin-bottom: 12px; }
.aeo-say-who { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--ink); font-size: 15px; }
.aeo-say-text { margin: 0; font-size: 15px; line-height: 24px; color: var(--body); overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .report-head { grid-template-columns: auto 1fr; }
  .report-shot { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .grader-row { flex-direction: column; gap: 8px; }
  .grader-row .btn { width: 100%; }
  .report { padding: 30px 20px; margin-top: 30px; }
  .report-head { grid-template-columns: 1fr; gap: 20px; justify-items: start; }
  .report-grade { justify-items: start; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
  .grade-letter { width: 88px; height: 88px; font-size: 52px; }
  .report-grades { flex-direction: column; gap: 14px; }
  .aeo-e-h { width: 44px; }
  .aeo-table th, .aeo-table td { padding: 10px 4px; }
  .aeo-table .aeo-q { font-size: 15px; line-height: 22px; }
  .aeo-say { grid-template-columns: 1fr; gap: 4px; }
  .report-part-h { font-size: 22px; line-height: 30px; }
  .grade-caption { text-align: left; }
  .report-site { font-size: 25px; line-height: 32px; }
  .subjects, .basics, .metrics { grid-template-columns: 1fr; }
  .report-next { margin: 36px -20px -30px; padding: 30px 20px 32px; }
  .report-next .btn-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .hero .road-mark::after { transform: none !important; }
  .js .route::before { clip-path: none !important; }
  .js .wheel .ring-seg { stroke-dasharray: var(--len) 1000 !important; }
  .js .wheel .node { opacity: 1 !important; transform: none !important; }
  .ticker-track { animation: none !important; }
}

/* ---------- the shortcuts we won't take (home, Sep 29) ---------- */
/* Compliance as the difference: each row is a shortcut, how we build it instead, and a sourced reason. */
.diff-band .sub { font-size: 18px; line-height: 32px; margin: 0 auto; max-width: 760px; }
.diff { max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--rule); }
.diff-row { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 10px 48px; padding: 36px 0 32px; border-bottom: 1px solid var(--rule); }
.diff-row h3 { font: 600 22px/30px var(--display); color: var(--ink); text-wrap: balance; }
.diff-label { display: block; font: 600 14px/20px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.diff-short p { color: var(--muted); text-wrap: pretty; }
.diff-ours { border-left: 3px solid var(--yellow); padding-left: 22px; }
.diff-ours .diff-label { color: var(--yellow-ink); }
.diff-ours p { color: var(--ink); font-weight: 400; text-wrap: pretty; }
.compare .diff-short p { color: var(--ink); }   /* AEO vs SEO table: both sides are real options, neither is "the shortcut" */
.diff-src { grid-column: 2 / 4; margin: 8px 0 0; font-size: 15px; line-height: 26px; color: var(--muted); text-wrap: pretty; }
.diff-src a, .std-src a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.diff-foot { text-align: center; margin-top: 56px; }
.diff-foot p { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 1180px) { .diff-row { grid-template-columns: 170px 1fr 1fr; gap: 10px 30px; } }
@media (max-width: 760px) {
  .diff-row { grid-template-columns: 1fr; gap: 14px; padding: 28px 0 24px; }
  .diff-src { grid-column: auto; margin-top: 2px; }
  .diff-ours { padding-left: 16px; }
}

/* ---------- standard page (Sep 29) ---------- */
.std-src { margin-top: 18px; font-size: 15px; line-height: 26px; color: var(--muted); }
.card .checks li { margin-bottom: 10px; }
.card .checks { margin-top: 6px; }

/* Narrow desktops: the 64px logo and the Our Standard link (Sep 29) left 14px between logo and nav at 1181. */
@media (min-width: 1181px) and (max-width: 1340px) {
  .nav > a, .nav .has-menu > a { padding: 0 10px; }
  .nav > a::after, .nav .has-menu > a::after { left: 10px; right: 10px; }
  .nav .has-menu > a { padding-right: 24px; }
  .nav .has-menu > a::before { right: 10px; }
  .nav .nav-cta { margin-left: 10px; }
  .site-header .wrap { padding-left: 48px; padding-right: 48px; }
  .nav > a, .nav .has-menu > a { padding: 0 8px; }
  .nav > a::after, .nav .has-menu > a::after { left: 8px; right: 8px; }
  .nav .has-menu > a { padding-right: 22px; }
  .nav .has-menu > a::before { right: 8px; }
  .nav .nav-cta { margin-left: 6px; }
  .nav .nav-cta .btn { padding: 13px 18px; }
}
/* Client login on narrow desktops: the lock alone, the words kept for screen readers, so the logo keeps its room. */
@media (min-width: 1181px) and (max-width: 1440px) {
  .nav-login-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav > a.nav-login { padding: 0 12px; }
}

/* ---------- project request form (Start a Project, Sep 29) ---------- */
/* Same field look as the grader: square, 2px rule border, yellow on focus. */
.req-form { margin-top: 30px; position: relative; }
.req-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.req-field { margin-bottom: 22px; }
.req-field label, .req-set legend { display: block; font: 600 15px/20px var(--label); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.req-mark { font: 500 14px/1 var(--label); letter-spacing: 1px; text-transform: none; color: var(--muted); margin-left: 6px; }
.req-form input[type="text"], .req-form input[type="tel"], .req-form input[type="email"], .req-form select, .req-form textarea {
  display: block; width: 100%; min-height: 56px; padding: 14px 18px; border: 2px solid var(--rule); border-radius: 0; background: var(--white);
  font: 400 17px/1.5 var(--display); color: var(--ink); transition: border-color .2s;
}
.req-form textarea { resize: vertical; min-height: 140px; }
.req-form input::placeholder { color: var(--muted); }
.req-form input:hover, .req-form select:hover, .req-form textarea:hover { border-color: var(--muted); }
.req-form input:focus, .req-form select:focus, .req-form textarea:focus { border-color: var(--yellow); }
.req-form [aria-invalid="true"] { border-color: var(--fail); }
.req-hint { margin: -12px 0 22px; font-size: 15px; line-height: 24px; color: var(--muted); }
.req-field .req-hint { margin: 8px 0 0; }
.req-err { margin: 8px 0 0; color: var(--fail); font-weight: 400; font-size: 15px; line-height: 24px; }
.req-error-summary { margin: 0 0 24px; padding: 16px 20px; border-left: 4px solid var(--fail); background: var(--paper); color: var(--fail); font-weight: 400; }
.req-set { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.req-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.req-opts-row { grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 36px; }
.req-opts label, .req-consent label { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 10px 0; cursor: pointer; line-height: 24px; }
.req-opts input, .req-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--asphalt); }
.req-consent { margin: 0 0 26px; padding: 14px 18px; background: var(--paper); font-size: 15px; }
.req-consent .req-err { margin-top: 0; }
.req-trap { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }   /* spam trap: clipped in place, not pushed off screen */
.req-form .btn:disabled { cursor: progress; opacity: .75; transform: none; }
.req-note { margin: 16px 0 0; font-size: 15px; line-height: 24px; color: var(--muted); }
.req-note a { color: var(--ink); }
.req-done { margin-top: 30px; padding: 28px 30px; background: var(--paper); border-left: 4px solid var(--yellow); }
.req-done:focus { outline: none; }
.req-done:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.req-done-title { font-weight: 600; color: var(--ink); font-size: 19px; margin-bottom: 8px; }
/* one question at a time (Oct 5): js/start.js adds .is-steps; without JavaScript every step shows as one form */
.req-progress { margin: 0 0 14px; font: 600 14px/20px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--yellow-ink); }
.req-q, .is-steps .req-set legend.req-q { display: block; font: 600 26px/1.3 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 0 0 18px; }
.req-form:not(.is-steps) p.req-q { display: none; }
.req-form:not(.is-steps) .req-q { font: 600 15px/20px var(--label); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.is-steps .req-chips { gap: 10px; }
.is-steps .req-chips label { padding: 10px 14px; border: 2px solid var(--rule); background: var(--white); align-items: center; }
.is-steps .req-chips label:hover { border-color: var(--muted); }
.is-steps .req-chips label:has(input:checked) { border-color: var(--asphalt); box-shadow: inset 0 0 0 1px var(--asphalt); }
.req-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.req-nav [hidden] { display: none; }
.req-next-steps { margin: 16px 0 22px; padding: 0; list-style: none; counter-reset: n; }
.req-next-steps li { counter-increment: n; position: relative; padding: 0 0 12px 46px; min-height: 34px; line-height: 26px; }
.req-next-steps li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--asphalt); color: var(--yellow); font: 700 15px/1 var(--display); }
.req-done-sub { font: 600 15px/20px var(--label); letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.req-done .checks { margin: 0 0 18px; }
.req-done-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.req-done .link-more { color: var(--yellow-ink); }
@media (max-width: 760px) {
  .req-row, .req-opts { grid-template-columns: 1fr; }
  .req-opts-row { grid-template-columns: repeat(3, auto); gap: 4px 24px; }
}
.email-card .addr-sm { font-size: 19px; margin-top: -14px; }
@media (max-width: 760px) { .email-card .addr-sm { font-size: 16px; } }

/* Focus ring by ground (keyboard pass, Sep 29): yellow is 1.9:1 on white, 1.75 on paper, and 1.0 on the yellow band,
   so light and yellow grounds get an asphalt ring (13 to 14:1); dark boxes inside light sections keep yellow (7.5:1). */
.on-light :focus-visible, .care :focus-visible, .bg-white :focus-visible, .bg-paper :focus-visible, .card:focus-visible, .cta-band :focus-visible { outline-color: var(--asphalt); }
.email-card :focus-visible { outline-color: var(--yellow); }
.req-form input:focus, .req-form select:focus, .req-form textarea:focus { border-color: var(--asphalt); }
.submenu a:focus-visible { outline-color: var(--asphalt); outline-offset: -3px; }   /* white dropdown panel */
.grader-row input:focus-visible, .tile:focus-visible { outline-color: var(--asphalt); }

/* Jet Laundry on Work and Recent Work (Sep 30): a three-shot strip under the Jet row, and four tiles in Recent Work */
.work-row .work-gallery { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0; }
.work-gallery figure { margin: 0; }
.work-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); box-shadow: 0 10px 30px rgba(38,42,49,.07); }
.work-gallery figcaption { margin-top: 14px; font-size: 15px; line-height: 24px; color: var(--muted); text-wrap: pretty; }
.work-gallery figcaption b { font-weight: 600; color: var(--ink); }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1500px) { .tiles.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1180px) { .work-row .work-gallery { gap: 20px; } }
@media (max-width: 760px) {
  .work-row .work-gallery { grid-template-columns: 1fr; gap: 36px; }
  .tiles.four { grid-template-columns: 1fr; }
}


/* ---------- Website Design: technique showcase and tiers (Sep 30) ----------
   Five live demos (scroll animation, layered backgrounds, product demo, data map, bilingual switch),
   then the three tiers. Script: js/site.js, "Website Design showcase". Everything still reads with no
   script and under reduced motion: the washer shows its poster, the layers sit still. */
:root { --stage: #000000; }   /* the black the washer frames were rendered on, so the stage has no seam */

.sc-intro .h2 { margin-bottom: 18px; }
.sc-intro .sub { max-width: 760px; margin: 0 auto; }

.sc-num { margin: 0 0 18px; font: 600 15px/20px var(--label); letter-spacing: 3px; color: var(--muted); }
.sc-tierline { margin-top: 26px; }
.sc-chip { display: inline-block; padding: 4px 16px 4px 19px; font: 600 14px/30px var(--label); letter-spacing: 3px; text-transform: uppercase; color: var(--white); box-shadow: inset 0 0 0 1px var(--rule-dark); }
.sc-chip-light { color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); }
.bg-white .sc-chip-light { background: var(--paper); }
.sc-note { margin: 16px auto 0; max-width: 560px; font-size: 15px; line-height: 24px; color: var(--muted); text-align: center; }
.sc-row .split > div:last-child { width: 100%; }

/* 01: scrubbed washer animation */
.sc-anim { background: var(--stage); color: var(--on-dark); }
.sc-anim h2 { color: var(--white); }
.sc-anim .sc-num { color: var(--on-dark-muted); }
.sc-anim-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 90px; align-items: end; padding-top: 130px; padding-bottom: 60px; }
.sc-anim-head .h2 strong { display: block; }
.sc-anim-head p { max-width: 640px; }
.sc-anim-foot { padding-top: 40px; padding-bottom: 120px; }
.sc-credit { max-width: 700px; margin: 0; text-wrap: pretty; }
.sc-credit b { color: var(--white); }
.scrub { position: relative; }
.scrub-stage { position: relative; overflow: hidden; background: var(--stage); }
.scrub-poster img { width: 100%; height: auto; }
.scrub-canvas, .scrub-beats, .scrub-meter { display: none; }
.scrub.is-live { height: 250vh; }
.scrub.is-live .scrub-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); }
.scrub.is-live .scrub-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub.is-live .scrub-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.scrub.is-ready .scrub-canvas { opacity: 1; }
.scrub.is-live .scrub-beats { display: block; position: absolute; left: var(--edge); right: var(--edge); bottom: 56px; height: 44px; margin: 0; padding: 0; list-style: none; }
.scrub-beats li {
  position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 10px 18px; background: var(--asphalt-deep); color: var(--white);
  font: 600 16px/24px var(--label); letter-spacing: 2px; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
}
.scrub-beats li.is-on { opacity: 1; transform: none; }
.scrub.is-live .scrub-meter { display: block; position: absolute; left: var(--edge); right: var(--edge); bottom: 30px; height: 3px; background: var(--rule-dark); }
.scrub-meter span { display: block; height: 100%; background: var(--yellow); transform-origin: left center; transform: scaleX(var(--p, 0)); }

/* 02: layered backgrounds, five layers that scroll at their own pace; the button pulls them apart in 3D */
.layers { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--asphalt-deep); perspective: 1400px; box-shadow: 0 30px 60px rgba(38,42,49,.18); }
.layers-stage { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.layer { position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; transform: translate3d(0, calc(var(--shift, 0px) * var(--depth)), 0); transition: box-shadow .9s; will-change: transform; }
.layers.is-toggling .layer { transition: transform .9s cubic-bezier(.2,.7,.2,1), box-shadow .9s; }
.layer svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer-sky { background: linear-gradient(180deg, var(--asphalt-deep) 0%, var(--asphalt) 30%, var(--muted) 62%, var(--muted) 100%); }
.layer-sun { position: absolute; left: 63%; top: 38%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); }
.layer-topo::before {
  content: ""; position: absolute; inset: 0; background: var(--on-dark); opacity: .16;
  -webkit-mask-image: var(--topo-map); mask-image: var(--topo-map);
  -webkit-mask-size: 1100px 629px; mask-size: 1100px 629px;
  -webkit-mask-position: -260px -140px; mask-position: -260px -140px;
}
.layer-far path { fill: var(--asphalt-soft); }
.layer-near path { fill: var(--asphalt-deep); }
.layer-road .road-bed { fill: none; stroke: var(--paper); stroke-width: 22; stroke-linecap: butt; }
.layer-road .road-stop { fill: var(--yellow); stroke: var(--asphalt-deep); stroke-width: 5; }
.layer-name {
  display: none; position: absolute; left: 8%; bottom: 18%; padding: 2px 12px; background: var(--asphalt-deep); color: var(--white);
  font: 600 15px/26px var(--label); letter-spacing: 2px; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--rule-dark);
}
.layer-sky .layer-name { left: auto; right: 8%; bottom: auto; top: 18%; }
.layer-topo .layer-name { left: 6%; bottom: auto; top: 22%; }
.layer-far .layer-name { left: auto; right: 6%; bottom: 44%; }
.layer-near .layer-name { left: 5%; bottom: 26%; }
.layer-road .layer-name { left: auto; right: 10%; bottom: 14%; }
.layers.is-apart .layers-stage { transform: translateY(16%) scale(.44) rotateX(58deg) rotateZ(-24deg); }
.layers.is-apart .layer { transform: translate3d(0, 0, calc((4 - var(--depth)) * var(--layer-gap, 110px))); box-shadow: inset 0 9px 0 0 var(--on-dark-muted), inset 0 -9px 0 0 var(--on-dark-muted), inset 4px 0 0 0 var(--on-dark-muted), inset -4px 0 0 0 var(--on-dark-muted); outline: 1px solid transparent; backface-visibility: hidden; will-change: auto; opacity: .9; }
.layers.is-apart .layer-sky { opacity: 1; }
/* Labels: a flat legend over the 3D stage (js places each one at its layer's left edge), so none is hidden behind
   another layer and all stay 15px on screen. The in-layer spans are only position anchors. */
.layer-name { visibility: hidden; }
.layer-pin { position: absolute; left: 3%; top: 50%; width: 1px; height: 1px; }
.layers-legend { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; list-style: none; pointer-events: none; opacity: 0; transition: opacity .3s; }
.layers.is-apart .layers-legend.is-placed { opacity: 1; }
.layers-legend li {
  position: absolute; left: 0; top: 0; transform: translate(0, -50%); padding: 3px 12px; white-space: nowrap; background: var(--asphalt-deep); color: var(--white);
  font: 600 15px/22px var(--label); letter-spacing: 2px; text-transform: uppercase; box-shadow: inset 0 0 0 1px var(--on-dark-muted);
}
.layers-btn { margin-top: 26px; }

/* 03: tap-through washer screen */
.tdev { max-width: 600px; margin: 0 auto; padding: 26px; background: linear-gradient(160deg, var(--white) 0%, var(--on-dark) 45%, var(--on-dark-muted) 100%); box-shadow: 0 30px 60px rgba(38,42,49,.18); }
.tdev-screen { min-height: 330px; padding: 28px 30px 30px; background: var(--asphalt-deep); border: 10px solid var(--stage); color: var(--white); display: flex; flex-direction: column; }
.tdev-step { margin: 0 0 14px; font: 600 14px/20px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--on-dark-muted); }
.tdev-view { display: flex; flex-direction: column; flex: 1; }
.tdev-view[hidden] { display: none; }
.tdev-title { margin: 0 0 20px; font: 600 25px/32px var(--display); color: var(--white); }
.tdev-sum { margin: -8px 0 20px; color: var(--on-dark); }
.tdev-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: auto; }
.tdev-opts button {
  min-height: 64px; padding: 10px 14px; border: 0; border-bottom: 4px solid var(--yellow); background: var(--asphalt-soft); color: var(--white);
  font: 600 16px/20px var(--label); letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: background .2s;
}
.tdev-opts button:hover { background: var(--asphalt); }
.tdev :focus-visible, .bil-bar :focus-visible { outline-color: var(--yellow); }
.tdev-ring { width: 104px; margin: 0 0 16px; }
.tdev-ring svg { transform: rotate(-90deg); }
.tdev-ring circle { fill: none; stroke-width: 10; }
.tdev-ring-bg { stroke: var(--asphalt-soft); }
.tdev-ring-fg { stroke: var(--yellow); stroke-dasharray: 100; stroke-dashoffset: 0; }
.tdev-ring.is-running .tdev-ring-fg { animation: tdev-run 24s linear forwards; }
@keyframes tdev-run { to { stroke-dashoffset: 100; } }

/* 04: data map, Census streets with straight-line routes */
.dmap { margin: 0; }
.dmap-frame { position: relative; aspect-ratio: 7 / 5; overflow: hidden; background: var(--paper); box-shadow: 0 30px 60px rgba(38,42,49,.18); }
.dmap-base { width: 100%; height: 100%; }
.dmap-routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.dmap-routes path { fill: none; stroke: var(--asphalt); stroke-width: 4; stroke-dasharray: 1 1; stroke-dashoffset: 0; opacity: .7; transition: stroke-dashoffset 1.4s cubic-bezier(.45,.1,.2,1), opacity .25s, stroke-width .25s, stroke .25s; }
.js .dmap-routes path { stroke-dashoffset: 1; }
.js .is-in .dmap-routes path { stroke-dashoffset: 0; }
.dmap-frame.has-on .dmap-routes path { opacity: .22; }
.dmap-frame.has-on .dmap-routes path.is-on { opacity: 1; stroke: var(--asphalt); stroke-width: 9; }
.dmap-store { fill: var(--yellow); stroke: var(--asphalt); stroke-width: 7; }
.dmap-pin {
  position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--asphalt); color: var(--white);
  font: 600 14px/28px var(--label); text-align: center; box-shadow: 0 0 0 2px var(--white); transition: background .2s, color .2s;
}
.dmap-pin.is-on { background: var(--yellow); color: var(--asphalt); }
.dmap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 22px; }
.dmap-list button {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule);
  background: none; color: var(--ink); font: 400 16px/24px var(--display); text-align: left; cursor: pointer;
}
.dmap-list button b { margin-left: auto; font-weight: 600; white-space: nowrap; }
.dmap-k { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--asphalt); color: var(--white); font: 600 14px/26px var(--label); text-align: center; }
.dmap-list button[aria-pressed="true"] .dmap-k { background: var(--yellow); color: var(--asphalt); }
.dmap-list button[aria-pressed="true"] { font-weight: 600; }
.dmap-credit { margin-top: 14px; font-size: 15px; line-height: 24px; color: var(--muted); }

/* 05: bilingual switch on a sample layout */
.bil { max-width: 600px; margin: 0 auto; background: var(--white); border-top: 4px solid var(--yellow); box-shadow: 0 10px 30px rgba(38,42,49,.07); }
.bil-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px 12px 22px; background: var(--asphalt); }
.bil-label { font: 600 14px/20px var(--label); letter-spacing: 3px; text-transform: uppercase; color: var(--on-dark-muted); }
.bil-switch { display: flex; }
.bil-switch button {
  min-height: 44px; padding: 0 18px; border: 0; background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--rule-dark);
  font: 600 15px/20px var(--label); letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
}
.bil-switch button[aria-pressed="true"] { background: var(--yellow); color: var(--asphalt); box-shadow: none; }
.bil-body { padding: 34px 34px 40px; }
.bil-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); font: 600 15px/22px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.bil-h { margin: 0 0 12px; font: 600 30px/38px var(--display); color: var(--ink); text-wrap: balance; }
.bil-p { text-wrap: pretty; }
.bil-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.bil-btn { display: inline-flex; padding: 14px 26px; background: var(--yellow); color: var(--asphalt); font: 600 15px/20px var(--label); letter-spacing: 2px; text-transform: uppercase; }
.bil-btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--asphalt); }

/* tiers: right under the banner. Three short cards (who it is for), then one table that says what each
   tier gets; the numbered rows match the numbered demos further down the page. */
.tiers .h2 { margin-bottom: 18px; }
.page-hero + .tiers { padding-top: 40px; }   /* same dark ground as the banner, whose route line already divides them */
.tiers .center { max-width: 900px; margin: 0 auto; }
.tiers .sub { max-width: 700px; margin: 0 auto; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: 46px 40px 44px; background: var(--white); color: var(--body); border-top: 4px solid var(--yellow); }
.tier-mid { box-shadow: inset 0 0 0 3px var(--yellow); }
.tier-n { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 10px; font: 600 15px/26px var(--label); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.tier-flag { padding: 2px 12px; background: var(--asphalt); color: var(--white); font-size: 14px; letter-spacing: 2px; }
.tiers .tier h3 { margin-bottom: 14px; font: 600 30px/38px var(--display); color: var(--ink); }
.tier-what { margin-bottom: 20px; text-wrap: pretty; }
.tier-fit { flex: 1; margin-bottom: 30px; font-size: 16px; line-height: 26px; color: var(--muted); text-wrap: pretty; }
.tier-fit b { display: block; margin-bottom: 4px; font: 600 15px/20px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }

.tier-table-wrap { margin-top: 30px; padding: 46px 50px 40px; background: var(--white); color: var(--body); }
.tier-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tier-table caption { margin-bottom: 26px; text-align: left; font: 600 30px/38px var(--display); color: var(--ink); }
.tier-table thead th { padding: 0 0 14px; font: 600 15px/20px var(--label); letter-spacing: 3px; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--ink); }
.tier-table thead td { border-bottom: 2px solid var(--ink); }
.tier-table thead .tt-mid { color: var(--yellow-ink); }
.tier-table thead th { width: 17%; }
.tier-table thead td { width: 49%; }
.tt-short { display: none; }
.tier-table tbody th[scope="row"] { padding: 13px 20px 13px 0; text-align: left; font-weight: 400; line-height: 26px; color: var(--ink); }
.tier-table tbody th a { padding: 1px 0; }   /* 24px tap target, the design-audit floor */
.tier-table tbody th small { display: block; padding-left: 30px; font-size: 15px; line-height: 22px; color: var(--muted); }
.tier-table tbody tr + tr > * { border-top: 1px solid var(--rule); }
.tier-table td { padding: 13px 0; text-align: center; vertical-align: middle; }
.tier-table td:nth-child(3) { background: rgba(230, 180, 34, .1); }   /* the Signature column, the animation tier */
.tt-group th { padding: 34px 0 10px; text-align: left; font: 600 15px/20px var(--label); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.tt-group th span { margin-left: 12px; font-family: var(--display); font-weight: 400; letter-spacing: 0; text-transform: none; }
tbody:first-of-type .tt-group th { padding-top: 22px; }
.tt-n { display: inline-block; min-width: 30px; font: 600 15px/26px var(--label); letter-spacing: 1px; color: var(--yellow-ink); }
/* included: a check drawn in CSS; not included: a short muted dash; English and Spanish: the word Option */
.tier-table td.y::before { content: ""; display: inline-block; width: 8px; height: 15px; margin-top: -4px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); vertical-align: middle; }
.tier-table td.n::before { content: ""; display: inline-block; width: 14px; height: 2px; background: #b9b4a8; vertical-align: middle; }
.tier-table td.o { font: 600 14px/20px var(--label); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.tier .btn { margin-top: auto; align-self: end; }
.tier :focus-visible { outline-color: var(--asphalt); }
.tiers-foot { max-width: 760px; margin: 50px auto 0; text-align: center; color: var(--on-dark); }
.tiers-foot a { color: var(--white); }

@media (max-width: 1500px) {
  .tier { padding: 40px 30px 38px; }
}
@media (max-width: 1000px) {
  .tier-table-wrap { max-width: 680px; margin-left: auto; margin-right: auto; padding: 34px 30px 30px; }
  .tier-table thead td { width: 46%; }
  .tier-table thead th { width: 18%; }
}
@media (max-width: 760px) {
  .tier-table-wrap { padding: 26px 14px 22px; margin-left: -6px; margin-right: -6px; }
  .tier-table caption { font-size: 24px; line-height: 30px; margin-bottom: 18px; }
  .tier-table thead td { width: auto; }
  .tier-table thead th { width: 52px; letter-spacing: .5px; font-size: 14px; }
  .tt-long { display: none; }
  .tt-short { display: inline; }
  .tier-table tbody th[scope="row"] { padding-right: 8px; font-size: 15px; line-height: 22px; }
  .tier-table tbody th small { padding-left: 26px; font-size: 14px; line-height: 20px; }
  .tt-group th span { display: block; margin: 4px 0 0; }
  .tt-n { min-width: 26px; }
  .tier-table td.o { letter-spacing: 0; }
}
@media (max-width: 1180px) {
  .sc-anim-head { grid-template-columns: 1fr; gap: 26px; }
  .tier-grid { gap: 20px; }
  .tier { padding: 34px 24px 32px; }
  .tiers .tier h3 { font-size: 27px; line-height: 34px; }
}
@media (max-width: 1000px) {
  .tier-grid { grid-template-columns: 1fr; max-width: 680px; margin-left: auto; margin-right: auto; gap: 30px; }
  .tier { padding: 40px 30px 38px; }
}
@media (max-width: 760px) {
  .sc-anim-head { padding-top: 80px; padding-bottom: 40px; }
  .sc-anim-foot { padding-top: 30px; padding-bottom: 80px; }
  .scrub.is-live { height: 220vh; }
  .scrub.is-live .scrub-beats { bottom: 46px; }
  .scrub-beats li { font-size: 15px; line-height: 22px; letter-spacing: 1.5px; padding: 9px 14px; }
  .scrub.is-live .scrub-meter { bottom: 24px; }
  .layers { aspect-ratio: 4 / 3; --layer-gap: 80px; }
  .tdev { padding: 14px; }
  .tdev-screen { min-height: 300px; padding: 20px 18px 22px; border-width: 8px; }
  .tdev-title { font-size: 22px; line-height: 28px; }
  .dmap-pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 14px; line-height: 24px; }
  .dmap-list { grid-template-columns: 1fr; }
  .bil-body { padding: 26px 22px 30px; }
  .bil-h { font-size: 25px; line-height: 32px; }
  .bil-btn { flex: 1 1 auto; justify-content: center; padding: 14px 18px; }
  .tier { padding: 36px 26px 32px; }
  .tiers .tier h3 { font-size: 25px; line-height: 32px; }
  .tier-grid { margin-top: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .layer, .layers-stage { transition: none !important; }
  .js .dmap-routes path { stroke-dashoffset: 0 !important; }
}

/* Sep 30 review fixes: tier cards line up row by row when three across; demo controls hide without script */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1001px) {
    .tier-grid { row-gap: 0; }
    .tier { display: grid; grid-row: span 8; grid-template-rows: subgrid; align-content: start; }
    .tier > * { min-width: 0; }
  }
}
html:not(.js) [data-layers-toggle], html:not(.js) .tdev-opts, html:not(.js) .bil-switch { display: none; }
html:not(.js) .dmap-list button { cursor: default; pointer-events: none; }
