/* ====== Mystical Technical Dark Theme (Multi-Page) ====== */
:root {
  --bg: #0b0f13;
  --bg-2: #0e141b;
  --fg: #e6eef6;
  --muted: #93a1b1;
  --neon: #7df9ff;
  --accent: #b292ff;
  --accent-2: #76ffa6;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --shadow: 0 10px 40px rgba(0,0,0,0.5);
}

html.theme-alt {
  /* Alternate palette */
  --bg: #0c0b13;
  --bg-2: #131027;
  --fg: #e9e9ff;
  --muted: #a9a2d7;
  --neon: #7eebff;
  --accent: #8ab6ff;
  --accent-2: #ffd36e;
  --glass: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.11);
}
html.theme-ocean {
  --bg: #021219;
  --bg-2: #03202d;
  --fg: #dff7ff;
  --muted: #87b4c8;
  --neon: #36d7ff;
  --accent: #3fe2b8;
  --accent-2: #6ae8ff;
  --glass: rgba(54,215,255,0.08);
  --glass-border: rgba(54,215,255,0.25);
  --shadow: 0 14px 44px rgba(2,22,33,0.6);
}
html.theme-sunset {
  --bg: #1a0614;
  --bg-2: #260a1d;
  --fg: #ffe9f5;
  --muted: #f7b0cf;
  --neon: #ff8c64;
  --accent: #ff53c4;
  --accent-2: #ffd447;
  --glass: rgba(255,83,196,0.08);
  --glass-border: rgba(255,140,100,0.22);
  --shadow: 0 14px 44px rgba(26,6,20,0.55);
}
html.theme-terminal {
  --bg: #010904;
  --bg-2: #03140a;
  --fg: #dcffe2;
  --muted: #82d695;
  --neon: #57ff6d;
  --accent: #2fd8ff;
  --accent-2: #fff68c;
  --glass: rgba(87,255,109,0.07);
  --glass-border: rgba(87,255,109,0.25);
  --shadow: 0 14px 44px rgba(1,18,10,0.65);
}
html.theme-lagoon {
  --bg: #02121b;
  --bg-2: #032634;
  --fg: #dcf5ff;
  --muted: #83bada;
  --neon: #33e0ff;
  --accent: #5cf7c0;
  --accent-2: #ffe29d;
  --glass: rgba(51,224,255,0.08);
  --glass-border: rgba(51,224,255,0.26);
  --shadow: 0 16px 46px rgba(2,32,43,0.62);
}
html.theme-ember {
  --bg: #180908;
  --bg-2: #2b0f0c;
  --fg: #ffe7db;
  --muted: #f0ad98;
  --neon: #ff7a45;
  --accent: #ffb347;
  --accent-2: #ffe49a;
  --glass: rgba(255,122,69,0.08);
  --glass-border: rgba(255,122,69,0.22);
  --shadow: 0 16px 46px rgba(24,9,8,0.6);
}
html.theme-midnight {
  --bg: #08071a;
  --bg-2: #111034;
  --fg: #eae7ff;
  --muted: #a6a3d5;
  --neon: #6f6bff;
  --accent: #9a6fff;
  --accent-2: #ffafef;
  --glass: rgba(111,107,255,0.08);
  --glass-border: rgba(154,111,255,0.24);
  --shadow: 0 18px 52px rgba(8,7,26,0.62);
}
html.theme-jade {
  --bg: #06140f;
  --bg-2: #0c251c;
  --fg: #e6fff5;
  --muted: #8ddbbd;
  --neon: #4dff88;
  --accent: #3bd1c0;
  --accent-2: #c6ff6f;
  --glass: rgba(77,255,136,0.08);
  --glass-border: rgba(77,255,136,0.24);
  --shadow: 0 16px 48px rgba(6,20,15,0.58);
}
html.theme-solstice {
  --bg: #101414;
  --bg-2: #1d2525;
  --fg: #f0f5f5;
  --muted: #aab7b7;
  --neon: #ffd166;
  --accent: #a5d8ff;
  --accent-2: #ff7aa2;
  --glass: rgba(255,209,102,0.08);
  --glass-border: rgba(255,209,102,0.22);
  --shadow: 0 18px 48px rgba(16,20,20,0.6);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }

html.theme-mystic {
  --bg: #f7fbff;
  --bg2: #eef6ff;
  --fg: #1f2a37;
  --muted: #4b5d73;
  --accent: #4f7fe0;
  --accent-2: #2f9ec5;
  --glass: rgba(255,255,255,0.62);
  --glass-border: rgba(88, 122, 170, 0.45);
  --shadow: 0 18px 44px rgba(86, 118, 168, 0.28);
}
html.theme-mystic .btn-ghost {
  background: rgba(79,127,224,.14);
  border-color: rgba(79,127,224,.38);
  color: #1a304d;
}
html.theme-mystic .btn-ghost:hover {
  background: rgba(79,127,224,.22);
}
html.theme-mystic .glass {
  border-color: rgba(88,122,170,.42);
}
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--fg);
  background: radial-gradient(1200px 800px at 30% -10%, #121a24 0%, var(--bg) 60%) fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Cantarell, 'Helvetica Neue', Arial;
  line-height: 1.55;
  transition: filter .35s ease;
}

#starfield, #matrix {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.container { width: min(1200px, 92vw); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.1));
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .65rem 0;
  flex-wrap: wrap;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  order: 0;
}
.menu-toggle::before {
  content: "";
  width: 1.4rem;
  height: 1.4rem;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  opacity: .85;
}
.sigil {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: .4rem;
  text-decoration: none;
}
.sigil img {
  width: clamp(56px, 7vw, 72px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(125,249,255,.25));
  transition: transform .3s ease;
}
.sigil:hover img { transform: scale(1.02) rotate(-2deg); }
.effects-dock {
  order: 3;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  position: relative;
}
.effects-dock .sigil {
  margin: 0;
}
.fx-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  z-index: 12;
  display: none;
  align-items: center;
  gap: .35rem;
  overflow: visible;
}
.effects-dock.is-expanded .fx-panel,
.effects-dock[data-expanded="true"] .fx-panel {
  display: flex;
  max-width: min(92vw, 760px);
  padding: .35rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(6, 12, 20, .93);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.fx-panel .toggles {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: .2rem;
  scrollbar-width: thin;
}
.fx-panel .toggles::-webkit-scrollbar { height: 6px; }
.fx-panel .toggles::-webkit-scrollbar-thumb { background: rgba(125,249,255,.25); border-radius: 999px; }
.fx-panel .toggles .btn-ghost {
  width: 52px;
  height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}
.fx-panel .toggles .btn-ghost::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.effects-dock .fx-collapse {
  display: inline-flex;
}
.fx-collapse {
  width: 48px;
  flex: 0 0 auto;
  z-index: 1;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform .2s ease;
  color: var(--accent);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--glass-border);
}
.fx-collapse::before {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.7 4.8L19 8.5l-4 3.1 1.5 5.2L12 14.6 7.5 16.8 9 11.6l-4-3.1 5.3-1.7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.7 4.8L19 8.5l-4 3.1 1.5 5.2L12 14.6 7.5 16.8 9 11.6l-4-3.1 5.3-1.7z'/%3E%3C/svg%3E");
  transition: transform .25s ease, -webkit-mask-image .25s ease, mask-image .25s ease;
}

.comet-launch {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--glass-border);
  color: var(--accent-2);
  transition: transform .2s ease;
  order: 0;
  margin: 0 .4rem 0 0;
}
.comet-launch::before {
  content: "☄";
  font-size: 1.05rem;
  line-height: 1;
  color: #d9f7ff;
  text-shadow: 0 0 14px rgba(125,249,255,.65);
}

.comet-launch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px rgba(125,249,255,.18), 0 0 22px rgba(125,249,255,.4);
  transform: translateY(-1px);
}
.effects-dock.is-expanded .fx-collapse::before,
.effects-dock[data-expanded="true"] .fx-collapse::before {
  transform: rotate(90deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v2H4zm0 7h16v2H4zm0 7h16v2H4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v2H4zm0 7h16v2H4zm0 7h16v2H4z'/%3E%3C/svg%3E");
}

.nav {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
  margin: 0 auto;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: normal;
  min-width: 0;
  align-content: center;
  row-gap: .12rem;
  padding: .15rem 0;
}

.nav a {
  color: var(--fg); opacity: .9; text-decoration: none; padding: .5rem .75rem; border-radius: 8px;
}
.nav a:hover { background: var(--glass); }
.nav a.active { box-shadow: inset 0 0 0 2px var(--accent), 0 0 12px rgba(178,146,255,.35); }
.nav .nav-break {
  flex-basis: 100%;
  height: 0;
}
.nav .nav-secondary-row {
  flex-basis: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .3rem;
}
.nav a.nav-secondary {
  text-align: center;
  opacity: .8;
  font-size: .9rem;
  padding-top: .35rem;
  padding-bottom: .35rem;
}
.header-inner.effects-open .nav {
  justify-content: center;
  margin: 0 auto;
}
.toggles {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  order: 2;
  margin-left: auto;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.site-header.nav-open .menu-toggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.4 5.3 5.3 6.4 10.9 12l-5.6 5.6 1.1 1.1L12 13.1l5.6 5.6 1.1-1.1-5.6-5.6 5.6-5.6-1.1-1.1L12 10.9z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.4 5.3 5.3 6.4 10.9 12l-5.6 5.6 1.1 1.1L12 13.1l5.6 5.6 1.1-1.1-5.6-5.6 5.6-5.6-1.1-1.1L12 10.9z'/%3E%3C/svg%3E");
}
@media (min-width: 961px) {
  .menu-toggle {
    display: none !important;
  }
  .header-inner {
    position: relative;
  }
  .site-header .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: max-content;
    max-width: min(760px, calc(100% - 340px));
    justify-content: center;
    align-content: center;
  }
}

@media (max-width: 1160px) and (min-width: 961px) {
  .site-header .nav {
    position: static;
    transform: none;
    max-width: 100%;
    width: auto;
    margin: 0 auto;
  }
}
.toggles .btn-ghost {
  margin-left: .35rem;
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.toggles .btn-ghost::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  opacity: .9;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.site-header.glass {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

main {
  flex: 1;
  width: 100%;
  padding: 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero {
  width: min(1100px, 95vw);
  margin: 1.2rem auto 0;
  padding: 2.2rem 2rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0;
  letter-spacing: .5px;
}
.hero .spark { color: var(--neon); text-shadow: 0 0 12px rgba(125,249,255,.65); }
.hero .glow { color: var(--accent); text-shadow: 0 0 16px rgba(178,146,255,.55); }
.headline {
  margin: .65rem 0 .35rem;
  font-weight: 600;
  color: var(--fg);
  opacity: .9;
}
.hero-copy .headline { text-align: left; }
.subtext { color: var(--muted); margin-bottom: 1.1rem; }
.hero-copy .subtext { text-align: left; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.quick-facts {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: .4rem;
}
.quick-facts a { color: var(--neon); text-decoration: none; }
.badges {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.eyebrow {
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: 2px;
  color: var(--accent-2);
  margin-bottom: .75rem;
  display: inline-block;
}

.hero-right { display: grid; place-items: center; }
.orb {
  position: relative; width: clamp(200px, 34vw, 320px); aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(125,249,255,.25), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(178,146,255,.22), transparent 55%),
              linear-gradient(135deg, rgba(118,255,166,.15), rgba(178,146,255,.08));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 60px rgba(125,249,255,.12), inset 0 0 60px rgba(178,146,255,.08);
}
.runes { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.rune-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: rune-spin 32s linear infinite;
  filter: drop-shadow(0 0 24px rgba(125,249,255,.25));
}
.rune-ring text {
  font-size: 13px;
  letter-spacing: 11px;
  fill: rgba(125,249,255,.45);
  text-transform: uppercase;
}
.rune-ring--inner {
  animation-duration: 24s;
  animation-direction: reverse;
  filter: drop-shadow(0 0 18px rgba(178,146,255,.3));
}
.rune-ring--inner text {
  font-size: 12px;
  letter-spacing: 10px;
  fill: rgba(178,146,255,.5);
}
.rune-core {
  position: relative;
  width: clamp(120px, 40%, 160px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: .2rem;
  background:
    radial-gradient(circle at 50% 28%, rgba(125,249,255,.45), rgba(125,249,255,.12) 55%, transparent 80%),
    linear-gradient(145deg, rgba(118,255,166,.18), rgba(178,146,255,.2));
  border: 1px solid rgba(125,249,255,.35);
  box-shadow: inset 0 0 30px rgba(0,0,0,.45), 0 0 40px rgba(125,249,255,.25);
}
.rune-core::before,
.rune-core::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px solid rgba(178,146,255,.25);
  box-shadow: 0 0 40px rgba(178,146,255,.3);
}
.rune-core::after {
  inset: -20%;
  border: 1px dashed rgba(125,249,255,.25);
  animation: rune-spin 18s linear infinite;
}
.rune-core .glyph {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  letter-spacing: .5rem;
  color: rgba(250,252,255,.92);
  text-shadow: 0 0 20px rgba(125,249,255,.6);
}
.rune-core .caption {
  font-size: .75rem;
  letter-spacing: .45rem;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.rune-core .caption::before,
.rune-core .caption::after {
  content: "—";
  margin: 0 .4rem;
  color: rgba(255,255,255,.35);
}
.pulse {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 120px rgba(178,146,255,.25), inset 0 0 60px rgba(125,249,255,.15);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.03); } }
@keyframes rune-spin { to { transform: rotate(360deg); } }

.section {
  width: min(1100px, 95vw);
  padding: 1.6rem 1.6rem;
  margin: 0 auto;
  text-align: center;
}
.section .center-wrap { width: min(1000px, 92vw); margin: 0 auto; }

h3 { margin: .2rem 0 1rem; font-size: 1.4rem; letter-spacing: .5px; }
h4 { margin: .25rem 0 .5rem; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .9rem;
  justify-items: center;
  margin-top: 1.1rem;
}
.info-grid > div {
  width: 100%;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  text-align: left;
}
.info-grid .label {
  display: block;
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .7;
  color: var(--neon);
  margin-bottom: .35rem;
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}
.skills-layout canvas {
  width: min(100%, 500px);
  max-width: 100%;
  height: auto;
  display: block;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content:center; }
.chip, .badge {
  display: inline-block; padding: .35rem .6rem; border-radius: 999px; font-weight: 600;
  background: rgba(125,249,255,.12); border: 1px solid rgba(125,249,255,.25); color: var(--fg);
}
.badge { background: rgba(178,146,255,.12); border-color: rgba(178,146,255,.25); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  align-items: stretch;
}
.info-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  text-align: left;
  min-width: 0;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  height: 100%;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  justify-content: center;
  width: 100%;
}
.service {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--glass-border);
  text-align: left;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; justify-content:center; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--glass-border);
  border-radius: 14px; padding: .9rem; box-shadow: var(--shadow); text-align:left;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: start;
  gap: .55rem;
  height: 100%;
}
.project-grid .card h4 { margin: 0; }
.card .tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.project-grid .card .tags { margin-top: 0; justify-content: flex-start; }
.card .desc { color: var(--muted); margin: 0; }
.project-grid .card ul {
  margin: .4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: .35rem;
}
.project-grid .card ul li::marker { color: var(--accent); }

.timeline {
  list-style: none; padding: 0; margin: 0 auto;
  border-left: 2px dashed rgba(255,255,255,.15); padding-left: 1rem;
  width: min(800px, 95%); text-align:left;
}
.timeline li { margin: .85rem 0; position: relative; }
.timeline li::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); position: absolute; left: calc(-1rem - 5px); top: .4rem; box-shadow: 0 0 12px rgba(178,146,255,.6);
}
.timeline h4 { margin: 0; }
.timeline .meta { color: var(--muted); font-size: .95rem; margin-bottom: .35rem; display: block; }
.timeline ul {
  list-style: none;
  margin: .45rem 0 0;
  padding: 0 0 0 1.4rem;
  display: grid;
  gap: .35rem;
}
.timeline ul li {
  position: relative;
  color: var(--muted);
}
.timeline ul li::before {
  content: "";
  position: absolute;
  top: .55rem;
  left: -1.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(178,146,255,.45);
}

.edu-list { list-style: none; padding: 0; width: min(800px, 95%); margin: 0 auto; text-align:left; }
.edu-list li { margin: .6rem 0; }
.edu-list .meta { color: var(--muted); font-size: .95rem; display: inline-block; margin-left: .35rem; }

.contact-form {
  display: grid; gap: .75rem; width: min(800px, 95%); margin: 0 auto;
}
.contact-cards .contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  padding: 1rem 1.2rem;
  min-width: 0;
  width: 100%;
}
.contact-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(125,249,255,.08);
  border: 1px solid rgba(125,249,255,.25);
  box-shadow: 0 8px 20px rgba(17,31,48,.35);
  flex-shrink: 0;
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--neon);
}
.contact-head h4 {
  margin: 0;
  flex: 0 0 auto;
}
.contact-detail {
  text-align: left;
  margin: .45rem 0 0;
  color: var(--muted);
}
.contact-cards {
  gap: 1.1rem;
}
.contact-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.contact-detail a {
  color: var(--neon);
}
.contact-detail a:hover {
  text-decoration: underline;
}
.contact-head .contact-detail {
  margin: 0;
  flex: 1 1 100%;
  width: 100%;
  margin-top: .35rem;
}
.contact-form .row {
  display: grid; grid-template-columns: repeat(2,1fr); gap: .75rem;
}
.contact-form .row.actions-row {
  display: flex;
  justify-content: center;
  gap: .75rem;
}
.contact-form label { display: grid; gap: .35rem; text-align: left; }
.contact-form input, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,.06); color: var(--fg);
  border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: .6rem .7rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(125,249,255,.15);
}

.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-block; text-decoration: none; cursor: pointer;
  padding: .6rem .85rem; border-radius: 10px; font-weight: 700; letter-spacing: .2px;
  border: 1px solid transparent; color: var(--bg); background: var(--neon);
  box-shadow: 0 6px 18px rgba(125,249,255,.25);
}
.btn-secondary { background: var(--accent); color: #120824; }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--fg); border-color: var(--glass-border); }
.btn-ghost[aria-pressed="true"] {
  background: rgba(125,249,255,.16);
  border-color: rgba(125,249,255,.45);
  color: var(--accent);
  box-shadow: 0 0 0 2px rgba(125,249,255,.12), 0 0 18px rgba(125,249,255,.32);
}
.btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary:hover { filter: brightness(1.05); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.site-footer {
  border-top: 1px solid var(--glass-border);
  color: var(--muted);
  padding: 1.2rem 0; text-align: center; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.2));
  margin-top: 2rem;
}
.site-footer .container {
  display: flex;
  justify-content: center;
}
.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr minmax(0, auto);
  align-items: center;
  gap: .5rem;
  width: 100%;
  max-width: min(1100px, 90vw);
}
.site-footer .footer-brand { justify-self: start; text-align: left; }
.site-footer .footer-copy { justify-self: center; text-align: center; }
.site-footer .footer-version { justify-self: end; text-align: right; }
.site-footer .sep { opacity: .5; margin: 0 .4rem; }
.site-footer .footer-sep-brand,
.site-footer .footer-sep-version {
  display: none;
}

.muted { color: var(--muted); font-size: .95rem; }
.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity .45s ease;
}
.fx-layer.fx-scanlines {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.2) 0,
    rgba(255,255,255,.2) 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
}
body.scanlines-active .fx-scanlines { opacity: .2; }

.fx-layer.fx-vignette {
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(0,0,0,.65) 100%);
  mix-blend-mode: multiply;
  z-index: 5;
}
body.vignette-active .fx-vignette { opacity: .75; }


.fx-layer.fx-comet {
  z-index: 6;
  pointer-events: none;
  mix-blend-mode: screen;
}
.fx-layer.fx-aurora {
  background: radial-gradient(160% 80% at 20% 20%, rgba(125,249,255,.28) 0%, transparent 60%),
              radial-gradient(140% 120% at 80% 30%, rgba(178,146,255,.22) 0%, transparent 65%),
              radial-gradient(200% 120% at 50% 80%, rgba(118,255,166,.2) 0%, transparent 70%);
  mix-blend-mode: screen;
  animation: auroraFlow 18s ease-in-out infinite alternate;
  z-index: 2;
}
body.aurora-active .fx-aurora { opacity: .55; }

body.focus-active .glass {
  border-color: rgba(125,249,255,.45);
  box-shadow: 0 20px 60px rgba(125,249,255,.26), inset 0 0 32px rgba(125,249,255,.12);
}

body.mono-active main,
body.mono-active .glass {
  filter: saturate(.55) contrast(1.05);
}

body.mono-active .spark,
body.mono-active .glow {
  filter: saturate(1.2);
}

@keyframes auroraFlow {
  0% { transform: translate3d(-6%, -4%, 0) scale(1.05); opacity: .45; }
  50% { transform: translate3d(4%, 3%, 0) scale(1.1); opacity: .6; }
  100% { transform: translate3d(-3%, 6%, 0) scale(1.08); opacity: .48; }
}

/* Layout helpers */
.gridlines::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 20px 20px; pointer-events: none;
}

.fx-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Crect x='8' y='18' width='4' height='4' fill='%23ffffff' opacity='.2'/%3E%3Crect x='58' y='6' width='3' height='3' fill='%23ffffff' opacity='.14'/%3E%3Crect x='96' y='26' width='5' height='5' fill='%23ffffff' opacity='.18'/%3E%3Crect x='18' y='74' width='4' height='4' fill='%23ffffff' opacity='.15'/%3E%3Crect x='74' y='62' width='3' height='3' fill='%23ffffff' opacity='.18'/%3E%3Crect x='102' y='88' width='4' height='4' fill='%23ffffff' opacity='.16'/%3E%3Crect x='46' y='98' width='3' height='3' fill='%23ffffff' opacity='.14'/%3E%3Crect x='28' y='40' width='3' height='3' fill='%23ffffff' opacity='.16'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .45s ease;
}
body.noise-active .fx-noise { opacity: .16; }

body.bloom-active {
  filter: saturate(1.12) brightness(1.04);
}
body.bloom-active .glass {
  box-shadow: 0 20px 58px rgba(125,249,255,.26);
  border-color: rgba(255,255,255,.2);
}
body.bloom-active .spark,
body.bloom-active .glow {
  text-shadow: 0 0 24px rgba(178,146,255,.6);
}
body.bloom-active .site-header {
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

/* matrix canvas hidden state */
#matrix[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: .6rem;
    align-items: flex-start;
  }
  .menu-toggle {
    display: inline-flex;
    order: 0;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: .7rem;
    margin: 0;
    background: rgba(6,12,18,.92);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 18px 44px rgba(0,0,0,.55);
    white-space: normal;
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a { width: 100%; text-align: left; }
  .nav .nav-break {
    display: none;
  }
  .nav .nav-secondary-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
  }
  .nav a.nav-secondary {
    width: 100%;
    text-align: left;
    padding-left: 1rem;
    opacity: .88;
  }
  .effects-dock {
    order: 2;
    margin-left: auto;
    position: relative;
  }
  .comet-launch {
    order: 1;
    margin: 0 .35rem 0 0;
  }
  .header-inner.effects-open .nav {
    justify-content: flex-start;
    margin: 0;
  }
  .effects-dock.is-expanded .fx-panel,
  .effects-dock[data-expanded="true"] .fx-panel {
    max-width: min(92vw, 520px);
    right: 0;
  }
  .fx-panel .toggles {
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: flex-end;
  }
  .fx-panel .toggles .btn-ghost {
    width: 56px;
    height: 56px;
  }
}
@media (max-width: 1050px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-copy .headline, .hero-copy .subtext { text-align: center; }
  .hero .cta { justify-content: center; }
  .badges { justify-content: center; }
}
@media (max-width: 900px) {
  .section { width: min(1000px, 96vw); }
  .section .center-wrap { width: 100%; }
}
@media (max-width: 780px) {
  .hero { padding: 1.8rem 1.4rem; }
  .info-grid > div { text-align: center; }
}
@media (max-width: 640px) {
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form .row.actions-row { flex-direction: column; }
}
@media (max-width: 720px) {
  .card-grid, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .nav { justify-content: flex-start; gap: .25rem; }
  .nav a { padding: .45rem .6rem; font-size: .92rem; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .section { padding: 1.3rem 1rem; }
  .card-grid, .service-grid { gap: .8rem; }
  .info-card, .service { padding: .85rem .9rem; }
  .contact-cards .contact-card { gap: .4rem; }
  .timeline { padding-left: .85rem; }
  .timeline ul { padding-left: 1.1rem; }
  .timeline ul li::before { left: -1.1rem; }
  .rune-core { width: clamp(100px, 48%, 140px); }
  .rune-core .caption { letter-spacing: .25rem; font-size: .68rem; }
  .effects-dock.is-expanded .fx-panel,
  .effects-dock[data-expanded="true"] .fx-panel {
    max-width: 100%;
  }
  .fx-panel .toggles {
    justify-content: flex-start;
  }
  .fx-panel .toggles .btn-ghost {
    width: 64px;
    height: 64px;
  }
  .comet-launch {
    width: 44px;
    height: 44px;
    margin-left: 0;
  }
  .site-footer .footer-brand,
  .site-footer .footer-version {
    display: none;
  }
  .site-footer .footer-copy {
    justify-self: center;
    display: block;
  }
}
@media (max-width: 480px) {
  .contact-icon {
    width: 40px;
    height: 40px;
  }
  .contact-icon svg {
    width: 18px;
    height: 18px;
  }
  .menu-toggle {
    width: 40px;
    height: 40px;
  }
}
@media (min-width: 541px) {
  .site-footer .footer-brand,
  .site-footer .footer-version {
    display: inline;
  }
}
@media (max-width: 640px) {
  .skills-layout canvas {
    width: min(100%, 340px);
  }
}
@media (max-width: 480px) {
  .skills-layout canvas {
    width: min(100%, 280px);
  }
}
@media (max-width: 540px) {
  .site-footer .footer-brand,
  .site-footer .footer-version,
  .site-footer .footer-sep-brand,
  .site-footer .footer-sep-version {
    display: none;
  }
  .site-footer .footer-copy {
    display: inline-block;
  }
}
.contact-card.contact-full {
  grid-column: 1 / -1;
  width: 100%;
}
.contact-card.contact-full .contact-detail {
  margin: .45rem 0 0;
}
.contact-card--hours .contact-head {
  flex-direction: row;
  align-items: center;
}
.fx-panel .toggles #themeToggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.8 5.2H19l-4.2 3.2 1.6 5.4L12 13.4 7.6 15.8l1.6-5.4L5 7.2h5.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.8 5.2H19l-4.2 3.2 1.6 5.4L12 13.4 7.6 15.8l1.6-5.4L5 7.2h5.2z'/%3E%3C/svg%3E");
}
.fx-panel .toggles #matrixToggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h2v16H5zm6 2h2v14h-2zm6-1h2v15h-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h2v16H5zm6 2h2v14h-2zm6-1h2v15h-2z'/%3E%3C/svg%3E");
}
.fx-panel .toggles #gridToggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v6H4zm10 0h6v6h-6zM4 14h6v6H4zm10 0h6v6h-6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h6v6H4zm10 0h6v6h-6zM4 14h6v6H4zm10 0h6v6h-6z'/%3E%3C/svg%3E");
}
.fx-panel .toggles #noiseToggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h2v2H5zm6-1h2v3h-2zm7 3h2v2h-2zm-4 4h2v2h-2zM5 13h2v2H5zm6 6h2v2h-2zm7-3h2v2h-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4h2v2H5zm6-1h2v3h-2zm7 3h2v2h-2zm-4 4h2v2h-2zM5 13h2v2H5zm6 6h2v2h-2zm7-3h2v2h-2z'/%3E%3C/svg%3E");
}
.fx-panel .toggles #bloomToggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2 3.8 4.3.6-3 3 1 4.6-4.3-2.1-4.3 2.1 1-4.6-3-3 4.3-.6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2 3.8 4.3.6-3 3 1 4.6-4.3-2.1-4.3 2.1 1-4.6-3-3 4.3-.6z'/%3E%3C/svg%3E");
}
.fx-panel .toggles #scanToggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z'/%3E%3C/svg%3E");
}
.fx-panel .toggles #vignetteToggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 2a6 6 0 1 1 0 12 6 6 0 0 1 0-12z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 2a6 6 0 1 1 0 12 6 6 0 0 1 0-12z'/%3E%3C/svg%3E");
}
.fx-panel .toggles #auroraToggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17c2.2-7 4.4-7 6.6 0 2.1 7 4.3 7 6.4 0 2.1-7 4.3-7 6.5 0v3H3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17c2.2-7 4.4-7 6.6 0 2.1 7 4.3 7 6.4 0 2.1-7 4.3-7 6.5 0v3H3z'/%3E%3C/svg%3E");
}
.fx-panel .toggles #focusToggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v3h3v2h-3v4h3v2h-3v3h-2v-3H8v-2h3v-4H8V7h3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v3h3v2h-3v4h3v2h-3v3h-2v-3H8v-2h3v-4H8V7h3z'/%3E%3C/svg%3E");
}
.fx-panel .toggles #monoToggle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 0 0 0 16z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a8 8 0 0 0 0 16z'/%3E%3C/svg%3E");
}

.settings-dialog {
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(7, 12, 30, .95), rgba(6, 8, 21, .95));
  color: var(--fg);
  border-radius: 18px;
  padding: 0;
  width: min(94vw, 560px);
  box-shadow: 0 20px 45px rgba(2, 4, 14, .65);
}
.settings-dialog::backdrop {
  background: rgba(2, 6, 18, .72);
  backdrop-filter: blur(3px);
}
.settings-form {
  display: grid;
  gap: .85rem;
  padding: 1.2rem;
}
.settings-block {
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: .9rem;
  background: rgba(255,255,255,.04);
  display: grid;
  gap: .65rem;
}
.settings-form h3 { margin: 0 0 .2rem; }
.settings-form h4 {
  margin: .2rem 0 .1rem;
  color: var(--accent);
  font-size: .95rem;
}
.settings-form label {
  display: grid;
  gap: .4rem;
  font-size: .92rem;
}
.settings-form select,
.settings-form input[type="number"],
.settings-form input[type="text"] {
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.08);
  color: var(--fg);
  padding: .5rem .6rem;
}
.settings-form .setting-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
}
.settings-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem .85rem;
}
.shortcut-grid {
  margin-top: .2rem;
}
.shortcut-grid .settings-help {
  margin: 0;
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: .4rem;
}

.settings-help {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}
.settings-help--small {
  font-size: .8rem;
}
.settings-form hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--glass-border);
  margin: .2rem 0;
}
.notification-tests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}
.notify-stack {
  position: fixed;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: .5rem;
  column-gap: .5rem;
  max-height: calc(100vh - 2rem);
  pointer-events: none;
}
.notify-stack.pos-top-right { top: 1rem; right: 1rem; }
.notify-stack.pos-top-left { top: 1rem; left: 1rem; }
.notify-stack.pos-bottom-right { bottom: 1rem; right: 1rem; }
.notify-stack.pos-bottom-left { bottom: 1rem; left: 1rem; }
.notify-stack.pos-top-center { top: 1rem; left: 50%; transform: translateX(-50%); }
.notify-stack.pos-bottom-center { bottom: 1rem; left: 50%; transform: translateX(-50%); }
.notify-stack.pos-top-right,
.notify-stack.pos-bottom-right { align-content: flex-end; }
.notify-stack.pos-top-left,
.notify-stack.pos-bottom-left { align-content: flex-start; }
.notify-stack.pos-top-center,
.notify-stack.pos-bottom-center { align-content: center; }
.notify-item {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--notify-fade, .25s) ease, transform var(--notify-fade, .25s) ease;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: .6rem .8rem;
  background: rgba(7, 12, 20, .92);
  color: var(--fg);
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.notify-item::before {
  font-size: 1rem;
  line-height: 1;
}
.notify-item.type-info::before { content: "ℹ️"; }
.notify-item.type-success::before { content: "✅"; }
.notify-item.type-warning::before { content: "⚠️"; }
.notify-item.type-error::before { content: "⛔"; }
.notify-item.is-visible { opacity: 1; transform: translateY(0); }
.notify-item.type-info { border-color: rgba(125,249,255,.45); }
.notify-item.type-success { border-color: rgba(118,255,166,.45); }
.notify-item.type-warning { border-color: rgba(255,211,110,.5); }
.notify-item.type-error { border-color: rgba(255,122,122,.5); }
.notify-item.size-small { font-size: .82rem; min-width: 180px; }
.notify-item.size-medium { font-size: .92rem; min-width: 240px; }
.notify-item.size-large { font-size: 1rem; min-width: 320px; }
.notify-item.fx-fade { transform: none; }
.notify-item.fx-glow { box-shadow: 0 0 0 1px rgba(125,249,255,.18), 0 0 24px rgba(125,249,255,.25); }

.settings-form select option {
  color: var(--fg);
  background-color: color-mix(in srgb, var(--bg) 92%, black 8%);
}
.settings-form select:focus option:checked {
  background-color: color-mix(in srgb, var(--accent) 30%, var(--bg) 70%);
  color: var(--fg);
}
