:root {
  --bg-deep: #0c0b09;
  --bg: #12100e;
  --bg-raised: #1a1714;
  --bg-soft: #221e19;
  --gold: #d4af37;
  --gold-soft: #c9a227;
  --gold-pale: #e8d5a3;
  --gold-dim: rgba(212, 175, 55, 0.14);
  --text: #f3eee4;
  --text-muted: #a89f90;
  --text-dim: #7a7266;
  --line: rgba(232, 213, 163, 0.16);
  --danger: #e8a0a0;
  --ok: #8fbc8f;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --radius: 2px;
  --header-h: 4.5rem;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(212, 175, 55, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 162, 39, 0.05), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 40%, #0e0c0a 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.85rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 0.6rem 1rem;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}

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

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

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

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

.brand-mark {
  width: 0.7rem;
  height: 0.7rem;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-soft));
  box-shadow: 0 0 0 3px var(--gold-dim);
}

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

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

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

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

.nav-cta {
  border: 1px solid var(--gold-soft);
  padding: 0.45rem 0.95rem;
  color: var(--gold-pale) !important;
}

.nav-cta:hover {
  background: var(--gold-dim);
}

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

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

.nav-toggle-bar::before { position: absolute; top: -5px; }
.nav-toggle-bar::after { position: absolute; top: 5px; }

@media (max-width: 920px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .site-nav[data-open="true"] { max-height: 28rem; }
  .site-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1rem;
  }
}

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

.section {
  padding: 5.5rem 0;
}

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

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 40rem;
}

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

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

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-soft));
  color: var(--bg-deep);
  font-weight: 700;
}

.btn-gold:hover {
  color: var(--bg-deep);
  filter: brightness(1.05);
}

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

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

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

/* Hero variants */
.hero-editorial {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-editorial__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(0.85);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-editorial__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 11, 9, 0.92) 0%, rgba(12, 11, 9, 0.55) 48%, rgba(12, 11, 9, 0.35) 100%),
    linear-gradient(0deg, rgba(12, 11, 9, 0.85) 0%, transparent 45%);
}

.hero-editorial__content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.5rem;
  max-width: 38rem;
  animation: riseIn 1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.8rem);
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 0.95;
}

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

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--gold-pale);
  font-weight: 400;
  margin: 0 0 1rem;
}

/* Motion */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(1.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Quote strip / testimonials early */
.quote-rail {
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
}

.quote-rail__inner {
  display: grid;
  gap: 2rem;
  padding: 2.75rem 0;
}

@media (min-width: 800px) {
  .quote-rail__inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
}

.quote-rail blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--text);
  font-style: italic;
}

.quote-rail cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.quote-stat {
  text-align: center;
  padding: 0 1.5rem;
  border-inline: 1px solid var(--line);
}

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

.quote-stat span {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Grids */
.grid-2 {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-block {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.feature-block h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
}

/* Course / media tiles — interaction containers, not decorative cards */
.media-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.media-link:hover .media-link__title {
  color: var(--gold);
}

.media-link__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line);
}

.media-link__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.media-link:hover .media-link__img img {
  transform: scale(1.04);
}

.media-link__meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.media-link__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text);
  margin: 0 0 0.45rem;
  transition: color 0.25s var(--ease);
}

.media-link__text {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Split panels */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}

.split__img {
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 22rem;
}

.split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

/* Pricing */
.tier-list {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .tier-list { grid-template-columns: repeat(3, 1fr); }
}

.tier {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tier.featured {
  border-color: var(--gold-soft);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), var(--bg-raised) 40%);
}

.tier h3 {
  color: var(--text);
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  margin: 0.5rem 0 0.25rem;
}

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

.tier ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  flex: 1;
}

.tier li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tier .btn { width: 100%; }

.price-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Forms */
.form {
  display: grid;
  gap: 1.15rem;
  max-width: 36rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold-pale);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-field .error {
  color: #e8a0a0;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-field.has-error .error { display: block; }
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #e8a0a0;
}

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

.form-status.is-success {
  display: block;
  border-color: #6a9a6a;
  color: #b8d8b8;
  background: rgba(106, 154, 106, 0.1);
}

.form-status.is-error {
  display: block;
  border-color: #a06060;
  color: #e8a0a0;
  background: rgba(160, 96, 96, 0.12);
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #a06060;
  color: #e8a0a0;
  background: rgba(160, 96, 96, 0.12);
}

/* Reviews */
.review-stack {
  display: grid;
  gap: 2rem;
}

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

.review p {
  font-size: 1.05rem;
}

.review.long p {
  font-size: 1.12rem;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 1rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.1em;
}

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

/* Blog article */
.article-hero {
  padding: 3.5rem 0 2rem;
}

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

.prose {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

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

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

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

/* Legal */
.legal {
  max-width: 46rem;
  padding: 3.5rem 1.5rem 5rem;
  margin: 0 auto;
}

.legal h1 { margin-bottom: 0.5rem; }
.legal .updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { margin-top: 2.25rem; font-size: 1.65rem; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

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

.legal th {
  background: var(--bg-raised);
  color: var(--gold-pale);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

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

.contact-panel h2 {
  font-size: 1.4rem;
}

.contact-panel p,
.contact-panel a {
  color: var(--text-muted);
}

/* Page heroes (inner) */
.page-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 36rem;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin-top: 0.85rem;
}

/* Modules */
.module-list {
  counter-reset: mod;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.module-list li {
  counter-increment: mod;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--line);
  position: relative;
}

.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.2rem;
}

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

/* CTA band */
.cta-band {
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.12), transparent 55%),
    var(--bg-raised);
  border-block: 1px solid var(--line);
  text-align: center;
  padding: 4.5rem 1.5rem;
}

.cta-band h2 {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-band p {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* 404 */
.page-404 {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  color: var(--gold);
  line-height: 1;
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 34rem;
  margin-left: auto;
  background: var(--bg-raised);
  border: 1px solid var(--gold-soft);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  animation: riseIn 0.5s var(--ease);
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.cookie-banner a {
  color: var(--gold);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-actions .btn {
  padding: 0.65rem 1.15rem;
  font-size: 0.8rem;
}

/* Instructor */
.instructor {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .instructor {
    grid-template-columns: 8rem 1fr;
  }
}

.instructor img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
}

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

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text);
  margin: 0 0 0.5rem;
}

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

.footer-cols {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

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

.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); }

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom p { margin: 0; color: var(--text-dim); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

#site-header-slot:empty,
#site-footer-slot:empty {
  min-height: 1px;
}
