.lay { --o: 1; --s: 1; --c: 1; --m: 1; --k: 1; position: relative; background: var(--bg); }
.lay__frame { padding-top: clamp(80px, 10vw, 120px); }
.lay__intro { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 56px; }
.lay__h2 span { color: var(--faint); }
.lay__intro .lead { justify-self: end; padding-bottom: 10px; }
.lay__tabsrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; padding-bottom: 32px; }
.lay__tabs { display: inline-flex; justify-self: start; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--card); }
.lay__tabs button { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; background: none; cursor: pointer; line-height: 1; font-size: 16px; color: var(--muted); transition: color .35s var(--ease); }
.lay__tabs button + button { box-shadow: -1px 0 0 var(--line-2); }
.lay__tabs button span { font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--teal-2); padding-top: 1px; }
.lay__tabs button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transform-origin: right center; transition: transform .55s var(--ease); }
.lay__tabs button::after { content: ""; position: absolute; inset: 4px; pointer-events: none; opacity: 0; transition: opacity .35s, inset .5s var(--ease); --g: linear-gradient(var(--mint), var(--mint)); background: var(--g) top left / 5px 1px no-repeat, var(--g) top left / 1px 5px no-repeat, var(--g) top right / 5px 1px no-repeat, var(--g) top right / 1px 5px no-repeat, var(--g) bottom left / 5px 1px no-repeat, var(--g) bottom left / 1px 5px no-repeat, var(--g) bottom right / 5px 1px no-repeat, var(--g) bottom right / 1px 5px no-repeat; }
.lay__tabs button:hover { color: var(--ink); }
.lay__tabs button[aria-selected="true"] { color: #fff; }
.lay__tabs button[aria-selected="true"]::before { transform: scaleX(1); transform-origin: left center; }
.lay__tabs button[aria-selected="true"]::after { opacity: 1; }
.lay__titles { display: grid; }
.lay__ttl { grid-area: 1 / 1; margin: 0; justify-self: end; text-align: right; font: 400 clamp(30px, 3.2vw, 46px)/1.06 var(--serif); letter-spacing: -.02em; max-width: 18ch; text-wrap: balance; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.lay__ttl.is-active { opacity: 1; transform: none; }

.lay__band { position: relative; height: clamp(620px, 78svh, 860px); overflow: hidden; margin: 0 calc(-1 * var(--fpad)); background: #0c1a1e; }
.lay__photos { position: absolute; inset: 0; opacity: var(--m); }
.lay__photo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.lay__photo.is-active { opacity: 1; transform: none; }
.lay__band::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: var(--m); background: linear-gradient(90deg, rgb(4 12 15 / .84), rgb(4 12 15 / .72) 18%, rgb(4 12 15 / .4) 32%, rgb(4 12 15 / .12) 50%, rgb(4 12 15 / 0) 64%); }
.lay__points { position: absolute; z-index: 2; left: var(--fpad); bottom: 12%; width: calc(27% - var(--fpad) - 28px); display: grid; opacity: calc((var(--m) - .6) * 2.5); }
.lay__list { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--ease); }
.lay__list.is-active { opacity: 1; }
.lay__ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.lay__ul li { padding-left: 22px; border-left: 2px solid rgb(255 255 255 / .35); color: #fff; font-size: clamp(16px, 1.45vw, 22px); line-height: 1.3; text-wrap: balance; }

.iso { position: absolute; z-index: 3; left: 4%; top: -60px; bottom: 60px; width: 50%; display: none; place-items: center; perspective: 1800px; pointer-events: none; translate: 0 var(--isoy, 0px); }
.iso__stack { position: relative; width: 520px; height: 330px; transform-style: preserve-3d; transform: scale(var(--k, 1)) rotateX(57deg) rotate(-34deg); }
.plane { position: absolute; inset: 0; border-radius: 12px; background: rgb(252 252 252 / .9); box-shadow: inset 0 0 0 1px rgb(22 22 22 / .09); transform: translateZ(calc(var(--i) * -1 * var(--zs, 110px) * var(--s))) scale(calc(.6 + .4 * var(--o))); transition: background .6s var(--ease), box-shadow .6s var(--ease); }
.plane--0 { opacity: calc(var(--o) * (1 - var(--c))); }
.plane--1 { opacity: calc(var(--s) * (1 - var(--c))); }
.plane--2 { opacity: var(--s); }
.lay.is-morphing .plane--2 { opacity: 0; }
.plane--2::before { opacity: calc(1 - var(--c)); }
.lay.is-final .iso { visibility: hidden; }
.plane::before { content: ""; position: absolute; left: 0; top: -20px; width: 34%; height: 26px; border-radius: 10px 12px 0 0; background: inherit; box-shadow: inherit; clip-path: inset(0 0 6px); }
.plane > .mini { position: absolute; left: 0; top: 0; width: 640px; height: 406px; border-radius: 12px; overflow: hidden; transform-origin: 0 0; scale: .8125; opacity: .18; background: transparent; transition: opacity .6s var(--ease); pointer-events: none; }
.plane.is-on { background: #fff; box-shadow: inset 0 0 0 1px rgb(22 22 22 / .12), 0 3px 0 #e6e6e6, 0 30px 60px -30px rgb(22 22 22 / .35); }
.plane.is-on > .mini { opacity: 1; }
.plane--2.is-on { background: color-mix(in srgb, #fff calc((1 - var(--c)) * 100%), #eeeeee); }
.plane--2.is-on > .mini { opacity: calc(1 - var(--c)); }

.iso__list { position: absolute; z-index: 3; right: var(--fpad); top: 22%; width: 42%; list-style: none; margin: 0; padding: 0; display: none; gap: clamp(28px, 5vh, 52px); opacity: calc(var(--s) - var(--c) * 1.5 - var(--m) * 3); }
.iso__list li { position: relative; display: block; padding-left: 58px; color: var(--faint); --ly: .56em; }
.iso__list li::before { content: ""; position: absolute; right: calc(100% + 16px); top: var(--ly); margin-top: -.5px; width: var(--lw, clamp(60px, 14vw, 220px)); height: 1px; background: var(--line-2); transition: background .5s; }
.iso__list li::after { content: ""; position: absolute; left: 0; top: var(--ly); width: 6px; height: 6px; margin-top: -3px; background: currentColor; transition: background .5s; }
.iso__num { position: absolute; left: 16px; top: var(--ly); transform: translateY(-50%); font: 500 13px/1 var(--mono); font-feature-settings: "tnum"; }
.iso__name { display: block; font: 400 clamp(34px, 3.6vw, 56px)/1 var(--serif); letter-spacing: -.02em; transition: color .5s; }
.iso__desc { position: absolute; left: 58px; right: 0; top: 100%; max-height: 0; overflow: hidden; opacity: 0; font-size: 16px; line-height: 1.4; color: var(--muted); transform: translateY(-4px); transition: max-height .6s var(--ease), opacity .5s, transform .6s var(--ease); }
.iso__list li.is-on { color: var(--ink); }
.iso__list li.is-on::before { background: var(--ink); }
.iso__list li.is-on::after { background: var(--teal-2); }
.iso__list li.is-on .iso__desc { max-height: 3em; opacity: 1; transform: translateY(10px); }

.win { position: absolute; z-index: 2; left: 27%; top: 56px; width: max(1040px, 76%); height: 900px; border-radius: 14px 0 0 0; overflow: hidden; background: rgb(250 250 250 / .92); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .6), 0 1px 2px rgb(10 12 20 / .08), 0 40px 80px -30px rgb(10 12 20 / .45); transform-origin: center; transition: background .5s var(--ease), border-radius .5s var(--ease), box-shadow .5s var(--ease); }
.win > .a0-app { height: 100%; background: transparent; }
.win .w-side { background: transparent; box-shadow: none; }
.win .w-main { position: relative; margin: 10px 0 0; background: #fff; border-radius: 12px 0 0 0; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); overflow: hidden; }
.w-panel { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.w-panel.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.w-panel > :last-child { flex: 1; min-height: 0; }
.w-fill > .app { height: 100%; }
.w-center { display: grid; align-content: start; justify-items: center; padding-top: 32px; background: #fafafa; }
.w-card { width: min(460px, calc(100% - 32px)); background: #fff; border-radius: 12px; box-shadow: 0 0 0 .5px rgb(0 0 0 / .14), 0 20px 40px -24px rgb(0 0 0 / .3); }
.win:not(.is-built) { background: #eeeeee; border-radius: 12px; box-shadow: inset 0 0 0 1px rgb(22 22 22 / .12), 0 3px 0 #e6e6e6, 0 30px 60px -30px rgb(22 22 22 / .35); pointer-events: none; }
.win .bu { opacity: 0; transform: translateY(8px); }
.win.is-built .bu { opacity: 1; transform: none; transition: opacity .5s var(--ease) calc(var(--bi, 0) * 28ms), transform .7s var(--ease) calc(var(--bi, 0) * 28ms); }
.win .w-main.bu { transform: none; }

.lay.is-pinned { height: 680svh; }
.lay.is-pinned .lay__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.lay.is-pinned .lay__frame { padding-top: 88px; }
.lay.is-pinned .lay__intro { pointer-events: none; position: absolute; left: var(--fpad); right: var(--fpad); top: calc(68px + clamp(28px, 5vh, 64px)); margin: 0; opacity: calc(1 - var(--m) * 3); }
.lay.is-pinned .lay__tabsrow { opacity: calc((var(--m) - .35) * 2.5); }
.lay.is-pinned:not(.is-final) .lay__tabsrow { pointer-events: none; }
.lay.is-pinned .lay__band { height: calc(100svh - 88px - var(--tabh, 90px)); background: transparent; }
.lay.is-pinned .lay__band::before { content: ""; position: absolute; inset: 0; background: #0c1a1e; opacity: var(--m); }
.lay.is-pinned .iso, .lay.is-pinned .iso__list { display: grid; }
.lay.is-pinned:not(.is-morphing):not(.is-final) .win { visibility: hidden; opacity: 0; }
.lay.is-pinned .win { height: calc(100svh - 88px - var(--tabh, 90px) - 56px); }

@media (max-width: 960px) {
  .lay__intro { grid-template-columns: 1fr; }
  .lay__intro .lead { justify-self: start; }
  .lay__tabsrow { grid-template-columns: 1fr; }
  .lay__ttl { justify-self: start; text-align: left; }
  .lay__band { height: auto; display: grid; padding: 40px var(--fpad) 0; }
  .lay__points { position: relative; left: auto; bottom: auto; width: auto; margin-bottom: 32px; }
  .lay__band::after { background: linear-gradient(rgb(4 12 15 / .84), rgb(4 12 15 / .7) 22%, rgb(4 12 15 / .35), rgb(4 12 15 / .1) 58%, rgb(4 12 15 / 0) 72%); }
  .lay__ul { gap: 14px; }
  .win { position: relative; left: 0; top: 0; width: 900px; height: 640px; transform: none; }
}
@media (max-width: 640px) {
  .lay__tabs { display: flex; width: 100%; }
  .lay__tabs button { flex: 1 1 0%; justify-content: center; padding: 0 10px; font-size: 15px; gap: 6px; }
  .win { width: 720px; }
  .win .a0-app { grid-template-columns: minmax(0, 1fr); }
  .win .w-side { visibility: hidden; }
  .win .split2 { grid-template-columns: minmax(0, 1fr); }
}
.plane__pin { position: absolute; right: 0; top: 50%; width: 1px; height: 1px; pointer-events: none; }
