/* Portfolio 2026 — editorial, gallery-first */
:root {
  --bg: #0b0c0f;
  --bg2: #0f1117;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --faint: rgba(255, 255, 255, 0.45);
  --accent: #c9a227;
  --accent2: #e8d28a;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --r: 14px;
  --r2: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --max: 100%;
  --page-pad: 18px;
  --neu-distance: 6px;
  --neu-blur: 14px;
  --neu-highlight: rgba(255, 255, 255, 0.07);
  --neu-shadow: rgba(0, 0, 0, 0.42);
}

html[data-theme="light"] {
  --bg: #eef1f5;
  --bg2: #f7f9fc;
  --text: rgba(17, 22, 34, 0.93);
  --muted: rgba(17, 22, 34, 0.72);
  --faint: rgba(17, 22, 34, 0.52);
  --accent: #9b7a18;
  --accent2: #6f5610;
  --neu-highlight: rgba(255, 255, 255, 0.92);
  --neu-shadow: rgba(163, 177, 198, 0.48);
}

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

html {
  /* Instant scroll to #anchors (e.g. index.html#resume from resume.html). Smooth
     cross-document hash navigation reads as a jarring “top then slide down.” */
  scroll-behavior: auto;
  /* Keep topbar aligned when short pages hide the scrollbar (e.g. App Space). */
  scrollbar-gutter: stable;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(700px 420px at 100% 0%, rgba(255, 255, 255, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 10px 14px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  z-index: 9999;
}

.skip-link:focus {
  left: 14px;
  top: 14px;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 12, 15, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  background: transparent;
  border: none;
  transition: filter 0.25s ease;
}

html:not([data-theme="light"]) .brand-mark {
  filter: invert(1);
}

.brand-word {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  transition: filter 0.25s ease;
}

.brand:hover .brand-wordmark,
.brand.is-current .brand-wordmark,
.brand:focus-visible .brand-wordmark,
.brand:hover .brand-mark,
.brand.is-current .brand-mark,
.brand:focus-visible .brand-mark {
  filter: drop-shadow(0 1px 0 var(--accent)) drop-shadow(0 2px 0 var(--accent));
}

html:not([data-theme="light"]) .brand:hover .brand-mark,
html:not([data-theme="light"]) .brand.is-current .brand-mark,
html:not([data-theme="light"]) .brand:focus-visible .brand-mark {
  filter: invert(1) drop-shadow(0 1px 0 var(--accent)) drop-shadow(0 2px 0 var(--accent));
}

.brand-signature {
  display: block;
  width: auto;
  height: 34px;
}

.brand-signature--light {
  display: none;
}

html[data-theme="light"] .brand-signature--dark {
  display: none;
}

html[data-theme="light"] .brand-signature--light {
  display: block;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav .cta-link {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.88);
  transform: none;
}

.nav .cta-link:hover,
.nav .cta-link.is-current {
  color: var(--accent);
  transform: none;
}

.nav .cta-link:active {
  transform: none;
}

.nav .cta-link.is-current::after,
.nav .cta-link:hover::after {
  transform: scaleX(1);
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.82;
}

.theme-toggle:hover {
  opacity: 1;
}

.theme-glyph {
  font-size: 13px;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
}

.nav-mobile {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 16px;
}

.nav-mobile.anchor-stack {
  padding-bottom: 0;
}

/* Right-side main menu drawer */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.nav-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: min(300px, 88vw);
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  background: rgba(15, 17, 23, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0.28s ease;
}

.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer__brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}

.nav-drawer__brand .brand-signature {
  height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.nav-drawer__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 32px;
}

.nav-drawer__link {
  display: block;
  padding: 16px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-drawer__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.98);
}

.nav-drawer__link.is-current {
  background: rgba(201, 162, 39, 0.16);
  color: var(--accent);
}

html[data-theme="light"] .nav-drawer {
  background: rgba(239, 243, 248, 0.98);
  border-left-color: rgba(0, 0, 0, 0.1);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.12);
}


html[data-theme="light"] .nav-drawer__close {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(17, 22, 34, 0.88);
}

html[data-theme="light"] .nav-drawer__link {
  color: rgba(17, 22, 34, 0.88);
}

html[data-theme="light"] .nav-drawer__link:hover {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .nav-drawer__link.is-current {
  color: var(--accent);
}

body.nav-drawer-open {
  overflow: hidden;
}

html[data-theme="light"] .topbar {
  background: rgba(239, 243, 248, 0.82);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .brand-mark {
  background: transparent;
  border: none;
}

html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .anchor-stack__btn,
html[data-theme="light"] .anchor-stack .chip,
html[data-theme="light"] .chip,
html[data-theme="light"] .tile,
html[data-theme="light"] .about-card,
html[data-theme="light"] .about-mini,
html[data-theme="light"] .contact-link,
html[data-theme="light"] .lightbox-dialog {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

html[data-theme="light"] .nav .cta-link {
  color: rgba(17, 22, 34, 0.82);
}

html[data-theme="light"] .nav .cta-link:hover,
html[data-theme="light"] .nav .cta-link.is-current {
  color: var(--accent);
}

html[data-theme="light"] .kicker {
  color: rgba(17, 22, 34, 0.66);
}

html[data-theme="light"] .welcome-rotator {
  color: rgba(17, 22, 34, 0.92);
}

html[data-theme="light"] .focus-section.neu-inset,
html[data-theme="light"] .welcome.neu-inset {
  background: var(--bg2);
}

html[data-theme="light"] .hero-meta dt {
  color: rgba(17, 22, 34, 0.58);
}

html[data-theme="light"] .hero-meta dd {
  color: rgba(17, 22, 34, 0.9);
}

html[data-theme="light"] .chip {
  color: rgba(17, 22, 34, 0.86);
}

html[data-theme="light"] .chip.is-active {
  background: rgba(155, 122, 24, 0.14);
  border-color: rgba(155, 122, 24, 0.35);
}

html[data-theme="light"] .pill {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.26);
  color: rgba(255, 255, 255, 0.93);
}

html[data-theme="light"] .footer {
  border-top-color: rgba(0, 0, 0, 0.10);
  color: rgba(17, 22, 34, 0.65);
}

html[data-theme="light"] .footer-right {
  color: rgba(17, 22, 34, 0.5);
}

html[data-theme="light"] .about-lead {
  color: rgba(17, 22, 34, 0.88);
}

html[data-theme="light"] .about-copy {
  color: rgba(17, 22, 34, 0.76);
}

html[data-theme="light"] .about-points {
  color: rgba(17, 22, 34, 0.75);
}

html[data-theme="light"] .mini-kicker {
  color: rgba(17, 22, 34, 0.58);
}

html[data-theme="light"] .mini-body {
  color: rgba(17, 22, 34, 0.84);
}

html[data-theme="light"] .contact-link {
  color: rgba(17, 22, 34, 0.9);
}

html[data-theme="light"] .contact-dot {
  color: rgba(17, 22, 34, 0.42);
}

html[data-theme="light"] .lightbox-title {
  color: rgba(17, 22, 34, 0.9);
}

html[data-theme="light"] .lightbox-close {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.04);
  color: rgba(17, 22, 34, 0.9);
}

html[data-theme="light"] .lightbox {
  background: rgba(22, 26, 31, 0.66);
}

html[data-theme="light"] .resume-viewer {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .resume-page {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 0, 0, 0.07);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--page-pad) 22px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-rail {
  padding: 18px 0;
  min-width: 0;
}

.kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.8vw, 4.25rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.hero-sub {
  margin: 16px 0 18px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.neu-inset {
  border-radius: 0;
  border: none;
  background: var(--bg);
  box-shadow:
    inset var(--neu-distance) var(--neu-distance) var(--neu-blur) var(--neu-shadow),
    inset calc(var(--neu-distance) * -1) calc(var(--neu-distance) * -1) var(--neu-blur) var(--neu-highlight);
  transition: box-shadow 0.2s ease;
}

.welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
  padding: 12px 16px;
  box-sizing: border-box;
}

.welcome.neu-inset {
  width: 100%;
  padding: 16px;
  border-radius: 999px;
}

.welcome-label {
  flex-shrink: 0;
  color: var(--faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.welcome-rotator {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  min-height: 1.35em;
  white-space: nowrap;
  unicode-bidi: isolate;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  will-change: opacity, transform;
}

.welcome-rotator.is-exiting {
  animation: welcomeSwapOut 240ms ease forwards;
}

.welcome-rotator.is-entering {
  animation: welcomeSwapIn 360ms ease forwards;
}

@keyframes welcomeSwapOut {
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes welcomeSwapIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-ctas {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
  background: none;
  border: none;
  transition: color 0.2s ease, transform 0.12s ease;
}

.cta-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.cta-link:hover {
  color: var(--accent2);
  transform: translateX(3px);
}

.cta-link:hover::after {
  transform: scaleX(1);
}

.cta-link:active {
  transform: translate(2px, 1px);
}

.cta-link:active::after {
  transform: scaleX(0.92);
  opacity: 0.9;
}

.cta-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.cta-link--primary {
  color: var(--accent);
}

.cta-link--primary:hover {
  color: var(--accent2);
}

.cta-link--ghost {
  color: rgba(255, 255, 255, 0.88);
}

.cta-link--ghost:hover {
  color: rgba(255, 255, 255, 1);
}

html[data-theme="light"] .cta-link--ghost {
  color: rgba(17, 22, 34, 0.82);
}

html[data-theme="light"] .cta-link--ghost:hover {
  color: rgba(17, 22, 34, 0.96);
}

.hero-meta {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}

.hero-meta__item {
  margin: 0;
}

.focus-section {
  padding: 16px;
  border-radius: var(--r2);
}

.focus-section.neu-inset:hover,
.welcome.neu-inset:hover {
  box-shadow:
    inset calc(var(--neu-distance) + 1px) calc(var(--neu-distance) + 1px) calc(var(--neu-blur) + 2px) var(--neu-shadow),
    inset calc((var(--neu-distance) + 1px) * -1) calc((var(--neu-distance) + 1px) * -1) calc(var(--neu-blur) + 2px) var(--neu-highlight);
}

/* Gapless, left-aligned section / tab anchors — full viewport width */
.anchor-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  padding: 0;
  width: 100%;
}

.section .filters.anchor-stack {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.anchor-stack__btn,
.anchor-stack .chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border-radius: 0;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.anchor-stack__btn + .anchor-stack__btn,
.anchor-stack .chip + .chip {
  border-top: none;
  margin-top: -1px;
}

.anchor-stack__btn:hover,
.anchor-stack .chip:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.96);
}

.anchor-stack .chip.is-active {
  background: rgba(201, 162, 39, 0.18);
  border-color: rgba(201, 162, 39, 0.45);
  color: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .anchor-stack__btn,
html[data-theme="light"] .anchor-stack .chip {
  color: rgba(17, 22, 34, 0.88);
}

html[data-theme="light"] .anchor-stack__btn:hover,
html[data-theme="light"] .anchor-stack .chip:hover {
  color: rgba(17, 22, 34, 0.96);
}

.filters.anchor-stack {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  padding: 12px 0 18px;
}

.hero-meta dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 4px;
}

.hero-meta dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.hero-media {
  display: grid;
  align-items: stretch;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--page-pad);
}

/* Sticky topbar: keep section title visible when scrolling to hash targets */
#featured,
#resume,
#token-project,
#causes,
#considerations,
#about,
#contact {
  scroll-margin-top: 72px;
}

.page-hero {
  padding-top: 34px;
  padding-bottom: 18px;
}

.resume-page {
  width: 100%;
  max-width: none;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px 22px;
}

.resume-page .tile {
  width: 100%;
  display: block;
}

#causes .grid,
#token-project .grid {
  width: 100%;
}

.resume-page h2 {
  font-family: var(--sans);
  font-size: 2.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--accent2);
}

.page-token-project .resume-page h2.token-project-hero-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  text-transform: none;
  font-weight: 400;
}

.resume-page h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  color: var(--accent);
}

.resume-page p,
.resume-page ul {
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 0.85rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.7;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 18px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.20);
}

.chip.is-active {
  background: rgba(201, 162, 39, 0.18);
  border-color: rgba(201, 162, 39, 0.45);
}

/* Grid tiles */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.tile {
  position: relative;
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  min-height: 220px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateY(0);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

button.tile {
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  color: var(--text);
  text-align: inherit;
  appearance: none;
}

a.tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.38);
  box-shadow: var(--shadow);
}

.tile:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.75);
  outline-offset: 3px;
}

.tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(1.04);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.72));
}

.tile-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.90);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pill-muted {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.tile-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.tile-overlay .tile-title {
  color: rgba(255, 255, 255, 0.95);
}

.tile-meta {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.6;
}

/* Token project — home tile overlays (per art); shared cool title + meta on all previews */
#token-project .tile--muzik-healz .tile-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.05) 35%, rgba(0, 0, 0, 0.82));
}

#token-project .tile--game-streem .tile-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.06) 40%, rgba(0, 8, 18, 0.88));
}

#token-project .tile--lityour .tile-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05) 38%, rgba(8, 18, 22, 0.88));
}

#token-project .tile--muzik-healz .tile-title,
#token-project .tile--game-streem .tile-title,
#token-project .tile--lityour .tile-title {
  color: rgba(230, 244, 255, 0.98);
  text-shadow: 0 0 18px rgba(119, 181, 254, 0.35), 0 1px 3px rgba(0, 0, 0, 0.75);
}

#token-project .tile--muzik-healz .tile-meta,
#token-project .tile--game-streem .tile-meta,
#token-project .tile--lityour .tile-meta {
  color: rgba(200, 224, 255, 0.9);
  max-width: 48ch;
}

html[data-theme="light"] #token-project .tile--muzik-healz .tile-title,
html[data-theme="light"] #token-project .tile--game-streem .tile-title,
html[data-theme="light"] #token-project .tile--lityour .tile-title {
  color: rgba(230, 244, 255, 0.98);
  text-shadow: 0 0 14px rgba(119, 181, 254, 0.28), 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Causes — home tile overlays */
#causes .tile--intellectual-security .tile-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.06) 38%, rgba(8, 22, 42, 0.9));
}

#causes .tile--healing-housing .tile-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05) 36%, rgba(10, 28, 18, 0.9));
}

#causes .tile--family-sovereignty .tile-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05) 38%, rgba(28, 20, 8, 0.9));
}

#causes .tile--intellectual-security .tile-title,
#causes .tile--healing-housing .tile-title,
#causes .tile--family-sovereignty .tile-title {
  color: rgba(230, 244, 255, 0.98);
  text-shadow: 0 0 16px rgba(119, 181, 254, 0.32), 0 1px 3px rgba(0, 0, 0, 0.75);
}

#causes .tile--healing-housing .tile-title {
  color: rgba(220, 248, 230, 0.98);
  text-shadow: 0 0 16px rgba(96, 200, 140, 0.28), 0 1px 3px rgba(0, 0, 0, 0.75);
}

#causes .tile--family-sovereignty .tile-title {
  color: rgba(255, 236, 210, 0.98);
  text-shadow: 0 0 16px rgba(201, 162, 39, 0.32), 0 1px 3px rgba(0, 0, 0, 0.75);
}

#causes .tile--intellectual-security .tile-meta,
#causes .tile--healing-housing .tile-meta,
#causes .tile--family-sovereignty .tile-meta {
  color: rgba(200, 224, 255, 0.9);
  max-width: 48ch;
}

#causes .tile--healing-housing .tile-meta {
  color: rgba(200, 235, 210, 0.9);
}

#causes .tile--family-sovereignty .tile-meta {
  color: rgba(240, 220, 190, 0.9);
}

/* Considerations — home: compact editorial row */
.considerations-layout {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 30%);
  gap: 12px;
  align-items: stretch;
}

#considerations .considerations-primary.tile--dedication-mom {
  border-color: rgba(220, 140, 180, 0.22);
}

.considerations-primary {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 0;
  min-height: 0;
  border-radius: var(--r2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.considerations-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 140, 180, 0.35);
  box-shadow: var(--shadow);
}

.considerations-primary:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.75);
  outline-offset: 3px;
}

.considerations-primary__media {
  display: block;
  min-height: 168px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.considerations-primary__media img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
}

.considerations-primary__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
}

.considerations-primary__text .pill {
  align-self: flex-start;
}

.considerations-primary__title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

#considerations .tile--dedication-mom .considerations-primary__title {
  color: rgba(255, 232, 240, 0.98);
}

.considerations-primary__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 42ch;
}

.considerations-primary__cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(201, 162, 39, 0.95);
}

.considerations-primary:hover .considerations-primary__cta {
  text-decoration: underline;
}

.considerations-secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.considerations-secondary__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-height: 0;
  padding: 10px 12px;
  border-radius: var(--r2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease;
}

.considerations-secondary__item:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.32);
}

.considerations-secondary__item:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.75);
  outline-offset: 3px;
}

.considerations-secondary__thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: calc(var(--r2) - 4px);
  overflow: hidden;
  flex-shrink: 0;
}

.considerations-secondary__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.considerations-secondary__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.considerations-secondary__label {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

#considerations .tile--mentors .considerations-secondary__label {
  color: rgba(230, 244, 255, 0.98);
}

#considerations .tile--collaborators .considerations-secondary__label {
  color: rgba(220, 248, 245, 0.98);
}

.considerations-secondary__meta {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

#considerations .tile--mentors .considerations-secondary__meta {
  color: rgba(200, 224, 255, 0.82);
}

#considerations .tile--collaborators .considerations-secondary__meta {
  color: rgba(200, 235, 230, 0.82);
}

html[data-theme="light"] .considerations-primary {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .considerations-secondary__item {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] #considerations .tile--dedication-mom .considerations-primary__title {
  color: rgba(80, 40, 60, 0.95);
}

@media (max-width: 720px) {
  .considerations-layout {
    grid-template-columns: 1fr;
  }

  .considerations-primary {
    grid-template-columns: 1fr;
  }

  .considerations-primary__media {
    min-height: 140px;
    max-height: 180px;
  }

  .considerations-primary__media img {
    min-height: 140px;
  }

  .considerations-secondary {
    flex-direction: row;
  }

  .considerations-secondary__item {
    flex: 1;
    grid-template-columns: 1fr;
    text-align: center;
    padding: 12px 10px;
  }

  .considerations-secondary__thumb {
    width: 100%;
    height: 64px;
    margin: 0 auto;
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .considerations-secondary {
    flex-direction: column;
  }

  .considerations-secondary__item {
    grid-template-columns: 64px 1fr;
    text-align: left;
  }

  .considerations-secondary__thumb {
    width: 64px;
    height: 64px;
    max-width: none;
  }
}

.token-panel--game-streem .token-slideshow {
  border-color: rgba(119, 181, 254, 0.28);
  background: linear-gradient(165deg, rgba(15, 26, 42, 0.95), rgba(0, 0, 0, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 42px rgba(0, 0, 0, 0.45);
}

.token-panel--game-streem .token-slideshow-bar {
  border-top-color: rgba(119, 181, 254, 0.15);
  background: rgba(10, 16, 28, 0.75);
}

.token-panel--lityour .token-slideshow {
  border-color: rgba(64, 196, 180, 0.32);
  background: linear-gradient(165deg, rgba(12, 22, 26, 0.96), rgba(0, 0, 0, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 42px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(255, 120, 48, 0.06);
}

.token-panel--lityour .token-slideshow-bar {
  border-top-color: rgba(64, 196, 180, 0.18);
  background: rgba(8, 18, 22, 0.78);
}

.token-slideshow {
  margin: 18px 0 26px;
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}

.token-slideshow-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: min(72vh, 520px);
  aspect-ratio: 1;
  padding: 16px;
}

.token-slideshow-img {
  max-width: 100%;
  max-height: min(64vh, 480px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.token-slideshow-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.token-slideshow-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.token-slideshow-btn:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
}

.token-slideshow-counter {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
  text-align: center;
}

html[data-theme="light"] .token-slideshow {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .token-slideshow-bar {
  background: rgba(255, 255, 255, 0.75);
  border-top-color: rgba(0, 0, 0, 0.07);
}

/* Timed deck slideshow (exported slides + optional separate audio) */
.deck-slideshow {
  margin: 18px 0 26px;
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  max-width: min(960px, 100%);
}

.deck-slideshow-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: min(72vh, 560px);
  aspect-ratio: 16 / 9;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.deck-slideshow-img {
  max-width: 100%;
  max-height: min(64vh, 520px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.deck-slideshow-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.deck-slideshow-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  min-width: 88px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.deck-slideshow-btn:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
}

.deck-slideshow-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.deck-slideshow-status {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 10ch;
  text-align: center;
}

html[data-theme="light"] .deck-slideshow {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .deck-slideshow-bar {
  background: rgba(255, 255, 255, 0.75);
  border-top-color: rgba(0, 0, 0, 0.07);
}

/* Token project page: slideshow floats left; headings & paragraphs wrap on the right, then span full width below */
.page-token-project .token-project-body {
  display: flow-root;
  margin-top: 10px;
}

.page-token-project .token-project-body > .token-slideshow {
  float: left;
  width: min(40%, 340px);
  max-width: calc(100% - 12px);
  margin: 0 1.35rem 1rem 0;
}

.page-token-project .token-project-body .token-slideshow-frame {
  max-height: none;
  min-height: 0;
  aspect-ratio: 1;
}

.page-token-project .token-project-body .token-slideshow-img {
  max-height: min(48vh, 380px);
}

@media (max-width: 720px) {
  .page-token-project .token-project-body > .token-slideshow {
    float: none;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-token-project .token-project-body .token-slideshow-img {
    max-height: min(56vh, 420px);
  }
}

/* Spans */
.tile {
  grid-column: span 4;
}

.tile-span-2 {
  grid-column: span 8;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.about-card {
  border-radius: var(--r2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
}

.about-lead {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.75;
}

.about-copy {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
}

.about-points {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.about-side {
  display: grid;
  gap: 12px;
}

.personal-layout {
  align-items: stretch;
}

.about-mini {
  border-radius: var(--r2);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  padding: 16px 18px;
}

.mini-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
}

.mini-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

/* Contact */
.section-footer {
  padding-bottom: 26px;
}

.resume-tabs {
  margin-bottom: 6px;
}

/* Home: show summary / alignment only; full resume on resume.html */
.page-home #resume .resume-extended {
  display: none;
}

.resume-quiet-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 18px;
  padding-left: 2px;
}

.resume-quiet-link {
  font-size: 0.82rem;
  color: var(--faint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.resume-quiet-link:hover {
  color: var(--muted);
  border-bottom-color: rgba(201, 162, 39, 0.35);
}

html[data-theme="light"] .resume-quiet-link:hover {
  border-bottom-color: rgba(111, 86, 16, 0.4);
}

/* resume.html / token-project.html: “Portfolio home” matches in-panel h3 */
.page-resume .resume-quiet-link--resume-subhead,
.page-token-project .resume-quiet-link--resume-subhead {
  color: var(--accent);
}

.page-resume .resume-quiet-link--resume-subhead:hover,
.page-token-project .resume-quiet-link--resume-subhead:hover {
  color: var(--accent2);
  border-bottom-color: rgba(201, 162, 39, 0.45);
}

html[data-theme="light"] .page-resume .resume-quiet-link--resume-subhead:hover,
html[data-theme="light"] .page-token-project .resume-quiet-link--resume-subhead:hover {
  border-bottom-color: rgba(155, 122, 24, 0.45);
}

.resume-panel {
  display: none;
}

.resume-panel.is-active {
  display: block;
}

/* Token project sub-pages: tab panels */
.token-panel {
  display: none;
}

.token-panel.is-active {
  display: block;
}

.page-token-project #muzik-healz,
.page-token-project #game-streem,
.page-token-project #lityour,
.page-token-project #intellectual-security,
.page-token-project #healing-housing,
.page-token-project #family-sovereignty,
.page-token-project #dedication-mom,
.page-token-project #mentors,
.page-token-project #collaborators {
  scroll-margin-top: 88px;
}

.token-panel--intellectual-security .token-slideshow {
  border-color: rgba(119, 181, 254, 0.28);
  background: linear-gradient(165deg, rgba(15, 26, 42, 0.95), rgba(0, 0, 0, 0.92));
}

.token-panel--healing-housing .token-slideshow {
  border-color: rgba(96, 200, 140, 0.28);
  background: linear-gradient(165deg, rgba(12, 28, 20, 0.95), rgba(0, 0, 0, 0.92));
}

.token-panel--family-sovereignty .token-slideshow {
  border-color: rgba(201, 162, 39, 0.32);
  background: linear-gradient(165deg, rgba(28, 22, 10, 0.96), rgba(0, 0, 0, 0.94));
}

.token-panel--dedication-mom .token-slideshow {
  border-color: rgba(220, 140, 180, 0.28);
  background: linear-gradient(165deg, rgba(32, 14, 28, 0.96), rgba(0, 0, 0, 0.94));
}

.token-panel--mentors .token-slideshow {
  border-color: rgba(119, 181, 254, 0.22);
  background: linear-gradient(165deg, rgba(12, 18, 36, 0.95), rgba(0, 0, 0, 0.92));
}

.token-panel--collaborators .token-slideshow {
  border-color: rgba(64, 196, 180, 0.26);
  background: linear-gradient(165deg, rgba(10, 24, 28, 0.95), rgba(0, 0, 0, 0.92));
}

.resume-viewer {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r2);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  min-height: 70vh;
}

.resume-viewer iframe {
  width: 100%;
  min-height: 70vh;
  border: 0;
}

.resume-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.resume-title {
  margin: 0 0 4px;
  font-weight: 600;
}

.resume-contact {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.resume-avatar-button {
  flex-shrink: 0;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.resume-avatar {
  width: 180px;
  height: 180px;
  border-radius: 0;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.resume-page .about-points {
  list-style: none;
  padding-left: 0;
}

.resume-page .about-points li {
  position: relative;
  padding-left: 1.2rem;
}

.resume-page .about-points li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.65rem;
  color: var(--accent);
  text-shadow: 0 0 4px rgba(201, 162, 39, 0.7);
  animation: diamondSparkle 2.8s ease-in-out infinite;
}

@keyframes diamondSparkle {
  0%, 85%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  90% {
    opacity: 1;
    transform: scale(1.2);
  }
  95% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.contact-link {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.contact-link:hover {
  border-color: rgba(201, 162, 39, 0.45);
}

.contact-dot {
  color: rgba(255, 255, 255, 0.40);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
}

.lightbox.open {
  display: flex;
}

.lightbox-dialog {
  width: min(1100px, 100%);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 12, 15, 0.95);
  box-shadow: var(--shadow);
}

.lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
}

.lightbox-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.lightbox-body {
  padding: 14px;
}

.lightbox-body img,
.lightbox-body video {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #000;
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--page-pad) 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.60);
  font-size: 13px;
}

.footer-right {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .resume-layout {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  /* Fit brand + theme + hamburger on narrow viewports (≤360px): drop fixed 220px min-width. */
  .topbar-inner {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
    min-width: 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .brand-wordmark {
    min-width: 0;
    max-width: min(200px, calc(100vw - 132px));
  }

  .brand-signature {
    max-width: 100%;
    height: 28px;
    width: auto;
    object-fit: contain;
    object-position: left center;
  }

  .topbar-actions {
    flex-shrink: 0;
    gap: 8px;
    position: relative;
    z-index: 1;
  }

  .theme-toggle,
  .nav-toggle {
    flex-shrink: 0;
  }

  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }

  .tile,
  .tile-span-2 {
    grid-column: span 12;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .nav-drawer,
  .nav-drawer-backdrop {
    transition: none;
  }
  .welcome-rotator.is-exiting,
  .welcome-rotator.is-entering {
    animation: none;
  }
  .tile,
  .cta-link,
  .cta-link::after {
    transition: none;
  }
}
