/* V29 / professional-first cinematic layer; scoped, no framework and no network assets. */
:root { --v29-page-progress: 0; }
html, body, main { overflow-x: clip; }
.v29-progress { position: fixed; z-index: 101; left: 0; right: 0; top: var(--header, 78px); height: 2px; pointer-events: none; background: transparent; }
.v29-progress > span { display: block; height: 100%; width: 100%; transform: scaleX(var(--v29-page-progress)); transform-origin: left; background: linear-gradient(90deg,#b7eab5,#75c9b2,#e4f5d4); box-shadow: 0 0 12px rgba(187,239,196,.45); }
.v29-rail { position: fixed; z-index: 56; top: 50%; right: clamp(9px,1.35vw,22px); transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 5px; background: rgba(7,25,24,.50); border: 1px solid rgba(195,238,203,.15); border-radius: 30px; backdrop-filter: blur(10px); }
.v29-rail-link { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; }
.v29-rail-link span { display: block; width: 5px; height: 5px; background: #a5beb0; border-radius: 50%; transition: transform .22s, background .22s, box-shadow .22s; }
.v29-rail-link:hover span,.v29-rail-link:focus-visible span { transform: scale(1.75); background: #d9f9d8; }
.v29-rail-link[aria-current="location"] span { background: #d0f6c9; transform: scale(1.65); box-shadow: 0 0 0 3px rgba(194,244,205,.18),0 0 14px rgba(192,255,207,.65); }
.v29-readout { position: fixed; z-index: 52; bottom: 22px; left: clamp(20px,3vw,48px); display: flex; align-items: center; gap: 12px; pointer-events: none; color: #def5dd; font: 500 9px/1.3 var(--mono,monospace); letter-spacing: .16em; text-shadow: 0 2px 6px rgba(0,0,0,.72); padding: 9px 12px; background: rgba(8,25,24,.8); border: 1px solid rgba(190,224,192,.15); backdrop-filter: blur(9px); }
.v29-readout-index { font-size: 12px; }
.v29-readout-divider { height: 14px; width: 1px; background: rgba(197,236,203,.5); }
.v29-readout-label { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Architectural 3D scene floats on the photo, behind all primary copy and links. */
.hero { perspective: 1400px; }
.v29-hero-stage { position: absolute; z-index: 1; width: clamp(290px,37vw,590px); aspect-ratio: 1; right: clamp(22px,5vw,110px); top: 50%; transform: translateY(-50%) perspective(1100px) rotateY(-14deg) rotateX(7deg); pointer-events: none; transform-style: preserve-3d; opacity: calc(var(--v29-hero-fade, 1) * .85); filter: drop-shadow(0 18px 44px rgba(0,0,0,.30)); }
.v29-stage-grid { position:absolute; inset: 10%; border-radius:50%; border: 1px solid rgba(191,249,204,.17); background: repeating-radial-gradient(circle at 50% 50%, transparent 0 29px,rgba(190,248,198,.055) 30px,transparent 31px),linear-gradient(130deg,transparent 49.8%,rgba(183,239,205,.10) 50%,transparent 50.2%); transform: translateZ(-45px) rotateZ(24deg); }
.v29-orbit { position: absolute; inset: 11%; border-radius: 50%; transform-style: preserve-3d; border: 1.4px solid rgba(216,249,217,.66); box-shadow: inset 0 0 18px rgba(123,234,190,.12),0 0 18px rgba(136,239,179,.14); }
.v29-orbit-a { transform: rotateX(66deg) rotateY(29deg) rotateZ(var(--v29-orbit-turn,0deg)); }
.v29-orbit-b { inset: 18%; border-color: rgba(126,229,206,.67); transform: rotateX(-36deg) rotateY(57deg) rotateZ(calc(0deg - var(--v29-orbit-turn,0deg))); }
.v29-orbit-c { inset: 4%; border-color: rgba(188,240,225,.28); transform: rotateY(71deg) rotateX(19deg) rotateZ(var(--v29-orbit-turn,0deg)); }
.v29-planet { position: absolute; width: 29%; aspect-ratio: 1; left: 35.5%; top: 35.5%; border-radius: 50%; transform: translateZ(45px); background: radial-gradient(circle at 31% 28%,rgba(236,255,240,.9),rgba(141,225,195,.50) 18%,rgba(20,93,77,.45) 43%,rgba(0,21,21,.1) 67%,transparent 72%); border: 1px solid rgba(220,255,238,.37); box-shadow: 0 0 90px rgba(150,238,199,.22),inset -24px -28px 45px rgba(5,29,32,.83); }
.v29-planet span { position: absolute; inset: 15%; border: 1px solid rgba(217,254,227,.22); border-radius: 50%; }
.v29-marker { position: absolute; width: 8px; height: 8px; border: 1px solid #eaffdf; background: #bdf8d8; border-radius:50%; box-shadow: 0 0 21px #b8ffe4; }
.v29-marker-a { left: 14%; top: 31%; transform: translateZ(70px); }
.v29-marker-b { right: 15%; bottom: 25%; transform: translateZ(70px); }
.hero-city-photo img { animation: none; transform: translate3d(0,var(--v29-hero-shift,0px),0) scale(1.085); will-change: transform; }

/* Three photographic chapters provide near/mid/far planes, not continuous GPU animation. */
.systems-photo-sequence,.editorial-rain,.experience-portrait,.project-art { perspective: 1100px; }
.systems-photo-image img { transform: translate3d(0,var(--v29-depth-shift,0px),0) scale(1.11); will-change: transform; }
.editorial-rain .noir-image img { transform: translate3d(0,var(--v29-depth-shift,0px),0) scale(1.10); will-change: transform; }
.experience-portrait { overflow: hidden; }
.experience-portrait img { transform: translate3d(0,var(--v29-depth-shift,0px),0) scale(1.065); will-change: transform; }
.project-typography { transform: perspective(980px) translateY(var(--v29-depth-shift,0px)) rotateY(var(--v29-depth-turn,0deg)); transform-style: preserve-3d; will-change: transform; }
.project-typography strong { text-shadow: 0 12px 28px rgba(0,0,0,.28),0 0 46px rgba(186,240,177,.15); }
.project-art::before { transform: perspective(880px) rotateX(68deg) scale(1.55); border-color: rgba(178,241,208,.32); box-shadow: 0 0 70px rgba(150,236,193,.08); }

/* Subtle physical response to a pointer: no cards jumping or blocking links. */
@media (hover:hover) and (pointer:fine) and (min-width:821px) {
 .v29-tilt:not(.reveal),.v29-tilt.reveal.is-visible { transform: perspective(1200px) rotateX(var(--v29-rx,0deg)) rotateY(var(--v29-ry,0deg)) translateY(0); transform-style: preserve-3d; transition: transform .20s ease-out, box-shadow .25s ease-out, border-color .25s ease-out, opacity .8s ease; }
 .v29-tilt:not(.reveal):hover,.v29-tilt.reveal.is-visible:hover { box-shadow: 0 18px 42px rgba(0,0,0,.13); }
 .expertise-item.v29-tilt:hover { border-color: rgba(64,139,110,.35); background: rgba(255,255,255,.24); }
 .featured-project.v29-tilt:hover { border-color: rgba(180,238,194,.4); }
 .voice.v29-tilt:hover { border-color: rgba(185,235,200,.35); }
}
.experience-item[open] .exp-body { animation: v29-disclose .28s ease-out both; }
@keyframes v29-disclose { from { opacity: .5; translate: 0 -5px; } to { opacity: 1; translate: 0 0; } }

/* Keep the photo focal point of V28 intact. Avoid overlaying the headline on phones. */
@media (max-width:1100px) { .v29-hero-stage { width: 35vw; right: 1vw; opacity: calc(var(--v29-hero-fade,1) * .56); } }
@media (max-width:820px) {
 .v29-hero-stage,.v29-rail,.v29-readout { display: none; }
 .v29-progress { height: 2px; }
 .hero-city-photo img { transform: none !important; will-change: auto; }
 .systems-photo-image img { transform: translate3d(0,var(--v29-depth-shift,0px),0) scale(1.06); }
 .editorial-rain .noir-image img { transform: translate3d(0,var(--v29-depth-shift,0px),0) scale(1.055); }
 .experience-portrait img,.project-typography { transform: none; will-change: auto; }
}
@media (prefers-reduced-motion: reduce) {
 .v29-hero-stage,.v29-readout { display: none !important; }
 .hero-city-photo img,.systems-photo-image img,.editorial-rain .noir-image img,.experience-portrait img,.project-typography { animation: none !important; transform: none !important; will-change:auto !important; }
 .v29-tilt,.v29-tilt:hover,.v29-tilt.reveal.is-visible { transform: none !important; transition:none !important; }
 .experience-item[open] .exp-body { animation:none; }
 .v29-rail-link span,.v29-progress > span { transition:none; }
}
