/* Base layout, card surfaces and responsive rules. Keep rule order: later overrides are intentional. */
:root{
  color-scheme:dark;font-synthesis:none;
  --bg:#050507;--surface:#0d0c12;--ink:#f0eef5;--muted:#a09aa9;
  --accent:#bd9aff;--line:#ffffff12;--brand-font:"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scrollbar-color:#3d354c var(--bg)}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
body::before{content:"";position:absolute;inset:0 0 auto;height:850px;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 82% 35%,#50228513,transparent 55%)}
a{color:inherit;text-decoration:none}button,select{font:inherit}button{color:inherit;cursor:pointer}button,a,select,summary{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
[hidden]{display:none!important}
.inner{max-width:1320px;padding-inline:60px;margin-inline:auto}
.header{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{font-size:24px;font-weight:800;letter-spacing:-.12em}.brand>span{color:var(--accent)}
.nav{display:flex;gap:34px;align-items:center;font-size:13px;color:#ada7b7}.nav a:hover{color:var(--ink)}.nav-contact{color:var(--ink)}.nav-contact span{color:var(--accent);margin-left:8px}
.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:35px;align-items:center;min-height:650px;padding-block:90px 100px}
.eyebrow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 25px;font-size:12px;letter-spacing:.04em;color:#c8c2d2}
.signal{height:6px;width:6px;background:var(--accent);border-radius:50%;box-shadow:0 0 10px #bd9aff55}.location{color:#847c91}
.hero h1{margin:0 0 27px;font-size:clamp(42px,4.5vw,65px);line-height:1.12;letter-spacing:-.06em;font-weight:730}
.hero h1>span{color:var(--accent)}
.hero-description{font-size:18px;line-height:1.65;max-width:510px;margin:0 0 17px;color:#d5cfde}
.hero-about{font-size:14px;line-height:1.8;max-width:510px;color:#b7afc2;margin:0 0 16px}
.hero-personal{font-size:14px;line-height:1.8;max-width:480px;color:var(--muted);margin:0}
.button-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;margin-top:30px;background:#c9b2f4;color:#1a102b;padding:15px 20px;border-radius:7px;font-size:13px;font-weight:650;transition:background .2s}
.button-primary:hover{background:#dfccff}
.hero-portrait{position:relative;width:100%;max-width:340px;margin:0;justify-self:center;isolation:isolate}
.hero-portrait .card{min-height:0;aspect-ratio:2/3}
.hero-portrait::before{content:"";position:absolute;inset:-10px;z-index:-1;pointer-events:none;border-radius:22px;background:linear-gradient(125deg,#f327b5,#7b39de,#1c95e8,#f152b6,#8b4dff);background-size:300% 300%;opacity:.35;filter:blur(22px);animation:portrait-aura 12s ease-in-out infinite}
.portrait-front{padding:0!important;border-color:#ba88ef66}.portrait-front img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.portrait-hint{position:absolute;top:calc(100% + 18px);left:0;right:0;text-align:center;font-size:10px;color:#8f799f;pointer-events:none}
@keyframes portrait-aura{0%,100%{background-position:0% 50%;opacity:.3}50%{background-position:100% 50%;opacity:.5}}
.collection{padding-bottom:100px;scroll-margin-top:32px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
.section-heading h2{font-size:32px;font-weight:620;letter-spacing:-.045em;margin:0}
.collection-count{color:#81758e;font:14px monospace;vertical-align:middle;margin-left:9px}
.collection-hint,.section-note{font-size:12px;color:#8e849b}.collection-hint span{color:var(--accent);margin-left:9px}
.filter-bar{display:grid;gap:10px;margin:25px 0 12px}
.filter-group{display:flex;align-items:flex-start;gap:16px}
.filter-label{width:40px;flex:0 0 40px;padding-top:6px;font-size:11px;color:#8e849b}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.filter{position:relative;isolation:isolate;overflow:hidden;border:1px solid #b995ef24;border-radius:999px;padding:4px 12px;min-height:28px;color:#b4a7c6;background:#110d18;font-size:12px;transition:transform .2s,border-color .25s,background .25s,color .25s,box-shadow .25s}
.filter::before{content:"";position:absolute;inset:-1px;z-index:-1;background:linear-gradient(110deg,transparent 22%,#e1c1ff28 45%,#c9a4ff45 50%,transparent 72%);transform:translateX(-110%);pointer-events:none}
.filter:hover{color:#eee3ff;border-color:#bd9aff66;transform:translateY(-2px);background:#1b1228}
.filter:active{transform:translateY(1px) scale(.94)}
.filter.is-active{color:#f0e4ff;border-color:#b889f080;background:#35224f;box-shadow:0 0 19px #a370df16,inset 0 1px #dcc0ff15}
.filter.is-active::before{animation:chip-shimmer 5.6s ease-in-out infinite}
@keyframes chip-shimmer{0%,35%{transform:translateX(-110%)}75%,100%{transform:translateX(110%)}}
.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:30px;align-items:start;justify-items:center}
.card-wrap{--edge:#9fbcdf;--glow:#5779b419;position:relative;isolation:isolate;perspective:1400px;width:100%;max-width:286px;min-width:0;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;border-radius:14px}
.card-wrap[data-rarity="epic"]{--edge:#bd9ae5;--glow:#8752bd1b}
.card-wrap[data-rarity="legendary"]{--edge:#d3b58b;--glow:#c7954e15}
.card-wrap[data-rarity="special"]{--edge:#a1c9bc;--glow:#64ba9d14}
/* Only smooth hover tilt. The physical angle is rendered by JS; replaying a transform
   transition when lazy 3D geometry returns would replay every accumulated turn. */
.card{--mx:50%;--my:40%;--angle:0deg;--pitch:0deg;--twist:0deg;position:relative;display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;min-width:0;transform-style:preserve-3d;transform:rotateX(var(--pitch)) rotateY(calc(var(--angle) + var(--twist)));transition:--pitch .55s cubic-bezier(.2,.8,.2,1),--twist .55s cubic-bezier(.2,.8,.2,1);min-height:450px;aspect-ratio:2/3;cursor:grab}
.card-wrap.is-expanded .card{aspect-ratio:auto}
.card.spinning,.card.dragging{transition:none}.card.dragging{cursor:grabbing}
.card-wrap:focus-visible{outline:2px solid #bd9aff88;outline-offset:6px}
.card-face{grid-area:1/1;width:100%;min-width:0;position:relative;border:1px solid color-mix(in srgb,var(--edge),transparent 70%);border-radius:14px;background:radial-gradient(ellipse at 50% 25%,var(--glow),transparent 65%),linear-gradient(155deg,#101016,#09090e);backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;padding:20px 20px 80px;display:flex;flex-direction:column}
.card-face::before{content:"";position:absolute;inset:5px;border:1px solid color-mix(in srgb,var(--edge),transparent 92%);border-radius:10px;pointer-events:none}
.card-face::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at var(--mx) var(--my),#ffffff0d,transparent 40%);opacity:0;pointer-events:none;transition:opacity .2s}
.card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#a9a0b3;letter-spacing:.025em;z-index:1}
.card-source{color:#d0c5de}.card-type{color:#8e849c}
.art-stage{height:140px;flex-shrink:0;position:relative;display:grid;place-items:center;margin:8px 0 12px;pointer-events:none;user-select:none}
.art-stage img{height:158px;width:100%;object-fit:contain;position:relative;filter:saturate(.7);opacity:.88}
.art-stage:has(svg)::before{content:"";position:absolute;width:136px;height:136px;border:1px solid color-mix(in srgb,var(--edge),transparent 88%);border-radius:50%;box-shadow:0 0 34px var(--glow)}
.art-stage > svg{width:100px;height:100px;fill:none;stroke:var(--edge);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.85;transform:rotate(-7deg)}
.card-body{position:relative;z-index:1}.card-body h3{font-size:20px;line-height:1.22;letter-spacing:-.035em;margin:0 0 11px;font-weight:620;overflow-wrap:anywhere}
.card-short{color:#a9a1b4;font-size:13px;line-height:1.65;margin:0}
.card-status{display:inline-flex;gap:6px;align-items:center;margin:13px 0 0;font-size:10px;color:#bca4d6}
.card-status::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
.card-rarity{display:flex;gap:7px;align-items:center;color:var(--edge);font-size:9px;letter-spacing:.1em;margin-top:auto;padding-top:22px;text-transform:uppercase;opacity:.8}
.card-rarity::before{content:"✧";font-size:13px}
.card-details{border-top:1px solid var(--line);padding-top:16px;margin-top:19px;cursor:text;user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}
.card-details p{font-size:13px;line-height:1.8;color:#c6bdcf;margin:0 0 12px}.card-details p:last-child{margin-bottom:0}
.card-actions{position:absolute;bottom:16px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:center;gap:12px;z-index:3;border-top:1px solid var(--line);padding-top:5px}
.details-toggle{font-size:12px;font-weight:500;background:none;border:0;padding:10px 0;min-height:44px;display:flex;align-items:center;gap:14px;color:#d4c8e2}
.card-wrap:focus-within{z-index:2}
.card-back{--edge:#bd9ae5;--glow:#8752bd1b;transform:rotateY(180deg);align-items:center;justify-content:center;min-height:0;padding:0;background:#000}
.card-back::before{content:none}
.empty-state{padding:65px 16px;text-align:center;color:var(--muted);border:1px solid var(--line);border-radius:14px}
.empty-state .collection-reset{margin-top:12px;color:#f0e4ff;border:1px solid #b889f080;background:#35224f;padding:4px 14px;min-height:28px;text-decoration:none}
.collection-reset::before{animation:chip-shimmer 5.6s ease-in-out infinite}.collection-reset span{margin-left:5px}
.skills{padding-top:55px;padding-bottom:85px;border-top:1px solid var(--line);scroll-margin-top:30px}
.skill-list{margin:35px 0 0}.skill-list>div{display:grid;grid-template-columns:230px 1fr;gap:30px;padding:17px 0}
.skill-list dt{font-size:13px;color:#d8d0e1}.skill-list dd{margin:0;font-size:13px;line-height:1.85;color:#958a9f}
.contact{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:50px 70px;border-top:1px solid var(--line)}
.contact h2{font-size:30px;letter-spacing:-.04em;font-weight:600;margin:0 0 10px}.contact p{color:var(--muted);font-size:13px;margin:0}
.contact>a{font-size:17px;color:#cab0ef;padding-block:10px;overflow-wrap:anywhere}.contact>a span{margin-left:15px}
.footer{border-top:1px solid var(--line);padding-block:24px 30px}
.footer-line{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:11px;color:#887d95}.footer-line a{color:#b0a2bf}
.easter-egg{text-align:center;margin:35px auto 0;color:#8c7a9f;font-size:11px;max-width:500px}
.easter-egg summary{cursor:pointer;list-style:none;display:inline-block;min-height:44px;padding:14px}.easter-egg summary::-webkit-details-marker{display:none}.easter-egg summary span{margin-left:7px}
.easter-egg p{font-size:14px;line-height:1.9;color:#c2a4e7;margin:5px 0 20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip-link{position:fixed;top:12px;left:16px;padding:12px 18px;background:#d3c9ff;color:#171026;border-radius:8px;z-index:20;transform:translateY(-180%)}
.skip-link:focus{transform:translateY(0)}
#top:focus,#collection:focus{outline:none}
@media(min-width:1550px){.inner{max-width:1480px}.card-body h3{font-size:20px}.card-meta{font-size:9px}.hero{grid-template-columns:1.2fr 1fr}.hero h1{font-size:72px}}
@media(max-width:1050px){.inner{padding-inline:35px}.hero{gap:5px}.hero h1{font-size:49px}.hero-description{font-size:16px}.collection-hint{display:none}.skill-list>div{grid-template-columns:190px 1fr}}
@media(max-width:760px){.inner{padding-inline:24px}.header{height:76px}.nav{gap:22px;font-size:12px}.hero{grid-template-columns:1fr;gap:40px;padding-block:60px 55px}.hero-portrait{max-width:310px}.hero-copy{max-width:570px}.hero h1{font-size:clamp(39px,7.5vw,56px)}.hero-description{max-width:480px}.hero-about{font-size:14px;line-height:1.8;max-width:510px;color:#b7afc2;margin:0 0 16px}
.hero-personal{max-width:460px}.section-heading h2{font-size:28px}.card-face{padding-inline:20px}.card-actions{left:20px;right:20px}.card-meta{font-size:9px}.card-body h3{font-size:20px}.skill-list>div{grid-template-columns:155px 1fr;gap:16px}.contact{flex-direction:column;align-items:flex-start}.section-note{display:none}}
@media(max-width:560px){.inner{padding-inline:22px}.nav{gap:18px}.nav a[href="#skills"]{display:none}.hero{padding-block:49px 50px;gap:36px}.hero-portrait{max-width:280px}.hero h1{font-size:clamp(36px,9.4vw,51px)}.eyebrow{font-size:11px;gap:7px;margin-bottom:21px}.hero-description{font-size:15px}.hero-about{font-size:14px;line-height:1.8;max-width:510px;color:#b7afc2;margin:0 0 16px}
.hero-personal{font-size:13px}.button-primary{font-size:12px;margin-top:24px}.collection{padding-bottom:65px}.section-heading h2{font-size:26px}.filter-bar{margin-top:18px;margin-bottom:12px;gap:14px}.filter-group{display:block}.filter-label{display:block;padding:0;margin-bottom:8px}.filters{gap:7px}.filter{font-size:11px;padding:4px 10px;min-height:27px}.cards-grid{grid-template-columns:minmax(0,1fr);gap:24px}.card-face{padding:20px 20px 80px}.card-meta{font-size:10px}.card-body h3{font-size:22px}.card-short,.card-details p{font-size:13px}.skills{padding-block:35px 45px}.skill-list{margin-top:25px}.skill-list>div{grid-template-columns:1fr;gap:8px;padding:18px 0}.skill-list dd{font-size:12px}.contact{padding-block:35px 45px}.contact h2{font-size:27px}.contact>a{font-size:15px}.footer-line{font-size:10px;gap:10px}.easter-egg{margin-top:20px}}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .card{transform:none}.card-face{transform:none}.card-front{visibility:visible}.card-back{visibility:hidden}
  .card.is-flipped .card-front{visibility:hidden}.card.is-flipped .card-back{visibility:visible}
  .card-face::after{display:none}
}


.collection-tools{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin:0 0 24px}
.memory-chip{border:1px solid #a183c329;border-radius:999px;background:transparent;color:#aa9cba;padding:6px 12px;min-height:32px;font-size:11px;transition:border-color .2s,background .2s,transform .2s}
.memory-chip span{margin-left:8px;color:#71637f;font-size:9px}.memory-chip:hover{border-color:#bd9aff66;background:#bd9aff08}.memory-chip:active{transform:scale(.95)}
.play-drawer{position:relative;z-index:8}.play-drawer>summary{display:grid;place-items:center;list-style:none;width:34px;height:34px;color:#9781b0;border:1px solid #a183c329;border-radius:50%;cursor:pointer;transition:color .2s,border-color .2s,background .2s}
.play-drawer>summary::-webkit-details-marker{display:none}.play-drawer>summary:hover,.play-drawer[open]>summary{color:#dfc6ff;border-color:#a585cf80;background:#24172f}
.play-panel{position:absolute;right:0;top:45px;width:min(330px,calc(100vw - 44px));max-height:min(70vh,570px);overflow:auto;overscroll-behavior:contain;padding:20px;border:1px solid #a183c340;border-radius:16px;background:#100c17;box-shadow:0 18px 65px #000a;color:#b0a2bf;animation:panel-in .2s ease-out}
.play-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#dfd1ee}.play-heading strong{font-weight:550}.play-heading>span{font:11px monospace;color:#b799dc}
.play-panel p{font-size:11px;line-height:1.7;margin:12px 0 18px;color:#978aa7}.play-panel p.play-note{color:#776985;margin-bottom:7px}
.collection-stars{display:grid;grid-template-columns:repeat(9,1fr);gap:7px;margin-top:18px;text-align:center}.collection-star{font-size:18px;color:#483951;transition:color .3s,text-shadow .3s,transform .3s}.collection-star.is-collected{color:#c7a4ee;text-shadow:0 0 12px #c7a4ee30}
.play-counters{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:8px;padding:14px 0;margin:0}.play-counters dt,.play-records dt{font-size:10px;color:#9b8ba9}.play-counters dd{font-size:17px;color:#e6d9f5;margin:6px 0 0;font-variant-numeric:tabular-nums;white-space:nowrap}.play-counters div:last-child dd{font-size:14px;margin-top:8px}
.play-records{display:grid;gap:9px;margin:15px 0}.play-records>div{display:flex;justify-content:space-between;align-items:center}.play-records dd{margin:0;font-size:11px;color:#c6b1dd;font-variant-numeric:tabular-nums}
#clear-records{border:0;background:none;color:#897399;font-size:10px;padding:10px 0}#clear-records:hover{color:#d2bae9}
.play-drawer.has-perfect>summary{animation:star-pulse .75s ease-out}.play-drawer.is-complete>summary{color:#e5c7ff;border-color:#c7a4ee88}.play-drawer.is-complete .collection-star{animation:star-pulse 1s ease-out}.play-drawer.is-complete .collection-star:nth-child(3n){animation-delay:.12s}
@keyframes star-pulse{40%{color:#fff1ff;text-shadow:0 0 16px #c7a4eebb;transform:scale(1.15)}}
@keyframes panel-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
#play-effects{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:40}
.play-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:45;width:max-content;max-width:calc(100% - 32px);padding:13px 18px;border:1px solid #a788cf5c;border-radius:12px;background:#181120f5;box-shadow:0 10px 40px #0006;color:#e0cfef;font-size:12px;line-height:1.6;text-align:center;animation:toast-in .2s ease-out}
.play-toast a{display:block;margin-top:7px;color:#c2a0e9}.play-toast a:hover{color:white}.play-toast.is-reward{border-color:#d7acff88}
@keyframes toast-in{from{opacity:0;bottom:16px}to{opacity:1;bottom:24px}}
.play-heading>span{margin-left:auto}
@media(max-width:560px){.play-panel{position:fixed;top:auto;bottom:18px;right:22px;left:22px;width:auto;max-height:min(70dvh,570px)}}
/* V7: the wrapper, rotor and faces share one explicit width, including narrow desktop columns. */
.card-wrap{overflow:visible}.card-face>*{max-width:100%}
.brand{display:flex;align-items:center;letter-spacing:normal}.brand img{width:57px;height:42px;object-fit:contain}.footer-brand img{display:block;width:42px;height:30px;object-fit:contain}
.play-drawer>summary{width:28px;height:28px;border-color:transparent;background:transparent;color:#756381;font-size:15px}.play-drawer>summary:hover,.play-drawer[open]>summary{border-color:#a585cf33;background:#bd9aff08;color:#c7a3e4}
.play-panel{width:min(365px,calc(100vw - 44px));padding:22px;max-height:min(76vh,660px)}
.play-heading{gap:8px}.play-heading strong{font-size:12px}.play-heading>span{font-size:11px}
.results-table{border-collapse:separate;border-spacing:0;width:100%;margin:24px 0 10px;font-variant-numeric:tabular-nums;background:#bd9aff05;border:1px solid #bc93e51a;border-radius:10px;overflow:hidden}
.results-table caption{text-align:left;font-size:12px;font-weight:550;color:#deceeb;margin-bottom:12px}
.results-table th,.results-table td{padding:10px 9px;font-size:10px;text-align:right;font-weight:400}.results-table th:first-child{text-align:left}.results-table thead{color:#887498;background:#b28fd20a}.results-table tbody th{color:#b9a3cb}.results-table tbody td{color:#ded0ef}.results-table tbody td:last-child{color:#caa4ee}.results-table tbody tr+tr td,.results-table tbody tr+tr th{border-top:1px solid #b18bda0c}
.play-rules strong{color:#d3bedf;font-weight:550}
.speed-hud{--hud-accent:#bd9ae5;--hud-muted:color-mix(in srgb,var(--hud-accent) 68%,#8e8e8e);--hud-unit:var(--hud-muted);--hud-value:color-mix(in srgb,var(--hud-accent) 60%,#f1f1f1);position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:42;width:min(670px,calc(100% - 32px));padding:12px 20px 11px;border:1px solid color-mix(in srgb,var(--hud-accent) 32%,transparent);border-radius:15px;background:color-mix(in srgb,var(--hud-accent) 7%,#0d0d10f5);box-shadow:0 12px 50px #0008;animation:hud-in .25s ease-out;font-variant-numeric:tabular-nums}
.hud-top{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.08em;color:var(--hud-accent)}#close-hud{border:0;background:none;color:var(--hud-muted);padding:0 0 0 10px;font-size:17px;height:20px;width:26px}
.hud-metrics{display:grid;grid-template-columns:1.4fr repeat(3,1fr) 1.35fr;gap:16px;align-items:end;margin:8px 0 12px}.hud-metrics>div{display:flex;flex-direction:column;gap:6px}.hud-metrics>div>span{color:var(--hud-muted);font-size:9px;white-space:nowrap}.hud-metrics strong{font-weight:550;font-size:19px;line-height:1;color:var(--hud-value);white-space:nowrap}.hud-metrics small{font-weight:400;font-size:8px;color:var(--hud-unit);margin-left:5px}.hud-speed strong{color:var(--hud-accent);font-size:24px}
.hud-track{height:2px;background:color-mix(in srgb,var(--hud-accent) 12%,transparent);overflow:hidden;border-radius:3px}.hud-track>span{--charge:0;display:block;height:100%;background:var(--hud-accent);transform-origin:left;transform:scaleX(var(--charge));transition:transform .12s linear}
.speed-hud p{font-size:9px;color:var(--hud-muted);margin:8px 0 0;text-align:center}.speed-hud.is-gold{--hud-accent:#edc66d;--hud-muted:#ad9262;--hud-unit:#bda468;--hud-value:#f4d99b}
body.has-speed-hud .play-toast{bottom:170px;animation:none}
@keyframes hud-in{from{opacity:0;bottom:10px}to{opacity:1;bottom:18px}}
.secret-card{--edge:#e9c672;--glow:#b8863033;max-width:300px;margin:46px auto 0;scroll-margin-top:40px;text-align:center}
.secret-card .card{min-height:450px;aspect-ratio:2/3}
.gold-face{--edge:#d2a94b;--glow:#d2a94b22;padding:23px 22px!important;color:#3c2911;border:1px solid #f6dfa0;background:linear-gradient(135deg,#9e6424 0%,#e4bc67 12%,#f8e5a0 32%,#d1a34b 58%,#f3d98b 80%,#ae752c 100%);box-shadow:inset 0 0 0 3px #85561c44,inset 0 0 32px #fcebb57a,0 8px 30px #b780231a;align-items:center;justify-content:center}
.gold-face::before{inset:8px;border:1px solid #74501f80;border-radius:7px;box-shadow:inset 0 0 0 3px #f7e7af45;z-index:2}
.gold-face::after{background:linear-gradient(115deg,transparent 10%,#fff4bf08 25%,#fff9daaa 40%,#a56a1333 48%,transparent 60%,#fff9da55 75%,transparent 90%);mix-blend-mode:soft-light;z-index:3}
.gold-shine{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at var(--foil-x,50%) var(--my,40%),#fff9dbbb,transparent 65%);mix-blend-mode:soft-light;z-index:3}
.gold-face>*:not(.gold-shine){position:relative;z-index:1}.gold-meta{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:.12em;text-transform:uppercase;color:#654719;margin-bottom:auto}
.gold-medallion{display:grid;place-items:center;width:105px;height:105px;border:1px solid #80602c70;border-radius:50%;margin:24px 0 18px;outline:1px solid #fff1b875;outline-offset:5px;box-shadow:inset 0 0 24px #fff4c17a,0 2px 3px #71420f22;color:#67481a}
.gold-medallion span{font-size:65px;text-shadow:0 1px #fff4cb,0 -1px #78511c;line-height:1}.secret-label{font-size:8px;letter-spacing:.13em;text-transform:uppercase;color:#684b21}.secret-card h3{font:italic 32px/1.15 Georgia,"Times New Roman",serif;letter-spacing:-.06em;margin:18px 0 12px;color:#3b270f;text-shadow:0 1px #fff4c970}.secret-card p{font-size:11px;line-height:1.85;color:#654a22;margin:0}
.gold-bottom{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%;margin-top:auto;padding-top:24px;font-size:9px;color:#6c4c20}.gold-bottom>span:nth-child(2){font-size:18px}.gold-bottom>span:last-child{font-size:7px;letter-spacing:.14em;text-transform:uppercase}
.gold-back{--edge:#d2a94b;--glow:#c2953c22}
@keyframes gold-foil{0%,100%{background-position:100% 50%}50%{background-position:0% 50%}}
@media(max-width:560px){.play-panel{position:fixed;top:auto;bottom:18px;right:18px;left:18px;width:auto;max-height:min(76dvh,650px)}.hud-metrics{grid-template-columns:1.15fr .85fr .85fr;gap:12px 16px}.hud-metrics>div:nth-child(4){grid-column:2;grid-row:2}.hud-metrics>div:nth-child(5){grid-column:1;grid-row:2}.hud-metrics>div:nth-child(5) strong{font-size:15px}.hud-metrics>div:nth-child(4) strong{font-size:15px}.speed-hud{padding:9px 14px 10px}.speed-hud p{font-size:8px;line-height:1.5;max-width:270px;margin:7px auto 0}.hud-metrics strong{font-size:17px}.hud-speed strong{font-size:23px}.has-speed-hud .play-toast{bottom:230px}.hero-portrait{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){.hero-portrait::before{opacity:.25}.gold-shine{display:none}.gold-face::after{opacity:.2!important}}
.secret-card:focus-visible{outline-color:#ecc36e99}.play-drawer.is-complete>summary{color:#c9a660;border-color:#c9a66044}.play-toast.is-reward{border-color:#c9a66077;background:#21180df5;color:#f2d89c}.play-toast.is-reward a{color:#dfb966}
@media(max-width:560px){body.has-speed-hud .play-panel{bottom:220px;max-height:calc(100dvh - 250px)}.footer-line{flex-wrap:wrap}.footer-brand{margin-right:4px}}

/* V9: continuous 6 px rim, rounded along the same 14 px outline as the faces. */
.card-front{transform:translateZ(3px)}
.card-back{transform:rotateY(180deg) translateZ(3px)}
.card-depth{position:absolute;inset:0;transform-style:preserve-3d;pointer-events:none}
.card-depth i{--rim-dark:color-mix(in srgb,var(--edge),#09080d 82%);--rim-light:color-mix(in srgb,var(--edge),#19121f 42%);position:absolute;display:block;border:0;background:linear-gradient(180deg,var(--rim-dark),var(--rim-light) 45%,var(--rim-dark))}
.card-depth .edge-left,.card-depth .edge-right{width:6px;height:calc(100% - 28px);top:14px;transform:rotateY(90deg);background:linear-gradient(90deg,var(--rim-dark),var(--rim-light) 45%,var(--rim-dark))}
.edge-left{left:-3px}.edge-right{right:-3px}
.edge-top,.edge-bottom{height:6px;width:calc(100% - 28px);left:14px;transform:rotateX(90deg)}
.edge-top{top:-3px}.edge-bottom{bottom:-3px}
.card-depth .edge-shell{inset:0;border:1.5px solid color-mix(in srgb,var(--rim-dark),var(--rim-light) var(--rim-lightness));border-radius:var(--card-rx,14px) / var(--card-ry,14px);background:none;transform:translateZ(var(--rim-z))}
.card-wrap{--spin-color:var(--edge)}
.card-wrap::after{content:"";position:absolute;inset:-28px -18px;z-index:-1;border-radius:50%;pointer-events:none;background:radial-gradient(ellipse at center,var(--spin-color) 5%,color-mix(in srgb,var(--spin-color),transparent 55%) 48%,transparent 72%);filter:blur(20px);opacity:var(--spin-glow,0)}
.card-face{box-shadow:0 0 28px color-mix(in srgb,var(--spin-color) calc(var(--spin-glow,0) * 75%),transparent)}
.gold-face{box-shadow:inset 0 0 0 3px #85561c44,inset 0 0 32px #fcebb57a,0 8px 30px #b780231a,0 0 40px color-mix(in srgb,var(--spin-color) calc(var(--spin-glow,0) * 80%),transparent)}
.card-wrap:has(.spinning):focus-visible{outline:none}
.hero-portrait{--edge:#bb80ff}.secret-card{max-width:286px}
.secret-card .card-depth i{--rim-dark:#916422;--rim-light:#efd18b}
.filter{padding:2px 10px;min-height:22px;line-height:16px;font-size:11px}
.filter-label{padding-top:3px}.memory-chip{padding:3px 10px;min-height:24px;font-size:10px}
#contact{scroll-margin-top:35px}#contact:focus{outline:none}
.speed-hud{width:min(480px,calc(100% - 32px));padding:6px 14px;border-radius:10px}
.hud-metrics{grid-template-columns:1.35fr .8fr .8fr 1.3fr;gap:14px;margin:0;padding-right:22px;align-items:center}
.hud-metrics>div{gap:3px}.hud-metrics>div>span{font-size:8px;line-height:9px}
.hud-metrics strong,.hud-speed strong{font-size:16px;line-height:17px}.hud-metrics small{font-size:7px;margin-left:3px}
.hud-metrics>div:nth-child(n){grid-column:auto;grid-row:auto}.hud-metrics>div:nth-child(n) strong{font-size:16px}
#close-hud{position:absolute;right:7px;top:9px;width:24px;height:24px;padding:0}
.hud-track{position:absolute;height:1px;bottom:0;left:12px;right:12px}
.speed-hud[data-theme="rare"]{--hud-accent:#9fbcdf}.speed-hud[data-theme="special"]{--hud-accent:#a1c9bc}.speed-hud[data-theme="legendary"]{--hud-accent:#d3b58b}
body.has-speed-hud .play-toast{bottom:76px}
@media(max-width:560px){.hud-metrics{gap:8px;padding-right:18px}.hud-metrics small{font-size:6px}.speed-hud{padding-inline:10px}body.has-speed-hud .play-panel{bottom:76px;max-height:calc(100dvh - 106px)}}
@media(prefers-reduced-motion:reduce){.card-front,.card-back{transform:none}.card-depth,.card-wrap::after{display:none}}

.hero h1.hero-wordmark{line-height:1;margin-bottom:28px}
.hero-wordmark img{display:block;width:min(100%,470px);height:auto}
.hero-footnote{margin:22px 0 0;font-size:11px;line-height:1.9;color:#68636f}
.hero-footnote span{color:#77717d}
.back-to-top{position:fixed;right:24px;bottom:24px;z-index:46;display:grid;place-items:center;width:40px;height:40px;border:1px solid #b191d433;border-radius:50%;background:#100d16ef;color:#b9a5cf;font-size:22px;font-weight:300;opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .25s,transform .25s,border-color .2s,background .2s}
.back-to-top.is-visible{opacity:1;transform:translateY(0);pointer-events:auto}
.back-to-top:hover{background:#20162c;border-color:#b191d477;color:#eee1ff}
body.has-speed-hud .back-to-top{bottom:82px}
@media(max-width:560px){.hero-wordmark img{max-width:330px}.hero-footnote{font-size:10px}.back-to-top{right:16px;bottom:18px;width:36px;height:36px}.collection-hint{display:block;font-size:10px;margin:10px 0 0}.collection>.section-heading{display:block}.skill-context{font-size:10px}}

/* V10: a shared geometric voice and an emissive rim attached to the rotating card. */
.nav,.hero-description,.section-heading h2,.contact h2{font-family:var(--brand-font);font-stretch:90%;font-weight:600;letter-spacing:-.025em}
.nav{font-size:13px;letter-spacing:0;font-weight:500}
.hero-description{font-size:clamp(15px,1.2vw,18px);font-weight:500;max-width:540px;text-wrap:balance}
.hero-about,.hero-personal{max-width:540px;text-align:justify;text-align-last:left;hyphens:auto;hyphenate-limit-chars:7 3 3;text-wrap:pretty}
.hero-footnote{white-space:nowrap;letter-spacing:-.015em}
.card-depth i{--rim-dark:color-mix(in srgb,var(--edge),#09080d calc(82% - var(--rim-charge,0)*60%));--rim-light:color-mix(in srgb,var(--spin-color),#f6edff calc(var(--rim-charge,0)*35%));box-shadow:0 0 calc(2px + var(--rim-charge,0)*5px) color-mix(in srgb,var(--spin-color) calc(var(--rim-charge,0)*60%),transparent)}
.card-face:not(.gold-face){border-color:color-mix(in srgb,var(--spin-color) calc(30% + var(--rim-charge,0)*70%),transparent);box-shadow:inset 0 0 calc(var(--rim-charge,0)*5px) color-mix(in srgb,var(--spin-color) calc(var(--rim-charge,0)*65%),transparent),0 0 calc(var(--rim-charge,0)*7px) color-mix(in srgb,var(--spin-color) calc(var(--rim-charge,0)*85%),transparent),0 0 30px color-mix(in srgb,var(--spin-color) calc(var(--spin-glow,0)*75%),transparent)}
.secret-card .card-depth i{--rim-dark:color-mix(in srgb,#916422,#efca6f calc(var(--rim-charge,0)*60%));--rim-light:color-mix(in srgb,#efd18b,#fff8d6 calc(var(--rim-charge,0)*65%))}
.gold-face{box-shadow:inset 0 0 0 3px #85561c44,inset 0 0 32px #fcebb57a,0 0 calc(var(--rim-charge,0)*9px) color-mix(in srgb,#ffeba9 calc(var(--rim-charge,0)*90%),transparent),0 0 40px color-mix(in srgb,var(--spin-color) calc(var(--spin-glow,0)*85%),transparent)}
@media(max-width:560px){.nav{font-size:11px;gap:17px}.hero-description{font-size:15px}.hero-about,.hero-personal{font-size:13px;line-height:1.85;text-wrap:wrap}.section-heading h2{font-size:clamp(23px,6.2vw,27px);line-height:1.3}.hero-footnote{font-size:9px;letter-spacing:-.025em}}

/* V11: original outlined lettering, derived directly from the FM wordmark. */
[data-brand]{letter-spacing:normal;font-family:inherit;font-stretch:normal;font-weight:400}
.brand-lettering{display:flex;align-items:center;flex-wrap:wrap;gap:0 .36em;line-height:1.26}
.brand-word{display:block;flex:none;height:1.26em;max-width:100%;overflow:visible}
.nav .brand-lettering{margin-left:0;color:inherit;flex-wrap:nowrap}
.section-heading .brand-word:last-child,.contact h2 .brand-word:last-child{color:#b797d8}
.hero-description .brand-lettering{max-width:540px;gap:0 .4em}
.hero-description .brand-word:last-child{color:#c3a9db}
.section-heading h2{font-size:32px}.contact h2{font-size:34px}

/* No independent highlights on corner facets: the continuous face carries the glow. */
.card-depth i{box-shadow:none;background:linear-gradient(180deg,var(--rim-dark),color-mix(in srgb,var(--rim-light),var(--rim-dark) 35%) 48%,var(--rim-dark))}
.card-depth .edge-left,.card-depth .edge-right{background:linear-gradient(90deg,var(--rim-dark),color-mix(in srgb,var(--rim-light),var(--rim-dark) 35%) 48%,var(--rim-dark))}
.card-face::before{border-radius:9px}

.play-panel{position:fixed;inset:auto 24px 24px auto;width:min(350px,calc(100vw - 44px));max-height:calc(100dvh - 48px);padding:20px;scrollbar-width:thin;scrollbar-color:#594566 transparent}
.play-panel .collection-stars{margin-bottom:18px}
.results-table{margin-top:20px;margin-bottom:10px}
.results-table caption{margin-bottom:10px;font-size:13px}
.play-panel #play-record-note{font-size:10px;line-height:1.6;margin:10px 0 20px;color:#9689a3}
.play-rules{margin:0}.play-rules h3{font-size:13px;font-weight:550;color:#dfd1ee;margin:0 0 12px}
.play-rules ol{padding-left:18px;margin:0}.play-rules li{line-height:1.6;margin-bottom:10px;font-size:11px;color:#b1a2bf}
.play-panel .keyboard-note{font-size:10px;line-height:1.65;margin:12px 0;color:#81758e}
@media(max-width:760px){.section-heading h2,.contact h2{font-size:27px}}
body.has-speed-hud .play-panel{bottom:76px;max-height:calc(100dvh - 106px)}
@media(max-width:560px){.section-heading h2,.contact h2{font-size:23px}.hero-description{font-size:14px}.play-panel{inset:auto 18px 18px;width:auto;padding:18px;max-height:calc(100dvh - 36px)}.nav{font-size:11px}}

/* V12: angle changes stay on the rotor instead of invalidating every descendant. */
@property --angle{syntax:"<angle>";inherits:false;initial-value:0deg}
@property --pitch{syntax:"<angle>";inherits:false;initial-value:0deg}
@property --twist{syntax:"<angle>";inherits:false;initial-value:0deg}
.card:not(.has-depth){transform:none;transform-style:flat}
.card:not(.has-depth)>.card-face{transform:none}
.card:not(.has-depth)>.card-back{visibility:hidden}
.card.is-flipped:not(.has-depth)>.card-front{visibility:hidden}
.card.is-flipped:not(.has-depth)>.card-back{visibility:visible}
.card-wrap.is-offscreen::before,.card-wrap.is-offscreen .gold-face::after{animation-play-state:paused}

/* V13: slow, clipped light sweeps; no change to the original letter outlines. */
.brand-logo{display:block;width:57px;height:42px;overflow:visible;animation:brand-float 7s ease-in-out infinite;animation-play-state:paused}
.footer-brand .brand-logo{width:42px;height:30px;animation-delay:-3.5s}
.hero-wordmark .about-logo{display:block;width:min(100%,470px);height:auto}
.brand-sheen{pointer-events:none;transform-box:fill-box;transform:translateX(-110%);opacity:0;animation:brand-sweep 8s ease-in-out infinite;animation-delay:var(--sheen-delay,0s);animation-play-state:paused}
.nav .brand-sheen{opacity:0;animation-duration:9s}
.brand-logo.is-motion-visible,.is-motion-visible .brand-sheen{animation-play-state:running}
.page-hidden .brand-logo,.page-hidden .brand-sheen{animation-play-state:paused}
@keyframes brand-float{0%,100%{transform:translateY(0) rotate(-.6deg)}50%{transform:translateY(-3px) rotate(.6deg)}}
@keyframes brand-sweep{0%,70%{transform:translateX(-110%);opacity:0}73%{opacity:1}89%{transform:translateX(110%);opacity:1}92%,100%{transform:translateX(110%);opacity:0}}
@media(max-width:560px){.hero-wordmark .about-logo{max-width:330px}}
@media(prefers-reduced-motion:reduce){.brand-logo,.brand-sheen{animation:none!important;transform:none}.brand-sheen{display:none}}

/* V15: full-bleed shared artwork supplies the border; the secret uses the same geometry in gold. */
.card-face.card-back{border:0;padding:0}
.card-back>.card-back-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:fill;border-radius:inherit;pointer-events:none;user-select:none;-webkit-user-drag:none;z-index:1}
.card-back.gold-back{padding:0!important;background:#000}
.gold-back>.card-back-art{filter:sepia(1) saturate(1.65)}
.gold-back::before{content:none}

/* V16: artwork and physical rim share a silhouette; decorative motion runs only on the visible face. */
.card-wrap,.card-face{border-radius:var(--card-rx,14px) / var(--card-ry,14px)}
.card-front:not(.gold-face)::before{border-radius:calc(var(--card-rx,14px) - 5px) / calc(var(--card-ry,14px) - 5px)}
.card-depth .edge-left,.card-depth .edge-right{height:calc(100% - 2*var(--card-ry,14px));top:var(--card-ry,14px)}
.card-depth .edge-top,.card-depth .edge-bottom{width:calc(100% - 2*var(--card-rx,14px));left:var(--card-rx,14px)}
.card-depth i{--rim-dark:color-mix(in srgb,#796487,var(--spin-color) calc(var(--rim-charge,0)*65%));--rim-light:color-mix(in srgb,#927aa3,#f5e6ff calc(var(--rim-charge,0)*65%))}
.secret-card .card-depth i{--rim-dark:color-mix(in srgb,#b08b4b,#efca6f calc(var(--rim-charge,0)*60%));--rim-light:color-mix(in srgb,#d4b575,#fff8d6 calc(var(--rim-charge,0)*65%))}
.card-back>.card-back-art{opacity:.86}
.card-face.card-back::before{content:"";inset:0;border:1px solid #776087;border-radius:inherit;box-shadow:none;z-index:2}
.card-face.gold-back::before{border-color:#b59550}

#cards-grid .card{aspect-ratio:auto;min-height:480px}
#cards-grid .card-wrap{max-width:320px}
#cards-grid .card-front{padding:20px 20px 58px;min-height:min-content}
.art-stage{height:auto;min-height:216px;flex:1 0 216px;margin:12px 0 20px;z-index:1}
.art-stage img{height:208px;max-width:100%;object-fit:contain}
.art-stage > svg{width:154px;height:154px}
.art-stage:has(svg)::before{width:182px;height:182px}
.card-body{margin-top:auto}
.card-rarity{margin-top:13px;padding-top:0;font-size:9px;line-height:14px}
.card-actions{bottom:4px;border-top:0;padding-top:0}
.details-toggle{color:#9e90ac;font-weight:400}
.details-toggle:hover{color:#d2c1e3}
.card-details{border:0;padding-top:12px;margin-top:8px}
.card-status{display:none}

.art-stage>img,.art-stage>svg{animation-duration:6s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}
.card-wrap:nth-child(3n+2) .art-stage>img,.card-wrap:nth-child(3n+2) .art-stage>svg{animation-delay:-2s}
.card-wrap:nth-child(3n) .art-stage>img,.card-wrap:nth-child(3n) .art-stage>svg{animation-delay:-4s}
.card .card-face::after{inset:-25% -45%;border-radius:0;opacity:0;transition:none;pointer-events:none;animation-duration:10s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}
.card .card-front:not(.gold-face)::after{background:radial-gradient(ellipse at 50% 50%,color-mix(in srgb,var(--edge),transparent 82%),transparent 65%);z-index:0}
.card .card-back::after{--sheen-color:#d8baff;background:linear-gradient(110deg,transparent 35%,color-mix(in srgb,var(--sheen-color),transparent 60%) 49%,transparent 63%);z-index:2;animation-duration:9s}
.card .gold-face::after{--sheen-color:#ffdfa1;background:linear-gradient(110deg,transparent 35%,color-mix(in srgb,var(--sheen-color),transparent 40%) 49%,transparent 63%);animation-duration:9s}
.hero-portrait::before{animation-play-state:paused}
html:not(.page-hidden) .hero-portrait.is-motion-visible::before{animation-play-state:running}
html:not(.page-hidden) .is-motion-visible .card:not(.spinning):not(.dragging)>.card-front[aria-hidden="false"] .art-stage>img,
html:not(.page-hidden) .is-motion-visible .card:not(.spinning):not(.dragging)>.card-front[aria-hidden="false"] .art-stage>svg{animation-name:card-icon-float}
html:not(.page-hidden) .is-motion-visible .card:not(.spinning):not(.dragging)>.card-front[aria-hidden="false"]::after{animation-name:card-face-drift}
html:not(.page-hidden) .is-motion-visible .card:not(.spinning):not(.dragging)>.card-back[aria-hidden="false"]::after,
html:not(.page-hidden) .is-motion-visible .card:not(.spinning):not(.dragging)>.gold-face[aria-hidden="false"]::after{animation-name:card-back-sheen}
@keyframes card-icon-float{0%,100%{translate:0 3px}50%{translate:0 -5px}}
@keyframes card-face-drift{0%,100%{transform:translate3d(-14%,5%,0);opacity:.15}50%{transform:translate3d(14%,-5%,0);opacity:.4}}
@keyframes card-back-sheen{0%,28%{transform:translate3d(-60%,0,0);opacity:0}44%{opacity:.24}67%{transform:translate3d(60%,0,0);opacity:0}100%{transform:translate3d(60%,0,0);opacity:0}}
@media(max-width:560px){.art-stage{min-height:220px;flex-basis:220px}.art-stage img{height:214px}.art-stage > svg{width:160px;height:160px}}
@media(prefers-reduced-motion:reduce){.art-stage>img,.art-stage>svg{translate:none}.card .card-face::after{display:none}}

/* V17: rarity belongs to the origin; disclosure stays quiet. */
.card-meta{align-items:flex-start}
.card-origin{display:flex;flex-direction:column;gap:8px}
.card-origin .card-rarity{margin:0;padding:0;font-size:8px;line-height:12px;letter-spacing:.08em}
.details-toggle{color:#82758e}
.details-toggle:hover{color:#bdabc9}
.card-back>.back-decoration{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:4;pointer-events:none;overflow:hidden;border-radius:inherit}
.back-trace{fill:none;stroke:#d4b8ed;stroke-width:6;stroke-linecap:round;opacity:0;stroke-dasharray:34 1000}
.back-decoration:not([hidden]) .back-trace-frame{animation:back-frame-trace 12s linear infinite}
.back-decoration:not([hidden]) .back-trace-ring{stroke-width:7;animation:back-ring-trace 12s linear var(--trace-delay) infinite}
.back-spark{fill:#f7edff;opacity:0;transform-box:fill-box;transform-origin:center}
.gold-back .back-trace{stroke:#ffe4a0}.gold-back .back-spark{fill:#fff6d6}
@keyframes back-frame-trace{0%,15%{stroke-dashoffset:0;opacity:0}19%{opacity:.8}66%{stroke-dashoffset:-1034;opacity:.8}70%,100%{stroke-dashoffset:-1034;opacity:0}}
@keyframes back-ring-trace{0%{stroke-dashoffset:0;opacity:0}3%{opacity:.7}20%{stroke-dashoffset:-1034;opacity:.7}23%,100%{stroke-dashoffset:-1034;opacity:0}}
@media(prefers-reduced-motion:reduce){.card-back>.back-decoration{display:none}}

/* V18: soft 2 px separators. Only the narrow, visible beam is animated. */
.header,.skills,.contact,.footer{position:relative}
.header{border-bottom:2px solid transparent}
.skills,.contact,.footer{border-top:2px solid transparent}
.section-divider{position:absolute;left:0;right:0;top:-7px;height:12px;overflow:hidden;pointer-events:none}
.section-divider-bottom{top:auto;bottom:-7px}
.section-divider::before{content:"";position:absolute;left:0;right:0;top:5px;height:2px;background:#9775bd3b;box-shadow:0 0 6px #9971c02b}
.section-divider>i{position:absolute;left:0;top:5px;width:20%;height:2px;opacity:0;background:linear-gradient(90deg,transparent,#d1b4f2c4,transparent);box-shadow:0 0 7px #ba8fe343;transform:translateX(-100%)}
html:not(.page-hidden) .section-divider.is-motion-visible>i{animation:section-divider-sweep 6s ease-in-out infinite}
@keyframes section-divider-sweep{0%{transform:translateX(-100%);opacity:0}5%{opacity:.8}38%{transform:translateX(500%);opacity:.8}42%,100%{transform:translateX(500%);opacity:0}}
@media(prefers-reduced-motion:reduce){.section-divider>i{animation:none!important}}

/* V19: closed rounded walls, restrained artwork, four distinct rarity marks. */
.nav-contact{color:inherit}
.section-divider{left:2px;right:2px;border-radius:999px}
.section-divider::before,.section-divider>i{border-radius:999px}
.card-depth .edge-curve{height:6px;transform:translate(-50%,-50%) rotateZ(var(--rim-tangent)) rotateX(90deg);transform-origin:center}
.card-depth .edge-left,.card-depth .edge-right{height:calc(100% - 2*var(--card-ry) + .6px);top:calc(var(--card-ry) - .3px)}
.card-depth .edge-top,.card-depth .edge-bottom{width:calc(100% - 2*var(--card-rx) + .6px);left:calc(var(--card-rx) - .3px)}
.art-stage:has(svg)::before{content:none}
.art-stage>.illustration{width:240px;height:220px;max-width:100%;transform:none;stroke-width:2.3;color:var(--edge);opacity:.9}
.art-stage>.illustration svg{transform:none;stroke:inherit;fill:none;opacity:1}
.card-rarity::before{content:none}
.card-rarity{display:flex;align-items:center;gap:7px}
.rarity-mark{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;flex:none}
[data-id="support-lines"] .card-body h3{font-size:18px;white-space:nowrap;letter-spacing:-.035em}

/* Local SVG motion is separate from the outer gentle float. Starting an effect
   requires a visible front, a visible page, and no card manipulation. */
.art-motion{animation-duration:var(--duration,5s);animation-timing-function:var(--timing,ease-in-out);animation-iteration-count:infinite;animation-delay:var(--delay,0s);animation-name:none;animation-play-state:paused}
html:not(.page-hidden) .is-motion-visible .card:not(.spinning):not(.dragging)>.card-front[aria-hidden="false"] .art-motion{animation-name:var(--motion);animation-play-state:running}
.orbit-rotor{--motion:art-orbit;--duration:36s;--timing:linear;transform-origin:120px 110px}
.orbit-counter{--motion:art-counter-orbit;--duration:36s;--timing:linear;transform-origin:0 0}
.axis-spin{--motion:art-orbit;--duration:40s;--timing:linear;transform-origin:120px 110px}
.server-lamp{--motion:server-blink;--duration:4.7s;opacity:.6}
.network-node{--motion:network-blink;--duration:5.8s}
.heartbeat{--motion:heart-beat;--duration:4.5s;transform-origin:120px 110px}
.pulse-run{--motion:pulse-travel;--duration:4.5s;stroke-dasharray:7 100;opacity:0}
.chip-signal{--motion:chip-travel;--duration:4.8s;stroke-dasharray:17 100;stroke-width:3;opacity:0}
.chip-node{--motion:chip-fade;--duration:4.8s;opacity:.25}
.belt-treads{--motion:belt-travel;--duration:1s;--timing:linear}
.conveyor-case{--motion:case-travel;--duration:9s;--timing:linear;opacity:1}
.case-0{transform:translate(49px,132px)}.case-1{transform:translate(113px,132px)}.case-2{transform:translate(177px,132px)}
@keyframes art-orbit{to{transform:rotate(360deg)}}
@keyframes art-counter-orbit{to{transform:rotate(-360deg)}}
@keyframes server-blink{0%,24%,39%,100%{opacity:.35}30%,34%{opacity:1}}
@keyframes network-blink{0%,60%,100%{fill:var(--art-fill,#15121d);opacity:.7}24%,35%{fill:var(--edge);opacity:1}}
@keyframes heart-beat{0%,12%,24%,100%{transform:scale(1)}6%{transform:scale(1.055)}18%{transform:scale(1.035)}}
@keyframes pulse-travel{0%{stroke-dashoffset:7;opacity:0}4%{opacity:1}36%{stroke-dashoffset:-100;opacity:1}40%,100%{stroke-dashoffset:-100;opacity:0}}
@keyframes chip-travel{0%,7%{stroke-dashoffset:17;opacity:0}12%{opacity:1}43%{stroke-dashoffset:-100;opacity:1}45%,100%{stroke-dashoffset:-100;opacity:0}}
@keyframes chip-fade{0%,39%,90%,100%{opacity:.2}46%{opacity:1}75%{opacity:.3}}
@keyframes belt-travel{to{transform:translateX(18px)}}
@keyframes case-travel{0%{transform:translate(42px,-28px) rotate(-10deg);opacity:0}5%{opacity:1}19%{transform:translate(42px,132px) rotate(0)}23%{transform:translate(49px,129px)}27%{transform:translate(56px,132px)}75%{transform:translate(199px,132px) rotate(0)}84%{transform:translate(218px,155px) rotate(24deg);opacity:1}98%,100%{transform:translate(236px,252px) rotate(50deg);opacity:0}}

.secret-card .gold-meta{align-self:stretch;justify-content:flex-start;margin:0;flex:none}
.secret-card .gold-art{display:grid;place-items:center;position:relative;flex:1;min-height:240px;width:100%;margin:8px 0 10px}
.secret-card .gold-medallion{width:138px;height:138px;margin:0;--motion:art-orbit;--duration:36s;--timing:linear}
.secret-card .gold-medallion span{font-size:88px}
.secret-card .gold-copy{width:100%;margin-top:auto;text-align:left}
.secret-card h3{font:normal 24px/1.2 Arial,sans-serif;letter-spacing:0;margin:0 0 12px;text-shadow:none}
.secret-card h3 .brand-lettering{display:block;width:100%}
.secret-card h3 .brand-word{display:block;width:100%!important;max-height:40px}
.secret-card p{font-size:13px;line-height:1.7}
.secret-card .gold-bottom{align-self:flex-start;margin:23px 0 0;text-align:left}
.secret-card .gold-particle{position:absolute;left:50%;top:50%;width:3px;height:3px;border-radius:50%;background:#fff5bf;opacity:0;--motion:gold-spark;--duration:5s}
@keyframes gold-spark{0%,10%{transform:rotate(var(--particle-angle)) translateX(72px) scale(.3);opacity:0}30%{opacity:.85}80%,100%{transform:rotate(calc(var(--particle-angle) + 40deg)) translateX(108px) scale(.1);opacity:0}}
@media(max-width:560px){.art-stage>.illustration{height:220px;width:240px}[data-id="support-lines"] .card-body h3{font-size:19px}}
@media(prefers-reduced-motion:reduce){.card-front .art-motion{animation:none!important}.pulse-run,.chip-signal,.gold-particle{display:none}}

/* V20: restrained rarity glints and a three-step search inside the lens. */
.rarity-glint{--motion:rarity-glint;--duration:10s;stroke:currentColor;stroke-width:2.5;stroke-dasharray:9 100;opacity:0}
.gem-glint{--motion:gem-glint;--duration:8s;stroke:currentColor;stroke-width:4;stroke-dasharray:8 100;opacity:0}
.gem-spark{--motion:gem-spark;--duration:8s;transform-origin:0 0;opacity:0;stroke:currentColor;stroke-width:2.5}
.search-result{--motion:search-result;--duration:18s;opacity:0;transform-origin:103px 92px}
.search-result-0{opacity:1}
.search-result-1{--delay:-15s}
.search-result-2{--delay:-12s}
.search-result-3{--delay:-9s}
.search-result-4{--delay:-6s}
.search-result-5{--delay:-3s}
.search-scan{--motion:search-scan;--duration:3s;stroke:currentColor}
@keyframes rarity-glint{0%,82%{opacity:0;stroke-dashoffset:9}85%{opacity:.45}94%{opacity:.45;stroke-dashoffset:-100}97%,100%{opacity:0;stroke-dashoffset:-100}}
@keyframes gem-glint{0%,10%{opacity:0;stroke-dashoffset:8}18%{opacity:.65}52%{opacity:.65;stroke-dashoffset:-100}60%,100%{opacity:0;stroke-dashoffset:-100}}
@keyframes gem-spark{0%,65%,95%,100%{opacity:0;transform:scale(.2)}78%{opacity:.6;transform:scale(1)}}
@keyframes search-result{0%,12%{opacity:1;transform:translateY(0)}16%{opacity:0;transform:translateY(-3px)}17%,97%{opacity:0;transform:translateY(3px)}100%{opacity:1;transform:translateY(0)}}
@keyframes search-scan{0%,10%{transform:translateY(0);opacity:0}20%{opacity:.35}80%{transform:translateY(50px);opacity:.35}90%,100%{transform:translateY(50px);opacity:0}}
@media(prefers-reduced-motion:reduce){.rarity-glint,.gem-glint,.gem-spark,.search-scan{display:none}.search-result-0{opacity:1}.search-result:not(.search-result-0){display:none}}

/* V21: two small SVG effects reuse the visible-front animation gate above. */
.apple-breathe{--motion:apple-breathe;--duration:8s;opacity:.8}
.strelets-glint{--motion:strelets-glint;--duration:9s;opacity:0}
@keyframes apple-breathe{0%,100%{opacity:.58}50%{opacity:1}}
@keyframes strelets-glint{0%,64%{transform:translateX(-95px);opacity:0}68%{opacity:.6}89%{transform:translateX(195px);opacity:.6}94%,100%{transform:translateX(195px);opacity:0}}
@media(prefers-reduced-motion:reduce){.strelets-glint{display:none}}

/* V22: small local SVG animation; the shared .art-motion gate stops hidden work. */
.knowledge-layer{--motion:knowledge-float;--duration:6s}
.analytics-wave{--motion:analytics-wave;--duration:6s}
.packing-box,.packing-gears,.packing-lid-left,.packing-lid-right{--duration:12s}
.packing-box{--motion:packing-travel;--timing:linear;transform:translateX(120px)}
.packing-box-1{opacity:0;transform:translateX(-50px)}
.packing-gears{--motion:packing-load;opacity:0}
.packing-lid-left{--motion:packing-open-left;transform-origin:-29px 124px}
.packing-lid-right{--motion:packing-open-right;transform-origin:29px 124px}
@keyframes knowledge-float{0%,100%{transform:translateY(-4px)}50%{transform:translateY(4px)}}
@keyframes analytics-wave{
  0%,100%{d:path("M54 109C70 94 85 96 101 81C116 76 132 52 147 47C162 36 178 42 193 31")}
  50%{d:path("M54 109C70 106 85 84 101 81C116 64 132 64 147 47C162 48 178 30 193 31")}
}
@keyframes packing-travel{0%{transform:translateX(-50px);opacity:0}4%{transform:translateX(-50px);opacity:1}20%,60%{transform:translateX(120px);opacity:1}80%{transform:translateX(290px);opacity:1}81%,100%{transform:translateX(290px);opacity:0}}
@keyframes packing-open-left{0%,23%,57%,100%{transform:rotate(0deg)}30%,49%{transform:rotate(-125deg)}}
@keyframes packing-open-right{0%,23%,57%,100%{transform:rotate(0deg)}30%,49%{transform:rotate(125deg)}}
@keyframes packing-load{0%,30%{transform:translateY(-55px) rotate(-18deg);opacity:0}33%{opacity:1}46%,49%{transform:translateY(25px) rotate(12deg);opacity:1}50%,100%{transform:translateY(25px) rotate(12deg);opacity:0}}
