/* On-Call Auto RVA — transmissions page. Site brand around it (near-black, silver, Saira Condensed italic
   headings, Barlow text); the 3D story itself stays an ink drawing on paper, with a mono for part callouts. */
:root {
  --paper: #dad5d0;
  --paper-2: #e4e0db;
  --light: #f6f4f2;
  --ink: #1b1a19;
  --mute-p: #6b6661;   /* muted text on paper */
  --rule-p: #b9b3ac;
  --red: #e0453c;
  /* site brand (oncallautorva.com) */
  --bg: #0b0d10;
  --panel: #14181d;
  --panel-2: #10141a;
  --line: #262b33;
  --line-2: #333b45;
  --text: #f4f6f8;
  --mute: #9ba5b2;
  --mute-2: #7c8794;
  --silver: #c9d1da;
  --btn-red: #c02c24;
  --display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Barlow', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --header-h: 84px;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 28px;
}
@media (max-width: 820px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { font-family: var(--sans); color: var(--ink); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-style: italic; letter-spacing: -0.035em; line-height: 0.95; margin: 0; text-wrap: balance; }
h3 { font-weight: 700; font-style: normal; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
.mono { font-family: var(--mono); }
.red { color: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,69,60,.55); } 70% { box-shadow: 0 0 0 11px rgba(224,69,60,0); } 100% { box-shadow: 0 0 0 0 rgba(224,69,60,0); } }

/* ---------- Header: the site's header, floating over the top of the story ---------- */
#site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; height: var(--header-h); display: flex; align-items: center; gap: 14px 22px; padding: 0 22px; background: rgba(11,13,16,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); color: var(--text); font-family: var(--sans); }
.brand { display: flex; align-items: center; }
.brand img { height: 64px; width: auto; }
#site-header nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-left: auto; font-size: 13.5px; }
#site-header nav a { color: var(--mute); min-height: 44px; display: inline-flex; align-items: center; transition: color .2s ease; }
#site-header nav a:hover, #site-header nav a[aria-current] { color: var(--text); }
.call { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--silver); color: var(--bg); font-size: 14px; font-weight: 700; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s ease; }
.call:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,209,218,.25); }
.call .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
.nav-toggle, .burger { display: none; }
@media (max-width: 1100px) {
  /* Fold the nav into a menu (pure-CSS checkbox toggle, as on the other site pages). */
  .burger { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 42px; padding: 0 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); background: rgba(20,24,29,.92); border: 1px solid var(--line-2); border-radius: 12px; user-select: none; }
  #site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: flex-start; padding: 8px 22px 14px; background: rgba(11,13,16,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  #site-header .nav-toggle:checked ~ nav { display: flex; }
}
@media (max-width: 820px) {
  :root { --header-h: 62px; }
  #site-header { gap: 8px; padding: 0 var(--gutter); }
  .brand img { height: 42px; }
  .call { padding: 0 12px; font-size: 12.5px; min-height: 42px; }
}

/* ---------- Story ---------- */
/* One paper background from the top of the story to the footer: the model changes, the page doesn't. */
#story { position: relative; height: 600vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--ink); }
#stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.scrim { display: none; }

.caption { position: absolute; left: var(--gutter); top: calc(var(--header-h) + 40px); width: min(500px, 38vw); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s; pointer-events: none; z-index: 2; }
.caption.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s; }
.caption[data-stage="1"] { width: min(620px, 46vw); }
.caption h1 { font-size: clamp(44px, 5.4vw, 86px); }
.caption h2 { font-size: clamp(38px, 4.3vw, 68px); }
.caption p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; font-weight: 500; margin: 18px 0 0; max-width: 36ch; color: var(--mute-p); }

.story-ctas { position: absolute; left: var(--gutter); bottom: 28px; display: flex; gap: 10px; z-index: 3; }
.story-ctas .btn { flex: 0 0 auto; min-height: 48px; }
.story-ctas .btn.ghost { color: var(--bg); background: var(--silver); }

/* Scroll ruler (bottom right) */
.ruler { position: absolute; right: var(--gutter); bottom: 28px; width: min(420px, 34vw); height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 6px; background: rgba(246, 244, 242, .85); border: 1px solid var(--rule-p); z-index: 3; }
.ruler-name { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute-p); white-space: nowrap; min-width: 92px; }
.ruler-track { position: relative; flex: 1; height: 100%; cursor: pointer; outline-offset: 2px; }
.ruler-track i { position: absolute; top: 50%; width: 1px; height: 6px; margin-top: -3px; background: #b3ada6; }
.ruler-track i.major { height: 10px; margin-top: -5px; background: #8f8a85; }
.ruler-track i.stage { height: 14px; margin-top: -7px; background: #5c5853; }
.ruler-track .playhead { position: absolute; top: 8px; bottom: 8px; width: 2px; margin-left: -1px; background: var(--red); border-radius: 1px; }
@media (max-width: 820px) {
  #story { height: 800vh; } /* phones: slower pacing through the stages */
  /* Phone: progress under the header, model in the middle, a short caption and the buttons at the bottom. */
  .ruler { left: var(--gutter); right: var(--gutter); width: auto; top: calc(var(--header-h) + 8px); bottom: auto; height: 30px; padding: 0 10px; }
  .ruler-name { min-width: 76px; font-size: 10px; }
  .scrim { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(218, 213, 208, 0), var(--paper) 45%); }
  .caption, .caption[data-stage="1"] { top: auto; bottom: 76px; right: var(--gutter); width: auto; }
  .caption h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .caption h2 { font-size: clamp(27px, 7.4vw, 34px); }
  .caption p { font-size: 14px; line-height: 1.45; margin-top: 8px; max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .story-ctas { right: var(--gutter); bottom: 14px; }
  .story-ctas .btn { flex: 1 1 0; min-height: 48px; padding: 0 10px; font-size: 14px; }
}

/* Leader-line labels */
#label-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }
#label-layer.on { opacity: 1; }
#label-layer.on .atsg-label { pointer-events: auto; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.leaders path { fill: none; stroke: rgba(27,26,25,.5); stroke-width: .8; vector-effect: non-scaling-stroke; }
.leaders path.hot { stroke: var(--red); stroke-width: 1.2; }
.atsg-label { position: absolute; left: 0; top: 0; display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap; font: 500 11px/18px var(--mono); letter-spacing: .02em; text-transform: lowercase; color: var(--ink); background: none; border: 0; padding: 0 2px; cursor: pointer; pointer-events: none; }
.atsg-label[hidden] { display: none; } /* phones show only the core labels */
.atsg-label b { font-weight: 600; color: var(--mute-p); text-transform: uppercase; }
.atsg-label.hot, .atsg-label:hover, .atsg-label:focus-visible { color: var(--red); outline: none; }
.atsg-label.hot b { color: var(--red); }
.atsg-label { background: color-mix(in srgb, var(--paper) 82%, transparent); border-radius: 3px; } /* labels sit beside the parts, sometimes over a leader */
@media (max-width: 820px) { .atsg-label { font-size: 10px; } }

/* ---------- Static fallback ---------- */
#fallback { display: none; padding: calc(var(--header-h) + 40px) max(var(--gutter), calc((100% - 1220px) / 2)) 40px; background: var(--paper); color: var(--ink); }
.fallback-title { font-size: clamp(40px, 5.4vw, 68px); margin-bottom: 12px; }
.fallback-note { color: var(--mute-p); font-weight: 600; margin: 0 0 28px; max-width: 60ch; }
#fallback figure { margin: 0 0 32px; }
#fallback img { border-radius: 8px; border: 1px solid var(--rule-p); width: 100%; background: var(--paper); }
#fallback figcaption { margin-top: 10px; font-weight: 600; }
#fallback figcaption .mono { color: var(--red); margin-right: 8px; font-size: 12px; }
body.static #story { display: none; }
body.static #fallback { display: block; }

/* ---------- Sections below the story: the site's dark theme ---------- */
.dark { background: var(--bg); color: var(--text); font-family: var(--sans); }
.section { max-width: 1220px; margin: 0 auto; padding: 96px 22px 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 34px; max-width: 760px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 60px); }
.section-head p { font-size: 15.5px; line-height: 1.6; color: var(--mute); margin: 0; }
.kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--silver); }
.kicker::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: 1px; }
.pill { display: inline-flex; align-items: center; justify-self: start; min-height: 34px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(20,24,29,.72); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
#failure-cards, .cards.services, .cards.units { grid-template-columns: 1fr; }
@media (min-width: 640px) { #failure-cards, .cards.services, .cards.units { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { #failure-cards, .cards.services, .cards.units { grid-template-columns: repeat(4, 1fr); } }
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s ease, background .25s ease; }
.card:hover { border-color: var(--line-2); background: #1c222a; }
.card h3 { font-size: 24px; }
.card p { margin: 0; color: var(--mute); line-height: 1.65; font-size: 14.5px; flex: 1; }
.card .num, .card .tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--silver); }
.card .symptom { font-size: 13px; font-weight: 600; color: var(--red); }
.card .price { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--silver); }
.show-part { align-self: flex-start; margin-top: 4px; font: 600 13px var(--sans); color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 16px; min-height: 42px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.show-part:hover { border-color: var(--silver); background: rgba(201,209,218,.08); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; }
.checklist li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid #20252d; color: var(--mute); line-height: 1.55; }
.checklist li .num { color: var(--red); font-size: 11px; letter-spacing: .14em; padding-top: 4px; }
.checklist li strong { color: var(--text); font-weight: 600; margin-right: 4px; }

.process { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(20,24,29,.72); }
.process li { border-right: 1px solid var(--line); padding: 16px 18px; font-weight: 600; font-size: 15px; }
.process li:last-child { border-right: 0; }
.process li .num { display: block; font-size: 11px; letter-spacing: .2em; color: var(--silver); margin-bottom: 6px; }
@media (max-width: 820px) { .process { grid-template-columns: 1fr 1fr; } .process li { border-bottom: 1px solid var(--line); } }

.faq { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; max-width: 880px; }
.faq details { border-bottom: 1px solid #20252d; background: var(--panel); }
.faq details:nth-child(even) { background: var(--panel-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 24px; font-weight: 600; font-size: 16.5px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 24px; top: 15px; font: 600 20px var(--sans); color: var(--silver); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0; padding: 0 24px 20px; color: var(--mute); line-height: 1.65; max-width: 72ch; }

#cta { padding-bottom: 96px; }
.review { margin: 0 0 28px; padding: 0 0 0 20px; border-left: 2px solid var(--red); }
.review p { font-family: var(--display); font-style: italic; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.review cite { display: block; margin-top: 12px; font-style: normal; color: var(--mute-2); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.cta-box { border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); background: rgba(20,24,29,.72); }
.cta-box h2 { font-size: clamp(32px, 4.2vw, 50px); }
.cta-box p { color: var(--mute); font-size: 15.5px; line-height: 1.6; margin: 12px 0 24px; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.cta-actions .btn { flex: 0 1 auto; }

/* Buttons, as on the site: red primary, silver secondary. */
.btn { flex: 1 1 220px; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 14px; font-family: var(--sans); font-size: 16px; font-weight: 700; transition: transform .22s ease; }
.btn:hover { transform: translateY(-3px); }
.btn.primary { background: var(--btn-red); color: #fff; }
.btn.ghost { background: var(--silver); color: var(--bg); }

#site-footer { border-top: 1px solid var(--line); padding: 54px 22px 40px; color: var(--mute-2); font-size: 14px; }
.foot-grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 34px; }
.foot-grid > div { display: grid; gap: 6px; align-content: start; }
.foot-grid img { height: 96px; width: auto; }
.foot-grid p { font-size: 13.5px; line-height: 1.65; margin: 4px 0 0; max-width: 34ch; }
.foot-grid a { color: var(--mute); min-height: 36px; display: inline-flex; align-items: center; }
.foot-grid a:hover, .foot-grid a[aria-current], .foot-grid .foot-strong { color: var(--text); }
.foot-head { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #5c6672; margin-bottom: 8px; }
.foot-base { max-width: 1220px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #20252d; font-size: 12px; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } .call .dot { animation: none; } }
