:root {
  --bg: #0b0b0f;
  --surface: #111118;
  --surface-2: rgba(255, 255, 255, 0.04);
  --text: #f5f5f7;
  --muted: #b7b7c2;
  --accent: #8f6bff;
  --accent-2: #45d3ff;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #171724 0%, var(--bg) 60%);
  min-height: 100vh;
  line-height: 1.6;
}

#phalanx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.45;
  will-change: transform;
}

#page-dark-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #000;
  opacity: 1;
  transition: opacity 0.12s linear;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.hero {
  padding: 7rem 0 4rem;
  min-height: max(460px, calc(100svh - 70px));
  display: flex;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.4rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-artist {
  position: relative;
  justify-self: end;
  width: 380px;
  aspect-ratio: 19 / 25;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
}

.hero-artist::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--bg), transparent 14%, transparent 86%, var(--bg)),
    linear-gradient(to bottom, var(--bg), transparent 14%, transparent 86%, var(--bg));
}

.hero-artist img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(0) saturate(1);
  transform: scale(1) rotate(0deg);
  opacity: 1;
  transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 1.6s ease, filter 1.6s ease;
}

.hero-artist img.is-transitioning {
  transform: scale(1.045) rotate(0.65deg) translateY(-4px);
  opacity: 0.18;
  filter: blur(1.5px) saturate(0.88);
}

.tag {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: var(--accent-2);
  font-size: 0.9rem;
}

h1,
h2 {
  font-family: "Cinzel", serif;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.hero-text,
.contact-intro,
.notice,
.direct-mail {
  color: var(--muted);
  max-width: 65ch;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  background: transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #09090d;
}

.btn-secondary:hover,
.btn:hover {
  filter: brightness(1.08);
}

.section {
  margin: 2.5rem auto;
  padding: 2rem;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  overflow: visible;
  background: #0f0f15;
}

.gallery-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.gallery-item:hover {
  z-index: 6;
}

.gallery-item:hover img {
  transform: scale(1.5);
  z-index: 7;
  border-radius:10px;
  box-shadow: 10px 10px 10px 10px rgba(0, 0, 0, 0.5);
}
  
.gallery-item figcaption {
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 20;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(86vw, 980px);
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 24, 0.85);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 16, 0.9);
  color: var(--text);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
}

.lightbox-prev {
  left: 2.2rem;
}

.lightbox-next {
  right: 2.2rem;
}

.hidden-field {
  display: none;
}

form {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  background: #0c0c12;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(143, 107, 255, 0.7);
  border-color: transparent;
}

small {
  color: var(--muted);
}

#file-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  color: var(--accent-2);
  font-size: 0.95rem;
}

.notice {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.care-download {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.care-download p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.care-download .btn {
  width: fit-content;
  flex-shrink: 0;
  white-space: nowrap;
}

.notice.error {
  color: #ff8383;
}

.notice.success {
  color: #79f7ba;
}

.direct-mail a {
  color: var(--accent-2);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1rem 0 2rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-meta {
  display: grid;
  gap: 0.35rem;
}

.footer-meta p {
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-legal-links a:hover {
  color: var(--text);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: none;
  color: inherit;
  text-decoration: none;
  background: transparent;
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
}

.social-link-header {
  --ig-colorful: 0;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--accent-2);
}

.social-link-header .ig-mono-layer {
  opacity: calc(1 - var(--ig-colorful));
  transition: opacity 0.2s linear;
}

.social-link-header .ig-color-layer {
  opacity: var(--ig-colorful);
  transition: opacity 0.2s linear;
}

.about-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 600;
}

.about-instagram-link:hover {
  filter: brightness(1.08);
}

.about-instagram-link svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

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

  .hero-artist {
    justify-self: center;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 19 / 25;
  }

  .hero-artist img {
    height: 100%;
  }

  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 0;
  }

  .hero {
    padding-top: 5.5rem;
    min-height: auto;
    display: block;
  }

  .section {
    padding: 1.2rem;
  }

  .site-footer .container {
    flex-direction: column;
  }

  .footer-meta {
    justify-items: center;
    text-align: center;
  }

  .lightbox-content {
    margin-bottom: 4.2rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 1.4rem;
    width: 3.2rem;
    height: 3.2rem;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: 1.2rem;
  }

  .lightbox-next {
    right: 1.2rem;
  }

  .care-download {
    display: grid;
    justify-items: start;
  }

  .care-download .btn {
    white-space: normal;
  }
}
