/* Copyright 2026 Trillax contributors. SPDX-License-Identifier: LGPL-3.0-or-later */
/* One full-viewport environment behind the native scrolling story. */
.journey{--journey-gold:#e1bd6c;position:relative;isolation:isolate;overflow:clip;background:#101312}
.journey:before{display:none}
body:has(.journey)>.header{position:absolute;inset:0 0 auto;background:transparent;color:#fff}
body:has(.journey) .header .entry{background:#e1bd6c;color:#171813}
body:has(.journey) .header .mobile-nav{background:#161917;color:#fff}
.journey-visual{position:sticky;top:0;height:100svh;width:100%;margin-bottom:-100svh;overflow:hidden;pointer-events:none}
.journey-overlay{position:sticky;top:0;height:100svh;margin-bottom:-100svh;pointer-events:none;z-index:4}
.journey .mill-stage{position:absolute;inset:0;width:100%;height:100%;isolation:auto}
.journey .mill-stage canvas{width:100%;height:100%;pointer-events:none;cursor:auto}
.journey .mill-fallback{position:absolute;inset:0;border-radius:0;background:#151a19}
.journey .mill-fallback img{width:100%;height:100%;object-fit:cover;max-width:none}
.journey .mill-stage.is-ready .mill-fallback{display:none}
.journey.is-static .mill-stage .mill-fallback{display:block}
.journey.is-static .mill-stage canvas{visibility:hidden}
.journey-scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,11,10,.96) 0%,rgba(8,11,10,.88) 25%,rgba(8,11,10,.45) 48%,rgba(8,11,10,.03) 72%),linear-gradient(0deg,rgba(8,11,10,.93),transparent 28%,transparent 82%,rgba(8,11,10,.65))} /* taste-skill-ignore: neutral scrims protect readable text over an animated scene */
.journey-layout{position:relative;z-index:2;pointer-events:none}
.journey-intro,.journey-chapter{position:relative;width:44%;max-width:575px;pointer-events:auto;display:flex;flex-direction:column;justify-content:center}
.journey-intro{min-height:100svh;padding:145px 0 80px}
.journey h1{font-size:clamp(52px,6vw,90px)}
.journey .lead{font-size:17px;line-height:1.8;color:#f1f1e9;max-width:41ch}
.journey .actions{gap:16px 24px}.journey .text-button{min-height:44px;text-decoration:none}
.journey-invitation{font-size:15px;line-height:1.8;color:#c9cbbf;margin-top:30px}
.journey-scroll-hint{font-size:13px;color:var(--journey-gold);margin-top:32px;display:flex;gap:22px}
.journey-controls{position:absolute;right:max(48px,calc((100vw - 1376px)/2));top:108px;display:flex;align-items:center;gap:20px;pointer-events:auto}
.journey:not([data-intro="true"]) .journey-controls{top:28px}
.journey .segmented{display:flex;width:auto;flex:none;padding:0;background:transparent;gap:16px;border-radius:0}
.journey .segmented button{flex:none;white-space:nowrap;padding:10px 0;min-height:44px;background:transparent!important;color:#ddd;font-size:13px;border-radius:0;border:0}
.journey .segmented button[aria-pressed="true"]{color:var(--journey-gold);text-decoration:underline;text-underline-offset:8px;text-decoration-thickness:2px}
.journey .segmented button:hover{color:white}
#journey-motion{min-height:44px;white-space:nowrap;color:#efeddf;background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;font-size:12px;padding:8px 0}
#journey-motion:disabled{cursor:default;color:#bbb}
.journey-hud{position:absolute;bottom:30px;right:max(48px,calc((100vw - 1376px)/2));width:43%;max-width:600px;pointer-events:auto;color:#eceee5}
.journey-case{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;color:#b9bcaf}
.journey-skip{font-size:12px;text-decoration:none;padding:10px 0}.journey-skip:hover{text-decoration:underline}
.journey .model-caption{position:static;font-size:18px;color:#f7f0dc;line-height:1.5;margin:5px 0 13px}
.journey-record{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:13px;line-height:1.5}.journey-record strong{font-weight:600}.record-label{color:#c2c6b8}
.journey-record p{width:100%;font-size:13px;color:var(--journey-gold);margin:0}
.journey .stage-tabs{display:flex;gap:24px;margin-top:12px;padding:0;background:transparent;border-radius:0;justify-content:space-between}
.journey .stage-tabs a{display:flex;align-items:center;min-height:44px;color:#c9cbbf;font-size:13px;text-decoration:none}
.journey .stage-tabs a[aria-current]{color:var(--journey-gold);font-weight:700}.journey .stage-tabs a:hover{color:white}
.journey-progress{height:2px;background:#ffffff20;margin-top:2px}.journey-progress span{display:block;width:100%;height:100%;transform-origin:left;transform:scaleX(.025);background:var(--journey-gold)}
.journey-chapter{min-height:110svh;padding:80px 0 100px;scroll-margin-top:0;outline-offset:10px}
.journey-chapter h2{font-size:clamp(36px,3.9vw,56px);line-height:1.1;letter-spacing:-1.7px;max-width:17ch;margin:0 0 28px;color:#f4f3eb}
.chapter-copy{font-size:17px;line-height:1.8;color:#e2e5d9;max-width:43ch}
.chapter-proof{margin:26px 0 20px;padding:0;font-size:14px;line-height:1.6;width:100%;border-collapse:collapse}
.chapter-proof th,.chapter-proof td{padding:11px 0;border-bottom:1px solid #ffffff22} /* taste-skill-ignore: real table of lot identifiers, quantities and owners */
.chapter-proof th{color:#c8cebf;font-weight:400;text-align:left;width:60%;padding-right:15px}.chapter-proof td{color:#f3dfb2;text-align:right}
.chapter-note{font-size:15px;line-height:1.8;color:#f0ecdc;max-width:44ch}
.balance-note{font-size:13px;line-height:1.8;color:#b4bba9;margin-top:13px;max-width:50ch}
.chapter-next{display:flex;justify-content:space-between;gap:10px;text-decoration:none;color:var(--journey-gold);font-size:13px;min-height:48px;padding-block:17px;margin-top:18px;max-width:275px}.chapter-next:hover{text-decoration:underline}
.journey-chapter .button{align-self:start;margin-top:26px}
.chapter-poster{display:none}
.journey:not(.is-enhanced) .journey-visual{position:absolute;height:100svh;inset:0 0 auto;margin:0}
.journey:not(.is-enhanced) .journey-overlay{display:none}
.journey:not(.is-enhanced) .journey-chapter{isolation:isolate}
.journey:not(.is-enhanced) .chapter-poster{display:block;position:absolute;top:0;bottom:0;left:calc(-1 * (100vw - min(1376px,100vw - 96px)) / 2);width:100vw;z-index:-2;overflow:hidden}
.journey:not(.is-enhanced) .chapter-poster img{height:100%;width:100%;object-fit:cover;opacity:.32}
@media(min-width:901px) and (max-height:760px){.journey-intro{padding-top:110px;padding-bottom:45px}.journey h1{font-size:65px}.journey-invitation{display:none}.journey-scroll-hint{margin-top:22px}.journey-hud{bottom:18px}.journey-chapter{min-height:125svh}.journey .model-caption{font-size:16px}}
@media(max-width:1180px) and (min-width:901px){.journey-intro,.journey-chapter{width:47%}.journey h1{font-size:64px}.journey-hud{right:32px;width:42%}.journey-controls{right:32px}.journey-chapter h2{font-size:43px}.journey .actions{gap:12px}}
@media(max-width:900px){
  .journey .mill-fallback img,.journey:not(.is-enhanced) .chapter-poster img{object-position:74% center}
  .journey-intro,.journey-chapter{width:100%;max-width:610px}
  .journey-intro{justify-content:flex-end;min-height:100svh;padding:270px 0 80px}
  .journey h1{font-size:clamp(46px,8.8vw,72px);max-width:13ch}
  .journey .lead{font-size:16px;max-width:45ch;line-height:1.7}
  .journey-invitation{display:none}.journey-scroll-hint{margin-top:25px}
  .journey-scrim{background:linear-gradient(180deg,rgba(8,11,10,.72),rgba(8,11,10,.6) 16%,rgba(8,11,10,.2) 24%,rgba(8,11,10,.8) 38%,rgba(8,11,10,.95) 70%,rgba(8,11,10,.98))} /* taste-skill-ignore: readable header and text over the photographic background */
  .journey:not([data-intro="true"]) .journey-scrim{background:linear-gradient(180deg,rgba(8,11,10,.64),rgba(8,11,10,.62) 24%,rgba(8,11,10,.82) 42%,rgba(8,11,10,.95) 70%,rgba(8,11,10,.98))} /* taste-skill-ignore: scrolling text must stay legible over bright metal at the top too */
  .journey-controls{position:sticky;top:82px;right:auto;left:auto;margin-inline:20px;justify-content:space-between;gap:12px}
  .journey:not([data-intro="true"]) .journey-controls{top:0;margin-inline:0;padding:6px 20px;background:#101312}
  .journey-hud{position:sticky;top:134px;bottom:auto;right:auto;left:auto;width:100%;max-width:none;padding:0 20px;background:#0b0e0d}
  .journey:not([data-intro="true"]) .journey-hud{top:56px}
  .journey-case,.journey-record,.journey .model-caption{display:none}
  .journey .stage-tabs{margin:0;gap:16px}.journey .stage-tabs a{font-size:12px;min-height:48px}.journey-progress{margin:0 -20px;height:2px}
  .journey-chapter{min-height:115svh;justify-content:flex-start;padding:38svh 0 100px;scroll-margin-top:0}
  .journey-chapter h2{font-size:42px;max-width:19ch;margin-bottom:22px;line-height:1.12}
  .chapter-copy{font-size:16px;max-width:49ch}.chapter-proof{font-size:13px;margin-block:22px 18px}.chapter-proof th,.chapter-proof td{padding-block:10px}.chapter-note{font-size:14px}
  .journey:not(.is-enhanced) .chapter-poster{left:-20px;width:calc(100% + 40px)}
}
@media(max-width:420px){.journey h1{font-size:clamp(42px,11vw,48px)}.journey-intro{padding-top:250px}.journey-chapter h2{font-size:34px;letter-spacing:-1.2px;max-width:18ch}.journey .actions{gap:8px 18px}.journey .button{font-size:13px;padding-inline:16px}.journey .text-button{font-size:13px}.journey .lead{font-size:15px}}
@media(max-width:900px) and (max-height:550px){.journey-intro{padding-top:140px}.journey-chapter{padding-top:130px}.journey-controls{right:20px;left:auto}.journey:not([data-intro="true"]) .journey-controls{top:8px}}
@media(prefers-reduced-motion:reduce){.journey *{scroll-behavior:auto}}
