/* Local direction: preserve the visor world, soften the surrounding interface. */
:root{--portfolio-mist:#16271f;--portfolio-warm:#d9b394;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif}
body{background-color:#121612;background-image:radial-gradient(ellipse at 8% 10%,#36514325,transparent 55%),radial-gradient(ellipse at 95% 50%,#8b65491a,transparent 58%);background-attachment:fixed}
h1,h2,h3{text-wrap:balance}.case-head h1{font-size:clamp(44px,6.4vw,92px);line-height:1.06;letter-spacing:-.045em;font-weight:400;max-width:18ch}.case-deck{line-height:1.5;letter-spacing:-.012em;color:#d3d5cc}.chapter-copy h2,.outcome h2{line-height:1.12;letter-spacing:-.035em}.reading h1{line-height:1.06;letter-spacing:-.04em}.eyebrow{letter-spacing:.025em;line-height:1.5}
.story-word{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;letter-spacing:-.045em;text-shadow:none}.story-tagline{line-height:1.55}.story-gesture,.story-arrow{animation:none!important;opacity:.8;transform:none!important}.story-chip{background:transparent!important;border-color:#d8d3bd28!important;box-shadow:none!important}
.six-card{border-radius:14px;background:linear-gradient(145deg,#35423966,#1b231d99);box-shadow:0 14px 40px #0002}.six-card>div{padding:14px 16px 17px}.six-card h3{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;letter-spacing:-.025em}.six-card p{line-height:1.5;color:#c4c9be}.six-card img{object-fit:cover!important;background:#162019}.six-card:hover img,.six-card:focus-visible img{filter:none}.six-card:focus-visible{outline:2px solid #efbd98;outline-offset:5px}
.archive-exit{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:10%;padding-block:80px 100px}.archive-exit h2{font-size:clamp(34px,4.6vw,64px);line-height:1.08;letter-spacing:-.04em;margin-bottom:24px}.archive-exit p{max-width:38ch;color:#bec8bd}.archive-exit nav{padding-top:30px;display:grid}.archive-exit nav a{display:flex;justify-content:space-between;gap:24px;padding:23px 0;text-decoration:none;border-bottom:1px solid #c8d5bb30;font-size:clamp(17px,1.6vw,22px);line-height:1.4}.archive-exit nav a span{color:#e8b78d}.archive-exit nav a:hover{color:#e8b78d}.archive-exit nav a:focus-visible{outline:2px solid #e8b78d;outline-offset:5px}
.project-card img{aspect-ratio:3/2;object-fit:contain;background:radial-gradient(ellipse at 40% 35%,#35483c,#1a231c)}.project-card h3{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1.2;letter-spacing:-.025em}.hero-media{border-radius:14px;overflow:hidden}.hero-media img{background:radial-gradient(ellipse at 35% 25%,#344338,#18211b)}.outcome{border:1px solid #c7d2be1c;border-radius:22px;background:radial-gradient(ellipse at 0 0,#78908024,transparent 75%),linear-gradient(135deg,#25362b,#1a251e)}
/* Avoid coaching people to switch off an accessibility preference. */
.hx4-motion-note{display:none!important}
@media(max-width:700px){.archive-exit{grid-template-columns:1fr;gap:16px;padding-block:48px 64px}.archive-exit nav{padding-top:0}.archive-exit nav a{padding-block:18px}.case-head h1{font-size:clamp(38px,10vw,56px);line-height:1.08}.case-deck{font-size:19px}.six-card>div{padding:10px 12px 12px}.six-card h3{font-size:16px}.six-card p{font-size:12px}.outcome{border-radius:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.site-header.is-compact .brand-name{visibility:hidden}.site-header.is-compact .brand:hover .brand-name,.site-header.is-compact .brand:focus-visible .brand-name{visibility:visible}
/* A softer system-face study; final self-hosted family remains a design decision. */
:root{font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif}.story-word,.six-card h3,.project-card h3{font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif}.story-section-title h2{font-size:clamp(28px,3.1vw,44px);font-weight:500;line-height:1.15;letter-spacing:-.035em}.case-head h1{font-weight:500}
@supports(background-clip:text){.case-head h1,.archive-exit h2{color:transparent;background:linear-gradient(112deg,#f0f2e7 12%,#d4dfce 58%,#e7c6ab 100%);background-clip:text;-webkit-background-clip:text}}
@media(forced-colors:active){.case-head h1,.archive-exit h2{color:CanvasText;background:none}}
.archive-navigation{min-width:0}.archive-picker,.archive-research{border-bottom:1px solid #c8d5bb30}.archive-picker summary,.archive-research summary{display:flex;justify-content:space-between;align-items:center;gap:20px;cursor:pointer;min-height:64px;list-style:none;font-size:19px}.archive-navigation summary::-webkit-details-marker{display:none}.archive-navigation details[open]>summary>span{transform:rotate(45deg)}.archive-projects{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;padding-bottom:20px;max-height:420px;overflow:auto}.archive-projects>a{display:block;text-decoration:none;padding:14px 0;border-bottom:1px solid #ffffff15;font-size:16px;line-height:1.4}.archive-projects>a>span{display:block;font-size:12px;color:#bbc5b8;margin-top:4px}.archive-exit .archive-pills{display:flex;gap:10px;flex-wrap:wrap;padding:24px 0}.archive-exit .archive-pills a{display:inline-flex;min-height:44px;padding:11px 17px;border:1px solid #d5ddc52e;border-radius:99px;font-size:15px;background:linear-gradient(130deg,#a3b19a14,#51644e0c)}.archive-research h3{font-size:24px;line-height:1.3;font-weight:400;letter-spacing:-.025em;margin-top:15px}.archive-research>a{display:inline-flex;min-height:44px;align-items:center;margin-bottom:20px}.finish-contact{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 26px;margin-top:30px}.finish-contact a{min-height:44px;display:inline-flex;align-items:center;font-size:16px;color:#e8c3a5}.compact-footer{margin-top:50px;padding-block:25px;border-color:#ffffff18}.compact-footer p{font-size:12px}.opening-finder{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:center;z-index:10;max-width:94%;padding:10px 14px;border:1px solid #ffffff22;border-radius:20px;background:#1d2923eb;font-size:13px}.opening-finder>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.opening-finder select{font:inherit;min-height:44px;max-width:230px;background:#253329;color:#f3f1e8;border:1px solid #ffffff30;border-radius:12px;padding:8px}.opening-finder a{white-space:nowrap;min-height:44px;display:flex;align-items:center}.story-dome .interaction-handoff{display:none}.story-dome .dome-controls{bottom:78px}.story-dome .dome-readout{bottom:130px}.story-dome .dome-surface{bottom:150px}.story-dome{position:relative}
@media(max-width:700px){.archive-projects{grid-template-columns:1fr}.opening-finder{bottom:0;padding:6px 10px;gap:8px;width:max-content}.opening-finder select{max-width:195px;font-size:12px}.opening-finder a{font-size:12px}.story-dome .dome-controls{bottom:64px}.story-dome .dome-readout{bottom:112px}.story-dome .dome-surface{bottom:150px}.finish-contact{gap:6px 20px}}
/* Browsing is a separate stop: one window, one scrollbar, no moving scene behind it. */
#project-browser{position:fixed;inset:0;width:min(980px,calc(100vw - 40px));max-width:none;height:min(86dvh,920px);max-height:none;margin:auto;padding:28px;background:linear-gradient(145deg,#28372c,#141e18 70%);border:1px solid #c7d6bc40;border-radius:24px;overflow:auto;overscroll-behavior:contain;color:#f0f2e9;box-shadow:0 30px 100px #0008}#project-browser::backdrop{background:#06100be8;backdrop-filter:blur(12px)}#project-browser header{display:flex;justify-content:space-between;align-items:start;gap:20px}#project-browser header h2{font-size:36px;line-height:1.1;margin:0 0 24px}#project-browser header button{float:none;flex:none;min-height:44px}.browser-tabs{display:flex;gap:8px;flex-wrap:wrap}.browser-tabs button{padding:10px 15px;font-size:13px;min-height:44px}.browser-tabs [aria-pressed=true]{background:#e7c4a1;color:#152018;border-color:#e7c4a1}.browser-count{font-size:13px;color:#b7c6b5;margin:20px 0 8px}.browser-projects{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.browser-project{display:grid;grid-template-columns:66px 1fr 16px;align-items:center;gap:14px;text-decoration:none;border-bottom:1px solid #ffffff20;padding:16px 0;min-width:0}.browser-project img{width:66px;height:52px;object-fit:cover;border-radius:7px}.browser-project strong{display:block;font-size:16px;font-weight:500;line-height:1.3}.browser-project small{display:block;font-size:12px;color:#bfcbba;line-height:1.4;margin-top:5px}.browser-project:hover strong{text-decoration:underline;text-underline-offset:4px}.browse-projects-button{width:100%;display:flex;justify-content:space-between;border:0;border-bottom:1px solid #ffffff30;border-radius:0;background:none;padding:18px 0;font-size:19px;min-height:60px}.opening-finder{bottom:70px;background:none;border:0;padding:0;gap:12px}.opening-finder button,.opening-finder>a{background:#233027e8;border:1px solid #ffffff35;padding:10px 16px;border-radius:99px;min-height:44px;font-size:13px}.story-dome .dome-readout{bottom:185px;max-width:250px;left:50%;right:auto;transform:translateX(-50%);width:80%;text-align:center}.story-dome .dome-readout a{font-size:14px;line-height:1.3}.story-dome .dome-readout p{font-size:11px;line-height:1.35;margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.story-dome .dome-controls{bottom:130px}.story-dome .dome-surface{bottom:225px}.web-overview section{padding-block:35px 65px}.web-overview section>h2{font-size:clamp(28px,3vw,42px);letter-spacing:-.035em}.web-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px 28px}.web-overview-card{min-width:0;text-decoration:none}.web-overview-card img{aspect-ratio:3/2;object-fit:contain;border-radius:12px;background:#223026}.web-overview-card h3{font-size:25px;line-height:1.25;font-weight:400;letter-spacing:-.025em;margin:16px 0 8px}.web-overview-card p{font-size:14px;color:#bac8b5;line-height:1.5}
@media(max-width:700px){#project-browser{width:calc(100vw - 20px);height:90dvh;padding:20px;border-radius:20px}.browser-projects{grid-template-columns:1fr}#project-browser header h2{font-size:28px}.browser-project{padding-block:13px}.opening-finder{bottom:70px;flex-direction:column;gap:6px;max-width:100%;width:max-content}.opening-finder button,.opening-finder>a{font-size:12px;min-height:40px;padding:8px 14px}.story-dome .dome-controls{bottom:170px}.story-dome .dome-readout{bottom:220px}.story-dome .dome-surface{bottom:260px}.web-overview-grid{grid-template-columns:1fr}.web-overview section{padding-block:20px 40px}}

/* Accessibility pass 2026-10-29 (appended; nothing above is changed): 44px targets, 12px minimum text, footer links. */
.story-dome .dome-controls button{min-width:44px;min-height:44px}
.hx4-rail-bead{width:44px;height:44px;margin:-22px 0 0 -22px}
.journey-scroll{min-height:44px}
.hx4-rail-tip{font-size:12.5px}
.hx4-music-word{font-size:13px}
.story-dome .dome-readout p{font-size:12px}
.compact-footer p{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px;line-height:1.5}
.compact-footer a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
.story-chip,.eyebrow,.journey-scroll span,.opening-finder button,.dome-motion-toggle,.story-dome .dome-readout p,.dome-readout p{font-size:12px!important}
.journey-scroll{height:auto!important;min-height:44px!important}

/* Hero pass 2026-10-29 (appended; existing hero styles untouched): antenna-bead signature, one type role per element, quieter status chip. */
.story-word[data-word="0"]{position:relative}
.hero-bead{position:absolute;left:50%;top:-30px;width:16px;height:16px;margin-left:-8px;border-radius:50%;pointer-events:none;background:radial-gradient(circle at 38% 34%,#ffd2a3,#ff9a59 45%,#f08a4b 75%);box-shadow:0 0 14px 4px #f08a4b66,0 0 38px 10px #f08a4b26;opacity:0;animation:hero-bead-in 1.2s .15s cubic-bezier(.22,1,.36,1) forwards,hero-bead-glow 5s 1.4s ease-in-out infinite}
.hero-bead::before{content:"";position:absolute;left:50%;bottom:100%;width:1.5px;height:22px;margin-left:-.75px;background:linear-gradient(#f08a4b00,#f08a4b99)}
@keyframes hero-bead-in{from{opacity:0;transform:translateY(8px) scale(.5)}to{opacity:1;transform:none}}
@keyframes hero-bead-glow{0%,100%{box-shadow:0 0 14px 4px #f08a4b66,0 0 38px 10px #f08a4b26}50%{box-shadow:0 0 18px 6px #f08a4b8c,0 0 52px 16px #f08a4b33}}
@media(max-width:700px){.hero-bead{top:-26px}}
@media(prefers-reduced-motion:reduce){.hero-bead{animation:none;opacity:1}}
button,summary,.hx4-music{font-family:inherit}
.story-chip{background:none;border-color:#d3dfc61f;color:#c3cdba}

/* Dome bottom stack + rail pass 2026-10-29 (appended). The dome card now ends at the viewport bottom, so its controls no longer drift under the scroll bubble on short screens. Stack, bottom to top: rail, one row (arrows flank the scroll bubble), project name + descriptor. */
html .motion-story .story-dome{height:auto;bottom:0}
html .motion-story .story-dome .dome-surface{bottom:196px}
html .motion-story .story-dome .dome-readout{bottom:120px}
html .motion-story .story-dome .dome-readout a{font-family:var(--display-face);font-size:22px!important;line-height:1.15;letter-spacing:.01em;font-weight:400}
html .motion-story .story-dome .dome-readout p{font-size:12px!important;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-inline:auto}
html .motion-story .story-dome .dome-controls{bottom:58px;left:50%;right:auto;width:min(300px,calc(100vw - 32px));transform:translateX(-50%);justify-content:space-between;gap:0}
html .opening-finder{bottom:58px;left:max(16px,3vw)}
.journey-scroll{bottom:58px}
@media(max-width:700px){html .motion-story .story-dome{inset:8vh 3vw 0}}
/* Touch and phone: the "Allow tilt" toggle sits above the scroll bubble, the readout above it, and Browse above that. */
@media(max-width:700px),(pointer:coarse){
 html .motion-story .story-dome .dome-controls .dome-motion-toggle{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);margin:0}
 html .motion-story .story-dome .dome-readout{bottom:162px}
 html .opening-finder{bottom:236px;left:50%;transform:translateX(-50%)!important;max-width:none}
 html .motion-story .story-dome .dome-surface{bottom:296px}
}
/* Rail: glass slab in the shared 22px language, hairline track, small flat beads; the current bead carries the antenna-bead glow. */
.hx4-rail{isolation:isolate}
.hx4-rail::before{content:"";position:absolute;inset:-9px -22px;z-index:-1;border-radius:22px;border:1px solid var(--ui-edge);background:var(--ui-glass),#0b1511b8;box-shadow:inset 0 1px 0 #ffffff08}
.hx4-rail-track{height:1px;margin-top:-.5px;background:#d3dfc633}
.hx4-rail-fill{background:linear-gradient(90deg,#f08a4b55,#f08a4b)}
.hx4-rail-bead::before{width:8px;height:8px;margin:-4px 0 0 -4px;background:#0e2620;border:1px solid #d3dfc680;box-shadow:none}
.hx4-rail-bead.is-reached::before{background:#f08a4b;border-color:#f08a4b}
.hx4-rail-bead.is-here::before{transform:scale(1.6);background:#ff9a59;border-color:#ffd2a3;box-shadow:0 0 0 4px #f08a4b26,0 0 14px 3px #f08a4b99}
html .hx4-rail-tip{font-family:var(--display-face);font-weight:400;font-size:14px;letter-spacing:.02em;border-radius:22px;padding:.4em .9em;bottom:30px}

/* The antenna light becomes the dot of the opening wordmark's j. */
.hero-j{position:relative}.hero-j-stem{display:inline-block;clip-path:inset(30% 0 0 0)}
.hero-j .hero-bead{left:52%;top:19%;width:.15em;height:.15em;margin-left:-.075em;border-radius:46% 54% 50% 50% / 55% 52% 48% 45%;}
.hero-j .hero-bead::before{height:.18em;width:1px}
/* Fine positioning and a softly irregular silhouette for the j's illuminated dot. */
.hero-j .hero-bead{left:61%;border-radius:43% 57% 47% 53% / 56% 43% 57% 44%;transform:rotate(-8deg)}
@keyframes hero-bead-in{from{opacity:0;transform:translateY(8px) scale(.5) rotate(-8deg)}to{opacity:1;transform:rotate(-8deg)}}
/* Draw the light as an organic, hand-shaped drop instead of a CSS circle. */
.hero-j .hero-bead{left:65%;width:.17em;height:.18em;margin-left:-.085em;border-radius:0;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 108'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='29%25' r='75%25'%3E%3Cstop stop-color='%23ffe1bc'/%3E%3Cstop offset='.38' stop-color='%23ffae70'/%3E%3Cstop offset='1' stop-color='%23e7783d'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M54 5 C67 6 75 15 79 25 C83 33 94 39 94 55 C95 75 84 91 68 98 C52 105 33 101 21 92 C10 83 6 70 9 55 C11 43 20 35 25 25 C31 13 40 5 54 5 Z' fill='url(%23g)'/%3E%3C/svg%3E") center / contain no-repeat;box-shadow:none;filter:drop-shadow(0 0 .12em #ff9959aa) drop-shadow(0 0 .27em #ef824b88)}
@keyframes hero-bead-glow{0%,100%{filter:drop-shadow(0 0 .12em #ff9959aa) drop-shadow(0 0 .27em #ef824b88)}50%{filter:drop-shadow(0 0 .16em #ffb176cc) drop-shadow(0 0 .36em #ef824baa)}}
@media(forced-colors:active){.hero-j .hero-bead{background:CanvasText;forced-color-adjust:auto;border-radius:45%}}

/* Tablet-width windows (about 600-900 wide, 780-950 tall): lift the hero stack so "Explore the work" clears the scroll bubble (measured 31 px overlap at 752x824 before this rule). */
@media(min-width:600px) and (max-width:900px) and (min-height:780px) and (max-height:950px){.motion-story .story-identity{padding-bottom:220px!important}}

/* Branded arrows 2026-10-31: bold, rounded SVG masks replace arrow characters (iOS showed "↗" as an emoji tile) and thicken the thin icon arrows to match AHG Dissolve Bold. */
.ahg-arrow{display:inline-block;width:1.05em;height:1.05em;margin-inline:.14em;vertical-align:-.17em;background:currentColor;-webkit-mask:var(--ahg-arrow) center/contain no-repeat;mask:var(--ahg-arrow) center/contain no-repeat}
.ahg-arrow-ne{--ahg-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 17.5 17.5 6.5M8.5 6.5h9v9'/%3E%3C/svg%3E")}
.ahg-arrow-right{--ahg-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E")}
.ahg-arrow-left{--ahg-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 12h-15M10.5 6l-6 6 6 6'/%3E%3C/svg%3E")}
.ahg-arrow-up{--ahg-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19.5v-15M6 10.5l6-6 6 6'/%3E%3C/svg%3E")}
.ahg-arrow-down{--ahg-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5v15M6 13.5l6 6 6-6'/%3E%3C/svg%3E")}
svg path.ci-primary{stroke:currentColor;stroke-width:30;stroke-linejoin:round;stroke-linecap:round}
/* Hero: the name and "Experiential Designer" (all four scroll words) in AHG Dissolve Bold. */
.story-word,.story-word .letter{font-family:'AHG Dissolve',var(--display-face,serif)!important;font-weight:700!important;font-synthesis:none}

/* 2026-11-02: no gold rim or ring at the screen edge while zooming out; plain dark glass instead. */
.hx4-hint{display:none!important}

/* 2026-11-02: optical kerning for "There’s" (T–h and the apostrophe sat too open). */
.kern-t{margin-right:-.055em}.kern-ap{margin-inline:-.03em -.045em}

/* 2026-11-03: header mark drifts and re-forms all the time, never fully sharp; it resolves only on hover/focus (touch: a brief clear moment), then becomes the full name. */
html .site-header.is-compact .brand-monogram{animation:ahg-drift 18s cubic-bezier(.45,.05,.35,.95) infinite;will-change:filter,opacity}
@keyframes ahg-drift{
 0%,100%{opacity:.34;filter:blur(4px);letter-spacing:-.07em;transform:translate(0,0);text-shadow:0 0 10px #e8b78d55}
 25%{opacity:.6;filter:blur(2px);letter-spacing:-.035em;transform:translate(1px,-1px);text-shadow:0 0 12px #7fb59a66}
 50%{opacity:.3;filter:blur(6.5px);letter-spacing:.05em;transform:translate(4px,1px);text-shadow:0 0 16px #d9a45f44}
 75%{opacity:.52;filter:blur(3px);letter-spacing:-.05em;transform:translate(-1px,0);text-shadow:0 0 12px #e8b78d66}
}
@media(hover:none){html .site-header.is-compact .brand-monogram{animation-name:ahg-drift-touch;animation-duration:13s}
 @keyframes ahg-drift-touch{0%,100%{opacity:.34;filter:blur(3.5px);letter-spacing:-.07em}22%{opacity:.6;filter:blur(1.8px);letter-spacing:-.03em}40%,48%{opacity:1;filter:blur(0);letter-spacing:-.07em}66%{opacity:.3;filter:blur(5.5px);letter-spacing:.04em}85%{opacity:.5;filter:blur(2.6px);letter-spacing:-.05em}}}
@media(hover:hover){
 html .site-header.is-compact .brand:is(:hover,:focus-visible) .brand-monogram{animation:ahg-resolve 1.15s ease forwards;transform:none}
 @keyframes ahg-resolve{0%{opacity:.5;filter:blur(2.6px);letter-spacing:-.05em}28%{opacity:1;filter:blur(0);letter-spacing:-.07em}58%{opacity:1;filter:blur(0)}100%{opacity:0;filter:blur(7px);letter-spacing:.02em}}
 html .site-header.is-compact .brand:is(:hover,:focus-visible) .brand-name{transition:opacity .7s ease .6s,filter .7s ease .6s,visibility 0s .6s,transform .4s ease .6s;filter:blur(0)}
}
html .site-header.is-compact .brand-name{filter:blur(6px)}
@media(prefers-reduced-motion:reduce){html .site-header.is-compact .brand-monogram{animation:none;opacity:.85;filter:none}html .site-header.is-compact .brand-name{filter:none}}

/* Menu: thick, slow pour-painting liquid. Layered colours swirl around each other inside the panel; it opens like paint spreading, links bleed in one by one. */
@property --x1{syntax:'<percentage>';inherits:false;initial-value:20%}@property --y1{syntax:'<percentage>';inherits:false;initial-value:20%}
@property --x2{syntax:'<percentage>';inherits:false;initial-value:80%}@property --y2{syntax:'<percentage>';inherits:false;initial-value:30%}
@property --x3{syntax:'<percentage>';inherits:false;initial-value:30%}@property --y3{syntax:'<percentage>';inherits:false;initial-value:85%}
@property --x4{syntax:'<percentage>';inherits:false;initial-value:75%}@property --y4{syntax:'<percentage>';inherits:false;initial-value:80%}
@keyframes pour-x1{0%,100%{--x1:15%}50%{--x1:75%}}@keyframes pour-y1{0%,100%{--y1:15%}50%{--y1:70%}}
@keyframes pour-x2{0%,100%{--x2:85%}50%{--x2:20%}}@keyframes pour-y2{0%,100%{--y2:25%}50%{--y2:85%}}
@keyframes pour-x3{0%,100%{--x3:25%}50%{--x3:80%}}@keyframes pour-y3{0%,100%{--y3:90%}50%{--y3:25%}}
@keyframes pour-x4{0%,100%{--x4:80%}50%{--x4:30%}}@keyframes pour-y4{0%,100%{--y4:85%}50%{--y4:20%}}
html .site-header .site-menu nav{background-image:
 radial-gradient(ellipse 62% 52% at var(--x1) var(--y1),#e8b78d66,transparent 72%),
 radial-gradient(ellipse 58% 56% at var(--x2) var(--y2),#7fb59a62,transparent 72%),
 radial-gradient(ellipse 66% 50% at var(--x3) var(--y3),#d9a45f4a,transparent 74%),
 radial-gradient(ellipse 54% 54% at var(--x4) var(--y4),#f0e2c43e,transparent 72%)!important;
 background-size:100% 100%!important;background-repeat:no-repeat!important}
html .site-header .site-menu[open] nav{animation:pour-x1 23s ease-in-out infinite,pour-y1 31s ease-in-out infinite,pour-x2 29s ease-in-out infinite,pour-y2 19s ease-in-out infinite,pour-x3 37s ease-in-out infinite,pour-y3 26s ease-in-out infinite,pour-x4 21s ease-in-out infinite,pour-y4 34s ease-in-out infinite!important;transform-origin:top right}
html .site-header nav a:is(:hover,:focus-visible){background:radial-gradient(ellipse at 30% 50%,#e8b78d36,transparent 75%),radial-gradient(ellipse at 80% 50%,#7fb59a28,transparent 70%),#ffffff08;transition:background .9s ease,color .4s ease}
@media(prefers-reduced-motion:reduce){html .site-header .site-menu[open] nav{animation:none!important}}

/* 2026-11-03 (round 3): the header bar and the Explore button carry the same slow liquid colour as the menu. */
html .site-header{background-image:
 radial-gradient(ellipse 38% 170% at var(--x1) 50%,#e8b78d4a,transparent 72%),
 radial-gradient(ellipse 34% 190% at var(--x2) 50%,#7fb59a52,transparent 72%),
 radial-gradient(ellipse 42% 160% at var(--x3) 50%,#d9a45f3c,transparent 74%),
 radial-gradient(ellipse 30% 180% at var(--x4) 50%,#f0e2c433,transparent 72%)!important;
 background-repeat:no-repeat!important;
 animation:pour-x1 17s ease-in-out -4s infinite,pour-x2 23s ease-in-out -9s infinite,pour-x3 29s ease-in-out -2s infinite,pour-x4 19s ease-in-out -12s infinite}
html .site-menu summary{background-image:
 radial-gradient(ellipse 60% 150% at var(--x2) var(--y1),#e8b78d55,transparent 72%),
 radial-gradient(ellipse 55% 160% at var(--x1) var(--y2),#7fb59a52,transparent 72%),
 radial-gradient(ellipse 60% 150% at var(--x4) var(--y3),#d9a45f40,transparent 74%)!important;
 background-repeat:no-repeat!important;
 animation:pour-x1 13s ease-in-out -3s infinite,pour-y1 18s ease-in-out -6s infinite,pour-x2 16s ease-in-out -1s infinite,pour-y2 21s ease-in-out -8s infinite,pour-x4 15s ease-in-out -5s infinite,pour-y3 24s ease-in-out -10s infinite}
@media(prefers-reduced-motion:reduce){html .site-header,html .site-menu summary{animation:none}}

/* 2026-11-03 (round 4): word dispersion becomes smoke in the header; in the menu smoke condenses into the words, top to bottom, on the panel's own timing. */
html .site-header.is-compact .brand::after{content:'';position:absolute;left:-14px;top:50%;width:150px;height:84px;margin-top:-42px;border-radius:50%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 40% 50%,#e8b78d80,#7fb59a50 48%,transparent 72%);filter:blur(14px);opacity:0;animation:ahg-smoke 18s cubic-bezier(.45,.05,.35,.95) infinite}
@keyframes ahg-smoke{
 0%,34%{opacity:0;transform:translateX(0) scale(.6)}
 50%{opacity:.85;transform:translateX(4px) scale(1.1)}
 74%{opacity:.5;transform:translateX(min(30vw,380px)) scale(1.7,1.3)}
 100%{opacity:0;transform:translateX(min(58vw,760px)) scale(2.2,1.2)}
}
html .site-header .site-menu nav a{position:relative}
html .site-header .site-menu[open] nav a::before{content:'';position:absolute;inset:-4px 8% -4px -2%;z-index:-1;border-radius:22px;pointer-events:none;background:radial-gradient(ellipse at 28% 50%,#e8b78d5c,#7fb59a38 48%,transparent 74%);filter:blur(10px);opacity:0;animation:smoke-form 1100ms cubic-bezier(.22,1,.36,1) both}
@keyframes smoke-form{0%{opacity:0;transform:scale(.5,.8)}35%{opacity:1;transform:scale(1.12,1.2)}100%{opacity:0;transform:scale(.92,.9)}}
html .site-header .site-menu[open] nav a:nth-child(1)::before{animation-delay:60ms}html .site-header .site-menu[open] nav a:nth-child(2)::before{animation-delay:145ms}html .site-header .site-menu[open] nav a:nth-child(3)::before{animation-delay:230ms}html .site-header .site-menu[open] nav a:nth-child(4)::before{animation-delay:315ms}html .site-header .site-menu[open] nav a:nth-child(5)::before{animation-delay:400ms}html .site-header .site-menu[open] nav a:nth-child(6)::before{animation-delay:485ms}html .site-header .site-menu[open] nav a:nth-child(7)::before{animation-delay:570ms}
@media(prefers-reduced-motion:reduce){html .site-header.is-compact .brand::after,html .site-header .site-menu[open] nav a::before{animation:none;opacity:0}}

/* 2026-11-03 (round 5): header words are particles (src/header-smoke.js). The canvas draws the smoke; the real text fades in only when the particles have converged. */
.header-smoke{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;pointer-events:none;z-index:0}
html .site-header.smoke-on .brand{z-index:1}
html .site-header.smoke-on .site-menu summary{position:relative;z-index:1}
html .site-header.smoke-on .brand-monogram,html .site-header.smoke-on .brand-name{animation:none!important;transition:none!important;transform:none!important;visibility:visible!important;filter:none}
html .site-header.smoke-on .brand::after{display:none}
html .site-header.smoke-on .menu-label{display:inline-block}

/* 2026-11-03 (round 5): project browser opens in the header-menu language; dome buttons sit 4px higher and share the page-button colour. */
html #project-browser[open]{background-image:
 radial-gradient(ellipse 55% 45% at var(--x1) var(--y1),#e8b78d36,transparent 72%),
 radial-gradient(ellipse 50% 50% at var(--x2) var(--y2),#7fb59a36,transparent 72%),
 radial-gradient(ellipse 58% 44% at var(--x3) var(--y3),#d9a45f28,transparent 74%)!important;
 background-repeat:no-repeat!important;
 animation:pour-x1 29s ease-in-out infinite,pour-y1 37s ease-in-out infinite,pour-x2 33s ease-in-out infinite,pour-y2 25s ease-in-out infinite,pour-x3 41s ease-in-out infinite,pour-y3 31s ease-in-out infinite}
#project-browser .browser-project{position:relative}
#project-browser.is-forming :is(.browser-project,.browser-tabs button,header h2)::before{content:'';position:absolute;inset:2px 6% 2px -2%;z-index:-1;border-radius:22px;pointer-events:none;background:radial-gradient(ellipse at 28% 50%,#e8b78d5c,#7fb59a38 48%,transparent 74%);filter:blur(10px);opacity:0;animation:smoke-form 1100ms cubic-bezier(.22,1,.36,1) both;animation-delay:var(--d,0ms)}
#project-browser.is-forming :is(.browser-tabs button,header h2){position:relative}
html .story-dome .dome-controls button:not(.dome-motion-toggle),html .opening-finder button{background:linear-gradient(130deg,#a3b19a14,#51644e0c);border:1px solid #d5ddc52e;color:#f4f1eb;box-shadow:none;translate:0 -4px}
@media(prefers-reduced-motion:reduce){html #project-browser[open]{animation:none}#project-browser.is-forming :is(.browser-project,.browser-tabs button,header h2)::before{animation:none;opacity:0}}

/* round 6: the header canvas is fog, not dust: soften it so the masses merge like liquid. */
.header-smoke.is-2d{filter:blur(2.2px)}
/* shader fog supplies the motion: stop the CSS colour washes (they repaint the glass every frame) */
html .site-header.smoke-gl,html .site-header.smoke-gl .site-menu summary{animation:none}

/* round 8: brand green + gold fluid; uniform fog across the Explore button; press-to-smoke on buttons. */
html .site-header.smoke-gl .site-menu summary{background:transparent!important;background-image:none!important;box-shadow:none}
.smoke-press-canvas{position:fixed;pointer-events:none;z-index:2147483000}
.smoke-press,.smoke-press *{color:transparent!important;text-shadow:none!important}
.smoke-press svg,.smoke-press img{opacity:0!important}
.smoke-press-back,.smoke-press-back *{transition:color .55s ease,opacity .55s ease}
@media(prefers-reduced-motion:reduce){.smoke-press-canvas{display:none}}

/* Rail, round 12: no orange. A hairline with silhouette circles; the smoke nimbus lights the bead it condenses on (--lit set by header-smoke.js). */
html .hx4-rail-fill{background:linear-gradient(90deg,#d3dfc600,#d3dfc69e)}
html .hx4-rail-bead::before,html .hx4-rail-bead.is-reached::before{background:transparent;border:1px solid #d3dfc66b;box-shadow:none;transition:background-color .5s ease,box-shadow .5s ease,border-color .5s ease,transform .5s ease}
html .hx4-rail-bead.is-here::before{--base:.38;transform:scale(1.35);border-color:#efe6cf}
html .hx4-rail-bead::before,html .hx4-rail-bead.is-reached::before,html .hx4-rail-bead.is-here::before{background-color:#16241d;background-image:linear-gradient(rgb(246 234 205/calc(max(var(--lit,0),var(--base,0))*.85)),rgb(246 234 205/calc(max(var(--lit,0),var(--base,0))*.85)));box-shadow:0 0 calc(max(var(--lit,0),var(--base,0))*16px) calc(max(var(--lit,0),var(--base,0))*2px) rgb(240 220 170/calc(max(var(--lit,0),var(--base,0))*.55))}


/* Clear fog button (header-smoke.js §5): same pill as Play music, one step below it and its credit line. */
html .hx4-music.hx4-fogclear{top:calc(env(safe-area-inset-top) + 123px)}
html .hx4-music{justify-content:center;box-sizing:border-box}
@media(max-width:700px){html .hx4-music.hx4-fogclear{top:123px!important}}
body:has(.hx4-fogclear:not([hidden])) .hx4-music-credit{margin-top:42px}
.hx4-fogclear[hidden]{display:none}
.hx4-fog-ico{width:11px;height:11px;border:1.5px solid currentColor;border-radius:50%;opacity:.8;position:relative}
.hx4-fog-ico::after{content:"";position:absolute;inset:2.5px;border-radius:50%;background:currentColor;opacity:.55}

/* Dome stack, round 22 (group raised 46 px in round 23 to sit just under the dome; the dome itself does not move): one family of thin pills (same 28 px visible thickness and fill as Play music / Clear fog, 44 px hit area),
   and on phones the order top to bottom is: project name + descriptor, Browse all projects, [arrow] [Allow tilt] [arrow], Scroll to explore. */
html body .story-dome .dome-controls button,html body .opening-finder button{position:relative;isolation:isolate;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;min-height:44px;padding-block:0;color:#f4f1eb}
html body .story-dome .dome-controls button::before,html body .opening-finder button::before{content:"";position:absolute;inset:8px 0;z-index:-1;border-radius:22px;border:1px solid #c7d6bc40;background:#20302785;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
html body .story-dome .dome-controls button:not(.dome-motion-toggle){width:44px;min-width:44px;padding:0}
html body .story-dome .dome-controls button:not(.dome-motion-toggle)::before{inset:8px 2px}
html body .story-dome .dome-controls .dome-motion-toggle{min-width:104px;padding-inline:14px;border-radius:0}
html body .opening-finder button{min-width:150px;justify-content:center}
html body .journey-scroll{min-width:150px}
@media(max-width:700px),(pointer:coarse){
 html body .motion-story .story-dome .dome-controls{bottom:139px;z-index:6;left:50%;right:auto;transform:translateX(-50%);width:min(300px,calc(100vw - 32px));justify-content:center;align-items:center;gap:10px}
 html body .motion-story .story-dome .dome-controls>p{display:none}
 html body .motion-story .story-dome .dome-controls>button:first-child{order:1}
 html body .motion-story .story-dome .dome-controls .dome-motion-toggle{position:relative;left:auto;right:auto;top:auto;bottom:auto;transform:none;margin:0;order:2}
 html body .motion-story .story-dome .dome-controls>button:nth-child(3){order:3}
 html body .story-dome .dome-controls button,html body .story-dome .dome-controls button:not(.dome-motion-toggle){translate:none}
 html body .motion-story .opening-finder{bottom:175px!important;z-index:6;left:50%;transform:translateX(-50%)!important}
 html body .opening-finder button{translate:none}
 html body .motion-story .story-dome .dome-readout{bottom:219px;z-index:6}
 html body .motion-story .story-dome .dome-surface{bottom:calc(173px + var(--dome-readout-height,64px) + 16px)!important}
}

/* Music card, round 25: icon only (play triangle / pause bars) plus the song credit running left to right through a window and re-entering on the other side. Fixed size, never changes with the state. */
@media(prefers-reduced-motion:no-preference){
 html body .hx4-music-credit{display:none!important}
 html body .hx4-music,html body .hx4-fogclear{width:109px;min-width:109px;box-sizing:border-box;justify-content:flex-start;padding-inline:14px}
}
.hx4-music-slide{display:inline-flex;align-items:center;min-width:0}
.hx4-music-slide .hx4-music-word{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hx4-music-window{display:block;width:62px;overflow:hidden;white-space:nowrap;font-size:12px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8px,#000 calc(100% - 8px),transparent);mask-image:linear-gradient(90deg,transparent,#000 8px,#000 calc(100% - 8px),transparent)}
.hx4-music-track{display:inline-flex;animation:hx4-marquee 10s linear infinite;will-change:transform}
.hx4-music-track>span{padding-right:24px}
@keyframes hx4-marquee{from{transform:translateX(-50%)}to{transform:translateX(0)}}
html body .hx4-music .hx4-music-bars{position:relative;display:block;width:11px;height:11px;flex:none}
html body .hx4-music .hx4-music-bars::before{content:"";position:absolute;left:2px;top:0;border-left:9px solid currentColor;border-top:5.5px solid transparent;border-bottom:5.5px solid transparent;transition:opacity .9s ease,filter .9s ease}
html body .hx4-music .hx4-music-bars i{position:absolute;top:0;width:3px;height:11px;border-radius:1px;background:#f08a4b;animation:none;transition:opacity .9s ease,filter .9s ease}
html body .hx4-music .hx4-music-bars i:nth-child(1){left:1px}
html body .hx4-music .hx4-music-bars i:nth-child(2){display:none}
html body .hx4-music .hx4-music-bars i:nth-child(3){left:auto;right:1px}
/* play and pause trade places as a slow dissolve (opacity + a little blur), the same principle as the header mark */
html body .hx4-music:not(.is-playing) .hx4-music-bars i{opacity:0;filter:blur(2.5px)}
html body .hx4-music:not(.is-playing) .hx4-music-bars::before{opacity:.85;filter:none}
html body .hx4-music.is-playing .hx4-music-bars i{opacity:1;filter:none}
html body .hx4-music.is-playing .hx4-music-bars::before{opacity:0;filter:blur(2.5px)}
.hx4-music-window{height:16px;line-height:16px}
/* progress: one pixel lower, and only under the song title (not under the icon) */
html body .hx4-music .hx4-music-time{position:absolute;left:31px;right:auto;width:62px;bottom:10px;min-width:0;height:1px;background:#d3dfc633;opacity:0;transition:opacity .9s ease;pointer-events:none}
html body .hx4-music.is-playing .hx4-music-time{opacity:1}
@media(prefers-reduced-motion:reduce){.hx4-music-track{animation:none}}

/* Dome controls leave before the four project cards arrive (portfolio.js sets --chrome-out); nothing of the dome UI sits under the cards. */
.story-dome .dome-readout,.story-dome .dome-controls,.story-dome .opening-finder{opacity:var(--chrome-out,1)}

/* Opening a project card: title, description and image dissolve (same principle as the AHG mark, without fog). */
html body :is(.six-card,.project-card,.browser-project).is-dissolving img{opacity:0!important;filter:blur(14px)!important;transform:scale(1.04)!important;transition:opacity .9s ease,filter .9s ease,transform .9s ease}
.six-card.is-dissolving>div{opacity:1}
html body :is(.six-card,.project-card,.browser-project).is-dissolving :is(h3,p,strong,small){opacity:0;filter:blur(7px);letter-spacing:.05em;transition:opacity .8s ease,filter .8s ease,letter-spacing .9s ease}
html body :is(.six-card,.project-card,.browser-project).is-dissolving :is(svg,.ahg-arrow){opacity:0;transition:opacity .55s ease}
/* Text links, menu rows and pills: the words soften into a blur and fade (no fog); outlines stay. --dc is the colour the glyphs had at click time. */
@keyframes ahg-nav-dissolve{0%{color:var(--dc);text-shadow:0 0 0 transparent}40%{color:color-mix(in srgb,var(--dc) 40%,transparent);text-shadow:0 0 9px var(--dc)}100%{color:transparent;text-shadow:0 0 24px transparent;letter-spacing:.07em}}
html body .is-nav-dissolve,html body .is-nav-dissolve *{animation:ahg-nav-dissolve 1s cubic-bezier(.4,0,.2,1) forwards!important}
html body .is-nav-dissolve :is(svg,.ahg-arrow){opacity:0;transition:opacity .7s ease .1s}
@keyframes ahg-scene-in{from{opacity:0}to{opacity:1}}
.hx-track.scene-in{animation:ahg-scene-in .9s ease both}
@media(prefers-reduced-motion:reduce){html body .is-nav-dissolve,html body .is-nav-dissolve *{animation:none!important}}
.six-card{pointer-events:auto}

/* Audit 2026-11-03. Dome controls cannot be clicked or tabbed once faded; music shows waiting, loading and failure without words changing the size. */
.story-dome.chrome-out .dome-readout,.story-dome.chrome-out .dome-controls,.story-dome.chrome-out .opening-finder{visibility:hidden}
@keyframes hx4-music-wait{from{opacity:.35}to{opacity:1}}
html body .hx4-music.is-loading .hx4-music-bars::before,html body .hx4-music.is-waiting .hx4-music-bars::before{animation:hx4-music-wait .9s ease-in-out infinite alternate}
html body .hx4-music.is-unavailable .hx4-music-bars,html body .hx4-music.is-unavailable .hx4-music-window{display:none}
.hx4-music.is-unavailable .hx4-music-slide .hx4-music-word{position:static!important;width:auto;height:auto;clip:auto;overflow:visible;font-size:12px}
@media(prefers-reduced-motion:reduce){html body .hx4-music.is-loading .hx4-music-bars::before,html body .hx4-music.is-waiting .hx4-music-bars::before{animation:none}}

/* Audit 2026-11-03: devices and browsers. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.hx4-music::before,.journey-scroll::before{-webkit-backdrop-filter:blur(14px)}
/* the gap between Play music and Clear fog belongs to neither button's visible pill: a tap just under Play no longer clears the fog */
html body .hx4-fogclear{clip-path:inset(5px -4px -4px);white-space:nowrap}
@media(prefers-reduced-motion:no-preference){html body .hx4-fogclear{width:auto}}
/* browsers without :has() */
body.menu-open .hx4-music,body.menu-open .hx4-music-credit{visibility:hidden}
/* short screens, landscape phones, 200% zoom: the page scrolls normally, so the scroll cue only covers content */
@media(max-height:480px){html body .journey-scroll{display:none}
 .scroll-story:not(.motion-story) .story-dome .dome-controls{position:relative;left:auto;right:auto;width:100%;justify-content:center;transform:none}
 .scroll-story:not(.motion-story) .opening-finder{position:static;transform:none!important;text-align:center;margin-block:12px}
}
@media(max-height:430px){html body .hx4-rail{display:none}}
/* browsers without svh (iOS below 15.4, Chrome below 108) */
@supports not (height:1svh){
 .motion-story{height:760vh}.motion-story .story-pin{height:100vh}
 @media(max-width:700px){.motion-story{height:850vh}}
}
/* Windows high contrast: CSS-drawn icons and the rail must survive */
@media(forced-colors:active){
 .hx4-rail-track,.hx4-rail-fill,.hx4-music-bars i{forced-color-adjust:none;background:CanvasText!important}
 html body .hx4-music .hx4-music-bars::before{forced-color-adjust:none;border-color:transparent transparent transparent CanvasText}
 canvas.header-smoke,canvas.smoke-press-canvas{display:none}
}
@media print{
 .site-header,.hx4-music,.hx4-rail,.journey-scroll,.hx4-wipe,.hx4-dew,canvas,.contact-band-links,.skip-link{display:none!important}
 html,body{background:#fff!important;color:#000!important}
 *{color:#000!important;background-image:none!important;box-shadow:none!important;text-shadow:none!important;-webkit-text-fill-color:#000!important}
}
/* Small phones: the dome shrinks to clear the project name instead of sitting under it. */
@media(max-height:620px) and (max-width:700px){html body .motion-story .story-dome .dome-surface{bottom:calc(219px + var(--dome-readout-height,64px) + 6px)!important}}
/* Edge fade 2026-11-03: content dissolves into the page colour under the status bar / header at the top and above the browser toolbar at the bottom, so nothing is cut off hard on any phone. Strength is driven by scroll (--edge-t / --edge-b set in header-smoke.js), zero at the very top and the very bottom of a page. */
html::before,html::after{content:"";position:fixed;left:0;right:0;z-index:90;pointer-events:none;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html::before{top:0;height:calc(env(safe-area-inset-top,0px) + 96px);opacity:var(--edge-t,0);background:linear-gradient(#121612ee,#121612a8 42%,#12161200);-webkit-mask-image:linear-gradient(#000 48%,transparent);mask-image:linear-gradient(#000 48%,transparent)}
html::after{bottom:0;height:calc(env(safe-area-inset-bottom,0px) + 84px);opacity:var(--edge-b,0);background:linear-gradient(0deg,#121612e6,#121612a0 42%,#12161200);-webkit-mask-image:linear-gradient(0deg,#000 48%,transparent);mask-image:linear-gradient(0deg,#000 48%,transparent)}
@media(prefers-reduced-motion:reduce){html::before,html::after{-webkit-backdrop-filter:none;backdrop-filter:none}}

/* Let the capsule ends extend past the content frame, keeping its straight edge aligned with the grid. */
html .site-header{
  --header-frame-edge:max(var(--gutter), calc((100vw - 1320px) / 2));
  left:max(8px, calc(var(--header-frame-edge) - 24px));
  right:max(8px, calc(var(--header-frame-edge) - 24px));
}

/* Softer shared viewport/nav falloff: gradual opacity, no solid plateau. */
html::before,html::after{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
html::before{height:calc(env(safe-area-inset-top,0px) + 112px);background:linear-gradient(#121612bb,#12161280 24%,#12161240 52%,#12161216 76%,#12161200);-webkit-mask-image:linear-gradient(#000,#000c 28%,#0006 60%,transparent);mask-image:linear-gradient(#000,#000c 28%,#0006 60%,transparent)}
html::after{height:calc(env(safe-area-inset-bottom,0px) + 112px);background:linear-gradient(0deg,#121612bb,#12161280 24%,#12161240 52%,#12161216 76%,#12161200);-webkit-mask-image:linear-gradient(0deg,#000,#000c 28%,#0006 60%,transparent);mask-image:linear-gradient(0deg,#000,#000c 28%,#0006 60%,transparent)}
@media(prefers-reduced-motion:reduce){html::before,html::after{-webkit-backdrop-filter:none;backdrop-filter:none}}
