/* ==========================================================================
   FX layer: premium cards, per-section identities, illustrations and motion.
   Loaded after main.css; it only extends and overrides it.
   Every section has its own accent:
     Salesforce = sky, ETRM = amber, Journey = HUD/violet, Awards = gold,
     Toolkit = teal orbit, Moments = warm mosaic, Contact = gyroscope.
   ========================================================================== */

@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --amb1 { syntax: '<color>'; inherits: true; initial-value: rgba(56, 189, 248, .14); }
@property --amb2 { syntax: '<color>'; inherits: true; initial-value: rgba(167, 139, 250, .12); }

:root {
  --a4: #fbbf24;
  --a5: #fb7185;
  --ok: #34d399;
  --card: linear-gradient(160deg, rgba(24, 30, 50, .74), rgba(10, 12, 20, .7));
  --card-solid: #0c0f19;
  --edge: rgba(255, 255, 255, .085);
  --edge-hi: rgba(255, 255, 255, .17);
  --art-line: rgba(226, 232, 240, .17);
  --art-soft: rgba(226, 232, 240, .05);
  --shadow-card: 0 30px 60px -38px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
  --r-card: 26px;
}
[data-theme="light"] {
  --a4: #d97706;
  --a5: #e11d48;
  --ok: #059669;
  --card: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(246, 248, 252, .82));
  --card-solid: #ffffff;
  --edge: rgba(15, 23, 42, .085);
  --edge-hi: rgba(15, 23, 42, .17);
  --art-line: rgba(15, 23, 42, .18);
  --art-soft: rgba(15, 23, 42, .045);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 26px 50px -32px rgba(15, 23, 42, .32), inset 0 1px 0 #fff;
}

.st-a1 { stop-color: var(--a1); }
.st-a2 { stop-color: var(--a2); }
.st-a4 { stop-color: var(--a4); }
.st-a5 { stop-color: var(--a5); }
.st-tc { stop-color: var(--a1); }

@keyframes spin2d { to { transform: rotate(360deg); } }
@keyframes ang { to { --ang: 360deg; } }
@keyframes floaty { 50% { transform: translateY(-16px) rotate(2deg); } }

/* Pause everything in sections that are off screen (class toggled by fx.js) */
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* ---------------------------------------------------------------------- */
/* Ambient light                                                          */
/* ---------------------------------------------------------------------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; transition: --amb1 1.4s ease, --amb2 1.4s ease; }
.amb { position: absolute; width: 75vmax; height: 75vmax; border-radius: 50%; will-change: transform; }
.amb--1 { left: -28vmax; top: -24vmax; background: radial-gradient(closest-side, var(--amb1), transparent); animation: ambA 30s ease-in-out infinite alternate; }
.amb--2 { right: -28vmax; bottom: -30vmax; background: radial-gradient(closest-side, var(--amb2), transparent); animation: ambB 36s ease-in-out infinite alternate; }
@keyframes ambA { to { transform: translate(20vw, 24vh) scale(1.1); } }
@keyframes ambB { to { transform: translate(-18vw, -20vh) scale(.9); } }
.amb-grid {
  position: absolute; inset: 0; opacity: .7;
  background-image: linear-gradient(var(--art-soft) 1px, transparent 1px), linear-gradient(90deg, var(--art-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 10%, transparent 80%);
}
.cursor-aura {
  position: absolute; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--a1) 10%, transparent), transparent); opacity: 0; transition: opacity .6s; will-change: transform;
}
.cursor-on .cursor-aura { opacity: 1; }
[data-theme="light"] .amb-grid { opacity: .9; }

/* Let the ambient layer show through the bands that used to be opaque */
.marquee { background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
.moments { background: color-mix(in srgb, var(--bg-2) 45%, transparent); }
.hero-grid-bg { opacity: .25; }

/* ---------------------------------------------------------------------- */
/* Section scaffolding: giant outlined index numbers and floating 3D decor */
/* ---------------------------------------------------------------------- */
.section, .moments { isolation: isolate; overflow-x: clip; }
.sec-num {
  position: absolute; z-index: -1; top: clamp(24px, 5vw, 72px); right: max(16px, calc((100vw - 1240px) / 2 - 20px));
  font-family: var(--display); font-weight: 700; font-size: clamp(7rem, 19vw, 17rem); line-height: .8; letter-spacing: -.07em;
  color: transparent; -webkit-text-stroke: 1px var(--edge-hi); pointer-events: none; user-select: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 10%, transparent), transparent 70%); -webkit-background-clip: text; background-clip: text;
}
.contact .sec-num { display: none; }

.deco { position: absolute; z-index: -1; pointer-events: none; }
.deco-float { animation: floaty 10s ease-in-out infinite; }
.deco svg { display: block; width: 100%; height: auto; fill: none; stroke-width: 1; }
.deco--dots {
  width: 190px; height: 130px; opacity: .8;
  background-image: radial-gradient(var(--edge-hi) 1.3px, transparent 1.6px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
}

/* CSS 3D cube */
.deco--about-cube { right: 7%; top: 120px; perspective: 900px; }
.cube3d { --s: 104px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: cube 24s linear infinite; }
.cube3d i {
  position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--a1) 55%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 14%, transparent), color-mix(in srgb, var(--a2) 6%, transparent));
  box-shadow: inset 0 0 26px color-mix(in srgb, var(--a1) 22%, transparent);
}
.cube3d i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube3d i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube3d i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube3d i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube3d i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); border-color: color-mix(in srgb, var(--a2) 55%, transparent); }
.cube3d i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); border-color: color-mix(in srgb, var(--a2) 55%, transparent); }
@keyframes cube { from { transform: rotateX(-24deg) rotateY(0) rotateZ(8deg); } to { transform: rotateX(-24deg) rotateY(360deg) rotateZ(8deg); } }
.deco--about-dots { left: 2%; bottom: 12%; }

.deco--ico { left: -40px; top: 90px; width: 240px; opacity: .55; }
.deco--ico svg { stroke: color-mix(in srgb, var(--a2) 70%, transparent); animation: spin2d 60s linear infinite; }
.deco--exp-dots { right: 4%; top: 18%; }

.deco--gyro-sm { right: 6%; top: 140px; width: 150px; height: 150px; perspective: 700px; }
.deco--gyro-sm .deco-float, .deco--gyro-sm .gyro-scene { width: 100%; height: 100%; }
.deco--plus {
  left: 3%; bottom: 14%; width: 180px; height: 180px; opacity: .8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M18 13v10M13 18h10' stroke='%238a92a8' stroke-opacity='.45' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.deco--torus { right: 3%; top: 110px; width: 230px; opacity: .6; }
.deco--torus svg { stroke: color-mix(in srgb, var(--a4) 60%, transparent); animation: spin2d 45s linear infinite; }
.deco--torus svg circle { fill: color-mix(in srgb, var(--a4) 50%, transparent); stroke: none; }
.deco--tk-dots { left: 4%; top: 22%; }

/* Gyroscope rings (journey decor + contact centrepiece) */
.gyro-scene { position: absolute; inset: 0; transform-style: preserve-3d; animation: gyro 26s linear infinite; }
.gyro-scene i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--a1) 45%, transparent); }
.gyro-scene i:nth-child(2) { transform: rotateX(72deg); border-color: color-mix(in srgb, var(--a2) 50%, transparent); }
.gyro-scene i:nth-child(3) { transform: rotateY(72deg); border-color: color-mix(in srgb, var(--a3) 50%, transparent); }
.gyro-scene i:nth-child(4) { inset: 14%; transform: rotateX(60deg) rotateY(50deg); border-style: dashed; }
@keyframes gyro { from { transform: rotateX(18deg) rotateY(0) rotateZ(0); } to { transform: rotateX(18deg) rotateY(360deg) rotateZ(90deg); } }

/* ---------------------------------------------------------------------- */
/* Card system                                                            */
/* ---------------------------------------------------------------------- */
.tile, .project, .tl-card, .award, .stat, .learn-card, .stack-row {
  background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow-card);
}
.tile, .stat, .learn-card, .stack-row { -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); }

/* Spotlight + animated gradient border. --tc is each card's own accent. */
[data-spotlight]::before {
  background: radial-gradient(400px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--tc, var(--a1)) 14%, transparent), transparent 55%);
}
[data-spotlight]::after {
  padding: 1px;
  background:
    radial-gradient(240px circle at var(--x, 50%) var(--y, 50%), var(--tc, var(--a1)), transparent 70%),
    conic-gradient(from var(--ang), transparent 0deg, color-mix(in srgb, var(--tc, var(--a1)) 85%, transparent) 50deg, color-mix(in srgb, var(--a2) 80%, transparent) 110deg, transparent 170deg, transparent 360deg);
}
[data-spotlight]:hover::after { animation: ang 3.6s linear infinite; }
.tile:hover, .project:hover, .tl-card:hover, .award:hover, .stat:hover, .learn-card:hover, .stack-row:hover {
  border-color: transparent;
  box-shadow: 0 30px 70px -34px color-mix(in srgb, var(--tc, var(--a1)) 55%, transparent), 0 0 50px -20px color-mix(in srgb, var(--tc, var(--a1)) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06);
}
/* Cards that always carry a slow travelling border */
.project--feature::after, .award::after, .mail-cta::before { opacity: .55; animation: ang 9s linear infinite; }
.project--feature:hover::after, .award:hover::after { opacity: 1; animation-duration: 3.6s; }

/* Shared illustration vocabulary ---------------------------------------- */
.art { display: block; width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.art .ln { stroke: var(--art-line); stroke-width: 1; }
.art .ln-dash { stroke: var(--art-line); stroke-width: 1; stroke-dasharray: 3 6; }
.art .acc { stroke: var(--tc, var(--a1)); stroke-width: 1.7; }
.art .acc2 { stroke: var(--a2); stroke-width: 1.7; }
.art .fill-soft { fill: color-mix(in srgb, var(--tc, var(--a1)) 10%, transparent); }
.art .node { fill: var(--card-solid); stroke: color-mix(in srgb, var(--tc, var(--a1)) 55%, var(--art-line)); stroke-width: 1.3; }
.art .node--hi { stroke: var(--tc, var(--a1)); fill: color-mix(in srgb, var(--tc, var(--a1)) 16%, var(--card-solid)); }
.art .txt { fill: var(--muted); stroke: none; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.art .txt--hi { fill: var(--text); }
.art .txt--ok { fill: var(--ok); }
.art .txt--flag { fill: var(--a5); }
.art .pkt { stroke: var(--tc, var(--a1)); stroke-width: 3; stroke-dasharray: 7 93; animation: pkt 2.6s linear infinite; filter: drop-shadow(0 0 4px var(--tc, var(--a1))); }
.art .pkt--slow { animation-duration: 6s; stroke-dasharray: 4 96; }
.art .pkt--d2 { animation-delay: -.9s; }
.art .pkt--d3 { animation-delay: -1.7s; }
.art .pkt--d4 { animation-delay: -2.2s; }
.art .pkt--rev { animation-direction: reverse; }
@keyframes pkt { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.art .ping { fill: none; stroke: var(--tc, var(--a1)); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: ping 2.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.art .spin { transform-box: fill-box; transform-origin: center; animation: spin2d 22s linear infinite; }
.art .spin-r { transform-box: fill-box; transform-origin: center; animation: spin2d 16s linear infinite reverse; }
.art .spin-slow { transform-box: fill-box; transform-origin: center; animation: spin2d 80s linear infinite; }
.art .bob { animation: bob2 4.5s ease-in-out infinite; }
.art .bob--d2 { animation-delay: -2.2s; }
@keyframes bob2 { 50% { transform: translateY(-5px); } }
.art .blink { fill: var(--text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.art .type { transform-box: fill-box; transform-origin: left center; animation: type 5s var(--ease) infinite; animation-delay: calc(var(--d, 0) * .3s); }
@keyframes type { 0% { transform: scaleX(0); } 25%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.art .bar-a { fill: var(--a2); opacity: .85; }
.art .bar-b { fill: var(--tc, var(--a1)); opacity: .85; }
.art .bar-c { fill: var(--art-line); }
.art .bar { fill: url(#gA); opacity: .85; }
.art .dot-r { fill: #f87171; } .art .dot-y { fill: #fbbf24; } .art .dot-g { fill: #34d399; }
.art .dot-ok { fill: var(--ok); } .art .dot-no { fill: var(--a5); }
.art .caret { fill: var(--text); }

/* Drawn and grown on first view. Hidden states only exist once fx.js has started (.fx-on). */
.fx-on .art .draw { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.fx-on .seen .art .draw, .fx-on .seen.art .draw { stroke-dashoffset: 0; }
.art .grow { transform-box: fill-box; transform-origin: center bottom; }
.fx-on .art .grow { transform: scaleY(0); transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms + .1s); }
.fx-on .seen .art .grow { transform: none; }

/* ---------------------------------------------------------------------- */
/* Buttons & micro-interactions                                           */
/* ---------------------------------------------------------------------- */
.btn::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); transition: left .9s var(--ease);
}
.btn:hover::after { left: 135%; }
.btn-primary { box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--a1) 60%, transparent); }
.btn-primary:hover { box-shadow: 0 16px 44px -10px color-mix(in srgb, var(--a1) 80%, transparent), 0 0 0 1px color-mix(in srgb, var(--a1) 40%, transparent); }
.ripple { position: absolute; z-index: 2; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .28; transform: scale(0); animation: ripple .75s ease-out forwards; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.chip-btn, .mail-cta, .socials a { position: relative; overflow: hidden; }
.mail-cta { overflow: visible; }

.hero-tag { position: relative; overflow: hidden; }
.hero-tag::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--a1) 30%, transparent), transparent 70%);
  animation: tagshine 5s ease-in-out 2s infinite;
}
@keyframes tagshine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.core-tag { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6), 0 0 24px -10px var(--glow); }
.core-tag::before { box-shadow: 0 0 10px currentColor; }

.brand-mark { position: relative; overflow: hidden; }
.brand-mark::after {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from var(--ang), transparent 0 70%, color-mix(in srgb, var(--a1) 50%, transparent), transparent 90%);
  animation: ang 6s linear infinite; z-index: -1;
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); box-shadow: 0 0 8px var(--a1);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav-links a::after { display: none; } }

/* ---------------------------------------------------------------------- */
/* Marquee: two counter-moving bands that lean with scroll speed          */
/* ---------------------------------------------------------------------- */
.marquee { padding: 20px 0; }
.marquee-inner { display: grid; gap: 10px; will-change: transform; }
.marquee-track--rev { animation-direction: reverse; animation-duration: 55s; color: transparent; -webkit-text-stroke: 1px var(--stroke); }
.marquee-track--rev b { color: var(--a2); -webkit-text-stroke: 0; }
.marquee-track span { transition: color .3s; }
.marquee-track span:hover { color: var(--text); text-shadow: 0 0 24px var(--glow); }

/* ---------------------------------------------------------------------- */
/* About: holographic ID + data-viz stat cards                            */
/* ---------------------------------------------------------------------- */
.holo { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1; display: grid; place-items: center; container-type: inline-size; }
.holo .profile-avatar { width: 70%; max-width: none; padding: 3px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--bg) 70%, transparent), 0 26px 60px -24px var(--glow); overflow: hidden; }
.holo-ring { position: absolute; border-radius: 50%; }
.holo-ring--a { inset: 0; border: 1px dashed var(--edge-hi); animation: spin2d 60s linear infinite; }
.holo-ring--b {
  inset: 8%;
  background: conic-gradient(from var(--ang), transparent 0 62%, var(--a1) 80%, var(--a2) 92%, transparent);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: ang 5s linear infinite; filter: drop-shadow(0 0 6px var(--a1));
}
.holo-ring--c { inset: 13%; border: 1px solid color-mix(in srgb, var(--a1) 25%, transparent); box-shadow: 0 0 60px -14px var(--glow), inset 0 0 40px -14px var(--glow); }
.holo-orbit { position: absolute; inset: 0; animation: spin2d 32s linear infinite; }
.holo-orbit span {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px; border-radius: 50%;
  display: grid; place-items: center; color: var(--a1); background: var(--card-solid); border: 1px solid var(--edge-hi);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6), 0 0 20px -6px var(--glow);
  transform: rotate(calc(var(--i) * 90deg + 45deg)) translateX(48cqi);
}
.holo-orbit span:nth-child(2) { color: var(--a4); }
.holo-orbit span:nth-child(3) { color: var(--a2); }
.holo-orbit span:nth-child(4) { color: var(--a3); }
.holo-orbit .icon { width: 17px; height: 17px; transform: rotate(calc(var(--i) * -90deg - 45deg)); }
.holo-orbit span .icon { animation: unspin 32s linear infinite; }
@keyframes unspin { from { rotate: 0deg; } to { rotate: -360deg; } }
.holo-scan { position: absolute; inset: 3px; border-radius: 50%; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.holo-scan::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 28%;
  background: linear-gradient(transparent, color-mix(in srgb, var(--a1) 35%, transparent), transparent);
  animation: scany 4.5s ease-in-out infinite;
}
@keyframes scany { from { transform: translateY(-110%); } to { transform: translateY(380%); } }
.holo-scan::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, color-mix(in srgb, var(--a1) 7%, transparent) 3px 4px);
}

.hud {
  --hc: color-mix(in srgb, var(--a1) 75%, transparent);
  background:
    linear-gradient(var(--hc) 0 0) top left / 16px 1px no-repeat, linear-gradient(var(--hc) 0 0) top left / 1px 16px no-repeat,
    linear-gradient(var(--hc) 0 0) top right / 16px 1px no-repeat, linear-gradient(var(--hc) 0 0) top right / 1px 16px no-repeat,
    linear-gradient(var(--hc) 0 0) bottom left / 16px 1px no-repeat, linear-gradient(var(--hc) 0 0) bottom left / 1px 16px no-repeat,
    linear-gradient(var(--hc) 0 0) bottom right / 16px 1px no-repeat, linear-gradient(var(--hc) 0 0) bottom right / 1px 16px no-repeat,
    var(--card);
}
.profile-card figcaption { padding: 18px 20px; border-radius: 4px; border: 1px solid var(--edge); position: relative; overflow: hidden; }
.profile-card figcaption::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--a1), transparent); animation: scanx 4s ease-in-out infinite;
}
@keyframes scanx { 0%, 100% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 50% { transform: translateY(140px); } }

.offclock li { background: var(--card); border-color: var(--edge); }
.offclock li:nth-child(2) .icon { color: var(--ok); }
.offclock li:nth-child(3) .icon { color: var(--a4); }
.offclock li:nth-child(4) .icon { color: var(--a2); }
.offclock li:hover { box-shadow: 0 10px 26px -14px var(--glow); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; border-top: 0; }
.stat {
  position: relative; min-height: 172px; padding: 24px 24px 22px; border-radius: 22px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
}
.stat:nth-child(odd), .stat:nth-child(even) { padding: 24px 24px 22px; border-right: 1px solid var(--edge); }
.stats .stat-num {
  margin: 0; max-width: none;
  font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 45%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats .stat-label { margin: 0; max-width: none; color: var(--muted); font-size: 14px; line-height: 1.45; }
.stat-viz { position: absolute; top: 22px; right: 22px; }
.stat-viz--years { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.stat-viz--years i { display: block; width: 8px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px -2px var(--glow); transform-origin: bottom; animation: eq 2.6s ease-in-out infinite; }
.stat-viz--years i:nth-child(1) { height: 30%; } .stat-viz--years i:nth-child(2) { height: 48%; animation-delay: -.4s; }
.stat-viz--years i:nth-child(3) { height: 64%; animation-delay: -.8s; } .stat-viz--years i:nth-child(4) { height: 82%; animation-delay: -1.2s; }
.stat-viz--years i:nth-child(5) { height: 100%; animation-delay: -1.6s; }
@keyframes eq { 50% { transform: scaleY(.72); } }
.stat-viz--dots {
  width: 128px; height: 40px;
  background-image: radial-gradient(circle, var(--a1) 1.6px, transparent 2px); background-size: 8px 8px;
  -webkit-mask-image: linear-gradient(90deg, #000 0 35%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .25)); mask-image: linear-gradient(90deg, #000 0 35%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .25));
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; animation: dotsweep 4s ease-in-out infinite alternate;
}
@keyframes dotsweep { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.stat-viz--ring { width: 66px; height: 66px; fill: none; transform: rotate(-90deg); }
.stat-viz--ring .ring-track { stroke: var(--art-line); stroke-width: 5; }
.stat-viz--ring .ring-bar { stroke: url(#gA); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 75 100; filter: drop-shadow(0 0 5px var(--a1)); }
.fx-on .stat-viz--ring .ring-bar { stroke-dasharray: 0 100; transition: stroke-dasharray 1.8s var(--ease) .2s; }
.fx-on .stat-viz--ring.seen .ring-bar { stroke-dasharray: 75 100; }
.stat-viz--ring .ring-bolt { fill: var(--a1); transform: rotate(90deg); transform-origin: 32px 32px; }
.stat-viz--stars { display: flex; gap: 4px; color: var(--a4); }
.stat-viz--stars .icon { width: 22px; height: 22px; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--a4) 60%, transparent)); animation: twinkle 2.4s ease-in-out infinite; }
.stat-viz--stars .icon:nth-child(2) { animation-delay: -.8s; } .stat-viz--stars .icon:nth-child(3) { animation-delay: -1.6s; }
@keyframes twinkle { 50% { transform: translateY(-4px) scale(1.12) rotate(12deg); opacity: .75; } }
.stat--gold { --tc: var(--a4); }

/* ---------------------------------------------------------------------- */
/* Expertise bento                                                        */
/* ---------------------------------------------------------------------- */
.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { --pad: 30px; padding: var(--pad); border-radius: var(--r-card); overflow: hidden; }
.tile--lg { display: flex; flex-direction: column; grid-column: span 2; grid-row: auto; background: var(--card); }
.tile--sf { --tc: var(--a1); background: var(--card); }
.tile--etrm { --tc: var(--a4); }
.tile--int { --tc: var(--a3); }
.tile--code { --tc: var(--a2); }
.tile--data { --tc: var(--a1); }
.tile--qa { --tc: var(--ok); }
.tile-art {
  position: relative; height: 180px; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 24px; padding: 6px 10px 0;
  border-bottom: 1px solid var(--edge); overflow: hidden;
  background:
    radial-gradient(110% 90% at 50% 0%, color-mix(in srgb, var(--tc) 16%, transparent), transparent 70%),
    linear-gradient(var(--art-soft) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--art-soft) 1px, transparent 1px) 0 0 / 22px 22px;
  transition: transform .8s var(--ease);
}
.tile-art--sm { height: 110px; padding: 8px 6px 4px; }
.tile:hover .tile-art .art { transform: scale(1.04); }
.tile-art .art { transition: transform .8s var(--ease); }
.tile-icon {
  position: relative; color: var(--tc, var(--a1)); border-color: color-mix(in srgb, var(--tc, var(--a1)) 35%, transparent);
  background: color-mix(in srgb, var(--tc, var(--a1)) 10%, transparent);
  box-shadow: 0 0 24px -8px color-mix(in srgb, var(--tc, var(--a1)) 70%, transparent);
  transition: transform .5s var(--ease);
}
.tile--sm .tile-icon { position: absolute; top: 88px; right: 22px; margin: 0; width: 44px; height: 44px; backdrop-filter: blur(8px); background: color-mix(in srgb, var(--card-solid) 70%, transparent); }
.tile--lg .tile-art { margin-bottom: 40px; }
.tile--lg .tile-icon { position: absolute; top: 156px; left: var(--pad); margin: 0; background: var(--card-solid); }
.tile--lg h3 { margin-top: 10px; }
.tile:hover .tile-icon { transform: translateY(-4px) rotate(-6deg); }
.tile--sf .tile-icon, .tile--sf .lifecycle li span { color: var(--a1); }
.tile--sf .lifecycle::before { background: linear-gradient(var(--a1), var(--a2)); }
.tile h3 { letter-spacing: -.02em; }
.lifecycle { margin-top: 26px; gap: 4px; }
.lifecycle::before { left: 15px; background: linear-gradient(var(--tc), var(--a2)); opacity: .45; }
.lifecycle::after {
  content: ""; position: absolute; left: 12px; top: 16px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--tc); box-shadow: 0 0 10px 3px color-mix(in srgb, var(--tc) 60%, transparent);
  animation: lifepulse 4.5s var(--ease) infinite;
}
@keyframes lifepulse { 0% { top: 16px; opacity: 0; } 8%, 88% { opacity: 1; } 100% { top: calc(100% - 22px); opacity: 0; } }
.lifecycle li { border-radius: 12px; padding: 9px 12px 9px 0; transition: background .35s, transform .45s var(--ease), color .3s; }
.lifecycle li:hover { background: color-mix(in srgb, var(--tc) 7%, transparent); transform: translateX(6px); }
.lifecycle li span { color: var(--tc); background: var(--card-solid); border-color: color-mix(in srgb, var(--tc) 35%, transparent); transition: box-shadow .35s, background .35s, color .35s; }
.lifecycle li:hover span { background: var(--tc); color: var(--on-accent); box-shadow: 0 0 18px color-mix(in srgb, var(--tc) 70%, transparent); }

/* ETRM chart pieces */
.tile--etrm .art .area { fill: url(#gFadeB); stroke: none; }
.tile--etrm .art .candle path { stroke-width: 1.2; }
.tile--etrm .art .candle.up path { stroke: var(--a3); } .tile--etrm .art .candle.up rect { fill: color-mix(in srgb, var(--a3) 70%, transparent); }
.tile--etrm .art .candle.dn path { stroke: var(--a5); } .tile--etrm .art .candle.dn rect { fill: color-mix(in srgb, var(--a5) 65%, transparent); }
.tile--etrm .art .acc { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--a4) 70%, transparent)); stroke-width: 2; }

/* ---------------------------------------------------------------------- */
/* Journey: HUD panels on a glowing rail                                  */
/* ---------------------------------------------------------------------- */
.tl-card { position: relative; border-radius: 6px; padding: 30px 34px; overflow: hidden; --tc: var(--a2); --hc: color-mix(in srgb, var(--a2) 80%, transparent); }
.tl-card h3, .tl-card .tl-org, .tl-card p, .tl-card ul { position: relative; }
.tl-ghost {
  position: absolute; right: 16px; top: 4px; font-family: var(--display); font-weight: 700; font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--edge-hi); pointer-events: none; transition: -webkit-text-stroke-color .4s, transform .8s var(--ease);
}
.tl-card:hover .tl-ghost { -webkit-text-stroke-color: color-mix(in srgb, var(--a2) 60%, transparent); transform: translateX(-8px); }
.tl-org { color: var(--a2); }
.tl-card li::before { width: 6px; height: 6px; top: .62em; transform: rotate(45deg); background: var(--a2); box-shadow: 0 0 8px var(--a2); }
.tl-item::before {
  width: 12px; height: 12px; border-radius: 2px; transform: rotate(45deg); background: var(--bg); border: 1.5px solid var(--a2);
  box-shadow: 0 0 0 5px var(--bg), 0 0 20px var(--a2); transition: background .4s, box-shadow .4s;
}
.tl-item:hover::before { background: var(--a2); box-shadow: 0 0 0 5px var(--bg), 0 0 28px 4px var(--a2); }
.tl-item:first-of-type::after {
  content: ""; position: absolute; left: 249px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--a3); animation: ping2 2.4s ease-out infinite; pointer-events: none;
}
@keyframes ping2 { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.timeline-progress { background: linear-gradient(var(--a3), var(--a2) 50%, var(--a1)); box-shadow: 0 0 16px var(--a2); }
.timeline-rail { background: linear-gradient(var(--edge-hi), var(--edge)); }

.awards { gap: 18px; }
.award { --tc: var(--a4); position: relative; border-radius: var(--r-card); padding: 28px 30px 30px; overflow: hidden; }
.award::before { opacity: .6; background: radial-gradient(260px circle at var(--x, 80%) var(--y, 0%), color-mix(in srgb, var(--a4) 16%, transparent), transparent 60%); }
.medal { width: 96px; height: 96px; margin: -6px 0 0 -8px; }
.medal svg { width: 100%; height: 100%; overflow: visible; }
.medal-rays { transform-origin: 50px 50px; animation: spin2d 24s linear infinite; }
.medal-rays path { stroke: color-mix(in srgb, var(--a4) 60%, transparent); stroke-width: 1.4; stroke-linecap: round; }
.medal-halo { fill: color-mix(in srgb, var(--a4) 14%, transparent); }
.medal-disc { fill: url(#gGold); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--a4) 55%, transparent)); }
.medal-inner { fill: none; stroke: rgba(255, 255, 255, .55); stroke-dasharray: 2 3; }
.medal-star { fill: #fff; }
.award:hover .medal svg { animation: medalflip 1.1s var(--ease); }
@keyframes medalflip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.award-year {
  margin: 12px 0 8px;
  background: linear-gradient(180deg, var(--a4), color-mix(in srgb, var(--a4) 35%, var(--text))); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------------- */
/* Work                                                                   */
/* ---------------------------------------------------------------------- */
.projects { gap: 18px; }
.project { --tc: var(--a1); padding: 26px; border-radius: var(--r-card); min-height: 0; background: var(--card); }
.project[data-domain="salesforce"] { --tc: var(--a1); }
.project[data-domain="etrm"] { --tc: var(--a4); }
.project[data-domain="side"] { --tc: var(--a2); }
.project-top { margin-bottom: 0; }
.project-top span:first-child, .project[data-domain="salesforce"] .project-top span:first-child { color: var(--tc); }
.project-top span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 8px var(--tc); vertical-align: 1px; }
.project-art {
  position: relative; height: 140px; margin: 18px 0 0; border-radius: 16px; border: 1px solid var(--edge); overflow: hidden; padding: 6px 8px;
  background:
    radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--tc) 13%, transparent), transparent 70%),
    linear-gradient(var(--art-soft) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--art-soft) 1px, transparent 1px) 0 0 / 20px 20px,
    color-mix(in srgb, var(--card-solid) 60%, transparent);
}
.project-art .art { transition: transform .9s var(--ease); }
.project:hover .project-art .art { transform: scale(1.05); }
.project h3 { margin: 22px 0 10px; }
.project .tags { margin-top: auto; padding-top: 20px; }
.project p { margin-bottom: 0; }
.tags li { transition: color .3s, border-color .3s, background .3s, box-shadow .3s, transform .4s var(--ease); }
.project:hover .tags li { border-color: color-mix(in srgb, var(--tc) 35%, transparent); color: var(--text); }
.tags li:hover { transform: translateY(-2px); box-shadow: 0 0 16px -4px var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent); }

.project--feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "top art" "h art" "p art" "tags art"; column-gap: 40px; padding: 34px;
  background: var(--card);
}
.project--feature .project-top { grid-area: top; }
.project--feature h3 { grid-area: h; margin-top: 40px; }
.project--feature > p { grid-area: p; }
.project--feature .tags { grid-area: tags; align-self: end; }
.project--feature .project-art { grid-area: art; height: auto; min-height: 260px; margin: 0; }
.project--sf { background: var(--card); }
.project--wide:not(.project--feature) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); grid-template-areas: "top art" "h art" "p art" "tags art"; column-gap: 32px; }
.project--wide:not(.project--feature) .project-top { grid-area: top; }
.project--wide:not(.project--feature) h3 { grid-area: h; }
.project--wide:not(.project--feature) > p { grid-area: p; }
.project--wide:not(.project--feature) .tags { grid-area: tags; }
.project--wide:not(.project--feature) .project-art { grid-area: art; margin: 0; height: 100%; min-height: 150px; }

.art .brace { fill: url(#gA); stroke: none; font-family: var(--mono); font-size: 84px; font-weight: 400; opacity: .9; }
.art .check-pop { opacity: 0; animation: checkpop 4.2s ease-in-out infinite; animation-delay: calc(var(--d) * .9s); stroke-width: 2; }
@keyframes checkpop { 0%, 8% { opacity: 0; } 18%, 80% { opacity: 1; } 100% { opacity: 0; } }
.art .donut { stroke-width: 9; transform: rotate(-90deg); transform-origin: 70px 55px; }
.art .d1 { stroke: var(--a1); stroke-dasharray: 46 100; }
.art .d2 { stroke: var(--a2); stroke-dasharray: 30 100; stroke-dashoffset: -47; }
.art .d3 { stroke: var(--a3); stroke-dasharray: 20 100; stroke-dashoffset: -78; }
.fx-on .art .donut { transition: stroke-dasharray 1.4s var(--ease) .2s; }
.fx-on .project-art:not(.seen) .donut { stroke-dasharray: 0 100; }

.art .sweep { fill: url(#gSweepB); transform-origin: 310px 112px; animation: spin2d 4s linear infinite; }
.art .blip { fill: var(--a3); animation: blip 4s linear infinite; }
.art .blip--d2 { animation-delay: -1.4s; } .art .blip--d3 { animation-delay: -2.6s; }
.art .blip--flag { fill: var(--a5); animation: none; }
.art .ping--flag { stroke: var(--a5); }
@keyframes blip { 0%, 100% { opacity: .25; } 10% { opacity: 1; } 40% { opacity: .45; } }
.art .row-sweep { fill: color-mix(in srgb, var(--a4) 22%, transparent); animation: rows 3.6s steps(1) infinite; }
@keyframes rows { 0% { transform: translateY(0); } 33% { transform: translateY(18px); } 66% { transform: translateY(36px); } }
.art .route { stroke: var(--a4); stroke-width: 1.4; stroke-dasharray: 3 5; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -16; } }
.art .wave { stroke: color-mix(in srgb, var(--a1) 60%, transparent); stroke-width: 1.4; animation: wave 3s linear infinite; }
.art .wave--2 { opacity: .5; animation-duration: 4.5s; animation-direction: reverse; }
@keyframes wave { to { transform: translateX(-80px); } }
.art .gauge-track { stroke-width: 10; }
.art .gauge-bar { stroke: url(#gGold); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 75 100; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--a4) 60%, transparent)); }
.fx-on .art .gauge-bar { transition: stroke-dasharray 1.6s var(--ease) .2s; }
.fx-on .project-art:not(.seen) .gauge-bar { stroke-dasharray: 0 100; }
.art .needle { transform-origin: 160px 96px; transform: rotate(135deg); transition: transform 1.6s cubic-bezier(.34, 1.56, .64, 1) .2s; }
.fx-on .project-art:not(.seen) .needle { transform: rotate(0deg); }
.art .needle-p { stroke: var(--text); stroke-width: 2.4; }
.art .liquid { animation: drain 5s ease-in-out infinite; }
.art .liquid-p { fill: color-mix(in srgb, var(--a4) 45%, transparent); stroke: var(--a4); stroke-width: 1; animation: slosh 2s linear infinite; }
@keyframes drain { 0%, 10% { transform: translateY(0); } 70%, 85% { transform: translateY(62px); } 100% { transform: translateY(0); } }
@keyframes slosh { to { transform: translateX(-60px); } }
.art .q { fill: var(--muted); stroke: none; font-family: var(--display); font-size: 30px; font-weight: 700; }
.art .q--a { fill: var(--tc); }
.art .spark { fill: var(--a4); transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.art .spark--d2 { animation-delay: -.8s; } .art .spark--d3 { animation-delay: -1.6s; }

.chip-btn { transition: color .3s, border-color .3s, background .3s, box-shadow .3s; }
.chip-btn.is-active { background: var(--grad); color: var(--on-accent); border-color: transparent; box-shadow: 0 8px 26px -10px var(--glow); }

/* ---------------------------------------------------------------------- */
/* Toolkit: orbiting stack                                                */
/* ---------------------------------------------------------------------- */
.section-head--split { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
.section-head-copy { display: flex; flex-direction: column; gap: 20px; }
.orbit { --size: 380px; position: relative; width: var(--size); height: var(--size); margin: -40px 0; }
.orbit-glow { position: absolute; inset: 25%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--a3) 30%, transparent), transparent); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
.orbit-ring { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1); border-radius: 50%; border: 1px dashed var(--edge-hi); animation: spin2d var(--dur) linear infinite; }
.orbit-ring--1 { --r: 76px; --dur: 26s; border-style: solid; border-color: color-mix(in srgb, var(--a3) 30%, transparent); }
.orbit-ring--2 { --r: 128px; --dur: 44s; animation-direction: reverse; }
.orbit-ring--3 { --r: 180px; --dur: 70s; }
.orb { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px; transform: rotate(calc(360deg / var(--n) * var(--i))) translateX(var(--r)) rotate(calc(-360deg / var(--n) * var(--i))); }
.orb img {
  width: 100%; height: 100%; padding: 8px; border-radius: 50%; object-fit: contain; background: var(--card-solid); border: 1px solid var(--edge-hi);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6), 0 0 16px -6px var(--glow); animation: spin2d var(--dur) linear infinite reverse;
}
.orbit-ring--2 .orb img { animation-direction: normal; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 22px; display: grid; place-items: center; transform: rotate(45deg);
  background: linear-gradient(140deg, color-mix(in srgb, var(--a3) 30%, var(--card-solid)), color-mix(in srgb, var(--a2) 30%, var(--card-solid)));
  border: 1px solid var(--edge-hi); box-shadow: 0 0 40px -6px color-mix(in srgb, var(--a3) 60%, transparent); }
.orbit-core span { transform: rotate(-45deg); font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
.orbit:hover .orbit-ring, .orbit:hover .orb img { animation-play-state: paused; }

.logo { background: var(--card); border-color: var(--edge); box-shadow: var(--shadow-card); --tc: var(--a3); }
.logo:hover { transform: translateY(-8px) scale(1.02); border-color: transparent; box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--a3) 60%, transparent); }
.logo:hover img { filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--a3) 45%, transparent)); transform: scale(1.15) translateY(-3px); }
.logo-group h3, .learning h3 { display: flex; align-items: center; gap: 10px; color: var(--a3); }
.logo-group h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--edge-hi), transparent); }

.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 0; }
.stack-row { --tc: var(--a3); display: flex; flex-direction: column; gap: 16px; padding: 24px 26px; border-radius: 22px; border-bottom: 1px solid var(--edge); }
.stack-row h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; }
.stack-row h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--grad); box-shadow: 0 0 12px var(--glow); }
.chips li { background: color-mix(in srgb, var(--card-solid) 50%, transparent); }
.chips li:hover { border-color: color-mix(in srgb, var(--a3) 55%, transparent); background: color-mix(in srgb, var(--a3) 9%, transparent); box-shadow: 0 0 20px -4px color-mix(in srgb, var(--a3) 45%, transparent); transform: translateY(-2px); }
.chips li { transition: color .3s, border-color .3s, background .3s, box-shadow .3s, transform .4s var(--ease); }

.learning { gap: 18px; margin-top: 48px; }
.learn-card { --tc: var(--a2); padding: 28px; border-radius: 22px; }
.learn-card:nth-child(2) { --tc: var(--a3); }
.learn-card:nth-child(3) { --tc: var(--a1); }
.learn-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent);
  box-shadow: 0 0 24px -8px var(--tc); transition: transform .5s var(--ease);
}
.learn-card:hover .learn-icon { transform: rotate(-8deg) scale(1.08); }
.learn-card h3 { color: var(--tc); }
.learning li { border-bottom-color: var(--edge); }
.learning li:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------------- */
/* Moments: asymmetric mosaic                                             */
/* ---------------------------------------------------------------------- */
.sec-num--moments { top: 40px; }
.moments-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.moment { aspect-ratio: auto; height: 100%; border-radius: 20px; border: 1px solid var(--edge); }
.moment--big { grid-column: span 2; grid-row: span 2; }
.moment--tall { grid-row: span 2; }
.moment--wide { grid-column: span 2; }
.moment img { filter: saturate(.9); transition: transform 1.1s var(--ease), filter .6s; }
.moment::after { background: linear-gradient(180deg, transparent 45%, rgba(5, 6, 10, .78)); }
.moment::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from var(--ang), var(--a4), var(--a5), var(--a2), var(--a1), var(--a4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.moment:hover::before, .moment:focus-visible::before { opacity: 1; animation: ang 4s linear infinite; }
.moment span { transform: translateY(6px); transition: transform .5s var(--ease); font-size: 11.5px; }
.moment span::before { content: "◆ "; color: var(--a4); }
.moment:hover span { transform: none; }
.moment:hover img { filter: saturate(1.1); transform: scale(1.07); }
.moment:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 50px -20px color-mix(in srgb, var(--a4) 50%, transparent); }

/* ---------------------------------------------------------------------- */
/* Contact: gyroscope, rising particles, a CTA with a travelling border   */
/* ---------------------------------------------------------------------- */
.contact-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact-particles canvas { position: absolute !important; }
.gyro { position: absolute; left: 50%; top: 44%; width: min(620px, 92vw); aspect-ratio: 1; transform: translate(-50%, -50%); perspective: 1100px; z-index: -1; pointer-events: none; opacity: .65; }
.gyro-core { position: absolute; inset: 42%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--a1) 60%, transparent), transparent 70%); filter: blur(12px); animation: breathe 5s ease-in-out infinite; }
.contact-title em { -webkit-text-stroke: 1px var(--stroke); }
.mail-cta { position: relative; isolation: isolate; border-color: transparent; background: var(--card); box-shadow: 0 30px 70px -30px var(--glow); }
.mail-cta::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), var(--a1), var(--a2), var(--a3), var(--a1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .9;
}
.mail-cta::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--a1); z-index: -1;
  animation: ctaping 3s ease-out infinite; pointer-events: none;
}
@keyframes ctaping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.12, 1.4); opacity: 0; } }
.mail-cta:hover::before { animation-duration: 2s; }
.mail-cta-icon { box-shadow: 0 0 24px -4px var(--glow); }
.socials a { background: var(--card); border-color: var(--edge); transition: color .3s, border-color .3s, transform .45s var(--ease), box-shadow .4s; }
.socials a:hover { border-color: color-mix(in srgb, var(--a1) 50%, transparent); box-shadow: 0 12px 30px -14px var(--glow); }
.socials a:hover .icon { animation: hop .6s var(--ease); color: var(--a1); }
@keyframes hop { 40% { transform: translateY(-5px) rotate(-10deg); } }

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--lg { grid-column: span 1; }
  .tl-item:first-of-type::after { left: 169px; }
  .orbit { --size: 320px; }
  .orbit-ring--1 { --r: 64px; } .orbit-ring--2 { --r: 108px; } .orbit-ring--3 { --r: 152px; }
  .deco--about-cube { right: 3%; top: 90px; }
}
@media (max-width: 900px) {
  .holo { max-width: 130px; flex-shrink: 0; }
  .holo-orbit, .holo-ring--a { display: none; }
  .holo .profile-avatar { width: 76%; }
  .profile-card { align-items: center; }
  .profile-card figcaption { flex: 1; }
  .section-head--split { grid-template-columns: 1fr; }
  .orbit { justify-self: center; margin: 0; }
  .project--feature, .project--wide:not(.project--feature) { display: flex; }
  .project--feature .project-art { min-height: 0; height: 220px; margin-top: 18px; order: 0; }
  .project--feature h3 { margin-top: 22px; }
  .project--wide:not(.project--feature) .project-art { height: 140px; margin-top: 18px; }
  .stack { grid-template-columns: 1fr; }
  .deco--ico, .deco--torus { width: 150px; opacity: .35; }
  .deco--about-cube { display: none; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .tile { --pad: 24px; }
  .tile--lg .tile-icon { top: 136px; }
  .tile-art { height: 160px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { min-height: 150px; padding: 18px !important; }
  .stat-viz { top: 16px; right: 16px; transform: scale(.8); transform-origin: top right; }
  .stats .stat-num { font-size: 2.4rem; }
  .stats .stat-label { font-size: 12.5px; }
  .tl-card { padding: 22px; }
  .tl-ghost { font-size: 3.6rem; }
  .tl-item::before { left: -1px; }
  .tl-item:first-of-type::after { left: -7px; top: 0; }
  .project { padding: 22px; }
  .project--feature { padding: 22px; }
  .project--feature .project-art { height: 190px; }
  .orbit { --size: 280px; margin: -10px auto -20px; }
  .orbit-ring--1 { --r: 56px; } .orbit-ring--2 { --r: 94px; } .orbit-ring--3 { --r: 132px; }
  .orb { width: 32px; height: 32px; margin: -16px; }
  .orb img { padding: 6px; }
  .orbit-core { width: 60px; height: 60px; margin: -30px; border-radius: 18px; }
  .moments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .sec-num { font-size: 6.5rem; }
  .deco--dots { display: none; }
  .gyro { top: 36%; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient .amb { animation: none; }
  .cursor-aura, .contact-particles { display: none; }
}
.art .big-num { fill: var(--tc); stroke: none; font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.project--wide:not(.project--feature) .project-art .art { max-height: 170px; margin: auto; }

/* ---------------------------------------------------------------------- */
/* Hero visual: profile card, code card, hello bubble and draggable stickers */
/* ---------------------------------------------------------------------- */
@property --fy { syntax: '<length>'; inherits: false; initial-value: 0px; }
.hero-visual { position: relative; justify-self: center; width: min(470px, 100%); pointer-events: auto; }
.hv-stage { position: relative; height: 480px; }
.hv-stage > * { translate: var(--px, 0) var(--py, 0); transition: translate .5s var(--ease); }
.hv-blob {
  position: absolute; left: 12%; top: 16%; width: 72%; aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--a1) 40%, transparent), color-mix(in srgb, var(--a2) 30%, transparent) 60%, transparent 75%);
  filter: blur(30px); opacity: .7; animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob { 50% { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; transform: rotate(20deg) scale(1.06); } }

.hv-code {
  position: absolute; right: 0; top: 18px; width: 290px; padding: 0 0 16px; border-radius: 16px; z-index: 1;
  background: var(--card); border: 1px solid var(--edge); box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: rotate(4deg);
}
.hv-code-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--edge); }
.hv-code-bar i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.hv-code-bar i:nth-child(2) { background: #fbbf24; } .hv-code-bar i:nth-child(3) { background: #34d399; }
.hv-code-bar span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.hv-code pre { margin: 0; padding: 14px 16px 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.75; color: var(--muted); white-space: pre; overflow: hidden; }
.hv-code .k { color: var(--a2); } .hv-code .v { color: var(--a1); } .hv-code .s { color: var(--a3); } .hv-code .n { color: var(--a4); }
.hv-caret { display: inline-block; width: 7px; height: 14px; margin-left: 3px; vertical-align: -2px; background: var(--a1); animation: blink 1s steps(1) infinite; }

.hv-card {
  position: absolute; left: 30px; top: 104px; width: 272px; margin: 0; padding: 12px; border-radius: 26px; z-index: 2;
  background: var(--card); border: 1px solid var(--edge-hi);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 60px -30px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: rotate(-3deg);
  transition: translate .5s var(--ease), transform .6s var(--ease), box-shadow .5s;
}
.hv-card:hover { transform: rotate(0deg) scale(1.02); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 80px -24px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .08); }
.hv-photo { position: relative; aspect-ratio: 1 / .9; border-radius: 18px; overflow: hidden; background: var(--grad); }
.hv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform .8s var(--ease); }
.hv-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); transform: translateX(-100%); transition: transform 1s var(--ease); }
.hv-card:hover .hv-photo img { transform: scale(1.05); }
.hv-card:hover .hv-photo::after { transform: translateX(100%); }
.hv-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 14px 6px 4px; }
.hv-card strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.02em; }
.hv-card figcaption > span:not(.hv-status) { color: var(--muted); font-size: .88rem; }
.hv-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 10px; border-radius: 999px; align-self: flex-start; font-size: 10px; color: var(--a3); background: color-mix(in srgb, var(--a3) 10%, transparent); border: 1px solid color-mix(in srgb, var(--a3) 30%, transparent); }

.hv-hello {
  position: absolute; left: -14px; top: 66px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 18px 18px 18px 4px; font-weight: 600; font-size: 14px;
  color: var(--on-accent); background: var(--grad); box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--a1) 70%, transparent);
  transform: rotate(-4deg); transition: translate .5s var(--ease), transform .4s var(--ease);
}
.hv-hello:hover { transform: rotate(0deg) scale(1.06); }
.hv-hello:active { transform: scale(.95); }
.hv-wave { display: inline-block; font-size: 18px; transform-origin: 70% 80%; animation: wave-hand 2.6s ease-in-out 2.4s infinite; }
@keyframes wave-hand { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
.hv-hello-text { display: inline-block; min-width: 9ch; }
.hv-hello.is-pop .hv-hello-text { animation: hellopop .45s var(--ease); }
@keyframes hellopop { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }

.hv-sticker {
  --r: 0deg; --dx: 0px; --dy: 0px;
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text);
  background: var(--card-solid); border: 1px solid var(--edge-hi); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55);
  cursor: grab; user-select: none; touch-action: none;
  transform: translate(var(--dx), calc(var(--dy) + var(--fy))) rotate(var(--r));
  animation: stickerfloat 5s ease-in-out infinite; transition: translate .5s var(--ease), box-shadow .3s, scale .3s var(--ease);
}
.hv-sticker i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 8px var(--sc); }
.hv-sticker:hover { scale: 1.08; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--sc) 60%, transparent); }
.hv-sticker.is-drag { cursor: grabbing; animation-play-state: paused; scale: 1.12; transition: box-shadow .3s, scale .3s; box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .6); z-index: 6; }
@keyframes stickerfloat { 50% { --fy: -8px; } }
.hv-sticker--1 { --sc: var(--a4); --r: -6deg; left: 120px; top: 0; }
.hv-sticker--2 { --sc: var(--a1); --r: 5deg; right: 6px; top: 236px; animation-delay: -1.2s; }
.hv-sticker--3 { --sc: var(--a2); --r: -4deg; right: 34px; bottom: 34px; animation-delay: -2.4s; }
.hv-sticker--4 { --sc: var(--a3); --r: 7deg; left: 0; bottom: 70px; animation-delay: -3.6s; }
.hv-hint { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; font-size: 10px; color: var(--dim); opacity: .8; }
.hv-hint::before { content: "↖ "; }
@media (hover: none) { .hv-hint { display: none; } }

@media (max-width: 1080px) {
  .hv-stage { scale: .86; transform-origin: center; }
}
@media (max-width: 900px) {
  .hero-visual { order: -1; justify-self: start; width: auto; margin: 0; }
  .hv-stage { scale: none; height: auto; display: flex; align-items: center; gap: 14px; }
  .hv-stage > * { translate: none; }
  .hv-code, .hv-sticker, .hv-blob, .hv-hint, .hv-card figcaption { display: none; }
  .hv-card { position: relative; left: auto; top: auto; width: 92px; padding: 5px; border-radius: 50%; transform: none; }
  .hv-photo { aspect-ratio: 1; border-radius: 50%; }
  .hv-hello { position: relative; left: auto; top: auto; font-size: 13px; padding: 9px 14px 9px 10px; transform: rotate(-2deg); }
}

/* Award trophies */
.trophy .tr-cup { fill: url(#gGold); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--a4) 55%, transparent)); }
.trophy .tr-handle { fill: none; stroke: var(--a4); stroke-width: 3.5; stroke-linecap: round; }
.trophy .tr-base { fill: color-mix(in srgb, var(--a4) 70%, #7c2d12); }
.trophy .tr-plinth { fill: color-mix(in srgb, var(--a4) 45%, #431407); }
.trophy .tr-shine { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 2.4; stroke-linecap: round; }
.trophy .tr-star { fill: #fff; opacity: .95; }
.trophy { transform-origin: 50px 80px; animation: trophybob 4s ease-in-out infinite; }
@keyframes trophybob { 50% { transform: translateY(-3px) rotate(-2deg); } }
.award:hover .trophy { animation: trophycheer .9s var(--ease); }
@keyframes trophycheer { 30% { transform: translateY(-8px) rotate(-8deg) scale(1.06); } 60% { transform: translateY(-4px) rotate(6deg) scale(1.04); } }
.award:hover .medal svg { animation: none; }
.stat-viz--stars .icon { width: 24px; height: 24px; }
