/* ==========================================
   CERESEL COSPLAY — Cosmic Carnival × Persona
   ========================================== */

:root {
  --bg-deep: #121220;
  --bg-section: #1a1a2e;
  --bg-card: #22223a;
  --bg-card-hover: #2a2a45;

  --purple-dark: #2d1b69;
  --purple-mid: #6b3fa0;
  --purple-light: #9b6dd7;
  --purple-glow: #bf8af0;

  --gold: #d4a843;
  --gold-bright: #f0c955;
  --gold-dim: #9e7a2f;

  --red-accent: #e63946;
  --red-dim: #a82833;

  --text-primary: #f0eef5;
  --text-secondary: #a9a4b8;
  --text-muted: #6b6580;

  --font-display: 'Josefin Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;

  --nav-height: 70px;
  --section-pad: 100px;
  --diagonal-height: 60px;
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--gold-bright);
}

/* === Navigation === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(18, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(107, 63, 160, 0.2);
}

.nav-logo img {
  height: 120px;
  width: auto;
  transform: translateY(8px);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--bg-deep) 0%,
    #1c1038 40%,
    #251545 70%,
    var(--bg-deep) 100%
  );
  overflow: hidden;
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(155, 109, 215, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(212, 168, 67, 0.4), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(191, 138, 240, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 70% 85%, rgba(240, 201, 85, 0.3), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 90% 15%, rgba(155, 109, 215, 0.4), transparent);
  animation: starDrift 30s linear infinite;
}

@keyframes starDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-logo {
  max-width: 50vw;
  width: 50vw;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 30px rgba(107, 63, 160, 0.3));
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-tagline .jp {
  font-family: var(--font-jp);
  color: var(--gold);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: hangBounce 2s ease-in-out infinite;
}

.star-hang {
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.6;
}

@keyframes hangBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-primary:hover {
  background: var(--gold-bright);
  color: var(--bg-deep);
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--purple-mid);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  margin-left: 12px;
}

.btn-outline:hover {
  border-color: var(--purple-light);
  background: rgba(107, 63, 160, 0.15);
  color: var(--text-primary);
  transform: translateX(4px);
}

/* === Sections === */
.section {
  position: relative;
  padding: calc(var(--section-pad) + var(--diagonal-height)) 0 var(--section-pad);
}

.section:nth-child(even) {
  background: var(--bg-section);
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple-mid));
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* === Diagonal Cuts (Persona-style section dividers) === */
.diagonal-cut {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--diagonal-height);
  z-index: 0;
  background: var(--bg-deep);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
  z-index: 1;
}

.diagonal-cut.reverse {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
}

.section:nth-child(even) .diagonal-cut {
  background: var(--bg-deep);
}

.section:nth-child(odd) .diagonal-cut {
  background: var(--bg-section);
}

/* === About === */
.about-photo {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid rgba(107, 63, 160, 0.2);
}

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--purple-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag {
  padding: 6px 16px;
  background: rgba(107, 63, 160, 0.15);
  border: 1px solid var(--purple-mid);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* === Portfolio Carousel === */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 48px;
}

.carousel-track-container {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-track .portfolio-card {
  flex: 0 0 calc((100% - 48px) / 3);
}

.carousel-btn {
  background: rgba(107, 63, 160, 0.2);
  border: 1px solid var(--purple-mid);
  color: var(--text-primary);
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  z-index: 3;
}

.carousel-btn:hover {
  background: rgba(107, 63, 160, 0.4);
  border-color: var(--purple-light);
}

.carousel-prev {
  margin-right: 16px;
}

.carousel-next {
  margin-left: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background: rgba(107, 63, 160, 0.3);
  border: 1px solid var(--purple-mid);
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--gold);
  border-color: var(--gold);
}

.portfolio-card {
  position: relative;
  transition: transform 0.4s ease;
}

.portfolio-card.lightbox-trigger {
  cursor: zoom-in;
}

.portfolio-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
}

.card-inner {
  background: var(--bg-card);
  border: 1px solid rgba(107, 63, 160, 0.15);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover .card-inner {
  border-color: var(--purple-mid);
  box-shadow: 0 8px 30px rgba(107, 63, 160, 0.2);
}

.card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.card-info {
  padding: 16px 20px;
}

.card-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.card-series {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}

.portfolio-card:hover .card-accent {
  height: 100%;
}

/* === WIP Section (Stained Glass Mosaic) === */
.wip-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.wip-filter {
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(107, 63, 160, 0.3);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.wip-filter:hover {
  border-color: var(--purple-mid);
  color: var(--text-primary);
}

.wip-filter.active {
  background: rgba(107, 63, 160, 0.25);
  border-color: var(--purple-light);
  color: var(--gold);
}

.wip-pane.hex-hidden {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.wip-mosaic {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 48px;
  overflow: hidden;
}

.wip-pane {
  position: absolute;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.wip-pane-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
  transition: transform 0.5s ease;
}

.wip-pane:hover .wip-pane-bg {
  transform: scale(1.05);
}

.wip-pane-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 32, 0.2) 0%, rgba(18, 18, 32, 0.85) 70%);
  transition: background 0.4s ease;
}

.wip-pane:hover .wip-pane-overlay {
  background: linear-gradient(180deg, rgba(18, 18, 32, 0.1) 0%, rgba(18, 18, 32, 0.7) 60%);
}

.wip-pane-leading {
  position: absolute;
  inset: -1px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(135deg, rgba(107, 63, 160, 0.5), rgba(212, 168, 67, 0.4));
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s;
}

.wip-pane:hover .wip-pane-leading {
  opacity: 1;
  background: linear-gradient(135deg, rgba(107, 63, 160, 0.8), rgba(212, 168, 67, 0.6));
}

.wip-pane-progress {
  position: absolute;
  inset: 0;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: conic-gradient(
    from 210deg,
    rgba(107, 63, 160, 0.6) 0%,
    rgba(212, 168, 67, 0.7) var(--progress),
    transparent var(--progress),
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  transition: opacity 0.4s;
}

.wip-pane:hover .wip-pane-progress {
  opacity: 0.7;
}

.wip-pane[data-status="complete"] .wip-pane-progress {
  background: conic-gradient(
    from 210deg,
    rgba(34, 112, 62, 0.5) 0%,
    rgba(74, 222, 128, 0.6) 100%
  );
}

.wip-pane-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18% 12%;
  text-align: center;
}

.wip-pane-badges {
  display: flex;
  gap: 6px;
  margin-top: auto;
  white-space: nowrap;
}

.wip-pane-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.featured .wip-pane-name {
  font-size: 1.3rem;
}

.wip-pane-character {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.wip-pane .slot-tags {
  margin: 8px 0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-mid), var(--gold));
  transition: width 1s ease;
}

.progress-fill.complete {
  background: linear-gradient(90deg, #22703e, #4ade80);
}

.slot-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.technique-tag {
  font-size: 0.65rem;
  padding: 2px 8px;
  background: rgba(212, 168, 67, 0.15);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slot-timer {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red-accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.slot-timer::before {
  content: '\23F1  ';
}

.slot-status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  backdrop-filter: blur(4px);
}

.slot-status.in-progress {
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  background: rgba(18, 18, 32, 0.6);
}

.slot-status.complete {
  color: #4ade80;
  border: 1px solid #22703e;
  background: rgba(18, 18, 32, 0.6);
}

.slot-category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  backdrop-filter: blur(4px);
}

.slot-category.competition {
  color: var(--purple-light);
  border: 1px solid var(--purple-mid);
  background: rgba(18, 18, 32, 0.6);
}

.slot-category.speed {
  color: var(--red-accent);
  border: 1px solid var(--red-dim);
  background: rgba(18, 18, 32, 0.6);
}

/* Flat-top hexagon — like real honeycomb */
.wip-pane {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}


/* === Events Timeline === */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.events-timeline-wrapper {
  position: relative;
  min-width: 0;
}

.events-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 16px;
  background: transparent;
  border: 1px solid var(--purple-mid);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: border-color 0.3s, color 0.3s;
}

.events-toggle:hover {
  border-color: var(--purple-light);
  color: var(--text-primary);
}

.events-toggle::before {
  content: '▾';
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 0.3s;
}

.events-toggle[aria-expanded="false"]::before {
  transform: rotate(-90deg);
}

.events-timeline {
  position: relative;
  padding-left: 32px;
}

.events-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-mid), var(--gold), var(--purple-mid));
  z-index: 0;
}

.event-node {
  position: relative;
  padding: 16px 0 16px 24px;
  transition: padding 0.3s ease;
}

.event-node + .event-node {
  border-top: 1px solid rgba(107, 63, 160, 0.1);
}

.event-marker {
  position: absolute;
  left: -32px;
  top: 22px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border: 3px solid var(--purple-dark);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 2;
}

.event-node:hover .event-marker {
  transform: scale(1.3);
  box-shadow: 0 0 18px rgba(212, 168, 67, 0.8);
}

.event-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.event-details h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
  line-height: 1.3;
}

.event-role {
  color: var(--purple-light);
  font-size: 0.85rem;
  margin-bottom: 2px;
  line-height: 1.3;
  overflow: hidden;
  max-height: 40px;
  transition: max-height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
}

.event-location {
  color: var(--text-muted);
  font-size: 0.8rem;
  overflow: hidden;
  max-height: 40px;
  transition: max-height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
}

.events-timeline.collapsed .event-node {
  padding: 8px 0 8px 24px;
}

.events-timeline.collapsed .event-role,
.events-timeline.collapsed .event-location {
  max-height: 0;
  margin: 0;
  opacity: 0;
}

.events-timeline.collapsed .event-year {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.events-timeline.collapsed .event-details h3 {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.events-photo {
  position: relative;
  aspect-ratio: 3/4;
  border: 2px solid rgba(107, 63, 160, 0.3);
  background: var(--bg-card);
  overflow: hidden;
}

.events-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.events-photo:not(.has-photo) img {
  display: none;
}

.events-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 20px;
}

.events-photo.has-photo .events-photo-placeholder {
  display: none;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
  margin-bottom: 32px;
}

.contact-list li {
  margin-bottom: 12px;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.contact-services h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.contact-services ul {
  list-style: none;
}

.contact-services li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.contact-services li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.6rem;
  top: 7px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid rgba(107, 63, 160, 0.2);
  color: var(--text-primary);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-mid);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b3fa0' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: 8px;
}

/* === Placeholder Images === */
.placeholder-img {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(107, 63, 160, 0.1) 100%);
  border: 1px dashed rgba(107, 63, 160, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.placeholder-img.portrait {
  width: 100%;
  aspect-ratio: 3/4;
}

.placeholder-img.landscape {
  width: 100%;
  aspect-ratio: 3/4;
}

.placeholder-img.square {
  width: 100%;
  aspect-ratio: 1;
}

.placeholder-img.thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

button.placeholder-img.thumb {
  cursor: pointer;
  transition: border-color 0.3s, transform 0.2s;
  padding: 0;
  font: inherit;
}

button.placeholder-img.thumb:hover {
  border-color: var(--gold);
  transform: scale(1.08);
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 18, 0.92);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  overflow-y: auto;
  padding: 60px 20px 40px;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 2px solid rgba(107, 63, 160, 0.3);
}

.lightbox-img[src=""] {
  display: none;
}

.lightbox-placeholder {
  display: none;
  text-align: center;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 60px;
  border: 2px solid rgba(107, 63, 160, 0.3);
  background: var(--bg-card);
}

.lightbox-placeholder.active {
  display: block;
}

.lightbox-wip-detail {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.lightbox-wip-detail h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 4px;
}

.lightbox-wip-character {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.lightbox-wip-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}


.lightbox-completed-date {
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.lightbox-thumb {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin-bottom: 20px;
  border: 2px solid rgba(107, 63, 160, 0.3);
}

.lightbox-gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.lightbox-gallery-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 2px solid rgba(107, 63, 160, 0.3);
  cursor: zoom-in;
  transition: border-color 0.3s, transform 0.2s;
}

.lightbox-gallery-img:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--gold);
}

/* === Footer === */
.site-footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid rgba(107, 63, 160, 0.15);
}

.footer-logo {
  height: 200px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 300px;
  }

  .carousel-track .portfolio-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

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

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

  .events-photo {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: 70px;
    --nav-height: 60px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(18, 18, 32, 0.98);
    flex-direction: column;
    padding: 24px 40px;
    gap: 20px;
    border-bottom: 1px solid rgba(107, 63, 160, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-logo {
    max-width: 80vw;
    width: 80vw;
  }

  .hero-tagline {
    font-size: 0.9rem;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .btn-outline {
    margin-left: 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .carousel-track .portfolio-card {
    flex: 0 0 100%;
  }


  .event-node {
    min-width: 160px;
  }

  .event-year {
    font-size: 1.3rem;
  }

  .section-container {
    padding: 0 20px;
  }

  .site-nav {
    padding: 0 20px;
  }
}
