/* QA5: final visual overrides, scoped to revised scenes. */
.scene-gallery .gallery-milk{background:#eee8da!important}
.scene-gallery .gallery-head{top:12%!important;width:86%!important;max-width:880px!important}
.scene-gallery .gallery-head h2{font-size:clamp(39px,4.4vw,73px)!important;max-width:24ch!important;line-height:1.03!important;text-wrap:balance;text-shadow:0 2px 20px #f3eee1b0!important}
.scene-gallery .gallery-head h2 em{color:#72564c!important}
.is-inner[data-page=works] .page-hero-directed{background:#13281f!important}
.is-inner[data-page=works] .page-hero-directed::before{background:linear-gradient(90deg,#0a1b15e8,#0a1b1570 50%,#0719120d 95%)!important}
.is-inner[data-page=works] .page-hero-inner h1{width:80%!important;max-width:24ch!important;font-size:clamp(48px,5.7vw,92px)!important;text-wrap:balance}
/* Three coherent, measured editorial objects. Grid avoids the unequal absolute slots. */
.scene-device .device-interfaces{left:auto!important;right:4.2%!important;top:50%!important;bottom:auto!important;width:clamp(220px,20vw,304px)!important;transform:translateY(-50%);display:grid!important;gap:12px;align-content:center;pointer-events:none}
.scene-device .qa5-device-card.qa4-device-note{position:relative!important;inset:auto!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;max-height:none!important;margin:0!important;padding:15px 15px 15px 55px!important;background:linear-gradient(135deg,#233d34df,#101f20eb 74%)!important;border:1px solid #b9cdb348!important;border-radius:18px!important;box-shadow:0 12px 36px #0003,inset 0 1px 0 #e5ead013!important;overflow:hidden;text-align:left!important;pointer-events:auto;transition:background .55s,border-color .55s,box-shadow .55s!important;display:flex!important;flex-direction:column;justify-content:center;gap:4px}
.scene-device .qa5-device-card:hover{background:linear-gradient(140deg,#37554b,#172e2a)!important;border-color:#c1d4b488!important;box-shadow:0 14px 38px #0005,inset 0 1px 0 #e5ead033!important}
.qa5-note-icon{display:grid;place-items:center;width:31px;height:31px;position:absolute;top:16px;left:13px;background:#c8d9bd0c;border:1px solid #c4dfc135;border-radius:50%}.qa5-note-icon svg{width:19px;height:19px;fill:none;stroke:#d2dfbf;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.scene-device .qa5-device-card span{font-size:9px!important;letter-spacing:.13em!important;line-height:1.3!important;margin:0!important}.scene-device .qa5-device-card strong{font-size:clamp(19px,1.65vw,27px)!important;line-height:1.11!important;margin:0!important;text-wrap:pretty}.scene-device .qa5-device-card small{font-size:clamp(10px,.84vw,13px)!important;line-height:1.45!important;margin:0!important;display:block!important}
/* A 4px card edge remains visible when both faces are perpendicular to the camera. */
.scene-process .orbit-card::before,.scene-process .orbit-card::after{content:'';display:block;position:absolute;top:9px;bottom:9px;width:4px;border-radius:2px;background:linear-gradient(#f9f8ee,#c5d2c5,#e5e8dc);backface-visibility:visible;pointer-events:none}
.scene-process .orbit-card::before{left:-2px;transform:rotateY(90deg)}.scene-process .orbit-card::after{right:-2px;transform:rotateY(90deg)}
.scene-process .orbit-front{transform:translateZ(2px)!important}.scene-process .orbit-back{transform:rotateY(180deg) translateZ(2px)!important}
/* Film-to-content seam: exact shared endpoint, not a dark filter over the film. */
.is-inner[data-page=process]{--qa5-join:#122b21}.is-inner[data-page=about]{--qa5-join:#f6f2e9}.is-inner[data-page=lab]{--qa5-join:#f4f0e7}.is-inner[data-page=contact]{--qa5-join:#f3f0e7}
.is-inner:is([data-page=process],[data-page=about],[data-page=lab],[data-page=contact]) .page-hero-directed::after{content:''!important;display:block!important;position:absolute!important;inset:auto 0 0!important;height:clamp(90px,21vh,210px)!important;width:100%!important;z-index:2!important;opacity:1!important;background:linear-gradient(to bottom,transparent 0%,color-mix(in srgb,var(--qa5-join),transparent 92%) 19%,color-mix(in srgb,var(--qa5-join),transparent 42%) 67%,var(--qa5-join) 100%)!important;pointer-events:none!important;transform:none!important}
.is-inner[data-page=process] .process-page{background:linear-gradient(180deg,#122b21 0%,#122b2100 200px),radial-gradient(ellipse at 88% 14%,#40292f70,transparent 40%),linear-gradient(145deg,#0b2118,#153226 50%,#081b13)!important}
.is-inner[data-page=about] .about-page{background:linear-gradient(#f6f2e9,#f6f2e9)!important}.is-inner[data-page=lab] .lab-section{background:linear-gradient(#f4f0e7,#f4f0e7)!important}.is-inner[data-page=contact] .contact-section{background:linear-gradient(#f3f0e7,#f3f0e7)!important}
/* Every paragraph and heading uses the same fixed edge, including typing overlays. */
.is-inner[data-page=process] .process-step-page:nth-child(n)>div{width:100%!important;max-width:100%!important;min-width:0!important;display:flex!important;flex-direction:column;align-items:flex-start;gap:16px;margin:0!important}
.is-inner[data-page=process] .process-step-page:nth-child(even)>div{align-items:flex-end;text-align:right!important}.is-inner[data-page=process] .process-step-page:nth-child(odd)>div{text-align:left!important}
.is-inner[data-page=process] .process-step-page h2,.is-inner[data-page=process] .process-step-page p{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;text-align:inherit!important;text-wrap:wrap!important}
.is-inner[data-page=process] .process-step-page p{max-width:48ch!important}.is-inner[data-page=process] .process-step-page .lumo-text-layer{text-align:inherit!important;text-wrap:wrap!important}
/* Preserve initial headline, morph to a compact two-line title without layout snaps. */
.is-inner[data-page=about] .qa4-about-art{opacity:.15!important}.is-inner[data-page=about] .page-hero-directed::before{background:linear-gradient(90deg,#07150f7a,#07151012 43%,#07150f63 100%)!important}
.about-hero-stage .about-hero-heading,.about-hero-stage .about-essay{isolation:isolate;position:relative}.about-hero-stage .about-hero-heading::before,.about-hero-stage .about-essay::before{content:'';position:absolute;inset:-32px -25px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,#071610d9 4%,#071610a0 52%,transparent 77%);filter:blur(12px)}
.about-hero-stage .about-hero-heading h1{position:relative;display:grid;place-items:center;max-width:100%!important;margin-bottom:clamp(12px,2vw,24px)!important;text-shadow:0 2px 18px #07150ee0}
.qa5-title-original{grid-area:1/1;display:block;opacity:1}.qa5-title-shifted{grid-area:1/1;display:none;opacity:0}
.about-hero-stage.is-motion .qa5-title-original{opacity:calc(1 - var(--qa5-title-morph,0))}.about-hero-stage.is-motion .qa5-title-shifted{display:block;opacity:var(--qa5-title-morph,0);font-size:clamp(31px,3.6vw,61px);line-height:1.06;letter-spacing:-.04em;white-space:nowrap;align-self:end;transform:translateY(calc((1 - var(--qa5-title-morph,0))*12px))}
.about-hero-stage.is-motion .about-hero-heading h1{margin-bottom:calc(24px - var(--qa5-title-morph,0)*12px)!important}.about-hero-stage .about-hero-heading p{margin:0 auto!important;max-width:43ch!important;line-height:1.6!important;color:#f0f3e9!important;text-shadow:0 2px 12px #000b}
.about-hero-stage .about-essay{padding:18px 20px;max-width:64ch}.about-hero-stage .about-essay p{font-size:clamp(15px,1.22vw,19px)!important;line-height:1.72!important;margin:0 0 16px!important;max-width:56ch!important;color:#f0f3e9!important;text-shadow:0 1px 4px #000,0 0 12px #000b}.about-hero-stage .about-essay .lumo-text-layer,.about-hero-stage .about-essay .lumo-type-complete>.lumo-original-text{color:#f0f3e9!important}
.about-hero-stage .eyebrow{color:#c3dcca!important}
@media(max-width:1100px) and (min-width:701px){.scene-device .device-interfaces{width:23%!important;right:3%!important;gap:9px}.scene-device .qa5-device-card.qa4-device-note{padding:12px 10px 12px 42px!important}.qa5-note-icon{left:8px;width:27px;height:27px;top:12px}.scene-device .qa5-device-card small{font-size:11px!important}.scene-device .qa5-device-card strong{font-size:20px!important}}
@media(max-width:700px){.scene-gallery .gallery-head h2{font-size:clamp(31px,7.9vw,48px)!important;max-width:18ch!important}.scene-device .device-interfaces{inset:auto 4% 4% 4%!important;width:auto!important;transform:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:stretch}.scene-device .qa5-device-card.qa4-device-note{padding:8px 7px!important;border-radius:12px!important;gap:4px;width:100%!important;min-height:80px!important}.qa5-note-icon{position:static;width:22px;height:22px}.qa5-note-icon svg{width:15px;height:15px}.scene-device .qa5-device-card span{font-size:8px!important;letter-spacing:0!important}.scene-device .qa5-device-card strong{font-size:clamp(12px,3.1vw,16px)!important;overflow-wrap:anywhere}.scene-device .qa5-device-card small{display:none!important}.is-inner[data-page=works] .page-hero-inner h1{width:100%!important;max-width:100%!important;font-size:clamp(38px,9vw,61px)!important}.about-hero-stage .about-essay{padding:10px 4px}.about-hero-stage .about-hero-heading::before,.about-hero-stage .about-essay::before{inset:-12px -10px}.is-inner[data-page=process] .process-step-page p{max-width:100%!important}}
@media(max-height:600px) and (min-width:701px){.scene-device .device-interfaces{gap:6px!important}.scene-device .qa5-device-card.qa4-device-note{padding-block:8px!important}.scene-device .qa5-device-card strong{font-size:17px!important}.scene-device .qa5-device-card small{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.is-inner:is([data-page=process],[data-page=about],[data-page=lab],[data-page=contact]) .page-hero-directed::after{display:block!important;inset:0!important;height:100%!important;z-index:0!important;background:linear-gradient(to bottom,transparent 75%,var(--qa5-join)),var(--qa4-poster) center/cover no-repeat!important}.qa5-title-shifted{display:none!important}.qa5-title-original{opacity:1!important}}
/* The sticky About hero stays dark until the actual departure; title contracts in height. */
.about-hero-stage.is-motion .page-hero-directed::after{opacity:var(--qa5-seam,0)!important}
.about-hero-stage.is-motion .about-hero-heading h1{display:block!important;width:100%!important;position:relative!important}
.about-hero-stage.is-motion .qa5-title-original,.about-hero-stage.is-motion .qa5-title-shifted{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center}
.about-hero-stage.is-motion .qa5-title-original{max-width:16ch;margin-inline:auto}.about-hero-stage.is-motion .qa5-title-shifted{max-width:100%;margin-inline:auto}
.is-inner[data-page=process] #site-header.scrolled{background:#10251d!important}
