/* ===========================================================
   REAT Global — marketing stylesheet ("survey instrument" refresh, 2026-09)
   Brand: black REAT wordmark, navy road, signal-red pin, yellow centre line,
   dotted world-map motif. Type: Saira (display) + IBM Plex Sans (body)
   + IBM Plex Mono (data register). Hard corners, hairline borders,
   restrained motion. Admin console rules live in admin.css.
   Theme hex values are overridden from content.json in partials/head.ejs.
   =========================================================== */

:root {
  --ink: #14181f;
  --navy: #1e3a6e;
  --navy-deep: #142a52;
  --red: #d81e27;
  --red-dark: #b3151d;
  --orange: #f08a22;
  --teal: #2e8b7f;
  --tech-blue: #0f62b0;
  --yellow: #f2c200;

  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-deep: #0f2147;
  --line: #dfe5ee;
  --line-strong: #b9c3d2;
  --text: #232a35;
  --muted: #5d6878;
  --white: #ffffff;
  --on-dark: #eaf0fb;
  --on-dark-muted: #c4d2ea;
  --grid: rgba(30, 58, 110, .06);
  --frame: var(--yellow);

  --radius: 0;
  --radius-lg: 0;
  --radius-input: 2px;
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(20, 40, 80, .06);
  --shadow-photo: 0 18px 40px rgba(15, 33, 71, .18);
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 32px);

  --dur-fast: 150ms;
  --dur: 300ms;
  --dur-slow: 600ms;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --head: 'Saira', 'Poppins', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Accessibility: skip link + visible keyboard focus ---- */
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 200;
  background: var(--navy); color: #fff; font-family: var(--body); font-weight: 600; font-size: .9rem;
  padding: 12px 20px; transition: top .2s;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--tech-blue); outline-offset: 2px; }
.btn:focus-visible, .btn--red:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@view-transition { navigation: auto; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.08; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h3, h4 { font-weight: 600; }
::selection { background: var(--navy); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding: clamp(60px, 8vw, 108px) 0; }
.section--soft {
  background-color: var(--bg-soft);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---- Data register (mono labels) ---- */
.mono, .eyebrow, .tag, .idx, .crumbs, .page-index, .u-item {
  font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
}

/* ---- Eyebrow + section headings ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); flex: none; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin-top: 14px; }
.center .section-lead { margin-inline: auto; }

/* Yellow road centre-line motif (replaces the 4-colour accent bar in content) */
.centreline { display: block; width: 120px; height: 0; border: 0; border-top: 3px dashed var(--yellow); margin-top: 20px; }
.center .centreline { margin-inline: auto; }

/* Legacy 4-colour accent bar — footer only */
.accent-bar { display: inline-flex; gap: 6px; margin-top: 18px; }
.accent-bar span { width: 30px; height: 4px; }
.accent-bar span:nth-child(1) { background: var(--orange); }
.accent-bar span:nth-child(2) { background: var(--teal); }
.accent-bar span:nth-child(3) { background: var(--red); }
.accent-bar span:nth-child(4) { background: var(--tech-blue); }

/* ---- Buttons ---- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  transition: background var(--dur), border-color var(--dur), color var(--dur), transform var(--dur) var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover { background: var(--navy-deep); }
.btn:hover svg { transform: translateX(4px); }
.btn--red { --bg: var(--red); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---- Corner registration marks (survey drawing frame) ---- */
.frame { position: relative; }
.frame .fr { position: absolute; inset: 0; pointer-events: none; }
.frame::before, .frame::after, .frame .fr::before, .frame .fr::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--frame); pointer-events: none; z-index: 3;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.frame::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.frame::after { right: -1px; top: -1px; border-width: 2px 2px 0 0; }
.frame .fr::before { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; }
.frame .fr::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.frame:hover::before { transform: translate(-4px, -4px); }
.frame:hover::after { transform: translate(4px, -4px); }
.frame:hover .fr::before { transform: translate(-4px, 4px); }
.frame:hover .fr::after { transform: translate(4px, 4px); }
.frame--hover::before, .frame--hover::after, .frame--hover .fr::before, .frame--hover .fr::after { opacity: 0; }
.project:hover .frame--hover::before, .project:hover .frame--hover::after,
.project:hover .frame--hover .fr::before, .project:hover .frame--hover .fr::after { opacity: 1; }

/* ===================== UTILITY STRIP + HEADER ===================== */
.utility { background: var(--bg-deep); color: var(--on-dark-muted); }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 30px; }
.u-item { display: inline-flex; align-items: center; gap: 8px; font-size: .68rem; letter-spacing: .12em; white-space: nowrap; color: var(--on-dark-muted); }
.u-item i { width: 6px; height: 6px; background: var(--yellow); display: inline-block; }
.u-item a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); transition: border-color var(--dur); }
.u-item a:hover { border-bottom-color: var(--yellow); }
.u-item img { height: 14px; width: 14px; }
.utility .u-rs { margin-inline: auto; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow var(--dur);
}
.header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; transition: height var(--dur) var(--ease); }
.header.scrolled .nav { height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; transition: height var(--dur) var(--ease); }
.header.scrolled .brand img { height: 36px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-family: var(--body); font-weight: 500; font-size: .94rem; color: var(--ink);
  padding: 10px 12px; position: relative; transition: color var(--dur);
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .phone { font-family: var(--mono); font-weight: 500; font-size: .84rem; letter-spacing: .04em; color: var(--navy); white-space: nowrap; }
.nav-cta .btn { padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur); }
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(1200px 600px at 80% -10%, #28508f 0%, transparent 60%), linear-gradient(160deg, #16336a 0%, #0f2147 60%, #0b1733 100%);
}
.hero::before {
  content: ""; position: absolute; inset: -40px 0;
  background: url("/assets/dotted_map.png") right -4% center / 56% auto no-repeat;
  opacity: .14; mix-blend-mode: screen; pointer-events: none;
  animation: drift 60s linear infinite alternate;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: clamp(56px, 8vw, 100px) 0; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.2vw, 4rem); letter-spacing: -.02em; line-height: 1.05; }
.hero h1 .hl {
  text-decoration: underline; text-decoration-style: dashed; text-decoration-thickness: 3px; text-underline-offset: 9px;
  text-decoration-color: transparent; transition: text-decoration-color var(--dur-slow);
}
.hero-ready .hero h1 .hl { text-decoration-color: var(--yellow); }
.hero .sub { color: var(--on-dark-muted); font-size: 1.14rem; margin-top: 22px; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-weight: 500;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted);
  border: 1px solid rgba(255,255,255,.2); padding: 7px 12px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--yellow); }
.hero-visual { position: relative; }
.hero-visual .frame { border: 1px solid rgba(255,255,255,.18); }
.hero-visual img { width: 100%; height: 440px; object-fit: cover; }
.hero-visual .float-card {
  position: absolute; left: -24px; bottom: 28px; background: var(--navy-deep); color: #fff;
  border: 1px solid rgba(255,255,255,.18); padding: 14px 18px; display: grid; gap: 4px; min-width: 232px;
  font-family: var(--mono); font-size: .8rem; letter-spacing: .05em;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.float-card .r-l { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 4px; }
.float-card .r-v { color: #fff; font-variant-numeric: tabular-nums; }
.float-card .r-v em { font-style: normal; color: var(--yellow); display: inline-block; min-width: 4ch; transition: opacity var(--dur); }
.float-card .r-v em.swap { opacity: 0; }
.float-card .r-s { font-family: var(--body); font-size: .8rem; letter-spacing: 0; color: var(--on-dark-muted); margin-top: 6px; }

/* Hero entrance sequence (page load) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wipe-right { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mask-up { from { clip-path: inset(0 0 100% 0); opacity: 0; } to { clip-path: inset(0 0 -20% 0); opacity: 1; } }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-24px, 12px, 0); } }
.hero .hero-badge, .hero .sub, .hero .hero-actions, .hero .hero-badges, .hero-visual .float-card { animation: rise var(--dur-slow) var(--ease) both; }
.hero h1 { animation: mask-up 700ms var(--ease) both; animation-delay: 80ms; }
.hero > .container .hero-badge:first-child { animation-delay: 0ms; }
.hero .sub { animation-delay: 240ms; }
.hero .hero-actions { animation-delay: 320ms; }
.hero .hero-badges { animation-delay: 420ms; }
.hero-visual .frame { animation: wipe-right 800ms var(--ease-io) both; animation-delay: 200ms; }
.hero-visual .float-card { animation-delay: 900ms; }

/* ===================== STATS (instrument panel) ===================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #fff; }
.stat { text-align: left; padding: 24px 22px 22px; border-right: 1px solid var(--line); position: relative; transition: background var(--dur); }
.stat:last-child { border-right: 0; }
.stat::before { content: attr(data-i); font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; color: var(--muted); }
.stat::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--red); transition: width 350ms var(--ease); }
.stat:hover { background: var(--bg-soft); }
.stat:hover::after { width: 100%; }
.stat .num { font-family: var(--head); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--navy); line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ===================== CARDS / GRIDS ===================== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); padding: 28px;
  transition: transform var(--dur) var(--ease), border-color var(--dur);
  position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--red); transition: width 350ms var(--ease); }
.card:hover { transform: translateY(-2px); border-color: var(--navy); }
.card:hover::after { width: 100%; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card .idx { color: var(--muted); font-size: .68rem; }
.card .ic {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-strong); color: var(--navy); margin-bottom: 18px;
  font-family: var(--mono); font-weight: 500; font-size: .86rem; letter-spacing: .06em;
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.card .tag { display: inline-block; color: var(--red); font-size: .7rem; margin-bottom: 10px; }
.card .arrow { position: absolute; right: 18px; bottom: 14px; color: var(--navy); opacity: 0; transform: translateX(-6px); transition: opacity var(--dur), transform var(--dur) var(--ease); }
.card:hover .arrow { opacity: 1; transform: none; }
.icon-badge { width: 48px; height: 48px; flex: none; }
.icon-badge img { width: 100%; height: 100%; object-fit: contain; }
.card-top .icon-badge { margin: 0; }

/* Process grid: dashed centre-line connector that draws on scroll */
[data-grid="process"] { position: relative; padding-top: 22px; }
[data-grid="process"]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 3px dashed var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease);
}
[data-grid="process"].in::before { transform: scaleX(1); }

/* ---- Split feature (image + text) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame { border: 1px solid var(--line); }
.split-media img { width: 100%; height: 420px; object-fit: cover; }
.split-media img.iso-seal {
  position: absolute; top: 16px; left: 16px; width: 104px; height: 104px; object-fit: contain;
  background: #fff; padding: 8px; border: 1px solid var(--line); z-index: 4;
}
.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .chk { flex: none; width: 24px; height: 24px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-top: 2px; }
.feature-list .chk svg { width: 14px; height: 14px; }
.feature-list b { font-family: var(--body); font-weight: 600; color: var(--ink); }

/* ---- Project cards ---- */
.project { position: relative; border: 1px solid var(--line); background: #fff; transition: transform var(--dur) var(--ease), border-color var(--dur); }
.project:hover { transform: translateY(-2px); border-color: var(--navy); }
.project .ph { aspect-ratio: 16 / 10; background: var(--navy-deep); overflow: hidden; border-bottom: 1px solid var(--line); }
.project .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.project:hover .ph img { transform: scale(1.03); }
.project .meta { padding: 20px 22px 22px; }
.project .meta .tag { color: var(--red); font-size: .7rem; }
.project .meta h3 { font-size: 1.15rem; margin-top: 8px; }
.project .meta h3 a { transition: color var(--dur); }
.project .meta h3 a:hover { color: var(--navy); }
.project .meta p { color: var(--muted); font-size: .94rem; margin-top: 6px; }
.project .meta .view { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.project .meta .view svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.project:hover .meta .view svg { transform: translateX(4px); }

/* ===================== CTA BAND (full-bleed) ===================== */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 400px at 85% 0%, #2a5392 0%, transparent 60%), linear-gradient(135deg, #16336a, #0f2147);
  padding: clamp(56px, 7vw, 88px) 0;
}
.cta-band::before {
  content: ""; position: absolute; inset: -40px 0; background: url("/assets/dotted_map.png") right 6% center / 38% no-repeat;
  opacity: .1; mix-blend-mode: screen; transform: translate3d(0, var(--py, 0px), 0); will-change: transform;
}
.cta { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: center; }
.cta .centreline { margin: 0 0 18px; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta p { color: var(--on-dark-muted); margin-top: 12px; max-width: 56ch; }
.cta .hero-actions { margin-top: 0; justify-content: flex-end; }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero { position: relative; color: var(--on-dark); background: linear-gradient(160deg, #16336a, #0f2147); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40px 0; background: url("/assets/dotted_map.png") right center / 44% no-repeat; opacity: .12; mix-blend-mode: screen; animation: drift 60s linear infinite alternate; }
.page-hero .container { position: relative; z-index: 2; padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(44px, 6vw, 76px); }
.page-hero .ph-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 16px; }
.page-hero .crumbs { color: #9fb4d8; font-size: .7rem; }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .page-index { color: rgba(255,255,255,.4); font-size: .7rem; white-space: nowrap; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { color: var(--on-dark-muted); font-size: 1.12rem; margin-top: 14px; max-width: 60ch; }

/* ===================== CONTACT + FORMS ===================== */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); padding: 30px; }
.field { margin-bottom: 18px; position: relative; }
.field label { display: block; font-family: var(--body); font-weight: 600; font-size: .86rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-input); background: #fff; color: var(--text);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,110,.14); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(216,30,39,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offices { display: grid; gap: 12px; }
.office { background: #fff; border: 1px solid var(--line); padding: 18px 20px; display: flex; gap: 16px; transition: border-color var(--dur); }
.office:hover { border-color: var(--navy); }
.office .pin { flex: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); color: var(--red); display: grid; place-items: center; }
.office .pin svg { width: 20px; height: 20px; }
.office h4 { font-size: 1.02rem; margin-bottom: 3px; }
.office p { color: var(--muted); font-size: .94rem; }
.office.head { background: var(--bg-deep); color: #fff; border-color: transparent; }
.office.head h4 { color: #fff; } .office.head p { color: var(--on-dark-muted); } .office.head .pin { border-color: rgba(255,255,255,.25); }
.map-embed { border: 1px solid var(--line); width: 100%; height: 320px; margin-top: 20px; background: var(--bg-soft); z-index: 1; position: relative; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ===================== FOOTER ===================== */
.footer { background: var(--bg-deep); color: var(--on-dark-muted); padding-top: 64px; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: url("/assets/dotted_map.png") 20% 120%/40% no-repeat; opacity: .07; mix-blend-mode: screen; }
.footer .container { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer .logo-chip { background: #fff; padding: 10px 14px; display: inline-block; }
.footer .logo-chip img { height: 40px; }
.footer h5 { font-family: var(--mono); font-weight: 500; color: #fff; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { transition: color var(--dur); }
.footer a:hover { color: #fff; }
.footer .muted { color: #93a6c8; font-size: .94rem; margin-top: 14px; max-width: 34ch; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.foot-contact svg { width: 18px; height: 18px; color: var(--yellow); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 8px; margin-top: 8px; }
.socials a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; transition: background var(--dur), border-color var(--dur); }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 17px; height: 17px; color: #fff; }
.footbar { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; font-size: .86rem; color: #93a6c8; }
.foot-rs { display: inline-flex; align-items: center; gap: 8px; }
.foot-rs img { width: 18px; height: 18px; }
.foot-rs a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }
.foot-rs a:hover { border-bottom-color: #F0A647; }
.foot-accent { height: 3px; display: flex; }
.foot-accent span { flex: 1; }
.foot-accent span:nth-child(1){background:var(--orange);} .foot-accent span:nth-child(2){background:var(--teal);} .foot-accent span:nth-child(3){background:var(--red);} .foot-accent span:nth-child(4){background:var(--tech-blue);}

/* ===================== REVEAL / MOTION ===================== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal--left { transform: translateX(-16px); }
.reveal--right { transform: translateX(16px); }
.reveal--wipe { transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 800ms var(--ease-io), opacity var(--dur); }
.reveal.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
#read-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--red); z-index: 150; }

/* ===================== ICON BADGES (RoadSense glyphs, REAT colours) ===================== */

/* ===================== RFQ ===================== */
.rfq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.rfq-col { display: grid; gap: 22px; position: relative; }
.rfq-step { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rfq-step h3 { font-size: 1.2rem; }
.rfq-num {
  width: 32px; height: 32px; flex: none; background: var(--navy); color: #fff;
  font-family: var(--mono); font-weight: 500; display: grid; place-items: center; font-size: .86rem;
}
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-card {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-strong); border-left-width: 3px;
  padding: 11px 14px; cursor: pointer; transition: border-color var(--dur), background var(--dur); background: #fff;
}
.check-card:hover { border-color: var(--navy); }
.check-card input { accent-color: var(--red); width: 17px; height: 17px; flex: none; }
.check-card:has(input:checked) { border-color: var(--line-strong); border-left-color: var(--red); background: #fdf3f3; }
.check-icon { width: 34px; height: 34px; flex: none; }
.check-icon img { width: 100%; height: 100%; object-fit: contain; }
.check-label { font-family: var(--body); font-weight: 500; font-size: .9rem; line-height: 1.25; }
.loc-tabs { display: flex; gap: 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.loc-tab {
  flex: 1; font-family: var(--body); font-weight: 600; font-size: .92rem; padding: 12px 10px;
  border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--muted); cursor: pointer;
  transition: color var(--dur), border-color var(--dur);
}
.loc-tab:hover { color: var(--ink); }
.loc-tab.active { color: var(--navy); border-bottom-color: var(--red); }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; }
.search-row .btn { padding: 12px 20px; flex: none; }
.rfq-map { height: 340px; border: 1px solid var(--line-strong); margin-top: 14px; z-index: 1; }
.drop-zone {
  border: 1px dashed var(--line-strong); padding: 26px 20px; text-align: center;
  cursor: pointer; display: grid; gap: 6px; justify-items: center; color: var(--muted);
  transition: border-color var(--dur), background var(--dur); background: var(--bg-soft);
}
.drop-zone strong { font-family: var(--body); color: var(--ink); }
.drop-zone span { font-size: .85rem; }
.drop-zone.over, .drop-zone:hover { border-color: var(--navy); background: #eef3fb; }
.drop-ic { width: 32px; height: 32px; color: var(--navy); }
.file-list { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.file-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--line); padding: 9px 14px; font-size: .92rem;
}
.file-rm { background: none; border: 0; color: var(--red); font-family: var(--body); font-weight: 600; font-size: .82rem; cursor: pointer; }
.rfq-confirm { display: grid; place-items: center; padding: 30px 0; }
.confirm-card { text-align: center; max-width: 560px; background: #fff; border: 1px solid var(--line); padding: 46px 40px; }
.confirm-ic { width: 70px; height: 70px; margin: 0 auto 20px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.confirm-ic svg { width: 34px; height: 34px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: check-draw 600ms var(--ease) 200ms forwards; }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.confirm-card h2 { font-size: 1.9rem; }
.confirm-card .ref-line { color: var(--red); font-family: var(--mono); font-size: .86rem; letter-spacing: .06em; margin: 10px 0 12px; }
.confirm-card p { color: var(--muted); }
.confirm-card .hero-actions { margin-top: 26px; }
.step-optional { font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); padding: 3px 8px; vertical-align: middle; margin-left: 8px; }
[hidden] { display: none !important; }

/* ===================== INSIGHTS / ARTICLE ===================== */
.article-meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 28px; }
.article-body { font-size: 1.06rem; line-height: 1.75; max-width: 68ch; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: 1.7rem; margin-top: 2em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body blockquote { border-left: 3px solid var(--navy); padding: 4px 0 4px 20px; color: var(--muted); }
.article-body pre, .article-body code { font-family: var(--mono); font-size: .9em; }
.article-body pre { background: var(--bg-soft); border: 1px solid var(--line); padding: 16px; overflow-x: auto; }
.article-body img { border: 1px solid var(--line); }
.article-body a { color: var(--navy); border-bottom: 1px solid var(--line-strong); }
.article-body a:hover { border-bottom-color: var(--red); }
.article-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags .tag { color: var(--navy); border: 1px solid var(--line-strong); padding: 5px 10px; font-size: .68rem; }
.article-back { margin-top: 28px; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.article-back a { color: var(--navy); }

/* ===================== ROADSENSE CO-BRANDED SYSTEM ===================== */
@font-face { font-family: "VarienRegular"; src: url("/assets/roadsense/Varien.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Varien"; src: url("/assets/roadsense/Varien.ttf") format("truetype"); font-display: swap; }

/* Co-brand chip: "Processed on ROADSENSE" — light + dark variants */
.rs-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px 0 6px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font-family: "Montserrat", var(--body); font-size: .72rem; font-weight: 400; letter-spacing: .02em; white-space: nowrap;
  transition: border-color var(--dur), background var(--dur);
}
.rs-chip img { width: 18px; height: 18px; }
.rs-chip b { font-family: "VarienRegular", "Varien", "Montserrat", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: .7rem; }
.rs-chip:hover { border-color: #305CDE; }
.rs-chip--dark { background: #232526; color: #e6e8ea; border-color: #4D4D4D; }
.rs-chip--dark:hover { border-color: #F0A647; }
.card .rs-chip { margin-top: 16px; }

.rs-band {
  position: relative; overflow: hidden; color: #fff;
  background: #232526; /* RoadSense charcoal */
  border-top: 3px dashed var(--yellow); /* the REAT centre line hands over to RoadSense */
  padding: clamp(64px, 9vw, 110px) 0;
}
.rs-band::before {
  content: ""; position: absolute; inset: -60px -40px;
  background: url("/assets/roadsense/rs-contour-continuous.png") center / cover no-repeat;
  opacity: .10; pointer-events: none; z-index: 0;
  animation: drift 60s linear infinite alternate;
}
.rs-band .container { position: relative; z-index: 2; }
.rs-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.rs-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #cfd3d6; }
.rs-lockup .x { color: #F0A647; }
.rs-lockup img { width: 20px; height: 20px; }
.rs-lockup b { font-family: "VarienRegular", "Varien", "Montserrat", sans-serif; font-weight: 400; color: #fff; letter-spacing: .06em; }
.rs-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: #F0A647; margin-bottom: 16px;
}
.rs-eyebrow::before { content: ""; width: 24px; height: 2px; background: #305CDE; }
.rs-title {
  font-family: "VarienRegular", "Varien", "Poppins", sans-serif; font-weight: 400;
  text-transform: uppercase; color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.14; letter-spacing: .015em;
}
.rs-title .rs-hl { color: #F0A647; }
.rs-underline { width: 86px; height: 2px; background: #F0A647; margin: 20px 0 18px; }
.rs-body { font-family: "Montserrat", sans-serif; font-weight: 300; font-size: 1.02rem; color: #cfd3d6; max-width: 56ch; line-height: 1.7; }

/* Pipeline diagram */
.rs-pipe { margin-top: 28px; border: 1px solid rgba(255,255,255,.14); padding: 18px 16px 10px; background: rgba(0,0,0,.2); }
.rs-pipe svg { width: 100%; height: auto; display: block; overflow: visible; }
.rs-pipe .lbl { font-family: "Montserrat", sans-serif; font-size: 11px; fill: #cfd3d6; letter-spacing: .04em; }
.rs-pipe .lbl.rs { fill: #F0A647; font-weight: 700; }
.rs-pipe .line { stroke-dasharray: 700; stroke-dashoffset: 700; }
.rs-pipe.in .line { animation: pipe-draw 1.4s var(--ease) forwards; }
@keyframes pipe-draw { to { stroke-dashoffset: 0; } }
.rs-pipe .dot { opacity: 0; offset-path: path("M20 44 H680"); }
.rs-pipe.in .dot { animation: pipe-travel 6s linear 1.2s infinite; }
@keyframes pipe-travel { 0% { offset-distance: 0%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

.rs-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; border: 1px solid rgba(255,255,255,.14); }
.rs-fact { padding: 14px 16px; border-right: 1px solid rgba(255,255,255,.14); border-top: 2px solid #305CDE; }
.rs-fact:nth-child(2) { border-top-color: #F0A647; }
.rs-fact:last-child { border-right: 0; }
.rs-fact .v { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.02rem; color: #fff; }
.rs-fact .l { font-family: "Montserrat", sans-serif; font-weight: 400; font-size: .78rem; color: #b8bdc2; margin-top: 3px; line-height: 1.45; }
.rs-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .9rem;
  letter-spacing: .02em; color: #232526; background: #F0A647;
  padding: 13px 22px; border: 1px solid #F0A647;
  transition: background var(--dur), border-color var(--dur);
}
.rs-btn svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.rs-btn:hover { background: #F58F08; border-color: #F58F08; }
.rs-btn:hover svg { transform: translate(2px, -2px); }
.rs-btn:focus-visible { outline: 3px solid #305CDE; outline-offset: 3px; }
.rs-note { font-family: "Montserrat", sans-serif; font-size: .76rem; color: #8d9398; margin-top: 20px; }

/* RoadSense hero card (official v2 composition; hard corners + mustard brackets) */
.rs-card { --frame: #F0A647; position: relative; overflow: hidden; box-shadow: 0 26px 60px rgba(0,0,0,.45); min-height: 460px; border: 1px solid rgba(255,255,255,.12); }
.rs-card > img.rs-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.rs-card .rs-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,23,.05) 30%, rgba(20,22,23,.82) 78%, rgba(20,22,23,.92) 100%); }
.rs-card .rs-overlay::after { content: ""; position: absolute; inset: 0; background: url("/assets/roadsense/rs-contour-continuous.png") center / 1600px auto no-repeat; opacity: .14; mix-blend-mode: screen; }
.rs-card-content { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 2; }
.rs-card-content svg { width: 120px; height: auto; display: block; margin-bottom: 12px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.rs-card-title { font-family: "VarienRegular", "Varien", "Poppins", sans-serif; font-weight: 400; text-transform: uppercase; color: #fff; font-size: 1.45rem; letter-spacing: .02em; line-height: 1.15; }
.rs-card-rule { width: 200px; height: 2px; background: rgba(255,255,255,.85); margin: 10px 0; }
.rs-card-text { font-family: "Montserrat", sans-serif; font-weight: 300; font-size: .95rem; color: #e3e6e9; line-height: 1.55; max-width: 46ch; }

/* Services: platform strip; About: technology strip */
.rs-strip { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.rs-strip-panel { background: #232526; border: 1px solid #4D4D4D; min-height: 320px; display: grid; place-items: center; position: relative; overflow: hidden; --frame: #F0A647; }
.rs-strip-panel::before { content: ""; position: absolute; inset: 0; background: url("/assets/roadsense/rs-contour-continuous.png") center / cover no-repeat; opacity: .12; }
.rs-strip-panel svg { width: min(220px, 60%); height: auto; position: relative; z-index: 2; }
.rs-strip .rs-chip { margin-top: 22px; }
.tech-card .icon-badge, .tech-card .iso { width: 56px; height: 56px; margin-bottom: 18px; }
.tech-card .iso img { width: 100%; height: 100%; object-fit: contain; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual img { height: 360px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split, .contact-grid, .rs-strip { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rfq-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  [data-grid="process"] { grid-template-columns: 1fr 1fr !important; }
  .rs-grid { grid-template-columns: 1fr; }
  .rs-card { min-height: 400px; }
  .cta { grid-template-columns: 1fr; }
  .cta .hero-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .utility { display: none; }
  .nav-cta .phone { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; box-shadow: 0 18px 30px rgba(15,33,71,.12);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 350ms var(--ease), visibility 0s 350ms;
  }
  .header.menu-open .nav-links { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 350ms var(--ease), visibility 0s; }
  .nav-links li { opacity: 0; transform: translateY(-6px); transition: opacity var(--dur), transform var(--dur) var(--ease); transition-delay: 0s; }
  .header.menu-open .nav-links li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 40ms + 80ms); }
  .nav-links a { display: block; padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a.active { border-left: 3px solid var(--red); padding-left: 12px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual .float-card { position: static; margin-top: 12px; min-width: 0; }
  .rs-facts { grid-template-columns: 1fr; }
  .rs-fact { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .page-hero .ph-top { flex-direction: column; gap: 6px; }
}
@media (max-width: 600px) {
  [data-grid="process"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  .nav-cta .btn { display: none; }
  .brand img { height: 38px; }
  .hero-actions .btn, .cta .btn { width: 100%; justify-content: center; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; clip-path: none; }
  .hero h1 .hl { text-decoration-color: var(--yellow); }
  [data-grid="process"]::before { transform: none; }
  .rs-pipe .line { stroke-dashoffset: 0; }
  .rs-pipe .dot { display: none; }
  .confirm-ic svg { stroke-dashoffset: 0; }
  .nav-links li { opacity: 1; transform: none; }
}

/* ---------- Home showreel band (partials/showreel.ejs) ----------
   Editorial header, a clean poster with the play control in its corner, and a slim chapter
   timeline that fills in as the film plays. Hard corners, Saira + IBM Plex, dark navy ground. */
.reel-band {
  position: relative; color: var(--on-dark);
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0b1730 100%);
  padding: clamp(64px, 9vw, 112px) 0 clamp(44px, 6vw, 72px);
}
.reel-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.reel-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; }
.reel-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); flex: none; }
.reel-title { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.02; }
.reel-lead { color: var(--on-dark-muted); font-size: 1.06rem; line-height: 1.6; max-width: 52ch; }
.reel-std { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 16px; font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.reel-std span { color: var(--on-dark-muted); }
.reel-std b { font-weight: 500; color: #fff; }
.reel-std b + b::before { content: "·"; color: rgba(255,255,255,.35); margin-right: 14px; }

.reel-player { margin-top: clamp(32px, 4.5vw, 52px); }
.reel-frame { --frame: rgba(255,255,255,.9); position: relative; background: #05080f; aspect-ratio: 16 / 9; }
.reel-frame video { display: block; width: 100%; height: 100%; background: #05080f; }
.reel-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,8,15,0) 52%, rgba(5,8,15,.82) 100%); transition: opacity var(--dur); }
.reel-play {
  position: absolute; left: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 36px); z-index: 2;
  display: inline-flex; align-items: center; gap: 16px; padding: 0; cursor: pointer;
  background: none; border: 0; color: #fff; text-align: left;
}
.reel-play-ico { display: grid; place-items: center; width: clamp(52px, 5vw, 68px); height: clamp(52px, 5vw, 68px); background: var(--red); transition: background var(--dur), transform var(--dur) var(--ease); }
.reel-play-ico svg { width: 42%; height: 42%; margin-left: 3px; }
.reel-play:hover .reel-play-ico { background: var(--red-dark); transform: scale(1.04); }
.reel-play:focus-visible { outline: 3px solid var(--yellow); outline-offset: 6px; }
.reel-play-txt { display: grid; gap: 4px; }
.reel-play-txt b { font-family: var(--head); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: .01em; }
.reel-play-txt small { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.reel-frame.is-live .reel-play, .reel-frame.is-live .reel-shade { opacity: 0; pointer-events: none; visibility: hidden; }

/* chapter timeline */
.reel-line { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.reel-seg { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 10px; width: 100%; padding: 0 16px 0 0; background: none; border: 0; cursor: pointer; color: var(--on-dark-muted); text-align: left; }
.reel-bar { grid-column: 1 / -1; display: block; height: 3px; margin: 0 2px 12px 0; background: rgba(255,255,255,.22); overflow: hidden; transition: background var(--dur); }
.reel-bar i { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.reel-seg-no { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; }
.reel-seg-name { font-family: var(--head); font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-seg-time { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.reel-seg:hover .reel-bar, .reel-seg:focus-visible .reel-bar { background: rgba(255,255,255,.34); }
.reel-seg:focus-visible { outline: 3px solid var(--yellow); outline-offset: 6px; }
.reel-seg[aria-current="true"] .reel-seg-no, .reel-seg[aria-current="true"] .reel-seg-time { color: #fff; }

.reel-notes { margin-top: 22px; }
.reel-notes summary { cursor: pointer; width: max-content; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); list-style: none; }
.reel-notes summary::-webkit-details-marker { display: none; }
.reel-notes summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--red); font-weight: 700; }
.reel-notes[open] summary::before { content: "−"; }
.reel-notes summary:hover { color: #fff; }
.reel-notes summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.reel-notes ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 36px; }
.reel-notes li { color: var(--on-dark-muted); font-size: .94rem; line-height: 1.55; }
.reel-notes li b { display: block; color: #fff; font-family: var(--head); font-weight: 700; margin-bottom: 4px; }
.reel-fine { margin-top: 18px; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--on-dark-muted); }

@media (max-width: 980px) {
  .reel-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .reel-line { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .reel-notes ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .reel-line { grid-template-columns: repeat(2, 1fr); }
  .reel-notes ol { grid-template-columns: 1fr; }
  .reel-play-txt small { display: none; }
  .reel-std b + b::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { .reel-play-ico { transition: none; } }
