/* Optical Gallery layer: loads after light.css. Scoped to homepage section ids; never #hero. */
/* Tokens. Surfaces step from cinema black to matte reading graphite; silver and ice stay the only accents. */
:root{--gx-cinema:#03050a;--gx-gallery:#070a10;--gx-lab:#0a0e15;--gx-reading:#0b0f16;--gx-plinth:#0e1522;--gx-key:rgba(178,206,248,.15);--gx-floor:rgba(0,0,0,.78);--gx-hair:rgba(168,196,235,.14);--gx-ease:cubic-bezier(.2,.7,.2,1)}
html[data-theme="light"]{--gx-cinema:#f4f6fa;--gx-gallery:#f7f9fc;--gx-lab:#eef2f8;--gx-reading:#f9fafc;--gx-plinth:#e7edf6;--gx-key:rgba(255,255,255,.95);--gx-floor:rgba(18,40,78,.22);--gx-hair:rgba(18,60,122,.15)}

/* ===== THE COLLECTION (#categories): products on lit plinths, no tiles; feature lens leads ===== */
#categories#categories.ag-section{background:var(--gx-gallery)!important}
#categories#categories .ag-cc-inner{background:none!important}
#categories#categories .ag-cc-img{background:radial-gradient(46% 9% at 50% 90%,var(--gx-floor),transparent 74%),radial-gradient(70% 70% at 38% 18%,var(--gx-key),transparent 70%),var(--gx-plinth)!important;border-radius:2px}
#categories#categories .ag-cc-body{padding:18px 2px 8px!important}
/* full product text, never cut with an ellipsis */
#categories#categories :is(.ag-cc-desc,.ag-cat p){display:block!important;-webkit-line-clamp:unset!important;line-clamp:none!important;overflow:visible!important;text-overflow:clip!important;max-height:none!important;-webkit-box-orient:unset}
#categories#categories .ag-cc-name{font-size:clamp(1.2rem,1.5vw,1.45rem);letter-spacing:-.01em}
#categories#categories .ag-cc-cta{text-decoration:underline;text-decoration-color:transparent;text-underline-offset:5px;transition:text-decoration-color .2s}
@media (hover:hover) and (pointer:fine){
 #categories#categories .ag-cc-inner:hover{background:none!important}
 #categories#categories .ag-cc-img img{transition:transform .5s var(--gx-ease)!important}
 #categories#categories .ag-cc-inner:hover .ag-cc-img img{transform:scale(1.03)!important}
 #categories#categories .ag-cc-inner:hover .ag-cc-cta{text-decoration-color:var(--le-ice)}
}
/* lenses: one feature plinth, two beside it, the fourth laid along the base */
@media (min-width:1101px){
 #categories#categories .lem-iols .lem-prods{grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:auto;gap:clamp(24px,2.4vw,40px) clamp(20px,2vw,32px)}
 #categories#categories .lem-iols .ag-cc[data-idx="0"]{grid-column:1/span 6;grid-row:1/span 2}
 #categories#categories .lem-iols .ag-cc[data-idx="1"]{grid-column:7/span 3}
 #categories#categories .lem-iols .ag-cc[data-idx="2"]{grid-column:10/span 3}
 #categories#categories .lem-iols .ag-cc[data-idx="3"]{grid-column:7/span 6}
 #categories#categories .lem-iols .ag-cc[data-idx="0"] .ag-cc-img{aspect-ratio:1/1.02}
 #categories#categories .lem-iols .ag-cc[data-idx="0"] .ag-cc-img img{width:74%!important;height:80%!important;max-width:74%!important;max-height:80%!important}
 #categories#categories .lem-iols .ag-cc[data-idx="0"] .ag-cc-name{font-size:clamp(1.6rem,2.3vw,2.2rem)}
 #categories#categories .lem-iols .ag-cc[data-idx="0"] .ag-cc-desc{font-size:1rem;max-width:52ch}
 #categories#categories .lem-iols .ag-cc[data-idx="3"] .ag-cc-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(20px,2vw,32px)}
 #categories#categories .lem-iols .ag-cc[data-idx="3"] .ag-cc-img{aspect-ratio:1/.92}
 #categories#categories .lem-iols .ag-cc[data-idx="3"] .ag-cc-body{padding-top:4px!important;align-self:end}
}
/* single-product families: tall portrait plinth beside open text, no box around either */
#categories#categories .lem-fam:not(.lem-iols) .ag-cc-inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(18px,2vw,30px);align-items:end}
#categories#categories .lem-fam:not(.lem-iols) .ag-cc-img{aspect-ratio:1/.9;min-height:0;height:auto!important}
#categories#categories .lem-fam:not(.lem-iols) .ag-cc-img img{position:static;width:80%!important;height:80%!important;max-width:80%!important;max-height:80%!important}
#categories#categories .lem-fam:not(.lem-iols) .ag-cc-body{padding:0 0 6px!important}
/* the OVD syringe pack is long: give it a long plinth */
#categories#categories .lem-visco .ag-cc-img img{width:88%!important;max-width:88%!important}
/* instruments: same plinth language, no rounded panel */
#categories#categories .lem-ot a.ag-cat::before{border-radius:2px!important;height:clamp(220px,22vw,300px)!important;background:url(/web/content/33809?unique=5e99ee989d) center 46%/auto 78% no-repeat,radial-gradient(46% 9% at 50% 90%,var(--gx-floor),transparent 74%),radial-gradient(70% 70% at 38% 18%,var(--gx-key),transparent 70%),var(--gx-plinth)!important}
#categories#categories .lem-fam{border-top-color:var(--gx-hair)}
@media (max-width:680px){
 #categories#categories .lem-iols .lem-prods{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
 #categories#categories .lem-iols .ag-cc[data-idx="0"]{grid-column:1/-1}
 #categories#categories .lem-iols .ag-cc[data-idx="0"] .ag-cc-img{aspect-ratio:1/.86}
 #categories#categories .lem-iols .ag-cc[data-idx="0"] .ag-cc-name{font-size:1.45rem}
 #categories#categories .lem-iols .ag-cc{grid-column:1/-1;width:100%}
 #categories#categories .lem-iols .ag-cc:not([data-idx="0"]) .ag-cc-inner{display:grid;grid-template-columns:42% minmax(0,1fr);column-gap:14px;align-items:center}
 #categories#categories .lem-iols .ag-cc:not([data-idx="0"]) .ag-cc-img{aspect-ratio:1/1.05}
 #categories#categories .lem-iols .ag-cc-body{padding:12px 0 4px!important}
 #categories#categories .lem-iols .ag-cc:not([data-idx="0"]) .ag-cc-body{padding:0!important}
 #categories#categories .lem-iols .ag-cc-desc{font-size:.84rem}
 #categories#categories .lem-fam:not(.lem-iols) .ag-cc-inner{grid-template-columns:42% minmax(0,1fr);column-gap:14px;align-items:center}
 #categories#categories .lem-fam:not(.lem-iols) .ag-cc-desc{font-size:.84rem}
}
@media (max-width:680px){
 /* phones: picture and name side by side, the full description runs the width beneath */
 #categories#categories .lem-fam .ag-cc:not([data-idx="0"]) .ag-cc-inner{display:grid!important;grid-template-columns:40% minmax(0,1fr);grid-template-rows:1fr auto auto 1fr;column-gap:16px;align-items:start}
 #categories#categories .lem-fam .ag-cc:not([data-idx="0"]) .ag-cc-body{display:contents}
 #categories#categories .lem-fam .ag-cc:not([data-idx="0"]) .ag-cc-img{grid-column:1;grid-row:1/span 4;aspect-ratio:1/1;height:auto!important}
 #categories#categories .lem-fam .ag-cc:not([data-idx="0"]) .ag-cc-name{grid-column:2;grid-row:2;margin:0 0 4px}
 #categories#categories .lem-fam .ag-cc:not([data-idx="0"]) .ag-cc-tag{grid-column:2;grid-row:3;margin:0}
 #categories#categories .lem-fam .ag-cc:not([data-idx="0"]) .ag-cc-desc{grid-column:1/-1;grid-row:5;margin:14px 0 10px;font-size:.88rem}
 #categories#categories .lem-fam .ag-cc:not([data-idx="0"]) .ag-cc-cta{grid-column:1/-1;grid-row:6;min-height:44px;display:inline-flex;align-items:center}
}

/* ===== THE SCIENTIFIC THEATRE (#case): the figure stands open on the page, no panel around it ===== */
#case#case .s1{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#case#case .s1-view{border-radius:2px;overflow:hidden}
#case#case .s1-panel,#case#case .s1-info{background:none!important;border:0!important;box-shadow:none!important}
#case#case .s1-info{border-inline-start:1px solid var(--gx-hair)!important}
#case#case .s1-nav,#case#case .s1-ctl,#case#case .s1-steps{background:none!important;border-color:var(--gx-hair)!important;box-shadow:none!important}
#case#case .s1-head h2{font-size:clamp(2.1rem,4.4vw,3.9rem)}
/* rail: one hairline index, active step = ice line above it, no filled tab; controls lose separators */
#case#case .s1-steps button[aria-current="step"]{background:none!important}
#case#case .s1-steps button{transition:color .3s var(--gx-ease)}
#case#case .s1-steps i{font-size:12px;letter-spacing:.04em;color:var(--anatomy-muted)}
#case#case .s1-steps button[aria-current="step"] i{color:var(--ana-a,#8fc0ff)}
#case#case .s1-btn{border:0!important;box-shadow:none!important;background:none}
#case#case .s1-ctl{border:0!important;gap:0}
#case#case .s1-btn::after,#case#case .s1-btn::before{content:none!important}
/* annotation column: the step number is a quiet monumental numeral, the title reads as a plate caption */
#case#case .s1-num{font-size:clamp(2.2rem,3vw,3rem);font-weight:300;line-height:1;letter-spacing:-.04em;margin:0 0 18px;color:var(--anatomy-strong)}
#case#case .s1-panel h3{font-size:clamp(1.3rem,1.7vw,1.6rem);letter-spacing:-.015em;margin-bottom:14px}
@media (min-width:901px){
 /* headline left, lede beside it on the baseline: an editorial spread, not a stacked intro */
 #case#case .s1-head{max-width:none;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:clamp(32px,5vw,96px);align-items:end;margin-bottom:clamp(28px,3.4vw,52px)}
 #case#case .s1-head h2{margin:0}
 #case#case .s1-head p{max-width:46ch;padding-bottom:.5em}
 /* figure takes ~70% of the spread */
 #case#case .s1{grid-template-columns:minmax(0,2.35fr) minmax(0,1fr)}
 /* view fills its cell; a tall annotation column must never widen it into the text */
 #case#case .s1-view{aspect-ratio:auto;min-height:clamp(440px,44vw,760px);width:100%;min-width:0}
 #case#case .s1-panel{padding:6px 0 18px clamp(24px,2.6vw,40px)}
}
@media (max-width:900px){
 /* phones: controls sit directly under the figure; the annotation follows, its reserved height falls to the end */
 #case#case .s1{grid-template-areas:"view" "nav" "info"}
 #case#case .s1-info{border-inline-start:0!important;border-top:0!important}
 #case#case .s1-nav{border-top:0!important;border-bottom:1px solid var(--gx-hair)!important}
 #case#case .s1-panel{padding:20px 2px 8px}
 #case#case .s1-num{font-size:2.2rem;margin-bottom:12px}
}

/* ===== THE OPTICAL LABORATORY (#compare): an open spread, the product stage dominant ===== */
#compare#compare{background:var(--gx-lab)!important}
#compare#compare .agx-stack{border-inline:0!important;background:none!important}
#compare#compare .agx-info h3{font-size:clamp(1.9rem,3vw,2.9rem);line-height:1.04;letter-spacing:-.02em}
#compare#compare .agx-spec{font-variant-numeric:tabular-nums}
#compare#compare .agx-spec>div{border-color:var(--gx-hair)!important}
#compare#compare .agx-rail button.on,#compare#compare .agx-rail button[aria-pressed="true"],#compare#compare .agx-rail button[aria-selected="true"]{box-shadow:none!important}

/* ===== THE TYPOGRAPHIC MONUMENT (#stats): numerals carry the section ===== */
#stats#stats.ag-section{background:var(--gx-cinema)!important;padding-block:clamp(72px,9vw,140px)!important}
#stats#stats .ag-stats-grid{border-top:0;border-bottom:1px solid var(--gx-hair)}
#stats#stats .ag-stat-block{padding-block:0 clamp(24px,3vw,40px)!important}
#stats#stats .ag-stat-num{font-size:clamp(4.2rem,9.4vw,9rem)!important;font-weight:300!important;letter-spacing:-.055em;line-height:.86;margin-bottom:clamp(18px,2vw,28px)}
#stats#stats .ag-stat-label{font-size:clamp(1rem,1.2vw,1.12rem);font-weight:500}
#stats#stats .ag-stat-desc{font-size:.9rem}
@media (max-width:900px){#stats#stats .ag-stat-num{font-size:clamp(3.6rem,17vw,5.4rem)!important}#stats#stats .ag-stat-block:nth-child(n+3){padding-top:24px!important}}

/* ===== THE INSTITUTIONAL GALLERY (#why): headline and statement side by side, quiet matte surface ===== */
#why#why.ag-section{background:var(--gx-reading)!important}
@media (min-width:1101px){
 #why#why .ag-section-inner{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(32px,5vw,96px);align-items:end}
 #why#why .ag-section-label{grid-column:1/-1}
 #why#why .ag-section-headline{grid-column:1;margin-bottom:0!important}
 #why#why .ag-section-sub{grid-column:2;margin:0!important;max-width:52ch}
 #why#why .ag-why-grid{grid-column:1/-1}
}
#why#why .ag-why-card h3{font-size:clamp(1.4rem,2.2vw,2rem);letter-spacing:-.015em}
#why#why .ag-why-card{border-top-color:var(--gx-hair)!important}

/* ===== THE CLOSING SCENE (#cta) ===== */
#cta#cta.ag-section{background:var(--gx-cinema)!important}

/* ===== THE OPTICAL LABORATORY, phase 2: the stage takes ~62%, no panel, the selector is a quiet index ===== */
#compare#compare{padding-block:clamp(64px,8vw,120px)!important}
#compare#compare .agx-stack{grid-template-columns:minmax(0,1fr);border:0!important;border-block:1px solid var(--gx-hair)!important;border-radius:0!important;background:none!important}
#compare#compare .agx-prod{grid-template-columns:minmax(0,1.62fr) minmax(0,1fr)}
@media (min-width:901px){#compare#compare .agx-vis{min-height:clamp(420px,40vw,580px)}}
#compare#compare .agx-vis{background:radial-gradient(60% 52% at 50% 46%,color-mix(in srgb,var(--gx-plinth) 92%,#8fbef5 8%),transparent 72%),radial-gradient(40% 6% at 50% 92%,var(--gx-floor),transparent 76%)}
#compare#compare .agx-info{padding:clamp(28px,3vw,44px) 0 18px clamp(24px,3vw,48px);border-inline-start:1px solid var(--gx-hair)}
#compare#compare .agx-class{letter-spacing:.01em}
#compare#compare .agx-rail{gap:0 clamp(18px,2vw,30px);padding:14px 0 12px}
#compare#compare .agx-rail button{padding:0;border-radius:0;background:none!important;color:var(--le-silver,#aebbd1);font-weight:500;letter-spacing:.04em;border-bottom:1px solid transparent}
#compare#compare .agx-rail button:hover{color:var(--le-white,#f3f6fb)}
#compare#compare .agx-rail button[aria-pressed="true"]{background:none!important;color:var(--le-white,#f3f6fb);border-bottom-color:var(--le-ice,#8fbef5)}
#compare#compare .agx-tabs{gap:clamp(20px,2.4vw,36px)}
html[data-theme="light"] #compare#compare .agx-vis{background:radial-gradient(60% 52% at 50% 46%,#ffffff,transparent 72%),radial-gradient(40% 6% at 50% 92%,var(--gx-floor),transparent 76%)}
@media (max-width:900px){
 #compare#compare .agx-prod{grid-template-columns:minmax(0,1fr)}
 #compare#compare .agx-info{padding:22px 0 12px;border-inline-start:0;border-top:1px solid var(--gx-hair)}
 #compare#compare .agx-rail{gap:0 22px}
 #compare#compare .agx-vis-iol .agx-lens{left:0;width:64%}
 #compare#compare .agx-vis-iol .agx-pack{right:0;bottom:12%;width:34%;height:42%;object-position:bottom center}
}

/* ===== THE READING ROOM (#faq): opened by default (fx.faq_open); title left, questions right, hairlines only ===== */
#faq#faq.ag-section{background:var(--gx-reading)!important;padding-block:clamp(72px,9vw,140px)!important}
#faq#faq .ag-faq-details,#faq#faq .ag-faq-details[open]{border-block:0!important}
#faq#faq .ag-faq-summary{min-height:44px;padding:0 0 clamp(20px,2.4vw,32px);font-family:var(--ff-body,inherit);font-size:.95rem;font-weight:500;letter-spacing:.02em;color:var(--le-silver)!important;cursor:pointer}
#faq#faq .ag-faq-details-content{max-width:none;margin:0;padding:0;border-top:1px solid var(--gx-hair)}
#faq#faq .ag-faq-details-title{margin:0;padding-top:clamp(24px,3vw,40px);font-family:var(--ff-display,inherit);font-size:clamp(2.1rem,4.2vw,3.7rem);line-height:1.02;letter-spacing:-.025em;font-weight:600;color:var(--le-white)!important;text-wrap:balance}
#faq#faq .ag-faq-list{max-width:none}
#faq#faq .ag-faq-item:first-child{border-top:0!important}
#faq#faq .ag-faq-q{min-height:72px;padding:22px 0!important;font-size:clamp(1.02rem,1.25vw,1.18rem);font-weight:500;gap:24px}
#faq#faq .ag-faq-ans-inner{font-size:1rem;padding-bottom:26px!important}
#faq#faq .ag-faq-item:last-child{border-bottom:1px solid var(--gx-hair)!important}
#faq#faq .ag-faq-item{border-top-color:var(--gx-hair)!important}
@media (min-width:1001px){
 #faq#faq .ag-faq-details-content{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:clamp(32px,5vw,96px);align-items:start}
 #faq#faq .ag-faq-list{padding-top:clamp(12px,1.6vw,22px)}
}
@media (max-width:1000px){#faq#faq .ag-faq-details-title{padding-bottom:18px}}

/* stats lead straight into the reading room: less dead air under the numerals */
#stats#stats.ag-section{padding-bottom:clamp(56px,7vw,104px)!important}

/* ===== FOUNDATION (#agaaz-footer, homepage scope): links sit flush under their heads, no hover nudge ===== */
#agaaz-footer .agf-col a{gap:0;transform:none!important;min-height:32px}
#agaaz-footer .agf-col a::before{display:none}
#agaaz-footer .agf-col a{text-decoration:underline;text-decoration-color:transparent;text-underline-offset:5px;transition:color .2s,text-decoration-color .2s}
#agaaz-footer .agf-col a:hover{text-decoration-color:currentColor}
#agaaz-footer .agf-col h4{font-size:.9rem;letter-spacing:0;margin-bottom:16px}
/* footer shares the page's architectural line: same 1320 container and gutters as every section above it */
#agaaz-footer#agaaz-footer .agf-wrap{max-width:1320px!important;padding-inline:32px!important;box-sizing:border-box}
@media (max-width:768px){#agaaz-footer#agaaz-footer .agf-wrap{padding-inline:20px!important}}
@media (max-width:480px){#agaaz-footer#agaaz-footer .agf-wrap{padding-inline:16px!important}}
@media (max-width:600px){#agaaz-footer .agf-col a{min-height:40px}}

/* unslop pass: the closing actions keep their colours but lose the coloured glow; depth from surface, not light */
#cta#cta :is(.ag-btn-primary,.ag-btn-wa,.ag-btn-ghost){box-shadow:none!important;filter:none!important;text-shadow:none!important}
#cta#cta :is(.ag-btn-primary,.ag-btn-wa,.ag-btn-ghost)::before,#cta#cta :is(.ag-btn-primary,.ag-btn-wa,.ag-btn-ghost)::after{box-shadow:none!important;filter:none!important}
#cta#cta .ag-btn-wa{background:transparent!important;border:1px solid rgba(127,214,154,.32)!important}

/* ===== THE ORBITAL EXPERIENCE (#globe), phones: the planet bleeds past both edges so it reads as monumental.
   Renderer untouched; canvas follows its stage size. ponytail: 136vw raises canvas pixels ~1.85x on phones; drop to 116vw if GPU memory bites. */
@media (max-width:900px){
 #globe#globe{overflow-x:clip}
 #globe#globe .agg-stage{width:136vw;max-width:none;margin-inline:calc(50% - 68vw);align-self:center}
 @supports (width:100dvw){#globe#globe .agg-stage{width:136dvw;margin-inline:calc(50% - 68dvw)}}
 #globe#globe .agg-credit{right:calc(18% + 16px);bottom:2px}
}

/* ===== THE ORBITAL EXPERIENCE (#globe), annotation column: the readout speaks the gallery's numeral language ===== */
#globe#globe .ag-globe-stats{border-top:1px solid var(--gx-hair);padding-top:clamp(18px,2vw,28px);gap:clamp(24px,3.2vw,56px)}
#globe#globe .ag-globe-stat-num{font-size:clamp(2.2rem,3.4vw,3.4rem)!important;font-weight:300!important;line-height:1;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
#globe#globe .ag-globe-stat-label{margin-top:8px}
#globe#globe .ag-country-card h3{font-size:clamp(1.35rem,1.9vw,1.8rem)!important;letter-spacing:-.015em;line-height:1.1}
#case#case .s1-num:is(:lang(ar),:lang(he),:lang(fa)){text-align:right}

/* ===== BATCH E, one architectural line: every section's content edge = the collection's 1256 content box
   (1320 container, 32px gutters; 16px on phones). S1 and the explorer sat 38px inside it, the Earth copy 56px outside. */
#case#case .ana-wrap,#compare#compare .agx-wrap{width:min(1256px,100% - 64px)}
@media (max-width:900px){#case#case .ana-wrap,#compare#compare .agx-wrap{width:calc(100% - 32px)}}
@media (min-width:901px){#globe#globe .agg-copy{margin-inline-start:max(0px,calc((100% - 1256px)/2))}}
/* one headline scale for every section title (hero and closing scene excepted) */
#compare#compare .agx-head h2,#globe#globe .agg-copy .ag-section-headline,#faq#faq .ag-faq-details-title{font-size:clamp(2.1rem,4.4vw,3.9rem)!important;line-height:1.04;letter-spacing:-.022em}

/* ===== BATCH E/G seams (independent critique #2): neighbouring surfaces meet through a 160px blend, not a hard stripe.
   Tones unchanged; only the first 160px of each section borrows the tone above it. */
#compare#compare{background:linear-gradient(var(--gx-gallery),var(--gx-lab) 160px)!important}
#stats#stats.ag-section{background:linear-gradient(var(--gx-reading),var(--gx-cinema) 160px)!important}
#faq#faq.ag-section{background:linear-gradient(var(--gx-cinema),var(--gx-reading) 160px)!important}
#cta#cta.ag-section{background:linear-gradient(var(--gx-reading),var(--gx-cinema) 160px)!important}
/* phones: the category tab strip scrolls sideways; fade its trailing edge like the product rail so the cut reads as "more" */
@media (max-width:900px){#compare#compare .agx-tabs{-webkit-mask-image:linear-gradient(90deg,#000 86%,transparent);mask-image:linear-gradient(90deg,#000 86%,transparent);scroll-padding-inline:16px}}
/* feature lens (critique #4): the carton carries its plinth instead of floating small in it */
@media (min-width:1101px){#categories#categories .lem-iols .ag-cc[data-idx="0"] .ag-cc-img img{width:84%!important;height:88%!important;max-width:84%!important;max-height:88%!important}}
