:root {
  --bg: #090806;
  --bg-soft: #0f0d0a;
  --surface: rgba(255, 245, 228, 0.03);
  --text: #f4e8d4;
  --muted: #b5a58d;
  --accent: #d1ad72;
  --accent-soft: rgba(198, 164, 108, 0.18);
  --line: rgba(198, 164, 108, 0.18);
  --line-strong: rgba(198, 164, 108, 0.34);
  --gold-gradient: linear-gradient(
    135deg,
    #8f6a2f 0%,
    #c6a46c 35%,
    #f0d7a1 50%,
    #c6a46c 65%,
    #8f6a2f 100%
  );
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max-width: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Baskerville", Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", "Gill Sans", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(198, 164, 108, 0.18), transparent 34%),
    linear-gradient(180deg, #0b0907 0%, #11100d 48%, #0a0907 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 18px;
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 3;
}

body::after {
  content: none;
}

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

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

.page-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  padding: 32px 0 22px;
  display: flex;
  justify-content: center;
}

.brand-lockup {
  display: grid;
  grid-template-columns: 64px auto 64px;
  align-items: center;
  column-gap: 14px;
}

.brand-lockup::after {
  content: "";
  width: 64px;
}

.brand-mark {
  grid-column: 1;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 12px rgba(198, 164, 108, 0.15));
}

.brand-text {
  grid-column: 2;
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(198, 164, 108, 0.15);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-name {
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-main {
  padding-bottom: 10px;
}

.site-main > section {
  position: relative;
  padding: 22px 0;
}

.site-main > section + section {
  border-top: 1px solid var(--line);
}

.hero {
  min-height: auto;
  display: block;
  padding-top: 10px;
}

.page-home .site-header {
  padding-bottom: 14px;
}

.page-home .hero {
  padding-top: 2px;
}

.page-home .eyebrow {
  margin-bottom: 10px;
}

.eyebrow,
.section-label,
.scope-kicker,
.legal-nav a,
.back-link,
.hero-micro {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow,
.section-label,
.scope-kicker,
.hero-micro {
  color: var(--accent);
}

.hero h1,
.scope-item h2,
.legal-article h1,
.legal-article h2 {
  font-family: var(--serif);
  font-weight: 500;
}

.eyebrow {
  margin: 0 0 12px;
  text-align: center;
}

.hero-panel {
  display: grid;
  grid-template-columns: 160px minmax(0, 620px) 160px;
  gap: 32px;
  align-items: center;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  justify-content: center;
}

.hero-copy {
  display: grid;
  gap: 10px;
  grid-column: 2;
  max-width: 34rem;
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}

.hero-ornament-col {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.hero-ornament-col-left {
  grid-column: 1;
}

.hero-ornament-col-right {
  grid-column: 3;
}

.hero-sigil-line {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(198, 164, 108, 0.22), transparent);
}

.hero-sigil-line-lower {
  transform: rotate(180deg);
}

.hero-sigil {
  width: clamp(86px, 8vw, 104px);
  height: clamp(86px, 8vw, 104px);
  filter: drop-shadow(var(--shadow));
  animation: sigil-breathe 7s ease-in-out infinite;
}

.hero-ornament {
  position: relative;
  width: 28px;
  height: 56px;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero-ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(198, 164, 108, 0.5);
  border-radius: 50%;
  background: rgba(198, 164, 108, 0.2);
  transform: translate(-50%, -50%);
}

.hero-ornament-line {
  display: block;
  width: 1px;
  height: 17px;
  background: linear-gradient(180deg, transparent, rgba(244, 232, 212, 0.34), transparent);
}

.hero-ornament-line-strong {
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 164, 108, 0.54), transparent);
}

.hero-micro,
.hero-summary,
.scope-item p,
.legal-article p,
.legal-article li,
.contact-note,
.contact-label {
  margin: 0;
}

.hero h1 {
  width: 100%;
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.contact-label {
  display: grid;
  justify-items: center;
  align-self: center;
  gap: 10px;
  margin: 8px auto 0;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-label::before {
  content: "";
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 164, 108, 0.38), transparent);
}

.hero-summary,
.scope-item p,
.legal-article p,
.legal-article li,
.contact-note {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

.scope-item .scope-kicker {
  color: var(--accent);
}

.contact-line {
  display: inline-flex;
  margin-top: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}

.hero-copy .contact-line {
  justify-self: center;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1020px);
  margin: 0 auto;
}

.scope-item {
  display: grid;
  justify-items: center;
  gap: 8px;
  align-content: start;
  min-height: 112px;
  padding: 14px 16px 16px;
  text-align: center;
}

.scope-item + .scope-item {
  border-left: 1px solid var(--line);
}

.scope-item h2,
.legal-article h2 {
  margin: 0;
  font-size: clamp(0.96rem, 1vw, 1.12rem);
  line-height: 1.14;
  letter-spacing: -0.026em;
}

.contact-note {
  width: auto;
  margin: 0;
  font-size: 0.72rem;
}

.site-footer {
  padding: 12px 0 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-note {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.9;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.legal-nav a {
  color: rgba(181, 165, 141, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.contact-line:hover,
.contact-line:focus-visible {
  color: var(--accent);
}

.brand-lockup:hover .brand-name,
.brand-lockup:focus-visible .brand-name,
.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
}

.page-legal .site-header {
  padding-bottom: 18px;
}

.back-link {
  display: inline-flex;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
}

.legal-layout {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.legal-article {
  width: min(100%, 760px);
  margin: 0 auto;
}

.legal-article h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.legal-article h2 {
  margin-top: 30px;
}

.legal-article p {
  margin: 0;
}

.legal-article p + p {
  margin-top: 12px;
}

.legal-article ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.legal-article li + li {
  margin-top: 10px;
}

.legal-article .intro {
  width: auto;
  margin: 0;
}

@keyframes sigil-breathe {
  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(var(--shadow));
  }

  50% {
    transform: translateY(-4px);
    filter: drop-shadow(0 30px 90px rgba(198, 164, 108, 0.12));
  }
}

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

  .hero-sigil {
    animation: none;
  }
}

@media (max-width: 960px) {
  body::before {
    inset: 12px;
  }

  body::after {
    content: none;
  }

  .page-shell {
    width: min(calc(100% - 34px), var(--max-width));
  }

  .site-main > section {
    padding: 20px 0;
  }

  .hero-panel,
  .scope-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    gap: 16px;
    width: min(100%, 40rem);
    padding: 16px 0;
  }

  .hero-copy {
    grid-column: 1;
    max-width: 30rem;
    justify-items: center;
    text-align: center;
  }

  .hero-ornament-col {
    display: none;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-copy .contact-line {
    justify-self: center;
  }

  .scope-item + .scope-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 26px;
  }

  .brand-lockup {
    column-gap: 12px;
  }

  .brand-name {
    font-size: 1.08rem;
    letter-spacing: 0.16em;
  }

  .eyebrow,
  .section-label,
  .scope-kicker,
  .legal-nav a,
  .back-link,
  .hero-micro,
  .footer-note {
    letter-spacing: 0.16em;
  }

  .hero-sigil-line {
    height: 22px;
  }

  .hero h1 {
    width: 100%;
    font-size: clamp(0.96rem, 5.6vw, 1.45rem);
    line-height: 1.06;
  }

  .hero-line {
    display: block;
    white-space: nowrap;
  }

  .hero-summary {
    font-size: 0.8rem;
    line-height: 1.58;
  }

  .contact-line {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .page-home .site-header {
    padding-bottom: 12px;
  }

  .page-home .hero {
    padding-top: 0;
  }
}
