/* AHG helmet preview — layered on the original portfolio stylesheet.
   Tokens come from the portfolio (--paper, --ink, --muted, --accent). */

/* The surface keeps the header offset the portfolio gives <body>. */
body{padding-top:0!important}
.hx-surface{padding-top:96px}
@media(max-width:700px){.hx-surface{padding-top:88px}}

.hx-track{position:relative;overflow-x:clip}
/* The lens covers the large viewport, so address-bar motion never exposes an edge. */
.hx-lens{position:sticky;top:0;z-index:120;height:100vh;height:100lvh;pointer-events:none;overflow:hidden}
.hx-lens canvas{position:absolute;left:0;top:0;display:block;opacity:0;transition:opacity .25s ease}
.hx-ready .hx-lens canvas{opacity:1}
.hx-lens .hx-reveal{position:absolute;left:0;top:0;pointer-events:none;visibility:hidden;opacity:0;transition:none}
.hx-lens .hx-greeting3d{z-index:2;pointer-events:none;visibility:hidden;transition:none}
.hx-type3d-ready .hx-greeting p{visibility:hidden;text-shadow:none}
.hx-status{position:absolute;left:0;right:0;top:50svh;margin:0;text-align:center;font-size:.8rem;letter-spacing:.02em;color:var(--muted,#b9b4aa)}
/* Quiet pacing lines: each names the camera move that follows. */
.hx-line{position:absolute;left:0;right:0;bottom:calc(9svh + env(safe-area-inset-bottom));margin:0;text-align:center;font-size:clamp(1.6rem,5.2vw,2.6rem);line-height:1;letter-spacing:-.045em;font-weight:400;color:var(--ink,#f4f1eb);opacity:0;will-change:opacity,transform;text-shadow:0 2px 24px #0009}
/* The greeting belongs to the revealed person. It never competes with work
   or the opening cue, and its stable paper scrim covers the unwanted torso. */
.hx-greeting{position:absolute;left:0;right:0;bottom:0;opacity:0;padding:14px 20px 0;text-align:center;background:linear-gradient(180deg,transparent 0,var(--paper,#121311) 100px);pointer-events:none;perspective:900px;perspective-origin:50% 60px}
.hx-greeting p{max-width:1080px;margin:0 auto;font-size:clamp(3rem,7.5vw,7rem);line-height:.98;letter-spacing:-.055em;font-weight:650;color:var(--accent,#ff9a59);-webkit-text-stroke:2px #080907;paint-order:stroke fill;text-shadow:0 1px 0 #080907,0 2px 0 #080907,0 3px 0 #080907,1px 4px 0 #080907,2px 5px 0 #080907,3px 6px 0 #080907,4px 7px 0 #080907,5px 8px 0 #080907,0 12px 22px #0006;transform:translate3d(0,var(--hx-type-y,24px),var(--hx-type-z,-160px)) rotateX(var(--hx-type-rx,22deg)) scale(var(--hx-type-scale,.9));transform-origin:50% 100%;will-change:transform}
@media(max-width:700px){.hx-greeting p{font-size:clamp(3rem,12.5vw,4.6rem);-webkit-text-stroke:1.5px #080907}.hx-greeting p span{display:block}}
/* Pinned by the adapter once the full collection is framed; clipped below it. */
.hx-surface{position:sticky;z-index:1;margin-top:-100vh;margin-top:-100lvh;overflow:clip;transform-origin:0 0;background:var(--paper,#121311)}
.hx-surface.is-projected{pointer-events:none;will-change:transform}
.hx-runway{pointer-events:none}

/* Portfolio chrome yields the glass to the dome as the camera recedes. */
.site-header{transition:none}
.hx-reframing .hx-surface :is(.section-top,.project-browse-tools,.filter-count,.project-list,.dome-readout,.dome-controls,.dome-motion-note,.dome-handoff,.story-foot,.all-projects>header,.all-projects .eyebrow,.all-projects h2){opacity:calc(1 - var(--hx-chrome,0))!important;transition:none!important}
.hx-reframing .hx-surface .scroll-story,.hx-reframing .collection-return{opacity:calc(1 - var(--hx-chrome,0))!important;transition:none!important}
.hx-reframing #all-dome-mount{opacity:var(--hx-work-presence,1);transition:none}

/* Closing information: projects and contact stay one scroll away. */
.hx-finish{position:relative;z-index:2;background:var(--paper,#121311);margin-top:-20svh;padding-top:clamp(32px,4vw,64px)}
.hx-finish-inner{display:grid;gap:18px;justify-items:start}
.hx-finish-kicker{margin:0;color:var(--muted,#b9b4aa);font-size:.85rem}
.hx-finish h2{margin:0;font-size:clamp(2.1rem,6vw,4.4rem);line-height:1;letter-spacing:-.055em;font-weight:400}
.hx-routes{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.hx-routes a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid #ffffff21;border-radius:22px;text-decoration:none;color:var(--ink,#f4f1eb);background:#20221d;font-size:.95rem}
/* The site's own CoreUI arrow (as on every other page), drawn as an SVG mask so
   iOS never swaps in an emoji arrow. */
.hx-routes a::after{content:"";flex:0 0 auto;width:14px;height:14px;margin-left:10px;background:var(--accent,#ff9a59);-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20d%3D%22m359.873%20121.377-22.627%2022.627%2095.997%2095.997H16v32.001h417.24l-95.994%2095.994%2022.627%2022.627L494.498%20256z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20d%3D%22m359.873%20121.377-22.627%2022.627%2095.997%2095.997H16v32.001h417.24l-95.994%2095.994%2022.627%2022.627L494.498%20256z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.hx-routes a:hover{border-color:#ffffff45}
.hx-restart{margin-top:6px;min-height:44px;display:inline-flex;align-items:center;color:var(--muted,#b9b4aa);text-decoration:none;font-size:.9rem}
.hx-restart span{margin-left:8px}
.hx-restart:hover{color:var(--ink,#f4f1eb)}
.hx-finish :is(a,button):focus-visible{outline:2px solid var(--accent,#ff9a59);outline-offset:4px}
.hx-figure{margin:0 0 32px;padding:0}
.hx-figure canvas{display:block;width:100%}
.hx-figure .hx-still{display:block;width:100%;max-width:560px;margin:0 auto;aspect-ratio:9/16;object-fit:cover;object-position:50% 45%;max-height:78svh;border-radius:0}
.hx-figure .hx-still{mask-image:linear-gradient(#000 72%,transparent 87%);-webkit-mask-image:linear-gradient(#000 72%,transparent 87%)}
.hx-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* The closing section rises over the lens as paper, feathered at its top edge,
   so the helmet and greeting never show through the closing copy. */
.hx-ready:not(.hx-static):not(.hx-failed) .hx-finish{z-index:121}
.hx-ready:not(.hx-static):not(.hx-failed) .hx-finish::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:22svh;background:linear-gradient(180deg,transparent,var(--paper,#121311));pointer-events:none}
.hx-closing .site-header{z-index:130}

/* Phones: the category chips become one swipeable row so the dome, chips and
   project finder fit on one screen while the collection is locked. */
@media(max-width:700px){
.hx-track .all-projects .project-filters{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:8px;max-width:none;width:calc(100% + 2*var(--gutter,16px));margin-inline:calc(-1*var(--gutter,16px));padding:2px var(--gutter,16px);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:var(--gutter,16px);scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 28px),transparent)}
.hx-track .all-projects .project-filters::-webkit-scrollbar{display:none}
.hx-track .all-projects .project-filters button,.hx-track .all-projects .project-filters button:last-child{flex:0 0 auto;width:auto;grid-column:auto;justify-self:auto;white-space:nowrap;scroll-snap-align:start}
}
/* "Allow tilt" label sits centred in its pill. */
.dome-controls .dome-motion-toggle{align-items:center}

/* Page-wide scroll progress: same place and look as the opening story's ribbon. */
.hx-ready:not(.hx-static):not(.hx-failed) .story-progress{visibility:hidden}
.hx-progress{position:fixed;left:4vw;right:4vw;bottom:18px;z-index:125;display:flex;justify-content:flex-end;align-items:center;min-height:30px;font-size:11px;color:var(--muted,#b9b4aa);pointer-events:none}
.hx-progress[hidden]{display:none}
.hx-progress.is-quiet .story-direction{visibility:hidden}
.hx-progress-bar{position:absolute;left:0;right:0;bottom:-8px;height:2px;background:#ffffff15}
.hx-progress-bar::after{content:"";display:block;width:100%;height:100%;background:var(--accent,#ff9a59);transform:scaleX(var(--hx-progress,0));transform-origin:left}
.hx-static .hx-progress,.hx-failed .hx-progress{display:none}

/* Reduced motion or no WebGL: the original portfolio, then the closing section. */
.hx-static .hx-lens,.hx-failed .hx-lens{display:none}
.hx-static .hx-surface,.hx-failed .hx-surface{position:relative;margin-top:0;top:auto!important;height:auto!important;overflow:visible}
.hx-static .hx-runway,.hx-failed .hx-runway{height:0!important}
.hx-static .hx-finish,.hx-failed .hx-finish{margin-top:0}
@media(prefers-reduced-motion:reduce){.hx-lens canvas{transition:none}.hx-greeting p{transform:none;will-change:auto}}
