/* ==========================================================================
   INSANITYX STUDIO / insanityx.css   (version 2)
   One dark room, silver type, one red. The 3D scene sits behind everything
   and the page is laid over it, so nothing here has a solid background.
   --ink, --accent and --room are written by the tweak panel.
   ========================================================================== */
@font-face { font-family: "SkyOS Flow"; src: url("../fonts/SkyOSFlow-Thin.woff2") format("woff2"); font-weight: 100; font-display: swap; }
@font-face { font-family: "SkyOS Flow"; src: url("../fonts/SkyOSFlow-ExtraLight.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "SkyOS Flow"; src: url("../fonts/SkyOSFlow-Light.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-standard-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
:root { --fog: .85;
  --ink: #d6d6dc; --accent: #e0202c; --accent-rgb: 224,32,44; --room: #020203; --cap-scale: 1;
  --txt: 228,228,232; --fogc: 2,2,3;                                  /* black: light type, black fog and header backing */
  --fg: #e4e4e8; --mute: rgba(var(--txt),.6); --faint: rgba(var(--txt),.14);
  --sans: "SkyOS Flow", "Avenir Next", "Futura", "Century Gothic", "Helvetica Neue", system-ui, sans-serif;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --read: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;   /* paragraphs: a face made for reading */
  --out: cubic-bezier(.16, 1, .3, 1); --pad: clamp(20px, 3.4vw, 56px);
}
* { box-sizing: border-box; }
html { background: var(--room); -webkit-text-size-adjust: 100%; }
html.is-film, html:not(.is-ready) { overflow: hidden; }
body { margin: 0; background: var(--room); color: var(--fg); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; } i { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg .r { stroke: var(--accent); } svg .rf { fill: var(--accent); }

#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; background: var(--room); }
.nogl-art { display: none; } .no-gl #stage { display: none; }
.no-gl .nogl-art { display: grid; place-items: center; position: fixed; inset: 0; z-index: 0; background: radial-gradient(90% 70% at 62% 45%, #17171c, #020203 70%); }
.no-gl .nogl-art img { width: min(46vh, 40vw); margin-left: 30vw; opacity: .9; }
.only-film, .only-page { display: none !important; }
.is-film .only-film { display: flex !important; } .is-page .only-page { display: inline-flex !important; }
html:not(.can-tweak) .only-tweak { display: none !important; }

/* ---------- small type used for every control ---------- */
.tx { font-size: 10px; letter-spacing: .42em; text-transform: uppercase; padding: 10px 2px; opacity: .62; transition: opacity .25s, color .25s; white-space: nowrap; }
.tx:hover { opacity: 1; color: var(--accent); }

.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(14px, 2.4vh, 26px) var(--pad); opacity: 0; transition: opacity 1s ease, background .5s ease; }
.is-ready .top { opacity: 1; }
.is-page .top.is-stuck { background: linear-gradient(rgba(var(--fogc),.95) 62%, rgba(var(--fogc),0)); }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1; }
.brand-m { height: 38px; width: auto; display: block; margin: -4px 0; }
.brand-word { height: clamp(13px, 1.25vw, 18px); width: auto; display: block; }
.xg { height: 1.02em; width: auto; vertical-align: -.1em; margin-left: .04em; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .45)); }
.brand-w { font-size: clamp(14px, 1.3vw, 19px); letter-spacing: .5em; font-weight: 300; }
.cap-word i { color: var(--accent); position: relative; display: inline-block; }
.cap-word i::after { content: ""; position: absolute; left: 44%; top: 50%; width: .07em; min-width: 1px; height: 2.9em; background: linear-gradient(transparent, var(--accent) 22%, var(--accent) 78%, transparent); transform: translate(-50%, -50%) rotate(40deg); }
.brand-s { font-size: 8px; letter-spacing: 1.05em; text-transform: uppercase; opacity: .6; padding-left: 2.6em; }
.is-film .brand { opacity: .0; pointer-events: none; transition: opacity 1s; } [data-part="mark"].is-film .brand { opacity: 0; }
.nav { display: none; gap: clamp(20px, 3vw, 48px); margin: 0 auto; padding: 0 clamp(20px, 3vw, 56px); min-width: 0; } .is-page .nav { display: flex; }
.brand, .top-tools { flex: none; }
.nav a { font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase; opacity: .68; padding: 8px 0; position: relative; transition: opacity .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: .42em; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--out); }
.nav a:hover { opacity: 1; } .nav a:hover::after { transform: scaleX(1); }

.film-ui { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: clamp(14px, 2vw, 30px); padding: clamp(10px, 2vh, 22px) var(--pad); opacity: .0; transition: opacity .6s; }
.is-film .film-ui { opacity: 1; }
.scrub { position: relative; flex: 1; height: 30px; cursor: pointer; touch-action: none; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(var(--txt),.16); }
.scrub b { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 10px rgba(var(--accent-rgb), .8); }
.tweak-fab { position: fixed; right: 12px; bottom: 12px; z-index: 40; padding: 9px 14px; background: rgba(var(--fogc),.86); border: 1px solid var(--faint); }

/* ---------- the lines of the film ---------- */
#captions { position: fixed; inset: 0; z-index: 22; pointer-events: none; }
.cap { position: absolute; left: 50%; width: min(92vw, 1500px); transform: translateX(-50%); text-align: center; bottom: 13vh; text-transform: uppercase; font-weight: 400; letter-spacing: .17em; word-spacing: .14em; line-height: 1.5;
  font-size: calc(clamp(17px, 2.35vw, 40px) * var(--cap-scale)); text-shadow: 0 0 6px rgba(0,0,0,calc(.9*var(--fog))), 0 0 18px rgba(0,0,0,calc(.8*var(--fog))), 0 0 44px rgba(0,0,0,calc(.7*var(--fog))); }
[data-cappos="center"] .cap { bottom: auto; top: 50%; transform: translate(-50%, -50%); } [data-cappos="upper"] .cap { bottom: auto; top: 12vh; }
.cap::before, .cap::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
/* the black fog behind the words: a wide soft bank, and a denser core that drifts */
.cap::before { width: min(150%, 1900px); height: 380%; transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--fogc),calc(.82*var(--fog))), rgba(var(--fogc),calc(.6*var(--fog))) 45%, rgba(var(--fogc),calc(.22*var(--fog))) 75%, transparent); filter: blur(18px); }
.cap::after { width: min(110%, 1400px); height: 230%; transform: translate(-50%, -50%);
  background: radial-gradient(48% 46% at 42% 52%, rgba(0,0,0,calc(.75*var(--fog))), transparent 72%), radial-gradient(44% 50% at 60% 46%, rgba(0,0,0,calc(.65*var(--fog))), transparent 70%);
  filter: blur(26px); animation: fog-drift 9s ease-in-out infinite alternate; }
@keyframes fog-drift { from { transform: translate(-52%, -49%) scale(1, .96); } to { transform: translate(-48%, -51%) scale(1.05, 1.04); } }
.cap.on::after { opacity: 1; transition: opacity 1.1s ease; }
.cap.on::before { opacity: 1; transition: opacity .9s ease; }
.cap-mark::before { left: auto; top: auto; width: auto; height: auto; transform: none; filter: blur(10px); } .cap-mark::after { display: none; }
.cap-l { display: block; text-wrap: balance; }
.cap-w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(5px); transition: opacity .3s ease, transform .3s ease, filter .3s ease; }
.cap.on .cap-w { opacity: 1; transform: none; filter: none; transition: opacity .8s ease, transform 1s var(--out), filter .8s ease; transition-delay: calc(var(--i) * 75ms); }
.cap.was .cap-w { transform: translateY(-.4em); filter: blur(4px); transition: opacity .5s ease, transform .7s ease, filter .5s ease; transition-delay: calc(var(--i) * 30ms); }   /* a phrase leaves upward as the next one arrives: the sentence keeps moving */
.cap-aside { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: .01em; font-size: calc(clamp(24px, 3.6vw, 62px) * var(--cap-scale)); }
.cap-beat { font-weight: 300; letter-spacing: .3em; padding-left: .3em; font-size: calc(clamp(24px, 4.4vw, 78px) * var(--cap-scale)); }
.cap-num { display: block; font-size: 11px; letter-spacing: .7em; color: var(--accent); margin-bottom: 16px; opacity: 0; transition: opacity .5s; font-weight: 400; }
.cap.on .cap-num { opacity: 1; }
.cap-mark::before { content: ""; position: absolute; inset: -34% -26% -60%; background: radial-gradient(closest-side, rgba(1,1,2,calc(1*var(--fog))), rgba(1,1,2,calc(.9*var(--fog))) 55%, rgba(1,1,2,calc(.4*var(--fog))) 82%, transparent); z-index: -1; }   /* the logo sits on clean black */
.cap-mark { bottom: 9vh; opacity: 0; transition: opacity .8s ease; display: grid; justify-items: center; gap: clamp(10px, 1.6vh, 20px); letter-spacing: 0; }
.cap-mark.on { opacity: 1; transition: opacity 2s ease; }
.cap-lock { width: min(78vw, 820px); height: auto; display: block; filter: drop-shadow(0 0 24px var(--room)); }
.cap-word { font-weight: 200; font-size: clamp(26px, 5.2vw, 92px); letter-spacing: .5em; padding-left: .5em; line-height: 1; }
.cap-studio { font-size: clamp(10px, 1.15vw, 18px); letter-spacing: 1.2em; padding-left: 1.2em; position: relative; font-weight: 300; }
.cap-studio::before, .cap-studio::after { content: ""; position: absolute; top: 46%; width: clamp(40px, 10vw, 170px); height: 1px; background: currentColor; opacity: .45; }
.cap-studio::before { right: calc(100% + 22px); } .cap-studio::after { left: calc(100% + 6px); }
.cap-sub { font-size: clamp(9px, .85vw, 12px); letter-spacing: .6em; opacity: .55; margin-top: 8px; font-weight: 300; }

/* ---------- the page ---------- */
main, .foot { position: relative; z-index: 2; }
.is-film main, .is-film .foot, html:not(.is-ready) main, html:not(.is-ready) .foot { visibility: hidden; }
.hero, .sec { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 13vh clamp(22px, 7.5vw, 130px) 9vh; }
.hero-in { max-width: 560px; }
.hero-in > :not(.x) { opacity: 0; transform: translateY(20px); transition: opacity 1.4s ease, transform 1.6s var(--out); }
.is-page .hero-in > :not(.x) { opacity: 1; transform: none; }
.is-page .hero-in > :nth-child(2) { transition-delay: .15s; } .is-page .hero-in > :nth-child(3) { transition-delay: .3s; } .is-page .hero-in > :nth-child(4) { transition-delay: .45s; } .is-page .hero-in > :nth-child(5) { transition-delay: .6s; }
.eyebrow { margin: 0 0 26px; font-size: 9.5px; letter-spacing: .5em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.hero-title, .big { margin: 0; font-weight: 200; text-transform: uppercase; letter-spacing: .2em; line-height: 1.28; font-size: clamp(22px, 2.9vw, 50px); }
.ln { display: block; } .ln-last { color: var(--accent); font-weight: 300; }
.hero-body, .body { margin: 26px 0 0; font-size: clamp(13px, .95vw, 15.5px); line-height: 1.85; letter-spacing: .05em; color: var(--mute); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 16px; padding: 18px 28px 17px; font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase; border: 1px solid var(--accent); position: relative; overflow: hidden; transition: color .4s; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-101%) skewX(-20deg); transform-origin: left; transition: transform .6s var(--out); z-index: -1; }
.btn:hover::before { transform: translateX(0) skewX(0deg) scaleX(1.3); } .btn:hover { color: #fff; }
.btn::after { content: "→"; letter-spacing: 0; transition: transform .4s var(--out); } .btn:hover::after { transform: translateX(6px); }
.again { display: inline-flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .42em; text-transform: uppercase; opacity: .7; transition: opacity .25s; }
.again:hover { opacity: 1; }
.again i { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 14px rgba(var(--accent-rgb), .9); transition: transform .5s var(--out); } .again:hover i { transform: rotate(225deg) scale(1.3); }
.hero-menu { list-style: none; margin: 38px 0 0; padding: 22px 0 0; border-top: 1px solid var(--faint); display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px clamp(18px, 2.6vw, 44px); }
.hero-menu a { display: grid; justify-items: start; gap: 12px; font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; opacity: .72; transition: opacity .25s, transform .5s var(--out); }
.hero-menu a:hover { opacity: 1; transform: translateY(-4px); }
.ico { display: block; width: 26px; height: 26px; } .ico svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ico .dl { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1); transition-delay: calc(var(--d, 0) * 120ms + var(--i, 0) * 140ms + .7s); }
.is-page .hero-menu .ico .dl, .step.in .ico .dl { stroke-dashoffset: 0; }
.step.in .ico .dl { transition-delay: calc(var(--d, 0) * 120ms + .25s); }
.ico .r { filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), .9)); }
.hero-menu a:hover .ico .r, .step:hover .ico .r { animation: retrace 1s cubic-bezier(.65,0,.35,1); }
@keyframes retrace { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 46px; overflow: hidden; opacity: 0; transition: opacity 1s 1.5s; } .is-page .scroll-cue { opacity: .7; }
.scroll-cue i { display: block; width: 1px; height: 100%; background: linear-gradient(transparent, var(--fg)); animation: cue 2.6s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

.sec-in { width: min(600px, 100%); position: relative; }
.sec-in::before, .hero-in::before { content: ""; position: absolute; inset: -140px -170px; background: radial-gradient(closest-side, rgba(var(--fogc),calc(.94*var(--fog))), rgba(var(--fogc),calc(.78*var(--fog))) 50%, rgba(var(--fogc),calc(.3*var(--fog))) 78%, transparent); filter: blur(14px); z-index: -1; pointer-events: none; }
.hero-in { position: relative; }
.sec .big { font-size: clamp(19px, 2.25vw, 38px); letter-spacing: .16em; }
.sec-right { justify-items: end; } .sec-mid { justify-items: center; text-align: center; } .sec-mid .sec-in { width: min(1180px, 100%); }
.sec-mid .label, .sec-mid .body { justify-content: center; margin-left: auto; margin-right: auto; }
[data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 1.2s ease, transform 1.4s var(--out); transition-delay: calc(var(--i, 0) * 110ms); }
[data-rv].in { opacity: 1; transform: none; }
.label { margin: 0 0 34px; display: flex; align-items: center; gap: 18px; font-size: 10px; letter-spacing: .6em; text-transform: uppercase; color: var(--mute); }
.label-n { color: var(--accent); letter-spacing: .3em; }
.they { margin: 0 0 34px; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.7vw, 25px); line-height: 1.5; color: rgba(var(--txt),.5); }
.mid { margin: 0 0 clamp(40px, 7vh, 80px); font-weight: 200; text-transform: uppercase; letter-spacing: .3em; font-size: clamp(20px, 2.4vw, 38px); }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 34px 34px 1fr; gap: 0 20px; align-items: start; padding: 26px 0; border-top: 1px solid var(--faint); position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--out); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }
.step:hover::before { transform: scaleX(1); }
.step-ico { width: 30px; height: 30px; transition: transform .6s var(--out); } .step:hover .step-ico { transform: translateX(6px) scale(1.1); }
.step-n { font-size: 10px; letter-spacing: .3em; color: var(--accent); padding-top: 9px; }
.step h3 { margin: 6px 0 10px; font-weight: 300; font-size: 14px; letter-spacing: .46em; text-transform: uppercase; }
.step p { margin: 0; font-size: 13.5px; line-height: 1.8; letter-spacing: .04em; color: var(--mute); }

/* the wall: framed pieces under a strip of warm light, as in the lobby */
.wall { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 48px); perspective: 1600px; text-align: left; }
.frame { position: relative; padding: 0 0 26px; background: linear-gradient(#0c0c0e, #050506); border: 1px solid rgba(var(--txt),.12); box-shadow: 0 40px 80px rgba(0,0,0,.7), 0 -1px 0 rgba(255,214,170,.35) inset; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--out), border-color .4s, box-shadow .5s; transform-style: preserve-3d; }
.frame::before { content: ""; position: absolute; left: 8%; right: 8%; top: -26px; height: 26px; background: radial-gradient(60% 100% at 50% 100%, rgba(255,206,150,.22), transparent 70%); pointer-events: none; }
.frame:hover, .frame:focus-visible { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 50px 100px rgba(0,0,0,.8), 0 0 60px rgba(var(--accent-rgb), .18), 0 -1px 0 rgba(255,214,170,.5) inset; }
.frame-art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 30%, #1a1a1f, #070708 75%); margin-bottom: 24px; overflow: hidden; }
.frame-art img { max-width: 46%; max-height: 62%; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(0,0,0,.7)); transition: transform .9s var(--out); transform: translateZ(30px); } .frame:hover .frame-art img { transform: translateZ(30px) scale(1.08); }
.frame-type { font-weight: 200; font-size: clamp(13px, 1.25vw, 19px); letter-spacing: .3em; padding-left: .3em; max-width: 90%; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 10px; }
.frame-kind, .frame-name, .frame-line { margin: 0; padding: 0 24px; }
.frame-kind { font-size: 9px; letter-spacing: .44em; text-transform: uppercase; color: var(--accent); }
.frame-name { margin-top: 12px; font-weight: 300; font-size: 16px; letter-spacing: .44em; text-transform: uppercase; }
.frame-line { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.45; color: var(--mute); }

.sec-contact { align-items: end; padding-bottom: 14vh; }
.sec-contact .btn { margin-top: 40px; } .mail { margin: 22px 0 0; font-size: 12px; letter-spacing: .2em; color: var(--mute); }
.foot { padding: 60px var(--pad) 40px; border-top: 1px solid var(--faint); background: rgba(var(--fogc),.82); }
.foot-in { display: grid; justify-items: center; gap: 16px; text-align: center; }
.foot-lock { display: grid; justify-items: center; gap: 22px; margin-bottom: 14px; }
.foot-lockup { width: min(80vw, 520px); height: auto; }
.foot-mono { height: 84px; width: auto; }
.foot-word { margin: 0; font-weight: 300; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: .5em; padding-left: .5em; }
.foot-studio { margin: 0; font-size: 10px; letter-spacing: 1.2em; padding-left: 1.2em; text-transform: uppercase; opacity: .7; position: relative; }
.foot-studio::before, .foot-studio::after { content: ""; position: absolute; top: 45%; width: clamp(50px, 9vw, 130px); height: 1px; background: currentColor; opacity: .4; }
.foot-studio::before { right: calc(100% + 14px); } .foot-studio::after { left: calc(100% + 2px); }
.foot-fam { margin: 0; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--mute); }
.foot-nav { display: flex; gap: 34px; } .foot-nav a { font-size: 10px; letter-spacing: .42em; text-transform: uppercase; opacity: .7; } .foot-nav a:hover { opacity: 1; color: var(--accent); }
.foot-copy { margin: 0; font-size: 9px; letter-spacing: .4em; text-transform: uppercase; opacity: .35; }

/* pillars under the studio statement */
.pillars { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; }
.pillar { border-left: 1px solid var(--accent); padding: 2px 0 2px 16px; }
.pillar h3 { margin: 0 0 8px; font-weight: 300; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; }
.pillar p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 14.5px; line-height: 1.45; color: var(--mute); }
/* the two ends */
.ends { display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(26px, 5vw, 80px); align-items: stretch; text-align: left; margin-top: 20px; }
.end-line { position: relative; background: linear-gradient(transparent, var(--accent) 20%, var(--accent) 80%, transparent); box-shadow: 0 0 18px rgba(var(--accent-rgb), .7); }
.end-tag { margin: 0 0 16px; font-size: 9.5px; letter-spacing: .5em; text-transform: uppercase; color: var(--accent); }
.end-name { margin: 0 0 18px; font-weight: 200; font-size: clamp(26px, 3.4vw, 54px); letter-spacing: .3em; text-transform: uppercase; }
.end-name i { color: var(--accent); }
.end-text { margin: 0 0 28px; font-size: 14.5px; line-height: 1.85; letter-spacing: .05em; color: var(--mute); max-width: 26em; }
.end-sky .end-text { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: 0; line-height: 1.4; color: var(--fg); }
.end-mark { position: absolute; left: 50%; top: 50%; width: 64px; transform: translate(-50%, -50%); background: var(--room); border-radius: 50%; padding: 6px; }
.ends-foot { margin: 46px 0 0; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--mute); }
/* ---------- tweak panel ---------- */
.tweak-panel { position: fixed; right: 14px; top: 64px; bottom: 60px; width: min(340px, calc(100vw - 28px)); z-index: 60; display: flex; flex-direction: column; background: rgba(8,8,10,.95); border: 1px solid rgba(228,228,232,.16); box-shadow: 0 30px 80px rgba(0,0,0,.6); font-size: 12px; letter-spacing: .04em; font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif; font-weight: 400; }
.tweak-panel[hidden] { display: none; }
.tw-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid rgba(228,228,232,.1); }
.tw-title { margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.tw-close { width: 26px; height: 26px; font-size: 20px; line-height: 1; opacity: .7; } .tw-close:hover { opacity: 1; color: var(--accent); }
.tw-note { margin: 0; padding: 10px 16px 0; font-size: 11.5px; line-height: 1.5; color: rgba(228,228,232,.55); }
.tw-themes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(228,228,232,.1); }
.tw-theme { display: grid; gap: 6px; justify-items: center; font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; } .tw-theme:hover { opacity: 1; }
.tw-theme > i { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(228,228,232,.2); position: relative; border-radius: 50%; }
.tw-theme u { width: 46%; height: 46%; border-radius: 50%; } .tw-theme s { position: absolute; width: 24%; height: 24%; right: 14%; top: 14%; border-radius: 50%; }
.tw-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 10px; scrollbar-width: thin; scrollbar-color: rgba(228,228,232,.25) transparent; }
.tw-group { border-bottom: 1px solid rgba(228,228,232,.08); }
.tw-group summary { cursor: pointer; padding: 13px 0 11px; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
.tw-group summary::-webkit-details-marker { display: none; }
.tw-group summary::after { content: "+"; color: var(--accent); font-size: 14px; letter-spacing: 0; } .tw-group[open] summary::after { content: "–"; }
.tw-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 5px 0 9px; }
.tw-name { color: rgba(228,228,232,.86); } .tw-row output { color: rgba(228,228,232,.5); font-variant-numeric: tabular-nums; font-size: 11px; }
.tw-row input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); height: 18px; margin: 0; }
.tw-color { grid-template-columns: 1fr auto 40px; } .tw-color input { width: 40px; height: 24px; padding: 0; border: 1px solid rgba(228,228,232,.25); background: none; }
.tw-toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
.tw-select select { grid-column: 1 / -1; width: 100%; background: #111114; color: #e4e4e8; border: 1px solid rgba(228,228,232,.2); padding: 7px 8px; font: inherit; }
.tw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid rgba(228,228,232,.1); }
.tw-actions button { padding: 10px 6px 9px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid rgba(228,228,232,.2); transition: border-color .2s, background .2s; }
.tw-actions button:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .14); }
.tw-reset { grid-column: 1 / -1; color: var(--accent); }

@media (max-width: 1440px) { .nav { gap: clamp(14px, 1.9vw, 30px); } .nav a { letter-spacing: .32em; } #btn-replay .opt { display: none; } }
@media (max-width: 1120px) { .nav { gap: 14px; } .nav a { letter-spacing: .22em; font-size: 10px; } .top-tools { gap: 16px; } }
@media (max-width: 960px) { .is-page .nav { display: none; } }   /* too tight for the row: the hero menu and the page itself carry the sections */
@media (max-width: 860px), (max-aspect-ratio: 6/5) {
  .hero { align-items: end; padding: 12vh 24px 9vh; } .sec { padding: 14vh 24px; align-items: end; justify-items: start; text-align: left; }
  .hero::before, .sec::before { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(var(--fogc),.9) 40%); pointer-events: none; }
  .hero-in, .sec-in { position: relative; max-width: none; } .hero-in::before { inset: -60px -24px -9vh; filter: none; background: linear-gradient(rgba(var(--fogc),0), rgba(var(--fogc),calc(.85*var(--fog))) 80px, rgba(var(--fogc),calc(.94*var(--fog)))); }
  .sec::before { display: none; }
  .sec-in::before { display: block; inset: -48px -24px -14vh; background: linear-gradient(rgba(var(--fogc),0), rgba(var(--fogc),calc(.92*var(--fog))) 64px, rgba(var(--fogc),calc(.96*var(--fog)))); }
  .sec { padding-top: 40vh; }
  .step { grid-template-columns: 30px 1fr; gap: 6px 14px; padding: 22px 0; } .step-n { grid-column: 2; grid-row: 1; padding-top: 0; align-self: center; }
  .step-ico { grid-row: 1; width: 26px; height: 26px; } .step-t { grid-column: 1 / -1; }
  .btn { padding: 16px 20px 15px; letter-spacing: .26em; gap: 12px; max-width: 100%; } .mail { word-break: break-all; letter-spacing: .08em; }
  .they { font-size: 16px; } .sec .big { font-size: clamp(18px, 5.4vw, 28px); letter-spacing: .12em; }
  .hero-title, .big { letter-spacing: .12em; font-size: clamp(19px, 5.6vw, 34px); } .hero-body, .body { font-size: 12.5px; margin-top: 18px; } .eyebrow { font-size: 8px; letter-spacing: .3em; margin-bottom: 16px; }
  .brand-word { height: 11px; } .brand-m { height: 27px; width: auto; margin: -3px 0; } .opt { display: none; } .tx { letter-spacing: .24em; font-size: 9px; } .hero-menu { grid-template-columns: repeat(4, 1fr); margin-top: 34px; gap: 8px; } .hero-menu a { font-size: 8px; letter-spacing: .2em; }
  .hero-cta { margin-top: 28px; } .nav { display: none !important; } .scroll-cue { display: none; }
  .wall { grid-template-columns: 1fr; max-width: 440px; } .pillars { grid-template-columns: 1fr; } .ends { grid-template-columns: 1fr; } .end-line { height: 1px; } .end-mark { width: 46px; } .sec-mid .label { justify-content: flex-start; margin-left: 0; }
  .cap { letter-spacing: .12em; word-spacing: .1em; bottom: 12vh; } .cap-word { letter-spacing: .3em; padding-left: .3em; }
}
@media (prefers-reduced-motion: reduce) {
  [data-rv], .hero-in > *, .cap-w { transition-duration: .01s !important; transition-delay: 0s !important; filter: none !important; } .scroll-cue i { animation: none; }
}

/* ---- v8: readable page. Paragraphs in a reading face, larger and brighter; small notes no longer tiny or dim ---- */
.hero-body, .body, .step p, .end-text { font-family: var(--read); font-weight: 400; letter-spacing: .003em; font-size: clamp(16px, 1.1vw, 18px); line-height: 1.62; color: rgba(var(--txt),.86); }
.step p { font-size: clamp(15px, 1vw, 16.5px); }
.they { color: rgba(var(--txt),.74); }
.pillar p, .frame-line, .ends-foot, .foot-fam { font-size: 16.5px; line-height: 1.45; color: rgba(var(--txt),.78); }
.eyebrow { font-size: 11px; color: rgba(var(--txt),.74); }
.step h3 { font-size: 15px; } .pillar h3 { font-size: 12px; letter-spacing: .22em; font-weight: 400; white-space: nowrap; }   /* "Highly secure" on one line, not stacked */
@media (max-width: 860px), (max-aspect-ratio: 6/5) {
  .hero-body, .body, .step p, .end-text { font-size: 16px; }
  .hero-in, .sec-in { min-width: 0; width: 100%; }                  /* never wider than the phone */
  .eyebrow { font-size: 9.5px; white-space: normal; letter-spacing: .32em; line-height: 1.7; }
  .hero-title, .big { overflow-wrap: anywhere; }
}

/* ---- v10: the white version (the site after the film; the film itself always plays on black) ---- */
html.is-paper { --room: #f2f2ef !important; --fg: #121215; --mute: rgba(18,18,21,.68); --faint: rgba(18,18,21,.14); --txt: 18,18,21; --fogc: 242,242,239; }
html, body, #stage, .frame, .foot, .top { transition: background-color .9s ease, color .9s ease, border-color .9s ease; }
html.is-paper .frame-art { background: radial-gradient(70% 60% at 50% 30%, #ffffff, #e7e7e3 78%); }   /* light picture tiles on the white site */
html.is-paper .frame { background: linear-gradient(#ffffff, #efefec); border-color: rgba(18,18,21,.1); box-shadow: 0 30px 60px rgba(18,18,21,.12); }
html.is-paper .frame:hover, html.is-paper .frame:focus-visible { box-shadow: 0 40px 80px rgba(18,18,21,.18), 0 0 0 1px rgba(var(--accent-rgb), .5); }
html.is-paper .frame-art img { filter: drop-shadow(0 14px 24px rgba(18,18,21,.22)); }
html.is-paper .tweak-fab { background: rgba(242,242,239,.9); color: #121215; }
html.is-paper .tx { opacity: .8; }
.bg-switch { gap: 8px; align-items: center; }
.bg-switch::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); flex: none; }
.top-tools { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }


/* ---- v11: the intro on white. Dark type on a soft white haze; the haze drifts like the black fog did ---- */
html.is-paper .cap { color: #121215; text-shadow: 0 0 6px rgba(242,242,239,calc(.95*var(--fog))), 0 0 18px rgba(242,242,239,calc(.85*var(--fog))), 0 0 44px rgba(242,242,239,calc(.7*var(--fog))); }
html.is-paper .cap::before { background: radial-gradient(50% 50% at 50% 50%, rgba(242,242,239,calc(.86*var(--fog))), rgba(242,242,239,calc(.62*var(--fog))) 45%, rgba(242,242,239,calc(.22*var(--fog))) 75%, transparent); }
html.is-paper .cap::after { background: radial-gradient(48% 46% at 42% 52%, rgba(242,242,239,calc(.75*var(--fog))), transparent 72%), radial-gradient(44% 50% at 60% 46%, rgba(242,242,239,calc(.65*var(--fog))), transparent 70%); }
html.is-paper .cap-mark::before { background: radial-gradient(closest-side, rgba(242,242,239,calc(1*var(--fog))), rgba(242,242,239,calc(.9*var(--fog))) 55%, rgba(242,242,239,calc(.4*var(--fog))) 82%, transparent); }
html.is-paper .cap-lock { content: url(../logos/lockup-ink.webp); filter: none; }

/* v13 · the opening is your icon: the lattice burns in beside the film's red blade, the shards break off it */
#ix-mark { position: fixed; inset: 0; z-index: 1; pointer-events: none; display: none; will-change: opacity; }
#ix-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
#ix-mark .mk0 { stop-color: #e2e2e6; } #ix-mark .mk1 { stop-color: #cfcfd4; } #ix-mark .mk2 { stop-color: #b4b4ba; }
#ix-mark .mk-h { fill: #ff5a4e; }
html.is-paper #ix-mark .mk0 { stop-color: #2c2c33; } html.is-paper #ix-mark .mk1 { stop-color: #1b1b20; } html.is-paper #ix-mark .mk2 { stop-color: #0d0d10; }
html.is-paper #ix-mark .mk-h { fill: #e0202c; }


/* SourceGraphic blur preserves the colour at each logo edge in both room themes. */
.frame-art img, html.is-paper .frame-art img { filter: url(#logo-color-glow); }
.brand-m, .brand-word, .foot-mono, .foot-lockup, .end-mark, .cap-lock, .xg { filter: url(#logo-color-glow); }
