.scroll-chapters {
  --site-anchor-offset:calc(var(--experience-header-height) + 20px);
  --chapter-nav-height:50px;
  --chapter-nav-bottom:calc(var(--experience-header-height) + var(--chapter-nav-height));
}
.scroll-chapters > .education-nav {
  grid-area:1 / 1;
  position:sticky;
  top:var(--experience-header-height);
  align-self:start;
  z-index:20;
  display:flex;
  align-items:stretch;
  justify-content:safe center;
  gap:clamp(10px,.95vw,24px);
  width:100%;
  min-width:0;
  height:var(--chapter-nav-height);
  padding-inline:14px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  background:linear-gradient(180deg,#f8fbff,#e8f2fe);
  border-bottom:1px solid #a1bde3;
  box-shadow:0 4px 14px #243f7024;
}
.education-nav a {
  position:relative;
  display:flex;
  align-items:center;
  flex:none;
  gap:.35em;
  white-space:nowrap;
  color:#1a355e;
  font:800 clamp(.75rem,.88vw,.875rem)/1 'DM Sans',Arial,sans-serif;
  letter-spacing:.028em;
  text-transform:uppercase;
}
.experience-shortcuts {
  display:flex;
  flex:none;
  align-items:stretch;
  gap:clamp(10px,1.15vw,20px);
  padding-right:clamp(10px,.95vw,24px);
  border-right:1px solid #aac3e4;
}
.education-nav .experience-shortcuts a {
  color:#1a51a5;
  font-weight:900;
}
.education-nav .chapter-link span {
  color:#1d5bb6;
  font-variant-numeric:tabular-nums;
}
.education-nav a:is(:hover,[aria-current="step"]) {
  color:#104eae;
  background:linear-gradient(180deg,transparent,#ccdef9);
}
.education-nav a[aria-current="step"]::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:3px;
  background:linear-gradient(90deg,#164fbc,#3888e8);
}
.education-nav a:focus-visible {
  outline:2px solid #1769ed;
  outline-offset:-2px;
}
.install-steps button {
  padding:10px 14px;
  border:1px solid #6482a365;
  border-radius:8px;
  color:#d7e8fa;
  background:#16283a;
}
.install-steps button[aria-pressed="true"] { background:#244b76; border-color:#89bdff; }
.story-education { background:#0d1721; }
.story-education:nth-of-type(even) { background:#102132; }
.story-education details, .story-source { border-top:1px solid #6380a34d; padding:16px 0; }
.story-education summary, .story-source summary { cursor:pointer; color:#c9e3ff; font-weight:700; }
.story-source > div, .install-panel { padding:16px clamp(12px,3vw,32px); margin-top:14px; border:1px solid #6380a34d; border-radius:12px; background:#09131e; }
.story-source h2 { font-size:clamp(22px,3vw,36px); }
.story-source p, .story-education p { color:#c3d0df; }
.story-source a { color:#a9d3ff; text-decoration:underline; }
.story-source .learning-card { display:block; padding-block:8px; }
.story-source .table-scroll { overflow-x:auto; }
.story-source th, .story-source td { padding:10px; border-bottom:1px solid #6380a34d; text-align:left; }
.finish-sample-visual { margin-top:18px; max-width:550px; height:clamp(70px,13vw,130px); border:1px solid #829ebd; border-radius:18px 40px 12px 24px; background:linear-gradient(115deg,#30475b 15%,#93b1c8 44%,#e7f5ff 47%,#556e83 51%,#273a4b 80%); }
.finish-sample-visual[data-look="matte"] { background:linear-gradient(115deg,#394756,#8998a7 45%,#4f5d6b 78%); }
.finish-sample-visual[data-look="color"] { background:linear-gradient(115deg,#15294c 15%,#3671ba 43%,#a2cfff 47%,#29518b 52%,#102141 80%); }
.install-steps, .care-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); gap:10px; }
.install-steps button { text-align:left; }
.install-steps span { display:block; color:#a9d3ff; }
.install-panel > span { display:none; }
[hidden] { display:none !important; }
.thickness-lab { max-width:550px; padding:16px 0; }
.thickness-lab label, .thickness-lab input { display:block; width:100%; }
.thickness-lab output { display:block; color:#a9d3ff; font-weight:bold; margin:4px 0; }
.thickness-stack { margin-top:16px; }
.thickness-stack > div { display:grid; place-items:center; min-height:26px; background:#37485a; border:1px solid #829ebd; }
#film-cross-section { height:32px; background:#285f90; }

/* Keep the opening reveal brief and put the full lessons in the reading flow. */
.story { height:280vh; }
.story-reading { margin-top:36px; }
.story-reading > h3 { font-size:clamp(22px,3vw,32px); margin:0 0 16px; }
.story-reading > div { background:transparent; border:0; padding:0; }
.story-reading .education-split, .story-reading .finish-comparison, .story-reading .use-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
  gap:18px;
}
.story-reading article { padding:16px; background:#09131e; border:1px solid #6380a34d; border-radius:10px; }
.story-reading .finish-sample { height:64px; border-radius:8px; background:linear-gradient(125deg,#26394d,#d5e9ff 48%,#526980 55%,#182839); }
.story-reading .finish-sample.satin { background:linear-gradient(125deg,#43505c,#8b9bad,#4c5b69); }
.story-reading .finish-sample.color { background:linear-gradient(125deg,#15294c,#5798e8 48%,#234471 55%,#15294c); }
.install-steps a { display:block; padding:12px; border:1px solid #6482a365; border-radius:8px; background:#16283a; }
.install-steps a:hover, .install-panel:target { border-color:#89bdff; background:#172d44; }
.install-panel { scroll-margin-top:90px; }

/* The opening reveal hands off to a visual stage that follows the full lessons. */
.scroll-chapters {
  display:grid;
  grid-template-columns:minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap:clamp(24px,4vw,70px);
  align-items:start;
  padding:40px clamp(20px,5vw,90px);
  background:#0a121a;
}
.chapter-stage { position:sticky; top:100px; z-index:5; min-width:0; }
.chapter-frame { position:relative; overflow:hidden; border:1px solid #48637f; border-radius:14px; background:#101e2c; }
.chapter-frame img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; }
.chapter-caption { display:grid; gap:5px; padding:16px 20px; }
.chapter-caption strong { font-size:clamp(20px,3vw,36px); }
.chapter-caption span { color:#b6cee6; font-size:13px; }
.chapter-frame progress { display:block; width:100%; height:5px; border:0; accent-color:#75baff; }
#chapter-diagram { display:flex; flex-wrap:wrap; gap:6px; padding:12px 16px 0; }
#chapter-diagram span { padding:4px 8px; font-size:11px; color:#d1e9ff; border:1px solid #48637f; border-radius:5px; }
.chapter-lessons { min-width:0; }
.chapter-lessons > section { padding:40px 0; background:transparent; color:#fff; scroll-margin-top:100px; }
.chapter-lessons > section + section { border-top:1px solid #48637f; }
.chapter-lessons .facts-top, .chapter-lessons .coverage-head { display:block; padding-inline:0; }
.chapter-lessons .facts-top p, .chapter-lessons .coverage-head p { color:#c3d0df; }
.chapter-lessons h2 { font-size:clamp(30px,4vw,52px); }
.chapter-lessons .coverage-bottom { padding-inline:0; }
@media(max-width:1000px) {
  .scroll-chapters { grid-template-columns:minmax(0,1fr); gap:0; padding-top:0; }
  .chapter-stage { top:68px; padding:8px 0; background:#0a121a; }
  .chapter-frame { display:grid; grid-template-columns:minmax(90px,28%) minmax(0,1fr); align-items:center; }
  .chapter-frame img { height:100%; aspect-ratio:1; max-height:105px; }
  .chapter-caption { padding:7px 12px; }
  #chapter-diagram { display:none; }
  .chapter-frame progress { grid-column:1/-1; }
  .chapter-lessons > section, .install-panel { scroll-margin-top:225px; }
}

/* Continue the opening’s full-screen scene treatment through every lesson. */
.scroll-chapters {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0;
  padding:0;
  isolation:isolate;
}
.chapter-stage,.chapter-lessons { grid-area:1 / 1; }
.chapter-stage {
  top:0;
  align-self:start;
  height:100svh;
  padding:0;
  z-index:0;
}
.chapter-frame { display:block; height:100%; border:0; border-radius:0; }
.chapter-frame img {
  width:100%; height:100%; max-height:none;
  object-fit:cover; object-position:68% center;
}
.chapter-frame::after {
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,#070a0df7 0%,#070a0de8 33%,#070a0d8c 66%,#070a0d20 100%);
  pointer-events:none;
}
.chapter-caption {
  position:absolute; z-index:1; bottom:32px; right:5%;
  max-width:28%; text-align:right;
}
.chapter-frame progress { position:absolute; z-index:1; bottom:0; }
#chapter-diagram { display:none; }
.chapter-lessons { position:relative; z-index:1; pointer-events:none; }
.chapter-lessons > section {
  pointer-events:auto;
  width:min(67%, 960px);
  margin-inline:5% auto;
  min-height:100svh;
  padding:clamp(100px,15vh,160px) 0 72px;
  border-top-color:#91b6dc45;
  scroll-margin-top:0;
}
.chapter-lessons h2 { font-size:clamp(36px,5vw,72px); letter-spacing:-.035em; }
.chapter-guide-links {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  max-width:39rem;
  margin:16px 0 28px;
}
.chapter-guide-links a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:9px 14px;
  border:1px solid #93b4dd;
  border-left:3px solid #2471cf;
  border-radius:6px;
  background:#f0f6ff;
  color:#153e79;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:.2em;
}
.chapter-guide-links a:hover {
  background:#dbeaff;
}
.chapter-guide-links a:focus-visible {
  outline:2px solid #1769ed;
  outline-offset:2px;
}

.chapter-lessons .facts-top p,.chapter-lessons .coverage-head p { max-width:62ch; }
.chapter-lessons .story-reading article,.chapter-lessons .install-panel { background:#09131edc; }
.chapter-lessons .coverage-visual { border:1px solid #6380a34d; border-radius:12px; }
.chapter-stage { pointer-events:none; }
@media(max-width:700px) {
  .chapter-frame img { object-position:66% center; }
  .chapter-frame::after { background:linear-gradient(90deg,#070a0df2,#070a0dc4); }
  .chapter-caption { display:none; }
  .chapter-lessons > section { width:auto; margin-inline:6%; padding-top:95px; }
}

/* One sticky hero spans the opening and the full educational sequence. */
.scroll-chapters > .stage {
  grid-area:1 / 1;
  align-self:start;
  height:100svh;
  min-height:0;
  z-index:0;
  pointer-events:none;
}
.scroll-chapters .story { height:350svh; }
.scroll-chapters .stage .rail,.scroll-chapters .stage .headline.active { pointer-events:auto; }
.scroll-chapters .stage.learning .rail,.scroll-chapters .stage.learning .scroll { display:none; }
.scroll-chapters .stage.learning .chaptercount { display:none; }
.scroll-chapters .stage.learning .bottomline { bottom:0; left:0; right:0; }
.scroll-chapters .stage .scene { transition:opacity .48s ease; }
.scroll-chapters .stage.reduced .scene { transition:none; }
.lesson-scene::after {
  background:linear-gradient(90deg,#070a0df9 0%,#070a0de8 34%,#070a0da8 66%,#070a0d20 100%);
}
.lesson-scene[data-lesson-scene="layers"] img { object-position:55% 40%; transform-origin:55% 40%; }
.lesson-scene[data-lesson-scene="choose-film"] img { object-position:86% 75%; transform-origin:86% 75%; filter:brightness(.85) saturate(1.22); }
.lesson-scene[data-lesson-scene="coverage"] img { object-position:65% 55%; transform-origin:65% 55%; }
.lesson-scene[data-lesson-scene="installation"] img { object-position:88% 27%; transform-origin:88% 27%; filter:contrast(1.12); }
.lesson-scene[data-lesson-scene="aftercare"] img { object-position:72% 64%; transform-origin:72% 64%; }
@media(max-width:700px) {
  .lesson-scene::after { background:linear-gradient(90deg,#070a0df2,#070a0dbd); }
  .chapter-lessons > section,.install-panel { scroll-margin-top:80px; }
}

.hero-render { position:absolute; inset:0; opacity:0; }
.hero-render canvas { display:block; width:100%; height:100%; }
.live-studio .hero-render { opacity:1; }
.live-studio .scene { visibility:hidden; }
.live-studio .hero-render::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(90deg,#070a0def,#070a0d87 40%,transparent 75%),linear-gradient(0deg,#070a0dbf,transparent 28%);
}
.live-studio.learning .hero-render::after {
  background:linear-gradient(90deg,#070a0df7,#070a0de8 42%,#070a0d73 68%,transparent 90%);
}
@media(max-width:700px) {
  .live-studio .hero-render::after { background:linear-gradient(#070a0de8,transparent 60%,#070a0dbf); }
  .live-studio.learning .hero-render::after { background:#070a0dc9; }
}

.stage:not(.live-studio):not(.studio-unavailable) .scene { visibility:hidden; }

.stage .scene { visibility:hidden; }
.studio-status { position:absolute; top:66%; right:12%; color:#b5c9de; }
.live-studio .studio-status { display:none; }

.stage.lesson-entering .rail,
.stage.lesson-entering .scroll,
.stage.lesson-entering .callout,
.stage.lesson-entering .film-notice,
.stage.lesson-entering .chaptercount { display:none; }

.matte-walkthrough { margin:clamp(32px,7vh,88px) 0; }
.matte-beat {
  box-sizing:border-box; min-height:46svh; max-width:39rem;
  padding:clamp(20px,5vh,60px) 0; border-top:1px solid #6380a34d;
}
.matte-beat h3 { font-size:clamp(24px,4vw,44px); margin:.55em 0 .4em; }
.matte-beat p { max-width:52ch; line-height:1.6; }

.finish-chapter-heading {
  max-width:39rem;
  margin:0 0 clamp(22px,4vh,44px);
  padding:clamp(16px,3vw,30px);
  border-top:3px solid #80b5f4;
  background:#121e2dea;
}
.finish-chapter-heading h3 { font-size:clamp(30px,5vw,54px); line-height:1.1; margin:.28em 0; }
.finish-chapter-heading p { margin:0; max-width:48ch; }
.matte-beat h4 { font-size:clamp(24px,4vw,44px); margin:.55em 0 .4em; }

/* Windshield film is a dedicated chapter between finishes and coverage. */
.windshield-lesson .wpf-walkthrough { margin-top:48px; }
.windshield-lesson .matte-beat { min-height:44svh; }
.windshield-lesson .film-detail { margin-block:12px; padding:18px 22px; background:#101b29e8; border:1px solid #6380a34d; border-radius:10px; }
.windshield-lesson .film-detail summary { cursor:pointer; font-weight:600; line-height:1.5; }
.windshield-lesson .film-detail p { color:#c3d0df; line-height:1.65; }
.windshield-lesson .film-choice-check { margin-top:28px; padding:24px; border-left:2px solid #91bfff; background:#101b29e8; }

/* Interior protection retains the same scroll-driven studio and reading layout. */
.interior-walkthrough { margin-top:50px; }
.interior-beat { box-sizing:border-box; min-height:94svh; max-width:39rem; padding:50px 0; border-top:1px solid #6380a34d; }
.interior-beat[data-interior-group="door"] { min-height:147svh; }
.interior-beat[data-interior-group="console"] { min-height:127svh; }
.interior-beat h3 { font-size:clamp(28px,4vw,48px); line-height:1.1; margin:.5em 0; }
.interior-beat p { max-width:49ch; line-height:1.65; }
.interior-reference .interior-topic { margin:14px 0; padding:20px; background:#101b29ed; border:1px solid #6380a34d; border-radius:10px; }
.interior-reference summary { cursor:pointer; font-size:20px; font-weight:650; line-height:1.4; }
.interior-reference .interior-content { margin-top:22px; }
.interior-reference h4 { font-size:23px; line-height:1.3; margin:30px 0 12px; }
.interior-reference p,.interior-reference li { line-height:1.65; color:#c3d0df; }
.interior-reference ul { padding-left:22px; }
.interior-reference table { width:100%; border-collapse:collapse; font-size:14px; }
.interior-reference th,.interior-reference td { padding:12px; border:1px solid #6380a34d; vertical-align:top; text-align:left; }
.interior-reference .interior-table-wrap { overflow:auto; }
.interior-model-status { padding:12px 16px; background:#152638; border-left:2px solid #8dc5ff; }
@media(max-width:700px) { .interior-reference table { display:block; overflow:auto; } }

/* Learning guides belong to the static section 10, beyond the sticky studio. */
.outro .learning-library { grid-column:1 / -1; margin-top:0; padding-top:0; padding-bottom:48px; border-bottom:1px solid #c8d2df; width:100%; }
.outro .learning-library > h3 { color:#1769ed; font-size:13px; text-transform:uppercase; letter-spacing:.14em; }
.outro .learning-library h2 { font-size:clamp(32px,4vw,54px); letter-spacing:-.035em; }
.outro .learning-library p { max-width:65ch; margin:16px 0; color:#526578; }
.outro .learning-library .learning-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:30px; }
.outro .learning-library .learning-card { display:flex; flex-direction:column; padding:24px; color:#142231; background:#f8fafc; border:1px solid #c8d2df; border-radius:12px; text-decoration:none; }
.outro .learning-library .learning-card h3 { color:#142231; font-size:21px; margin:0; }
.outro .learning-library .learning-card p { font-size:14px; line-height:1.6; }
.outro .learning-library .learning-card span { color:#1769ed; margin-top:auto; font-size:13px; }
.outro .learning-library .learning-card:hover { border-color:#1769ed; background:white; }
.outro .learning-library .learning-card:focus-visible { outline:3px solid #1769ed; outline-offset:3px; }
@media(max-width:1000px) { .outro .learning-library .learning-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) { .outro .learning-library .learning-grid { grid-template-columns:1fr; } }

/* Keep the original beat heights for scroll timing; hold compact copy in view. */
.interior-beat-copy { position:sticky; top:calc(var(--chapter-nav-bottom) + 12px); display:flow-root; }
.interior-beat .interior-beat-copy h3 { margin:12px 0 14px; }
.interior-beat .interior-beat-copy p { margin:0 0 12px; line-height:1.5; }
.interior-beat .interior-beat-copy p:last-child { margin-bottom:0; }
.interior-reference .interior-content { margin-top:14px; }
.interior-reference h4 { margin:20px 0 10px; }
@media(max-height:620px) { .interior-beat-copy { position:static; } }
/* Tighten only the finish-to-windshield chapter handoff; retain animation beats. */
.chapter-lessons > #choose-film{padding-bottom:20px}
.chapter-lessons > #windshield-protection{padding-top:32px}

.chapter-lessons > section[id] {
  scroll-margin-top:calc(var(--chapter-nav-bottom) - var(--site-anchor-offset) - 72px);
}
.chapter-lessons > #layers {
  padding-top:calc(var(--chapter-nav-bottom) + 12px);
  scroll-margin-top:calc(-1 * var(--site-anchor-offset) - 2px);
}
.chapter-lessons > #windshield-protection {
  scroll-margin-top:calc(var(--chapter-nav-bottom) - var(--site-anchor-offset) - 24px);
}
