@import url("ask-zach-panel.css");

/* My Bio page — shared shell (header) + story layout */
:root {
  --bg: #ffffff;
  --fg: #0d0d10;
  --muted: rgba(13, 13, 16, 0.55);
  --border-subtle: rgba(13, 13, 16, 0.1);
  --pill-radius: 999px;
  --card-radius: 24px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: #020510;
  color: var(--fg);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header--arcane {
  backdrop-filter: blur(18px);
  background: linear-gradient(
    180deg,
    rgba(8, 10, 18, 0.94) 0%,
    rgba(4, 6, 12, 0.92) 100%
  );
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow:
    0 1px 0 rgba(79, 209, 197, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  flex-shrink: 0;
  min-width: 0;
}

.header-site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-identity {
  display: none;
}

.logo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.logo-wordmark {
  height: 38px;
  width: auto;
  max-width: 192px;
  display: block;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 12px rgba(79, 209, 197, 0.15));
}

/* Back to home: hide in Modern mode (nav is handled by the Modern nav bar) */
[data-theme="modern"] .bio-page-back-bar { display: none; }

/* Back to home — Super IC toolbar, bio column, toy box (not header) */
.page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  align-self: flex-start;
  padding: 7px 12px 7px 10px;
  border-radius: 6px;
  font-family: "Barlow", var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(200, 255, 255, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.24);
  background: rgba(0, 12, 28, 0.5);
  box-shadow:
    0 0 16px rgba(0, 240, 255, 0.06),
    inset 0 0 0 1px rgba(236, 72, 255, 0.06);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.page-back-link:hover {
  color: rgba(255, 255, 255, 0.98);
  border-color: rgba(125, 253, 254, 0.42);
  background: rgba(6, 36, 52, 0.42);
  box-shadow:
    0 0 22px rgba(0, 210, 235, 0.32),
    0 0 40px rgba(150, 80, 210, 0.18),
    inset 0 0 0 1px rgba(236, 72, 255, 0.08);
}

.page-back-link:focus-visible {
  outline: 2px solid rgba(125, 253, 254, 0.78);
  outline-offset: 2px;
}

.page-back-link__arrow {
  flex-shrink: 0;
  display: block;
  color: rgba(125, 253, 254, 0.92);
}

.page-back-link:hover .page-back-link__arrow {
  color: rgba(200, 255, 255, 0.98);
}

/* Toy box — above full-bleed lab; My Bio — above split (same pattern as Super IC toolbar) */
.toybox-back-bar,
.bio-page-back-bar {
  width: 100%;
  margin: 0 0 clamp(10px, 2vw, 16px);
  padding: 0;
}

.bio-page-back-bar {
  display: flex;
  justify-content: flex-start;
}

.toybox-back-bar .container {
  display: flex;
  justify-content: flex-start;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
  flex: 1;
  min-width: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Keep LinkedIn + fun + yeti on one row so the last icon does not orphan below the header */
.nav-links__trailing {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Theme switch (Space on | Modern off placeholder) — global header; Modern reskin wired later. */
.site-header--arcane .theme-mode {
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-header--arcane .theme-mode__label {
  margin: 0;
  font-family: "Barlow", var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
}

.site-header--arcane .theme-mode__label--on {
  color: #ffffff;
}

.site-header--arcane .theme-mode__label--off {
  color: rgba(160, 200, 210, 0.6);
}

.site-header--arcane .theme-mode__switch {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: not-allowed;
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-header--arcane .theme-mode__track {
  position: relative;
  display: block;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  box-sizing: border-box;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 255, 0.35) 0%,
    rgba(0, 40, 60, 0.6) 55%,
    rgba(8, 0, 22, 0.9) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, 0.55),
    0 0 12px rgba(0, 240, 255, 0.22),
    0 0 0 1px rgba(236, 72, 255, 0.12) inset;
}

.site-header--arcane .theme-mode__thumb {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 0 10px rgba(0, 255, 255, 0.55),
    0 0 0 1px rgba(0, 255, 255, 0.35) inset;
  transition: transform 0.25s ease;
}

.site-header--arcane
  .theme-mode__switch[aria-checked="false"]
  .theme-mode__thumb {
  transform: translateX(18px);
}

.site-header--arcane .theme-mode__switch:focus-visible {
  outline: 2px solid rgba(79, 209, 197, 0.9);
  outline-offset: 2px;
  border-radius: 999px;
}

.site-header--arcane .nav-pill {
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Barlow", var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 255, 255, 0.92);
  text-decoration: none;
  border: none;
  background: linear-gradient(
    165deg,
    rgba(0, 30, 40, 0.92) 0%,
    rgba(10, 0, 28, 0.94) 100%
  );
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, 0.45),
    0 0 18px rgba(0, 240, 255, 0.2),
    0 0 0 1px rgba(236, 72, 255, 0.15) inset;
  transition:
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.site-header--arcane
  .nav-pill:hover:not(.nav-pill--fun):not(.nav-pill--linkedin):not(
    .nav-pill--yeti
  ):not(.nav-pill--music):not(.nav-pill--mindset):not(.nav-pill--rocket):not(.nav-pill--bio):not(
    .nav-pill--resume-icon
  ) {
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, 0.85),
    0 0 28px rgba(0, 240, 255, 0.45),
    0 0 24px rgba(236, 72, 255, 0.25);
  transform: translateY(-1px);
}

.site-header--arcane .nav-pill:active:not(.nav-pill--linkedin):not(
    .nav-pill--yeti
  ):not(.nav-pill--fun):not(.nav-pill--music):not(.nav-pill--primary):not(
    .nav-pill--mindset
  ):not(.nav-pill--bio):not(.nav-pill--resume-icon) {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, 0.5),
    0 0 10px rgba(0, 240, 255, 0.14),
    0 0 0 1px rgba(236, 72, 255, 0.12) inset;
}

.site-header--arcane
  .nav-pill:focus-visible:not(.nav-pill--fun):not(.nav-pill--linkedin):not(
    .nav-pill--yeti
  ):not(.nav-pill--music):not(.nav-pill--mindset):not(.nav-pill--rocket):not(.nav-pill--bio):not(
    .nav-pill--resume-icon
  ) {
  outline: 2px solid rgba(79, 209, 197, 0.85);
  outline-offset: 3px;
}

.site-header--arcane .nav-pill--primary:focus-visible {
  outline-color: rgba(125, 253, 254, 0.95);
}

.site-header--arcane
  .nav-pill[aria-current="page"]:not(.nav-pill--fun):not(
    .nav-pill--mindset
  ):not(.nav-pill--bio):not(.nav-pill--resume-icon):not(.nav-pill--linkedin):not(
    .nav-pill--yeti
  ):not(.nav-pill--music) {
  color: #ffffff;
  background: linear-gradient(
    165deg,
    rgba(0, 80, 90, 0.55) 0%,
    rgba(40, 0, 60, 0.85) 100%
  );
  box-shadow:
    0 0 0 2px rgba(0, 255, 255, 0.75),
    0 0 24px rgba(0, 255, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* CTA: richer fill + soft depth; white hairline reads against nav (cyan ring reserved for aria-current). */
.site-header--arcane .nav-pill--primary {
  color: rgba(255, 254, 248, 0.98);
  background: linear-gradient(
    165deg,
    rgba(12, 42, 52, 0.96) 0%,
    rgba(18, 14, 48, 0.97) 48%,
    rgba(48, 14, 52, 0.98) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.62),
    0 6px 22px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(110, 48, 150, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  text-shadow: none;
  transform: none;
}

/* Overrides generic .nav-pill:hover (no faux stroke); hover adds lift + glow only */
.site-header--arcane .nav-pill--primary:hover {
  color: #ffffff;
  background: linear-gradient(
    165deg,
    rgba(18, 58, 68, 0.97) 0%,
    rgba(24, 20, 58, 0.98) 46%,
    rgba(58, 22, 62, 0.99) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.78),
    0 8px 28px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(130, 70, 170, 0.28),
    0 0 22px rgba(0, 200, 210, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transform: translateY(-1px);
}

.site-header--arcane .nav-pill--primary:active {
  color: rgba(235, 255, 255, 0.98);
  background: linear-gradient(
    165deg,
    rgba(6, 28, 38, 0.98) 0%,
    rgba(10, 10, 32, 0.98) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 3px 14px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(80, 36, 110, 0.18),
    inset 0 2px 10px rgba(0, 0, 0, 0.28);
  transform: translateY(0);
}

/* Icon / glyph pills: higher specificity than .nav-pill alone so cyan frame doesn’t leak through */
.site-header--arcane a.nav-pill.nav-pill--linkedin,
.site-header--arcane a.nav-pill.nav-pill--fun,
.site-header--arcane a.nav-pill.nav-pill--yeti,
.site-header--arcane a.nav-pill.nav-pill--mindset,
.site-header--arcane a.nav-pill.nav-pill--rocket,
.site-header--arcane a.nav-pill.nav-pill--bio,
.site-header--arcane a.nav-pill.nav-pill--resume-icon,
.site-header--arcane button.nav-pill.nav-pill--music {
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.site-header--arcane a.nav-pill--fun[aria-current="page"] {
  background: rgba(6, 36, 52, 0.42);
  color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 22px rgba(0, 210, 235, 0.38),
    0 0 48px rgba(150, 80, 210, 0.24);
  transform: none;
}

.site-header--arcane a.nav-pill--fun[aria-current="page"]:hover,
.site-header--arcane a.nav-pill--fun[aria-current="page"]:focus-visible,
.site-header--arcane a.nav-pill--fun[aria-current="page"]:active {
  outline: none;
  background: rgba(6, 42, 58, 0.52);
  box-shadow:
    0 0 28px rgba(0, 220, 245, 0.45),
    0 0 56px rgba(160, 90, 220, 0.28);
  transform: none;
}

.site-header--arcane a.nav-pill--mindset[aria-current="page"],
.site-header--arcane a.nav-pill--rocket[aria-current="page"],
.site-header--arcane a.nav-pill--bio[aria-current="page"] {
  background: transparent;
  box-shadow: none;
  color: inherit;
  transform: none;
}

.site-header--arcane a.nav-pill--mindset[aria-current="page"] img,
.site-header--arcane a.nav-pill--rocket[aria-current="page"] img,
.site-header--arcane a.nav-pill--bio[aria-current="page"] img {
  filter: brightness(1.14)
    drop-shadow(0 0 10px rgba(125, 253, 254, 0.35));
}

.site-header--arcane a.nav-pill--mindset[aria-current="page"]:hover,
.site-header--arcane a.nav-pill--rocket[aria-current="page"]:hover,
.site-header--arcane a.nav-pill--bio[aria-current="page"]:hover {
  outline: none;
  background: rgba(6, 36, 52, 0.42);
  color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 22px rgba(0, 210, 235, 0.38),
    0 0 48px rgba(150, 80, 210, 0.24);
  transform: none;
}

.site-header--arcane a.nav-pill--mindset[aria-current="page"]:focus-visible,
.site-header--arcane a.nav-pill--rocket[aria-current="page"]:focus-visible,
.site-header--arcane a.nav-pill--bio[aria-current="page"]:focus-visible {
  outline: none;
  background: rgba(6, 36, 52, 0.42);
  box-shadow:
    0 0 22px rgba(0, 210, 235, 0.38),
    0 0 48px rgba(150, 80, 210, 0.24);
}

.site-header--arcane a.nav-pill--mindset[aria-current="page"]:active,
.site-header--arcane a.nav-pill--rocket[aria-current="page"]:active,
.site-header--arcane a.nav-pill--bio[aria-current="page"]:active {
  outline: none;
  background: rgba(6, 42, 58, 0.52);
  box-shadow:
    0 0 28px rgba(0, 220, 245, 0.45),
    0 0 56px rgba(160, 90, 220, 0.28);
  transform: none;
}

/* Nav glyph pills — hover / focus / active match music (must beat a.nav-pill.nav-pill--* reset specificity) */
.site-header--arcane a.nav-pill.nav-pill--linkedin:hover,
.site-header--arcane a.nav-pill.nav-pill--yeti:hover,
.site-header--arcane a.nav-pill.nav-pill--mindset:hover,
.site-header--arcane a.nav-pill.nav-pill--rocket:hover,
.site-header--arcane a.nav-pill.nav-pill--bio:hover,
.site-header--arcane a.nav-pill.nav-pill--resume-icon:hover,
.site-header--arcane a.nav-pill.nav-pill--fun:hover {
  background: rgba(6, 36, 52, 0.42);
  color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 22px rgba(0, 210, 235, 0.38),
    0 0 48px rgba(150, 80, 210, 0.24);
  opacity: 1;
  border: none;
  outline: none;
  transform: none;
}

.site-header--arcane a.nav-pill.nav-pill--linkedin:hover img,
.site-header--arcane a.nav-pill.nav-pill--yeti:hover img,
.site-header--arcane a.nav-pill.nav-pill--mindset:hover img,
.site-header--arcane a.nav-pill.nav-pill--rocket:hover img,
.site-header--arcane a.nav-pill.nav-pill--bio:hover img,
.site-header--arcane a.nav-pill.nav-pill--resume-icon:hover img,
.site-header--arcane a.nav-pill.nav-pill--fun:hover img {
  filter: brightness(1.12);
}

.site-header--arcane a.nav-pill.nav-pill--linkedin:focus-visible,
.site-header--arcane a.nav-pill.nav-pill--yeti:focus-visible,
.site-header--arcane a.nav-pill.nav-pill--mindset:focus-visible,
.site-header--arcane a.nav-pill.nav-pill--rocket:focus-visible,
.site-header--arcane a.nav-pill.nav-pill--bio:focus-visible,
.site-header--arcane a.nav-pill.nav-pill--resume-icon:focus-visible,
.site-header--arcane a.nav-pill.nav-pill--fun:focus-visible {
  outline: none;
  background: rgba(6, 36, 52, 0.42);
  box-shadow:
    0 0 22px rgba(0, 210, 235, 0.38),
    0 0 48px rgba(150, 80, 210, 0.24);
}

.site-header--arcane a.nav-pill.nav-pill--linkedin:focus-visible img,
.site-header--arcane a.nav-pill.nav-pill--yeti:focus-visible img,
.site-header--arcane a.nav-pill.nav-pill--mindset:focus-visible img,
.site-header--arcane a.nav-pill.nav-pill--rocket:focus-visible img,
.site-header--arcane a.nav-pill.nav-pill--bio:focus-visible img,
.site-header--arcane a.nav-pill.nav-pill--resume-icon:focus-visible img,
.site-header--arcane a.nav-pill.nav-pill--fun:focus-visible img {
  filter: brightness(1.12);
}

.site-header--arcane a.nav-pill.nav-pill--linkedin:active,
.site-header--arcane a.nav-pill.nav-pill--yeti:active,
.site-header--arcane a.nav-pill.nav-pill--mindset:active,
.site-header--arcane a.nav-pill.nav-pill--rocket:active,
.site-header--arcane a.nav-pill.nav-pill--bio:active,
.site-header--arcane a.nav-pill.nav-pill--resume-icon:active,
.site-header--arcane a.nav-pill.nav-pill--fun:active {
  outline: none;
  background: rgba(6, 42, 58, 0.52);
  box-shadow:
    0 0 28px rgba(0, 220, 245, 0.45),
    0 0 56px rgba(160, 90, 220, 0.28);
}

.site-header--arcane a.nav-pill.nav-pill--linkedin:active img,
.site-header--arcane a.nav-pill.nav-pill--yeti:active img,
.site-header--arcane a.nav-pill.nav-pill--mindset:active img,
.site-header--arcane a.nav-pill.nav-pill--rocket:active img,
.site-header--arcane a.nav-pill.nav-pill--bio:active img,
.site-header--arcane a.nav-pill.nav-pill--resume-icon:active img,
.site-header--arcane a.nav-pill.nav-pill--fun:active img {
  filter: brightness(1.14);
}

.site-header--arcane .nav-pill--linkedin {
  padding: 7px 8px;
}

.site-header--arcane .nav-pill--mindset,
.site-header--arcane .nav-pill--rocket,
.site-header--arcane .nav-pill--bio,
.site-header--arcane .nav-pill--resume-icon {
  padding: 6px 8px;
}

.site-header--arcane .nav-pill--linkedin img {
  display: block;
  width: calc(22px * 1.1);
  height: calc(22px * 1.1);
  object-fit: contain;
  filter: brightness(1.1);
  transition: filter 0.2s ease;
}

.site-header--arcane .nav-pill--mindset img,
.site-header--arcane .nav-pill--rocket img,
.site-header--arcane .nav-pill--bio img,
.site-header--arcane .nav-pill--resume-icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: none;
  outline: none;
  filter: brightness(1.08);
  transition: filter 0.2s ease;
}

/* Nav icon labels: real text on hover/focus (not browser title tooltip). */
.site-header--arcane .nav-pill__hover-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: Barlow, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  margin-left: 0;
  transition:
    max-width 0.22s ease,
    opacity 0.2s ease,
    margin-left 0.22s ease;
  pointer-events: none;
}

.site-header--arcane a.nav-pill.nav-pill--rocket:hover .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--rocket:focus-visible .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--mindset:hover .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--mindset:focus-visible .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--bio:hover .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--bio:focus-visible .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--fun:hover .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--fun:focus-visible .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--resume-icon:hover .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--resume-icon:focus-visible .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--yeti:hover .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--yeti:focus-visible .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--linkedin:hover .nav-pill__hover-label,
.site-header--arcane a.nav-pill.nav-pill--linkedin:focus-visible .nav-pill__hover-label,
.site-header--arcane button.nav-pill.nav-pill--music:hover .nav-pill__hover-label,
.site-header--arcane button.nav-pill.nav-pill--music:focus-visible .nav-pill__hover-label {
  max-width: 7.5rem;
  opacity: 1;
  margin-left: 8px;
}

/* Music note: same cyan / violet glow language as Fun toy box (selected nav pill). */
.site-header--arcane .nav-pill--music {
  padding: 6px 8px;
  cursor: pointer;
  border: none;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    filter 0.2s ease;
}

.site-header--arcane .nav-pill--music img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(1.08);
  transition: filter 0.22s ease, transform 0.22s ease;
}

.site-header--arcane .nav-pill--music:hover:not(.is-active) {
  background: rgba(6, 36, 52, 0.42);
  color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 22px rgba(0, 210, 235, 0.38),
    0 0 48px rgba(150, 80, 210, 0.24);
  opacity: 1;
}

.site-header--arcane .nav-pill--music:hover:not(.is-active) img {
  filter: brightness(1.12);
}

.site-header--arcane .nav-pill--music:focus-visible {
  outline: none;
  background: rgba(6, 36, 52, 0.42);
  box-shadow:
    0 0 22px rgba(0, 210, 235, 0.38),
    0 0 48px rgba(150, 80, 210, 0.24);
}

.site-header--arcane .nav-pill--music:focus-visible img {
  filter: brightness(1.12);
}

.site-header--arcane .nav-pill--music:active {
  outline: none;
  background: rgba(6, 42, 58, 0.52);
  box-shadow:
    0 0 28px rgba(0, 220, 245, 0.45),
    0 0 56px rgba(160, 90, 220, 0.28);
}

.site-header--arcane .nav-pill--music:active img {
  filter: brightness(1.14);
}

.site-header--arcane .nav-pill--music.is-active {
  outline: none;
  background: rgba(6, 36, 52, 0.42);
  color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 22px rgba(0, 210, 235, 0.38),
    0 0 48px rgba(150, 80, 210, 0.24);
  opacity: 1;
}

.site-header--arcane .nav-pill--music.is-active:hover,
.site-header--arcane .nav-pill--music.is-active:focus-visible {
  background: rgba(6, 42, 58, 0.52);
  box-shadow:
    0 0 28px rgba(0, 220, 245, 0.45),
    0 0 56px rgba(160, 90, 220, 0.28);
}

.site-header--arcane .nav-pill--music.is-active img {
  filter: brightness(1.18) drop-shadow(0 0 6px rgba(125, 253, 254, 0.4));
}

/* Ambient music intro (injected by scripts/header-ambient-music.js) */
.ambient-music-panel {
  position: fixed;
  right: clamp(10px, 2.5vw, 20px);
  bottom: clamp(10px, 2.5vw, 20px);
  z-index: 10050;
  max-width: min(22rem, calc(100vw - 24px));
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
}

.ambient-music-panel__chrome {
  position: relative;
  padding: clamp(0.85rem, 2vw, 1.1rem) clamp(1rem, 2.5vw, 1.25rem);
  border-radius: clamp(10px, 1.5vw, 14px);
  background: linear-gradient(
    165deg,
    rgba(6, 18, 32, 0.97) 0%,
    rgba(10, 8, 28, 0.98) 100%
  );
  border: 1px solid rgba(0, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(236, 72, 255, 0.12) inset,
    0 18px 48px rgba(0, 0, 0, 0.55);
  color: rgba(238, 248, 255, 0.94);
}

.ambient-music-panel__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(220, 245, 255, 0.92);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.ambient-music-panel__close:hover {
  background: rgba(0, 40, 55, 0.55);
}

.ambient-music-panel__title {
  margin: 0 1.75rem 0.5rem 0;
  font-family: "Barlow", var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 220, 160, 0.95);
  text-shadow: 0 0 12px rgba(255, 200, 90, 0.25);
}

.ambient-music-panel__body {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(210, 225, 240, 0.92);
}

.ambient-music-panel__body:last-of-type {
  margin-bottom: 0.85rem;
}

.ambient-music-panel__em {
  color: rgba(125, 253, 254, 0.98);
  font-weight: 600;
}

.ambient-music-panel__foot {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(170, 200, 220, 0.88);
}

.ambient-music-panel__skip {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(200, 218, 235, 0.92);
  cursor: pointer;
}

.ambient-music-panel__skip-input {
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: rgba(0, 220, 245, 0.85);
  cursor: pointer;
}

.ambient-music-panel__link {
  color: rgba(125, 253, 254, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ambient-music-panel__link:hover {
  color: #ffffff;
}

.ambient-music-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 0.15rem;
}

.ambient-music-panel__primary,
.ambient-music-panel__secondary {
  font-family: "Barlow", var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(0, 255, 255, 0.45);
}

.ambient-music-panel__primary {
  background: linear-gradient(
    165deg,
    rgba(12, 52, 62, 0.95) 0%,
    rgba(28, 14, 48, 0.96) 100%
  );
  color: rgba(255, 254, 248, 0.98);
  box-shadow: 0 0 18px rgba(0, 200, 220, 0.2);
}

.ambient-music-panel__primary:hover {
  box-shadow: 0 0 24px rgba(0, 220, 245, 0.32);
}

.ambient-music-panel__secondary {
  background: transparent;
  color: rgba(190, 215, 230, 0.9);
  border-color: rgba(120, 160, 180, 0.45);
}

.ambient-music-player-host {
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-music-player-host iframe,
.ambient-music-player-host__iframe {
  width: 240px;
  height: 135px;
  border: 0;
  transform: scale(0.01);
  transform-origin: 0 0;
}

.site-header--arcane .nav-pill--fun {
  cursor: pointer;
  padding: 2px 4px;
  overflow: visible;
  border-radius: 6px;
}

.site-header--arcane a.nav-pill--fun {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.site-header--arcane a.nav-pill--fun:hover,
.site-header--arcane a.nav-pill--fun:focus,
.site-header--arcane a.nav-pill--fun:focus-visible,
.site-header--arcane a.nav-pill--fun:active {
  outline: none;
}

/* Do not set pointer-events:none on the burst — clicks fall through to the page behind. */
.site-header--arcane a.nav-pill--fun img {
  -webkit-user-drag: none;
  user-select: none;
}

.site-header--arcane .nav-pill--yeti {
  padding: 2px 4px;
  overflow: visible;
}

.site-header--arcane .nav-pill__fun-burst {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  vertical-align: middle;
  isolation: isolate;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.site-header--arcane .nav-pill__fun-still,
.site-header--arcane .nav-pill__fun-pop {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.site-header--arcane .nav-pill__fun-still {
  position: relative;
  z-index: 1;
  opacity: 1;
}

.site-header--arcane .nav-pill__fun-pop {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.site-header--arcane a.nav-pill.nav-pill--fun:hover {
  border: none;
  background: rgba(6, 36, 52, 0.42);
  box-shadow:
    0 0 22px rgba(0, 210, 235, 0.38),
    0 0 48px rgba(150, 80, 210, 0.24);
  transform: none;
}

.site-header--arcane .nav-pill--fun:hover .nav-pill__fun-pop {
  opacity: 1;
}

.site-header--arcane .nav-pill--fun:hover .nav-pill__fun-still {
  opacity: 0;
}

.site-header--arcane .nav-pill--fun:hover .nav-pill__fun-burst {
  transform: scale(1.06);
  box-shadow: none;
  filter: brightness(1.08);
}

.site-header--arcane .nav-pill--yeti img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
  transition: filter 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .site-header--arcane .nav-pill__fun-burst {
    transition: none;
  }

  .site-header--arcane .nav-pill--fun:hover .nav-pill__fun-burst {
    transform: none;
    filter: brightness(1.1);
    box-shadow: none;
  }

  .site-header--arcane .nav-pill--fun:hover .nav-pill__fun-pop {
    opacity: 0;
  }

  .site-header--arcane .nav-pill--fun:hover .nav-pill__fun-still {
    opacity: 1;
  }
}

.experience-section-eyebrow {
  margin: 0 0 10px;
  max-width: 42rem;
  font-family: ui-monospace, "SF Mono", "Menlo", Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 220, 140, 0.85);
  text-shadow: 0 0 14px rgba(255, 200, 90, 0.35);
}

.experience-section-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fffef8;
  text-shadow:
    0 0 20px rgba(125, 253, 254, 0.35),
    0 0 48px rgba(14, 85, 100, 0.45);
}

.experience-section-lede {
  margin: 12px 0 22px;
  max-width: 42rem;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}

.bio-page-section {
  position: relative;
  scroll-margin-top: 88px;
  isolation: isolate;
  padding: clamp(32px, 6vw, 56px) 0 clamp(48px, 8vw, 80px);
  color: #fffef8;
  overflow: hidden;
  border-top: 1px solid rgba(125, 253, 254, 0.22);
  background-color: #020510;
  min-height: calc(100vh - 64px);
}

.bio-page-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 48px,
      rgba(0, 255, 255, 0.035) 48px,
      rgba(0, 255, 255, 0.035) 49px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 48px,
      rgba(236, 72, 255, 0.028) 48px,
      rgba(236, 72, 255, 0.028) 49px
    ),
    radial-gradient(
      ellipse 80% 70% at 50% 20%,
      rgba(0, 40, 48, 0.35) 0%,
      transparent 55%
    ),
    linear-gradient(
      180deg,
      rgba(2, 4, 14, 0.92) 0%,
      rgba(4, 2, 18, 0.96) 100%
    );
}

.bio-page-section .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 1180px;
}

.bio-page-heading {
  text-align: center;
  width: 100%;
  max-width: min(44rem, 100%);
  margin: 0 auto clamp(24px, 4vw, 36px);
}

.bio-page-heading .experience-section-eyebrow,
.bio-page-heading .experience-section-title,
.bio-page-heading .experience-section-lede {
  margin-left: auto;
  margin-right: auto;
}

.bio-page-heading .experience-section-lede {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.bio-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
  align-items: stretch;
  width: 100%;
}

.bio-split__media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 14px);
  min-height: 0;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(236, 72, 255, 0.12) inset,
    0 0 32px rgba(0, 255, 255, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.4);
  background: rgba(0, 6, 18, 0.6);
}

.bio-split__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.bio-yeti-blurb {
  padding: clamp(12px, 2.5vw, 16px) clamp(12px, 2.5vw, 16px)
    clamp(14px, 2.5vw, 18px);
  border-top: 1px solid rgba(0, 255, 255, 0.18);
  background: linear-gradient(
    180deg,
    rgba(0, 10, 22, 0.55) 0%,
    rgba(4, 0, 14, 0.45) 100%
  );
}

.bio-yeti-blurb__title {
  margin: 0 0 8px;
  font-family: ui-monospace, "SF Mono", "Menlo", Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: rgba(255, 210, 130, 0.92);
  text-shadow:
    0 0 8px rgba(255, 200, 90, 0.25),
    0 0 16px rgba(0, 255, 255, 0.08);
}

.bio-yeti-blurb__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.78);
}

.bio-panel {
  max-width: none;
  width: 100%;
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  margin-inline: 0;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px)
    clamp(22px, 3.5vw, 30px);
  border-radius: 6px;
  border: 2px solid rgba(0, 255, 255, 0.28);
  background: linear-gradient(
    155deg,
    rgba(0, 6, 18, 0.82) 0%,
    rgba(6, 0, 20, 0.78) 100%
  );
  box-shadow:
    0 0 0 1px rgba(236, 72, 255, 0.15) inset,
    0 0 40px rgba(0, 255, 255, 0.1),
    0 24px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

@media (max-width: 860px) {
  .bio-split {
    grid-template-columns: 1fr;
  }

  .bio-split__media {
    max-width: min(420px, 100%);
    margin-inline: auto;
  }
}

.bio-prose {
  font-size: 14px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
}

.bio-prose > p {
  margin: 0 0 1.1rem;
}

.bio-prose > p:last-child {
  margin-bottom: 0;
}

.bio-block__title {
  margin: 0 0 16px;
  font-size: clamp(0.7rem, 1.1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 210, 130, 0.92);
  text-shadow:
    0 0 10px rgba(255, 200, 90, 0.3),
    0 0 20px rgba(0, 255, 255, 0.12);
}

.site-footer--arcane {
  position: relative;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    0deg,
    rgba(8, 10, 18, 0.94) 0%,
    rgba(4, 6, 12, 0.92) 100%
  );
  border-top: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow:
    0 -1px 0 rgba(79, 209, 197, 0.12),
    0 -12px 40px rgba(0, 0, 0, 0.45);
  padding: 14px 0 18px;
}

.footer-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Barlow", var(--font-sans);
  letter-spacing: 0.06em;
  color: rgba(200, 255, 255, 0.9);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.15);
}

.footer-copyright {
  margin: 0;
}

/* Narrow viewports: stack header and center icon rows (avoid trailing cluster pinned right). */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 112px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-left {
    flex-direction: column;
    align-items: center;
    align-self: center;
    width: 100%;
  }

  .header-site-nav {
    width: 100%;
  }

  .header-nav {
    align-self: stretch;
    width: 100%;
    justify-content: center;
    flex: 0 1 auto;
  }

  .nav-links {
    justify-content: center;
    width: 100%;
    row-gap: 10px;
    column-gap: 8px;
  }

  /* Promote resume / music / LinkedIn / theme to siblings of primary icons for even wrapping */
  .nav-links__trailing {
    display: contents;
  }

  .site-header--arcane .nav-links .theme-mode {
    flex: 0 0 100%;
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid rgba(201, 162, 39, 0.22);
  }
}

/* ── Mobile burger nav: row layout (overrides column layout above) ─── */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header--arcane .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
    height: 52px;
    box-sizing: border-box;
  }

  .site-header--arcane .header-left {
    flex-direction: row;
    align-items: center;
    align-self: center;
    width: auto;
  }

  .logo-wordmark {
    height: 30px;
  }

  /* Hide icon nav — drawer handles mobile navigation */
  .site-header--arcane .header-nav {
    display: none;
  }

  .site-header--arcane .header-site-nav {
    display: none;
  }

  /* Burger button */
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    background: none;
    border: none;
    color: rgba(238, 232, 220, 0.95);
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    order: 999;
  }

  .nav-burger__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(238, 232, 220, 0.95);
    border-radius: 2px;
  }
}
/* ── Mobile nav drawer (global — shared by all pages using selectedwork.css) ── */
/* Hide burger on desktop — shown via @media (max-width: 768px) above */
@media (min-width: 769px) {
  .nav-burger {
    display: none;
  }
}
.nav-mobile-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 199;
}
.nav-mobile-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 82vw);
  background: #04141e;
  border-left: 1px solid rgba(201, 162, 39, 0.22);
  padding: 68px 8px 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-drawer.is-open {
  transform: translateX(0);
}
.nav-mobile-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(238, 232, 220, 0.9);
  font-size: 1.5rem;
  line-height: 1;
  padding: 8px;
  cursor: pointer;
  opacity: 0.7;
}
.nav-mobile-drawer .nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.nav-mobile-drawer .nav-pill {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  width: 100%;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(238, 232, 220, 0.9);
  transition: background 0.15s ease;
}
.nav-mobile-drawer .nav-pill:hover,
.nav-mobile-drawer .nav-pill:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}
.nav-mobile-drawer .nav-pill img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav-mobile-drawer .nav-pill__hover-label {
  display: block !important;
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(238, 232, 220, 0.9);
}
.nav-mobile-drawer .nav-pill__fun-burst { display: flex; align-items: center; }
.nav-mobile-drawer .nav-pill__fun-pop { display: none !important; }
.nav-mobile-drawer .nav-links__trailing { display: contents; }
.nav-mobile-drawer .theme-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
  margin-top: 6px;
}
.nav-mobile-drawer .theme-mode__label {
  font-family: "Barlow", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
  color: rgba(238, 232, 220, 0.85);
}
.nav-mobile-drawer .theme-mode__label--on { color: #fff; }
.nav-mobile-drawer .theme-mode__label--off { color: rgba(160, 200, 210, 0.6); }
.nav-mobile-drawer .theme-mode__switch {
  margin: 0; padding: 0; border: 0;
  background: transparent;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-mobile-drawer .theme-mode__track {
  position: relative;
  display: block;
  width: 38px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,255,255,0.35) 0%, rgba(0,40,60,0.6) 55%, rgba(8,0,22,0.9) 100%);
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.55);
}
.nav-mobile-drawer .theme-mode__thumb {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
}

/* ── Consistent container padding on mobile — matches all other pages ── */
@media (max-width: 720px) {
  .container {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
}
