:root {
  --bg: #050505;
  --panel: #11100e;
  --panel-soft: #171511;
  --line: rgba(219, 195, 147, 0.22);
  --text: #f3eadb;
  --muted: #b8aa94;
  --gold: #b88936;
  --bone: #e8ddca;
  --accent: #b88936;
  --danger: #f4f1df;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(184, 137, 54, 0.14), transparent 26rem),
    radial-gradient(circle at 80% 15%, rgba(129, 151, 161, 0.12), transparent 24rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: 58px;
  height: 58px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.top-nav a:hover {
  color: var(--bone);
}

.myth-select-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

select {
  width: min(240px, 46vw);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 2.4rem 0 0.85rem;
  background: #0c0b09;
  color: var(--text);
}

.thunder-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  display: grid;
  min-height: calc(100vh - 74px);
  padding: clamp(2rem, 5vw, 5rem) 1rem;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.hero::before,
.myth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.92)),
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.10), transparent 22rem),
    radial-gradient(circle at 50% 72%, rgba(184, 137, 54, 0.18), transparent 32rem);
}

.hero::after,
.myth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(255, 255, 255, 0);
  animation: skyFlash 7s infinite;
}

.hero-inner {
  width: min(980px, 100%);
  text-align: center;
}

.hero-logo {
  width: min(660px, 88vw);
  max-height: 58vh;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(184, 137, 54, 0.28));
  animation: logoPulse 6s ease-in-out infinite;
}

.kicker,
.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker {
  margin: 1.1rem 0 0;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 0.9;
  text-shadow:
    0 0 24px rgba(184, 137, 54, 0.28),
    0 0 3px rgba(255, 255, 255, 0.6);
}

h2 {
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.hero-copy {
  width: min(720px, 100%);
  margin: 0 auto 1.6rem;
  color: var(--bone);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  padding: 0 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.button.primary {
  background: var(--gold);
  color: #090705;
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--bone);
}

.lightning {
  position: absolute;
  top: -8vh;
  z-index: -1;
  width: 4px;
  height: 58vh;
  background: linear-gradient(to bottom, transparent, #fff, transparent);
  clip-path: polygon(45% 0, 78% 23%, 55% 23%, 88% 48%, 58% 48%, 95% 100%, 32% 56%, 55% 56%, 20% 28%, 45% 28%);
  filter: drop-shadow(0 0 18px #fff) drop-shadow(0 0 36px rgba(184, 213, 255, 0.9));
  opacity: 0;
  transform: rotate(8deg);
  animation: bolt 7s infinite;
}

.lightning-a {
  left: 13%;
}

.lightning-b {
  right: 17%;
  animation-delay: 2.2s;
  transform: rotate(-11deg);
}

.lightning-c {
  left: 52%;
  animation-delay: 4.8s;
  height: 46vh;
}

.storm-rain {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.12;
  background-image: repeating-linear-gradient(105deg, transparent 0 18px, rgba(255, 255, 255, 0.18) 18px 20px);
  animation: rainMove 1.4s linear infinite;
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-band,
.product-band {
  background: linear-gradient(135deg, rgba(184, 137, 54, 0.12), rgba(20, 20, 19, 0.2));
  border-bottom: 1px solid var(--line);
}

.atelier-band {
  background: #0b0a08;
  border-top: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.three-column {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
}

.section-heading {
  margin-bottom: 2rem;
}

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

.collection-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent), white 22%);
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent), transparent 72%), transparent 12rem),
    var(--panel-soft);
}

.card-copy p,
.card-copy span,
.product-placeholder p,
.section p,
.site-footer {
  color: var(--muted);
  line-height: 1.55;
}

.card-copy h3 {
  color: var(--text);
  font-size: 1.3rem;
}

.card-copy span {
  display: block;
  font-size: 0.88rem;
}

.sigil {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent), white 15%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 70%);
  color: var(--bone);
}

.sigil strong {
  position: relative;
  z-index: 3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.sigil-ring,
.sigil-cross {
  position: absolute;
  inset: 11px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.72;
}

.sigil-cross::before,
.sigil-cross::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2px;
  height: 48px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.sigil-cross::after {
  width: 48px;
  height: 2px;
}

.sigil-large {
  width: clamp(120px, 18vw, 190px);
  height: clamp(120px, 18vw, 190px);
}

.sigil-large strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.sigil-large .sigil-cross::before {
  height: 78%;
}

.sigil-large .sigil-cross::after {
  width: 78%;
}

.myth-hero {
  display: grid;
  min-height: 56vh;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  place-items: center;
}

.myth-hero-inner {
  width: min(1120px, 100%);
}

.back-link {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.8rem;
}

.myth-title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.myth-title-row > div {
  min-width: 0;
}

.myth-hero .hero-copy {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--bone);
  font-weight: 700;
}

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

.product-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--panel);
}

.blank-art {
  display: grid;
  min-height: 240px;
  margin-bottom: 1rem;
  place-items: center;
  border: 1px dashed color-mix(in srgb, var(--accent), white 10%);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent),
    #080706;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: #050505;
  font-size: 0.88rem;
}

@keyframes bolt {
  0%, 8%, 100% { opacity: 0; transform: translateY(-2rem) rotate(8deg) scaleY(0.8); }
  9% { opacity: 1; transform: translateY(0) rotate(8deg) scaleY(1); }
  10% { opacity: 0.08; }
  11% { opacity: 0.9; }
  13% { opacity: 0; }
}

@keyframes skyFlash {
  0%, 8%, 100% { background: rgba(255, 255, 255, 0); }
  9% { background: rgba(244, 241, 223, 0.26); }
  10% { background: rgba(255, 255, 255, 0.02); }
  11% { background: rgba(184, 213, 255, 0.18); }
  13% { background: rgba(255, 255, 255, 0); }
}

@keyframes rainMove {
  from { background-position: 0 0; }
  to { background-position: 0 80px; }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 28px rgba(184, 137, 54, 0.25)); }
  50% { transform: scale(1.018); filter: drop-shadow(0 0 46px rgba(184, 137, 54, 0.48)); }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .top-nav {
    display: none;
  }

  .myth-select-label {
    justify-content: end;
  }

  .myth-select-label span {
    display: none;
  }

  .two-column,
  .three-column,
  .product-grid,
  .myth-title-row {
    grid-template-columns: 1fr;
  }

  .myth-title-row {
    text-align: center;
  }

  .myth-hero {
    min-height: auto;
  }

  .myth-hero .hero-copy {
    max-width: calc(100vw - 2.5rem);
  }

  h2 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  .sigil-large {
    margin: 0 auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
