/* Home-only strict stacking context. Nothing from this scene can paint outside Home. */
#home{position:relative;overflow:hidden;isolation:isolate;}
#home .gbr-hero-horizon{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;isolation:isolate;opacity:1;--horizon-position-x:50%;--horizon-position-y:48%;}
#home .gbr-horizon-back,#home .gbr-horizon-ridge{position:absolute;inset:-3%;width:106%;height:106%;display:block;object-fit:cover;object-position:var(--horizon-position-x) var(--horizon-position-y);pointer-events:none;}
#home .gbr-horizon-back{z-index:1;}
#home .gbr-horizon-title-clip{position:absolute;inset:0;z-index:2;overflow:hidden;clip-path:inset(0 0 42% 0);pointer-events:none;}
/* Optical centering is line-height, not translation. The title's anchor is exactly 22% of Home. */
#home .gbr-horizon-title{position:absolute;top:22%;left:0;right:0;z-index:2;text-align:center;white-space:nowrap;color:#f1f7fa;font:900 min(18.5vw,33vh,340px)/0 system-ui,-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.07em;text-shadow:0 1px 0 #e6eff3,0 2px 0 #cadbe3,0 3px 0 #94a8b7,0 8px 30px #040d1a55;opacity:1;}
#home .gbr-hero-horizon.ridge-missing .gbr-horizon-title{visibility:hidden;}
#home .gbr-horizon-ridge{z-index:3;}
#home .gbr-horizon-water{position:absolute;inset:0;z-index:4;pointer-events:none;background:linear-gradient(to bottom,transparent 48%,#040D1A 78%);}
#home .gbr-horizon-foreground{position:absolute;z-index:5;left:0;right:0;top:var(--horizon-subtitle-top,33%);text-align:center;pointer-events:none;opacity:1;}
#home .gbr-horizon-foreground span{display:inline-block;max-width:92vw;font:750 clamp(11px,1.6vw,23px)/1.2 system-ui,-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:.24em;color:#f1f8fc;text-shadow:0 1px 3px #040D1A,0 3px 18px #040D1A;}
@media(max-width:760px){#home .gbr-hero-horizon{--horizon-position-x:44%;--horizon-position-y:50%;}#home .gbr-horizon-foreground span{letter-spacing:.18em;}}
.gbr-turtle-reflection{position:absolute;left:0;top:0;pointer-events:none;opacity:0;filter:blur(1.2px) saturate(.8);mask-image:linear-gradient(to bottom,transparent 5%,#0008 65%,#000 100%);transform-origin:50% 50%;will-change:transform,opacity}
.gbr-turtle-reflection canvas{width:100%;height:100%;display:block;}
@media(prefers-reduced-motion:reduce){.gbr-turtle-reflection{display:none;}}

/* Keep the existing mountain/title sandwich hidden until both images decode. */
#home .gbr-hero-horizon:not([data-images-ready]) .gbr-horizon-title{visibility:hidden;}
#home .gbr-hero-horizon{background:#040D1A;}

/* Golden-hour home only: retain image geometry and title sandwich. */
#home .gbr-horizon-back{filter:sepia(.20) saturate(1.09) brightness(.94);}
#home .gbr-horizon-ridge{filter:sepia(.18) saturate(1.08) brightness(.94);}
#home .gbr-horizon-water{background:radial-gradient(ellipse at 73% 13%,#ffd69b32 0%,transparent 47%),linear-gradient(180deg,#ad69331a 0%,#dba76b15 35%,transparent 48%,#040D1A 78%);}
#home .gbr-horizon-title{color:#fff0dc;text-shadow:0 1px 0 #f0d7b8,0 2px 0 #c6a17d,0 8px 30px #040d1a66;}
#home .gbr-horizon-foreground span{color:#fff0dc;}
#home .gbr-hero-horizon:after{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;background:radial-gradient(ellipse at 72% 16%,#ffd09b20,transparent 58%);animation:gbr-golden-breathe 12s ease-in-out infinite alternate;}
@keyframes gbr-golden-breathe{from{opacity:.45}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#home .gbr-hero-horizon:after{animation:none;}}

/* Turtle reflection shares the same fixed coordinate space and stays behind the model. */
.gbr-turtle-reflection{z-index:0;filter:blur(1px) saturate(.85);mask-image:linear-gradient(to bottom,transparent 0%,#0009 35%,#000 85%);}
