:root {
  --bg: #0c0b09;
  --bg-elevated: #161410;
  --bg-soft: #1c1914;
  --ink: #f3ecd9;
  --ink-muted: #b8ad94;
  --gold: #c9a227;
  --gold-bright: #e8d5a3;
  --gold-deep: #8a6d1a;
  --line: rgba(201, 162, 39, 0.22);
  --danger: #c97c7c;
  --success: #7dba8a;
  --radius: 2px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  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(232, 213, 163, 0.06), transparent 50%),
    linear-gradient(180deg, #100e0b 0%, var(--bg) 40%, #0a0908 100%);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 1.02rem;
}

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

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

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;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

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

.sr-only {
  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: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

.inline-error {
  background: #3a1d1d;
  color: #f3c4c4;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #6b3030;
  font-size: 0.95rem;
}

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  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: var(--ink);
}

.brand-mark {
  width: 0.7rem;
  height: 0.7rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

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

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

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

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

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

.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-bright);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bar::before { top: -6px; position: absolute; left: 0; }
.nav-toggle-bar::after { top: 6px; position: absolute; left: 0; }

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

.section {
  padding: 5rem 0;
}

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

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

.lede {
  font-size: 1.15rem;
  max-width: 38rem;
}

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

.stack-lg > * + * {
  margin-top: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  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-bright), var(--gold));
  color: #14110c;
  border-color: var(--gold);
}

.btn-gold:hover {
  color: #14110c;
  filter: brightness(1.05);
}

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

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

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

/* Hero home — editorial full-bleed */
.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.38) saturate(0.85);
  animation: heroDrift 28s ease-in-out infinite alternate;
}

.hero-editorial-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, 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.95) 0%, transparent 45%);
}

.hero-editorial-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
  width: 100%;
}

.hero-brand-line {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-bright);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  animation: fadeUp 1s ease both;
}

.hero-editorial h1 {
  max-width: 14ch;
  animation: fadeUp 1s ease 0.12s both;
}

.hero-editorial .lede {
  color: #d9d0ba;
  animation: fadeUp 1s ease 0.22s both;
}

.hero-editorial .btn-row {
  animation: fadeUp 1s ease 0.32s both;
}

.hero-rule {
  width: 4rem;
  height: 1px;
  background: var(--gold);
  margin: 1.4rem 0;
  animation: growRule 1.1s ease 0.2s both;
}

/* Page hero (inner) */
.page-hero {
  padding: 4.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(201, 162, 39, 0.07), transparent 70%);
}

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

.page-hero-media {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-hero-media img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: brightness(0.78) contrast(1.05);
}

/* Stats / proof */
.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold-bright);
  font-weight: 500;
}

.proof-item span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Feature / course lists — no card chrome by default */
.feature-rail {
  display: grid;
  gap: 2rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}

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

.course-tile {
  display: block;
  text-decoration: none;
  color: inherit;
}

.course-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: brightness(0.82);
  transition: filter 0.35s ease, transform 0.5s ease;
}

.course-tile:hover img {
  filter: brightness(0.95);
  transform: scale(1.02);
}

.course-tile h3 {
  margin-top: 1rem;
  color: var(--ink);
}

.course-tile p {
  font-size: 0.95rem;
}

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

/* Quote */
.quote-block {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink);
  line-height: 1.35;
}

.quote-block cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Testimonials */
.review-list {
  display: grid;
  gap: 2.5rem;
}

.review-item {
  padding: 0;
  border-left: 1px solid var(--gold);
  padding-left: 1.5rem;
}

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

.review-item p {
  color: #d5ccb5;
}

.review-attr {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

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

.price-tier {
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(22, 20, 16, 0.65);
}

.price-tier.is-featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.1), rgba(22, 20, 16, 0.8));
}

.price-tier h3 {
  margin-bottom: 0.35rem;
}

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

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

.price-tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.price-tier li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Forms */
.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 0.92rem;
}

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

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

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

.form-status {
  margin-top: 1rem;
  min-height: 1.4rem;
}

.form-status.is-success { color: var(--success); }
.form-status.is-error { color: #e8a0a0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

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

.contact-aside h2 {
  font-size: 1.5rem;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2.5rem;
}

.blog-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.blog-row img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2.5rem;
}

.article-meta {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

/* Legal */
.legal-body {
  max-width: 46rem;
}

.legal-body h2 {
  margin-top: 2.25rem;
  font-size: 1.55rem;
}

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

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

.legal-body th {
  color: var(--gold-bright);
  background: rgba(201, 162, 39, 0.08);
}

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

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

.module-list strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

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

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

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

.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
}

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

/* 404 */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}

.cookie-banner-inner {
  padding: 1.25rem 1.35rem;
}

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

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

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

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr) 1.3fr;
  gap: 1.75rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

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

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

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

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

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

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

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

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

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

@keyframes growRule {
  from { width: 0; opacity: 0; }
  to { width: 4rem; opacity: 1; }
}

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-2%); }
}

/* Case study */
.case-study {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.case-study + .case-study {
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  .split,
  .contact-grid,
  .blog-row,
  .course-grid,
  .pricing-grid,
  .proof-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(12, 11, 9, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }

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

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

  .feature-item {
    grid-template-columns: 3rem 1fr;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
