/* ============================================================================
   Ducati · Designing an Icon — V3 EDITORIAL SKIN
   Drop-in restyle of the existing prototype (Ducati_Design/) to the Sept 2026
   editorial direction. Load LAST, after ui-polish.css. Changes nothing in the
   markup or the JS — it only re-dresses the classes the prototype already emits.

       <link rel="stylesheet" href="v3-skin.css">

   Copy the v3 asset folders alongside it (see handoff/README.md).
   ============================================================================ */

/* --- 1. Faces. Substitutions; swap the licensed files in here and nowhere else. --- */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;1,300;1,400&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@font-face{font-family:"Helvetica Compressed";src:local("Helvetica Compressed"),local("HelveticaCompressed"),local("Helvetica Inserat"),local("HelveticaInserat-Roman");font-display:swap}

:root{
--v3-paper:#f2f2f2;--v3-black:#000;--v3-ink:#0a0a0a;--v3-red:#e30613;--v3-signal:#ff0000;
--v3-muted:#6b6b6b;--v3-muted-invert:#b4b4b4;--v3-rule:#00000021;--v3-rule-invert:#ffffff2e;
--v3-stage-radius:30px;--v3-tile-radius:14px;--v3-pill:999px;
--v3-dot:radial-gradient(#00000026 1.5px,transparent 1.5px);
--v3-dot-invert:radial-gradient(#ffffff33 1.5px,transparent 1.5px);
--v3-dot-gap:86px;
--f-display:"Helvetica Compressed","Anton",Impact,sans-serif;
--f-ui:"Titillium Web",Arial,Helvetica,sans-serif;
--f-quote:"Playfair Display",Georgia,serif;
}

/* --- 2. Ground. Two states only; kill the warm greys and the V2 glows. --- */
body,#surface{font-family:var(--f-ui)}
#surface{--ink:var(--v3-ink);--muted:var(--v3-muted);--line:var(--v3-rule);--paper:var(--v3-paper);--red:var(--v3-red);background:var(--v3-paper);background-image:var(--v3-dot);background-size:var(--v3-dot-gap) var(--v3-dot-gap)}
#surface[data-theme=dark],#surface:is([data-view=attract],[data-view=menu],[data-view=diavel]){--ink:#fff;--muted:var(--v3-muted-invert);--line:var(--v3-rule-invert);background:var(--v3-black);background-image:var(--v3-dot-invert);background-size:var(--v3-dot-gap) var(--v3-dot-gap)}
.emotion-stage,.constellation,.aero-study,.assembly-stage{background-image:none!important;background-color:transparent!important}
.studio-orbit,.finish-line,.art .construction{display:none}

/* --- 3. Display. Compressed uppercase on black; the light UI cut on paper. --- */
.cinema-copy h1,.emotion-title h1,.editorial-copy h1,.assembly h1,.finish h1,.manifesto h1{
font-family:var(--f-display);font-weight:400;text-transform:uppercase;
letter-spacing:-.015em;line-height:.88;white-space:pre-line}
.menu-intro h1,.constellation-heading h1,#surface[data-view=diavel] .copy h1,.aero-study .copy h1{
font-family:var(--f-ui);font-weight:300;letter-spacing:-.005em;line-height:1.02;text-transform:none}
.cinema-copy h1{font-size:clamp(52px,7.4vw,150px)}
.editorial-copy h1{font-size:clamp(44px,5.6vw,118px)}

/* --- 4. Body + labels. The squarish humanist UI face, never a neo-grotesque. --- */
.cinema-copy p,.editorial-copy p,.menu-intro p,.copy p,.media-choice p,
.assembly-message,.assembly-info p,.detail-card p,.manifesto p{
font-family:var(--f-ui);font-weight:300;letter-spacing:.01em;line-height:1.65}
.editorial-kicker,.assembly-kicker,.foot-label,.eyebrow,.time-left,.player-info strong,
.player-info span,.archive-watermark,.chapter-name,.editorial-visual figcaption,
.choice-num,.assembly-score-title,.task-label,.studio-extents,.orbit-sub{
font-family:var(--f-ui);letter-spacing:.12em;text-transform:uppercase}
.editorial-kicker{font-size:11px;font-weight:700;letter-spacing:.14em}
.editorial-kicker b{border-color:var(--v3-rule-invert)}

/* --- 5. Quotes. The one warm voice. One per stage, never more. --- */
.v3-quote-block{margin:26px 0 0;max-width:330px}
.v3-quote{font-family:var(--f-quote);font-style:italic;font-size:20px;line-height:1.18;letter-spacing:0;margin:0;color:inherit}
.v3-attrib{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-family:var(--f-ui);
font-size:11px;letter-spacing:.1em;text-transform:uppercase;display:flex;flex-direction:column;gap:4px}
.v3-attrib b{font-weight:700}
.v3-attrib span{color:var(--muted)}
@media(max-width:900px){.v3-quote{font-size:17px}.v3-quote-block{margin-top:18px}}

/* --- 6. Geometry. One stage plate, soft corners, no pills. --- */
.editorial-story,.media-choice,#media-dialog,.assembly-info,.detail-card,
.inline-film,.editorial-visual,.route-card{border-radius:var(--v3-tile-radius)}
.editorial-story{border-radius:var(--v3-stage-radius);margin:0 2.6%;overflow:hidden}
.primary,.round,.language,.media-controls button,.film-expand,.assembly-start,
.assembly-watch,.assembly-explore,.assembly-learn,.chapter,.archive-slots button,
.model-controls button,.assembly-view{border-radius:var(--v3-pill)}
.play-button,.chapter-nav,.hotspot,.assembly-part,.assembly-target{border-radius:50%}
.route-card{border-radius:var(--v3-tile-radius)}
.orbit-card,.detail-card{border:1px solid var(--v3-rule-invert);box-shadow:none}

/* --- 7. Colour discipline. Red is a signal, not a surface. --- */
.primary{background:var(--v3-red);border-radius:var(--v3-pill);font-family:var(--f-ui);font-weight:600;letter-spacing:.04em}
.primary:hover{background:#bb0010}
.route-card.active,.chapter.active,.orbit-card:hover,.orbit-card:focus-visible{background:var(--v3-red)}
.progress>i,.editorial-chapters [aria-current=step] i,.assembly-progress-track .complete{background:var(--v3-signal)}
.pip{background:var(--v3-signal)}
.detail-card{border-inline-start:4px solid var(--v3-red)}
.airflow path{stroke:#c6e5f0}
.airflow path:nth-child(2n){stroke:#fff}

/* --- 8. The timeline. The prototype's chapter rail is now the primary navigation:
       numbered tick over a rule, current stage named once and centred beneath. --- */
.v3-timeline{margin:0 3.2%;position:relative;padding:10px 0 30px}
.editorial-chapters,#surface[data-table=true] .editorial-chapters{
display:flex;gap:10px;margin:0;padding:0;width:100%;overflow:visible;align-items:flex-end}
.editorial-chapters button,#surface[data-table=true] .editorial-chapters button{
flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:9px;
background:none!important;border:0;border-radius:0;padding:6px 0 0;min-height:48px;
font-family:var(--f-ui);color:var(--muted);position:static}
.editorial-chapters span{font-size:12px;letter-spacing:.1em}
.editorial-chapters i{display:block;width:100%;height:2px;margin:0;background:var(--line)}
/* Every tick carries its name; only the current one shows, centred under the whole bar.
   It has to live inside the tick because the app updates the ticks in place. */
.editorial-chapters small{display:none}
.editorial-chapters [aria-current=step] small{display:block;position:absolute;left:0;right:0;bottom:8px;
text-align:center;font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
color:var(--ink);white-space:nowrap}
.editorial-chapters [aria-current=step]{color:var(--ink);font-weight:700}
.editorial-chapters [aria-current=step] i{height:3px;background:var(--ink)}
.timeline .chapter{background:none;border-radius:0}

/* --- 9. Editorial stage (landing, menu, history) — follows the "Form to function" board: black stage inset in
       paper, compressed headline top-centre, detail tile + counter + body left, large
       photograph right, hairline arrows in the outer margin, timeline across the foot. --- */
.ed-row{flex:1;min-height:0;display:flex;align-items:stretch;gap:14px;padding:0 1.4%}
.ed-arrow{align-self:center;flex:0 0 auto;width:48px;height:48px;border-radius:50%;border:1px solid var(--line);background:none;color:var(--ink);font-size:18px;display:grid;place-items:center;cursor:pointer;padding:0}
.ed-arrow:disabled{opacity:.25;cursor:default}
.ed-stage{flex:1;min-width:0;min-height:0;container-type:size;position:relative;background:#000;color:#fff;border-radius:30px;overflow:hidden;
display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.5fr);grid-template-rows:auto minmax(0,1fr);column-gap:2.4%;row-gap:3.5cqh;padding:3.4cqh 2.6%;box-sizing:border-box}
.ed-meta{grid-column:1;grid-row:1;align-self:start;display:flex;flex-direction:column;gap:8px;font-family:var(--f-ui)}
.ed-meta span{font-family:var(--f-quote);font-style:italic;font-size:clamp(13px,2.4cqh,19px);line-height:1.2}
.ed-meta small{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#b4b4b4}
.ed-head{grid-column:2;grid-row:1;display:flex;align-items:center;gap:3%}
.ed-year{font-family:var(--f-display);font-weight:400;text-transform:uppercase;font-size:clamp(40px,min(16cqw,26cqh),300px);line-height:.88;letter-spacing:-.015em}
.ed-side{display:flex;flex-direction:column;gap:3px;font-family:var(--f-ui);font-size:10px;letter-spacing:.12em;text-transform:uppercase;line-height:1.3}
.ed-side b{font-weight:700;max-width:14ch}
.ed-side span{color:#b4b4b4}
.ed-side i{display:block;width:24px;height:1px;background:#ffffff4d;margin-top:8px}
.ed-left{grid-column:1;grid-row:2;min-height:0;display:flex;flex-direction:column;gap:1.8cqh}
.ed-tile{margin:0;flex:1 1 auto;min-height:0;max-height:38cqh;border-radius:14px;overflow:hidden}
.ed-tile img{width:100%;height:100%;object-fit:cover;object-position:70% 60%;transform:scale(1.9);transform-origin:70% 60%;filter:grayscale(1);display:block}
.ed-count{flex-shrink:0;font-family:var(--f-ui);font-size:12px;letter-spacing:.08em;color:#b4b4b4}
.ed-count b{color:#fff}
.ed-left p{flex-shrink:0;margin:0;font-family:var(--f-ui);font-size:clamp(12px,2.3cqh,17px);line-height:1.45;letter-spacing:.02em;color:#e6e6e6;text-wrap:pretty}
.ed-media{grid-column:2;grid-row:2;margin:0;min-height:0;position:relative;border-radius:14px;overflow:hidden}
.ed-media img{width:100%;height:100%;object-fit:cover;display:block}
.ed-media figcaption{position:absolute;right:14px;bottom:12px;font-family:var(--f-ui);font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#ffffffb3;white-space:nowrap}
.history-timeline{margin:0 auto;width:min(46%,760px);padding:12px 0 30px;position:relative}
.history-ticks{display:flex;gap:6px}
.history-ticks button{flex:1 1 0;min-width:0;min-height:44px;display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:none;padding:4px 0 0;cursor:pointer;font-family:var(--f-ui);color:var(--muted);position:static}
.history-ticks span{font-size:11px;letter-spacing:.08em}
.history-ticks i{display:block;width:100%;height:2px;background:var(--line)}
.history-ticks small{display:none}
.history-ticks [aria-current=step]{color:var(--ink);font-weight:700}
.history-ticks [aria-current=step] i{height:3px;background:var(--ink)}
.history-ticks [aria-current=step] small{display:block;position:absolute;left:0;right:0;bottom:10px;text-align:center;font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);white-space:nowrap}
[dir=rtl] .ed-meta span,[dir=rtl] .ed-side,[dir=rtl] .ed-left p{letter-spacing:0}
[dir=rtl] .ed-arrow{transform:scaleX(-1)}
@media(prefers-reduced-motion:no-preference){.ed-media img{animation:historyIn .8s ease both}}
@keyframes historyIn{from{opacity:0}to{opacity:1}}
/* Landing: compressed headline set on two authored lines. */
.ed-head h1.ed-year{margin:0;white-space:pre;font-size:clamp(34px,min(7.2cqw,17cqh),200px);line-height:.88}
.ed-actions{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;gap:14px 20px;margin-top:.6cqh}
.ed-cta{min-height:48px;padding:0 22px;border-radius:999px;border:0;background:#fff;color:#000;font-family:var(--f-ui);font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;display:inline-flex;align-items:center;gap:12px;cursor:pointer}
.ed-link{min-height:44px;border:0;background:none;color:#fff;font-family:var(--f-ui);font-size:13px;letter-spacing:.06em;cursor:pointer;padding:0}
.ed-meta .ed-link{align-self:flex-start;margin-top:4px}
.ed-media iframe,.ed-media .ducati-film{position:absolute;inset:0;width:100%;height:100%;border:0}
/* Menu: four equal story tiles across the lower row. */
.ed-menu .ed-choices{grid-column:1 / 3;grid-row:2;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.6%}
.ed-choice{position:relative;min-height:0;display:flex;flex-direction:column;gap:1.2cqh;border:0;background:none;padding:0;color:#fff;text-align:start;cursor:pointer;font-family:var(--f-ui)}
.ed-choice figure{flex:1 1 auto;min-height:0;margin:0 0 .6cqh;border-radius:14px;overflow:hidden}
.ed-choice figure img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.ed-choice:hover figure img{transform:scale(1.045)}
.ed-choice h2{flex-shrink:0;margin:0;font-family:var(--f-ui);font-weight:700;font-size:clamp(15px,3cqh,26px);line-height:1.05}
.ed-choice p{flex-shrink:0;margin:0;font-size:clamp(11px,2cqh,14px);color:#b4b4b4;letter-spacing:.04em}
.ed-choice-arrow{position:absolute;top:12px;right:12px;width:40px;height:40px;border-radius:50%;background:#000000a6;display:grid;place-items:center;font-size:16px}
[dir=rtl] .ed-choice-arrow{right:auto;left:12px;transform:scaleX(-1)}
/* Short stages: drop the decorative detail tile so the fact-checked copy always fits. */
@container (max-height:460px){.ed-tile{display:none}.ed-left{justify-content:flex-start}}

/* --- 10. Landing + menu on paper, matching history. Overrides the V2 dark rules in
       editorial.css / ui-polish.css for these two views only. --- */
#surface#surface:is([data-view=attract],[data-view=menu],[data-view=diavel],[data-view=history],[data-view=aero]){--ink:var(--v3-ink);--muted:var(--v3-muted);--line:var(--v3-rule);background:var(--v3-paper);background-image:var(--v3-dot);color:var(--v3-ink)}
#surface#surface:is([data-view=attract],[data-view=menu],[data-view=diavel],[data-view=history],[data-view=aero]) :is(header,footer){background:transparent;color:var(--v3-ink)}
#surface#surface:is([data-view=attract],[data-view=menu],[data-view=diavel],[data-view=history],[data-view=aero]) .brand img{filter:none}
#surface#surface:is([data-view=attract],[data-view=menu],[data-view=diavel],[data-view=history],[data-view=aero]) .round{border-color:var(--v3-rule);color:var(--v3-ink)}
#surface#surface:is([data-view=attract],[data-view=menu],[data-view=diavel],[data-view=history],[data-view=aero]) .player{background:transparent;border-color:var(--v3-rule);color:var(--v3-ink)}
#surface#surface:is([data-view=attract],[data-view=menu],[data-view=diavel],[data-view=history],[data-view=aero]) .play-button{background:var(--v3-ink);color:#fff}
#surface#surface:is([data-view=attract],[data-view=menu],[data-view=diavel],[data-view=history],[data-view=aero]) :is(#preview,.foot-label,.time-left){color:var(--v3-muted)}
.ed-cta span{font-size:16px}
.ed-cta{white-space:nowrap}
.ed-link{white-space:nowrap}

/* --- 11. Chrome, per the boards: wordmark left, section label centred, and a footer of
       MENU · stage bar · LANGUAGE EN / AR. The in-view timelines (history, Diavel) own the
       stage bar on those views, so the footer shows only the label there. --- */
#surface header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}
#surface header .identity{justify-self:center;font-family:var(--f-ui);font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
#surface header .header-actions{justify-self:end}
#surface header .language{display:none}
#surface header #preview{font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.7}
#surface footer{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;padding:10px 3.2% 16px;min-height:0}
.v3-menu{justify-self:start;display:flex;align-items:center;gap:14px;min-height:48px;border:0;background:none;padding:0;color:inherit;font-family:var(--f-ui);font-size:14px;letter-spacing:.08em;cursor:pointer}
.v3-dots{display:grid;grid-template-columns:repeat(3,3px);gap:5px}
.v3-dots i{width:3px;height:3px;border-radius:50%;background:currentColor;display:block}
.v3-foot-bar{justify-self:center;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.v3-foot-bar span{display:flex;gap:6px}
.v3-foot-bar span i{display:block;width:clamp(28px,5vw,96px);height:2px;background:var(--line)}
.v3-foot-bar span i.on{height:3px;background:var(--ink)}
.v3-foot-bar small{font-family:var(--f-ui);font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ink);white-space:nowrap}
.v3-foot-right{justify-self:end;display:flex;align-items:center;gap:18px}
.v3-lang{min-height:48px;border:0;background:none;padding:0;color:inherit;font-family:var(--f-ui);font-size:14px;letter-spacing:.08em;cursor:pointer;white-space:nowrap}
.v3-lang b{font-weight:400}
.v3-lang b.on{text-decoration:underline;text-underline-offset:4px}
.v3-icon{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:none;color:inherit;font-size:16px;cursor:pointer;padding:0}
.v3-foot-link{font-family:var(--f-ui);font-size:13px;letter-spacing:.06em;color:inherit;text-decoration:underline;text-underline-offset:4px}
/* Player: a slim row under the stage, not a second bar competing with the footer. */
#surface .player{border:0!important;background:transparent!important;min-height:0;padding:6px 3.2% 0;gap:14px}
#surface .player .play-button{width:40px;height:40px;min-width:40px;min-height:40px;font-size:13px}
#surface .player .player-info strong{font-size:10px;letter-spacing:.14em}
#surface .player .player-info span{font-size:10px;letter-spacing:.1em;color:var(--muted)}
#surface .player .progress{height:2px}
#surface .player .progress i{background:var(--v3-red)}
@media(max-width:700px){.v3-menu,.v3-lang{font-size:12px}#surface header .identity{font-size:11px}}

/* --- 12. Diavel story on the editorial stage. Quote (when the board has one) top-left. --- */
.ed-quote span{font-size:clamp(13px,2.3cqh,18px)}
.ed-quote b{font-family:var(--f-ui);font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;margin-top:8px}
.ed-quote small{margin-top:-4px}
.ed-diavel .ed-head h1.ed-year{white-space:pre-line}
.ed-media .ed-media-play{position:absolute;left:14px;bottom:12px;z-index:2;width:40px;height:40px;border-radius:50%;border:0;background:#000000a6;color:#fff;font-size:13px;cursor:pointer}
.ed-media figcaption{z-index:2}
.ed-diavel .ed-cta{font-size:12px;padding:0 18px}
/* Timeline on paper for Diavel, matching history. */
#surface[data-view=diavel] .editorial-chapters [aria-current=step] small{bottom:10px}
/* Tidy: labels that must never wrap. */
#surface header #preview,#surface .player .round,.aero-study button,.model-controls button{white-space:nowrap}

/* Vertical budget: the stage arrows already do prev/next, so the player's Next button goes,
   and on short panes the player collapses to play/pause + progress. */
#surface:is([data-view=diavel],[data-view=history],[data-view=aero]) .player>.round[data-action=next]{display:none}
.v3-timeline{padding:6px 0 26px}
@media(max-height:760px){#surface .player .player-info{display:none}#surface .player{padding-top:2px}#surface .player .play-button{width:34px;height:34px;min-width:34px;min-height:34px}}
.ed-diavel .ed-meta.ed-quote span{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
@container (max-height:340px){.ed-quote small{display:none}.ed-left .ed-actions .ed-link{display:none}}

/* --- 13. Feel the air: the immersive stage (board 07). Black plate on paper, compressed
       headline, controls floating on the frame as hairline-divided cells, and the three
       study steps as a tick timeline underneath. --- */
#surface[data-view=aero] .aero-study{margin:0 2.6%;border-radius:30px;overflow:hidden;background:#000!important;color:#fff;position:relative;flex:1;min-height:0}
#surface[data-view=aero] .aero-study .copy{position:relative;z-index:2;padding:3.4% 3.6%;max-width:420px}
#surface[data-view=aero] .aero-study .eyebrow{font-family:var(--f-quote);font-style:italic;font-size:17px;letter-spacing:0;text-transform:none;color:#fff}
#surface[data-view=aero] .aero-study{container-type:size}
#surface[data-view=aero] .aero-study h1{font-family:var(--f-display);font-weight:400;text-transform:uppercase;font-size:clamp(34px,min(7cqw,18cqh),140px);line-height:.88;letter-spacing:-.015em;margin:14px 0 16px}
#surface[data-view=aero] .aero-study .copy p{font-size:15px;line-height:1.5;color:#d6d6d6;max-width:340px}
#surface[data-view=aero] .detail-actions{display:flex;gap:0;margin-top:18px;border:1px solid #ffffff33;border-radius:999px;overflow:hidden;width:max-content}
#surface[data-view=aero] .detail-actions .round{border:0!important;border-radius:0!important;background:none!important;color:#fff!important;padding:0 20px;min-height:48px;font-size:13px}
#surface[data-view=aero] .detail-actions .round+.round{border-inline-start:1px solid #ffffff33}
#surface[data-view=aero] .detail-actions .round[aria-pressed=true]{background:var(--v3-red)!important}
#surface[data-view=aero] .aero-study .copy{overflow:hidden;max-height:100%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}
#surface[data-view=aero] .flow-control label{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#b4b4b4}
#surface[data-view=aero] .flow-control input{accent-color:var(--v3-red)}
#surface[data-view=aero] .archive-watermark{position:absolute;right:22px;bottom:16px;z-index:2;font-size:9px;letter-spacing:.12em;color:#ffffffb3}
#surface[data-view=aero] .model-controls{background:linear-gradient(transparent,#00000080);gap:0}
#surface[data-view=aero] .model-controls button{background:none!important;border:0!important;border-radius:0!important;color:#fff;min-height:48px;padding:0 18px}
#surface[data-view=aero] .model-controls button+button{border-inline-start:1px solid #ffffff33!important}
#surface[data-view=aero] nav.timeline{display:flex;gap:10px;margin:0 3.2%;padding:10px 0 20px;background:none}
#surface[data-view=aero] nav.timeline .chapter{flex:1 1 0;min-height:48px;display:flex;align-items:flex-start;padding:8px 0 0;border:0!important;border-top:2px solid var(--line)!important;border-radius:0!important;background:none!important;color:var(--muted);font-family:var(--f-ui);font-size:12px;letter-spacing:.1em;text-transform:uppercase;justify-content:flex-start}
#surface[data-view=aero] nav.timeline .chapter.active{color:var(--ink);font-weight:700;border-top:3px solid var(--ink)!important}
#surface[data-view=aero] nav.timeline .chapter::before{content:none}

/* --- 14. Build a bike: same paper page, black plate for the 3D stage, pill actions in the
       V3 vocabulary (white primary, hairline secondary), mono-free score cards. --- */
#surface[data-view=builder]{--ink:var(--v3-ink);--muted:var(--v3-muted);--line:var(--v3-rule)}
#surface[data-view=builder] header{background:transparent}
#surface[data-view=builder] .assembly-kicker{font-family:var(--f-ui);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--v3-muted)}
#surface[data-view=builder] .assembly-heading h1,#surface[data-view=builder] .assembly-heading h2{font-family:var(--f-display);font-weight:400;text-transform:uppercase;line-height:.88;letter-spacing:-.015em}
#surface[data-view=builder] .assembly-stage{margin:0 2.6%;border-radius:30px;overflow:hidden;background:#000;color:#fff;min-height:0}
#surface[data-view=builder] .assembly-status,#surface[data-view=builder] .assembly-message{font-family:var(--f-ui)}
#surface[data-view=builder] .assembly-bottom{margin:0 3.2%;border:0!important;background:none!important;font-family:var(--f-ui);gap:10px}
#surface[data-view=builder] :is(.assembly-start,.assembly-preview,.assembly-explore,.assembly-learn,.assembly-watch){font-family:var(--f-ui)!important;font-size:13px!important;font-weight:700;letter-spacing:.08em;text-transform:uppercase;min-height:48px;padding:0 22px;border-radius:999px!important;white-space:nowrap;box-shadow:none!important}
#surface[data-view=builder] .assembly-start{background:var(--v3-ink)!important;color:#fff!important;border:0!important}
#surface[data-view=builder] .assembly-start:disabled{opacity:.35}
#surface[data-view=builder] :is(.assembly-preview,.assembly-explore,.assembly-learn,.assembly-watch){background:none!important;color:var(--v3-ink)!important;border:1px solid var(--v3-rule)!important}
#surface[data-view=builder] .assembly-scores{margin:0 3.2%;background:none!important;font-family:var(--f-ui)}
#surface[data-view=builder] .assembly-scores :is(h2,h3,strong){font-family:var(--f-ui)}
#surface[data-view=builder] .assembly-progress i,#surface[data-view=builder] .assembly-progress span{background:var(--v3-red)}
#surface[data-view=builder] .assembly-info{border-radius:14px;font-family:var(--f-ui)}

#surface[data-view=aero] .aero-study .copy>*{flex-shrink:0}
#surface[data-view=aero] .flow-control{display:flex;flex-direction:column;gap:8px;margin-top:14px;max-width:300px}
.v3-foot-link{white-space:nowrap}
#surface[data-view=builder] .assembly-scores h2,#surface[data-view=builder] .assembly-scores h3{white-space:nowrap;font-size:18px;line-height:1.1}

/* --- 15. Installation chrome: nothing a visitor doesn't need. The concept-preview note,
       full-screen toggle and rotate control are build tools, not visitor controls. --- */
#surface header #preview,#surface header #fullscreen,.v3-foot-right .v3-icon{display:none!important}

/* --- 16. Manifesto + finish on the same black plate. --- */
#surface#surface:is([data-view=manifesto],[data-view=finish]){--ink:var(--v3-ink);--muted:var(--v3-muted);--line:var(--v3-rule);background:var(--v3-paper);background-image:var(--v3-dot);color:var(--v3-ink)}
#surface:is([data-view=manifesto],[data-view=finish]) :is(header,footer){background:transparent;color:var(--v3-ink)}
#surface:is([data-view=manifesto],[data-view=finish]) .brand img{filter:none}
.manifesto,.finish{flex:1;min-height:0;margin:0 2.6%;border-radius:30px;background:#000!important;color:#fff;padding:3.4% 4%;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;justify-content:center;container-type:size}
.manifesto>span,.finish>span{font-family:var(--f-quote);font-style:italic;font-size:18px;letter-spacing:0;text-transform:none;color:#fff}
.manifesto h1,.finish h1{font-family:var(--f-display)!important;font-weight:400!important;text-transform:uppercase;font-size:clamp(40px,min(9cqw,24cqh),180px)!important;line-height:.88!important;letter-spacing:-.015em!important;white-space:pre-line;margin:14px 0 22px!important;color:#fff}
.manifesto-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3%}
.manifesto-columns p,.finish p{font-family:var(--f-ui);font-size:clamp(13px,2.4cqh,17px);line-height:1.5;color:#d6d6d6;margin:0;max-width:44ch}
.finish>div:last-child{display:flex;gap:14px;margin-top:22px}
.finish .primary{background:#fff!important;color:#000!important;border:0;border-radius:999px;min-height:48px;padding:0 24px;font-family:var(--f-ui);font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.finish .round{background:none!important;color:#fff!important;border:1px solid #ffffff4d!important}
.finish-line{display:none}
@media(max-width:700px){.manifesto-columns{grid-template-columns:1fr}}
.manifesto .primary{align-self:flex-start;width:auto;background:#fff!important;color:#000!important;border:0;border-radius:999px;min-height:48px;padding:0 26px;margin-top:22px;font-family:var(--f-ui);font-weight:700;letter-spacing:.08em;text-transform:uppercase}

/* Aero copy: overflow may only go down; on short stages drop the lowest-value items. */
#surface[data-view=aero] .aero-study .copy{justify-content:safe center;overflow:hidden auto;scrollbar-width:none}
#surface[data-view=aero] .aero-study .copy::-webkit-scrollbar{display:none}
#surface[data-view=aero] .detail-actions{width:auto;max-width:100%;flex-wrap:nowrap}
#surface[data-view=aero] .detail-actions .round{flex:0 0 auto;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
@container (max-height:420px){
 #surface[data-view=aero] .aero-study .copy p{display:none}
 #surface[data-view=aero] .aero-study h1{font-size:clamp(28px,16cqh,140px);margin:8px 0 10px}
 #surface[data-view=aero] .detail-actions{margin-top:8px}
 #surface[data-view=aero] .flow-control{margin-top:8px}
}
@container (max-height:300px){
 #surface[data-view=aero] .detail-actions .round[data-action=camera]{display:none}
 #surface[data-view=aero] .detail-actions{border-radius:999px}
}

#surface[data-view=aero] .detail-actions{width:max-content!important;display:flex}
#surface[data-view=aero] .detail-actions>*{flex:0 0 auto}
@container (max-height:420px){
 #surface[data-view=aero] .aero-study .copy{padding-top:2.4cqh;padding-bottom:2.4cqh}
 #surface[data-view=aero] .aero-study .eyebrow{font-size:14px}
 #surface[data-view=aero] .flow-control{gap:4px}
 #surface[data-view=aero] .flow-control>span{display:none}
 #surface[data-view=aero] .flow-control input{margin:0;height:24px}
 #surface[data-view=aero] .detail-actions .round{min-height:44px}
}

/* History: the machine's name is the headline; the year is supporting. Long names
   ("125 Gran Prix Desmo") are allowed two lines and sized against both axes. */
.ed-head h1.ed-name{margin:0;white-space:normal;text-wrap:balance;font-size:clamp(34px,min(8.4cqw,19cqh),220px);line-height:.88;max-width:100%}
.ed-side b.ed-side-year{font-family:var(--f-ui);font-size:clamp(16px,3.4cqh,30px);font-weight:700;letter-spacing:.04em}
/* Detail tile: real studio photographs, shown whole and in colour. */
.ed-tile-detail{background:#111}
.ed-tile-detail img{transform:none!important;filter:none!important;object-fit:cover;object-position:50% 55%}

/* On short stages the left column has no room for the detail tile, so the same studio shot
   moves into the main photograph as an inset. It is never dropped. */
.ed-inset{display:none;margin:0;position:absolute;left:12px;bottom:12px;z-index:2;width:clamp(96px,17cqw,220px);aspect-ratio:3/2;border-radius:10px;overflow:hidden;background:#111;box-shadow:0 0 0 1px #ffffff26}
.ed-inset img{width:100%;height:100%;object-fit:cover;object-position:50% 55%;display:block}
@container (max-height:460px){.ed-inset{display:block}}
[dir=rtl] .ed-inset{left:auto;right:12px}

/* --- 17. Footer = MENU · play/pause + progress · EN / عربي. The player lives in the
       footer's centre slot (moved there on each render); its captions are dropped. --- */
#surface footer{grid-template-columns:auto minmax(0,1fr) auto!important;gap:28px!important;padding:8px 3.2% 14px!important}
.v3-foot-player{min-width:0;display:flex;align-items:center}
.v3-foot-player .player{flex:1;display:flex;align-items:center;gap:16px;padding:0!important;margin:0;border:0!important;background:none!important}
.v3-foot-player .player-info,.v3-foot-player .player>.foot-label,.v3-foot-player .player>.round{display:none!important}
.v3-foot-player .play-button{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex:0 0 auto}
.v3-foot-player .time-left{flex:0 0 auto;min-width:3ch;font-size:12px;letter-spacing:.08em;color:var(--muted)}
.v3-foot-player .progress{flex:1;height:2px;background:var(--line)}
.v3-lang b[lang=ar]{font-family:"Noto Sans Arabic","Geeza Pro",Tahoma,sans-serif;font-size:15px;letter-spacing:0}
.v3-foot-bar{display:none!important}

/* --- 18. One rule for every screen: the stage holds pictures and headline; numbering and
       names sit on a tick row directly beneath it. --- */
.ed-menu .ed-choices{grid-row:2 / 3}
.ed-choice{gap:0}
.ed-choice figure{margin:0;height:100%}
.ed-menu-ticks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.6%;margin:0 calc(1.4% + 2.4%);padding:12px 0 6px}
.ed-menu-ticks button{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:48px;border:0;background:none;padding:0;cursor:pointer;color:var(--ink);text-align:start;font-family:var(--f-ui)}
.ed-menu-ticks span{font-size:12px;letter-spacing:.1em;color:var(--muted)}
.ed-menu-ticks i{display:block;width:100%;height:2px;background:var(--line);margin-bottom:4px}
.ed-menu-ticks b{font-size:clamp(15px,1.6vw,24px);font-weight:700;line-height:1.1}
.ed-menu-ticks small{font-size:12px;letter-spacing:.04em;color:var(--muted)}
.ed-menu-ticks button:hover i{background:var(--ink)}
.ed-ticks-under{margin:0 3.2%}

/* --- 19. Light editorial variants (boards v3-12…15): no black plate. Headline in the light
       UI cut, sentence case, huge; the photograph carries the composition, with overlapping
       inset tiles and a Playfair quote. The sketch beat puts the drawing on a white card
       with callouts, flanked by two rails of process thumbnails. --- */
.l-stage{flex:1;min-width:0;min-height:0;container-type:size;position:relative;display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.5fr);column-gap:3%;align-items:center;padding:1cqh 1% 1cqh 0;box-sizing:border-box}
.l-copy{min-width:0;display:flex;flex-direction:column;gap:2.4cqh;position:relative;z-index:3}
.l-head{margin:0;font-family:var(--f-ui);font-weight:300;font-size:clamp(40px,min(9cqw,19cqh),230px);line-height:.92;letter-spacing:-.02em;white-space:pre-line;color:var(--v3-ink)}
.l-copy p{margin:0;font-family:var(--f-ui);font-weight:300;font-size:clamp(13px,2.5cqh,22px);line-height:1.42;letter-spacing:.02em;color:var(--v3-ink);max-width:36ch;text-wrap:pretty}
.l-copy .ed-count{color:var(--v3-muted)}
.l-copy .ed-count b{color:var(--v3-ink)}
.l-media{position:relative;height:84%;min-height:0}
.l-main{position:absolute;inset:6% 0 8% 7%;margin:0;border-radius:22px;overflow:hidden;background:#e6e6e6}
.l-main img{width:100%;height:100%;object-fit:cover;display:block}
.l-inset{position:absolute;margin:0;z-index:2}
.l-inset img{display:block;width:100%;height:100%;object-fit:cover;border-radius:16px;box-shadow:0 0 0 6px var(--v3-paper)}
.l-inset figcaption{margin-top:14px;font-family:var(--f-ui);font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;line-height:1.4;white-space:pre-line;color:var(--v3-ink)}
.l-inset figcaption::after{content:"";display:block;width:24px;height:1px;background:var(--v3-ink);margin-top:10px}
.l-inset-bl{left:0;bottom:-6%;width:34%;aspect-ratio:2/1}
.l-master .l-inset-bl{width:22%;aspect-ratio:1/1}
.l-inset-tr{right:14%;top:0;width:19%;aspect-ratio:5/4}
.l-quote{position:absolute;right:4%;top:10%;z-index:2;margin:0;max-width:30%;color:var(--v3-ink)}
.l-quote blockquote{margin:0;font-family:var(--f-quote);font-style:italic;font-size:clamp(12px,2.3cqh,20px);line-height:1.2}
.l-quote i{display:block;width:24px;height:1px;background:var(--v3-ink);margin:14px 0 10px}
.l-quote b{display:block;font-family:var(--f-ui);font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.l-quote small{display:block;font-family:var(--f-ui);font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--v3-muted);margin-top:4px}
/* Sketch beat */
.l-sketch{grid-template-columns:minmax(0,.9fr) minmax(0,.26fr) minmax(0,1.5fr) minmax(0,.4fr);column-gap:1.4%;align-items:stretch;padding-block:2cqh}
.l-sketch .l-copy{align-self:center}
.l-rail{min-height:0;border-radius:18px;background:#e7e7e7;padding:4cqh 12%;box-sizing:border-box;display:flex;flex-direction:column;gap:2.4cqh}
.l-rail-left{align-self:start;max-height:60%}
.l-rail-right{align-self:end;max-height:62%}
.l-rail figure{margin:0;flex:1 1 0;min-height:0;border-radius:12px;overflow:hidden;background:#fff}
.l-rail figure img{width:100%;height:100%;object-fit:cover;display:block}
.l-rail i{display:block;width:24px;height:1px;background:var(--v3-ink);flex-shrink:0}
.l-label{font-family:var(--f-ui);font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;white-space:pre-line;line-height:1.4;flex-shrink:0}
.l-rail blockquote{margin:0;font-family:var(--f-quote);font-style:italic;font-size:clamp(12px,2.2cqh,19px);line-height:1.2;flex-shrink:0}
.l-card{position:relative;margin:0;min-height:0;border-radius:28px;background:#f7f7f7;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:5cqh 6%}
.l-card img{max-width:100%;max-height:100%;object-fit:contain;mix-blend-mode:multiply;display:block}
.l-card-tag{position:absolute;top:5%;right:6%;font-family:var(--f-ui);font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.l-call{position:absolute;font-family:var(--f-ui);font-size:clamp(11px,1.9cqh,16px);letter-spacing:.08em;text-transform:uppercase;color:var(--v3-ink)}
.l-call-cr{top:17%;right:8%}.l-call-nk{top:52%;right:5%}.l-call-sp{bottom:22%;left:10%}
.l-card figcaption{position:absolute;left:7%;bottom:5%;max-width:48%;font-family:var(--f-quote);font-style:italic;font-size:clamp(11px,2cqh,17px);line-height:1.2}
.l-sketch .l-copy .l-head{font-size:clamp(34px,min(6cqw,15cqh),200px)}
@container (max-height:420px){.l-rail-left{display:none}.l-sketch{grid-template-columns:minmax(0,.9fr) minmax(0,1.5fr) minmax(0,.42fr)}.l-card figcaption{display:none}.l-copy p{font-size:13px}.l-inset figcaption{display:none}}
[dir=rtl] .l-main{inset:6% 7% 8% 0}[dir=rtl] .l-inset-bl{left:auto;right:0}[dir=rtl] .l-inset-tr{right:auto;left:14%}[dir=rtl] .l-quote{right:auto;left:4%}
[dir=rtl] .l-head,[dir=rtl] .l-copy p{letter-spacing:0}

/* Sketch: explicit columns (a container query can't restyle the container itself). */
.l-sketch>.l-copy{grid-column:1}.l-sketch>.l-rail-left{grid-column:2}.l-sketch>.l-card{grid-column:3}.l-sketch>.l-rail-right{grid-column:4}
@container (max-height:420px){.l-sketch>.l-card{grid-column:2 / 4}}
/* Clay: the quote sits on paper above the photograph, never over it. */
.l-clay .l-main{inset:24% 0 6% 7%}
.l-clay .l-quote{top:0;right:2%;max-width:40%}
.l-clay .l-inset-bl{bottom:-4%}

/* Clay: quote attribution stays on paper — pull the photo down and widen the quote. */
.l-clay .l-main{inset:34% 0 4% 7%}
.l-clay .l-quote{max-width:52%}
.l-clay .l-quote small{white-space:nowrap}
/* Sketch: callout labels sit on the card, never over the drawing; card tag clears them. */
.l-card-tag{top:4%}.l-call-cr{top:12%;right:3%}.l-call-nk{top:52%;right:3%}.l-call-sp{bottom:24%;left:3%}
.l-card{padding:5cqh 12%}

/* Right rail: sketches always keep a real size; on short stages the rail grows and the
   quote (already carried by the card caption on tall stages) gives way. */
.l-rail figure{flex:0 0 auto;aspect-ratio:3/2;min-height:40px}
.l-rail-right{max-height:none;justify-content:flex-end}
@container (max-height:420px){.l-rail-right{padding:2.4cqh 10%;gap:2cqh}.l-rail-right blockquote,.l-rail-right>i{display:none}}

/* Arabic face: IBM Plex Sans Arabic — open, low-contrast, matches Titillium's weight. The
   system fallback (Geeza Pro) is far heavier, which is why "عربي" read as bold. */
#surface{--f-arabic:"IBM Plex Sans Arabic","Noto Sans Arabic",Tahoma,sans-serif}
.v3-lang b[lang=ar]{font-family:var(--f-arabic)!important;font-weight:400!important;font-size:15px;letter-spacing:0;line-height:1}
.v3-lang b[lang=ar].on{font-weight:500!important}
#surface[dir=rtl],#surface[dir=rtl] :is(h1,h2,p,span,small,b,button,blockquote,figcaption,label){font-family:var(--f-arabic)}
#surface[dir=rtl] :is(.ed-year,.history-year,.aero-study h1,.manifesto h1,.finish h1){font-family:var(--f-arabic)!important;font-weight:500!important;letter-spacing:0!important;line-height:1.1!important}
#surface[dir=rtl] .l-head{font-family:var(--f-arabic);font-weight:300;letter-spacing:0;line-height:1.15}

/* Light photo stages (01, 03, 05, 07) share the clay/master composition. */
.l-photo .l-main{inset:6% 0 8% 7%}
.l-photo .l-inset-bl{width:26%;aspect-ratio:4/3}
.l-photo:has(.l-quote) .l-main{inset:30% 0 4% 7%}
.l-photo .l-quote{top:0;right:2%;max-width:50%}
.l-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
.l-cta{min-height:48px;padding:0 22px;border-radius:999px;border:0;background:var(--v3-ink);color:#fff;font-family:var(--f-ui);font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;white-space:nowrap}
.l-link{min-height:44px;border:0;background:none;padding:0;color:var(--v3-ink);font-family:var(--f-ui);font-size:13px;letter-spacing:.06em;cursor:pointer;white-space:nowrap}
@container (max-height:420px){.l-link{display:none}}

/* English quotes inside the Arabic layout keep their own direction (fixes flipped “ ”). */
.l-quote blockquote,.l-quote b,.l-quote small,.ed-quote span,.ed-quote b,.l-rail blockquote,.l-card figcaption{unicode-bidi:plaintext}
[dir=rtl] .ed-media figcaption{right:auto;left:14px}

/* --- 20. Build a bike, recomposed on the editorial grid:
       left  = kicker, compressed headline, live instruction, actions (stacked pills)
       centre = the 3D model on a soft white card with the timer in its corner
       right = "Fastest builders" as a grey rail, like the sketch-beat side rail
       under the card = the nine pieces as a tick timeline. --- */
#surface[data-view=builder] #main{min-height:0}
#surface[data-view=builder] .assembly{flex:1;min-height:0;container-type:size;display:grid;
 grid-template-columns:minmax(0,.78fr) minmax(0,1.7fr) minmax(0,.46fr);grid-template-rows:auto minmax(0,1fr) auto;
 grid-template-areas:"head stage board" "actions stage board" ". prog .";column-gap:1.8%;row-gap:1.6cqh;padding:1cqh 3.2% 0;box-sizing:border-box}
#surface[data-view=builder] .assembly-heading{display:contents}
#surface[data-view=builder] .assembly-heading>div:first-child{grid-area:head;align-self:end}
#surface[data-view=builder] .assembly-kicker{display:block;font-family:var(--f-ui);font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--v3-muted);margin-bottom:1.4cqh}
#surface[data-view=builder] .assembly-heading h1{margin:0;font-family:var(--f-display);font-weight:400;text-transform:uppercase;font-size:clamp(34px,min(6cqw,15cqh),150px);line-height:.88;letter-spacing:-.015em;color:var(--v3-ink)}
#surface[data-view=builder] .assembly-time{grid-area:stage;align-self:start;justify-self:end;z-index:3;margin:2cqh 2.4%;text-align:end;font-family:var(--f-ui)}
#surface[data-view=builder] .assembly-time strong{display:block;font-family:var(--f-display);font-weight:400;font-size:clamp(22px,6cqh,56px);line-height:1;font-variant-numeric:tabular-nums;color:var(--v3-ink)}
#surface[data-view=builder] .assembly-time span{font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--v3-muted)}
#surface[data-view=builder] .assembly-stage{grid-area:stage;margin:0!important;min-height:0;position:relative;border-radius:28px!important;background:#f7f7f7!important;color:var(--v3-ink)!important;overflow:hidden}
#surface[data-view=builder] .assembly-canvas{position:absolute;inset:0}
#surface[data-view=builder] .assembly-bottom{grid-area:actions;align-self:start;margin:0!important;display:flex!important;flex-direction:column;align-items:flex-start;gap:12px!important;padding:0!important}
#surface[data-view=builder] .assembly-message{font-family:var(--f-ui);font-weight:300;font-size:clamp(14px,2.6cqh,22px);line-height:1.4;color:var(--v3-ink);max-width:28ch;margin-bottom:1.2cqh}
#surface[data-view=builder] .assembly-bottom button{width:auto}
#surface[data-view=builder] .assembly-scores{grid-area:board;align-self:stretch;margin:0!important;min-height:0;border-radius:18px;background:#e7e7e7!important;padding:3cqh 10%;box-sizing:border-box;display:flex;flex-direction:column;gap:1.6cqh;overflow:hidden}
#surface[data-view=builder] .assembly-scores[hidden]{display:none}
#surface[data-view=builder] .assembly-board-heading h2{margin:0;font-family:var(--f-ui);font-size:10px!important;font-weight:700;letter-spacing:.14em;text-transform:uppercase;white-space:normal!important}
#surface[data-view=builder] .assembly-board-heading p{margin:6px 0 0;font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--v3-muted)}
#surface[data-view=builder] .assembly-board-heading::after{content:"";display:block;width:24px;height:1px;background:var(--v3-ink);margin-top:1.6cqh}
#surface[data-view=builder] .assembly-board-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0;min-height:0}
#surface[data-view=builder] .assembly-board-list li{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:baseline;padding:1.3cqh 0;border:0!important;border-top:1px solid var(--v3-rule)!important;background:none!important;box-shadow:none!important}
#surface[data-view=builder] .assembly-board-rank{font-size:11px;letter-spacing:.1em;color:var(--v3-muted)}
#surface[data-view=builder] .assembly-board-list li:first-child .assembly-board-rank,#surface[data-view=builder] .is-your-build .assembly-board-rank{color:var(--v3-red);font-weight:700}
#surface[data-view=builder] .assembly-board-list strong{display:block;font-family:var(--f-ui);font-size:clamp(14px,2.8cqh,22px);font-weight:700;font-variant-numeric:tabular-nums}
#surface[data-view=builder] .assembly-board-list li span:not(.assembly-board-rank){display:block;font-size:11px;color:var(--v3-muted)}
#surface[data-view=builder] .assembly-progress{grid-area:prog;font-family:var(--f-ui);display:flex;flex-direction:column;gap:8px;padding-bottom:4px}
#surface[data-view=builder] .assembly-progress>span{font-size:9px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;text-align:center;order:2}
#surface[data-view=builder] .assembly-progress-track{display:flex;gap:6px}
#surface[data-view=builder] .assembly-progress-track i{flex:1;height:2px;background:var(--v3-rule)!important;border-radius:0}
#surface[data-view=builder] .assembly-progress-track i.complete{height:3px;background:var(--v3-ink)!important}
#surface[data-view=builder] .assembly-info{background:#fff!important;color:var(--v3-ink)!important;border-radius:16px;box-shadow:0 0 0 1px var(--v3-rule)}
@container (max-height:430px){#surface[data-view=builder] .assembly-board-list li:nth-child(n+4){display:none}#surface[data-view=builder] .assembly-board-heading p{display:none}}
@media(max-width:900px){#surface[data-view=builder] .assembly{grid-template-columns:minmax(0,.9fr) minmax(0,1.6fr);grid-template-areas:"head stage" "actions stage" "board prog"}}
[dir=rtl] #surface[data-view=builder] .assembly-heading h1{font-family:var(--f-arabic);font-weight:500;letter-spacing:0;line-height:1.1}
#surface[data-view=builder] .assembly-board-heading{display:block!important}
#surface[data-view=builder] .assembly-bottom button:disabled{opacity:.35}

/* Slow pan on cropped photographs, toward the bike. A script finds where the bike sits
   in each photo (sharp, saturated detail against blurred or plain backgrounds) and sets
   --fx/--fy; the photo then drifts once from where it rests toward that point and holds.
   Duration and a slight push-in vary per photo so no two screens move alike. */
/* object-position alone does nothing when a photo already fits its frame, which is why most
   screens had stopped moving. Every photo now also pushes in around the bike itself, so
   the drift is always visible but stays slow. */
@keyframes v3Pan{from{object-position:var(--sx,50%) var(--sy,50%);transform:scale(1.02)}to{object-position:var(--fx,50%) var(--fy,50%);transform:scale(var(--pz,1.08))}}
@media(prefers-reduced-motion:no-preference){
img.v3-pan{transform-origin:var(--fx,50%) var(--fy,50%);animation:v3Pan var(--pd,22s) cubic-bezier(.33,0,.25,1) forwards;will-change:transform}
.ed-media>img.v3-pan{animation:historyIn .8s ease both,v3Pan var(--pd,22s) cubic-bezier(.33,0,.25,1) forwards}
}
.ed-media figcaption{display:none}
/* Lightbox. Photographs open full screen over a blurred copy of themselves; the dark
   copy panel carries number, name and description, the picture is shown whole. */
#main :is(.ed-media>img,.ed-tile-detail img,.l-main img,.l-inset img,.l-rail figure img,.inline-film>img,.editorial-visual img){cursor:zoom-in}
.lb{position:fixed;inset:0;z-index:1000;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:2.4vw;padding:6vh 3vw;opacity:0;transition:opacity .25s ease;font-family:var(--f-ui,"Titillium Web",Arial,sans-serif);color:#fff}
.lb.in{opacity:1}
.lb-bg{position:absolute;inset:-30px;background:#111 center/cover no-repeat;filter:blur(30px) brightness(.55);z-index:0}
/* The page itself, blurred: paper at the edges, the black panel in the middle. */
.lb::before{content:"";position:absolute;inset:0;z-index:-1;background:#f2f2f21a;backdrop-filter:blur(26px) saturate(1.05);-webkit-backdrop-filter:blur(26px) saturate(1.05)}
.lb-card{display:grid;grid-template-columns:minmax(260px,32%) minmax(0,1fr);height:min(78vh,900px);border-radius:22px;overflow:hidden;background:#1b1c21;box-shadow:0 30px 80px #00000080;transform:scale(.97);transition:transform .3s ease}
.lb.in .lb-card{transform:none}
.lb-copy{display:flex;flex-direction:column;padding:clamp(20px,3.2vh,40px) clamp(20px,2.2vw,36px);min-height:0}
.lb-num{font-size:clamp(28px,4.4vh,46px);font-weight:300;line-height:1;letter-spacing:.02em;color:#8f9098}
.lb-num b{font-weight:300;color:#fff}
.lb-title{margin:1.6vh 0 0;font-size:clamp(20px,3.3vh,36px);font-weight:300;letter-spacing:.14em;text-transform:uppercase;line-height:1.1;text-wrap:balance}
.lb-sub{margin-top:1vh;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#a6a7ae}
.lb-sub:empty{display:none}
.lb-body{margin:auto 0;max-width:34ch;font-size:clamp(13px,1.8vh,16px);line-height:1.55;letter-spacing:.06em;text-transform:uppercase;color:#e4e4e8;overflow:auto;min-height:0;padding:2vh 0;text-wrap:pretty}
.lb-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;border-top:1px solid #ffffff1f;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#cfd0d6}
.lb-frame{margin:0;min-width:0;min-height:0;background:#0c0c0c;display:grid;place-items:center;position:relative;overflow:hidden}
.lb-frame .lb-pic{position:relative;z-index:1}
.lb-pic{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;display:block;animation:none!important}
.lb-arrow,.lb-close{width:56px;height:56px;border-radius:50%;border:1px solid #ffffff38;background:#0a0a0acc;color:#fff;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center;transition:background .2s ease}
.lb-arrow:hover,.lb-close:hover{background:#1f1f22}
.lb-arrow:disabled{opacity:.25;cursor:default}
.lb-arrow[hidden]{visibility:hidden;display:grid}
.lb-close{position:absolute;top:3vh;right:3vw;font-size:28px}
.lb[dir=rtl] .lb-close{right:auto;left:3vw}
.lb[dir=rtl] .lb-arrow{transform:scaleX(-1)}
.lb[dir=rtl] .lb-title,.lb[dir=rtl] .lb-body,.lb[dir=rtl] .lb-sub,.lb[dir=rtl] .lb-foot{letter-spacing:0;text-transform:none}
@media(max-aspect-ratio:1/1),(max-width:760px){.lb{grid-template-columns:1fr;padding:9vh 4vw 4vh}.lb-arrow{display:none}.lb-card{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:84vh}.lb-body{margin:1.4vh 0}}
@media(prefers-reduced-motion:reduce){.lb,.lb-card{transition:none}}

/* Themes. Set on <html data-skin>. Light is the designed default: paper ground, black
   stages. Inverted and Red are produced by inverting the surface's lightness while
   keeping hue (invert + 180° hue turn), then turning photos, film and 3D back so only the
   interface flips: black ground, white stages, black text inside them. Red then swaps the
   ground for Ducati red. */
html[data-skin=inverted] #surface,html[data-skin=red] #surface{filter:invert(1) hue-rotate(180deg)}
/* Counter-invert every visual. !important because some photos carry their own filter
   (the detail tile's "filter:none!important" was cancelling this and leaving it inverted). */
html:is([data-skin=inverted],[data-skin=red]) #surface :is(img,video,canvas,iframe,svg image){filter:invert(1) hue-rotate(180deg)!important}
html:is([data-skin=inverted],[data-skin=red]) #surface .ed-tile:not(.ed-tile-detail) img{filter:invert(1) hue-rotate(180deg) grayscale(1)!important}
/* Anything painted as a CSS background photo is counter-inverted on its own layer. */
html:is([data-skin=inverted],[data-skin=red]) #surface :is(.cinema-media,.l-main,.ed-media,.editorial-visual)>:not(img):not(figcaption):not(iframe)[style*="background-image"]{filter:invert(1) hue-rotate(180deg)!important}
html:is([data-skin=inverted],[data-skin=red]) #surface .brand img{filter:brightness(0)!important}
html[data-skin=inverted],html[data-skin=inverted] body{background:#000}
html[data-skin=red],html[data-skin=red] body{background:#e30613}
html[data-skin=red] #surface{--v3-paper:transparent;--paper:transparent;background-color:transparent!important;background-image:none!important}


/* Layouts. Panes are full copies of the experience, one per player, rotated to face them. */
.ly{position:fixed;inset:0;display:grid;background:#000;gap:0;z-index:1}
.ly>div{position:relative;overflow:hidden;min-width:0;min-height:0}
.ly iframe{position:absolute;border:0;display:block;background:#f2f2f2}
.ly-quad{grid-template:1fr 1fr/1fr 1fr}
.ly-duo-tb{grid-template:1fr 1fr/1fr}
.ly-duo-lr{grid-template:1fr/1fr 1fr}
.ly-quad>div:nth-child(-n+2) iframe,.ly-duo-tb>div:first-child iframe{inset:0;width:100%;height:100%;transform:rotate(180deg)}
.ly-quad>div:nth-child(n+3) iframe,.ly-duo-tb>div:last-child iframe{inset:0;width:100%;height:100%}
.ly-duo-lr iframe{left:50%;top:50%;width:var(--ph);height:var(--pw);transform:translate(-50%,-50%) rotate(90deg)}
.ly-duo-lr>div:last-child iframe{transform:translate(-50%,-50%) rotate(-90deg)}
.ly-split{position:absolute;background:#000;z-index:2;pointer-events:none}

/* Operator panel — opened by three quick taps on the Ducati wordmark. */
.op{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;background:#000000b3;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font-family:var(--f-ui,"Titillium Web",Arial,sans-serif)}
.op-card{width:min(640px,92vw);background:#fff;color:#0a0a0a;border-radius:22px;padding:30px 32px;display:flex;flex-direction:column;gap:22px}
.op-card h2{margin:0;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.op-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.op-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.op-opt{display:flex;flex-direction:column;align-items:center;gap:10px;border:1px solid #0000001f;border-radius:14px;background:#f7f7f7;padding:14px 8px;min-height:96px;cursor:pointer;font:inherit;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#0a0a0a}
.op-opt[aria-pressed=true]{border-color:#0a0a0a;background:#fff;box-shadow:inset 0 0 0 1px #0a0a0a;font-weight:700}
.op-ico{width:64px;height:40px;display:grid;gap:3px}
.op-ico i{display:block;border-radius:3px;background:#0a0a0a}
.op-ico i.f{background:#6b6b6b}
.op-sw{width:64px;height:40px;border-radius:6px;display:grid;place-items:center;border:1px solid #0000001f}
.op-sw i{display:block;width:36px;height:18px;border-radius:4px}
.op-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
.op-foot small{font-size:11px;color:#6b6b6b;letter-spacing:.04em}
.op-done{border:0;border-radius:999px;background:#0a0a0a;color:#fff;font:inherit;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:14px 28px;min-height:48px;cursor:pointer}

/* Reds survive the theme flip: pre-invert the accent tokens so the surface filter turns
   them back into Ducati red. */
/* invert()+hue-rotate(180deg) keeps hue and flips lightness, so a red only needs its
   lightness mirrored to come back out as Ducati red. */
html:is([data-skin=inverted],[data-skin=red]) #surface{--v3-red:#f5222e;--red:#f5222e;--v3-signal:#ff1a1a;--duc-red:#f5222e}

/* Inset rings cut through to the ground, as on paper. The image is counter-inverted, so its
   ring colour must be written as the colour you should SEE: the inverted ground, or red. */
html[data-skin=inverted] body #surface .l-media .l-inset img{box-shadow:0 0 0 6px #0d0d0d!important}
html[data-skin=red] body #surface .l-media .l-inset img{box-shadow:0 0 0 6px #e30613!important}
html:is([data-skin=inverted],[data-skin=red]) #surface .ed-inset{box-shadow:none!important}

/* --- History variety. Three compositions from the boards. "form" is the default grid. --- */
/* HAND ("Made by hand."): headline across the top, copy low-left, one big image low-right,
   detail tile overlapping the image's top-right corner, meta as the quote spot top-right. */
.ed-v-hand,.ed-v-line{grid-template-columns:minmax(0,.62fr) minmax(0,1.5fr)}
.ed-v-hand .ed-head,.ed-v-line .ed-head{grid-column:1 / 3;position:relative;z-index:2}
.ed-v-hand .ed-meta,.ed-v-line .ed-meta{display:none}
.ed-v-hand .ed-left,.ed-v-line .ed-left{justify-content:flex-end;position:relative;z-index:2}
.ed-v-hand .ed-tile,.ed-v-line .ed-tile{display:none}
.ed-v-hand .ed-media{margin-top:6cqh;overflow:visible}
.ed-v-hand .ed-media>img{border-radius:14px}
.ed-v-hand .ed-inset{display:block!important;left:auto;right:4%;top:-9cqh;bottom:auto;width:min(34%,340px);aspect-ratio:16/9;border-radius:12px;overflow:hidden;box-shadow:0 0 0 6px #000}
.ed-v-hand .ed-inset img{filter:grayscale(1)}
/* LINE ("It starts with a line"): the photograph IS the stage, full bleed behind the type,
   darkened on the left for the copy; detail tile stacked top-right. */
#surface .ed-v-line .ed-media{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;margin:0!important;border-radius:0!important;z-index:0;grid-area:auto}
.ed-v-line .ed-media::after{content:none}
/* Clear delimitation instead of a fade: the copy column is a solid black plate. */
/* Headline sits straight on the photograph: no block, no gradient. A tight shadow only
   keeps the white edge crisp on bright frames. */
#surface .ed-v-line .ed-head{position:relative;z-index:2}
#surface .ed-v-line .ed-head :is(h1,.ed-year,b){text-shadow:0 1px 2px #0009}
.ed-v-line .ed-left{background:#000;margin:0 0 -3.4cqh -2.6cqw;padding:2.4cqh 2.4cqw 3.4cqh 2.6cqw;border-top-right-radius:14px;align-self:end;justify-content:flex-start!important}
#surface .ed-v-line .ed-inset{display:block!important;left:auto!important;top:auto!important;right:2.6%!important;bottom:4cqh!important;width:min(22%,300px)!important;aspect-ratio:4/3;border-radius:12px;overflow:hidden;z-index:2;box-shadow:0 0 0 1px #ffffff33}
.ed-v-line .ed-media figcaption{display:none}
.ed-v-line .ed-left p{max-width:34ch}
@container (max-height:460px){.ed-v-hand .ed-inset{display:none!important}.ed-v-hand .ed-media{margin-top:0}}
[dir=rtl] #surface .ed-v-line .ed-inset{right:auto!important;left:2.6%!important}
[dir=rtl] .ed-v-line .ed-media::after{transform:scaleX(-1)}

/* --- One rule for every bottom timeline: full width, same gutters, number over rule,
       current named once, centred beneath. Big hit areas for fingers. --- */
#surface :is(.history-timeline,.v3-timeline,.aero-steps,.landing-steps,.menu-ticks){margin:0 3.2%!important;width:auto!important;max-width:none!important;padding:10px 0 14px!important;position:relative}
#surface .history-ticks,#surface .editorial-chapters,#surface :is(.aero-steps,.landing-steps)>div:first-child{display:flex!important;gap:10px!important;width:100%!important;max-width:none!important;margin:0!important;justify-content:stretch!important}
#surface :is(.history-ticks,.editorial-chapters) button,#surface :is(.aero-steps,.landing-steps) button{flex:1 1 0!important;min-width:0!important;max-width:none!important;min-height:56px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:9px!important;padding:6px 0 0!important;text-align:start!important}
#surface :is(.history-ticks,.editorial-chapters,.aero-steps,.landing-steps) button>span{font-size:12px;letter-spacing:.1em;order:1}
#surface :is(.history-ticks,.editorial-chapters,.aero-steps,.landing-steps) button>i{order:2;display:block;width:100%;height:2px;background:var(--line)}
#surface :is(.history-ticks,.editorial-chapters,.aero-steps,.landing-steps) [aria-current=step]>i{height:3px;background:var(--ink)}
/* Every stage is named under its own tick. Grey when not selected, full ink when selected. */
#surface :is(.history-ticks,.editorial-chapters,.aero-steps,.landing-steps) button>small{order:3;display:block!important;position:static!important;text-align:start;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);white-space:normal;overflow-wrap:normal;word-break:keep-all;hyphens:none;line-height:1.3;letter-spacing:.08em;max-width:100%;min-height:28px;transition:color var(--dur-state,.2s) ease}
#surface :is(.history-ticks,.editorial-chapters,.aero-steps,.landing-steps) [aria-current=step]>small{color:var(--ink);font-weight:700}
