:root {
  --bg: #0c0e11;
  --surface: rgba(255, 255, 255, .028);
  --border: rgba(170, 185, 200, .11);
  --text: #e7e9ec;
  --muted: #8a929c;
  --copper: #d48a4e;
  --copper-2: #a9622c;
  --copper-light: #e7a874;
  --steel: #9aa4af;
  --c1: var(--copper);
  --c2: #3a4450;
  --c3: #59626d;
  --grad: linear-gradient(100deg, #f1f3f5 10%, #e0a676 65%, #c27a41);
  --hover: rgba(212, 138, 78, .45);
  --strong: #ffffff;
  --nav-bg: rgba(14, 17, 21, .7);
  --panel: rgba(16, 19, 23, .88);
  --glow: rgba(212, 138, 78, .06);
  --spot: rgba(212, 138, 78, .1);
  --dot: #3a4450;
  --on-copper: #160d05;
  --magnet-n: #2c343d;
  --magnet-s: #191d23;
  --winding-bg: #6b3d1b;
  --winding-line: #e3a06a;
}

[data-bs-theme="light"] {
  --bg: #f2f3f5;
  --surface: rgba(20, 30, 40, .03);
  --border: rgba(20, 30, 40, .12);
  --text: #14181d;
  --muted: #5d6570;
  --copper: #b4632a;
  --copper-2: #8f4c1f;
  --copper-light: #d08a54;
  --steel: #5d6570;
  --c1: var(--copper);
  --c2: #c3c9d0;
  --c3: #9aa3ad;
  --grad: linear-gradient(100deg, #14181d 15%, #a85c27 75%);
  --hover: rgba(180, 99, 42, .5);
  --strong: #000000;
  --nav-bg: rgba(255, 255, 255, .75);
  --panel: rgba(255, 255, 255, .92);
  --glow: rgba(180, 99, 42, .05);
  --spot: rgba(180, 99, 42, .08);
  --dot: #c3c9d0;
  --on-copper: #ffffff;
  --magnet-n: #c9ced4;
  --magnet-s: #a9b0b8;
  --winding-bg: #dba67c;
  --winding-line: #8f4c1f;
}

.theme-axial h1, .theme-axial h2, .theme-axial h3, .theme-axial h4, .theme-axial h5,
.theme-axial .brand, .theme-axial .stat-num {
  font-family: "Chakra Petch", "Space Grotesk", sans-serif;
  letter-spacing: .01em;
}

.theme-axial { --mesh-line: rgba(170, 185, 200, .075); }
[data-bs-theme="light"] .theme-axial { --mesh-line: rgba(20, 30, 40, .08); }
.theme-axial .grid-overlay { display: none; }
.mesh-bg {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  mask-image: radial-gradient(ellipse at 72% 30%, #000 25%, rgba(0, 0, 0, .3) 90%);
}
.theme-axial .aurora { opacity: .12; }
.theme-axial .aurora span:nth-child(1), .theme-axial .aurora span:nth-child(3) { background: var(--copper); }
.theme-axial .aurora span:nth-child(2) { background: var(--steel); }

.theme-axial .btn-neon {
  background: linear-gradient(135deg, var(--copper-light), var(--copper) 45%, var(--copper-2));
  color: var(--on-copper);
}
.theme-axial .btn-neon:hover {
  background: linear-gradient(135deg, var(--copper-light), var(--copper) 45%, var(--copper-2));
  color: var(--on-copper); filter: brightness(1.08); box-shadow: 0 12px 30px -10px var(--copper);
}
.theme-axial .btn-ghost:hover { color: var(--copper); border-color: var(--copper); }
.theme-axial .pill-nav .brand { color: var(--copper); }
.theme-axial .pill-nav .nav-cta { background: var(--copper); color: var(--on-copper); }
.theme-axial .pill-nav .nav-cta:hover { background: var(--copper-light); color: var(--on-copper); }
.theme-axial .hero-title .typed, .theme-axial .caret { color: var(--copper); }
.theme-axial .status-chip .dot { background: var(--copper); }
.theme-axial .tag { color: var(--copper); border-color: color-mix(in srgb, var(--copper) 35%, transparent); }
.theme-axial .avatar { background: linear-gradient(135deg, var(--copper-light), var(--copper-2)); color: var(--on-copper); }
.theme-axial .back-link:hover, .theme-axial .socials a:hover { color: var(--copper); }

.theme-axial .eyebrow { color: var(--copper); display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase; }
.theme-axial .eyebrow::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  background: repeating-conic-gradient(var(--copper) 0 16deg, transparent 16deg 22.5deg);
  mask: radial-gradient(circle, transparent 3px, #000 3.5px);
  animation: axial-spin 8s linear infinite;
}
@keyframes axial-spin { to { transform: rotate(360deg); } }

.theme-axial .ring { background: conic-gradient(var(--copper) calc(var(--fill) * 1%), var(--track) 0); }
.theme-axial .ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(var(--bg) 0 3deg, transparent 3deg 22.5deg);
}
.theme-axial .ring::before { z-index: 1; inset: 8px; }
.theme-axial .ring span { z-index: 2; }
.theme-axial .section-note { max-width: 46rem; margin: .5rem 0 0; font-size: .95rem; }
.theme-axial .skill-chip:hover { border-color: var(--copper); color: var(--copper); }

.theme-axial .project::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0; transition: opacity .3s;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
.theme-axial .project:hover::after { opacity: 1; }
.theme-axial .project:hover .project-arrow { color: var(--copper); }

.theme-axial .journey::before { width: 2px; background: linear-gradient(var(--copper), color-mix(in srgb, var(--copper) 10%, transparent)); opacity: .7; }
.theme-axial .journey-item::after {
  border: 0; width: 18px; height: 18px; left: 142px; top: 1.5rem;
  background: repeating-conic-gradient(var(--copper) 0 30deg, var(--bg) 30deg 45deg);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--border);
  animation: axial-spin 12s linear infinite;
}

.theme-axial .contact-card { border-top: 2px solid var(--copper); }

.motor-wrap { max-width: 560px; margin-inline: auto; }
.motor-wrap.motor-double { max-width: 440px; }
.motor {
  width: 100%; height: auto; display: block; overflow: visible; cursor: pointer;
  --yoke-face: #808080; --yoke-side: #525252;
  --coil-face: #ff8c00; --coil-side: #a05a00;
  --plate-face: #00c8ff; --plate-side: #0090bd;
  --n-face: #dc0000; --n-side: #8f0000;
  --s-face: #0000dc; --s-side: #00008f;
  --tooth-face: #808080; --tooth-side: #525252;
  --insul-face: #e8e02e;
  --bobbin-face: #282828; --bobbin-side: #161618;
  --edge: rgba(0, 0, 0, .55);
}
[data-bs-theme="light"] .motor { --yoke-face: #8d9196; --yoke-side: #63676c; --edge: rgba(0, 0, 0, .45); }
.motor use { vector-effect: non-scaling-stroke; }
.motor .layer, .motor .spin { will-change: transform; }
.motor .spin { transform-box: fill-box; transform-origin: center; }
.motor .yoke-face { fill: var(--yoke-face); stroke: var(--edge); stroke-width: 1.2; }
.motor .yoke-side { fill: var(--yoke-side); stroke: var(--yoke-side); stroke-width: 1.2; }
.motor .coil-face { fill: var(--coil-face); stroke: var(--edge); stroke-width: 1.2; }
.motor .coil-side { fill: var(--coil-side); stroke: var(--coil-side); stroke-width: 4.2; }
.motor .plate-face { fill: var(--plate-face); stroke: var(--edge); stroke-width: .6; }
.motor .plate-side { fill: var(--plate-side); stroke: var(--plate-side); stroke-width: 1.2; }
.motor .n-face { fill: var(--n-face); stroke: var(--edge); stroke-width: 1.2; }
.motor .n-side { fill: var(--n-side); stroke: var(--n-side); stroke-width: 1.2; }
.motor .s-face { fill: var(--s-face); stroke: var(--edge); stroke-width: 1.2; }
.motor .s-side { fill: var(--s-side); stroke: var(--s-side); stroke-width: 1.2; }
.motor .tooth-side { fill: var(--tooth-side); stroke: var(--tooth-side); stroke-width: 1.2; }
.motor .insul-face { fill: var(--insul-face); stroke: var(--edge); stroke-width: .7; }
.motor .bobbin-face { fill: var(--bobbin-face); stroke: var(--edge); stroke-width: .7; }
.motor .bobbin-side { fill: var(--bobbin-side); stroke: var(--bobbin-side); stroke-width: 1.2; }
.motor .bore { fill: var(--bobbin-side); }
.motor .layer-label { opacity: var(--e); }
.motor .mesh { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .5; opacity: .45; }
[data-bs-theme="light"] .motor .mesh { stroke: rgba(0, 0, 0, .5); }
.motor .layer-label line { stroke: var(--muted); stroke-width: 1; }
.motor .layer-label text { fill: var(--muted); font-size: 11px; dominant-baseline: middle; text-transform: uppercase; letter-spacing: .12em; }
.motor-readout { display: flex; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.motor-readout div {
  display: flex; flex-direction: column; align-items: center; min-width: 88px;
  padding: .5rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.motor-readout .label { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.motor-readout .value { color: var(--copper); font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.motor-caption { text-align: center; color: var(--muted); font-size: .72rem; margin: .75rem 0 0; }

.w-face { fill: #b87333; stroke: rgba(0, 0, 0, .4); stroke-width: 1; }
.w-alt { fill: #9c5e28; stroke: rgba(0, 0, 0, .4); stroke-width: 1; }
.w-side { fill: #5f3a1a; }
.w-former { fill: #54575e; stroke: rgba(0, 0, 0, .4); stroke-width: 1; }
[data-bs-theme="light"] .w-face { stroke: rgba(255, 255, 255, .3); }
[data-bs-theme="light"] .w-alt { stroke: rgba(255, 255, 255, .3); }
.rm-face { fill: #808080; stroke: rgba(0, 0, 0, .5); stroke-width: 1; }
.rm-side { fill: #525252; stroke: #525252; stroke-width: 5.5; }
.rm-tooth { fill: #9a9ea4; stroke: rgba(0, 0, 0, .5); stroke-width: 1; }
.rm-coil { fill: #a02828; stroke: rgba(0, 0, 0, .5); stroke-width: .8; }
.rm-gap { fill: #22262b; stroke: rgba(0, 0, 0, .4); stroke-width: .5; }
.rm-mag { fill: #0000dc; stroke: rgba(0, 0, 0, .5); stroke-width: 1; }
.rm-magn { fill: #dc0000; stroke: rgba(0, 0, 0, .5); stroke-width: 1; }
.rm-hub { fill: #5a5d63; stroke: rgba(0, 0, 0, .5); stroke-width: 1; }

.lat { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: .7; vector-effect: non-scaling-stroke; }
.lat.wire { stroke: rgba(122, 158, 110, .6); stroke-width: .9; }
.mc-plate { fill: #262a33; stroke: rgba(255, 255, 255, .12); }
.mc-plate-front { fill: #1b1f27; }
.mc-side { fill: #16181d; }
.r1 { fill: #8f4f2f; } .r2 { fill: #4f7d68; } .r3 { fill: #6a5a96; } .r4 { fill: #3f6f8f; }
.r5 { fill: #c98f45; } .r6 { fill: #7fb89e; } .r7 { fill: #9486c9; } .r8 { fill: #69a4c9; }
.deco-side { fill: #101216; }
.deco-edge { fill: none; stroke: var(--copper); stroke-width: 1.4; opacity: .5; vector-effect: non-scaling-stroke; }
.deco-edge.e2 { stroke: rgba(122, 158, 110, .55); }
[data-bs-theme="light"] .lat { stroke: rgba(0, 0, 0, .32); }
[data-bs-theme="light"] .lat.wire { stroke: rgba(80, 110, 70, .55); }
[data-bs-theme="light"] .mc-side { fill: #0e1013; }

.theme-axial footer,
.theme-axial #about, .theme-axial #projects, .theme-axial #experience, .theme-axial #contact { position: relative; isolation: isolate; }
.theme-axial { overflow-x: clip; }
.ax-deco {
  position: absolute; z-index: -1; pointer-events: none; top: 50%;
  width: min(46vw, 560px); height: auto; transform: translateY(-50%); opacity: .8;
}
#about .ax-deco {
  right: -3rem; top: 1.5rem; transform: none; width: min(36vw, 420px); opacity: .45;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 80%);
  mask-image: linear-gradient(to left, #000 30%, transparent 80%);
}
#projects .ax-deco, #experience .ax-deco {
  right: -3rem;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 82%);
  mask-image: linear-gradient(to left, #000 30%, transparent 82%);
}
#contact .ax-deco {
  left: -3rem;
  -webkit-mask-image: linear-gradient(to right, #000 30%, transparent 82%);
  mask-image: linear-gradient(to right, #000 30%, transparent 82%);
}
footer .ax-deco {
  left: 50%; transform: translate(-50%, -50%); width: min(64vw, 640px); opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 74%);
}
footer .footer-stack .socials { margin-bottom: .75rem; }
footer .footer-stack .copy { margin-bottom: 0; }
.theme-axial footer { padding-bottom: 1.5rem; }
.theme-axial footer .footer-stack { display: flex; flex-direction: column; align-items: center; min-height: calc(min(24vw, 15rem) - 2.5rem); }
.theme-axial footer .footer-stack .socials { margin-top: auto; margin-bottom: .35rem; }
.theme-axial footer .footer-stack .copy { color: color-mix(in srgb, var(--text) 75%, var(--muted)); }
@media (max-width: 768px) { .theme-axial footer .footer-stack { min-height: calc(27vw - 2.5rem); } }
[data-bs-theme="light"] .ax-deco { opacity: .55; }
@media (max-width: 768px) { .ax-deco { width: 72vw; opacity: .5; } }
