:root {
  --ink: #080706;
  --night: #111019;
  --obsidian: #17110d;
  --ivory: #f3eee3;
  --muted: #c9bda8;
  --gold: #c99a46;
  --copper: #8f4d2b;
  --teal: #1f6f6a;
  --line: rgba(243, 238, 227, 0.18);
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 7, 6, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(201, 154, 70, 0.7);
  border-radius: 50%;
  color: var(--gold);
  font-family: Cinzel, serif;
  font-size: 0.82rem;
}

.brand-name {
  max-width: 280px;
  font-family: Cinzel, serif;
  font-size: 0.92rem;
  letter-spacing: 0;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ivory);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(8, 7, 6, 0.4);
  color: var(--ivory);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 96vh;
  isolation: isolate;
  overflow: hidden;
}

.hero-video,
.page-hero img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.35), rgba(8, 7, 6, 0.72) 65%, var(--ink)),
    radial-gradient(circle at 48% 34%, rgba(201, 154, 70, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(8, 7, 6, 0.7), transparent 44%, rgba(8, 7, 6, 0.62));
}

.hero-content {
  align-self: center;
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #160f08;
}

.button.ghost {
  background: rgba(8, 7, 6, 0.32);
  color: var(--ivory);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--gold), transparent);
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.split,
.prose-grid,
.contact-shell,
.book-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-copy h2,
.section-heading h2,
.prose-lead h2,
.book-copy h1,
.page-title h1,
.contact-copy h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
}

.section-copy p,
.prose-body p,
.book-copy p,
.page-title p,
.contact-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
}

.quote {
  color: var(--ivory) !important;
  font-family: Cinzel, serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem) !important;
}

.text-link,
.article-card a {
  display: inline-block;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 700;
}

.book-feature {
  display: grid;
  place-items: center;
}

.book-cover-image {
  width: min(340px, 82vw);
  border: 1px solid rgba(201, 154, 70, 0.62);
  border-radius: 3px;
  box-shadow: 0 34px 80px var(--shadow);
}

.book-cover-image.large {
  width: min(390px, 82vw);
}

.book-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(340px, 82vw);
  aspect-ratio: 0.68;
  padding: 28px;
  border: 1px solid rgba(201, 154, 70, 0.62);
  background:
    linear-gradient(rgba(8, 7, 6, 0.54), rgba(8, 7, 6, 0.88)),
    url("../images/hero-feathered-serpent.png") center / cover;
  box-shadow: 0 34px 80px var(--shadow);
}

.book-cover.large {
  width: min(390px, 82vw);
}

.book-cover span {
  color: var(--muted);
  font-family: Cinzel, serif;
  font-size: 1.15rem;
}

.book-cover strong {
  color: var(--ivory);
  font-family: Cinzel, serif;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 0.95;
}

.book-cover small {
  color: var(--gold);
  font-weight: 700;
}

.dark-band {
  background:
    linear-gradient(180deg, rgba(23, 17, 13, 0.88), rgba(17, 16, 25, 0.92)),
    radial-gradient(circle at 20% 0%, rgba(31, 111, 106, 0.22), transparent 36%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.gate-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.gate-card,
.article-card,
.symbol-panel,
.chapter-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(243, 238, 227, 0.045);
}

.gate-card {
  min-height: 280px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.25), rgba(8, 7, 6, 0.82));
  z-index: 0;
}

.gate-card > * {
  position: relative;
  z-index: 1;
}

.gate-grid .gate-card:nth-child(1) { background-image: url("../images/Section1.png"); }
.gate-grid .gate-card:nth-child(2) { background-image: url("../images/Section2.png"); }
.gate-grid .gate-card:nth-child(3) { background-image: url("../images/Section3.png"); }
.gate-grid .gate-card:nth-child(4) { background-image: url("../images/Section4.png"); }
.gate-grid .gate-card:nth-child(5) { background-image: url("../images/Section5.png"); }
.gate-card span,
.chapter-item span {
  color: var(--gold);
  font-family: Cinzel, serif;
}

.gate-card h3,
.symbol-panel h3,
.chapter-item h3,
.article-card h2 {
  margin-top: 18px;
  font-size: 1.25rem;
}

.gate-card p,
.symbol-panel p,
.chapter-item p,
.article-card span {
  color: var(--muted);
}

.production-strip {
  background: linear-gradient(90deg, rgba(143, 77, 43, 0.22), transparent 36%, rgba(31, 111, 106, 0.18));
}

.media-row,
.symbol-band,
.article-grid,
.plate-grid,
.chapter-list {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.media-row {
  grid-template-columns: repeat(4, 1fr);
}

.media-tile {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  background: url("../images/hero-feathered-serpent.png") center / cover;
}

.media-tile.media-essays {
  background-image: url("../images/gallery/art-43.jpg");
}

.media-tile.media-book {
  background-image: url("../images/gallery/art-38.jpg");
}

.media-tile.media-film {
  background-image: url("../images/gallery/art-40.jpg");
}

.media-tile.media-series {
  background-image: url("../images/gallery/art-54.jpg");
}

.media-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8, 7, 6, 0.88));
}

.media-tile span,
.media-tile strong {
  position: relative;
}

.media-tile span {
  color: var(--gold);
  font-weight: 700;
}

.media-tile strong {
  font-family: Cinzel, serif;
  font-size: 1.55rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  margin-top: 4px;
}

.site-footer a,
.contact-note a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.contact-note a:hover,
.contact-note a:focus-visible {
  color: var(--gold);
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 66vh;
  isolation: isolate;
  overflow: hidden;
}

.page-hero-content {
  align-self: end;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 70px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 6.5vw, 6.2rem);
}

.prose-grid {
  align-items: start;
}

.symbol-band {
  grid-template-columns: repeat(3, 1fr);
  padding-top: 0;
}

.symbol-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 42vw, 520px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.symbol-panel::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.96) 0%, rgba(8, 7, 6, 0.62) 32%, rgba(8, 7, 6, 0.08) 72%);
  pointer-events: none;
}

.symbol-panel-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}

.symbol-panel:hover .symbol-panel-image {
  transform: scale(1.035);
}

.symbol-panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 30px;
}

.symbol-panel-content h3 {
  margin-top: 0;
  color: var(--ivory);
  font-size: 1.5rem;
}

.symbol-panel-content p {
  margin-bottom: 0;
  color: rgba(243, 238, 227, 0.82);
}

.artifact-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.76fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 0;
}

.artifact-banner img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.artifact-copy h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.artifact-copy p {
  color: var(--muted);
}

.book-hero {
  min-height: 88vh;
  padding: 132px clamp(18px, 5vw, 72px) 72px;
}

.chapter-list {
  grid-template-columns: 1fr;
}

.chapter-item {
  display: grid;
  grid-template-columns: 72px 0.65fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
}

.plate-grid {
  grid-template-columns: repeat(4, 1fr);
}

.plate {
  margin: 0;
  position: relative;
}

.plate-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.plate img {
  display: block;
  width: 100%;
  aspect-ratio: 0.667;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
}

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

.lightbox-trigger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 10;
  pointer-events: none;
}

.plate-wrapper:hover .zoom-icon {
  opacity: 1;
}

.plate figcaption {
  padding-top: 12px;
  color: var(--muted);
}

.wide-art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.wide-art {
  margin: 0;
}

.wide-art img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.wide-art figcaption {
  padding-top: 12px;
  color: var(--muted);
}

.page-title {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 40px;
}

.article-grid {
  grid-template-columns: repeat(2, 1fr);
  padding-top: 28px;
}

.article-card {
  min-height: 300px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.35), rgba(8, 7, 6, 0.94));
}

.article-warrior {
  background-image: url("../images/gallery/art-34.jpg");
}

.article-stalking {
  background-image: url("../images/gallery/art-03.jpg");
}

.article-dreaming {
  background-image: url("../images/gallery/art-09.jpg");
}

.article-heart {
  background-image: url("../images/gallery/art-44.jpg");
}

.feature-study {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 82px);
}

.feature-study-art,
.feature-study-copy {
  width: min(100%, 1180px);
}

.feature-study-art img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.feature-study-video {
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  margin: 24px auto 0;
}

.feature-study-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.feature-study-copy h2 {
  font-size: clamp(2.3rem, 5vw, 5rem);
}

.feature-study-copy p {
  color: var(--muted);
  max-width: 620px;
}

.article-card p {
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}

.contact-shell {
  min-height: 92vh;
  padding: 130px clamp(18px, 5vw, 72px) 72px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(243, 238, 227, 0.055);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(243, 238, 227, 0.24);
  border-radius: 3px;
  background: rgba(8, 7, 6, 0.56);
  color: var(--ivory);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

.form-status,
.contact-note {
  color: var(--gold) !important;
  min-height: 24px;
}

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

.lightbox-trigger:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(52px, 7vw, 80px) clamp(12px, 3vw, 40px) clamp(20px, 4vw, 40px);
  background: rgba(4, 3, 3, 0.96);
  backdrop-filter: blur(10px);
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-height: 100%;
  margin: 0;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

.lightbox button {
  border: 1px solid rgba(214, 180, 106, 0.55);
  background: rgba(8, 7, 6, 0.82);
  color: var(--ivory);
  cursor: pointer;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: clamp(42px, 5vw, 58px);
  height: clamp(54px, 7vw, 76px);
  border-radius: 999px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

@media (max-width: 620px) {
  .lightbox {
    grid-template-columns: 1fr 1fr;
    align-content: center;
  }

  .lightbox-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox-nav {
    justify-self: center;
  }

  .lightbox-image {
    max-height: calc(100vh - 210px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .gate-grid,
  .plate-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-row,
  .symbol-band,
  .wide-art-grid,
  .feature-study {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 30;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 90px 28px;
    background: rgba(8, 7, 6, 0.97);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    font-family: Cinzel, serif;
    font-size: 1.5rem;
  }

  .brand-name {
    max-width: 210px;
    font-size: 0.78rem;
  }

  .split,
  .prose-grid,
  .contact-shell,
  .book-hero,
  .artifact-banner {
    grid-template-columns: 1fr;
  }

  .book-hero,
  .contact-shell {
    padding-top: 110px;
  }

  .chapter-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .footer-contact {
    align-items: flex-start;
  }

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

@media (max-width: 560px) {
  .hero {
    min-height: 92vh;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .gate-grid,
  .plate-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .gate-card,
  .article-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
/* Force home gate backgrounds */
#featured + .dark-band .gate-grid .gate-card {
  position: relative !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
}

#featured + .dark-band .gate-grid .gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.25), rgba(8, 7, 6, 0.82));
  z-index: 0;
}

#featured + .dark-band .gate-grid .gate-card > * {
  position: relative;
  z-index: 1;
}

#featured + .dark-band .gate-grid .gate-card:nth-child(1) { background-image: url("../images/gallery/Section1.png") !important; }
#featured + .dark-band .gate-grid .gate-card:nth-child(2) { background-image: url("../images/gallery/Section2.png") !important; }
#featured + .dark-band .gate-grid .gate-card:nth-child(3) { background-image: url("../images/gallery/Section3.png") !important; }
#featured + .dark-band .gate-grid .gate-card:nth-child(4) { background-image: url("../images/gallery/Section4.png") !important; }
#featured + .dark-band .gate-grid .gate-card:nth-child(5) { background-image: url("../images/gallery/Section5.png") !important; }
