:root {
  --bg: #080a14;
  --bg-deep: #04050b;
  --panel: rgba(11, 15, 30, 0.78);
  --ink: #f7f3ea;
  --muted: #baa880;
  --line: rgba(250, 225, 169, 0.25);
  --gold: #e9c37a;
  --gold-soft: #f5dfb4;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: radial-gradient(circle at 12% 8%, #1b223f 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, #2f1627 0%, transparent 36%),
    linear-gradient(145deg, var(--bg) 10%, var(--bg-deep) 90%);
  overflow-x: hidden;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 0.65px, transparent 0.65px);
  background-size: 3px 3px;
}

.wrapper {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  padding-bottom: 3rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(100deg, rgba(8, 10, 20, 0.95) 28%, rgba(8, 10, 20, 0.38) 72%),
    url("https://lamagiadehogwarts.com/wp-content/uploads/2025/07/DSC02060_resized.jpg") center center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 62%, var(--bg) 100%);
}

.topbar {
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: clamp(150px, 20vw, 260px);
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  color: #efe6d3;
  text-decoration: none;
  font-size: 0.9rem;
}

.cta-small {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.cta-small:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 222, 162, 0.56);
  background: rgba(10, 14, 28, 0.7);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.cta-small:focus-visible {
  outline: 2px solid rgba(248, 222, 162, 0.84);
  outline-offset: 3px;
}

.hero-content {
  padding-top: clamp(3rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  align-items: end;
}

.hero-copy {
  max-width: 64ch;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-family: "Cormorant Garamond", serif;
}

h1 {
  margin-top: 0.65rem;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.lede {
  margin: 1rem 0 0;
  color: #efe7d4;
}

.hero-brand-card {
  justify-self: end;
  width: min(420px, 100%);
  padding: clamp(1.05rem, 2.5vw, 1.6rem);
  background: linear-gradient(155deg, rgba(14, 18, 34, 0.82), rgba(14, 18, 34, 0.4));
  border: 1px solid var(--line);
  backdrop-filter: blur(2px);
  box-shadow: var(--shadow);
}

.hero-brand-card img {
  max-width: 100%;
  max-height: 145px;
  object-fit: contain;
}

.hero-brand-card p {
  margin: 0.8rem 0 0;
  color: #daccb4;
  font-size: 0.92rem;
}

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

.social-inline {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.social-icon-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(246, 225, 186, 0.34);
  border-radius: 999px;
  background: rgba(7, 10, 20, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f3e2c0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.social-icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon-link:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 222, 162, 0.6);
  background: rgba(10, 14, 28, 0.74);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.social-icon-link:focus-visible {
  outline: 2px solid rgba(248, 222, 162, 0.84);
  outline-offset: 3px;
}

.button {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1c1409;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease, border-color 0.28s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
  filter: brightness(1.03) saturate(1.04);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 2px solid rgba(248, 222, 162, 0.84);
  outline-offset: 3px;
}

.button-outline {
  color: var(--gold-soft);
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-outline:hover {
  color: #ffe3af;
  background: rgba(11, 16, 33, 0.64);
  border-color: rgba(248, 222, 162, 0.52);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.manifesto {
  margin-top: 2rem;
  margin-bottom: 2.6rem;
  padding: 1.2rem 0 0.3rem;
}

.manifesto p {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(1.2rem, 2.7vw, 1.85rem);
  line-height: 1.32;
  color: #f3e8d0;
  font-family: "Cormorant Garamond", serif;
}

.productions {
  display: grid;
  gap: 1.1rem;
}

.production {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-hogwarts {
  grid-template-columns: 1fr 1.1fr;
}

.feature-dragon {
  grid-template-columns: 1fr 1.1fr;
}

.production-image {
  position: relative;
  min-height: 310px;
  overflow: hidden;
}

.production-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.8s ease;
}

.production:hover .production-image img {
  transform: scale(1.07);
}

.feature-hogwarts .production-image::after,
.feature-dragon .production-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 20, 0.45), transparent 38%);
}

.production-copy {
  padding: clamp(1.2rem, 3.3vw, 2.35rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
}

h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.95rem, 3.6vw, 3.2rem);
  text-wrap: balance;
}

.production-copy p {
  margin-top: 0.9rem;
  margin-bottom: 0;
  color: #e8dcc8;
}

.text-link {
  margin-top: 1.1rem;
  width: fit-content;
  text-decoration: none;
  color: var(--gold-soft);
  font-weight: 700;
}

.gallery {
  margin-top: 4rem;
  padding: clamp(0.8rem, 2.2vw, 1.15rem);
  border: 1px solid rgba(245, 225, 182, 0.18);
  background: linear-gradient(160deg, rgba(12, 16, 33, 0.72), rgba(8, 11, 22, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 50px rgba(0, 0, 0, 0.22);
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-inline: 0.1rem;
}

.gallery-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.82rem;
}

.g-item {
  margin: 0;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(246, 228, 189, 0.2);
  border-radius: 12px;
  background: #0f1120;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
  grid-column: span 3;
  min-height: 240px;
  cursor: zoom-in;
  transition: transform 0.36s ease, box-shadow 0.36s ease, border-color 0.36s ease;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
  filter: saturate(1.06) contrast(1.04);
}

.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 6, 14, 0.78) 0%, rgba(4, 6, 14, 0) 44%);
  pointer-events: none;
}

.g-item::before {
  content: attr(data-caption);
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.68rem;
  z-index: 2;
  color: #f6ead3;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  pointer-events: none;
}

.g-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.11) contrast(1.06);
}

.g-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.42);
  border-color: rgba(248, 222, 162, 0.42);
}

.g-item:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.g-wide {
  grid-column: span 6;
  min-height: 300px;
}

.g-tall {
  grid-row: span 2;
  min-height: 500px;
}

.highlights {
  margin-top: 3.4rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.highlights article {
  border: 1px solid var(--line);
  background: rgba(12, 16, 33, 0.72);
  padding: 1.1rem;
}

h3 {
  font-size: 1.35rem;
}

.highlights p {
  margin: 0.45rem 0 0;
  color: #e4d7c2;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 2.3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
  color: #dac8aa;
}

.footer-main {
  max-width: 56ch;
}

.footer-title {
  margin: 0;
  font-weight: 700;
}

.footer p {
  margin: 0.25rem 0 0;
}

.footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

.footer-socials {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-socials a {
  border: 1px solid rgba(246, 225, 186, 0.34);
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.lightbox {
  border: 1px solid var(--line);
  background: rgba(6, 8, 16, 0.96);
  width: min(1020px, calc(100% - 1.4rem));
  padding: 1rem;
}

.lightbox::backdrop {
  background: rgba(3, 3, 7, 0.86);
}

.lightbox img {
  max-height: 74vh;
  object-fit: contain;
}

.lightbox p {
  margin: 0.8rem 0 0.2rem;
  color: #e8d8bd;
}

.lightbox-close {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-soft);
  padding: 0.42rem 0.75rem;
  font: inherit;
  margin-bottom: 0.8rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-content,
  .production,
  .feature-dragon {
    grid-template-columns: 1fr;
  }

  .hero-brand-card {
    justify-self: stretch;
  }

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

  .g-item {
    grid-column: span 3;
    min-height: 235px;
  }

  .g-wide {
    grid-column: span 6;
    min-height: 260px;
  }

  .g-tall {
    grid-row: auto;
    min-height: 320px;
  }

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

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

  .footer-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wrapper {
    width: min(1140px, calc(100% - 1.45rem));
  }

  .brand img {
    width: 150px;
  }

  .nav-links a:not(.cta-small) {
    display: none;
  }

  .social-inline {
    gap: 0.45rem;
  }

  .social-icon-link {
    width: 35px;
    height: 35px;
  }

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

  .g-item,
  .g-wide,
  .g-tall {
    grid-column: auto;
    min-height: 260px;
  }

  .g-item::before {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .g-item img,
  .production-image img,
  .cta-small,
  .button,
  .social-icon-link {
    transition: none;
  }
}
