/* Layout concept: a gate with two real-looking windows on a concrete wall. Each opens into a full colour world.
   Software is cobalt, hardware is signal orange, the 3D stage is true black. Type is one variable family whose width axis does the talking. */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --wall: #d9dce0;
  --ink: #000000;
  --paper: #f5f5f2;
  --cobalt: #2432e8;
  --cobalt-deep: #1722b4;
  --orange: #ff5a1f;
  --orange-deep: #d9430c;
  --fg: var(--ink);
  --bg: var(--wall);
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f); font-size: 1rem; line-height: 1.55; font-stretch: 100%; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background-color .6s var(--ease), color .6s var(--ease); }
body[data-world="sw"] { --bg: var(--cobalt); --fg: var(--paper); }
body[data-world="hw"] { --bg: var(--orange); --fg: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
::selection { background: var(--paper); color: var(--ink); }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }

/* custom cursor, fine pointers only */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor button, .has-cursor a { cursor: none; }
.cursor span { display: grid; place-items: center; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--paper); mix-blend-mode: difference; font-size: .72rem; font-weight: 700; color: var(--ink); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease); white-space: nowrap; }
.cursor.big span { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--paper); }
body[data-world="hw"] .cursor.big span { background: var(--ink); color: var(--paper); }

/* top bar */
.bar { position: fixed; z-index: 90; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gut-r) 12px var(--gut); color: var(--fg); pointer-events: none; transition: color .6s var(--ease); }
.bar > * { pointer-events: auto; }
.mark { font-stretch: 125%; font-weight: 850; font-size: 1.05rem; letter-spacing: .01em; justify-self: start; }
.avail { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; }
.avail i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.bar-nav { display: none; gap: 22px; justify-self: center; }
.bar-link { font-weight: 600; font-size: .95rem; position: relative; padding: 4px 0; }
.bar-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.bar-link:hover::after, .bar-link[aria-current="true"]::after { transform: scaleX(1); }
.clock { justify-self: end; font-size: .88rem; font-weight: 500; font-variant-numeric: tabular-nums; }
body:not([data-world="gate"]) .avail { display: none; }
body:not([data-world="gate"]) .bar-nav { display: flex; }
body[data-world="hw"] .bar { color: var(--ink); }

/* GATE */
.gate { position: relative; min-height: 100svh; padding: clamp(84px, 13vh, 130px) var(--gut-r) clamp(20px, 4vh, 40px) var(--gut); display: flex; flex-direction: column; gap: clamp(12px, 2.2vh, 24px); overflow: hidden; }
.gate::before { content: ""; position: absolute; inset: -20% -10%; background: linear-gradient(112deg, transparent 38%, rgba(255,255,255,.55) 46%, transparent 54%, transparent 62%, rgba(255,255,255,.3) 66%, transparent 72%); transform: translateX(-12%); animation: shaft 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes shaft { to { transform: translateX(18%); } }
.gate-title { position: relative; font-stretch: 125%; font-weight: 850; font-size: clamp(2.5rem, 6.6vw, 6.6rem); line-height: .92; letter-spacing: -.02em; max-width: 12em; text-wrap: balance; }
.gline { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.gline > span { display: inline-block; }
.gate-lede { position: relative; max-width: 36em; font-size: clamp(1rem, 1.35vw, 1.2rem); }
.windows { position: relative; flex: 1; min-height: clamp(300px, 46vh, 600px); display: flex; gap: clamp(14px, 2vw, 28px); margin-top: auto; }
.win { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; transition: flex .8s var(--ease), opacity .5s ease, filter .5s ease; }
.win:hover, .win:focus-visible { flex: 1.45; }
.windows:has(.win:hover) .win:not(:hover), .windows:has(.win:focus-visible) .win:not(:focus-visible) { opacity: .5; filter: grayscale(.7); }
.win-frame { position: relative; flex: 1; min-height: 220px; border: clamp(8px, 1vw, 14px) solid #0a0a0a; background: var(--ink); overflow: hidden; perspective: 1500px; }
.room { position: absolute; inset: 0; overflow: hidden; }
.win-sw .room { background: var(--cobalt); }
.win-hw .room { background: var(--orange); perspective: 900px; }
.sash { position: absolute; top: 0; bottom: 0; width: 50%; border: 7px solid #0a0a0a; background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.18) 50%, rgba(255,255,255,.4)); transition: transform 1s var(--ease); will-change: transform; }
.sash::before, .sash::after { content: ""; position: absolute; background: #0a0a0a; }
.sash::before { left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; }
.sash::after { top: 50%; left: 0; right: 0; height: 6px; margin-top: -3px; }
.sl { left: 0; transform-origin: left center; border-right-width: 4px; }
.sr { right: 0; transform-origin: right center; border-left-width: 4px; }
.win:hover .sl, .win:focus-visible .sl, .win.open .sl { transform: rotateY(-80deg); }
.win:hover .sr, .win:focus-visible .sr, .win.open .sr { transform: rotateY(80deg); }
.win-name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.win-name b { font-size: clamp(1.8rem, 3.6vw, 3.6rem); font-weight: 850; font-stretch: 125%; line-height: 1; letter-spacing: -.02em; transition: font-stretch .7s var(--ease); }
.win:hover .win-name b, .win:focus-visible .win-name b { font-stretch: 78%; }
.win-name small { font-size: .95rem; font-weight: 500; max-width: 18em; }

.slab { position: absolute; background: var(--paper); border-radius: 6px; padding: 12px; display: grid; gap: 8px; align-content: start; box-shadow: 0 18px 40px rgba(0,0,0,.28); animation: drift 7s ease-in-out infinite alternate; }
.slab i { display: block; height: 9px; border-radius: 2px; background: var(--cobalt); opacity: .85; }
.slab i:nth-child(2) { width: 70%; opacity: .45; } .slab i:nth-child(3) { width: 40%; opacity: .3; } .slab i:nth-child(4) { width: 85%; opacity: .2; }
.s1 { left: 9%; top: 10%; width: 48%; height: 36%; }
.s2 { right: 7%; top: 40%; width: 42%; height: 28%; animation-delay: -2.4s; animation-direction: alternate-reverse; }
.s3 { left: 20%; bottom: 7%; width: 56%; height: 26%; animation-delay: -4s; }
@keyframes drift { to { transform: translateY(-14px); } }
.roll { position: absolute; left: 6%; top: 0; display: flex; flex-direction: column; gap: .15em; font-size: clamp(1.8rem, 4.4vw, 4.4rem); font-weight: 850; font-stretch: 125%; line-height: 1.05; color: rgba(245,245,242,.28); animation: roll 22s linear infinite; }
@keyframes roll { to { transform: translateY(-50%); } }
.spin { position: absolute; left: 50%; top: 52%; width: min(52%, 280px); aspect-ratio: 1; transform-style: preserve-3d; animation: spin3 16s linear infinite; --gap: 34px; }
.win-hw:hover .spin, .win-hw:focus-visible .spin { --gap: 72px; }
@keyframes spin3 { from { transform: translate(-50%, -50%) rotateX(62deg) rotateZ(0deg); } to { transform: translate(-50%, -50%) rotateX(62deg) rotateZ(360deg); } }
.pl { position: absolute; inset: 0; border: 3px solid #000; transition: transform .9s var(--ease); }
.p1 { background: #000; transform: translateZ(0); }
.p2 { background: var(--paper); transform: translateZ(calc(var(--gap) * 1)); }
.p3 { background: rgba(0,0,0,.14); transform: translateZ(calc(var(--gap) * 2)); }
.p4 { background: rgba(245,245,242,.4); transform: translateZ(calc(var(--gap) * 3)); }

/* shared worlds */
.world { position: relative; }
.mega { overflow: hidden; padding-bottom: .06em; font-size: clamp(2.4rem, 13vw, 15rem); font-weight: 900; font-stretch: 112%; line-height: .86; letter-spacing: -.03em; }
.mega .ch { display: inline-block; font-variation-settings: "wdth" var(--w, 112); }
.h2 { font-size: clamp(2rem, 4.8vw, 4.6rem); font-weight: 850; font-stretch: 118%; line-height: .95; letter-spacing: -.02em; max-width: 14em; text-wrap: balance; }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.45rem); max-width: 30em; line-height: 1.4; font-weight: 500; }
.pad { padding-left: var(--gut); padding-right: var(--gut-r); }

/* SOFTWARE */
.sw-hero { position: relative; min-height: 100svh; padding: clamp(96px, 14vh, 150px) var(--gut-r) 0 var(--gut); display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(18px, 3vh, 32px); overflow: hidden; }
.sw-hero > .mega, .hero-row { position: relative; z-index: 2; }
.drift { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fl { position: absolute; background: var(--paper); border-radius: 8px; padding: 14px; display: grid; gap: 9px; align-content: start; }
.fl i { height: 10px; border-radius: 2px; background: var(--cobalt); opacity: .8; }
.fl i:nth-child(2) { width: 68%; opacity: .4; } .fl i:nth-child(3) { width: 44%; opacity: .25; } .fl i:nth-child(4) { width: 82%; opacity: .18; }
.f1 { right: 9%; top: 15%; width: clamp(150px, 22vw, 340px); height: clamp(110px, 15vw, 230px); box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.f2 { right: 28%; top: 30%; width: clamp(120px, 15vw, 230px); height: clamp(90px, 10vw, 150px); opacity: .55; }
.f3 { right: 3%; top: 48%; width: clamp(100px, 13vw, 200px); height: clamp(80px, 9vw, 130px); opacity: .28; }
.ticker { position: relative; z-index: 2; margin: 0 calc(var(--gut-r) * -1) 0 calc(var(--gut) * -1); border-top: 2px solid currentColor; overflow: hidden; padding: 14px 0; }
.ticker-in { display: flex; gap: 3rem; width: max-content; animation: tick 30s linear infinite; font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 750; font-stretch: 125%; white-space: nowrap; }
@keyframes tick { to { transform: translateX(-50%); } }

.sw-work { position: relative; background: var(--ink); color: var(--paper); padding: clamp(60px, 10vh, 110px) 0 0; display: flex; flex-direction: column; min-height: 100svh; }
.work-head { padding: 0 var(--gut-r) 0 var(--gut); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.work-hint { font-size: .92rem; opacity: .7; max-width: 22em; }
.track-wrap { flex: 1; display: flex; align-items: center; overflow: hidden; }
.track { display: flex; width: max-content; }
.panel { width: 100vw; flex: none; padding: clamp(24px, 4vh, 48px) var(--gut-r) clamp(24px, 4vh, 48px) var(--gut); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.p-name { font-size: clamp(2.1rem, 3.9vw, 4.6rem); overflow-wrap: anywhere; font-weight: 850; font-stretch: 110%; line-height: .94; letter-spacing: -.02em; margin-bottom: .5rem; transition: font-stretch .6s var(--ease); }
.panel:hover .p-name { font-stretch: 85%; }
.p-kind { font-size: .95rem; font-weight: 600; color: var(--ac); margin-bottom: 1rem; }
.p-desc { font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 32em; opacity: .88; }
.p-stack { margin-top: 1.2rem; font-size: .92rem; max-width: 34em; opacity: .65; }
.p-copy { min-width: 0; }

/* layered browser mockups */
.mock { --ac: #3ddc97; --sp: 1; position: relative; aspect-ratio: 5 / 4; max-height: 62vh; width: 100%; max-width: 760px; margin-inline: auto; perspective: 1400px; transform-style: preserve-3d; }
.mock-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s ease-out; }
.mock:hover { --sp: 2.4; }
.ml { position: absolute; translate: var(--px, 0px) 0; transform: translateZ(calc(var(--z) * var(--sp) * 1px)); transition: transform .8s var(--ease); backface-visibility: hidden; }
.m-back { --z: 0; inset: 4% 4% 16% 0; background: var(--paper); border-radius: 8px; overflow: hidden; color: var(--ink); box-shadow: 0 40px 80px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.m-bar { height: 9%; min-height: 22px; background: #e6e6e1; display: flex; align-items: center; gap: 6px; padding: 0 12px; flex: none; }
.m-bar i { width: 9px; height: 9px; border-radius: 50%; background: #b8b8b2; }
.m-bar u { margin-left: 10px; height: 9px; flex: 1; max-width: 46%; border-radius: 5px; background: #cfcfc9; }
.m-body { flex: 1; padding: 4%; display: grid; gap: 3%; min-height: 0; }
.bl { background: #dcdcd6; border-radius: 4px; }
.bl.ac { background: var(--ac); }
.bl.dk { background: #101015; }
.m-mid { --z: 55; right: 0; top: 22%; width: 38%; height: 38%; background: #101015; color: var(--paper); border-radius: 8px; padding: 4%; display: grid; gap: 7%; align-content: start; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.m-mid .bl { background: #2a2a33; } .m-mid .bl.ac { background: var(--ac); }
.m-front { --z: 120; left: 6%; bottom: 0; width: 22%; aspect-ratio: 9 / 17; background: #101015; border: 4px solid #2a2a33; border-radius: 14px; padding: 7% 8%; display: grid; gap: 6%; align-content: start; box-shadow: 0 40px 70px rgba(0,0,0,.6); }
.m-front .bl { background: #2a2a33; } .m-front .bl.ac { background: var(--ac); }
.ring { width: 62%; aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--ac); border-right-color: transparent; margin: 8% auto 4%; }
.tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.tabs b { font-size: .6rem; font-weight: 700; padding: 3px 7px; border-radius: 99px; background: #dcdcd6; }
.tabs b:first-child { background: var(--ac); }
.chart { width: 100%; height: 100%; }

/* rows */
.sw-more { position: relative; background: var(--paper); color: var(--ink); padding: clamp(60px, 10vh, 110px) var(--gut-r) clamp(60px, 10vh, 110px) var(--gut); }
.rows { list-style: none; margin: clamp(24px, 5vh, 56px) 0 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 32px; align-items: baseline; padding: clamp(14px, 2.4vh, 26px) 0; border-top: 2px solid var(--ink); position: relative; transition: padding .5s var(--ease), background-color .3s; }
.row:last-child { border-bottom: 2px solid var(--ink); }
.row h4 { font-size: clamp(1.8rem, 4.4vw, 4.4rem); font-weight: 850; font-stretch: 125%; line-height: 1; letter-spacing: -.02em; transition: font-stretch .6s var(--ease), color .3s; }
.row:hover h4 { font-stretch: 80%; color: var(--cobalt); }
.row:hover { padding-left: 14px; }
.row .kind { font-weight: 600; }
.row .what { font-size: .95rem; opacity: .75; }
.peek { position: fixed; z-index: 120; left: 0; top: 0; width: clamp(200px, 22vw, 320px); aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; transform: scale(.8); background: var(--cobalt); color: var(--paper); border-radius: 8px; overflow: hidden; padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35); display: flex; align-items: flex-end; font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 850; font-stretch: 125%; line-height: 1; transition: opacity .25s, transform .35s var(--ease), background-color .3s; }

/* stack */
.sw-stack { background: var(--cobalt); color: var(--paper); padding: clamp(60px, 10vh, 110px) 0; overflow: hidden; }
.sw-stack > .h2 { padding: 0 var(--gut-r) 0 var(--gut); margin-bottom: clamp(20px, 4vh, 48px); }
.marq { overflow: hidden; white-space: nowrap; will-change: transform; }
.marq > div { display: flex; gap: .45em; width: max-content; font-size: clamp(4rem, 12vw, 12rem); font-weight: 900; font-stretch: 120%; line-height: 1; letter-spacing: -.03em; animation: tick 40s linear infinite; }
.m2 > div { animation-duration: 52s; animation-direction: reverse; color: transparent; -webkit-text-stroke: 2px var(--paper); }
.m1 span::after, .m2 span::after, .m3 span::after { content: ""; display: inline-block; width: .16em; height: .16em; margin-left: .45em; border-radius: 50%; background: currentColor; vertical-align: middle; }
.m2 span::after { background: var(--paper); -webkit-text-stroke: 0; }
.stack-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); padding: clamp(40px, 7vh, 80px) var(--gut-r) 0 var(--gut); }
.stack-cols h4 { font-size: 1.05rem; font-weight: 750; margin-bottom: .6rem; font-stretch: 112%; }
.stack-cols p { font-size: .95rem; opacity: .85; max-width: 30em; }

/* film */
.sw-film { position: relative; background: var(--ink); color: var(--paper); }
.film-pin { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; gap: 24px; padding: clamp(70px, 11vh, 110px) var(--gut-r) 36px var(--gut); align-items: start; }
.film-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.film-copy p { max-width: 24em; opacity: .7; font-size: .95rem; }
.film-canvas { width: 100%; max-height: 66vh; aspect-ratio: 16 / 9; border-radius: 10px; background: #0b0b12; justify-self: center; align-self: center; border: 1px solid rgba(255,255,255,.16); }
.film-bar { position: absolute; left: var(--gut); right: var(--gut-r); bottom: 20px; height: 3px; background: rgba(255,255,255,.18); }
.film-bar i { display: block; height: 100%; background: var(--cobalt); transform-origin: left; transform: scaleX(0); }

/* contact */
.contact { position: relative; z-index: 2; min-height: 100svh; padding: clamp(100px, 16vh, 170px) var(--gut-r) clamp(40px, 6vh, 70px) var(--gut); display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 44px); overflow: hidden; }
.c-sw { background: var(--cobalt); color: var(--paper); }
.c-hw { background: var(--orange); color: var(--ink); }
.ct-title { font-size: clamp(2.6rem, 8.2vw, 9rem); font-weight: 900; font-stretch: 118%; line-height: .9; letter-spacing: -.035em; max-width: 12em; text-wrap: balance; }
.ct-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { --mx: 0px; --my: 0px; position: relative; display: inline-flex; align-items: center; min-height: 58px; padding: 0 1.8rem; border: 2px solid currentColor; border-radius: 99px; font-weight: 700; font-stretch: 112%; font-size: 1.05rem; overflow: hidden; transform: translate(var(--mx), var(--my)); transition: color .35s, transform .2s ease-out; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; background: currentColor; transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.c-sw .btn:hover, .c-sw .btn:focus-visible { color: var(--cobalt); }
.c-hw .btn:hover, .c-hw .btn:focus-visible { color: var(--orange); }
.c-sw .btn:hover span, .c-hw .btn:hover span { mix-blend-mode: normal; }
.btn.solid { background: var(--fg-s, currentColor); }
.c-sw .btn.solid { background: var(--paper); color: var(--cobalt); border-color: var(--paper); }
.c-sw .btn.solid::before { background: var(--ink); }
.c-sw .btn.solid:hover { color: var(--paper); }
.c-hw .btn.solid { background: var(--ink); color: var(--orange); border-color: var(--ink); }
.c-hw .btn.solid::before { background: var(--paper); }
.c-hw .btn.solid:hover { color: var(--ink); }
.fine { font-size: .88rem; opacity: .75; }

/* HARDWARE */
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; }
.hw-hero { position: relative; z-index: 2; min-height: 100svh; padding: clamp(96px, 14vh, 150px) var(--gut-r) clamp(30px, 6vh, 60px) var(--gut); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.hw-hero .mega { margin-top: 0; }
.gl-note { font-size: .95rem; font-weight: 600; }
.stage { position: relative; background: var(--ink); color: var(--paper); }
.stage-pin { min-height: 100svh; padding: clamp(80px, 12vh, 120px) var(--gut-r) 28px var(--gut); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; position: relative; }
.stage-copy { position: relative; z-index: 2; max-width: 34rem; display: grid; gap: clamp(10px, 2vh, 20px); }
.stage-lede { font-size: 1rem; opacity: .8; max-width: 28em; }
.model-note { font-size: .82rem; opacity: .55; }
.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.layers li { padding: 8px 0 8px 16px; border-left: 3px solid rgba(245,245,242,.22); opacity: .5; transition: opacity .3s, border-color .3s; cursor: default; }
.layers li b { display: block; font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 800; font-stretch: 116%; line-height: 1.15; }
.layers li span { display: block; font-size: .9rem; opacity: .85; max-width: 32em; }
.layers li.on, .layers li:hover { opacity: 1; border-color: var(--orange); }
.has-3d .layers li span { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .45s var(--ease), opacity .3s; }
.has-3d .layers li.on span, .has-3d .layers li:hover span { max-height: 8em; opacity: .85; }
.tagbox { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0; transform: translate(-100px, -100px); will-change: transform; }
.tag::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,90,31,.3); flex: none; }
.tag::after { content: attr(data-name); margin-left: 0; padding: 7px 12px; background: var(--orange); color: var(--ink); font-weight: 800; font-size: .88rem; font-stretch: 112%; white-space: nowrap; border-radius: 99px; transform: translateX(26px); position: absolute; left: 0; }
.still { display: none; width: 100%; max-height: 70vh; object-fit: contain; }
.reduced .still { display: block; }
.hw-notes { position: relative; z-index: 2; background: var(--orange); color: var(--ink); padding: clamp(50px, 9vh, 100px) 0; overflow: hidden; }
.m3 > div { animation-duration: 46s; }

/* portal */
.portal { position: fixed; inset: 0; z-index: 250; pointer-events: none; visibility: hidden; display: grid; place-items: center; }
.portal-name { font-size: clamp(3rem, 12vw, 12rem); font-weight: 900; font-stretch: 118%; letter-spacing: -.03em; opacity: 0; }
.portal.sw { background: var(--cobalt); color: var(--paper); }
.portal.hw { background: var(--orange); color: var(--ink); }


@media (max-width: 999px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .stack-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .stage-pin { grid-template-columns: minmax(0, 1fr); align-items: end; padding-top: 80px; }
  .stage-copy { max-width: none; }
  .track { flex-direction: column; width: 100%; }
  .panel { width: 100%; }
  .track-wrap { display: block; overflow: visible; }
  .sw-work { min-height: 0; padding-bottom: 40px; }
}
@media (max-width: 700px) {
  .windows { flex-direction: column; min-height: 0; }
  .win-frame { min-height: 180px; }
  .win:hover, .win:focus-visible { flex: 1; }
  .gate { min-height: 100svh; height: auto; }
  .bar { grid-template-columns: 1fr auto; }
  .clock { display: none; }
  .stack-cols { grid-template-columns: minmax(0, 1fr); }
  .m-mid { width: 46%; }
  .m-front { width: 26%; }
  .has-3d .stage-pin { padding-bottom: 20px; }
  .has-3d .layers li:not(.on) span { display: none; }
  .has-3d .stage-lede, .has-3d .model-note { display: none; }
  .has-3d .stage-copy { padding: 36px 0 4px; background: linear-gradient(to bottom, rgba(0,0,0,0), #000 26%); margin: 0 calc(var(--gut) * -1) 0 calc(var(--gut-r) * -1); padding-left: var(--gut); padding-right: var(--gut-r); }
  .has-3d .stage-copy .h2 { font-size: 1.9rem; }
  .has-3d .layers li { padding: 5px 0 5px 14px; }
  .has-3d .layers li b { font-size: 1.02rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .gate::before { display: none; }
}

/* real screen recordings inside the browser frame */
.m-body { position: relative; }
.m-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .6s; background: #0b0b10; }
.m-vid.on { opacity: 1; }
.p-go, .row-go { display: inline-block; font-weight: 700; text-decoration: none; }
.p-go { margin-top: 1.4rem; padding: .7em 1.2em; border-radius: 999px; background: var(--ac); color: #0b0b10; font-size: .95rem; transition: transform .3s var(--ease), filter .3s; }
.p-go:hover { transform: translateY(-2px); filter: brightness(1.1); }
.row-go { margin-left: .6em; border-bottom: 2px solid currentColor; color: inherit; }
.row-go:hover { opacity: .6; }

.bar.on-paper { color: var(--ink); }

.stage-copy .h2 { font-size: clamp(2rem, 3.7vw, 3.9rem); }
@media (max-width: 999px) { .has-3d .stage-copy .h2 { font-size: 1.9rem; } }
