:root {
  --bg: #0c0b09;
  --bg-elevated: #16130f;
  --bg-soft: #1d1913;
  --bg-panel: #221d16;
  --text: #f3e7d4;
  --text-muted: #b7a994;
  --gold: #c9a227;
  --gold-soft: #e0c56a;
  --gold-deep: #8a6d1a;
  --line: rgba(201, 162, 39, 0.22);
  --danger: #d8aba8;
  --success: #8fbf8a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 4px;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --max: 1180px;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 162, 39, 0.06), transparent 45%),
    var(--bg);
}

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

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

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

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

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.script-error {
  background: #3a1d1d;
  color: #ffd7d7;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

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

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #faf6ee;
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 3px rgba(201, 162, 39, 0.2);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold-soft);
}

.site-nav .nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  padding: 0.45rem 0.9rem;
}

.site-nav .nav-cta:hover {
  background: rgba(201, 162, 39, 0.12);
  color: #fff;
}

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

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--gold);
  margin: 0.28rem 0;
}

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

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 45%, var(--gold-deep));
  color: #16110a;
  border-color: var(--gold);
}

.btn-gold:hover {
  color: #0c0b09;
}

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

.btn-ghost:hover {
  border-color: var(--gold);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero variants */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - var(--header-h));
  align-items: stretch;
}

.hero-copy {
  padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(620px, 100%);
  margin-left: max(calc((100vw - var(--max)) / 2), 1.25rem);
}

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

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

.hero-copy .lede {
  font-size: 1.12rem;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  animation: kenburns 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 11, 9, 0.55), transparent 40%),
    linear-gradient(0deg, rgba(12, 11, 9, 0.35), transparent 35%);
}

.hero-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
  color: #f5efe4;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  max-width: 14rem;
  line-height: 1.35;
}

.page-hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.08), transparent 70%),
    var(--bg);
}

.page-hero.with-image {
  padding: 0;
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
}

.page-hero.with-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
}

.page-hero.with-image .container {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3rem;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 0.8rem;
}

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

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

.section-head p {
  font-size: 1.05rem;
}

.band {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.gold-rule {
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin: 0 0 1.2rem;
}

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

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

.panel {
  background: linear-gradient(160deg, rgba(34, 29, 22, 0.95), rgba(22, 19, 15, 0.98));
  border: 1px solid var(--line);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin-top: 0.3rem;
}

.panel .meta {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-card img,
.blog-card img,
.review-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1.1rem;
  filter: saturate(0.9);
}

.course-card a.title-link,
.blog-card a.title-link {
  text-decoration: none;
  color: #faf6ee;
}

.course-card a.title-link:hover,
.blog-card a.title-link:hover {
  color: var(--gold-soft);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

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

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

.quote-block {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.4rem;
}

.quote-block p {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #f0e8da;
  line-height: 1.45;
}

.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pill-meta {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

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

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

.price-card.featured {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.12), transparent 40%),
    var(--bg-panel);
  transform: translateY(-8px);
}

.price-card .amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold-soft);
  margin: 0.6rem 0 0.2rem;
}

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

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.8rem;
  flex: 1;
}

.price-card li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.price-note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: #eadfca;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.85rem 1rem;
  font: inherit;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

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

.field-error {
  min-height: 1.2rem;
  color: #e8b4b4;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
}

.form-status.is-success {
  border-color: rgba(143, 191, 138, 0.5);
  color: var(--success);
}

.form-status.is-error {
  border-color: rgba(216, 140, 140, 0.5);
  color: #e8b4b4;
}

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

.contact-card h2 {
  font-size: 1.6rem;
}

.contact-card p {
  white-space: pre-wrap;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #f5efe4;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
}

.faq-item .faq-body {
  display: none;
  padding: 0 1.2rem 1.2rem;
  color: var(--text-muted);
}

.faq-item.is-open .faq-body {
  display: block;
}

/* Legal */
.legal-content {
  max-width: 760px;
  padding: 3rem 0 5rem;
}

.legal-content h2 {
  margin-top: 2.2rem;
  font-size: 1.7rem;
}

.legal-content ul {
  color: var(--text-muted);
  padding-left: 1.2rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

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

.cookie-table th {
  background: var(--bg-elevated);
  color: var(--gold-soft);
  font-weight: 600;
}

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

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #faf6ee;
  margin-bottom: 0.6rem;
}

.footer-tag {
  max-width: 22rem;
}

.footer-col h2 {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
}

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

.footer-contact p {
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.2rem 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.88rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 640px;
  margin-inline: auto;
  background: #1a1611;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
  animation: rise 0.45s ease;
}

.cookie-banner p {
  margin-bottom: 1rem;
  color: #e8dcc8;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

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

.instructor {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.instructor img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.2);
}

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

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.not-found .code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 16vw, 9rem);
  color: var(--gold);
  line-height: 0.9;
  margin-bottom: 0.4rem;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 2.4rem;
}

.cta-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.article-hero img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 1.2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-item strong {
  color: var(--gold);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-split,
  .grid-3,
  .price-grid,
  .form-layout,
  .footer-inner,
  .stat-row,
  .instructor,
  .cta-split {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    width: auto;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .price-card.featured {
    transform: none;
  }

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

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #120f0c;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
  }

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

  .site-nav a {
    padding: 0.85rem 1.25rem;
  }

  .site-nav .nav-cta {
    margin: 0.5rem 1.25rem 1rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
