/* Isolated experiment: presentation only. No hero material or motion parameters. */
html[data-design=glass]{--dg-bg:#1b2234;--dg-text:#f3f5ff;--dg-muted:#c5cbe0;--dg-cyan:#65dff2;--dg-lilac:#baa0ff;--dg-pink:#eea0dc;--dg-line:#8599c45e;--dg-glass:linear-gradient(145deg,#35435bc9,#20293eef 48%,#2e3049ed);--ink:var(--dg-text);--muted:var(--dg-muted);--paper:var(--dg-bg);--surface:#20293d;--line:var(--dg-line);--line-dark:var(--dg-line);--accent:#a7caff;--accent-deep:#c0b1f2;--accent-dark:#e8dbf6;--accent-soft:#354260;--focus:#8fe9ff;background:var(--dg-bg);color-scheme:dark}
html[data-design=glass] body{position:relative;isolation:isolate;background:linear-gradient(120deg,#202a41,#192032 48%,#222b41);color:var(--dg-text)}
html[data-design=glass] body:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:url('/assets/theme/glass-orb.svg'),url('/assets/theme/glass-orb.svg'),url('/assets/theme/glass-orb.svg'),url('/assets/theme/glass-orb.svg'),url('/assets/theme/glass-orb.svg');background-repeat:no-repeat;background-size:620px 620px,760px 760px,650px 650px,780px 780px,630px 630px;background-position:right -350px top -260px,left -450px top 660px,right -430px top 35%,left -490px top 64%,right -390px bottom 180px;opacity:.72}
html[data-design=glass] body :is(main,.hero-redesign,.site-header,.approach-quote,.skills-tools,.education,.footer,.dark){background-color:transparent;color:var(--dg-text)}
html[data-design=glass] body :is(h1,h2,h3,.placeholder-title,.hero-tags,.section-heading,.project-heading,.experience-description,.education h3){color:var(--dg-text)}
html[data-design=glass] body :is(.project-role,.experience-role,.experience-period,.footer-contact p,.contact-details,.footer-bottom,.media-note,.pending-cv,.mobile-cv,.education p){color:var(--dg-muted)}
html[data-design=glass] body :is(.menu-fallback,dialog){background:#1e273c;color:var(--dg-text)}
html[data-design=glass] body :is(.hero-motion-control,.button,.button.primary,.portfolio-progress,.skills-tabs,.skills-controls button,.project .external,.contact-channel button){background:var(--dg-glass);color:var(--dg-text);border-color:#97acd17a;box-shadow:inset 0 1px 1px #c2d8ff35,0 4px 18px #080c172b}
html[data-design=glass] body :is(.button,.button.primary,.hero-motion-control,.project .external,.skills-controls button):hover{background:linear-gradient(130deg,#3f5575,#353452);color:#fff;border-color:#aec9f5;box-shadow:inset 0 0 15px #adddff15,0 0 15px #8b9df322}
html[data-design=glass] body :is(.button,.hero-motion-control,.skills-controls button):active{background:#29354d;border-color:#c7c5ff}
html[data-design=glass] body :is(a,button,summary):focus-visible{outline-color:#94e7ff}
html[data-design=glass] body .footer .button.primary{background:linear-gradient(145deg,#e1faff,#90d8f0 50%,#aac6f7);color:#152942;border-color:#c6f6ff;box-shadow:inset 0 1px 4px #fff8,0 0 15px #72d6ff30}
html[data-design=glass] body .hero-marquee-track,html[data-design=glass] body .section-marquee .hero-marquee-track{color:#515d7c66}
html[data-design=glass] body .hero-redesign.hero-beaute .words-development{color:var(--dg-cyan)}
html[data-design=glass] body .hero-redesign.hero-beaute .words-product{color:var(--dg-lilac)}
html[data-design=glass] body .hero-redesign.hero-beaute .words-player{color:var(--dg-pink)}
html[data-design=glass] body .hero-redesign .word-ink>span:first-child{color:inherit}
html[data-design=glass] body .hero-redesign.hero-beaute .mode-buttons button[data-state=development]{--mode:var(--dg-cyan)}
html[data-design=glass] body .hero-redesign.hero-beaute .mode-buttons button[data-state=product]{--mode:var(--dg-lilac)}
html[data-design=glass] body .hero-redesign.hero-beaute .mode-buttons button[data-state=player]{--mode:var(--dg-pink)}
html[data-design=glass] body .hero-redesign.hero-beaute .mode-buttons button[data-state]{background:linear-gradient(135deg,#34435b99,#1e263bdd);color:var(--dg-text);border-color:color-mix(in srgb,var(--mode) 60%,#40506c);box-shadow:inset 0 1px 4px #cee5ff20}
html[data-design=glass] body .hero-redesign.hero-beaute .mode-buttons button[data-state][aria-pressed=true]{background:linear-gradient(140deg,color-mix(in srgb,var(--mode) 17%,#253249),#20283c);border-color:var(--mode);color:#fff;box-shadow:inset 0 0 13px color-mix(in srgb,var(--mode) 18%,transparent),0 0 12px color-mix(in srgb,var(--mode) 20%,transparent)}
html[data-design=glass] body .hero-redesign.hero-beaute .mode-buttons button[data-state]:hover{border-color:var(--mode);background:linear-gradient(145deg,#40516a,#2a3049);color:#fff}
html[data-design=glass] body .hero-redesign.hero-beaute .mode-buttons button[data-state]>.mode-indicator{border-color:var(--mode)}
html[data-design=glass] body .hero-redesign.hero-beaute .mode-buttons button[data-state][aria-pressed=true]>.mode-indicator{background:var(--mode);border-color:var(--mode);box-shadow:none}
html[data-design=glass] body .hero-redesign.hero-beaute .mode-buttons button[data-state]:disabled{box-shadow:none;background:transparent;color:var(--dg-muted)}
html[data-design=glass] body #approach .quote-line-base,html[data-design=glass] body #approach .quote-lead .quote-line-base{color:#977e9e}
html[data-design=glass] body #approach .quote-line-fill{color:#eef1ff}
html[data-design=glass] body #approach .quote-lead .quote-line-fill{color:#a4c8ff}
html[data-design=glass] body #approach .quote-mark{color:#977e9e}
html[data-design=glass] body #approach .quote-mark>span{color:#a4c8ff}
html[data-design=glass] body #proof>div:not(.section-marquee){border-color:#9bafd294;box-shadow:inset 0 1px 3px #c3d8ff26,0 0 12px #8d9ed517}
html[data-design=glass] body #proof :is(.proof-years,.proof-team){background:radial-gradient(ellipse at 100% 0,#eea0dc35,transparent 60%),linear-gradient(125deg,#6d4d83d9,#493957ef 52%,#735180e6);border-color:#dfacf0a6;box-shadow:inset 0 0 26px #eeb6ff24,0 0 16px #c691f12b}
html[data-design=glass] body #proof :is(.proof-years,.proof-team) :is(strong,h2,p){color:#fff}
html[data-design=glass] body #proof :is(.proof-grant,.proof-award){background:transparent}
html[data-design=glass] body #proof .proof-grant h2{color:#a7caff}
html[data-design=glass] body #proof .proof-rule{background:#a7caff}
html[data-design=glass] body #proof .proof-award p{border-color:var(--dg-line)}
html[data-design=glass] body main:has(.home-proof) .project,html[data-design=glass] body .match-pause{background:var(--dg-glass);color:var(--dg-text);border-color:#9cb3df8c;box-shadow:inset 0 1px 3px #d2e5ff30,0 10px 24px #060b1729,0 0 12px #9f8ae41a}
html[data-design=glass] body main:has(.home-proof) .project .external{background:linear-gradient(130deg,#34455e,#2a3049);color:#f3f5ff;border-color:#9bb4dc99}
html[data-design=glass] body .match-cell{background:linear-gradient(145deg,#53637f77,#29354b99);border-color:#a4b7d793;box-shadow:inset 0 1px 3px #d9e8ff26}
html[data-design=glass] body .match-cell:hover:not(:disabled),html[data-design=glass] body .match-cell[data-selected=true]{background:#43536e;outline-color:#bbdfff;border-color:#b9e0f9}
/* Preserve game SVG fills and centres; only the containing surfaces are themed. */
html[data-design=glass] body #skills .skill-card,html[data-design=glass] body #skills .skill-card[aria-pressed=true],html[data-design=glass] body #skills .skill-card:is(:hover,:focus-visible){background:linear-gradient(125deg,#294760,#3c3a58 53%,#614365);color:#f3f5ff;border-color:#9eb9e6b3;box-shadow:inset 0 1px 6px #d6edff26,0 0 12px #9db6e81f}
html[data-design=glass] body #skills .skill-card:before{background:radial-gradient(ellipse at 20% 65%,#6395eb70,transparent 60%),radial-gradient(ellipse at 80% 30%,#ed9fd65c,transparent 60%)}
html[data-design=glass] body #skills .skill-card:after{background:radial-gradient(ellipse at 30% 30%,#b8edff52,transparent 40%),radial-gradient(ellipse at 90% 85%,#e6bbff66,transparent 50%)}
html[data-design=glass] body #skills .skill-card[aria-pressed=true]{border-color:#badcff;outline-color:#a5bbff;box-shadow:inset 0 0 16px #a6c9ff38,0 0 20px #879af144}
html[data-design=glass] body #skills :is(h2,h3){color:#f3f5ff}
html[data-design=glass] body .skills-tabs button{color:#f3f5ff;background:transparent}
html[data-design=glass] body .skills-tabs button[aria-selected=true]{background:linear-gradient(135deg,#7955e4,#624ac2);box-shadow:inset 0 0 9px #c0abff50;color:#fff}
html[data-design=glass] body .skills-controls button{color:#e4d9ff}
html[data-design=glass] body .experience-card{border-color:var(--dg-line)}
html[data-design=glass] body .experience-card:focus-within{background:linear-gradient(135deg,#48608335,#715c8b35);box-shadow:inset 0 0 0 1px #9ab6df83,0 0 22px #92a2dd26}
@media(hover:hover){html[data-design=glass] body .experience-card:hover{background:linear-gradient(135deg,#48608335,#715c8b35);box-shadow:inset 0 0 0 1px #9ab6df83,0 0 22px #92a2dd26}}
html[data-design=glass] body .experience-card:after{background:linear-gradient(110deg,transparent,#d8e7ff20,transparent)}
html[data-design=glass] body .portfolio-progress{background:linear-gradient(145deg,#2a344af5,#262b43f5);border-color:#98acd073;color:#eef3ff;box-shadow:inset 0 1px 1px #c2d8ff35,0 -3px 20px #080e192b}
html[data-design=glass] body .portfolio-progress :is(button,.progress-name,.progress-number){color:#f3f5ff}
html[data-design=glass] body .portfolio-progress button{background:transparent;border-color:#a8b9d6}
html[data-design=glass] body .progress-meter{background:#56637d75}
html[data-design=glass] body .portfolio-progress button:hover{background:#41516d}
@media(max-width:767px){html[data-design=glass] body:before{background-size:340px 340px,420px 420px,360px 360px,440px 440px,350px 350px;background-position:right -260px top -140px,left -330px top 950px,right -270px top 36%,left -350px top 66%,right -270px bottom 230px;opacity:.52}}
html[data-design=glass] body main:has(.home-proof) .experience-card{background-color:transparent}
html[data-design=glass] body .progress-flowers{--surface:#fff}

html[data-design=glass] body .hero-redesign.hero-beaute .word-ink>span:first-child{color:inherit!important}
html[data-design=glass] body .hero-redesign.hero-beaute .hero-actions .button,html[data-design=glass] body .hero-redesign.hero-beaute .hero-actions .button:not(.primary){background:var(--dg-glass);border-color:#97acd17a;color:#f3f5ff}
html[data-design=glass] body main:has(.home-proof)+.footer .button.primary{background:linear-gradient(145deg,#e1faff,#90d8f0 50%,#aac6f7);color:#152942;border-color:#c6f6ff;box-shadow:inset 0 1px 4px #fff8,0 0 15px #72d6ff30}

/* 2026-11-10: local readability and glass refinements. */
/* The ID-scoped light-theme hover/focus rule also fires when scrolling under
   a stationary mouse. Keep an opaque dark base throughout its transition. */
html[data-design=glass] body main #experience .experience-card{
 background:#202a40;
}
html[data-design=glass] body main #experience .experience-card:focus-within{
 background:#25324b;
 box-shadow:inset 0 0 0 1px #a6bbef99, inset 0 1px 12px #9caef51a,0 0 18px #819ee51f;
}
@media(hover:hover){html[data-design=glass] body main #experience .experience-card:hover{
 background:#25324b;
 box-shadow:inset 0 0 0 1px #a6bbef99, inset 0 1px 12px #9caef51a,0 0 18px #819ee51f;
}}
html[data-design=glass] body main #experience .experience-card:after{
 background:linear-gradient(110deg,transparent 20%,#b5c8ff16 50%,transparent 80%);
}
/* Glass colour stays translucent; the backing colour does not. No opacity
   override on cards/ancestors and no changes to the sticky geometry. */
html[data-design=glass] body main:has(.home-proof) .project,
html[data-design=glass] body .match-pause{background-color:#20293e}
/* Only the first (hero) background image uses the stronger rim. Lower orbs
   retain the original shared asset, placement and brightness. */
html[data-design=glass] body:before{
 background-image:url('/assets/theme/glass-orb-hero.svg'),url('/assets/theme/glass-orb.svg'),url('/assets/theme/glass-orb.svg'),url('/assets/theme/glass-orb.svg'),url('/assets/theme/glass-orb.svg');
}
html[data-design=glass] body #proof>div:is(.proof-years,.proof-team){
 background:radial-gradient(ellipse at 0 0,#efb7f142,transparent 48%),radial-gradient(ellipse at 100% 100%,#bc9cf53b,transparent 48%),linear-gradient(125deg,#654a79,#493957 52%,#634773);
 box-shadow:inset 0 0 0 1px #e3b8f238,inset 0 2px 13px #efb6ed40,inset 0 -2px 16px #a89de830,0 0 16px #c691f12b;
}
/* Outline the merged petal silhouette, never the separate diamond/centre.
   The parent SVG retains its existing rotation and victory filter. */
html[data-design=glass] body .match-cell[data-kind="1"] svg>g:first-child{
 filter:drop-shadow(.55px 0 0 #a9cff0) drop-shadow(-.55px 0 0 #a9cff0) drop-shadow(0 .55px 0 #a9cff0) drop-shadow(0 -.55px 0 #a9cff0);
}

/* Art direction, 10 Nov: scoped foreground + static frosted surfaces. */
html[data-design=glass] body:before{background-image:url('/assets/theme/glass-orb.svg'),url('/assets/theme/glass-orb.svg'),url('/assets/theme/glass-orb.svg');background-size:650px 650px,780px 780px,630px 630px;background-position:right -430px top 35%,left -490px top 64%,right -390px bottom 180px}
html[data-design=glass] :is(#hero,#proof,#experience){position:relative;isolation:isolate}
.art-orbs{position:absolute;inset:0 calc(50% - 50vw);overflow:hidden;pointer-events:none;z-index:-1}
.art-orbs:before,.art-orbs:after{content:'';position:absolute;aspect-ratio:1;background:url('/assets/theme/frost-orb.webp') center/contain no-repeat}
.art-orbs:before{width:820px;right:-430px;top:-320px}
.art-orbs:after{width:920px;left:-520px;bottom:-500px;transform:rotate(180deg)}
html[data-design=glass] #hero{overflow:visible}
#hero>.art-orbs{inset:-80px 0 -260px;mask-image:linear-gradient(#000 85%,transparent)}
#hero>.art-orbs:before{width:820px;right:-540px;top:-500px}
#hero>.art-orbs:after{top:550px;bottom:auto;left:-530px}
#hero>.art-orbs{background:url('/assets/theme/edge-scuff.svg') left bottom/380px 380px repeat-y,url('/assets/theme/edge-scuff.svg') right bottom/380px 380px repeat-y}
#proof>.art-orbs{inset:-70px calc(50% - 50vw) -100px}
#proof>.art-orbs:before{width:820px;top:-110px;right:-500px}
#proof>.art-orbs:after{width:900px;bottom:-330px;left:-510px}
#experience>.art-orbs{inset:-150px calc(50% - 50vw) -220px}
#experience>.art-orbs:before{width:850px;right:-490px;top:-190px}
#experience>.art-orbs:after{width:940px;left:-570px;bottom:-360px}
html[data-design=glass] .mode-caption{position:absolute;bottom:calc(100% + 12px);left:0;margin:0;font:500 12px/1.4 var(--body);letter-spacing:.035em;color:#c5cbe0;white-space:nowrap;pointer-events:none}
@media(min-width:1280px){
 html[data-design=glass] .hero-redesign.hero-beaute .words-product .flower-word:nth-child(1){right:6%;top:5%;font-size:40px}
 html[data-design=glass] .hero-redesign.hero-beaute .words-product .flower-word:nth-child(3){right:11%;top:20%;font-size:25px}
 html[data-design=glass] .hero-redesign.hero-beaute .words-player .flower-word:nth-child(2){right:1%;top:77%;font-size:24px}
 html[data-design=glass] .hero-redesign.hero-beaute .words-player .flower-word:nth-child(3){right:3%;top:89%;font-size:40px}
}
@media(max-width:1279px){html[data-design=glass] .hero-redesign.hero-beaute .mode-buttons{margin-top:44px}.mode-caption{left:0!important}}
html[data-design=glass] body #proof>div:is(.proof-years,.proof-team){
 background:radial-gradient(ellipse at 0 5%,#f1b5f04a,transparent 50%),radial-gradient(ellipse at 100% 100%,#c3a0ff42,transparent 56%),linear-gradient(130deg,#89579874,#34293be0 48%,#76548780);
 border-color:#e6b9f0c4;box-shadow:inset 0 0 0 1px #efd1ff50,inset 0 0 22px #eaa4f047,0 0 15px #bd80e02b;
}
html[data-design=glass] body main #experience .experience-card,
html[data-design=glass] body main #experience .experience-card:first-child,
html[data-design=glass] body main #experience .experience-card:last-child{padding:22px 26px;background:transparent;border-radius:14px;box-shadow:none}
html[data-design=glass] body main #experience .experience-card:focus-within{background:linear-gradient(135deg,#25334bef,#1e263beb 55%,#31334ee8);box-shadow:inset 0 0 0 1px #a2b9eea8,inset 0 0 20px #a7b4f323,0 0 17px #8b99dd20}
@media(hover:hover){html[data-design=glass] body main #experience .experience-card:hover{background:linear-gradient(135deg,#25334bef,#1e263beb 55%,#31334ee8);box-shadow:inset 0 0 0 1px #a2b9eea8,inset 0 0 20px #a7b4f323,0 0 17px #8b99dd20}}
@media(max-width:767px){
 html[data-design=glass] body:before{background-size:360px 360px,440px 440px,350px 350px;background-position:right -270px top 36%,left -350px top 66%,right -270px bottom 230px}
 .art-orbs:before{width:440px;right:-290px;top:-180px}.art-orbs:after{width:480px;left:-350px;bottom:-250px}
 #hero>.art-orbs:before{width:440px;right:-315px;top:-190px}
 #hero>.art-orbs:after{width:480px;left:-345px;top:auto;bottom:80px}
 #hero>.art-orbs{background-size:150px 380px,150px 380px}
 #proof>.art-orbs:before{width:460px;right:-350px;top:-60px}#proof>.art-orbs:after{width:540px;left:-390px;bottom:-100px}
 #experience>.art-orbs:before{width:520px;right:-410px;top:-20px}#experience>.art-orbs:after{width:580px;left:-430px;bottom:-100px}
 html[data-design=glass] body main #experience .experience-card:nth-child(n){padding:20px 16px}
}
/* Keep the bright lower-left experience rim outside the reading column. */
@media(min-width:768px){#experience>.art-orbs:after{bottom:-480px;left:-650px;mask-image:linear-gradient(to right,#000 65%,transparent 85%)}}
@media(max-width:767px){#experience>.art-orbs:before,#experience>.art-orbs:after{opacity:.65}}
/* GPU/compositor output transform of the existing live canvas, not a material. */


/* Final local review, 24 Nov: readable keyboard focus and bounded experience atmosphere. */
html[data-design=glass] body .hero-redesign.hero-beaute .mode-buttons button:focus-visible{outline:3px solid #94e7ff;outline-offset:6px}
html[data-design=glass] body :is(#experience,#education){scroll-margin-top:24px}
html[data-design=glass] #experience>.art-orbs{inset:-150px calc(50% - 50vw) -160px;--orb-clear:max(var(--space),calc((100vw - 1440px)/2));mask-image:linear-gradient(to bottom,transparent,#000 100px,#000 calc(100% - 180px),transparent),linear-gradient(to right,#000,transparent var(--orb-clear),transparent calc(100% - var(--orb-clear)),#000);mask-composite:intersect;z-index:-1}
html[data-design=glass] #experience>.art-orbs:before{right:-490px;top:-190px;mask-image:none}
html[data-design=glass] #experience>.art-orbs:after{left:-650px;bottom:-330px;mask-image:none}
html[data-design=glass] .home-education{position:relative;isolation:isolate}
@media(max-width:767px){
 html[data-design=glass] #experience>.art-orbs:before{right:-410px;top:-20px}
 html[data-design=glass] #experience>.art-orbs:after{left:-430px;bottom:-100px}
}

/* Homepage orbs, 24 Nov: one existing frosted material; other routes retain SVG.
   This marker is structural and is absent from catalogs, documents and cases. */
html[data-design=glass] body:has(main > #hero)::before{
 background-image:url('/assets/theme/frost-orb.webp'),url('/assets/theme/frost-orb.webp'),url('/assets/theme/frost-orb.webp');
}
/* Proof's top orb previously extended 110px outside its clipping box. The new
   box starts at the orb's actual top (-70 -110), with both complete images
   contained vertically. The smaller left arc ends before the project heading.
   Horizontal clipping is confined to this noninteractive decorative layer. */
html[data-design=glass] body:has(main > #hero) #proof > .art-orbs{
 inset:-180px calc(50% - 50vw) -120px;
}
html[data-design=glass] body:has(main > #hero) #proof > .art-orbs::before{
 top:0;
}
html[data-design=glass] body:has(main > #hero) #proof > .art-orbs::after{
 width:720px;left:-460px;bottom:0;
}
/* Replace the reading-column slit mask with two genuinely smaller circles in
   the top-right and bottom-left whitespace. No central sphere hidden by a mask. */
html[data-design=glass] body:has(main > #hero) #experience > .art-orbs{
 inset:-150px calc(50% - 50vw) -70px;mask-image:none;
}
html[data-design=glass] body:has(main > #hero) #experience > .art-orbs::before{
 width:300px;right:-100px;top:0;mask-image:none;opacity:.8;
}
html[data-design=glass] body:has(main > #hero) #experience > .art-orbs::after{
 width:180px;left:-70px;bottom:5px;mask-image:none;opacity:.75;
}
@media(max-width:767px){
 html[data-design=glass] body:has(main > #hero) #proof > .art-orbs{inset:-130px calc(50% - 50vw) -100px}
 html[data-design=glass] body:has(main > #hero) #proof > .art-orbs::after{width:420px;left:-300px}
 html[data-design=glass] body:has(main > #hero) #experience > .art-orbs::before{width:180px;right:-75px;top:0}
 /* Fit the actual gap below the last mobile card, above Education. */
 html[data-design=glass] body:has(main > #hero) #experience > .art-orbs::after{width:110px;left:-25px;bottom:25px}
}
