/* ============================================================
   ILL-FATED IDOLS — eldritch one-page site
   Palette pulled from brand assets:
   deep eggplant background + bright orchid-magenta accent
   ============================================================ */

/* Display face — Maragsa Display by John David Maza (free for commercial use).
   Self-hosted; body text uses Montserrat (loaded via Google Fonts). */
@font-face {
  font-family: "Maragsa";
  src: url("fonts/Maragsa-Display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #150421;
  --bg-2:      #1d0830;
  --panel:     #260b3a;
  --panel-2:   #2f0f47;
  --accent:    #df70ff;
  --accent-2:  #9a4fd0;
  --accent-dim:#7e3bb0;
  --text:      #f2e9f9;
  --muted:     #b49bc9;
  --line:      rgba(199, 112, 238, 0.18);

  --maxw: 1120px;
  --radius: 14px;
  --shadow-glow: 0 0 60px rgba(199, 112, 238, 0.25);

  --font-display: "Maragsa", "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* offset for sticky header */
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: #e3b6ff; }

::selection { background: var(--accent); color: #1a0526; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: .92rem;
  text-transform: uppercase;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #1a0526;
  box-shadow: 0 6px 24px rgba(223, 112, 255, 0.35);
}
.btn-primary:hover {
  color: #1a0526;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(223, 112, 255, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--accent-dim);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================== HEADER ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(21, 4, 33, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}
.brand-stacked { display: none; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-menu a:hover { color: var(--text); }
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent-dim);
  padding: .5rem 1rem;
  border-radius: 999px;
}
.nav-cta:hover {
  background: var(--accent);
  color: #1a0526 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================== HERO ============================== */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.5rem 5rem;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  z-index: 0;
  animation: heroZoom 22s ease-out both;
}
@keyframes heroZoom {
  from { transform: scale(1.14); }
  to   { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(95% 78% at 50% 42%, rgba(21, 4, 33, 0.28) 0%, rgba(21, 4, 33, 0.6) 78%, var(--bg) 100%),
    linear-gradient(180deg, rgba(21, 4, 33, 0.5) 0%, rgba(21, 4, 33, 0.25) 55%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  transform: translateY(1rem); /* nudge the whole block down, below dead-center */
}
.hero-logo {
  width: 82vw;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 30px rgba(21, 4, 33, 0.9));
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  letter-spacing: .04em;
  color: #ecdcf7;
  text-shadow: 0 2px 18px rgba(10, 2, 18, 0.85);
  margin: 2.75rem auto 2rem;
  animation: rise 1.1s .15s cubic-bezier(.2,.7,.2,1) both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: rise 1.1s .3s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--accent-dim);
  border-radius: 999px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ============================== SECTIONS ============================== */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem);
}
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  letter-spacing: .02em;
  text-align: center;
  margin: 0 0 .6rem;
  line-height: 1.15;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 2rem;
}

/* ---------- Section dividers ---------- */
/* Sits at the top of a section rather than between two of them, so it
   inherits that section's background — dropped in the gap it would expose
   a strip of body colour between the differently-tinted sections. */
.divider {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto clamp(1.25rem, 3vw, 2.25rem);
}

/* ---------- About ---------- */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  padding-bottom: clamp(.25rem, .75vw, .5rem);
}
.about-outro {
  font-style: italic;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: 2.5rem;
}
.about-copy .lede {
  font-size: 1.35rem;
  color: var(--text);
  margin-top: 0;
}
.about-copy p { color: var(--muted); }
.about-copy p:not(.lede) { text-align: justify; }
.about-features-card {
  position: relative;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about-features-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
  margin: 0 0 .75rem;
}
.about-features {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-features li {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--line);
}
.about-features li:last-child { border-bottom: 0; }
.feat-mark {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
/* Desktop-only accent: tentacle art tucked inside the card, faded out under the text. */
@media (min-width: 861px) {
  .about-features-card {
    background-origin: border-box;
    background:
      linear-gradient(to right, var(--panel) 35%, rgba(38, 11, 58, .45) 60%, transparent 85%),
      url("images/about-tentacles-accent.png") no-repeat right center / clamp(200px, 24vw, 340px) auto,
      var(--panel);
  }
  .about-features li {
    border-bottom-color: rgba(199, 112, 238, .08);
  }
}

/* ---------- Makers ---------- */
.makers { background: var(--bg); }
.makers-intro {
  font-size: 1.2rem;
  color: var(--text);
}
.makers-intro strong {
  color: var(--accent);
  font-weight: 500;
}
.maker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 760px;
  margin: 2.5rem auto 0;
}
.maker-card {
  text-align: center;
  padding: 2.2rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.maker-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.maker-portrait {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, var(--accent) 0%, var(--accent-2) 70%, var(--accent-dim) 100%);
  box-shadow: 0 0 24px rgba(199, 112, 238, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.maker-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.maker-portrait span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  color: #1a0526;
}
.maker-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 .25rem;
  letter-spacing: .02em;
}
.maker-role {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.maker-bio {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-2); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-item.placeholder {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, var(--panel) 0 12px, var(--panel-2) 12px 24px);
}
.gallery-item.placeholder::before {
  content: "";
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--accent) 0 60%, var(--accent-2) 100%);
  opacity: .25;
}
.ph-label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .85rem;
}
.gallery-cta { text-align: center; margin-top: 2.25rem; }

/* ---------- Lamps ---------- */
.lamps {
  position: relative;
  background: #0c0318;
  overflow: hidden;
}
.lamps .section-inner { position: relative; z-index: 1; }
.lamps-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(45% 40% at 32% 60%, rgba(224, 86, 168, 0.16), transparent 70%),
    radial-gradient(45% 40% at 68% 55%, rgba(150, 90, 240, 0.16), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -14px, 0) scale(1.05); }
}
.lamp-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 940px;
  margin: 2.5rem auto 0;
}
.lamp-video { margin: 0; }
.lamp-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 0 50px rgba(224, 86, 168, 0.25);
}
.lamp-video figcaption {
  margin-top: .75rem;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: .05em;
  color: var(--muted);
  font-size: 1.05rem;
}

.lamp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 820px;
  margin: 2.5rem auto 0;
}
.lamp-item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  cursor: pointer;
  padding: 0;
  transition: transform .3s ease, box-shadow .35s ease, border-color .3s ease;
}
.lamp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.lamp-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 50px rgba(224, 86, 168, 0.4);
}
.lamp-item:hover img { transform: scale(1.05); }
.lamp-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1.1rem .9rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--text);
  background: linear-gradient(transparent, rgba(12, 3, 24, 0.9));
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  padding-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
.contact-form {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 112, 238, 0.18);
}
.contact-form .btn { justify-self: center; margin-top: .4rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status {
  text-align: center;
  min-height: 1.2em;
  margin: 0;
  font-family: var(--font-display);
  font-size: .95rem;
}
.form-status.ok { color: #7ee0a8; }
.form-status.err { color: #ff8aa8; }
.contact-alt {
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
}

/* ============================== FOOTER ============================== */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem 1.75rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-mark {
  width: 44px;
  margin: 0 auto 1.2rem;
  opacity: .9;
}
.social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 1.4rem;
  padding: 0;
  flex-wrap: wrap;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all .2s ease;
}
.social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.credit {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 .4rem;
  letter-spacing: .03em;
}
.credit a { color: var(--accent); }
.copyright {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
  letter-spacing: .03em;
}

/* ============================== LIGHTBOX ============================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(10, 2, 18, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(90vw, 900px);
  max-height: 70vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
}
.lightbox-caption {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: .05em;
  margin: 0;
  text-align: center;
}
.lightbox-desc {
  max-width: 52ch;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.lightbox-close:hover { color: var(--accent); transform: rotate(90deg); }

/* ============================== SCROLL REVEAL ============================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .scroll-cue span, .hero-logo, .hero-tagline, .hero-actions { animation: none; }
  .hero-bg { transform: none; }
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .brand-wide { display: none; }
  .brand-stacked { display: block; height: 38px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(21, 4, 33, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
    transform: translateY(-150%);
    transition: transform .35s cubic-bezier(.2,.7,.2,1);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu a { display: block; padding: 1rem; }
  .nav-cta { display: inline-block; margin: .5rem auto; }
}

@media (max-width: 600px) {
  .maker-grid { grid-template-columns: 1fr; }
  .lamp-grid { grid-template-columns: 1fr; max-width: 420px; }
  .lamp-videos { grid-template-columns: 1fr; max-width: 520px; }
  .hero-logo { width: 74vw; max-width: 300px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .hero-bg { object-position: center 40%; }
}

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

@media (max-height: 500px) and (orientation: landscape) {
  .scroll-cue { display: none; }
}
