:root {
  color-scheme: dark;
  --scroll-y: 0px;
  --scroll-ratio: 0;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #030609;
  --bg-2: #0b1017;
  --surface: rgba(11, 17, 25, 0.82);
  --surface-strong: rgba(15, 23, 34, 0.94);
  --text: #f3f8ff;
  --muted: #a7b5c9;
  --accent: #4de8ff;
  --accent-2: #91d8ff;
  --accent-3: #dff8ff;
  --ember: #1b2733;
  --border: rgba(77, 232, 255, 0.34);
  --glow: rgba(77, 232, 255, 0.42);
  --shadow: rgba(0, 0, 0, 0.6);
}

[data-theme="royal-ember"] {
  --bg: #030407;
  --bg-2: #071022;
  --surface: rgba(10, 15, 28, 0.84);
  --surface-strong: rgba(13, 19, 35, 0.95);
  --text: #fff7e7;
  --muted: #c4b7a5;
  --accent: #f4c35a;
  --accent-2: #c21838;
  --accent-3: #fff0ba;
  --ember: #2c1623;
  --border: rgba(244, 195, 90, 0.38);
  --glow: rgba(244, 195, 90, 0.36);
}

[data-theme="toxic-arcane"] {
  --bg: #020604;
  --bg-2: #06130d;
  --surface: rgba(5, 18, 12, 0.84);
  --surface-strong: rgba(9, 27, 18, 0.95);
  --text: #effff4;
  --muted: #9ec4ad;
  --accent: #18ff84;
  --accent-2: #b8ff2f;
  --accent-3: #ddffd5;
  --ember: #102115;
  --border: rgba(24, 255, 132, 0.34);
  --glow: rgba(24, 255, 132, 0.34);
}

[data-theme="violet-void"] {
  --bg: #05030a;
  --bg-2: #12091e;
  --surface: rgba(17, 9, 29, 0.84);
  --surface-strong: rgba(25, 12, 42, 0.95);
  --text: #fff2ff;
  --muted: #c1a7ce;
  --accent: #aa6cff;
  --accent-2: #ff49c8;
  --accent-3: #ffd8fb;
  --ember: #23102f;
  --border: rgba(170, 108, 255, 0.38);
  --glow: rgba(255, 73, 200, 0.3);
}

[data-theme="crimson-forge"] {
  --bg: #050404;
  --bg-2: #14100f;
  --surface: rgba(19, 16, 15, 0.86);
  --surface-strong: rgba(31, 24, 21, 0.95);
  --text: #fff4ee;
  --muted: #c2aca1;
  --accent: #ff4136;
  --accent-2: #ff8a2a;
  --accent-3: #ffd1a4;
  --ember: #2d1511;
  --border: rgba(255, 65, 54, 0.36);
  --glow: rgba(255, 92, 42, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 30rem),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 34rem),
    linear-gradient(135deg, var(--bg), var(--bg-2) 52%, var(--bg));
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-position:
    0 calc(var(--scroll-y) * -0.12),
    calc(var(--scroll-y) * 0.08) 0;
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 80%, transparent);
}

body::after {
  position: fixed;
  inset: -20%;
  z-index: -4;
  pointer-events: none;
  content: "";
  background:
    conic-gradient(from calc(var(--scroll-ratio) * 360deg) at 18% 28%, transparent 0deg, color-mix(in srgb, var(--accent) 18%, transparent) 28deg, transparent 68deg),
    conic-gradient(from calc(var(--scroll-ratio) * -280deg) at 82% 62%, transparent 0deg, color-mix(in srgb, var(--accent-2) 14%, transparent) 38deg, transparent 92deg);
  filter: blur(18px);
  opacity: 0.42;
  transform: translate3d(0, calc(var(--scroll-y) * -0.04), 0) rotate(calc(var(--scroll-ratio) * 10deg));
}

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

img {
  display: block;
  width: 100%;
}

.cursor-core,
.cursor-ring {
  display: none;
}

@media (pointer: fine) {
  html,
  body,
  a,
  button {
    cursor: none;
  }

  .cursor-core,
  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: block;
    pointer-events: none;
    opacity: 0;
    transition: opacity 160ms ease, width 180ms ease, height 180ms ease, border-color 180ms ease, background 180ms ease;
    will-change: transform;
  }

  .cursor-core {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 12px var(--accent), 0 0 28px var(--glow);
  }

  .cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background:
      linear-gradient(var(--accent), var(--accent)) 50% 0 / 1px 8px no-repeat,
      linear-gradient(var(--accent), var(--accent)) 50% 100% / 1px 8px no-repeat,
      linear-gradient(90deg, var(--accent), var(--accent)) 0 50% / 8px 1px no-repeat,
      linear-gradient(90deg, var(--accent), var(--accent)) 100% 50% / 8px 1px no-repeat,
      radial-gradient(circle, transparent 48%, color-mix(in srgb, var(--accent) 16%, transparent) 52%, transparent 62%);
    box-shadow: 0 0 22px var(--glow), inset 0 0 14px color-mix(in srgb, var(--accent) 16%, transparent);
    mix-blend-mode: screen;
  }

  body.cursor-ready .cursor-core,
  body.cursor-ready .cursor-ring {
    opacity: 1;
  }

  body.cursor-hover .cursor-core {
    width: 6px;
    height: 6px;
    background: var(--accent);
  }

  body.cursor-hover .cursor-ring {
    width: 52px;
    height: 52px;
    border-color: var(--accent-3);
    background:
      linear-gradient(var(--accent-3), var(--accent-3)) 50% 0 / 1px 11px no-repeat,
      linear-gradient(var(--accent-3), var(--accent-3)) 50% 100% / 1px 11px no-repeat,
      linear-gradient(90deg, var(--accent-3), var(--accent-3)) 0 50% / 11px 1px no-repeat,
      linear-gradient(90deg, var(--accent-3), var(--accent-3)) 100% 50% / 11px 1px no-repeat,
      radial-gradient(circle, color-mix(in srgb, var(--accent) 11%, transparent), transparent 58%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  html,
  body,
  a,
  button {
    cursor: auto;
  }

  .cursor-core,
  .cursor-ring {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.page-aura {
  position: fixed;
  inset: auto -12rem -16rem auto;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  filter: blur(8px);
  opacity: 0.75;
  transform: translate3d(calc(var(--scroll-y) * -0.035), calc(var(--scroll-y) * -0.08), 0);
  pointer-events: none;
}

.scroll-magic {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.76;
  overflow: hidden;
}

.scroll-magic::before,
.scroll-magic::after {
  position: absolute;
  content: "";
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 42px color-mix(in srgb, var(--accent) 18%, transparent), inset 0 0 36px color-mix(in srgb, var(--accent) 8%, transparent);
}

.scroll-magic::before {
  top: 18vh;
  left: -14rem;
  width: 32rem;
  height: 32rem;
  transform: translate3d(calc(var(--scroll-y) * 0.09), calc(var(--scroll-y) * -0.035), 0) rotate(calc(var(--scroll-ratio) * 90deg));
}

.scroll-magic::after {
  right: -18rem;
  bottom: 4vh;
  width: 42rem;
  height: 42rem;
  border-color: color-mix(in srgb, var(--accent-2) 24%, transparent);
  transform: translate3d(calc(var(--scroll-y) * -0.07), calc(var(--scroll-y) * 0.025), 0) rotate(calc(var(--scroll-ratio) * -120deg));
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 38px, 0) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 780ms ease,
    transform 900ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 900ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.project-card.reveal,
.guild-card.reveal,
.member-card.reveal {
  transform: translate3d(0, 42px, 0) scale(0.96);
}

.project-card.reveal.is-visible,
.guild-card.reveal.is-visible,
.member-card.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.skill-cloud span.reveal {
  transform: translate3d(0, 18px, 0) scale(0.9);
}

.skill-cloud span.reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  opacity: 0.58;
  animation: drift 12s linear infinite;
}

.particles span:nth-child(1) { left: 8%; top: 24%; animation-duration: 14s; }
.particles span:nth-child(2) { left: 18%; top: 70%; animation-duration: 18s; }
.particles span:nth-child(3) { left: 31%; top: 15%; animation-duration: 13s; }
.particles span:nth-child(4) { left: 42%; top: 82%; animation-duration: 16s; }
.particles span:nth-child(5) { left: 55%; top: 32%; animation-duration: 19s; }
.particles span:nth-child(6) { left: 64%; top: 66%; animation-duration: 12s; }
.particles span:nth-child(7) { left: 73%; top: 18%; animation-duration: 15s; }
.particles span:nth-child(8) { left: 82%; top: 75%; animation-duration: 17s; }
.particles span:nth-child(9) { left: 92%; top: 44%; animation-duration: 20s; }
.particles span:nth-child(10) { left: 12%; top: 46%; animation-duration: 21s; }
.particles span:nth-child(11) { left: 50%; top: 8%; animation-duration: 11s; }
.particles span:nth-child(12) { left: 88%; top: 10%; animation-duration: 16s; }

.content-wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
  background: linear-gradient(to bottom, rgba(3, 6, 9, 0.86), rgba(3, 6, 9, 0.48));
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 28px));
  min-height: 58px;
  margin-inline: auto;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.72);
  box-shadow: 0 0 26px color-mix(in srgb, var(--glow) 50%, transparent);
}

.brand-mark,
.site-menu {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-sigil {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, transparent), rgba(255, 255, 255, 0.02));
  color: var(--accent-3);
  font-family: var(--font-display);
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 18px var(--glow);
  overflow: hidden;
}

.brand-sigil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-menu {
  gap: 6px;
}

.site-menu a,
.theme-switcher button,
.btn {
  min-height: 42px;
  border-radius: 7px;
}

.site-menu a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: transparent;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section-band {
  padding: 92px 0;
}

.hero-section {
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: center;
  padding-top: 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  gap: 0;
  align-items: center;
  justify-content: start;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
}

h1 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 9.2rem);
  letter-spacing: 0;
  text-shadow: 0 0 28px var(--glow), 0 10px 40px var(--shadow);
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 4.5rem);
}

h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
}

.hero-title {
  margin-bottom: 6px;
  color: var(--accent-3);
  font-size: clamp(1.25rem, 3vw, 2.15rem);
  font-weight: 800;
}

.hero-affiliation {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--border);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #030609;
  box-shadow: 0 0 28px var(--glow);
}

.btn-secondary {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
}

.btn:hover,
.project-card:hover,
.guild-card:hover,
.member-card:hover {
  transform: translateY(-4px);
}

.split-layout,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.text-panel,
.project-card,
.guild-card,
.member-card,
.contact-list a {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 24%),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.text-panel {
  padding: 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-panel p,
.contact-intro,
.guild-card p {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 34px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -14px 0 28px;
}

.filter-btn {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}

.filter-btn:hover,
.filter-btn:focus-visible,
.filter-btn.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-3);
  box-shadow: 0 0 18px var(--glow), inset 0 0 18px color-mix(in srgb, var(--accent) 10%, transparent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card.is-filtered-out {
  display: none;
}

.project-card::before,
.guild-card::before,
.member-card::before,
.contact-list a::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-visible,
.guild-card:hover,
.guild-card:focus-visible,
.member-card:hover,
.member-card:focus-visible,
.contact-list a:hover {
  border-color: color-mix(in srgb, var(--accent) 78%, white 12%);
  box-shadow: 0 0 32px var(--glow), 0 24px 58px rgba(0, 0, 0, 0.38);
  outline: none;
}

.project-card:hover::before,
.project-card:focus-visible::before,
.guild-card:hover::before,
.guild-card:focus-visible::before,
.member-card:hover::before,
.member-card:focus-visible::before,
.contact-list a:hover::before {
  opacity: 1;
}

.project-card img {
  height: 280px;
  object-fit: cover;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 48%),
    linear-gradient(145deg, #141a22, #05070a);
}

.project-card-wide {
  grid-column: span 2;
}

.project-card-wide img {
  height: 320px;
}

.project-card-tall {
  min-height: 520px;
}

.project-card-tall img {
  height: 410px;
}

.project-body {
  padding: 20px;
}

.project-body::after {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  content: "Open preview";
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-card:hover .project-body::after,
.project-card:focus-visible .project-body::after {
  opacity: 1;
  transform: translateY(0);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill-cloud span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), rgba(255, 255, 255, 0.03));
  color: var(--accent-3);
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.03);
}

.guild-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guild-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-height: 340px;
  padding: 24px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.guild-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(1.15) contrast(1.05);
}

.guild-logo-bg {
  opacity: 0.18;
  transform: scale(1.05);
}

.guild-card > :not(.guild-image) {
  position: relative;
  z-index: 1;
}

.guild-sigil {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  box-shadow: 0 0 24px var(--glow), inset 0 0 22px color-mix(in srgb, var(--accent) 18%, transparent);
  overflow: hidden;
}

.guild-sigil-logo {
  width: 88px;
  height: 88px;
  background: rgba(0, 0, 0, 0.32);
}

.guild-sigil-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild-card p {
  color: var(--muted);
}

.guild-link {
  display: inline-flex;
  margin-top: 18px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-3);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guild-link:hover,
.guild-link:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--glow);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.member-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.member-card img {
  height: 330px;
  object-fit: cover;
}

.member-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.76), color-mix(in srgb, var(--accent) 15%, rgba(0, 0, 0, 0.62)));
  backdrop-filter: blur(10px);
}

.member-caption h3,
.member-caption .project-type {
  position: relative;
  z-index: 1;
}

.contact-intro {
  max-width: 520px;
  color: var(--muted);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 18px;
  overflow: hidden;
  color: var(--accent-3);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--accent-3);
  transform: translateY(-2px);
}

.member-card {
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34rem),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: min(86vh, 860px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 0 48px var(--glow), 0 32px 90px rgba(0, 0, 0, 0.72);
  transform: translateY(22px) scale(0.985);
  transition: transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

.lightbox.is-open .lightbox-panel {
  transform: translateY(0) scale(1);
}

.lightbox-image {
  max-height: calc(86vh - 110px);
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 38rem),
    #030609;
}

.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
}

.lightbox-title {
  color: var(--accent-3);
  text-align: right;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 81;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(3, 6, 9, 0.82);
  color: var(--accent-3);
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 0 24px var(--glow);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--accent);
  color: var(--text);
}

.theme-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 8px;
  max-width: calc(100vw - 36px);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(3, 6, 9, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.36);
}

.theme-switcher button {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 10px;
  white-space: nowrap;
}

.theme-switcher button:hover,
.theme-switcher button.is-active {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--accent) 14%, transparent);
}

.site-footer {
  padding: 34px 20px 110px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

@keyframes drift {
  0% { transform: translate3d(0, 30px, 0); opacity: 0; }
  20% { opacity: 0.7; }
  100% { transform: translate3d(22px, -120px, 0); opacity: 0; }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    display: none;
    width: min(260px, calc(100vw - 28px));
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
  }

  .site-menu.is-open {
    display: grid;
  }

  .site-menu a {
    width: 100%;
  }

  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guild-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-wide {
    grid-column: span 2;
  }

  .theme-switcher {
    left: 14px;
    right: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-switcher button {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .content-wrap {
    width: min(100% - 28px, 1160px);
  }

  .section-band {
    padding: 68px 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .portfolio-grid,
  .guild-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .project-card-wide {
    grid-column: auto;
  }

  .project-card {
    min-height: 340px;
  }

  .project-card img {
    height: 230px;
  }

  .project-card-wide img,
  .project-card-tall img {
    height: 250px;
  }

  .guild-card {
    grid-template-columns: 1fr;
  }

  .guild-image {
    opacity: 0.18;
  }

  .member-card,
  .member-card img {
    min-height: 260px;
    height: 260px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-image {
    max-height: calc(82vh - 126px);
  }

  .lightbox-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox-title {
    text-align: left;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .theme-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
