:root {
  --ink: #030506;
  --ink-soft: #090d0f;
  --cream: #e7d3a8;
  --cream-muted: #a99668;
  --gold: #a8792d;
  --gold-bright: #d7a84b;
  --blue: #0b1820;
  --wine: #351018;
  --green: #11241d;
  --line: rgba(168, 121, 45, 0.38);
  --text: #eadfc7;
  --muted: rgba(234, 223, 199, 0.66);
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% -8%, rgba(168, 121, 45, 0.12), transparent 25rem),
    radial-gradient(circle at 88% 18%, rgba(53, 16, 24, 0.36), transparent 34rem),
    linear-gradient(135deg, #010202 0%, var(--ink) 52%, #070a0b 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(168, 121, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 121, 45, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--text);
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(1, 2, 2, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.58);
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-bright);
  font-size: 1.02rem;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
  color: rgba(246, 236, 216, 0.84);
  font-size: 0.92rem;
}

.nav a {
  padding: 8px 0;
}

.nav a:hover,
.footer a:hover {
  color: var(--gold-bright);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(7, 16, 20, 0.62);
}

.button.primary,
.header-cta {
  border-color: rgba(215, 168, 75, 0.7);
  background: linear-gradient(135deg, #c99841, #5d3c15);
  color: #080604;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.button.ghost {
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 126px clamp(18px, 5vw, 72px) 58px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(1, 2, 2, 0.99), rgba(3, 5, 6, 0.92) 48%, rgba(7, 8, 9, 0.98)),
    radial-gradient(circle at 74% 24%, rgba(168, 121, 45, 0.14), transparent 18rem),
    radial-gradient(circle at 18% 82%, rgba(53, 16, 24, 0.34), transparent 23rem);
}

.hero::before,
.hero::after,
.hero-ornament {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero::before {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(214, 162, 75, 0.15) calc(50% - 1px), rgba(214, 162, 75, 0.15) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(rgba(168, 121, 45, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 121, 45, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 128px 128px, 128px 128px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 72%);
}

.hero::after {
  inset: 26px;
  border: 1px solid rgba(168, 121, 45, 0.34);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(246, 236, 216, 0.04);
}

.hero-ornament {
  background:
    conic-gradient(from 45deg at 50% 50%, transparent 0 23%, rgba(168, 121, 45, 0.15) 24% 25%, transparent 26% 48%, rgba(168, 121, 45, 0.15) 49% 50%, transparent 51% 100%);
  width: min(64vw, 720px);
  height: min(64vw, 720px);
  margin: auto;
  border: 1px solid rgba(214, 162, 75, 0.14);
  border-radius: 50%;
  opacity: 0.5;
  transform: rotate(8deg);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
}

h1 {
  max-width: 9ch;
  color: var(--gold-bright);
  font-size: clamp(4rem, 11vw, 10rem);
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(40, 22, 7, 0.8), 0 22px 58px rgba(0, 0, 0, 0.72);
  text-wrap: balance;
}

.hero-lead {
  display: inline-flex;
  margin: 16px 0 0;
  padding-block: 12px;
  border-block: 1px solid var(--line);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.1vw, 2rem);
  text-transform: uppercase;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(234, 223, 199, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-emblem {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.emblem-card {
  position: relative;
  display: grid;
  width: min(100%, 410px);
  aspect-ratio: 0.76;
  place-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(2, 3, 3, 0.93), rgba(11, 24, 32, 0.28)),
    linear-gradient(45deg, transparent 0 48%, rgba(168, 121, 45, 0.08) 49% 51%, transparent 52% 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.emblem-card::before,
.emblem-card::after {
  position: absolute;
  width: 82px;
  height: 82px;
  border: solid rgba(241, 196, 109, 0.42);
  content: "";
}

.emblem-card::before {
  top: 18px;
  left: 18px;
  border-width: 1px 0 0 1px;
}

.emblem-card::after {
  right: 18px;
  bottom: 18px;
  border-width: 0 1px 1px 0;
}

.emblem-cross {
  color: var(--gold-bright);
  font-size: clamp(3.4rem, 8vw, 6rem);
  line-height: 1;
}

.emblem-name {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
}

.emblem-line {
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.emblem-sub {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.mini-tile {
  position: absolute;
  display: grid;
  min-width: 150px;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 3, 3, 0.88);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.46);
}

.tile-blue {
  top: 42px;
  right: 0;
}

.tile-wine {
  left: 0;
  bottom: 62px;
}

.mini-tile strong {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 0.9;
}

.mini-tile span {
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(11, 24, 32, 0.26), rgba(53, 16, 24, 0.22)),
    rgba(2, 4, 5, 0.86);
}

.intro,
.doctrine,
.showcase,
.ritual,
.contact {
  padding: clamp(64px, 8vw, 118px) clamp(18px, 5vw, 72px);
}

.intro-grid,
.section-head,
.showcase,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro h2,
.section-head h2,
.showcase h2,
.contact h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  text-wrap: balance;
}

.intro p,
.section-head p,
.showcase p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.doctrine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.doctrine-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(8, 10, 11, 0.96), rgba(2, 3, 3, 0.94)),
    radial-gradient(circle at 80% 12%, rgba(168, 121, 45, 0.12), transparent 12rem);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

.doctrine-card::after {
  position: absolute;
  right: -34px;
  bottom: -58px;
  color: rgba(168, 121, 45, 0.07);
  content: "†";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12rem;
  line-height: 1;
}

.doctrine-card.prime {
  grid-column: span 2;
  background:
    linear-gradient(145deg, rgba(11, 24, 32, 0.55), rgba(2, 3, 3, 0.98)),
    radial-gradient(circle at 76% 20%, rgba(168, 121, 45, 0.18), transparent 16rem);
}

.doctrine-card span,
.ritual-grid span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
}

.doctrine-card h3,
.ritual-grid h3 {
  margin-top: 22px;
  color: var(--gold-bright);
  font-size: 1.5rem;
}

.doctrine-card p,
.ritual-grid p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.rank-stack {
  display: grid;
  gap: 12px;
}

.rank-stack div {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(168, 121, 45, 0.1), transparent),
    rgba(0, 0, 0, 0.34);
}

.rank-stack strong {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.rank-stack span {
  color: var(--muted);
  line-height: 1.55;
}

.ritual {
  position: relative;
}

.ritual::before {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
}

.ritual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.ritual-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(168, 121, 45, 0.06), transparent),
    rgba(3, 5, 6, 0.86);
}

.contact-form {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(168, 121, 45, 0.06), transparent),
    rgba(0, 0, 0, 0.42);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(168, 121, 45, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(1, 2, 2, 0.72);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-bright);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  color: var(--gold-bright);
}

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

  .nav {
    display: none;
  }

  .intro-grid,
  .section-head,
  .showcase,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-emblem {
    min-height: 420px;
    max-width: 520px;
  }

  .doctrine-grid,
  .ritual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctrine-card.prime {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 16px;
  }

  .header-cta {
    display: none;
  }

  .brand strong {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 92svh;
    padding: 106px 18px 42px;
  }

  .hero::after {
    inset: 12px;
  }

  .hero-layout {
    gap: 28px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3.5rem, 18vw, 5.3rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-emblem {
    min-height: 320px;
  }

  .emblem-card {
    width: min(82vw, 310px);
    padding: 24px;
  }

  .mini-tile {
    min-width: 122px;
    padding: 12px;
  }

  .tile-blue {
    top: 16px;
  }

  .tile-wine {
    bottom: 18px;
  }

  .doctrine-grid,
  .ritual-grid {
    grid-template-columns: 1fr;
  }

  .doctrine-card.prime {
    grid-column: auto;
  }

  .doctrine-card,
  .ritual-grid article {
    min-height: 0;
  }

}
