:root {
  --ink: #0c0a08;
  --ink-soft: #14110e;
  --panel: #1a1612;
  --panel-2: #221c16;
  --gold: #c5a572;
  --gold-bright: #e4d0a8;
  --gold-dim: rgba(197, 165, 114, 0.28);
  --ivory: #f4ecde;
  --text: #e7dccb;
  --muted: #9a8d7c;
  --line: rgba(197, 165, 114, 0.22);
  --danger: #c45c4a;
  --ok: #8aaa74;
  --display: "Bodoni Moda", "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, serif;
  --label: "Tenor Sans", "Times New Roman", serif;
  --space: clamp(1.25rem, 3.2vw, 2.6rem);
  --measure: 42rem;
  --wide: 74rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
}

body {
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.72;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 16px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
  z-index: 80;
}

@media (max-width: 720px) {
  body::before {
    inset: 8px;
  }
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.35s var(--ease);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ivory);
  letter-spacing: 0.01em;
  margin: 0 0 0.65em;
}

h1 {
  font-size: clamp(2.8rem, 7.2vw, 5.8rem);
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  z-index: 200;
  font-family: var(--label);
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 1rem;
  color: var(--ink);
}

.kicker,
.eyebrow {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.lede {
  font-family: var(--display);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  font-style: italic;
  color: #d7cbb8;
  line-height: 1.45;
  max-width: 38rem;
}

.muted {
  color: var(--muted);
}

.inline-error {
  background: rgba(196, 92, 74, 0.12);
  border: 1px solid rgba(196, 92, 74, 0.5);
  color: #f0c7c0;
  padding: 0.85rem 1.1rem;
  margin: 0.8rem var(--space);
  font-size: 0.92rem;
}

#site-header,
#site-footer {
  position: relative;
  z-index: 40;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(12, 10, 8, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ivory);
}

.brand:hover {
  color: var(--gold-bright);
}

.brand-mark {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.12);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-family: var(--label);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.2rem;
  background: transparent;
  border: 1px solid var(--gold-dim);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
  position: relative;
  content: "";
}

.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.4rem;
}

.site-nav a {
  color: var(--muted);
  font-family: var(--label);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem var(--space) 1.4rem;
    gap: 0.85rem;
  }

  .site-nav.is-open {
    display: flex;
  }
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(3.4rem, 8vw, 6.8rem) 0;
}

.section-tight {
  padding: clamp(2.4rem, 5vw, 4.4rem) 0;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--label);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
  color: var(--gold);
}

.text-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--label);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-bright);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--muted);
  color: var(--ivory);
  background: transparent;
}

.btn-ghost:hover {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold);
}

.opening {
  position: relative;
  min-height: min(88vh, 46rem);
  display: grid;
}

.opening img {
  width: 100%;
  height: min(88vh, 46rem);
  object-fit: cover;
  filter: saturate(0.62) contrast(1.08) brightness(0.72);
}

.invitation-card {
  position: absolute;
  left: max(var(--space), calc((100% - var(--wide)) / 2 + var(--space)));
  bottom: clamp(1.6rem, 4vw, 3rem);
  max-width: 36rem;
  background: rgba(12, 10, 8, 0.86);
  border: 1px solid var(--gold);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  backdrop-filter: blur(10px);
}

.invitation-card h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-bottom: 0.5em;
}

.invitation-card .lede {
  margin-bottom: 1.4rem;
}

.case-band {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04);
  border: 1px solid var(--gold-dim);
}

.figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.card img {
  width: 100%;
  height: 13.5rem;
  object-fit: cover;
  filter: saturate(0.72);
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.4em;
}

.card-body p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card-meta {
  margin-top: 1rem;
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 1.5rem var(--space);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric b {
  display: block;
  font-family: var(--display);
  font-size: 2.05rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.pull-quote {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.pull-quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-style: italic;
  line-height: 1.32;
  color: var(--ivory);
}

.pull-quote cite {
  display: block;
  margin-top: 1.3rem;
  font-style: normal;
  font-family: var(--label);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-list {
  display: grid;
  gap: 1.4rem;
}

.blog-row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.4rem;
  color: inherit;
}

.blog-row:hover h3 {
  color: var(--gold);
}

.blog-row img {
  width: 100%;
  height: 9.5rem;
  object-fit: cover;
  filter: saturate(0.72);
  border: 1px solid var(--gold-dim);
}

.blog-row time {
  color: var(--gold);
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-quiet {
  text-align: center;
  border-top: 1px solid var(--line);
}

.cta-quiet h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.2rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-kicker,
.footer-heading {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.footer-lede,
.footer-address {
  color: var(--muted);
  font-size: 0.96rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a,
.footer-col a {
  color: var(--text);
}

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

.footer-base {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 2rem;
}

.page-hero h1 {
  max-width: 16ch;
}

.prose {
  max-width: var(--measure);
  padding-bottom: 3rem;
}

.prose h2 {
  margin-top: 1.8em;
}

.prose ul,
.prose ol {
  color: var(--muted);
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.article-cover {
  width: 100%;
  height: min(48vh, 26rem);
  object-fit: cover;
  filter: saturate(0.7);
  border: 1px solid var(--gold-dim);
  margin: 0 0 2rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  padding-bottom: 3rem;
}

.course-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease);
}

.course-card:hover {
  border-color: var(--gold);
}

.course-card img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  filter: saturate(0.72);
}

.modules {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  counter-reset: module;
}

.modules li {
  counter-increment: module;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
}

.modules li::before {
  content: counter(module, decimal-leading-zero);
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.3rem;
}

.outcomes {
  color: var(--muted);
}

.person {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.3rem;
  align-items: center;
  margin: 1.6rem 0 2rem;
}

.person img {
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  border: 1px solid var(--gold-dim);
  filter: saturate(0.7);
}

details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ivory);
}

details p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  padding-bottom: 3rem;
}

.price-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.6rem 1.4rem 1.7rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.is-featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(197, 165, 114, 0.1), var(--panel) 42%);
}

.price {
  font-family: var(--display);
  font-size: 2.3rem;
  color: var(--gold);
  margin: 0.4rem 0 1rem;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
}

.price-card ul {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

.price-card li {
  margin-bottom: 0.45rem;
}

.review-list {
  display: grid;
  gap: 1.2rem;
  padding-bottom: 2.4rem;
}

.review {
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
  background: var(--panel);
}

.review p {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.45;
}

.review.short p {
  font-size: 1.05rem;
  font-family: var(--body);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.attr {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

form,
fieldset {
  display: grid;
  gap: 1rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.field label {
  display: block;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.field-error,
[data-field-error] {
  min-height: 1.2em;
  color: #e7a79d;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  display: block;
}

.form-banner,
.form-status {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
}

.form-banner.is-error,
.form-status.is-error {
  border-color: var(--danger);
  color: #e7a79d;
}

[data-form-success] {
  border: 1px solid var(--ok);
  color: var(--ok);
  padding: 0.9rem 1rem;
}

.address-block {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem;
}

.address-block h2 {
  font-size: 1.15rem;
  margin-top: 1.1rem;
}

.address-block h2:first-child {
  margin-top: 0;
}

.legal {
  max-width: 48rem;
  padding-bottom: 3.4rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 2rem;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  color: var(--gold);
  font-weight: 500;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lost {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--space);
}

.lost h1 {
  font-size: clamp(3.2rem, 10vw, 6.4rem);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: var(--panel-2);
  border: 1px solid var(--gold);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.cookie-banner-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.cookie-banner p {
  color: var(--text);
  max-width: 46rem;
  font-size: 0.94rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.plate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.observatory {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 980px) {
  .case,
  .split,
  .cards,
  .price-grid,
  .contact-grid,
  .footer-inner,
  .course-grid,
  .plate-row,
  .observatory {
    grid-template-columns: 1fr;
  }

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

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .invitation-card {
    left: var(--space);
    right: var(--space);
    max-width: none;
  }
}

@media (max-width: 720px) {
  .blog-row,
  .person {
    grid-template-columns: 1fr;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: flex-end;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }
}

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

  .card,
  .btn,
  a {
    transition: none;
  }
}
