:root {
  --bg: #000;
  --bg2: #0b0a08;
  --line: rgba(225, 176, 85, 0.22);
  --gold: #e1b055;
  --gold-muted: #b8944a;
  --text: #efe9dc;
  --dim: #a39c8c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--gold);
}

.brand img {
  width: 34px;
  height: 34px;
}

.links {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.links a {
  color: var(--dim);
}

.links a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  padding: 72px 0 120px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 38%, rgba(225, 176, 85, 0.13), transparent 60%);
  pointer-events: none;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 22px;
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--gold);
}

.hero p.lead {
  max-width: 720px;
  margin: 28px auto 0;
  font-size: clamp(20px, 2.3vw, 24px);
  color: var(--text);
}

.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 34px;
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  transition: 0.25s;
}

.btn:hover {
  background: var(--gold);
  color: #000;
}

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

section.alt {
  background: var(--bg2);
}

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 18px;
}

.orn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.orn--center {
  justify-content: center;
}

.orn span {
  height: 1px;
  width: 56px;
  background: var(--gold-muted);
}

.orn i {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

.intro {
  max-width: 760px;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 22px;
  margin-top: 48px;
}

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

.g3 {
  grid-template-columns: repeat(3, 1fr);
}

.g2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--line);
  padding: 30px 26px;
  background: rgba(225, 176, 85, 0.025);
}

.card .n {
  font-family: var(--display);
  color: var(--gold-muted);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}

.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 10px;
}

.card p {
  font-size: 18px;
  color: var(--dim);
  line-height: 1.5;
}

.facts {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
}

.facts dt {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 4px;
}

.facts dd {
  text-align: right;
}

.road {
  margin-top: 48px;
  border-left: 1px solid var(--gold-muted);
  padding-left: 30px;
}

.road .step {
  position: relative;
  margin-bottom: 38px;
}

.road .step:last-child {
  margin-bottom: 0;
}

.road .step::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
}

.road .when {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.road h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  color: var(--gold);
  margin: 4px 0 6px;
  letter-spacing: 0.05em;
}

.road p {
  color: var(--dim);
  font-size: 18px;
  max-width: 680px;
}

.contact {
  text-align: center;
}

.contact p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text);
}

.contact .mail {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.06em;
}

footer {
  padding: 48px 0 60px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.7;
  color: #7d776a;
}

footer .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

footer .legal {
  max-width: 880px;
}

.emblem-scene {
  position: relative;
  width: min(240px, 72vw);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  container-type: inline-size;
  isolation: isolate;
  z-index: 1;
}

.emblem-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.emblem-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.emblem-letters {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.emblem-letter {
  position: absolute;
  font-family: Cinzel, "Times New Roman", serif;
  font-weight: 500;
  font-size: 9.2cqw;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.emblem-letter--d {
  top: 1.5%;
  left: 50%;
  transform: translateX(-50%);
}

.emblem-letter--p {
  left: 1%;
  top: 50%;
  transform: translateY(-50%);
}

.emblem-letter--i {
  right: 2.5%;
  top: 50%;
  transform: translateY(-50%);
}

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

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

@media (max-width: 760px) {
  .links {
    display: none;
  }
}

@media (max-width: 620px) {
  .g4,
  .g2 {
    grid-template-columns: 1fr;
  }

  .facts div {
    flex-direction: column;
    gap: 6px;
  }

  .facts dd {
    text-align: left;
  }
}

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

  .emblem-letters {
    opacity: 1;
  }

  .emblem-scene {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.33, 0.1, 0.2, 1);
  }

  .emblem-scene.is-soft-posed {
    opacity: 1;
  }
}
