/* ==========================================================================
   Mission S concept — the parts the component library does not have.
   Loads after components.css and motion.css, so it is the last word.

   Nothing here names a color or a face. Every value routes through
   tokens.css, which is the only file a rebrand touches.
   ========================================================================== */

/* ==========================================================================
   1. The environment
   One fixed layer behind the whole page: a graphite wash lit where the car
   sits, a whisper of grain, and a tick scale down the left edge. It never
   scrolls, so the page reads as one room rather than a stack of sections.
   ========================================================================== */

.env{position:fixed;inset:0;z-index:0;pointer-events:none;}

.env-wash{
  position:absolute;inset:0;
  background:
    radial-gradient(120% 78% at 50% 12%, var(--surface) 0%, var(--ink) 48%, var(--ink-soft) 100%);
  transition:background .9s var(--ease);
}
html.solo .env-wash{
  background:radial-gradient(120% 80% at 50% 32%, #0B0B0E 0%, var(--void) 60%, #000 100%);
}

/* feTurbulence baked into a data URI so it costs one paint and no request.
   multiply on a light canvas: overlay on white does nothing. */
.env-grain{
  position:absolute;inset:0;
  opacity:.04;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.env-scale{
  position:absolute;left:0;top:0;bottom:0;width:22px;
  display:flex;flex-direction:column;justify-content:space-between;
  padding-block:14vh;
}
.env-scale i{display:block;height:1px;width:9px;background:var(--line);}
.env-scale i:nth-child(4n+1){width:17px;background:var(--line-2);opacity:.5;}
@media (max-width:860px){.env-scale{display:none;}}

/* Everything in the document sits above the environment. The header keeps
   the library's sticky: it was in this list until 29 Oct, which made it
   position:relative and scrolled the chapter index off the page with the
   hero, on a page whose brief says the index stays. */
.concept-bar,main,.site-footer{position:relative;z-index:1;}
.site-header{z-index:60;}
.concept-bar{z-index:61;}

/* ==========================================================================
   2. Type and the accent rule
   Red is never a link, never an eyebrow, never a heading on this build. It
   is the redline, the TRACK face, the button and the focus ring. So the
   library's red eyebrow is turned off here on purpose.
   ========================================================================== */

.eyebrow{color:var(--text-mute);margin-bottom:1.4rem;letter-spacing:.22em;font-size:.7rem;}
.eyebrow::before{background:var(--line-2);opacity:1;width:2.2rem;}

.lede{font-size:clamp(1.02rem,1.5vw,1.2rem);line-height:1.62;max-width:46ch;}

h2{margin-bottom:0;}
.ch{padding-block:clamp(6rem,13vw,11rem);position:relative;}

/* ==========================================================================
   3. Header and the chapter index
   ========================================================================== */

.site-header{padding-block:1.1rem;}
.site-header.is-stuck{background:var(--ink-glass);}

.brand-name{font-stretch:112%;text-transform:uppercase;letter-spacing:.01em;font-size:1.12rem;}
.brand-sub{letter-spacing:.3em;font-size:.5rem;}

.chapters ul{display:flex;align-items:center;gap:clamp(.5rem,1.6vw,1.4rem);}
.chapters a{
  display:flex;align-items:baseline;gap:.5rem;
  padding:.45rem .2rem;
  font-family:var(--font-mono);
  font-size:.7rem;letter-spacing:.1em;
  color:var(--text-mute);
  transition:color var(--t);
}
.chapters a:hover{color:var(--text);}
.chapters .ch-t{
  display:none;
  font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;
}
.chapters a[aria-current="true"]{color:var(--text);}
.chapters a[aria-current="true"] .ch-t{display:inline;}
@media (max-width:760px){
  .chapters .ch-t{display:none !important;}
  .chapters a{padding:.45rem .1rem;}
}
/* At 375 the brand lockup and five chapter numbers do not both fit, and
   the fifth ran off the edge. The sub-label goes: the concept ribbon one
   row above already says what this is. Below 600 since 29 Oct, so the
   crest has the middle of the bar to itself. */
@media (max-width:600px){.brand-sub{display:none;}}
@media (max-width:440px){
  .chapters ul{gap:.42rem;}
  .chapters a{font-size:.66rem;}
}

/* Porsche's mark, centered in the bar as on their own page: the wordmark
   where there is room for it beside the lockup and the chapter index with
   its longest label open, the crest below that. The wordmark takes the
   header's type color, so it follows the cabin and the white page; the
   crest is their full color artwork and is never tinted. */
.header-inner{position:relative;}
.porsche-mark{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:block;line-height:0;pointer-events:none;
}
.porsche-wordmark{display:block;width:clamp(132px,12vw,220px);height:auto;fill:var(--text);transition:fill var(--t);}
.porsche-crest{display:none;}
.porsche-crest img{display:block;width:22px;height:auto;}
@media (max-width:899px){
  .porsche-wordmark{display:none;}
  .porsche-crest{display:block;}
}

/* ==========================================================================
   4. Hero. Ignition.
   ========================================================================== */

/* The page opens inside the binnacle, and the scroll turns the key
   (ignition.js, played by the layer's film move). It is the one place the
   white page starts black, because it is the inside of the car: in the car
   the instruments sit in a dark hood. It ends on Porsche's own white studio,
   so the page they art-directed is where this arrives, not where it starts.

   The stage runs up under the header. Its words are on the cabin, so they
   read the cabin's tokens (tokens.css). Not the library's .hero, which
   brings padding, a 620 px copy column and two layers of atmosphere that
   came out as a pink wash in Porsche red on the first pass. */
/* color is set here, not inherited: body resolved var(--text) to the page's
   black before this scope existed, and every heading in it inherits that */
.ignition{margin-top:calc(-1 * var(--header-h, 74px));background:var(--void);color:var(--text);}
.ignition [data-m-stage]{
  display:flex;flex-direction:column;justify-content:flex-end;
  background:var(--void);
}

/* The words take the bottom of the frame, which the camera leaves empty
   at the start of the run: the cabin floor under the instruments. --fold
   keeps them out from under a phone's toolbar (the stage is lvh tall and
   the window is not, until the first scroll), and --bar-h out from under
   the concept ribbon, which sits above the stage at the first paint. */
.ignition-copy{
  position:relative;
  padding-bottom:calc(var(--fold) + var(--bar-h, 0px) + clamp(2rem,7vh,5rem));
}
.ignition h1{max-width:none;}
.ignition-sub{
  margin-top:1.5rem;max-width:40ch;
  font-size:clamp(1.02rem,1.4vw,1.18rem);
  color:var(--text-dim);line-height:1.58;
}
@media (min-width:960px){
  .ignition-copy .container{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
    column-gap:clamp(2rem,5vw,4.5rem);
    align-items:end;
  }
  .ignition-copy .eyebrow,
  .ignition-copy h1{grid-column:1;}
  .ignition-sub{grid-column:2;grid-row:2;margin-top:0;padding-bottom:.55rem;}
}

/* The hint keeps its promise now: the scroll does start it. */
.ignition-hint{
  position:absolute;
  right:max(1.25rem, calc((100% - var(--max)) / 2 + 1.25rem));
  bottom:calc(var(--fold) + var(--bar-h, 0px) + 1.1rem);
  display:flex;align-items:center;gap:.7rem;
  font-family:var(--font-mono);font-size:.66rem;
  letter-spacing:.24em;text-transform:uppercase;
  color:var(--text-mute);
}
.ignition-hint-rule{
  display:block;width:46px;height:1px;background:var(--line-2);
  transform-origin:left center;
  animation:sweep 2.6s var(--ease) infinite;
}
@keyframes sweep{
  0%,100%{transform:scaleX(.25);opacity:.4;}
  50%{transform:scaleX(1);opacity:1;}
}
@media (max-width:720px){.ignition-hint{display:none;}}

/* The header and the ribbon over the cabin. mission.js puts .on-dark on the
   header while the dark part of the run is under it, and takes it off as
   the light takes the screen. It keeps its glass, which the cabin's tokens
   make dark: with reduced motion the hero scrolls like any section, and a
   clear header let the headline slide under the wordmark (shoot.js caught
   it at both widths). */
.site-header{transition:background var(--t),border-color var(--t),padding var(--t),opacity .7s var(--ease),transform .7s var(--ease);}

/* ==========================================================================
   5. Chapter 01. The short version.
   Asymmetric: the head holds the left column, the three readings are a
   ruled list on the right. Nothing else on the page uses this skeleton.
   ========================================================================== */

.creed-grid{display:grid;gap:clamp(2.5rem,6vw,5rem);}
@media (min-width:900px){
  .creed-grid{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:start;}
  .creed-head{position:sticky;top:calc(var(--header-h,74px) + 3rem);}
}

.creed{border-top:1px solid var(--line);}
.creed li{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:clamp(1rem,2.5vw,2rem);
  padding-block:clamp(1.75rem,3.5vw,2.5rem);
  border-bottom:1px solid var(--line);
}
.creed-n{
  font-family:var(--font-mono);font-size:.74rem;
  letter-spacing:.1em;color:var(--text-mute);
  padding-top:.35rem;
}
.creed h3{
  font-size:clamp(1.5rem,3vw,2.1rem);
  letter-spacing:-.012em;
}
.creed p{grid-column:2;margin-top:.7rem;color:var(--text-dim);max-width:44ch;}

/* ==========================================================================
   6. Chapter 02. The line.
   The SVG sits exactly on the photograph: same box, same aspect, viewBox
   1000x681, so the path lands on the car at every width.
   ========================================================================== */

/* Heading left, lede dropped to the baseline on the right. Chapter 01 one
   section earlier is a sticky head beside a ruled list, so these two do not
   share a skeleton. */
.line-head{margin-bottom:clamp(2.5rem,5vw,4rem);}
.line-head h2{max-width:16ch;}
.line-head .lede{margin-top:1.4rem;}
@media (min-width:960px){
  .line-head{
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
    column-gap:clamp(2rem,5vw,4.5rem);
    align-items:end;
  }
  .line-head .eyebrow{grid-column:1;}
  .line-head h2{grid-column:1;}
  .line-head .lede{grid-column:2;grid-row:2;margin-top:0;padding-bottom:.5rem;}
}

.line-stage{
  position:relative;margin:0;
  width:min(100%, var(--max));
  margin-inline:auto;
  padding-inline:clamp(1.25rem,4vw,2rem);
}
.line-stage picture{display:block;position:relative;}
.line-stage img{
  width:100%;height:auto;display:block;
  border-radius:var(--r);
}
.line-draw{
  position:absolute;
  inset:0 clamp(1.25rem,4vw,2rem);
  width:auto;height:100%;
  color:#0B0C0E;
  pointer-events:none;
}
/* The car is white and the studio is white, so the line is drawn near
   black with a white halo: the halo carries it across the dark glass and
   the front intake, the stroke carries it across the body. */
#mainLine{
  filter:drop-shadow(0 0 3px rgba(255,255,255,.95)) drop-shadow(0 0 7px rgba(255,255,255,.7));
}
#lineNodes circle{
  fill:#FFFFFF;
  stroke:#0B0C0E;
  stroke-width:2;
  opacity:0;
  transform-box:fill-box;
  transform-origin:center;
  transition:opacity .4s var(--ease);
}
#lineNodes circle.is-on{opacity:1;}
#lineNodes circle.is-live{fill:var(--accent);stroke:var(--accent);}

/* The five readings. Always visible, never hidden: a reader gets all of
   them, and contrast.js measures what is really painted. The active one
   lifts rather than appearing. */
.marks{
  display:grid;gap:clamp(1.25rem,2.5vw,1.75rem);
  margin-top:clamp(2.5rem,5vw,3.75rem);
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
.mark{
  position:relative;
  padding:0 0 0 1rem;
  border-left:2px solid var(--line);
  transition:border-color var(--t),transform var(--t);
}
.mark.is-on{border-left-color:var(--accent);transform:translateY(-4px);}
.mark picture{display:block;margin-bottom:.95rem;}
.mark img{
  width:100%;height:118px;object-fit:cover;
  border-radius:var(--r-sm);
  background:var(--surface);
  opacity:.58;
  transition:opacity var(--t);
}
.mark.is-on img{opacity:1;}
.mark-n{
  display:block;
  font-family:var(--font-mono);font-size:.68rem;
  letter-spacing:.14em;color:var(--text-mute);
  margin-bottom:.3rem;
}
.mark h3{font-size:1.02rem;}
.mark p{margin-top:.45rem;font-size:.9rem;color:var(--text-dim);line-height:1.55;}

/* ==========================================================================
   7. Chapter 03. The binnacle.
   The cabin again, mid page: a film stage drawn live (ignition.js's
   'binnacle' reel), the words on the cabin floor under the instruments as
   in the hero, and the stage running flush from the top of the chapter.
   Then Porsche's two photographs on the white page, two frames
   deliberately unequal, so they do not read as chapter 02's grid.
   ========================================================================== */

.ch--binnacle{padding-top:0;}
/* color set here, not inherited, for the same reason as .ignition's */
.binnacle-run{background:var(--void);color:var(--text);}
.binnacle-run [data-m-stage]{
  display:flex;flex-direction:column;justify-content:flex-end;
  background:var(--void);
}
/* --fold, as in the hero: the stage is lvh tall, and on a phone the bottom
   of it can be under the browser's toolbar */
.binnacle-copy{position:relative;padding-bottom:calc(var(--fold) + clamp(2rem,7vh,5rem));}
.binnacle-copy h2{max-width:none;}
.binnacle-copy .lede{margin-top:1.4rem;max-width:44ch;color:var(--text-dim);}
@media (min-width:960px){
  .binnacle-copy .container{
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);
    column-gap:clamp(2rem,5vw,4.5rem);
    align-items:end;
  }
  .binnacle-copy .eyebrow,
  .binnacle-copy h2{grid-column:1;}
  .binnacle-copy .lede{grid-column:2;grid-row:2;margin-top:0;padding-bottom:.45rem;}
}

.bshots{display:grid;gap:clamp(1.5rem,3vw,2.25rem);padding-top:clamp(4.5rem,10vw,8rem);}
@media (min-width:900px){
  .bshots{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);align-items:end;}
}
.bshot{margin:0;}
.bshot img{
  width:100%;height:auto;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--surface);
}
.bshot figcaption{
  margin-top:.95rem;
  font-family:var(--font-mono);
  font-size:.76rem;letter-spacing:.06em;
  color:var(--text-dim);
}
.bshot--track figcaption{color:var(--text-dim);}

/* ==========================================================================
   8. Chapter 04. The parts you touch.
   sideways: the layer pins the section and runs the row left on 1024 and
   up. Below that motion.css keeps it a native swipe row.
   ========================================================================== */

.ch--touch{padding-block:0;}
.touch-inner{
  min-height:100svh;
  display:flex;flex-direction:column;justify-content:center;
  gap:clamp(2rem,4vw,3rem);
  padding-block:clamp(4rem,8vh,6rem);
  overflow:hidden;
}
.touch-head h2{max-width:14ch;}
.touch-head .lede{margin-top:1.1rem;}

.touch-row{
  display:flex;align-items:stretch;
  gap:clamp(1rem,2vw,1.75rem);
  padding-inline:clamp(1.25rem,4vw,2rem);
  will-change:transform;
}
/* Three selectors deep on purpose. motion.css sets
   [data-m="sideways"] [data-m-row] > *{flex:none}, which is (0,2,0) and
   beats a bare .touch-card whatever the file order, so the cards sized to
   their 900 px images and one card filled most of the screen. */
.ch--touch .touch-row > .touch-card{
  flex:0 0 min(78vw,420px);
  display:flex;flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
}
.touch-card picture{display:block;}
/* A height rather than a ratio, so the whole card still fits a short
   laptop screen while the section is pinned. */
.touch-card img{
  width:100%;height:clamp(168px,26svh,280px);object-fit:cover;
}
.touch-card h3{
  margin:1.25rem 1.3rem 0;
  font-size:1.12rem;
}
.touch-card p{
  margin:.6rem 1.3rem 1.5rem;
  font-size:.93rem;color:var(--text-dim);
}

/* ==========================================================================
   9. Chapter 05. On your own.
   ========================================================================== */

/* The one dark island in a white page, and the only place the dark studio
   frame is used. It foreshadows the blackout rather than announcing it, so
   the section scopes the text tokens rather than hard coding light values. */
.ch--solo{
  position:relative;
  min-height:100svh;
  display:flex;align-items:center;
  overflow:hidden;
  padding-block:clamp(5rem,12vh,9rem);
  --text:#F2F4F6;
  --text-dim:#CDD3D9;
  --text-mute:#A7AEB6;
  --line-2:rgba(242,244,246,.42);
  color:var(--text);
}
.solo-frame{position:absolute;inset:0;z-index:0;}
.solo-frame img{width:100%;height:100%;object-fit:cover;object-position:50% 52%;}
.solo-veil{
  position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(to right, rgba(5,5,7,.94) 0%, rgba(5,5,7,.82) 38%, rgba(5,5,7,.42) 68%, rgba(5,5,7,.6) 100%),
    linear-gradient(to bottom, rgba(5,5,7,.55) 0%, rgba(5,5,7,.2) 40%, rgba(5,5,7,.8) 100%);
}
.solo-copy{position:relative;z-index:2;}
.solo-copy h2{max-width:11ch;}
.solo-copy .lede{margin-top:1.4rem;max-width:44ch;}

/* The button. A real one: focusable, toggleable, announced, and it works
   with the keyboard before it works with the mouse. */
.redbtn{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;
  /* 140 px minimum, not 118: on a phone the return label ran close enough
     to the edge of the disc that contrast.js found a lit pixel from the
     car under its box. A bigger button is the better answer anyway, both
     for the thumb and for the thing it is imitating. */
  width:clamp(140px,16vw,160px);
  height:clamp(140px,16vw,160px);
  margin-top:clamp(2.25rem,5vw,3.25rem);
  border:0;border-radius:50%;
  /* A flat color under the gradient, not only the gradient: a lone
     background-image leaves background-color transparent, and anything
     measuring the pixels behind the label reads the photograph instead of
     the button. */
  background-color:var(--accent);
  background-image:
    radial-gradient(72% 72% at 38% 28%, var(--accent-hover) 0%, var(--accent) 46%, var(--accent-2) 100%);
  color:var(--accent-ink);
  font-family:var(--font-mono);
  font-size:.72rem;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;
  line-height:1.25;text-align:center;
  cursor:pointer;
  box-shadow:0 10px 34px rgba(220,20,23,.3), inset 0 -3px 10px rgba(0,0,0,.4), inset 0 2px 6px rgba(255,255,255,.22);
  transition:transform var(--t-fast),box-shadow var(--t);
}
/* No inline padding: contrast.js measures a text run's whole box, padding
   included, and .9rem of it reached past the dark disc onto the lit hood
   behind the button on a phone. A max-width does the same job inside the
   box instead of outside it. */
.redbtn-label{position:relative;z-index:2;max-width:64%;}
.redbtn-ring{
  position:absolute;inset:-11px;
  border:1px solid var(--line-accent);
  border-radius:50%;
}
.redbtn:hover{transform:translateY(-2px);box-shadow:0 14px 42px rgba(220,20,23,.42), inset 0 -3px 10px rgba(0,0,0,.4), inset 0 2px 6px rgba(255,255,255,.22);}
.redbtn:active{transform:translateY(1px) scale(.985);}
.redbtn[aria-pressed="true"]{
  background-color:#121317;
  background-image:radial-gradient(72% 72% at 38% 28%, var(--surface-3) 0%, var(--surface) 60%, #0A0B0D 100%);
  color:var(--text);
  box-shadow:inset 0 -3px 10px rgba(0,0,0,.5), inset 0 2px 6px rgba(255,255,255,.06);
}
.redbtn[aria-pressed="true"] .redbtn-ring{border-color:var(--line-2);}

.redbtn-help,.solo-state{
  margin-top:1rem;
  font-family:var(--font-mono);
  font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--text-mute);
}
.solo-state:empty{margin-top:0;}
.solo-state{color:var(--text-dim);}

/* ==========================================================================
   10. Close
   ========================================================================== */

.close{
  padding-block:clamp(7rem,18vh,14rem);
  text-align:center;position:relative;
}
.close .container{margin-inline:auto;}
.close-line{
  font-family:var(--font-display);
  font-weight:700;font-stretch:112%;
  text-transform:uppercase;
  font-size:clamp(2.2rem,8vw,6rem);
  line-height:1;letter-spacing:-.02em;
}
.close-sub{
  margin-top:1.6rem;
  color:var(--text-mute);
  font-size:.95rem;
}
.close-links{
  display:flex;flex-wrap:wrap;justify-content:center;
  gap:.9rem 2rem;margin-top:2.75rem;
}
.close-links a{
  font-family:var(--font-mono);
  font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--text-dim);
  padding:.7rem .2rem;
  border-bottom:1px solid var(--line-2);
  transition:color var(--t),border-color var(--t);
}
.close-links a:hover{color:var(--text);border-bottom-color:var(--text);}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer{padding-block:clamp(3rem,6vw,4.5rem);border-top:1px solid var(--line);}
.concept-note{margin-top:0;font-size:.85rem;color:var(--text-mute);line-height:1.6;max-width:72ch;}
.footer-legal a{border-bottom:1px solid var(--line-2);}

/* ==========================================================================
   12. The cluster
   Fixed, lower right. Hidden until cluster.js has drawn the ticks and the
   numerals into it, so a page with no JS never shows a half-built dial.
   ========================================================================== */

.binnacle-pod{
  position:fixed;z-index:70;
  right:clamp(.7rem,1.8vw,1.5rem);
  bottom:max(clamp(.7rem,1.8vw,1.5rem), env(safe-area-inset-bottom));
  width:clamp(104px,22vw,300px);
  padding:9px 11px;
  /* The binnacle stays dark on the white page. In the car it is a dark
     hood with lit dials in it, and on the page it is the one object that
     has to read as an instrument rather than as a panel. */
  background:var(--pod-bg);
  border:1px solid var(--pod-line);
  border-radius:13px;
  box-shadow:0 18px 44px rgba(11,12,14,.26);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
  opacity:0;transform:translateY(12px);
  transition:opacity .7s var(--ease),transform .7s var(--ease);
  pointer-events:none;
}
.binnacle-pod.is-on{opacity:1;transform:none;}
.pod-svg{width:100%;height:auto;display:block;}
@media (max-width:720px){
  .binnacle-pod{width:96px;padding:7px 8px;border-radius:11px;}
}

/* Everything inside the pod is lit against the dark housing, so it reads
   the --pod-* tokens, not the page's. */
.dial-rim{fill:none;stroke:var(--dial-rim);stroke-width:2;}
.dial-rim--main{fill:#0A0B0D;stroke:var(--dial-rim);stroke-width:2.5;}
.dial-face{fill:#171A1E;}
.dial-face--main{fill:var(--dial-face);transition:fill .6s var(--ease);}
.is-track .dial-face--main{fill:var(--dial-face-trk);}

.dial--outer{opacity:1;transition:opacity .55s var(--ease),transform .55s var(--ease);}
/* "the instruments around it rearrange themselves, in line with the
   selected driving mode": in TRACK the two outer dials leave. */
.is-track .dial--outer{opacity:0;transform:scale(.8);}

.dial-arc-bg{fill:none;stroke:rgba(237,239,242,.20);stroke-width:2.4;}
.dial-arc{fill:none;stroke:var(--pod-text);stroke-width:2.4;stroke-linecap:round;}
.dial-num{
  font-family:var(--font-mono);font-size:15px;font-weight:500;
  fill:var(--pod-text);text-anchor:middle;letter-spacing:.5px;
}

.gate-bar{
  fill:none;stroke:var(--pod-dim);stroke-width:3;stroke-linecap:round;
  transition:stroke .35s var(--ease),opacity .35s var(--ease);
}
.gate-bar.is-off{stroke:var(--pod-dim);opacity:.18;}

.rev-tick{stroke:var(--dial-ink);stroke-width:1.2;transition:stroke .6s var(--ease);}
.rev-tick--major{stroke-width:2;}
.is-track .rev-tick{stroke:var(--dial-ink-trk);}
.rev-num{
  font-family:var(--font-mono);font-size:8.6px;font-weight:500;
  fill:var(--dial-ink);text-anchor:middle;dominant-baseline:central;
  transition:fill .6s var(--ease);
}
.is-track .rev-num{fill:var(--dial-ink-trk);}

.rev-fill{fill:none;stroke:var(--accent);stroke-width:13;opacity:0;transition:opacity .5s var(--ease);}
.is-track .rev-fill{opacity:1;}
.rev-redline{fill:none;stroke:var(--accent);stroke-width:3.6;stroke-linecap:round;}

.rev-window{fill:#0A0B0D;stroke:var(--dial-rim);stroke-width:.8;}
.rev-gear{
  font-family:var(--font-mono);font-size:9px;font-weight:500;
  fill:var(--pod-text);text-anchor:middle;
}

.needle-blade{stroke:var(--dial-ink);stroke-width:2.6;stroke-linecap:round;transition:stroke .6s var(--ease);}
.needle-tail{stroke:var(--accent);stroke-width:3.4;stroke-linecap:round;}
.is-track .needle-blade{stroke:var(--accent);}
.rev-hub{fill:var(--dial-rim);stroke:#0A0B0D;stroke-width:1.2;}

.mode-cap-box{fill:none;stroke:var(--dial-ink);stroke-width:.9;opacity:.5;transition:stroke .6s var(--ease);}
.is-track .mode-cap-box{stroke:var(--accent);opacity:1;}
.mode-cap-text{
  font-family:var(--font-mono);font-size:7.4px;font-weight:500;
  letter-spacing:1.05px;fill:var(--dial-ink);text-anchor:middle;
  transition:fill .6s var(--ease);
}
.is-track .mode-cap-text{fill:var(--accent-text);}

/* ==========================================================================
   13. "On your own"
   The chrome goes, the canvas drops to the void, the stage keeps the car
   and one line. Nothing is removed from the flow, so the scroll position
   never jumps under the reader.
   ========================================================================== */

/* The tokens in tokens.css already carry the page from white to black.
   These are the things a token cannot do. */
html.solo .env-grain,
html.solo .env-scale{opacity:0;}
html.solo .site-header,
html.solo .concept-bar,
html.solo .binnacle-pod{opacity:0;transform:translateY(-8px);pointer-events:none;}
html.solo .binnacle-pod{transform:translateY(16px);}

html.solo .solo-veil{
  background:
    linear-gradient(to right, rgba(5,5,7,.9) 0%, rgba(5,5,7,.55) 40%, rgba(5,5,7,.08) 74%, rgba(5,5,7,.3) 100%),
    linear-gradient(to bottom, rgba(5,5,7,.4) 0%, rgba(5,5,7,0) 45%, rgba(5,5,7,.7) 100%);
}
html.solo .solo-copy .eyebrow,
html.solo .solo-copy .lede,
html.solo .redbtn-help{opacity:0;}
html.solo .solo-copy h2{opacity:0;}
html.solo .solo-state{color:var(--text);}

.concept-bar,.env-grain,.env-scale,
.solo-copy .eyebrow,.solo-copy .lede,.solo-copy h2,.redbtn-help{
  transition:opacity .7s var(--ease),transform .7s var(--ease);
}

/* ==========================================================================
   14. Reduced motion
   Everything that moves is off, and every final state is shown. The layer
   turns its own moves off; these are the ones this build added.
   ========================================================================== */

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  /* with reduced motion the scroll starts nothing, so the hint would lie */
  .ignition-hint{display:none;}
  #mainLine{stroke-dasharray:none !important;stroke-dashoffset:0 !important;}
  #lineNodes circle{opacity:1;}
  .mark{transform:none;}
  .mark img{filter:none;}
  .binnacle-pod{transition:none;}
  .rev-needle,.dial--outer,.dial-face--main,.rev-fill,.gate-bar,
  .rev-tick,.rev-num,.needle-blade,.mode-cap-box,.mode-cap-text{transition:none;}
  .site-header,.concept-bar,.solo-copy .eyebrow,.solo-copy .lede,
  .solo-copy h2,.redbtn-help{transition:none;}
  .redbtn{transition:none;}
  .redbtn:hover{transform:none;}
}

/* ==========================================================================
   15. Phones
   ========================================================================== */

@media (max-width:720px){
  .ignition h1{font-size:clamp(2.25rem,10.5vw,3.3rem);}
  .creed li{grid-template-columns:1fr;}
  .creed-n{padding-top:0;margin-bottom:.4rem;}
  .creed p{grid-column:1;}
  .marks{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));}
  .mark img{height:96px;}
  /* The line stays on phones. It is the chapter, not an embellishment. */
  #lineNodes circle{r:5;stroke-width:1.6;}
  #mainLine{stroke-width:3.4;}
  .bshot figcaption{font-size:.72rem;}
  /* One column on a phone, so the lede is read against the top of the
     frame rather than across the lit side of the car. contrast.js had it
     at 3.20:1 before this. */
  .solo-veil{
    background:linear-gradient(to bottom, rgba(5,5,7,.9) 0%, rgba(5,5,7,.78) 42%, rgba(5,5,7,.55) 70%, rgba(5,5,7,.86) 100%);
  }
  .ch--touch .touch-row > .touch-card{flex-basis:80vw;}
  .close-links{gap:.6rem 1.25rem;}
}

/* Below 1024 the sideways row is a native swipe, so the section stops
   being a full screen and becomes an ordinary one. */
@media (max-width:1023px){
  .touch-inner{min-height:0;padding-block:clamp(4rem,10vw,6rem);}
}
