/* DAV Chile · Sala · demo conceptual no oficial. */
:root {
  --carbon: #070708;
  --graphite: #111216;
  --iron: #202228;
  --steel: #a9adb3;
  --chalk: #f1eee8;
  --yellow: #f5c400;
  --brake: #df3a25;
  --line: rgba(241, 238, 232, .18);
  --line-strong: rgba(241, 238, 232, .34);
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  --text: "Sofia Sans", "Helvetica Neue", Arial, sans-serif;
  --data: "Martian Mono", ui-monospace, Consolas, monospace;
  --mark: "Big Shoulders Stencil", "Sofia Sans Extra Condensed", Impact, sans-serif;
  --pad: clamp(18px, 3.3vw, 52px);
  --bar-h: 70px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: clip; color-scheme: dark; background: var(--carbon); scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body { width: 100%; max-width: 100%; margin: 0; overflow-x: clip; background: var(--carbon); color: var(--chalk); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
button, a { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd, figure, ol { margin: 0; padding: 0; }
ol { list-style: none; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
::selection { background: var(--yellow); color: #09090a; }

.skip { position: fixed; z-index: 120; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-140%); background: var(--yellow); color: #09090a; font: 750 12px/1 var(--data); text-transform: uppercase; }
.skip:focus { transform: none; }

.bar { position: fixed; z-index: 80; inset: 0 0 auto; height: var(--bar-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 0 var(--pad); border-bottom: 1px solid rgba(255,255,255,.07); background: linear-gradient(180deg, rgba(7,7,8,.94), rgba(7,7,8,.72)); backdrop-filter: blur(16px); }
.mark { display: inline-flex; align-items: baseline; gap: 7px; width: max-content; }
.mark b { font: italic 900 34px/.75 var(--display); letter-spacing: -.04em; }
.mark span { color: var(--yellow); font: 600 9px/1 var(--data); letter-spacing: .22em; }
/* V05.7 · logo DAV auténtico (media/logo-dav.svg, proporción nativa 806.52 × 337.03) */
.mark { align-items: center; }
.mark__logo { display: block; height: 36px; width: auto; aspect-ratio: 806.52 / 337.03; }
.footer .mark__logo { height: 32px; }
@media (max-width: 620px) { .mark__logo { height: 30px; } }
.nav { justify-self: end; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 35px); }
.nav a { position: relative; padding: 26px 0 22px; color: rgba(241,238,232,.68); font: 800 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; transition: color .22s ease; }
.nav a::after { content: ""; position: absolute; right: 0; bottom: 16px; left: 0; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--yellow); transition: transform .25s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--chalk); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav .nav__contact { margin-left: 3px; padding: 12px 20px; background: var(--yellow); color: #080809; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%); }
.nav .nav__contact::after { display: none; }
.nav .nav__contact:hover { color: #080809; filter: brightness(1.08); }
.lang { display: flex; gap: 4px; margin-left: 2px; }
.lang button { min-width: 30px; padding: 9px 5px; background: transparent; color: rgba(241,238,232,.52); font: 600 9px/1 var(--data); border-bottom: 2px solid transparent; }
.lang button[aria-pressed="true"] { color: var(--chalk); border-color: var(--chalk); }
.menu { display: none; padding: 11px 13px; border: 1px solid var(--line-strong); background: rgba(10,10,11,.72); font: 800 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }

.home { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; padding: calc(var(--bar-h) + 90px) var(--pad) clamp(82px, 10vh, 116px); }
.home__image, .home__veil { position: absolute; z-index: -3; inset: 0; }
.home__image img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; filter: saturate(.55) contrast(1.16) brightness(.73); transform: scale(1.025); transition: transform 1.6s var(--ease), filter 1.2s ease; }
body.is-loading .home__image img { transform: scale(1.09); filter: saturate(.35) contrast(1.2) brightness(.42); }
.home__veil { z-index: -2; background: linear-gradient(90deg, rgba(5,5,6,.96) 0%, rgba(5,5,6,.68) 42%, rgba(5,5,6,.16) 75%), linear-gradient(0deg, rgba(5,5,6,.94), transparent 55%, rgba(5,5,6,.36)); }
.home::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 86px 86px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.home__frame { position: absolute; inset: calc(var(--bar-h) + 30px) var(--pad) 30px; border: 1px solid rgba(255,255,255,.11); pointer-events: none; }
.home__frame i { position: absolute; width: 24px; height: 24px; border-color: var(--yellow); border-style: solid; }
.home__frame i:nth-child(1) { inset: -1px auto auto -1px; border-width: 3px 0 0 3px; }
.home__frame i:nth-child(2) { inset: -1px -1px auto auto; border-width: 3px 3px 0 0; }
.home__frame i:nth-child(3) { inset: auto auto -1px -1px; border-width: 0 0 3px 3px; }
.home__frame i:nth-child(4) { inset: auto -1px -1px auto; border-width: 0 3px 3px 0; }
.home__copy { max-width: min(850px, 72vw); transition: transform 1s var(--ease), opacity .8s ease; }
body.is-loading .home__copy { opacity: 0; transform: translateY(35px); }
.eyebrow { color: var(--yellow); font: 600 clamp(9px, .78vw, 12px)/1.3 var(--data); letter-spacing: .15em; text-transform: uppercase; }
.eyebrow b { color: var(--chalk); font: 900 1.35em/1 var(--mark); }
.home h1 { max-width: 9.3ch; margin: 18px 0 19px; font: italic 900 clamp(66px, 9.2vw, 142px)/.74 var(--display); letter-spacing: -.055em; text-transform: uppercase; text-wrap: balance; }
.home__lede { max-width: 660px; color: rgba(241,238,232,.78); font-size: clamp(17px, 1.45vw, 23px); line-height: 1.42; }
.home__routes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.route, .slab, .outline { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 21px; border: 1px solid var(--line-strong); background: rgba(8,8,9,.75); font: italic 850 22px/1 var(--display); letter-spacing: .035em; text-transform: uppercase; transition: transform .22s var(--ease), border-color .22s, background .22s; }
.route i, .slab i, .outline i, .textlink i { color: var(--yellow); font-style: normal; }
.route--primary, .slab { border-color: var(--yellow); background: var(--yellow); color: #080809; }
.route--primary i, .slab i { color: #080809; }
.route:hover, .slab:hover, .outline:hover { transform: translateY(-3px); border-color: var(--yellow); }
.home__telemetry { position: absolute; top: calc(var(--bar-h) + 23px); left: var(--pad); display: flex; gap: 13px; align-items: center; color: rgba(241,238,232,.57); font: 550 9px/1 var(--data); letter-spacing: .08em; }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brake); box-shadow: 0 0 0 3px rgba(223,58,37,.12); }
.home__place { position: absolute; right: var(--pad); bottom: 37px; color: rgba(241,238,232,.5); font: 550 9px/1 var(--data); letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue { position: absolute; bottom: 35px; left: 50%; display: grid; justify-items: center; gap: 9px; transform: translateX(-50%); color: rgba(241,238,232,.48); font: 550 8px/1 var(--data); letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue i { width: 1px; height: 24px; background: linear-gradient(var(--yellow), transparent); animation: cue 1.8s ease-in-out infinite; }

.section-head { max-width: 900px; }
.section-head h2, .genesis-home h2, .team-section h2, .contact-section h2 { margin: 17px 0 20px; font: italic 900 clamp(51px, 7.2vw, 106px)/.8 var(--display); letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; }
.section-head > p:last-child { max-width: 690px; color: rgba(241,238,232,.62); font-size: clamp(16px, 1.35vw, 20px); }
.section-lede { max-width: 650px; color: rgba(241,238,232,.74); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; }
.fine { color: rgba(241,238,232,.46); font: 500 9px/1.65 var(--data); letter-spacing: .06em; text-transform: uppercase; }

.portfolio { position: relative; min-height: 100svh; overflow: hidden; padding: calc(var(--bar-h) + 55px) 0 58px; background: radial-gradient(circle at 72% 52%, rgba(245,196,0,.07), transparent 32%), #09090b; }
.portfolio::before { content: "MOVIMIENTO"; position: absolute; top: 22%; left: -1vw; color: rgba(255,255,255,.024); font: italic 900 22vw/.65 var(--display); letter-spacing: -.07em; white-space: nowrap; pointer-events: none; }
.portfolio__head { position: relative; z-index: 3; padding: 0 var(--pad); }
.portfolio__head h2 { font-size: clamp(48px, 5.5vw, 84px); }
.portfolio-stage { position: relative; height: clamp(440px, 61vh, 650px); margin-top: 22px; overflow: hidden; contain: layout paint; perspective: 1500px; touch-action: pan-y; cursor: grab; }
.portfolio-stage.is-dragging { cursor: grabbing; }
.portfolio-camera, .work-cards { position: absolute; inset: 0; transform-style: preserve-3d; }
.work-card { --x: 0; --z: 0; --rot: 0; --scale: 1; position: absolute; top: 50%; left: 50%; width: min(68vw, 980px); aspect-ratio: 2.05/1; transform: translate3d(calc(-50% + var(--x) * 1px), -50%, calc(var(--z) * 1px)) rotateY(calc(var(--rot) * 1deg)) scale(var(--scale)); transform-origin: center; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: #0c0d10; box-shadow: 0 35px 90px rgba(0,0,0,.58); transition: border-color .25s; will-change: transform; }
.work-card.is-active { border-color: rgba(245,196,0,.65); }
.work-card figure, .work-card img { width: 100%; height: 100%; }
.work-card img { object-fit: cover; filter: saturate(.52) contrast(1.08) brightness(.7); transition: filter .35s ease; }
.work-card.is-active img { filter: saturate(.68) contrast(1.08) brightness(.82); }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,4,5,.96), transparent 50%), linear-gradient(90deg, rgba(4,4,5,.22), transparent 60%); pointer-events: none; }
.work-card__cap { position: absolute; z-index: 2; right: 16px; top: 16px; display: flex; gap: 9px; align-items: center; padding: 8px 11px; background: rgba(7,7,8,.86); font: 600 9px/1 var(--data); letter-spacing: .06em; text-transform: uppercase; }
.work-card__cap b { color: var(--yellow); font: 900 22px/.7 var(--mark); }
.work-card__body { position: absolute; z-index: 3; right: 22px; bottom: 20px; left: 22px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px; }
.work-card__body p { color: var(--yellow); font: 550 8px/1.25 var(--data); letter-spacing: .1em; text-transform: uppercase; }
.work-card__body h3 { margin: 6px 0 0; font: italic 900 clamp(42px, 5.3vw, 78px)/.72 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.work-card__body small { display: block; margin-top: 8px; color: rgba(241,238,232,.5); font: 500 8px/1.3 var(--data); text-transform: uppercase; }
.work-card__cta { min-height: 44px; align-self: end; padding: 0 16px; background: var(--yellow); color: #070708; font: italic 850 18px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.work-card__cta:hover { filter: brightness(1.08); }
.portfolio-gate { position: absolute; inset: 18px var(--pad); pointer-events: none; }
.portfolio-gate i { position: absolute; width: 22px; height: 22px; border-color: rgba(245,196,0,.55); border-style: solid; }
.portfolio-gate i:nth-child(1) { top: 0; left: 0; border-width: 2px 0 0 2px; }
.portfolio-gate i:nth-child(2) { top: 0; right: 0; border-width: 2px 2px 0 0; }
.portfolio-gate i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.portfolio-gate i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.portfolio-tc { position: absolute; top: 28px; left: calc(var(--pad) + 15px); display: flex; gap: 10px; align-items: center; color: rgba(241,238,232,.58); font: 550 8px/1 var(--data); }
.portfolio-tc b { color: var(--chalk); font: 900 20px/.8 var(--mark); }
.portfolio-tc i { font-style: normal; }
.portfolio-tc em { margin-left: 10px; font-style: normal; }
.portfolio-controls { position: relative; z-index: 5; width: min(470px, calc(100% - 2 * var(--pad))); display: grid; grid-template-columns: 43px 1fr 43px; gap: 12px; align-items: center; margin: -8px var(--pad) 0 auto; padding: 8px; border: 1px solid var(--line); background: rgba(18,19,23,.94); }
.portfolio-controls > button { width: 43px; height: 43px; border: 1px solid var(--line-strong); background: #0b0c0e; font-size: 21px; }
.portfolio-controls > button:disabled { opacity: .28; cursor: default; }
.work-track { position: relative; display: flex; justify-content: space-between; align-items: center; min-width: 0; }
.work-track::before, .work-track > i { content: ""; position: absolute; z-index: 0; top: 50%; right: 7px; left: 7px; height: 1px; background: rgba(255,255,255,.24); }
.work-track > i { z-index: 1; right: auto; width: var(--fill, 0%); background: var(--yellow); }
.work-track button { position: relative; z-index: 2; width: 14px; height: 26px; padding: 0; background: transparent; }
.work-track button::before { content: ""; position: absolute; top: 8px; left: 3px; width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid rgba(255,255,255,.44); background: #27292f; }
.work-track button[aria-selected="true"]::before { border-color: var(--yellow); background: var(--yellow); }
.work-track button span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); color: rgba(241,238,232,.45); font: 500 7px/1 var(--data); }
.portfolio__hint { margin: 16px var(--pad) 0; color: rgba(241,238,232,.42); font: 500 8px/1.4 var(--data); letter-spacing: .08em; text-transform: uppercase; }

.genesis-home { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); align-items: stretch; background: linear-gradient(135deg, #1c1e23, #111216 54%, #080809); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.genesis-home > * { min-width: 0; }
.genesis-home__visual { position: relative; min-height: 720px; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(circle at 52% 45%, #41444b, #1d1f24 45%, #0c0d10 78%); }
.genesis-home__visual::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .2; background: repeating-linear-gradient(90deg, transparent 0 84px, rgba(255,255,255,.1) 85px), repeating-linear-gradient(0deg, transparent 0 84px, rgba(255,255,255,.08) 85px); mask-image: linear-gradient(#000, transparent 85%); pointer-events: none; }
.genesis-home__visual::after { content: ""; position: absolute; z-index: 2; inset: auto 0 0; height: 28%; background: linear-gradient(transparent, rgba(4,4,5,.88)); pointer-events: none; }
.genesis-home__visual figure, .genesis-home__visual img { width: 100%; height: 100%; }
.genesis-home__visual img { object-fit: cover; object-position: 52% 50%; filter: contrast(1.04) brightness(1.18); }
.genesis-home__visual figcaption { position: absolute; z-index: 3; right: 22px; bottom: 20px; color: rgba(241,238,232,.48); font: 500 8px/1 var(--data); letter-spacing: .05em; text-transform: uppercase; }
.conceptual { display: inline-flex; width: max-content; padding: 6px 9px; border: 1px solid var(--yellow); color: var(--yellow); background: rgba(7,7,8,.74); font: 600 8px/1 var(--data); letter-spacing: .1em; text-transform: uppercase; }
.genesis-home__visual > .conceptual { position: absolute; z-index: 4; top: calc(var(--bar-h) + 24px); left: var(--pad); }
.genesis-home__number { position: absolute; z-index: 3; top: 50%; left: 50%; color: rgba(255,255,255,.08); font: 900 18vw/.7 var(--mark); transform: translate(-50%, -50%); white-space: nowrap; }
.genesis-home__copy { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--bar-h) + 45px) var(--pad) 70px; }
.genesis-home h2 { max-width: 100%; overflow-wrap: normal; word-break: normal; font-size: clamp(46px, 4vw, 60px); letter-spacing: -.05em; }
.genesis-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 35px 0 30px; background: var(--line); }
.genesis-facts div { padding: 16px 13px; background: #121318; }
.genesis-facts dt { color: rgba(241,238,232,.44); font: 550 8px/1 var(--data); letter-spacing: .08em; text-transform: uppercase; }
.genesis-facts dd { margin-top: 8px; font: 800 17px/1 var(--display); text-transform: uppercase; }
.genesis-facts small { margin-left: 5px; padding: 2px 4px; border: 1px solid var(--line-strong); font: 600 7px/1 var(--data); }
.genesis-actions { display: grid; gap: 9px; align-items: stretch; }
.genesis-actions .slab, .genesis-actions .outline, .genesis-actions .textlink { width: 100%; }
.textlink { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; padding: 0 2px; border-bottom: 1px solid var(--line-strong); background: transparent; color: rgba(241,238,232,.72); font: 600 9px/1 var(--data); letter-spacing: .07em; text-transform: uppercase; }
.textlink:hover { color: var(--chalk); border-color: var(--yellow); }
.genesis-home .fine { margin-top: 25px; }

.systems-section { min-height: 100svh; padding: calc(var(--bar-h) + 70px) var(--pad) 90px; background: #0a0a0c; }
.systems-grid { counter-reset: systems; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.systems-grid li { counter-increment: systems; min-height: 190px; display: grid; align-content: space-between; gap: 22px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(150deg, rgba(255,255,255,.025), transparent); }
.systems-grid li::before { content: counter(systems, decimal-leading-zero); color: var(--yellow); font: 900 25px/.8 var(--mark); }
.systems-grid h3 { font: italic 900 33px/.85 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.systems-grid p { color: rgba(241,238,232,.56); font-size: 14px; line-height: 1.5; }
.systems-section > .fine { margin-top: 25px; }

.team-section { min-height: 86svh; display: grid; grid-template-columns: 1.1fr .9fr; background: #111216; }
.team-section__image { position: relative; min-height: 620px; overflow: hidden; }
.team-section__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, #111216 100%); pointer-events: none; }
.team-section__image img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 45%; filter: grayscale(.78) contrast(1.08) brightness(.67); }
.team-section__image figcaption { position: absolute; z-index: 2; bottom: 20px; left: var(--pad); color: rgba(241,238,232,.5); font: 500 8px/1 var(--data); text-transform: uppercase; }
.team-section__copy { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--bar-h) + 50px) var(--pad) 70px; }
.team-section h2 { max-width: 7ch; }
.team-section .fine { margin-top: 30px; }

.contact-section { position: relative; min-height: 78svh; display: grid; align-content: center; padding: calc(var(--bar-h) + 65px) var(--pad) 80px; background: radial-gradient(circle at 80% 45%, rgba(245,196,0,.12), transparent 28%), #09090a; }
.contact-section h2 { max-width: 10ch; font-size: clamp(66px, 9.5vw, 142px); }
.contact-section__actions { display: flex; gap: 24px; align-items: center; margin-top: 34px; }
.contact-section__mail { position: absolute; right: var(--pad); align-self: end; color: rgba(241,238,232,.24); font: italic 900 clamp(34px, 5vw, 72px)/1 var(--display); }
.contact-section > .fine { margin-top: 55px; }

.footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding: 30px var(--pad); border-top: 1px solid var(--line); background: #050506; color: rgba(241,238,232,.45); font: 500 8px/1.5 var(--data); letter-spacing: .06em; text-transform: uppercase; }

.panel, .theater { width: min(760px, calc(100% - 28px)); max-height: calc(100svh - 28px); padding: 0; border: 1px solid var(--line-strong); background: #0d0e11; color: var(--chalk); box-shadow: 0 40px 110px #000; }
.panel::backdrop, .theater::backdrop { background: rgba(0,0,0,.83); backdrop-filter: blur(8px); }
.panel[open], .theater[open] { animation: dialog-in .35s var(--ease); }
.panel__close, .theater__close { position: absolute; z-index: 4; top: 14px; right: 14px; width: 43px; height: 43px; border: 1px solid var(--line-strong); background: #080809; font-size: 24px; }
.panel__index { padding: 20px 72px 18px 24px; border-bottom: 1px solid var(--line); color: var(--yellow); font: 600 9px/1 var(--data); letter-spacing: .1em; text-transform: uppercase; }
.panel__body { max-height: calc(100svh - 110px); overflow: auto; padding: 28px; }
.panel__body h2 { margin: 12px 0 18px; font: italic 900 clamp(47px, 8vw, 76px)/.78 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.panel__body > p { color: rgba(241,238,232,.64); }
.panel-visual { margin: 28px 0 20px; background: #050506; }
.panel-visual img { width: 100%; max-height: 360px; object-fit: cover; }
.panel-visual figcaption { padding: 10px; color: rgba(241,238,232,.52); font: 500 8px/1.4 var(--data); text-transform: uppercase; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 20px 0; background: var(--line); }
.facts-grid div { min-height: 78px; padding: 14px; background: #15161a; }
.facts-grid dt { color: rgba(241,238,232,.42); font: 500 8px/1 var(--data); text-transform: uppercase; }
.facts-grid dd { margin-top: 9px; font-weight: 650; }
.panel-actions { display: grid; gap: 10px; margin-top: 22px; }
.panel-note { margin-top: 20px; color: rgba(241,238,232,.43) !important; font: 500 8px/1.55 var(--data); text-transform: uppercase; }
.movement-picker { display: flex; flex-wrap: wrap; gap: 7px; margin: 21px 0; }
.movement-picker button { padding: 10px 12px; border: 1px solid var(--line); background: transparent; color: rgba(241,238,232,.68); font-size: 13px; }
.movement-picker button[aria-pressed="true"] { border-color: var(--yellow); background: var(--yellow); color: #070708; }

.theater { width: min(1380px, calc(100% - 24px)); height: min(900px, calc(100svh - 24px)); overflow: hidden; }
.theater__bar { min-height: 70px; display: grid; grid-template-columns: auto auto 1fr auto 44px; align-items: center; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.theater__bar h2 { font: italic 900 25px/1 var(--display); text-transform: uppercase; }
.theater__bar p { color: rgba(241,238,232,.43); font: 500 8px/1.4 var(--data); text-transform: uppercase; }
.theater__close { position: static; }
.theater__stage { position: relative; height: calc(100% - 70px); background: #0b0c0e; }
.theater iframe { width: 100%; height: 100%; border: 0; background: #0b0c0e; }
.theater__loading, .theater__fallback { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; gap: 15px; background: #0d0e11; color: rgba(241,238,232,.58); font: 500 9px/1 var(--data); text-transform: uppercase; }
.theater__loading[hidden], .theater__fallback[hidden] { display: none; }
.theater__loading i { width: 46px; height: 46px; border: 2px solid var(--line); border-top-color: var(--yellow); border-radius: 50%; animation: spin .8s linear infinite; }
.theater__fallback img { width: min(900px, 84vw); max-height: 68vh; object-fit: contain; }

.toast { position: fixed; z-index: 150; right: 18px; bottom: 18px; padding: 12px 16px; transform: translateY(20px); opacity: 0; background: var(--yellow); color: #080809; font: 600 9px/1 var(--data); text-transform: uppercase; pointer-events: none; transition: .25s ease; }
.toast.is-visible { transform: none; opacity: 1; }
.boot { position: fixed; z-index: 200; inset: 0; display: grid; place-content: center; justify-items: center; gap: 13px; background: #070708; transition: opacity .55s ease, visibility .55s; }
.boot b { font: italic 900 112px/.7 var(--display); }
.boot span { color: var(--yellow); font: 500 9px/1 var(--data); letter-spacing: .17em; text-transform: uppercase; }
body:not(.is-loading) .boot { opacity: 0; visibility: hidden; }
.noscript { position: fixed; z-index: 220; inset: auto 20px 20px; padding: 14px; background: var(--yellow); color: #080809; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .45; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }

@media (max-width: 980px) {
  :root { --bar-h: 62px; }
  .bar { grid-template-columns: auto 1fr auto; gap: 10px; }
  .nav { position: fixed; z-index: 90; inset: var(--bar-h) 0 0; width: 100%; display: grid; align-content: start; gap: 0; padding: 28px var(--pad); opacity: 0; visibility: hidden; pointer-events: none; background: rgba(7,7,8,.985); transition: opacity .25s ease, visibility .25s; }
  body.menu-open .nav { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 35px; }
  .nav a::after { display: none; }
  .nav .nav__contact { margin: 18px 0 0; padding: 18px; text-align: center; }
  .lang { justify-self: end; }
  .menu { display: block; }
  .home__copy { max-width: 90vw; }
  .home__telemetry span:last-child { display: none; }
  .genesis-home { grid-template-columns: 1fr; }
  .genesis-home__visual { min-height: 63svh; border-right: 0; border-bottom: 1px solid var(--line); }
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --pad: 16px; }
  .bar { padding: 0 14px; }
  .mark b { font-size: 30px; }
  .lang button { min-width: 25px; }
  .menu { padding: 10px; font-size: 14px; }
  .home { padding: calc(var(--bar-h) + 72px) var(--pad) 96px; align-items: end; }
  .home__image img { object-position: 67% 50%; }
  .home__veil { background: linear-gradient(0deg, rgba(5,5,6,.98) 7%, rgba(5,5,6,.58) 58%, rgba(5,5,6,.28)), linear-gradient(90deg, rgba(5,5,6,.57), transparent); }
  .home__frame { inset: calc(var(--bar-h) + 18px) 12px 16px; }
  .home h1 { max-width: 8ch; margin: 14px 0 15px; font-size: clamp(58px, 18.2vw, 76px); }
  .home__lede { max-width: 30ch; font-size: 15px; }
  .home__routes { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 23px; }
  .route { min-height: 47px; font-size: 19px; }
  .home__place { right: 18px; bottom: 24px; }
  .scroll-cue { display: none; }
  .home__telemetry { top: calc(var(--bar-h) + 16px); left: 18px; }
  .section-head h2, .genesis-home h2, .team-section h2, .contact-section h2 { font-size: 57px; }
  .genesis-home h2 { font-size: 52px; }
  .portfolio { padding-top: calc(var(--bar-h) + 42px); }
  .portfolio__head h2 { font-size: 51px; }
  .portfolio__head > p:last-child { font-size: 14px; }
  .portfolio-stage { height: 63svh; min-height: 510px; margin-top: 15px; touch-action: pan-y; }
  .work-card { width: 84vw; aspect-ratio: 4/5; }
  .work-card__body { grid-template-columns: 1fr; right: 15px; bottom: 15px; left: 15px; gap: 12px; }
  .work-card__body h3 { font-size: 49px; }
  .work-card__cta { width: max-content; min-height: 42px; }
  .work-card img { object-position: var(--mobile-position, 50% 50%) !important; }
  .portfolio-gate { inset: 12px 10px; }
  .portfolio-tc { top: 21px; left: 22px; }
  .portfolio-controls { width: calc(100% - 32px); margin: -2px 16px 0; }
  .portfolio__hint { margin-right: 16px; margin-left: 16px; }
  .genesis-home__visual { min-height: 54svh; }
  .genesis-home__visual img { object-fit: cover; object-position: 56% 50%; }
  .genesis-home__visual > .conceptual { top: calc(var(--bar-h) + 15px); left: 16px; }
  .genesis-home__copy { padding: 50px 16px 68px; }
  .genesis-facts { grid-template-columns: 1fr 1fr 1fr; }
  .genesis-facts div { padding: 12px 8px; }
  .genesis-facts dd { font-size: 14px; }
  .genesis-actions .slab, .genesis-actions .outline { font-size: 19px; }
  .systems-section { padding: 80px 16px 64px; }
  .systems-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .systems-grid li { min-height: 150px; }
  .team-section { grid-template-columns: 1fr; }
  .team-section__image { min-height: 60svh; }
  .team-section__image::after { background: linear-gradient(0deg, #111216, transparent 45%); }
  .team-section__copy { padding: 45px 16px 64px; }
  .contact-section { min-height: 88svh; padding: 80px 16px 65px; }
  .contact-section h2 { font-size: 65px; }
  .contact-section__actions { display: grid; gap: 12px; }
  .contact-section__mail { position: static; margin-top: 38px; font-size: 36px; word-break: break-word; }
  .footer { grid-template-columns: 1fr; gap: 12px; }
  .facts-grid { grid-template-columns: 1fr; }
  .panel__body { padding: 22px 18px; }
  .theater { width: 100%; height: 100svh; max-height: none; border: 0; }
  .theater__bar { grid-template-columns: auto 1fr 43px; min-height: 78px; gap: 10px; }
  .theater__bar p, .theater__bar > .textlink { display: none; }
  .theater__stage { height: calc(100% - 78px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body.is-loading .home__copy { opacity: 1; transform: none; }
  body.is-loading .home__image img { transform: scale(1.025); filter: saturate(.55) contrast(1.16) brightness(.73); }
}
