:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111114;
  color: #f8f7fb;
  line-height: 1.65;
  --bg: #111114;
  --bg-elevated: #18181d;
  --bg-panel: #202027;
  --charcoal: #292930;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8f7fb;
  --muted: #b9b7c4;
  --neon-orange: #ff6b00;
  --neon-orange-soft: rgba(255, 107, 0, 0.22);
  --neon-purple: #bd00ff;
  --neon-purple-soft: rgba(189, 0, 255, 0.2);
  --acid: #f4ff3a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(189, 0, 255, 0.12), transparent 38%),
    var(--bg);
  color: var(--text);
}

.nav-bar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(17, 17, 20, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  z-index: 100;
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-logo {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 18px var(--neon-orange-soft);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--neon-orange);
}

.page-shell {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 80px;
  padding-top: 100px; /* Account for fixed nav */
}

.hero-section {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  align-items: center;
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-blurb {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  background: rgba(17, 17, 20, 0.58);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}

.hero-blurb > *:not(.hero-flag-video):not(.hero-flag-fallback) {
  position: relative;
  z-index: 2;
}

.hero-flag-video,
.hero-flag-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.45) contrast(1.12);
  pointer-events: none;
  z-index: 0;
}

.hero-flag-fallback {
  background:
    linear-gradient(90deg, rgba(230, 0, 18, 0.8) 0 24%, rgba(255, 255, 255, 0.86) 24% 76%, rgba(230, 0, 18, 0.8) 76% 100%);
  transform-origin: center;
  animation: flag-wave 5.5s ease-in-out infinite;
}

.hero-blurb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 20, 0.74), rgba(17, 17, 20, 0.42)),
    radial-gradient(circle at 20% 20%, rgba(255, 107, 0, 0.14), transparent 38%);
  z-index: 1;
  pointer-events: none;
}

@keyframes flag-wave {
  0%,
  100% {
    transform: scale(1.05) skewX(-1deg);
    filter: brightness(0.9);
  }

  50% {
    transform: scale(1.08) skewX(1.5deg);
    filter: brightness(1.06);
  }
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--neon-orange);
  text-shadow: 0 0 16px var(--neon-orange-soft);
}

.hero-section h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.02;
  color: var(--text);
}

.hero-section h1 small {
  display: block;
  margin-top: 8px;
  font-size: 0.525em;
  text-align: right;
  opacity: 0.8;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.03rem;
}

.life-counter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0;
}

.life-counter div {
  padding: 16px;
  border-radius: 12px;
  background: rgba(32, 32, 39, 0.82);
  border: 1px solid rgba(255, 107, 0, 0.24);
  box-shadow: inset 0 0 0 1px rgba(189, 0, 255, 0.08);
}

.life-counter strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
}

.life-counter span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.life-countdown {
  display: inline-grid;
  gap: 6px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(17, 17, 20, 0.68);
  border: 1px solid rgba(189, 0, 255, 0.28);
  box-shadow: 0 0 28px rgba(189, 0, 255, 0.1);
}

.life-countdown > span {
  color: var(--muted);
  font-size: 0.86rem;
}

.life-countdown strong {
  color: var(--text);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(32, 32, 39, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f0eef8;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.08);
}

.hero-contact-panel {
  max-width: 620px;
  margin: 0;
  padding: 18px;
  border-radius: 12px;
  background: rgba(24, 24, 29, 0.72);
  border: 1px solid rgba(255, 107, 0, 0.22);
}

.hero-contact-panel h2 {
  margin: 0 0 8px;
  color: var(--neon-orange);
  font-size: 1.2rem;
  text-shadow: 0 0 16px var(--neon-orange-soft);
}

.hero-contact-panel p {
  margin: 0;
  color: var(--muted);
}

.hero-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-contact-links a {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(17, 17, 20, 0.72);
  border: 1px solid rgba(189, 0, 255, 0.34);
}

.hero-contact-links a:hover {
  border-color: rgba(255, 107, 0, 0.7);
  background: rgba(255, 107, 0, 0.12);
}

.brand-pill {
  position: relative;
}

.brand-pill img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.brand-xfit img {
  width: 32px;
  height: 16px;
}

.hero-image {
  display: grid;
  gap: 18px;
  place-items: center;
}

.hero-image img {
  width: min(100%, 520px);
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 0, 0.55);
  box-shadow:
    0 0 28px rgba(255, 107, 0, 0.22),
    0 0 58px rgba(189, 0, 255, 0.18),
    0 40px 120px rgba(0, 0, 0, 0.42);
}

.info-section {
  position: relative;
  display: grid;
  gap: 26px;
  margin: 60px 0;
  padding: 34px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(24, 24, 29, 0.9);
  border: 1px solid rgba(255, 107, 0, 0.24);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.info-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  transform: scale(1.08);
  filter: blur(8px) saturate(150%) contrast(105%);
  pointer-events: none;
}

.info-section > * {
  position: relative;
  z-index: 1;
}

.info-card,
.panel {
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.08), transparent 42%),
    var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.info-card h2,
.panel h2 {
  margin: 0 0 18px;
  font-size: 1.8rem;
  color: var(--neon-orange);
  text-shadow: 0 0 16px var(--neon-orange-soft);
}

.info-card p,
.panel p {
  margin: 0;
  color: var(--muted);
}

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

.grid-panel article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 26px;
  border-radius: 14px;
  background: rgba(41, 41, 48, 0.86);
  border: 1px solid rgba(189, 0, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-panel article:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.55);
  box-shadow: 0 18px 48px rgba(189, 0, 255, 0.13);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  margin: 0 0 16px;
}

.card-logo-frame {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  max-width: 50px;
  flex: 0 0 50px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(17, 17, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 22px rgba(255, 107, 0, 0.16);
}

.grid-panel .card-logo {
  display: block;
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  object-fit: cover;
  border-radius: 9px;
}

.grid-panel .card-logo-csi {
  object-fit: contain;
  padding: 4px;
}

.grid-panel article h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--neon-orange);
}

.grid-panel article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-height: 220px;
  overflow: hidden;
  padding-right: 8px;
  transition: max-height 0.25s ease;
}

.grid-panel article.is-expanded p {
  max-height: none;
}

.grid-panel article.is-collapsible:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 74px;
  height: 58px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(41, 41, 48, 0.96));
}

.service-card-toggle {
  align-self: flex-start;
  margin: 18px 0 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.76);
  color: var(--text);
  border: 1px solid rgba(255, 107, 0, 0.34);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.service-card-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 0, 0.72);
  background: rgba(255, 107, 0, 0.12);
}

.philosophy-section {
  margin: 0 0 52px;
}

.projects-section,
.cta-section,
.latest-notes-section,
.subscribe-section {
  margin: 0 0 52px;
}

.latest-notes-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.latest-notes-list article {
  padding: 16px;
  border-radius: 12px;
  background: rgba(17, 17, 20, 0.58);
  border: 1px solid rgba(255, 107, 0, 0.18);
}

.latest-notes-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.latest-notes-list h3 {
  margin: 6px 0 8px;
  color: var(--neon-orange);
}

.latest-notes-list p {
  margin: 0;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0 0 52px;
}

.form-row .subscribe-section,
.form-row .guestbook-section {
  margin: 0;
}

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

.projects-grid article {
  padding: 24px;
  border-radius: 14px;
  background: rgba(41, 41, 48, 0.82);
  border: 1px solid rgba(189, 0, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.06);
}

.projects-grid article h3 {
  margin: 0 0 12px;
  color: var(--neon-orange);
}

.projects-grid article p {
  margin: 0;
  color: var(--muted);
}

.cta-section .cta-panel {
  text-align: center;
}

.cta-button {
  display: inline-flex;
  margin-top: 24px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--neon-orange);
  color: #16100c;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 24px var(--neon-orange-soft);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  background: #ff8a2a;
  box-shadow: 0 0 32px rgba(255, 107, 0, 0.36);
}

.cta-button.secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(189, 0, 255, 0.55);
  box-shadow: 0 0 22px var(--neon-purple-soft);
}

.cta-button.secondary:hover {
  background: rgba(189, 0, 255, 0.16);
}

.recent-visitors-panel {
  width: min(100%, 520px);
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(24, 24, 29, 0.88);
  border: 1px solid rgba(255, 107, 0, 0.22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.hero-visitors-panel h2 {
  margin: 0;
  color: var(--neon-orange);
  font-size: 1rem;
  text-shadow: 0 0 16px var(--neon-orange-soft);
}

.recent-visitors-list {
  display: grid;
  gap: 10px;
  margin: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 0 6px 0 0;
  list-style: none;
}

.recent-visitors-list::-webkit-scrollbar {
  width: 8px;
}

.recent-visitors-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.recent-visitors-list::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-orange), var(--neon-purple));
  border-radius: 999px;
}

.recent-visitors-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(17, 17, 20, 0.58);
  border: 1px solid rgba(255, 107, 0, 0.18);
}

.recent-visitors-list span {
  color: var(--text);
  font-size: 0.9rem;
}

.recent-visitors-list small {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.subscribe-panel {
  display: grid;
  gap: 18px;
}

.subscribe-form {
  display: grid;
  gap: 16px;
}

.subscribe-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subscribe-form input[type="text"],
.subscribe-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 107, 0, 0.28);
  border-radius: 8px;
  background: rgba(17, 17, 20, 0.82);
  color: var(--text);
  font-family: inherit;
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--neon-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
}

.subscribe-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subscribe-topics label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.72);
  border: 1px solid rgba(189, 0, 255, 0.28);
  color: var(--text);
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
}

.form-message.success {
  color: #dbffe4;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.34);
}

.form-message.error {
  color: #ffe1dd;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.34);
}

@media (max-width: 900px) {
  .nav-container {
    height: auto;
    min-height: 74px;
    padding-top: 10px;
    padding-bottom: 10px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav-logo {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .nav-links a {
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .page-shell {
    padding-top: 128px;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .life-counter {
    grid-template-columns: 1fr;
  }

  .grid-panel {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .subscribe-fields {
    grid-template-columns: 1fr;
  }

  .recent-visitors-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .recent-visitors-list small {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 24px));
    padding: 128px 0 48px;
  }

  .hero-section {
    padding: 24px 0 48px;
  }

  .hero-tags {
    gap: 8px;
  }

  .hero-image img {
    width: 100%;
  }
}

.page-footer {
  display: block;
  margin-top: 18px;
  padding: 18px 0 6px;
  text-align: center;
  color: #94909e;
  font-size: 0.95rem;
}

.guestbook-section {
  margin: 60px 0;
}

.guestbook-form {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.guestbook-form input,
.guestbook-form textarea {
  padding: 12px;
  border: 1px solid rgba(255, 107, 0, 0.28);
  border-radius: 8px;
  background: rgba(17, 17, 20, 0.82);
  color: var(--text);
  font-family: inherit;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--neon-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
}

.guestbook-form textarea {
  min-height: 100px;
  resize: vertical;
}

.guestbook-entries {
  display: grid;
  gap: 20px;
}

.entry {
  padding: 16px;
  border-radius: 12px;
  background: rgba(41, 41, 48, 0.76);
  border: 1px solid rgba(189, 0, 255, 0.22);
}

.entry strong {
  color: var(--neon-orange);
}

.entry small {
  color: #94909e;
  font-size: 0.85rem;
}

.gallery-shell {
  min-height: 100vh;
}

.gallery-header {
  margin: 0 0 28px;
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--line);
}

.gallery-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  text-transform: capitalize;
}

.gallery-count {
  margin: 14px 0 0;
  color: var(--muted);
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(216px, 448px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px);
  gap: 12px;
  align-content: start;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 8px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 200px;
  height: 200px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(32, 32, 39, 0.86);
  border: 1px solid rgba(255, 107, 0, 0.22);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover,
.gallery-item.is-active {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 0, 0.72);
  box-shadow: 0 18px 44px rgba(189, 0, 255, 0.15);
}

.gallery-item img {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-item:hover img,
.gallery-item.is-active img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-item span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.86);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.gallery-preview {
  position: sticky;
  top: 84px;
  overflow: hidden;
  min-height: calc(100vh - 220px);
  padding: 18px;
  border-radius: 14px;
  background: rgba(24, 24, 29, 0.9);
  border: 1px solid rgba(255, 107, 0, 0.24);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.gallery-preview-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: blur(22px) saturate(1.25);
  transform: scale(1.08);
}

.gallery-preview-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  justify-items: center;
}

.gallery-preview-inner > img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 390px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 0, 0.38);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
}

.gallery-preview-details {
  width: min(100%, 620px);
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.gallery-preview-details h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
}

.gallery-preview-details p {
  margin: 0;
}

.gallery-preview-actions,
.gallery-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-preview-actions form {
  margin: 0;
}

.gallery-preview button,
.gallery-caption-form button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--neon-orange);
  color: #16100c;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gallery-nav-buttons button {
  background: rgba(17, 17, 20, 0.74);
  color: var(--text);
  border-color: rgba(189, 0, 255, 0.45);
}

.gallery-caption-form {
  display: grid;
  gap: 8px;
}

.gallery-caption-form label {
  color: var(--text);
  font-weight: 700;
}

.gallery-caption-form input[type="text"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 0, 0.28);
  background: rgba(17, 17, 20, 0.82);
  color: var(--text);
  font: inherit;
}

.gallery-empty code {
  color: var(--text);
}

.store-header {
  margin: 0 0 28px;
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--line);
}

.store-header h1 {
  margin: 0;
  color: var(--neon-orange);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  text-shadow: 0 0 16px var(--neon-orange-soft);
}

.store-header p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.store-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.store-item,
.store-cart {
  border-radius: 14px;
  background: rgba(41, 41, 48, 0.86);
  border: 1px solid rgba(189, 0, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.06);
}

.store-item {
  overflow: hidden;
}

.store-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(17, 17, 20, 0.82);
}

.store-item div,
.store-cart {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.store-item h2,
.store-cart h2,
.store-empty h2 {
  margin: 0;
  color: var(--neon-orange);
  text-shadow: 0 0 16px var(--neon-orange-soft);
}

.store-item p,
.store-paypal-note,
.store-empty p {
  margin: 0;
  color: var(--muted);
}

.store-item strong,
.cart-total strong {
  color: var(--text);
}

.store-add-button,
.cart-line button,
.store-contact-link {
  justify-self: start;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--neon-orange);
  color: #16100c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.store-cart {
  position: sticky;
  top: 84px;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-items p {
  margin: 0;
  color: var(--muted);
}

.cart-line,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(17, 17, 20, 0.58);
  border: 1px solid rgba(255, 107, 0, 0.18);
}

.cart-line div {
  display: grid;
  gap: 2px;
}

.cart-line span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-line button {
  padding: 8px 10px;
  background: rgba(17, 17, 20, 0.74);
  color: var(--text);
  border-color: rgba(189, 0, 255, 0.45);
}

.store-paypal-note code,
.store-empty code {
  color: var(--text);
}

.store-empty-modal {
  min-height: 48vh;
  display: grid;
  place-items: center;
}

.store-empty {
  width: min(100%, 560px);
  text-align: center;
}

.store-empty .store-contact-link {
  justify-self: center;
  margin-top: 8px;
}

.music-header {
  margin: 0 0 28px;
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--line);
}

.music-header h1 {
  margin: 0;
  color: var(--neon-orange);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  text-shadow: 0 0 16px var(--neon-orange-soft);
}

.music-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.music-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.music-panel {
  display: grid;
  gap: 18px;
}

.music-embed {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 0, 0.24);
  background: rgba(17, 17, 20, 0.78);
}

.music-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.music-direct-link {
  justify-self: start;
  color: var(--neon-orange);
  font-weight: 700;
  text-decoration: none;
}

.music-direct-link:hover {
  text-decoration: underline;
}

.music-track-list {
  display: grid;
  gap: 14px;
}

.music-track {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(17, 17, 20, 0.58);
  border: 1px solid rgba(255, 107, 0, 0.18);
}

.music-track h3 {
  margin: 0;
  color: var(--neon-orange);
}

.music-track audio {
  width: 100%;
}

.music-empty {
  padding: 18px;
  border-radius: 12px;
  background: rgba(17, 17, 20, 0.58);
  border: 1px solid rgba(255, 107, 0, 0.18);
  color: var(--muted);
}

.music-empty p {
  margin: 0;
}

.music-empty code {
  color: var(--text);
}

.admin-shell {
  max-width: 1140px;
}

.admin-panel,
.admin-form,
.admin-tool,
.admin-caption-form,
.admin-note-list {
  display: grid;
  gap: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.admin-tool {
  padding: 18px;
  border-radius: 12px;
  background: rgba(41, 41, 48, 0.82);
  border: 1px solid rgba(189, 0, 255, 0.22);
}

.admin-tool h3 {
  margin: 0;
  color: var(--neon-orange);
}

.admin-form input,
.admin-form textarea,
.admin-caption-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 107, 0, 0.28);
  border-radius: 8px;
  background: rgba(17, 17, 20, 0.82);
  color: var(--text);
  font-family: inherit;
}

.admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-note-list article,
.admin-caption-form label {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(17, 17, 20, 0.58);
  border: 1px solid rgba(255, 107, 0, 0.18);
}

.admin-note-list span,
.admin-caption-form span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-note-list p {
  margin: 0;
  color: var(--muted);
}

.admin-note-list button {
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.74);
  color: var(--text);
  border: 1px solid rgba(189, 0, 255, 0.45);
  font: inherit;
  cursor: pointer;
}

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .gallery-item,
  .gallery-item img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    aspect-ratio: 1;
  }

  .gallery-preview {
    position: static;
    min-height: auto;
  }

  .gallery-preview-inner > img {
    max-height: 70vh;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-cart {
    position: static;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .music-layout {
    grid-template-columns: 1fr;
  }
}
