/* Shared visual details, using the existing night and gold palette. */
html:not(:lang(ar)):not(:lang(zh)) {--font-body: Avenir, "Helvetica Neue", sans-serif}
html:not(:lang(ar)):not(:lang(zh)) :is(.horizon-heading h1,.portrait-intro h2,.collab-heading h2){font-family:"Iowan Old Style",Georgia,serif;font-weight:500;letter-spacing:.035em}
html:lang(ar) .horizon-heading h1{letter-spacing:0}
.horizon .horizon-composition{justify-content:center;text-align:center}
.horizon .horizon-heading{flex:0 1 auto}
.horizon-heading h1 span{animation:none}
.horizon-heading p{opacity:1}
.signature-footer,.signature-credit,.signature-email{background:transparent}
.signature-footer .signature-inner{min-height:84px;gap:8px}
.signature-credit a{color:var(--color-gold);text-decoration-thickness:1px;text-underline-offset:.3em}
.signature-email>span{display:inline-flex;gap:8px;align-items:center}
.signature-email svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.35}
.signature-copy[data-copied] svg{color:#b6d2a5}
.compass-home>.signature-footer{background:transparent}
.compass-home>.signature-footer .signature-relief{display:none}
@media(max-width:600px){.signature-footer .signature-inner{min-height:104px}.signature-email{gap:5px}}
.portrait-intro.prose,.portrait-detail__content.prose{font-size:clamp(16px,1.55vw,19px);line-height:1.85;max-inline-size:68ch}
:is(.portrait-intro,.portrait-detail__content) p+p{margin-block-start:1.2em}
.portrait-intro>p:first-of-type{color:#c8ddbc}
.visual-waves{position:fixed;z-index:-1;inset:0;width:100%;height:100%;pointer-events:none;opacity:.36}
body:not(.home){isolation:isolate}
.visual-trail{position:fixed;inset:0;width:100%;height:100%;z-index:8;pointer-events:none}
.visual-intro{position:fixed;inset:0;z-index:90;pointer-events:none;overflow:hidden;background:#090f14}
.visual-intro.visual-intro--title-only{background:transparent}
.visual-intro-title{position:absolute;inset:auto;display:block;text-align:center;transform-origin:center;color:#e2eddc;text-shadow:0 0 36px #91b87b66}
.gallery-notice>summary,.portfolio-notice{border-color:#84ae6e60}
.gallery-notice>summary{transition:background .25s,color .25s}
.gallery-notice>summary:hover,.gallery-notice[open]>summary{background:#91b87c12;color:#bbd5ac}
.gallery-notice>summary::before{content:"";width:13px;height:16px;border:1px solid #86af70;border-radius:2px;display:inline-block;margin-inline-end:9px;background:repeating-linear-gradient(transparent 0 4px,#86af7050 4px 5px);flex:none}
.gallery-notice[open]>.portfolio-notice{animation:visual-notice .32s ease-out both}
@keyframes visual-notice{from{clip-path:inset(0 0 22%);opacity:.65}to{clip-path:inset(0);opacity:1}}
.category-landscape__terrain [data-zone].is-highlighted{filter:brightness(1.24) drop-shadow(0 0 9px #9fc38aaa)}
.category-landscape__terrain{filter:drop-shadow(0 14px 16px #0009)}
.category-landscape__stage{background:radial-gradient(ellipse at 50% 38%,#243b3e,#0b151b 70%,transparent)}
@media(prefers-reduced-motion:no-preference){
 @view-transition{navigation:auto}
 ::view-transition-group(root){animation-duration:.78s}
 ::view-transition-old(root){animation:fog-out .36s ease-in both}
 ::view-transition-new(root){animation:fog-in .46s .28s ease-out both}
 ::view-transition{
  background-color:#10191e;
  background-image:url('/assets/transition-cloud.webp'),url('/assets/transition-cloud.webp');
  background-size:154% 148%,132% 160%;
  background-repeat:no-repeat;
  animation:fog-flight .78s ease both;
 }
 [data-reveal="type"]{animation:reveal-type .65s ease-out both}
 [data-reveal="media"]{animation:reveal-media .7s ease-out both}
 [data-reveal="card"]{animation:reveal-card .55s ease-out both;animation-delay:var(--reveal-delay,0ms)}
}
@keyframes fog-out{
  55%{opacity:.88}
  to{filter:blur(12px) brightness(.65);scale:1.035;opacity:0}
}
@keyframes fog-in{
 from{opacity:0;filter:blur(10px);scale:1.025}
 24%{opacity:0}
 to{opacity:1;filter:none;scale:1}
}
@keyframes fog-flight{
 from{background-position:120% 36%,-62% 73%}
 48%{background-position:55% 52%,28% 59%}
 to{background-position:-36% 77%,109% 33%}
}
@keyframes reveal-type{from{clip-path:inset(0 0 28%);translate:0 8px}to{clip-path:inset(0);translate:none}}
@keyframes reveal-media{from{clip-path:inset(0 3% 9%);filter:brightness(.75)}to{clip-path:inset(0);filter:none}}
@keyframes reveal-card{from{translate:0 12px;opacity:.7}to{translate:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.visual-waves g,.gallery-notice[open]>.portfolio-notice{animation:none}}
.terrain-ripples{animation:map-water 5s ease-in-out alternate infinite}
.category-landscape:not([data-in-view]) .terrain-ripples,html[data-visual-paused] .terrain-ripples{animation-play-state:paused}
@keyframes map-water{from{opacity:.24;translate:-2px 0}to{opacity:.85;translate:3px -1px}}
@media(prefers-reduced-motion:reduce){.terrain-ripples{animation:none}}

/* Atmospheric layers remain shared between the page and its opening. */
.atmospheric-field{overflow:hidden;background:radial-gradient(ellipse at 30% 23%,#173414 0%,transparent 58%),radial-gradient(ellipse at 85% 64%,#173313 0%,transparent 58%),#111e27}
.atmospheric-field i{position:absolute;inset:-35%;background:url('/assets/atmospheric-vapor.webp') center/100% 100% no-repeat;opacity:.63;animation:vapor-drift 36s ease-in-out alternate infinite}
.atmospheric-field i:nth-child(2){inset:-42% -12% -20% -70%;opacity:.39;animation-duration:49s;animation-direction:alternate-reverse;filter:hue-rotate(115deg)}
.atmospheric-field i:nth-child(3){inset:14% -63% -30% -24%;opacity:.47;animation-duration:58s}
html[data-visual-paused] .atmospheric-field i{animation-play-state:paused}
@keyframes vapor-drift{from{transform:translate(-6%,3%) scale(1.01)}to{transform:translate(9%,-4%) scale(1.19)}}
.visual-intro .intro-vapor{position:absolute;inset:0;background:radial-gradient(ellipse at 54% 36%,#1d3f1760,transparent 56%),#101b24;animation:intro-vapor-clear 1.88s both}
.intro-vapor i{animation:vapor-pass 1.88s cubic-bezier(.25,.55,.33,1) both}
.intro-vapor i:nth-child(2){animation:vapor-pass-deep 1.88s both}
.intro-vapor i:nth-child(3){animation:vapor-pass 1.88s reverse both}
@keyframes vapor-pass{from{transform:translate(-25%,8%) scale(1.15);opacity:.76}to{transform:translate(28%,-8%) scale(1.42);opacity:.08}}
@keyframes vapor-pass-deep{from{transform:translate(16%,-8%) scale(1.2);opacity:.65}to{transform:translate(-25%,10%) scale(1.38);opacity:.04}}
@keyframes intro-vapor-clear{0%,42%{opacity:1}100%{opacity:0}}
.horizon.horizon,.horizon.horizon--compact{height:auto;min-height:clamp(240px,36svh,385px);max-height:none;padding:calc(var(--header-height) + 20px) var(--page-gutter) 51px;background:transparent}
.horizon::after{content:none}
.horizon-heading p{margin-top:10px}
.horizon-scroll{bottom:10px}
.gallery-notice{border:1px solid #82ac6b85;border-radius:9px;background:linear-gradient(112deg,#232a28f0,#151c23e8);box-shadow:0 9px 35px #060b103d,inset 0 1px #9fc38b23}
.gallery-notice>summary{min-height:68px;gap:12px;padding:14px clamp(14px,3vw,28px);justify-content:flex-start;color:#c7dcba;font-size:clamp(13px,1.5vw,17px);font-weight:650}
.gallery-notice>summary .notice-toggle{margin-inline-start:auto}
.gallery-notice>summary:hover,.gallery-notice[open]>summary{background:#598a4225}
.gallery-notice[open]>.portfolio-notice{margin:0;border:0;border-top:1px solid #719e5952;background:transparent;animation:visual-notice .65s ease-out both}
@media(prefers-reduced-motion:no-preference){
 [data-reveal="type"]{animation-duration:.83s}
 [data-reveal="media"]{animation-duration:.94s}
 [data-reveal="card"]{animation-duration:.76s}
}
@media(max-width:700px){.horizon.horizon{min-height:245px;padding-block-start:calc(var(--header-height) + 19px)}}
@media(prefers-reduced-motion:reduce){.atmospheric-field i,.gallery-notice[open]>.portfolio-notice{animation:none}}

/* One fixed backdrop spans the heading, content and footer. */
.visual-waves.energy-field{background:#060606;opacity:1;overflow:hidden}
.energy-field i{
 position:absolute;inset:-16% -21% auto -18%;height:62%;
 background:url('/assets/energy-current-forest.webp') center/100% 100% no-repeat;
 opacity:.64;transform:rotate(-9deg);
 animation:energy-upper 9s cubic-bezier(.45,0,.55,1) infinite alternate;
}
.energy-field i:nth-child(2){
 inset:auto -13% -14% -27%;height:64%;opacity:.51;transform:rotate(169deg);
 animation:energy-lower 12s cubic-bezier(.45,0,.55,1) -2s infinite alternate;
}
.energy-field i::after{
 content:"";position:absolute;inset:0;
 mask:url('/assets/energy-current-forest.webp') center/100% 100% no-repeat;
 background:linear-gradient(100deg,transparent 22%,#95bb803c 46%,#e6efe081 50%,#95bb803c 54%,transparent 77%) 130% 0/245% 100% no-repeat;
 animation:energy-pulse 6s linear infinite;
}
.energy-field i:nth-child(2)::after{animation-duration:8s;animation-delay:-3s}
html[data-visual-paused] .energy-field i,
html[data-visual-paused] .energy-field i::after{animation-play-state:paused}
.visual-intro.awaiting-transition .intro-vapor,
.visual-intro.awaiting-transition .intro-vapor i{animation-play-state:paused}
@keyframes energy-upper{
 35%{transform:translate(5vw,10vh) rotate(-13deg) skewY(5deg) scale(1.07,.89)}
 70%{transform:translate(13vw,5vh) rotate(-6deg) skewY(-4deg) scale(1.13,1.1)}
 100%{transform:translate(17vw,14vh) rotate(-2deg) skewY(2deg) scale(1.15,.87);opacity:.82}
}
@keyframes energy-lower{
 35%{transform:translate(-7vw,-4vh) rotate(175deg) skewY(-4deg) scale(1.08,1.12)}
 68%{transform:translate(-9vw,-10vh) rotate(164deg) skewY(4deg) scale(1.13,.89)}
 100%{transform:translate(-14vw,-7vh) rotate(178deg) scale(1.15,1.07);opacity:.69}
}
@keyframes energy-pulse{to{background-position:-30% 0}}
@media(max-width:700px){.energy-field i{inset-inline:-48%;height:53%}.energy-field i:nth-child(2){inset-inline:-50%;height:54%}}
@media(prefers-reduced-motion:reduce){.energy-field i,.energy-field i::after{animation:none}.energy-field i::after{display:none}}

/* Section hierarchy and light clipped to the letters. */
#page-content :is(.collab-heading h2,.contact-primary h2,.contact-section-heading h2,.portrait-intro h2,.photography-heading h2){
 scale:none;
 font-size:clamp(24px,4vw,54px);
}
#page-content .collab-page h3{font-size:1.19em}
#page-content :is(.portrait-detail,.collab-detail)>summary{font-size:1.12em}
@media(prefers-reduced-motion:no-preference){
 .visual-intro-title{
  --title-sheen:linear-gradient(104deg,var(--theme-snow) 21%,#91c477 44%,#fff 51%,var(--theme-snow) 73%);
  background:var(--title-sheen) 100% 0/240% 100%;
  background-clip:text;color:transparent;
  animation:title-light 1.08s var(--reveal-delay,0ms) ease-out both;
 }
 .visual-intro-title{animation-delay:.38s}
}
@keyframes title-light{from{background-position:100% 0}to{background-position:0 0}}
@keyframes title-light-rtl{from{background-position:0 0}to{background-position:100% 0}}

/* The title alone occupies the opening beat. Keep layout stable and keyboard access recoverable. */
html[data-page-intro] :is(#main > :not(.horizon),.horizon-heading p,.horizon-scroll,.context-back,.signature-footer){pointer-events:none}
#page-content :is(.collab-heading h2,.contact-primary h2,.contact-section-heading h2,.portrait-intro h2,.photography-heading h2){
 font-size:clamp(27px,4.6vw,64px);overflow-wrap:anywhere;
}
#page-content .collab-page h3{font-size:1.43em}
.portrait-detail>summary>span:nth-child(2),.collab-detail>summary>span:nth-child(2){
 font-size:clamp(17px,2.15vw,25px);min-width:0;overflow-wrap:anywhere;
}
.optical-choice h2{font-size:clamp(22px,3vw,42px)}
.destination-globe__card-name{font-size:clamp(14px,1.45vw,20px)}
@media(prefers-reduced-motion:no-preference){
 .title-ink{
  /* Both ends of the cycle place the entire highlight outside the text. */
  background:var(--theme-snow) linear-gradient(90deg,transparent,#a5cc91 31%,#fff 50%,#a5cc91 69%,transparent) -65% 0/38% 100% no-repeat;
  background-clip:text;
  color:transparent;
  animation:section-title-sweep 3.7s linear infinite paused;
 }
 [data-title-in-view]>.title-ink{animation-play-state:running}
 :dir(rtl) .title-ink{animation-direction:reverse}
 html[data-visual-paused] .title-ink{animation-play-state:paused}
 :dir(rtl) .visual-intro-title{animation-name:title-light-rtl}
}

@keyframes section-title-sweep{
 0%{background-position:-65% 0}
 92%,100%{background-position:165% 0}
}
