/* Obsoletist — Returning Fold. Bright architectural world, silver fold, deep ultramarine. */
@font-face{font-family:"Instrument Serif";src:url(../assets/fonts/instrument-serif-latin-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url(../assets/fonts/instrument-serif-latin-400-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Instrument Sans";src:url(../assets/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}

:root{
  --paper:#f4f8fd;
  --ink:#0c1a3d;
  --ink-soft:#3e5079;
  --ultra:#1b3cc8;
  --ultra-deep:#0f2378;
  --silver:#c4cddc;
  --hair:rgba(12,26,61,.14);
  --glass:rgba(246,249,255,.80);
  --glow:0 1px 18px rgba(255,255,255,.75),0 0 2px rgba(255,255,255,.6);
  --serif:"Instrument Serif",Georgia,"Times New Roman",serif;
  --sans:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --gutter:clamp(16px,5vw,72px);
  --journey-length:1700svh;
  color-scheme:light;
}
*{box-sizing:border-box}
html{background:var(--paper);color:var(--ink);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);font:400 17px/1.55 var(--sans);-webkit-font-smoothing:antialiased;overflow-x:hidden}
h1,h2,h3{font-family:var(--serif);font-weight:400;margin:0}
em{font-style:italic;color:var(--ultra-deep)}
a{color:inherit}
:focus-visible{outline:2px solid var(--ultra);outline-offset:4px;border-radius:2px}
.skip{position:absolute;left:var(--gutter);top:-60px;z-index:20;background:var(--ink);color:#fff;padding:10px 16px;border-radius:999px;text-decoration:none}
.skip:focus{top:16px}

/* ---------- header ---------- */
.bar{position:fixed;inset:0 0 auto 0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:calc(env(safe-area-inset-top) + 22px) var(--gutter) 18px;transition:background .4s,box-shadow .4s}
.bar.solid{background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2);box-shadow:0 1px 0 var(--hair)}
.brand img{display:block;width:clamp(128px,14vw,184px);height:auto}
.bar nav{display:flex;align-items:center;gap:clamp(14px,2.4vw,30px);font-size:14px;letter-spacing:.01em}
.bar nav a{text-decoration:none}
.bar nav a:not(.pill):hover{color:var(--ultra)}
.pill{display:inline-flex;align-items:center;gap:.5em;padding:.62em 1.1em;border-radius:999px;background:var(--ink);color:#fff;text-decoration:none;
  font:500 14px/1 var(--sans);letter-spacing:.01em;white-space:nowrap;transition:background .25s,transform .25s}
.pill:hover{background:var(--ultra)}
.pill.big{font-size:clamp(17px,1.6vw,21px);padding:1em 1.6em;margin-top:28px}
.pill.lead{font-size:16px;padding:.85em 1.4em;margin-top:26px;text-shadow:none;align-self:flex-start}
html.motion .chapter .pill{pointer-events:auto}
@media (max-width:640px){.bar nav a:not(.pill){display:none}.pill{font-size:13px}.pill.lead{font-size:15px;margin-top:18px}}

/* ---------- world (picture layer) ---------- */
.world{position:fixed;inset:0;z-index:0;background:#eaf1fb url(../media/poster.jpg) center/cover no-repeat}
.world canvas{display:block;width:100%;height:100%}
.veil{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .2s linear;
  background:linear-gradient(180deg,rgba(244,248,253,.0),rgba(244,248,253,.35))}
.wash{position:absolute;inset:0;pointer-events:none;opacity:0;will-change:opacity;
  background:radial-gradient(120% 95% at 50% 42%,#fff 0%,#f4f8fd 55%,#e6eefa 100%)}
html.no-js .wash,html.reduced .wash{display:none}
html.no-js .world,html.reduced .world,html.media-failed .world{background-image:url(../media/poster-end.jpg)}
html.no-js .world canvas,html.reduced .world canvas,html.media-failed .world canvas{display:none}

/* ---------- typography shared ---------- */
.eyebrow{font:600 11px/1.3 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--ink-soft);margin:0}
.num{display:inline-block;color:var(--ultra);margin-right:.9em;font-variant-numeric:tabular-nums}
h1,.chapter h2{font-size:clamp(44px,5.6vw,92px);line-height:.98;letter-spacing:-.025em;margin:18px 0 20px}
.lede{font-size:clamp(16px,1.25vw,19px);line-height:1.5;max-width:30em;margin:0;color:var(--ink)}

/* ---------- chapters ---------- */
.chapter{position:relative;padding:22svh var(--gutter) 6svh;max-width:min(720px,100%);text-shadow:var(--glow)}
.chapter .lede{max-width:22em}
html.motion .journey{height:var(--journey-length)}
html.motion .chapter{position:fixed;z-index:2;top:27svh;left:var(--gutter);padding:0;width:min(40vw,640px);opacity:0;pointer-events:none;will-change:opacity,transform}
html.motion .chapter.right{left:auto;right:calc(var(--gutter) + 96px);width:min(34vw,560px)}
html.motion .chapter.final{top:17svh;width:min(34vw,560px)}
html.motion #ch-arrival{opacity:1}

/* faint, oversized, clipped cue at the bottom edge — not an instruction */
.cue{display:none}
html.motion .cue{display:block;position:fixed;z-index:2;left:var(--gutter);right:0;bottom:calc(-.26em + env(safe-area-inset-bottom));
  font:italic 400 clamp(56px,9vw,156px)/1.1 var(--serif);letter-spacing:-.04em;white-space:nowrap;color:var(--ultra-deep);
  opacity:.18;pointer-events:none;-webkit-mask-image:linear-gradient(#000 20%,transparent);mask-image:linear-gradient(#000 20%,transparent)}

.progress{display:none}
html.motion .progress{display:block;position:fixed;z-index:4;left:0;bottom:0;width:100%;height:1px;background:var(--ultra);transform-origin:left;transform:scaleX(0)}

/* chapter rail */
.rail{display:none}
html.motion .rail{display:flex;flex-direction:column;gap:14px;position:fixed;z-index:5;right:calc(var(--gutter) * .45);top:50%;transform:translateY(-50%);transition:opacity .4s}
.rail button{all:unset;cursor:pointer;display:flex;align-items:center;justify-content:flex-end;gap:10px;height:22px;color:var(--ink)}
.rail button::after{content:"";width:18px;height:1px;background:currentColor;opacity:.45;transition:width .35s,opacity .35s,background .35s}
.rail button span{font:500 11px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;opacity:0;transform:translateX(6px);transition:opacity .3s,transform .3s;text-shadow:var(--glow)}
.rail button:hover span,.rail button:focus-visible span,.rail button[aria-current="step"] span{opacity:1;transform:none}
.rail button[aria-current="step"]::after{width:34px;opacity:1;background:var(--ultra)}
.rail.gone{opacity:0;pointer-events:none}

.status{position:fixed;z-index:4;left:var(--gutter);bottom:22px;margin:0;font-size:12px;color:var(--ink-soft);opacity:0;transition:opacity .4s}
.status.show{opacity:1}

/* ---------- after the journey: content over the final frame ---------- */
.after{position:relative;z-index:3;padding:12svh var(--gutter) 0;display:grid;gap:clamp(20px,3vw,36px)}
.panel{scroll-margin-top:110px;background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(1.25);backdrop-filter:blur(22px) saturate(1.25);
  border:1px solid rgba(255,255,255,.7);box-shadow:0 30px 80px -40px rgba(12,26,61,.35);border-radius:4px;
  padding:clamp(28px,5vw,80px);max-width:1180px;width:100%;margin:0 auto}
.panel h2{font-size:clamp(34px,4vw,62px);line-height:1.02;letter-spacing:-.02em;margin:16px 0 clamp(24px,3vw,44px);max-width:16em}
.panel h3{font-size:clamp(23px,1.9vw,29px);line-height:1.12;margin:0 0 10px}
.panel p{margin:0}
.doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:clamp(16px,2vw,28px)}
.door{display:flex;flex-direction:column;gap:14px;padding:clamp(22px,2.6vw,36px);text-decoration:none;border:1px solid var(--hair);border-radius:3px;
  background:rgba(255,255,255,.55);transition:border-color .3s,transform .3s,box-shadow .3s}
.door strong{font:400 clamp(24px,2.2vw,32px)/1.1 var(--serif)}
.door .go{margin-top:auto;padding-top:8px;font-weight:600;font-size:14px;color:var(--ultra)}
.door:hover{border-color:var(--ultra);transform:translateY(-2px);box-shadow:0 18px 40px -26px rgba(27,60,200,.55)}
.trio,.quad{list-style:none;margin:0;padding:0;display:grid;gap:clamp(22px,3vw,44px)}
.trio{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));counter-reset:t}
.trio li{counter-increment:t;border-top:1px solid var(--hair);padding-top:20px}
.trio li::before{content:counter(t,lower-roman) ".";display:block;font:italic 400 20px/1 var(--serif);color:var(--ultra);margin-bottom:14px}
.quad{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.quad li{border-top:1px solid var(--hair);padding-top:18px}
.trio p,.quad p{color:var(--ink-soft)}
.aside{margin-top:clamp(28px,3vw,44px)!important;padding-top:22px;border-top:1px solid var(--hair);font:italic 400 clamp(19px,1.6vw,23px)/1.4 var(--serif);max-width:38em}
.prose{max-width:40em;display:grid;gap:1em;font-size:clamp(16px,1.2vw,18px)}
.sig{font:600 11px/1 var(--sans)!important;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-soft);margin-top:.6em!important}
.contact{text-align:left}
.foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;max-width:1180px;width:100%;margin:0 auto;
  padding:28px 0 calc(28px + env(safe-area-inset-bottom));font-size:13px;color:var(--ink-soft);text-shadow:var(--glow)}
.foot nav{display:flex;flex-wrap:wrap;gap:8px 20px}
.foot a{text-decoration:none}.foot a:hover{color:var(--ultra)}

/* ---------- phones: text sits low on a soft floor; picture crop handled in the player ---------- */
@media (max-width:760px){
  html.motion .chapter,html.motion .chapter.right,html.motion .chapter.final{left:var(--gutter);right:var(--gutter);top:auto;bottom:calc(14svh + env(safe-area-inset-bottom));width:auto;max-width:440px}
  h1,.chapter h2{font-size:clamp(40px,11vw,56px)}
  html.motion .veil{opacity:1;background:linear-gradient(0deg,rgba(244,248,253,.82),rgba(244,248,253,.35) 45%,transparent 70%)}
  html.motion .rail{right:6px}
  html.motion .rail button span{display:none}
  .panel{padding:26px 20px}
  .after{padding-left:12px;padding-right:12px}
}

/* ---------- reduced motion and no-script: ordinary flowing page over a still ---------- */
html.reduced .journey,html.no-js .journey{padding-top:8svh}
html.reduced .chapter,html.no-js .chapter{min-height:72svh;display:flex;flex-direction:column;justify-content:center}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* ---------- triggered journey: one screen tall; a scroll gesture plays the camera to the next chapter ---------- */
html.motion{overscroll-behavior-y:none}
html.motion .journey{height:100svh}
html.motion .after{margin-top:-9svh;padding-top:0}

/* ---------- cards: content sections that fade in on a light wash at the half-way stops ---------- */
.journey .card{margin:0 auto 8svh;width:calc(100% - 2 * var(--gutter))}
.rail button.minor::after{width:10px}
.rail button.minor[aria-current="step"]::after{width:26px}
html.motion .card{position:fixed;z-index:3;left:50%;top:50%;margin:0;width:min(1100px,calc(100vw - 2 * var(--gutter) - 56px));
  max-height:calc(100svh - 150px);overflow:hidden;padding:clamp(22px,3.2vw,48px);visibility:hidden;opacity:0;will-change:opacity;
  transform:translate(-50%,-50%);background:transparent;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html.motion .card h2{font-size:clamp(28px,3.2vw,50px);margin:12px 0 clamp(16px,2vw,30px)}
html.motion .card h3{font-size:clamp(20px,1.6vw,25px)}
html.motion .card .trio,html.motion .card .quad{gap:clamp(14px,2vw,32px)}
html.motion .card p,html.motion .card .door span{font-size:clamp(14px,1.05vw,16px);line-height:1.45}
html.motion .card .door{padding:clamp(16px,2vw,28px);gap:10px}
html.motion .card .door strong{font-size:clamp(21px,1.9vw,28px)}
html.motion .card .aside{margin-top:clamp(16px,2vw,28px)!important;padding-top:16px;font-size:clamp(16px,1.3vw,20px)}
html.motion .card .eyebrow,html.motion .card .door .eyebrow{font-size:11px}
@media (max-width:760px){
  html.motion .card{width:calc(100vw - 24px);padding:20px 18px;max-height:calc(100svh - 110px)}
  html.motion .card h2{font-size:27px;margin:8px 0 14px}
  html.motion .card h3{font-size:19px;margin-bottom:4px}
  html.motion .card p,html.motion .card .door span{font-size:13.5px;line-height:1.4}
  html.motion .card .quad{grid-template-columns:1fr 1fr;gap:12px 14px}
  html.motion .card .quad li,html.motion .card .trio li{padding-top:10px}
  html.motion .card .trio{gap:12px}
  html.motion .card .trio li::before{display:none}
  html.motion .card .aside{display:none}
  html.motion .card .doors{gap:10px}
  html.motion .card .door{padding:14px;gap:6px}
  html.motion .card .door strong{font-size:20px}
  html.motion .card .door .go{padding-top:2px}
}
@media (min-width:1000px){html.motion .card .quad{grid-template-columns:repeat(4,1fr)}}

/* ---------- Suspended Core (manufacturing journey): warm sandstone, near-black stone, ember ---------- */
html.core{
  --paper:#14100c;
  --ink:#f3e9d8;
  --ink-soft:#c2b196;
  --ultra:#e59145;
  --ultra-deep:#f2b877;
  --hair:rgba(243,233,216,.18);
  --glass:rgba(22,17,12,.80);
  --glow:0 1px 16px rgba(8,5,3,.85),0 0 3px rgba(8,5,3,.8);
  color-scheme:dark;
}
html.core .brand img{filter:brightness(0) invert(.94) sepia(.18)}
html.core .pill{background:var(--ink);color:#17110b}
html.core .pill:hover{background:var(--ultra)}
html.core .skip{color:#17110b}
html.core .world{background:#2a2016 url(../manufacturing/media/poster.jpg) center/cover no-repeat}
html.core.no-js .world,html.core.reduced .world,html.core.media-failed .world{background-image:url(../manufacturing/media/poster-end.jpg)}
html.core.motion .veil{opacity:1;background:linear-gradient(90deg,rgba(12,8,5,.72) 0%,rgba(12,8,5,.34) 32%,transparent 50%,rgba(12,8,5,.34) 70%,rgba(12,8,5,.68) 100%)}
html.core.reduced .veil,html.core.no-js .veil{opacity:1;background:rgba(12,8,5,.62)}
html.core .wash{background:radial-gradient(120% 95% at 50% 42%,#241b12 0%,#17110b 55%,#0e0a07 100%)}
html.core .panel{border-color:rgba(243,233,216,.10);box-shadow:0 30px 80px -40px rgba(0,0,0,.7)}
html.core .door{background:rgba(243,233,216,.05);cursor:default}
html.core .door:hover{border-color:var(--hair);transform:none;box-shadow:none}
html.core .door .go{font-size:clamp(17px,1.5vw,21px);font-family:var(--serif);font-weight:400;letter-spacing:.01em}
html.core .back{margin-top:26px!important;font-size:14px}
html.core .back a{text-decoration:none;color:var(--ink-soft)}
html.core .back a:hover{color:var(--ultra)}
@media (max-width:760px){
  html.core.motion .veil{background:linear-gradient(0deg,rgba(12,8,5,.88),rgba(12,8,5,.5) 45%,rgba(12,8,5,.12) 72%)}
}
html.core.motion .card .door .go{font-size:clamp(19px,1.7vw,24px);color:var(--ultra-deep)}
@media (min-width:761px){html.core.motion #ch-gap{width:min(26vw,430px)}}
/* the text screens are see-through here: a light dimming of the scene plus a dark glass panel behind the copy */
html.core.motion .card{background:rgba(18,13,9,.74);border:1px solid rgba(243,233,216,.10);box-shadow:0 30px 90px -30px rgba(0,0,0,.8)}
@media (min-width:1000px){html.core.motion .card .doors.three{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){html.core.motion .card .doors.three{gap:8px}html.core.motion .card .doors.three .door{padding:10px 12px;gap:4px}
  html.core.motion .card .doors.three .door strong{font-size:18px}html.core.motion .card .doors.three .door span{font-size:12.5px;line-height:1.35}
  html.core.motion .card .doors.three .go{font-size:17px}html.core.motion #hire .aside{display:none}html.core.motion #hire h2{font-size:24px;margin:6px 0 10px}}

/* ---------- the stops by name, along the top bar (wide screens; the side rail stays on narrow ones) ---------- */
.steps{display:none}
@media (min-width:1100px){
  html.motion .bar.has-steps .steps{display:flex;align-items:center;gap:clamp(12px,1.5vw,24px)}
  html.motion .bar.has-steps nav a:not(.pill){display:none}
  html.motion .rail{display:none}
  .steps button{all:unset;cursor:pointer;position:relative;padding:8px 0;font:500 12.5px/1 var(--sans);letter-spacing:.02em;white-space:nowrap;
    color:var(--ink);opacity:.82;transition:opacity .25s,color .25s}
  .steps button::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:var(--ultra);transform:scaleX(0);transform-origin:left;transition:transform .35s}
  .steps button:hover,.steps button:focus-visible{opacity:1}
  .steps button:focus-visible{outline:2px solid var(--ultra);outline-offset:4px}
  .steps button[aria-current="step"]{opacity:1;color:var(--ultra-deep)}
  .steps button[aria-current="step"]::after{transform:scaleX(1)}
}

/* ---------- gateway: the opening view over the home page (js/gateway.js) ---------- */
div.gate{display:none}
html.gate{overflow:hidden}
html.gate div.gate{display:block;position:fixed;inset:0;z-index:40;color:#f3f5f9;transition:opacity .5s ease;
  background:#05060a url(../gate/media/poster.jpg) center/cover no-repeat}
@media (max-aspect-ratio:3/4){html.gate div.gate{background-image:url(../gate/media/poster-portrait.jpg)}}
#gate.out{opacity:0;pointer-events:none}
#gate canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
.gate-ui{position:absolute;inset:0;display:flex;flex-direction:column;opacity:0;transition:opacity .45s ease;
  padding:calc(env(safe-area-inset-top) + 22px) var(--gutter) calc(env(safe-area-inset-bottom) + 12px)}
.gate-ui.on{opacity:1}
#gate.diving .gate-ui{display:none}
.gate-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gate-top img{display:block;width:clamp(128px,14vw,184px);height:auto;filter:brightness(0) invert(1)}
#gate .pill{background:#fff;color:#0a0e18}
#gate .pill:hover{background:#cfdcff}
.gate-mid{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding-bottom:24vh}
.gate-eyebrow{margin:0 0 14px;font:600 12px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:rgba(243,245,249,.72)}
#gate h1{font-size:clamp(30px,4.2vw,62px);line-height:1.02;letter-spacing:-.01em;text-shadow:0 2px 30px rgba(0,0,0,.6)}
#gate h1 em{color:#f1cfa6}
.gate-choices{display:flex;justify-content:center;gap:clamp(20px,9vw,170px);margin-top:clamp(26px,6vh,64px)}
.gate-choice{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;width:clamp(150px,22vw,300px);
  -webkit-tap-highlight-color:transparent}
.gate-choice small{margin-top:10px;font:600 11px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:rgba(243,245,249,.66);transition:opacity .4s,color .3s}
.gate-choice strong{font:400 clamp(21px,2.3vw,34px)/1.08 var(--serif);text-shadow:0 2px 20px rgba(0,0,0,.7);transition:opacity .4s}
.gate-choice:focus-visible{outline:2px solid #fff;outline-offset:10px;border-radius:6px}
.gate-choice:hover small,.gate-choice:focus-visible small{color:#fff}
.gate-credit{margin:auto 0 0;align-self:flex-start;padding:3px 7px;border-radius:3px;background:rgba(6,8,14,.5);font-size:10.5px;line-height:1.3;color:rgba(243,245,249,.78)}

/* the two choices: a round window onto where each one lands, with its mark in front. Each idles, stirs under the
   pointer (and now and then on its own, so it is plain they can be pressed), and breaks away as its dive begins */
.mark-wrap{position:relative;display:block;width:clamp(104px,14vw,200px);aspect-ratio:1;margin-bottom:clamp(34px,5.2vh,54px);animation:gm-float 7s ease-in-out infinite}
.gate-choice[data-dive=cloud] .mark-wrap{animation-duration:9s;animation-delay:-3s}
.gate-choice{--tone:232,154,78;--tone-hi:255,196,130}
.gate-choice[data-dive=cloud]{--tone:91,123,255;--tone-hi:170,190,255}
.portal{position:absolute;inset:-17%;display:block;transition:transform 1s cubic-bezier(.5,0,.8,.4),opacity .7s ease .3s}
.lens{position:absolute;inset:0;border-radius:50%;overflow:hidden;background:#06070c;
  box-shadow:0 0 0 1px rgba(var(--tone-hi),.55),0 0 34px rgba(var(--tone),.45),0 18px 40px rgba(0,0,0,.6);transition:box-shadow .5s}
.lens::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 36px 10px rgba(0,0,0,.78),inset 0 2px 1px rgba(255,255,255,.35);transition:box-shadow .5s}
.lens-img{position:absolute;inset:-10%;background:center/cover no-repeat;filter:brightness(.5) saturate(.85) blur(2px);transform:scale(1.02);
  transition:filter .6s,transform 1.2s cubic-bezier(.2,.7,.2,1);animation:gm-drift 16s ease-in-out infinite}
.gate-choice[data-dive=cloud] .lens-img{background-image:url(../media/poster.jpg);background-position:58% 50%}
.gate-choice[data-dive=surface] .lens-img{background-image:url(../manufacturing/media/poster.jpg)}
.ring{position:absolute;inset:-9%;border-radius:50%;border:1px dashed rgba(var(--tone-hi),.42);animation:gm-spin 46s linear infinite}
.ring::before,.ring::after{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:rgb(var(--tone-hi));box-shadow:0 0 12px 3px rgba(var(--tone),.9)}
.ring::before{top:-4px;left:50%;margin-left:-3px}
.ring::after{bottom:14%;left:14%;width:4px;height:4px;opacity:.8}
.gate-choice[data-dive=cloud] .ring{animation-direction:reverse;animation-duration:58s}
.ping{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(var(--tone-hi),.9);opacity:0;animation:gm-ping 5s cubic-bezier(.2,.6,.3,1) infinite}
.gate-choice[data-dive=cloud] .ping{animation-delay:2.5s}
.mark{position:relative;display:block;width:100%;height:100%;overflow:visible;transition:transform .6s cubic-bezier(.2,.7,.2,1),filter .6s,opacity .6s;
  filter:drop-shadow(0 10px 12px rgba(0,0,0,.55)) drop-shadow(0 0 12px rgba(var(--tone),.35))}
.mark .p,.mark .orbit{transform-box:view-box;transform-origin:50% 50%;transition:transform .7s cubic-bezier(.2,.7,.2,1),opacity .6s}
.mark .i{transform-box:view-box;transform-origin:50% 50%}
.mark .tex{mix-blend-mode:overlay;opacity:.95}
.core .tex{opacity:.8}
.mark .glow{opacity:.55;transform-box:fill-box;transform-origin:50% 50%;animation:gm-glow 4.2s ease-in-out infinite;transition:opacity .5s}
.mark .sheen{animation:gm-sheen 7s cubic-bezier(.5,0,.3,1) infinite}
.core .sheen{animation-delay:-3.2s}
.mark .p2 .sheen{animation-delay:-.25s}.mark .p3 .sheen{animation-delay:-.4s}
.gate-go{display:inline-flex;align-items:center;gap:.55em;margin-top:10px;padding:.55em 1.05em;border-radius:999px;border:1px solid rgba(var(--tone-hi),.6);
  font:600 12px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:#fff;background:rgba(var(--tone),.16);
  transition:background .3s,border-color .3s,opacity .4s;animation:gm-go 5s ease-in-out infinite}
.gate-choice[data-dive=cloud] .gate-go{animation-delay:2.5s}
.gate-go i{font-style:normal;display:inline-block;animation:gm-bob 1.4s ease-in-out infinite}
/* idle */
.fold .p1 .i{animation:gm-fold-a 6s ease-in-out infinite}
.fold .p2 .i{animation:gm-fold-b 6s ease-in-out infinite}
.fold .p3 .i{animation:gm-fold-c 6s ease-in-out infinite}
.core .p1 .i{animation:gm-core-a 5.5s ease-in-out infinite}
.core .p2 .i{animation:gm-core-b 5.5s ease-in-out infinite}
.core .p3 .i{animation:gm-core-ball 3.6s ease-in-out infinite}
.core .orbit{animation:gm-core-turn 14s ease-in-out infinite}
@keyframes gm-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes gm-fold-a{0%,100%{transform:none}50%{transform:translate(-5px,-4px) rotate(-1deg)}}
@keyframes gm-fold-b{0%,100%{transform:none}50%{transform:translate(6px,2px) rotate(1.2deg)}}
@keyframes gm-fold-c{0%,100%{transform:none}50%{transform:translate(-1px,6px)}}
@keyframes gm-core-a{0%,100%{transform:none}50%{transform:translate(-5px,-7px)}}
@keyframes gm-core-b{0%,100%{transform:none}50%{transform:translate(5px,7px)}}
@keyframes gm-core-ball{0%,100%{transform:translateY(5px)}50%{transform:translateY(-6px)}}
@keyframes gm-core-turn{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(3deg)}}
@keyframes gm-spin{to{transform:rotate(360deg)}}
@keyframes gm-drift{0%,100%{transform:scale(1.02) translate(-1.5%,0)}50%{transform:scale(1.08) translate(1.5%,-1%)}}
@keyframes gm-ping{0%{transform:scale(1);opacity:0}6%{opacity:.85}40%,100%{transform:scale(1.55);opacity:0}}
@keyframes gm-glow{0%,100%{transform:scale(.9);opacity:.4}50%{transform:scale(1.08);opacity:.75}}
@keyframes gm-sheen{0%,62%{transform:translateX(0)}100%{transform:translateX(1000px)}}
@keyframes gm-go{0%,100%{box-shadow:0 0 0 0 rgba(var(--tone),0)}8%{box-shadow:0 0 0 0 rgba(var(--tone-hi),.7)}40%{box-shadow:0 0 0 14px rgba(var(--tone),0)}}
@keyframes gm-bob{0%,100%{transform:translateY(-1px)}50%{transform:translateY(3px)}}
/* under the pointer, on keyboard focus, or when it stirs on its own (.tease): the mark opens and the window behind it clears */
.gate-choice:is(:hover,:focus-visible,.tease) .mark{transform:scale(1.08);filter:drop-shadow(0 14px 16px rgba(0,0,0,.6)) drop-shadow(0 0 24px rgba(var(--tone),.8))}
.gate-choice:is(:hover,:focus-visible,.tease) .lens-img{filter:brightness(1.05) saturate(1.1) blur(0);transform:scale(1.16)}
.gate-choice:is(:hover,:focus-visible,.tease) .lens{box-shadow:0 0 0 2px rgba(var(--tone-hi),.9),0 0 60px rgba(var(--tone),.8),0 18px 40px rgba(0,0,0,.6)}
.gate-choice:is(:hover,:focus-visible,.tease) .lens::after{box-shadow:inset 0 0 26px 2px rgba(0,0,0,.5),inset 0 2px 1px rgba(255,255,255,.5)}
.gate-choice:is(:hover,:focus-visible,.tease) .glow{opacity:1}
.gate-choice:is(:hover,:focus-visible) .gate-go{background:rgba(var(--tone),.55);border-color:#fff}
.gate-choice:is(:hover,:focus-visible,.tease) .fold .p1{transform:translate(-34px,-30px) rotate(-6deg)}
.gate-choice:is(:hover,:focus-visible,.tease) .fold .p2{transform:translate(40px,8px) rotate(9deg)}
.gate-choice:is(:hover,:focus-visible,.tease) .fold .p3{transform:translate(-10px,40px) rotate(-5deg)}
.gate-choice:is(:hover,:focus-visible,.tease) .core .p1{transform:translate(-26px,-40px) rotate(24deg)}
.gate-choice:is(:hover,:focus-visible,.tease) .core .p2{transform:translate(26px,40px) rotate(24deg)}
.gate-choice:is(:hover,:focus-visible,.tease) .core .p3{transform:scale(1.35)}
/* chosen: everything else fades, the mark flies apart toward the camera and the window opens over the whole view */
.gate-ui.leaving{pointer-events:none}
.gate-ui.leaving .gate-top,.gate-ui.leaving .gate-eyebrow,.gate-ui.leaving h1,.gate-ui.leaving .gate-credit,.gate-ui.leaving .gate-go,
.gate-ui.leaving .gate-choice:not(.chosen),.gate-ui.leaving .gate-choice small,.gate-ui.leaving .gate-choice strong{opacity:0;transition:opacity .45s ease}
.gate-ui.leaving .ping,.gate-ui.leaving .ring{display:none}
.gate-choice.chosen .portal{transform:scale(4.5);opacity:0}
.gate-choice.chosen .mark{transform:scale(3.4);opacity:0;transition:transform 1s cubic-bezier(.55,0,.85,.4),opacity .55s ease .45s,filter .3s}
.gate-choice.chosen .p{transition:transform 1s cubic-bezier(.45,0,.8,.45)}
.gate-choice.chosen .fold .p1{transform:translate(-150px,-130px) rotate(-22deg)}
.gate-choice.chosen .fold .p2{transform:translate(170px,20px) rotate(30deg)}
.gate-choice.chosen .fold .p3{transform:translate(-40px,170px) rotate(-16deg)}
.gate-choice.chosen .core .p1{transform:translate(-110px,-170px) rotate(50deg)}
.gate-choice.chosen .core .p2{transform:translate(110px,170px) rotate(50deg)}
.gate-choice.chosen .core .p3{transform:scale(5)}
@media (prefers-reduced-motion:reduce){.mark-wrap,.mark .i,.mark .orbit,.mark .sheen,.mark .glow,.ring,.ping,.lens-img,.gate-go,.gate-go i{animation:none}}
@media (max-width:720px){
  .gate-mid{padding-bottom:22vh}
  .gate-choices{gap:14px}
  .gate-choice{width:46vw}
  .gate-go{font-size:11px}
}

/* ---------- the top bar always has a soft backing over the picture, so the logo and stop names read on any frame ---------- */
html.motion .bar{background:rgba(246,249,255,.52);-webkit-backdrop-filter:blur(12px) saturate(1.15);backdrop-filter:blur(12px) saturate(1.15);box-shadow:0 1px 0 var(--hair)}
html.core.motion .bar{background:rgba(22,17,12,.56)}
html.motion .bar.solid{background:var(--glass)}

/* ---------- four stops: three tiles across in the 'who' card ---------- */
@media (min-width:1000px){html.motion .card .quad.three{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){html.motion .card .quad.three{grid-template-columns:1fr}}
html.motion .chapter,html.motion .card{will-change:translate}

/* ---------- page mode (html.page): an ordinary scrolling page over a slowly drifting scene (js/scene.js) ---------- */
html.page .bar{background:rgba(246,249,255,.52);-webkit-backdrop-filter:blur(12px) saturate(1.15);backdrop-filter:blur(12px) saturate(1.15);box-shadow:0 1px 0 var(--hair)}
html.page.core .bar{background:rgba(22,17,12,.56)}
html.page .world,html.page.no-js .world,html.page.reduced .world,html.page.media-failed .world{background-image:url(../media/poster.jpg)}
html.page.core .world,html.page.core.no-js .world,html.page.core.reduced .world,html.page.core.media-failed .world{background-image:url(../manufacturing/media/poster.jpg)}
html.page .wash{display:block}
html.page.no-js .wash,html.page.reduced .wash{position:fixed;opacity:.3}
.hero{position:relative;z-index:2;min-height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  padding:120px var(--gutter) 14svh;width:min(46vw,700px);box-sizing:content-box;text-shadow:var(--glow);scroll-margin-top:0}
.hero.right{margin-left:auto;width:min(38vw,600px);padding-right:calc(var(--gutter) + 40px)}
.hero h1{font-size:clamp(40px,4.7vw,78px);line-height:1;margin:18px 0 22px}
.hero .lede{max-width:26em;font-size:clamp(17px,1.35vw,20px)}
.more{margin-top:clamp(28px,6svh,64px);font:600 13px/1 var(--sans);letter-spacing:.04em;text-decoration:none;color:var(--ink);opacity:.86;
  padding:8px 0;border-bottom:1px solid currentColor;transition:color .25s,opacity .25s}
.more:hover{color:var(--ultra);opacity:1}
.more span{display:inline-block;margin-left:.3em;animation:more-nudge 2.4s ease-in-out infinite}
@keyframes more-nudge{0%,60%,100%{transform:none}80%{transform:translateY(4px)}}
html.page .after{padding-top:0;padding-bottom:0}
html.page .panel{scroll-margin-top:96px}
.rows{list-style:none;margin:0;padding:0}
.rows li{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:8px clamp(16px,4vw,64px);align-items:baseline;padding:clamp(16px,2vw,26px) 0;border-top:1px solid var(--hair)}
.rows h3{font-style:italic;color:var(--ultra-deep)}
.rows p{color:var(--ink);font-size:clamp(16px,1.2vw,18px);max-width:34em}
.doors.three .door{cursor:default}
.doors.three .door:hover{border-color:var(--hair);transform:none;box-shadow:none}
.door span{color:var(--ink-soft)}
html.page .back{margin-top:22px!important;font-size:14px}
html.page .back a{text-decoration:none;color:var(--ink-soft)}
html.page .back a:hover{color:var(--ultra)}
@media (min-width:1000px){html.page .doors.three{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){
  .hero,.hero.right{width:auto;margin:0;padding:96px var(--gutter) calc(9svh + env(safe-area-inset-bottom));justify-content:flex-end;box-sizing:border-box}
  .hero h1{font-size:clamp(36px,10.4vw,52px)}
  html.page .veil{opacity:1;background:linear-gradient(0deg,rgba(244,248,253,.86),rgba(244,248,253,.4) 50%,transparent 76%)}
  html.page.core .veil{background:linear-gradient(0deg,rgba(12,8,5,.9),rgba(12,8,5,.5) 50%,rgba(12,8,5,.12) 78%)}
  .rows li{grid-template-columns:1fr}
}
@media (min-width:761px){html.page.core .veil{opacity:1;background:linear-gradient(90deg,rgba(12,8,5,.72) 0%,rgba(12,8,5,.34) 32%,transparent 52%)}}
@media (prefers-reduced-motion:reduce){.more span{animation:none}}
/* examples rows inside a ride card: tighter, so four rows fit one screen */
html.motion .card .rows li{padding:clamp(9px,1.1vw,15px) 0}
html.motion .card .rows h3{font-size:clamp(17px,1.45vw,22px)}
html.motion .card .rows p{font-size:clamp(13.5px,1.02vw,15.5px);line-height:1.42}
html.motion #examples h2{margin-bottom:clamp(8px,1vw,14px)}
html.motion #examples .aside{margin-top:clamp(8px,1vw,14px)!important;padding-top:12px;font-size:clamp(14px,1.05vw,16px)}
@media (max-height:820px) and (min-width:761px){html.motion #examples .aside{display:none}}

/* 2026-11-18 wording pass on the manufacturing ride: plain problem lines, a box on the last screen, text or call */
.rows h3{font-style:normal}
#examples .aside{font-style:normal;font-family:inherit}
.reach{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin:0}
.reach .call{margin-top:26px;font-size:15px;color:inherit;text-underline-offset:3px;text-shadow:none}
html.motion .chapter .reach .call{pointer-events:auto}
#start .reach .pill.lead,#start .reach .call{margin-top:clamp(16px,2vw,26px)}
@media (max-width:640px){.reach .call{margin-top:18px}}
#how .aside{font-style:normal;font-family:inherit}

/* 2026-11-19 both sides as matching rides: the AI side's cards are a light glass box over a thin wash, as the
   manufacturing side's are a dark one */
html.motion:not(.core) .card{background:rgba(246,249,255,.86);border:1px solid rgba(255,255,255,.8);box-shadow:0 30px 90px -34px rgba(12,26,61,.45)}
html.motion:not(.core) .card .door{background:rgba(255,255,255,.55)}
@media (min-width:1000px){html.motion .card .doors.three{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){html.motion .card .doors.three{gap:8px}html.motion .card .doors.three .door{padding:10px 12px;gap:4px}
  html.motion .card .doors.three .door strong{font-size:18px}html.motion .card .doors.three .door span{font-size:12.5px;line-height:1.35}}
#pricing .aside{font-style:normal;font-family:inherit}
html.motion #pricing .aside{font-size:clamp(14px,1.05vw,16px)}
@media (max-width:760px){html.motion:not(.core) .veil{opacity:1;background:linear-gradient(0deg,rgba(244,248,253,.94),rgba(244,248,253,.8) 50%,rgba(244,248,253,0) 78%)}}
