/* Hahn Automotive — About film (STAGING).
   Tokens match the live site: ink #0a0a0a, brand red #cc1111, display Bebas Neue, body Montserrat.
   Contrast note: brand #cc1111 on black is 3.6:1 — fine for large display type and graphics, short of AA
   for small text, so every eyebrow / caption / label uses --red-lt (#ff5a5a, 6.9:1 on ink) instead. */
.afilm{--ink:#0a0a0a;--pan:#1a1a1a;--red:#cc1111;--red-lt:#ff5a5a;--hdr:0px;--stage-h:100vh;
  position:relative;background:var(--ink);color:#fff;font-family:'Montserrat',system-ui,sans-serif}
.afilm__track{position:relative;height:calc(var(--stage-h) * 12.3)}
.afilm__stage{position:sticky;top:var(--hdr);height:calc(var(--stage-h) - var(--hdr));overflow:hidden;isolation:isolate;background:var(--ink)}
.afilm__poster,.afilm__cv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.afilm__poster{z-index:0}.afilm__cv{z-index:1}
/* The copy sits over live footage. Measured against the real frames: a scrim heavy enough to carry
   SMALL RED type crushes the picture, so red is reserved for display type (AA large, 3:1) and the
   scrim is shaped as a bottom-left ellipse — it holds the copy zone dark and keeps 96% of the
   footage's brightness in the upper right, where the picture actually reads. */
.afilm__vig{position:absolute;inset:0;z-index:2;pointer-events:none;
  background:radial-gradient(118% 108% at 8% 86%,rgba(10,10,10,.95) 0%,rgba(10,10,10,.9) 26%,rgba(10,10,10,.55) 46%,rgba(10,10,10,.12) 64%,rgba(10,10,10,0) 78%),
             linear-gradient(0deg,rgba(10,10,10,.55) 0%,rgba(10,10,10,0) 38%)}
.afilm__flash{position:absolute;inset:0;z-index:4;background:#fff;opacity:0;pointer-events:none}
.afilm__fade{position:absolute;inset:0;z-index:5;background:var(--ink);opacity:0;pointer-events:none}
.afilm__load{position:absolute;left:0;right:0;top:0;height:2px;z-index:9;background:var(--red);transform-origin:0 50%;transform:scaleX(0);transition:transform .3s,opacity .6s}

/* ---------- chapters ---------- */
/* bottom padding clears the site's fixed Call/Schedule widget (bottom-left, 210x110 incl. offset) */
.achap{position:absolute;inset:0;z-index:6;display:flex;align-items:flex-end;
  padding:0 clamp(20px,6vw,96px) clamp(124px,16vh,190px) clamp(64px,10vw,170px);pointer-events:none}
.achap__copy{max-width:min(620px,100%);opacity:0;transform:translateY(24px);
  transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.achap.on .achap__copy{opacity:1;transform:none;pointer-events:auto}
.achap__copy>*+*{margin-top:1rem}
.achap__eyebrow{margin:0;color:#fff;font-size:.75rem;font-weight:700;letter-spacing:.24em;text-transform:uppercase}
.achap__eyebrow::before{content:"";display:inline-block;width:26px;height:2px;margin-right:.75rem;vertical-align:.26em;background:var(--red-lt)}
.achap__title{margin:0;font-family:'Bebas Neue',Impact,sans-serif;font-weight:400;
  font-size:clamp(2.4rem,5.6vw,5rem);line-height:.92;letter-spacing:.02em;color:#fff;text-wrap:balance}
.achap__title span{color:var(--red-lt)}
.achap__title--sm{font-size:clamp(1.5rem,2.6vw,2.2rem);line-height:1.08}
.achap__text{margin:0;color:rgba(255,255,255,.84);font-size:clamp(1rem,1.3vw,1.14rem);line-height:1.7;max-width:34em}
.achap__tag{display:inline-block;margin:0;padding:.45rem .8rem;border:1px solid rgba(255,90,90,.65);
  background:rgba(204,17,17,.3);color:#fff;font-size:.7rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase}

/* 02 — the owner's card, floating at depth */
.achap--owner{align-items:flex-end}
.owner{position:absolute;right:clamp(20px,7vw,120px);top:50%;margin:0;width:clamp(230px,25vw,360px);
  opacity:0;transform:translate3d(0,calc(-50% + var(--dy,0px)),0) rotate(-1.2deg);
  transition:opacity .9s;background:var(--pan);border:1px solid rgba(255,255,255,.14);
  box-shadow:0 40px 80px -24px rgba(0,0,0,.85);will-change:transform}
.achap.on .owner{opacity:1}
.owner img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;object-position:30% 50%}
.owner figcaption{padding:.7rem .9rem .85rem;border-top:3px solid var(--red)}
.owner b{display:block;font-size:.95rem;line-height:1.2;color:#fff}
.owner span{display:block;margin-top:.2rem;font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:#fff}

/* 03 — Maggie: two plates at different depths, drifting against the scroll */
.maggie{position:absolute;inset:0;perspective:1000px;pointer-events:none}
.maggie img{position:absolute;display:block;object-fit:cover;opacity:0;transition:opacity 1s;
  border:1px solid rgba(255,255,255,.14);box-shadow:0 40px 90px -30px rgba(0,0,0,.9);will-change:transform}
.achap.on .maggie img{opacity:1}
.maggie__a{right:8vw;top:12vh;width:clamp(150px,18vw,260px);aspect-ratio:4/5;
  transform:translate3d(0,var(--dyA,0px),-120px) rotate(1.6deg)}
.maggie__b{right:27vw;top:44vh;width:clamp(120px,13vw,190px);aspect-ratio:1/1;
  transform:translate3d(0,var(--dyB,0px),-320px) rotate(-2.4deg);filter:brightness(.78)}

/* 04 — the six difference cards on a cylinder (positions set per frame by JS) */
.ring{position:absolute;left:68%;top:46%;width:0;height:0;perspective:1500px;perspective-origin:50% 40%;opacity:0;transition:opacity .8s}
.achap.on .ring{opacity:1}
.ring__card{position:absolute;left:0;top:0;width:clamp(158px,16vw,232px);margin:0;padding:1.4rem 1.2rem 1.5rem;
  background:var(--pan);border:1px solid rgba(255,255,255,.12);border-top:3px solid var(--red);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.8);transform-style:preserve-3d;will-change:transform,opacity}
.ring__card b{display:block;font-size:.92rem;line-height:1.3;color:#fff;font-weight:700}
.ring__card span{display:block;margin-top:.5rem;font-size:.74rem;line-height:1.6;color:rgba(255,255,255,.62)}
.achap--ring .achap__copy{position:relative;z-index:2}

/* 05 — the twelve services, each at its own depth */
.svc{position:absolute;inset:0;perspective:900px;pointer-events:none}
.svc__i{position:absolute;left:58%;top:44%;white-space:nowrap;padding:.5rem .9rem;
  border:1px solid rgba(255,255,255,.22);background:rgba(26,26,26,.6);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  color:#fff;font-size:clamp(.72rem,.95vw,.88rem);font-weight:600;letter-spacing:.04em;opacity:0;
  transform:translate3d(var(--x),calc(var(--y) + var(--dy,0px)),var(--z));transition:opacity .9s;will-change:transform}
.achap.on .svc__i{opacity:1}

/* 07-09 — the three promises: single display lines, centred low */
.achap--beat .achap__title--beat{font-size:clamp(2.8rem,8vw,7rem);line-height:.9;color:var(--red-lt);
  text-shadow:0 0 50px rgba(0,0,0,.8)}
/* over the bright combustion frame red loses contrast, so that beat is white */
.achap--beat-lt .achap__title--beat{color:#fff;text-shadow:0 4px 40px rgba(0,0,0,.9)}
.achap--beat-lt .achap__text--beat{color:#fff;font-weight:600;text-shadow:0 2px 24px rgba(0,0,0,.9)}

/* 10 — the record */
.facts__n{margin:0;font-family:'Bebas Neue',Impact,sans-serif;font-size:clamp(4.5rem,13vw,10rem);line-height:.82;
  letter-spacing:.01em;color:#fff;font-variant-numeric:tabular-nums;text-shadow:0 0 60px rgba(204,17,17,.6)}
.facts__n em{display:inline-block;margin-left:.3em;font-family:'Montserrat',sans-serif;font-style:normal;
  font-size:.11em;font-weight:700;letter-spacing:.3em;text-transform:uppercase;color:#fff;vertical-align:.9em}
.facts{display:flex;flex-wrap:wrap;gap:1.6rem 2.4rem;margin:0;padding:0;list-style:none}
.facts li{opacity:0;transform:translateY(14px);transition:opacity .7s,transform .7s}
.achap.on .facts li{opacity:1;transform:none}
.achap.on .facts li:nth-child(2){transition-delay:.12s}
.achap.on .facts li:nth-child(3){transition-delay:.24s}
.facts b{display:block;font-family:'Bebas Neue',Impact,sans-serif;font-size:1.9rem;line-height:1;color:var(--red-lt);letter-spacing:.03em}
.facts span{display:block;margin-top:.35rem;font-size:.72rem;line-height:1.5;color:rgba(255,255,255,.7)}

/* 11 — end card, centred, handing off to the dark Hahn Difference section */
.achap--end{align-items:center;justify-content:center;text-align:center;padding:0 20px}
.achap--end .achap__copy{display:flex;flex-direction:column;align-items:center;max-width:none}
.achap__logo{width:clamp(180px,22vw,300px);height:auto}

/* ---------- HUD + cue ---------- */
.afilm__hud{position:absolute;z-index:8;left:clamp(14px,2.6vw,40px);top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:14px}
.afilm__hud button{all:unset;cursor:pointer;display:flex;align-items:center;gap:.7rem;padding:3px 0;
  color:rgba(255,255,255,.58);font-size:.62rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase}
.afilm__hud i{display:block;width:16px;height:1px;background:currentColor;transition:width .4s,background .4s,box-shadow .4s}
.afilm__hud span{opacity:0;transform:translateX(-6px);transition:.4s;white-space:nowrap}
.afilm__hud:hover span,.afilm__hud button:focus-visible span{opacity:1;transform:none}
.afilm__hud button.cur{color:#fff}
.afilm__hud button.cur i{width:34px;background:var(--red-lt);box-shadow:0 0 10px var(--red)}
.afilm__hud button:focus-visible{outline:2px solid var(--red-lt);outline-offset:4px}
.afilm__cue{position:absolute;z-index:8;left:50%;bottom:18px;transform:translateX(-50%);display:flex;flex-direction:column;
  align-items:center;gap:8px;color:rgba(255,255,255,.68);font-size:.62rem;font-weight:700;letter-spacing:.3em;text-transform:uppercase;transition:opacity .6s}
.afilm__cue i{width:1px;height:30px;background:linear-gradient(180deg,var(--red-lt),transparent);animation:afcue 2s ease-in-out infinite}
.afilm__cue.gone{opacity:0}
@keyframes afcue{0%,100%{transform:scaleY(.4);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}}
.stagetag{position:fixed;right:10px;bottom:10px;z-index:1200;background:#1a1a1a;border:1px solid rgba(255,90,90,.6);
  color:var(--red-lt);font:700 .62rem/1 'Montserrat',system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;padding:.45rem .65rem;pointer-events:none}
.afilm .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- mobile ---------- */
@media (max-width:820px){
  .afilm__track{height:calc(var(--stage-h) * 9.6)}
  .achap{padding:0 20px clamp(104px,15vh,150px)}
  .afilm__vig{background:radial-gradient(150% 86% at 50% 108%,rgba(10,10,10,.96) 0%,rgba(10,10,10,.88) 38%,rgba(10,10,10,.45) 62%,rgba(10,10,10,0) 84%),
             linear-gradient(0deg,rgba(10,10,10,.6) 0%,rgba(10,10,10,0) 34%)}
  .afilm__hud{display:none}
  .achap__text{font-size:.97rem}
  .owner{right:16px;top:24%;width:176px;transform:translate3d(0,var(--dy,0px),0) rotate(-1.2deg)}
  .owner figcaption{padding:.5rem .6rem .6rem}
  .owner b{font-size:.78rem}.owner span{font-size:.58rem}
  .maggie__a{right:14px;top:9vh;width:138px}
  .maggie__b{right:42vw;top:30vh;width:104px}
  .ring{left:50%;top:28%}
  .ring__card{width:150px;padding:1rem .9rem 1.1rem}
  .ring__card b{font-size:.78rem}.ring__card span{font-size:.66rem;margin-top:.35rem}
  .svc__i{left:50%;top:26%;font-size:.7rem;padding:.4rem .7rem}
  .facts{gap:1rem 1.4rem}
  .facts b{font-size:1.5rem}.facts span{font-size:.66rem}
}

/* ---------- reduced motion / save-data: the film becomes a calm stack of stills ---------- */
.afilm.static .afilm__track{height:auto}
.afilm.static .afilm__stage{position:relative;top:0;height:auto;overflow:visible}
.afilm.static .afilm__poster,.afilm.static .afilm__cv,.afilm.static .afilm__fade,.afilm.static .afilm__flash,
.afilm.static .afilm__load,.afilm.static .afilm__hud,.afilm.static .afilm__cue,.afilm.static .afilm__vig,
.afilm.static .maggie,.afilm.static .svc,.afilm.static .owner{display:none}
.afilm.static .ring{position:relative;left:auto;top:auto;width:auto;height:auto;perspective:none;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:2px;margin-bottom:2rem}
.afilm.static .ring__card{position:relative;transform:none!important;opacity:1!important;width:auto;filter:none!important;box-shadow:none}
.afilm.static .achap{position:relative;inset:auto;min-height:72vh;background:var(--still) center/cover no-repeat;padding-top:18vh;display:block}
.afilm.static .achap::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,10,10,.93),rgba(10,10,10,.42) 72%)}
.afilm.static .achap--ring{min-height:0;padding-bottom:4rem}
.afilm.static .achap--end{background:var(--ink);text-align:center}
.afilm.static .achap--end::before{display:none}
.afilm.static .achap__copy{position:relative;opacity:1;transform:none;max-width:min(620px,100%);margin:0 auto}
.afilm.static .facts li{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .achap__copy,.owner,.maggie img,.svc__i,.facts li{transition:none}
  .afilm__cue i{animation:none}
}
