/* Hidden Gem V23: Inside the Gem, progressive enhancement. Base site remains functional without JS. */
:root{--v23-mx:50%;--v23-my:45%;--v23-scroll:0;--v23-brandglow:#174C43}
.hero{isolation:isolate;min-height:95svh;overflow:hidden;background:radial-gradient(ellipse at 72% 42%,rgba(35,89,83,.33),transparent 43%),linear-gradient(130deg,#191B1B 5%,#382333 54%,#243B4A 100%)}
.v23-hero-light{position:absolute;inset:-18%;pointer-events:none;background:radial-gradient(ellipse 30% 45% at var(--v23-mx) var(--v23-my),rgba(208,162,202,.20),transparent 80%),conic-gradient(from 25deg at 79% 45%,transparent 0 26%,rgba(73,150,148,.08) 31%,transparent 38% 52%,rgba(180,65,90,.13) 56%,transparent 63%);mix-blend-mode:screen;opacity:.82;transition:opacity .5s;z-index:0}
.v23-hero-prism{position:absolute;inset:0;pointer-events:none;opacity:.66;background:linear-gradient(122deg,transparent 48%,rgba(233,226,213,.065) 49.3%,transparent 50.5%),linear-gradient(158deg,transparent 55%,rgba(101,167,171,.12) 57%,transparent 60%);clip-path:polygon(45% 0,100% 0,100% 100%,59% 100%);transform:translate3d(0,calc(var(--v23-scroll)*-.03px),0);z-index:0}
.hero .container{z-index:2}.hero-headline-main,.hero-headline-accent,.hero-description,.hero-buttons{animation:v23-arrive .85s both cubic-bezier(.16,1,.3,1)}.hero-headline-main{animation-delay:.12s}.hero-headline-accent{animation-delay:.38s}.hero-description{animation-delay:.60s}.hero-buttons{animation-delay:.72s}
@keyframes v23-arrive{from{opacity:0;transform:translateY(24px);filter:blur(5px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
.hero-visual{perspective:900px}.hero-gem-wrapper{transform-style:preserve-3d;transform:rotateX(var(--v23-tilt-y,0deg)) rotateY(var(--v23-tilt-x,0deg));transition:transform .22s ease-out;position:relative}
.hero-approved-gem{position:relative;z-index:2;animation:v23-breathe 7s ease-in-out infinite!important;filter:drop-shadow(0 26px 40px rgba(0,0,0,.53)) drop-shadow(0 0 18px rgba(177,92,141,.21))}
.v23-gem-aura{position:absolute;inset:12%;border-radius:50%;background:conic-gradient(from 15deg,transparent,#64274055,transparent,#236a6355,transparent,#496e9f55,transparent);filter:blur(30px);animation:v23-aura 22s linear infinite;pointer-events:none}
.v23-orbit{position:absolute;inset:8%;border:1px solid rgba(233,226,213,.20);border-radius:50%;transform:rotate(-23deg) scaleX(.69);box-shadow:0 0 25px rgba(233,226,213,.055);pointer-events:none}
.v23-orbit-two{inset:0;transform:rotate(36deg) scaleX(.72);border-color:rgba(233,226,213,.11)}
@keyframes v23-breathe{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-13px) rotate(1deg)}}@keyframes v23-aura{to{transform:rotate(360deg)}}
.v23-light-section{position:relative;isolation:isolate}.v23-light-section>.container{position:relative;z-index:1}.v23-section-light{position:absolute;inset:0;pointer-events:none;opacity:.62;background:linear-gradient(123deg,transparent 42%,rgba(233,226,213,.035) 47%,transparent 54%),radial-gradient(circle at 84% 12%,rgba(103,31,42,.13),transparent 36%);transition:opacity .7s;z-index:0}.v23-light-section.v23-in-view .v23-section-light{opacity:1}
/* Service facets: effects never hide essential text or links */
.service-card{--v23-x:50%;--v23-y:30%;position:relative;transform-style:preserve-3d;transition:transform .32s cubic-bezier(.2,.8,.2,1),background .32s,border-color .32s,box-shadow .32s;will-change:transform;overflow:hidden}
.service-card:hover,.service-card:focus-within{transform:translateY(-7px);border-color:color-mix(in srgb,var(--v23-accent) 70%,white);box-shadow:0 25px 44px rgba(0,0,0,.24),0 0 30px color-mix(in srgb,var(--v23-accent) 20%,transparent)}
.service-card::after{background:radial-gradient(circle at var(--v23-x) var(--v23-y),rgba(255,255,255,.27),transparent 35%),linear-gradient(130deg,rgba(233,226,213,.17),transparent 60%);clip-path:polygon(0 0,100% 16%,86% 100%,12% 86%);width:65%;height:69%;right:-18%;bottom:-24%;opacity:.24;transition:opacity .3s,transform .6s;pointer-events:none}
.service-card:hover::after,.service-card:focus-within::after{opacity:.72;transform:rotate(16deg) translateY(-9px)}
.v23-facet-cue{font-size:.80rem!important;font-family:'Tenor Sans',sans-serif;color:#F4EDE3!important;letter-spacing:.01em;line-height:1.5!important;margin-top:auto!important;opacity:.77;transform:translateY(4px);transition:opacity .3s,transform .3s;border-top:1px solid rgba(233,226,213,.23);padding-top:12px}
.service-card:hover .v23-facet-cue,.service-card:focus-within .v23-facet-cue{opacity:1;transform:translateY(0)}
.service-card .service-link{margin-top:14px!important}
/* Brand story: same artwork, three distinct stages */
#work{--v23-brandglow:#5C84AF;transition:background 800ms ease;background:radial-gradient(ellipse at 48% 12%,color-mix(in srgb,var(--v23-brandglow) 13%,transparent),transparent 55%),#191B1B}
#work .v22-portfolio-card{cursor:pointer;transition:transform .38s,border-color .38s,box-shadow .38s,opacity .38s;outline-offset:5px}
#work .v22-portfolio-card:hover,#work .v22-portfolio-card:focus-visible,#work .v22-portfolio-card.v23-active{border-color:color-mix(in srgb,var(--v23-brandglow) 63%,#E9E2D5);box-shadow:0 16px 34px rgba(0,0,0,.20),0 0 25px color-mix(in srgb,var(--v23-brandglow) 17%,transparent);transform:translateY(-8px)}
#work .v22-portfolio-card.v23-active .v22-port-image img{transform:scale(1.07);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
#work .v22-port-image img{transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.v23-story-indicator{text-align:center;color:#E9E2D5;font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;margin:24px 0 0;min-height:1.5em}
/* Gem discovered glow, progress and completion */
.gem-secret{position:relative;isolation:isolate}.gem-secret::after{content:'';position:absolute;inset:-5px;border-radius:50%;border:1px solid rgba(233,226,213,.70);opacity:0;pointer-events:none}.gem-secret.v23-discovered::after{animation:v23-sparkle .72s ease-out forwards}
@keyframes v23-sparkle{0%{opacity:.9;transform:scale(.7)}100%{opacity:0;transform:scale(1.9)}}
.gem-dialog-card{overflow:hidden}.gem-dialog-card::before{content:'';position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#243B4A,#174C43,#C16B8B,#671F2A);pointer-events:none}.gem-dialog.v23-complete .gem-dialog-card{box-shadow:0 0 90px rgba(154,97,159,.32),0 35px 90px rgba(0,0,0,.65)}
/* Work around old mobile display:none so the hero gem still participates in the experience */
@media(max-width:1000px){.hero-visual{display:flex!important;max-height:300px;margin:0 auto}.hero-gem-wrapper{height:270px!important;width:min(66vw,260px)!important}.hero .container{gap:6px}.hero{padding-bottom:35px}.hero-approved-gem{max-height:270px}.v23-orbit{inset:2%}}
@media(max-width:650px){.hero-visual{max-height:215px}.hero-gem-wrapper{height:205px!important;width:min(55vw,190px)!important}.hero-approved-gem{max-height:205px}.hero h1{font-size:clamp(2.7rem,9vw,3.75rem)}.v23-story-indicator{font-size:.68rem}.service-card:hover{transform:none}.service-card .v23-facet-cue{opacity:.92;transform:none}}
@media(prefers-reduced-motion:reduce){.hero-headline-main,.hero-headline-accent,.hero-description,.hero-buttons,.hero-approved-gem,.v23-gem-aura,.gem-secret.v23-discovered::after{animation:none!important}.hero-gem-wrapper,.service-card,.v22-portfolio-card,.v23-section-light,.v22-port-image img{transition:none!important}.hero-gem-wrapper{transform:none!important}.service-card:hover,#work .v22-portfolio-card:hover,#work .v22-portfolio-card.v23-active{transform:none!important}.v23-hero-light{display:none}.v23-section-light{opacity:.4}}
