:root {
  --bg: #0e0c0a;
  --bg-elev: #15120f;
  --bg-card: #1b1713;
  --bg-soft: #221d17;
  --gold: #c4a36a;
  --gold-bright: #d8bc86;
  --gold-dim: #8a7349;
  --cream: #f3ead8;
  --cream-dim: #d4c8b0;
  --muted: #9a8f7e;
  --line: rgba(196, 163, 106, 0.22);
  --line-strong: rgba(196, 163, 106, 0.45);
  --danger: #d08a7a;
  --success: #8faf8a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.25s ease, opacity 0.25s ease;
}

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

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
  color: var(--cream-dim);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--bg);
  padding: 0.4rem 0.8rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.inline-error,
.form-status.is-error {
  background: rgba(208, 138, 122, 0.12);
  border: 1px solid rgba(208, 138, 122, 0.4);
  color: var(--danger);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
}

.form-status.is-success {
  background: rgba(143, 175, 138, 0.12);
  border: 1px solid rgba(143, 175, 138, 0.4);
  color: var(--success);
  padding: 0.75rem 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 12, 10, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.nav-toggle-bars {
  display: none;
}

main {
  min-height: 60vh;
}

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

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.gold-rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

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

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

.btn-ghost:hover {
  background: rgba(196, 163, 106, 0.08);
  color: var(--gold-bright);
}

.text-link {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.15rem;
  color: var(--gold);
}

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

/* Hero editorial */
.hero-editorial {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: end;
}

.hero-copy h1 {
  margin-bottom: 1.2rem;
}

.hero-lead {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--cream-dim);
  max-width: 36rem;
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  height: 34rem;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
}

.hero-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(14, 12, 10, 0.85));
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-wide {
  grid-template-columns: 0.9fr 1.1fr;
}

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--cream);
  margin: 0;
}

.pull-quote footer {
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.metric {
  background: var(--bg);
  padding: 2rem 1.5rem;
}

.metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--gold);
}

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

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

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

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

.card-body {
  padding: 1.4rem 1.4rem 1.6rem;
}

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

.card-body h3 a {
  color: var(--cream);
  text-decoration: none;
}

.card-meta {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.6rem;
}

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

.feature-list li {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-list h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.quiet-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

/* Course / article */
.page-hero {
  padding: 4rem 0 2.5rem;
}

.page-hero.with-image {
  padding-bottom: 0;
}

.page-hero img.cover {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  margin-top: 2rem;
  filter: saturate(0.72);
}

.prose {
  max-width: 42rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.modules {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.module {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.module-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.4rem;
}

.instructor {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.instructor img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.8);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--cream);
}

.faq p {
  margin-top: 0.7rem;
}

.price-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, #221c14, var(--bg-card));
}

.price-card h3 {
  font-size: 1.7rem;
}

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

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

.price-card ul {
  padding-left: 1.1rem;
  color: var(--cream-dim);
  flex: 1;
  margin-bottom: 1.5rem;
}

.review {
  padding: 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

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

.review-attr {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.case-study {
  padding: 2.2rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

/* Forms */
form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

input,
select,
textarea {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  width: 100%;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
}

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

/* Table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.cookie-table th {
  color: var(--gold);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  background: #0b0908;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1fr;
  gap: 2.5rem;
}

.footer-kicker {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

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

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

.footer-heading {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.footer-cols ul,
.footer-contact p {
  list-style: none;
  padding: 0;
  margin: 0 0 0.45rem;
}

.footer-cols a,
.footer-contact a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-cols a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.footer-address {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-bar {
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-bar p {
  margin: 0;
  color: var(--muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #16120e;
  border-top: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1.5rem 1.4rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-inner p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

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

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page .code {
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--gold);
  line-height: 1;
}

.legal-list {
  padding-left: 1.15rem;
}

.legal-list li {
  margin-bottom: 0.45rem;
  color: var(--cream-dim);
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .split-wide,
  .cards,
  .cards-2,
  .price-table,
  .metrics,
  .footer-inner,
  .instructor {
    grid-template-columns: 1fr;
  }

  .hero-figure img {
    height: 22rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #120f0c;
    border-bottom: 1px solid var(--line);
    display: none;
  }

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

  .site-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.4rem;
    gap: 0.9rem;
  }

  .cookie-banner-inner,
  .quiet-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
}

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

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