/* Kyan Wrath pages. Loaded after the shared sheets (site.css, gold-type.css, editorial.css, footer.css, mobile.css),
   so the header, the three headline numbers, the two-column stories, the founder, the form and the footer are the
   same components as before. Everything here is new to the Wrath page, plus the navigation both pages share.
   The page changes its look from section to section on purpose, as the proposal deck does: a film in color, a drawing
   on paper, x-ray plates on black, the airflow in color again, a render, a photograph. */

/* ---------- Navigation: two machines, two actions ---------- */
.site-header nav a[aria-current=page]{position:relative}
.site-header nav a[aria-current=page]::after{content:"";position:absolute;left:0;right:0;bottom:7px;height:1px;background:#b7b6ae}
@media(max-width:700px),(pointer:coarse) and (max-height:600px){
 .site-header nav a.about-link,.site-header nav a[aria-current=page]{display:none}
}

/* ---------- Shared type for the new sections (the scale the stories already use) ---------- */
.statement h2,.roof h2,.made h2,.air h2,.concept h2{font-size:36px;line-height:1.15;letter-spacing:-.024em;color:var(--gold)}
.statement .lead,.roof .lead,.air .lead,.concept .lead{font-size:18px;line-height:1.55;color:#d3d2cc;margin-top:22px;text-wrap:balance}
.statement-copy>p:not(.lead),.roof-copy>p:not(.lead),.air-copy>p:not(.lead),.concept-copy>p:not(.lead){font-size:14px;line-height:1.8;color:var(--muted);margin-top:18px}
.text-link{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
#philosophy-title{--gold-crop-size:100% auto;--gold-crop-position:50% 32%}
#art-title{--gold-crop-size:112% auto;--gold-crop-position:64% 28%}
#made-title{--gold-crop-size:120% auto;--gold-crop-position:40% 36%}
#air-title{--gold-crop-size:150% auto;--gold-crop-position:80% 24%}
#concept-title{--gold-crop-size:160% auto;--gold-crop-position:30% 30%}
/* Plates drawn on black sit on the page without an edge: the darker of the two never shows. */
.statement-visual img,.art .story-visual img,.made-plate img,.concept-visual img{mix-blend-mode:lighten}

/* ---------- Hero: one film, the title in the air above the car ---------- */
.vhero{--h:clamp(520px,calc(100svh - 100px),1040px);position:relative;height:var(--h);overflow:hidden;background:var(--paper)}
/* The film is never cropped by more than a tenth of its height: on a wide, short screen it stops growing and its sides fade out. */
.vhero-film{position:absolute;left:50%;bottom:-8%;width:min(100%,calc(var(--h)*1.99));aspect-ratio:16/9;transform:translateX(-50%);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%)}
.vhero-film img,.vhero-film video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.vhero::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#080808 0,rgba(8,8,8,.86) 15%,rgba(8,8,8,.5) 25%,rgba(8,8,8,0) 37%,rgba(8,8,8,0) 93%,#080808 100%)}
.vhero-heading{position:relative;z-index:2;text-align:center;padding:26px var(--gutter) 0}
.vhero h1{display:inline-block;max-width:100%;font-size:clamp(58px,7.4vw,144px);letter-spacing:-.045em;line-height:1;color:var(--ink)}
.vhero-heading>p{max-width:580px;margin:20px auto 0;font-size:16px;line-height:1.6;color:#e2dfd7;text-shadow:0 0 14px #080808,0 0 4px #080808}
.vhero+.specifications{margin-top:0}
.metrics-note{text-align:center;font-size:14px;line-height:1.5;color:var(--quiet);margin:0;padding-bottom:6px}
@media(min-width:2000px){.vhero-heading>p{font-size:18px}}
@media(max-width:1100px) and (min-width:701px){.vhero h1{font-size:clamp(52px,7.4vw,81px)}}

/* ---------- Engineering as art ---------- */
.statement{max-width:1260px;margin:96px auto 0;padding:0 var(--gutter);display:grid;grid-template-columns:.92fr 1.25fr;gap:40px;align-items:center}
.statement-copy{max-width:420px}
.statement-visual{margin:0}
.statement-visual img{width:100%;height:auto}

/* ---------- No doors: a drawing on paper, and the roof opens as the page scrolls ---------- */
.roof{--sheet:#ece7db;--ink-on-sheet:#161618;background:var(--sheet);color:var(--ink-on-sheet);margin-top:110px}
.roof h2{color:var(--ink-on-sheet)}
.roof .lead{color:#2b2a27}
.roof-copy>p:not(.lead){color:#5a564e}
.roof-copy{max-width:430px}
.roof-frame canvas,.roof-static img{filter:invert(1);mix-blend-mode:multiply}       /* white lines on black become ink on the sheet */
/* Without script, or with reduced motion: two plain drawings, closed and open. */
.roof-sticky{max-width:1260px;margin:auto;padding:70px var(--gutter) 76px;background:var(--sheet)}   /* its own backdrop: a sticky box blends only with what is inside it */
.roof-frame,.roof-meta{display:none}
.roof-static{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:40px}
.roof-static figure{margin:0}
.roof-static img{width:100%;height:auto}
.roof-static figcaption{font-size:14px;line-height:1.5;color:#5a564e;margin-top:8px}
/* With script: the section holds the screen while the roof runs through its motion. */
.roof.is-scrub .roof-track{height:330vh;height:330svh}
.roof.is-scrub .roof-sticky{position:sticky;top:0;height:100vh;height:100svh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-width:1550px;padding:0 var(--gutter)}
.roof.is-scrub .roof-copy{padding-top:clamp(40px,8.5vh,92px)}
.roof.is-scrub .roof-stage{display:flex;align-items:center;justify-content:center;min-height:0}
.roof.is-scrub .roof-static{display:none}
.roof.is-scrub .roof-frame{display:block;position:relative;width:min(100%,calc((100vh - 405px)*var(--roof-aspect,2.751)));width:min(100%,calc((100svh - 405px)*var(--roof-aspect,2.751)));aspect-ratio:var(--roof-aspect,2.751)}
.roof-frame canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.roof-dims{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.roof-dims line{stroke:#8f897c;stroke-width:calc(var(--u,1.8)*1px)}
.roof-dims text{font-family:var(--body);font-size:calc(var(--u,1.8)*14px);fill:#5a564e;text-anchor:middle;paint-order:stroke;stroke:var(--sheet);stroke-width:calc(var(--u,1.8)*14px);stroke-linejoin:round}
.roof.is-scrub .roof-meta{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;border-top:1px solid #cfc8b8;padding:20px 0 clamp(22px,5vh,46px)}
.roof-steps{display:flex;gap:34px;list-style:none;margin:0;padding:0;font-size:14px;line-height:1.5;color:#a39d90}
.roof-steps li{transition:color .25s ease}
.roof-steps li.is-on{color:var(--ink-on-sheet)}
.roof-readout{display:flex;gap:44px;text-align:right}
.roof-readout .stat-value{color:var(--ink-on-sheet);font-variant-numeric:tabular-nums;min-width:4.4ch}
.roof-readout .stat-label{font-size:14px;line-height:1.5;margin:6px 0 0;color:#5a564e}

/* ---------- Downforce: the air, in color ---------- */
.air{max-width:1550px;margin:120px auto 0;padding:0 var(--gutter)}
.air-head{max-width:calc(1260px - 2*var(--gutter));margin:0 auto;display:grid;grid-template-columns:1.3fr 1fr;gap:56px;align-items:center}
.air-visual{margin:0 0 0 -4%;-webkit-mask-image:radial-gradient(ellipse 72% 72% at 50% 50%,#000 62%,transparent 100%);mask-image:radial-gradient(ellipse 72% 72% at 50% 50%,#000 62%,transparent 100%)}
.air-visual img{width:100%;height:auto}
.air-copy{max-width:430px}
.bars{display:grid;gap:14px;margin-top:34px}
.bar{display:grid;grid-template-columns:132px minmax(0,1fr) 64px;align-items:center;gap:16px;font-size:14px;line-height:1.5;color:var(--muted)}
.bar b{font-weight:300;color:var(--muted);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.bar i{display:block;height:1px;background:#6f6d67;width:calc(var(--v)/800*100%);transform-origin:0 50%;transition:transform 1.3s cubic-bezier(.2,.7,.2,1)}
.bar.now,.bar.now b{color:var(--ink)}
.bar.now i{height:3px;background:var(--ink)}
.bar.target i{height:0;background:none;border-top:1px dashed #8d8b85}
.bars.is-armed .bar i{transform:scaleX(0)}
.bars.is-armed.is-in .bar i{transform:scaleX(1)}
.bars.is-armed.is-in .bar.now i{transition-delay:.15s}
.bars.is-armed.is-in .bar.target i{transition-delay:.3s}
.bars-note{font-size:14px;line-height:1.5;color:var(--quiet);margin-top:4px}

/* ---------- Short films in a row ---------- */
.loops{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:14px;margin-top:64px}
.loop{position:relative;aspect-ratio:3/4;overflow:hidden;background:#050505}
.loop>img,.loop>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ---------- Sculpture and music ---------- */
.story.art{margin-top:120px}
.art .story-visual{aspect-ratio:1560/832}

/* ---------- What it's made of ---------- */
.made{max-width:1260px;margin:120px auto 0;padding:0 var(--gutter)}
.made-plate{margin:0 0 56px}
.made-plate img{width:100%;height:auto}
.made-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 40px;margin-top:34px}
.made-item{border-top:1px solid var(--line);padding-top:20px}
.made-item h3{font-size:26px;line-height:1.15;letter-spacing:-.01em;color:var(--ink)}
.made-item p{font-size:14px;line-height:1.8;color:var(--muted);margin-top:12px}

/* ---------- Dies Irae: the concept engine, one step back ---------- */
.concept{max-width:1260px;margin:120px auto 0;padding:0 var(--gutter);display:grid;grid-template-columns:1.25fr .92fr;gap:40px;align-items:center}
.concept-visual{display:block;aspect-ratio:1.6}
.concept-visual:hover{opacity:1}
.concept-visual img{width:100%;height:100%;object-fit:contain}
.concept-copy{max-width:420px}
.concept-copy .text-link{font-size:14px}
.di-return{max-width:1260px;margin:110px auto 0;padding:48px var(--gutter) 70px;border-top:1px solid var(--line)}
.di-return h2{font-size:36px;line-height:1.15;letter-spacing:-.024em;color:var(--gold)}
.di-return p{font-size:14px;line-height:1.8;color:var(--muted);margin-top:18px;max-width:430px}
.di-return .lead{font-size:18px;line-height:1.55;color:#d3d2cc;margin-top:22px}
#di-return-title{--gold-crop-size:130% auto;--gold-crop-position:58% 30%}

@media(max-width:1100px) and (min-width:701px){
 .loops[style*="--n:5"]{grid-template-columns:repeat(3,minmax(0,1fr))}
 .made-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .air-head{gap:36px}
 .roof-readout{gap:30px}
}
@media(max-width:700px),(pointer:coarse) and (max-height:600px){
 .vhero{--h:auto;height:auto;aspect-ratio:4/5;max-height:calc(100svh - 78px)}
 .vhero-film{left:0;bottom:0;width:100%;height:100%;aspect-ratio:auto;transform:none;-webkit-mask-image:none;mask-image:none}
 .vhero-film img,.vhero-film video{object-position:50% 100%}
 .vhero::after{background:linear-gradient(180deg,#080808 0,rgba(8,8,8,.5) 16%,rgba(8,8,8,0) 36%,rgba(8,8,8,0) 90%,#080808 100%)}
 .vhero-heading{padding-top:22px}
 .vhero h1{font-size:clamp(36px,10.5vw,52px);white-space:nowrap}
 .vhero-heading>p{font-size:14px;margin-top:14px}
 .statement h2,.roof h2,.made h2,.air h2,.concept h2,.di-return h2{font-size:30px}
 .statement .lead,.roof .lead,.air .lead,.concept .lead,.di-return .lead{font-size:17px}
 .statement{display:flex;flex-direction:column;align-items:stretch;gap:20px;margin-top:52px}
 .statement-copy{max-width:none}
 .statement-visual{margin:0 -12px}
 .roof{margin-top:60px}
 .roof-copy{max-width:none}
 .roof-sticky{padding:44px var(--gutter) 48px}
 .roof-static{grid-template-columns:1fr;gap:18px;margin-top:26px}
 .roof.is-scrub .roof-copy{padding-top:34px}
 .roof.is-scrub .roof-frame{width:100%}
 .roof.is-scrub .roof-stage{margin:0 -12px}
 .roof-dims{display:none}
 .roof.is-scrub .roof-meta{flex-direction:column;align-items:stretch;gap:16px;padding-bottom:26px}
 .roof-steps{justify-content:space-between;gap:10px}
 .roof-readout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;text-align:left}
 .air{margin-top:68px}
 .air-head{display:flex;flex-direction:column;align-items:stretch;gap:8px}
 .air-visual{margin:0 -12px;order:2}
 .air-copy{max-width:none}
 .bars{margin-top:26px}
 .bar{grid-template-columns:118px minmax(0,1fr) 60px;gap:12px}
 .loops{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;margin:36px calc(var(--gutter)*-1) 0;padding:0 var(--gutter);scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .loops::-webkit-scrollbar{display:none}
 .loop{flex:0 0 68vw;scroll-snap-align:center}
 .story.art{margin-top:68px}
 .made{margin-top:64px}
 .made-plate{margin:0 -12px 34px}
 .made-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 20px;margin-top:26px}
 .made-item h3{font-size:24px}
 .concept{display:flex;flex-direction:column;align-items:stretch;gap:18px;margin-top:68px}
 .concept-copy{max-width:none}
 .di-return{margin-top:60px;padding-top:38px;padding-bottom:50px}
}
