:root {
  --bg: #0c0b09;
  --bg-elevated: #141210;
  --bg-panel: #1a1713;
  --bg-soft: #221e18;
  --ink: #f3ead7;
  --ink-muted: #b7a88c;
  --ink-dim: #8a7b63;
  --gold: #c9a84c;
  --gold-bright: #e0c36a;
  --gold-deep: #9a7a2e;
  --line: rgba(201, 168, 76, 0.22);
  --line-strong: rgba(201, 168, 76, 0.4);
  --danger: #d47a6a;
  --success: #7cb389;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 2px;
  --header-h: 4.5rem;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 168, 76, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(154, 122, 46, 0.08), transparent 50%),
    linear-gradient(180deg, #100e0b 0%, var(--bg) 40%, #0a0907 100%);
  background-attachment: fixed;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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.75rem;
}

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

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

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

ul,
ol {
  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: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1rem;
  text-decoration: none;
}

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

.inline-error {
  background: #3a1f1a;
  color: #f2cfc7;
  border-bottom: 1px solid var(--danger);
  padding: 0.75rem 1.25rem;
  text-align: center;
}

/* 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: calc(var(--max) + 4rem);
  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(--ink);
}

.brand-mark {
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--gold);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

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

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

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

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

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

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

.nav-cta:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--ink) !important;
}

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

.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: 1rem;
}

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

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

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

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: #14110c;
  border-color: var(--gold);
}

.btn-gold:hover {
  color: #0c0b09;
  background: linear-gradient(135deg, #edd288, var(--gold));
}

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

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

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

/* Hero variations */
.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: kenburns 22s var(--ease) 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.85) 0%, transparent 45%);
}

.hero-editorial-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.5rem;
  max-width: 40rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--gold-bright);
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
  animation: rise 0.9s var(--ease) both;
}

.hero-editorial h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  max-width: 18ch;
  animation: rise 1s 0.1s var(--ease) both;
}

.hero-editorial .lede {
  animation: rise 1s 0.2s var(--ease) both;
}

.hero-editorial .btn-row {
  animation: rise 1s 0.3s var(--ease) both;
}

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

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

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Proof strip */
.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(26, 23, 19, 0.7);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.25rem 0;
  text-align: center;
}

.proof-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.proof-label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin: 0;
}

/* Featured / cards */
.featured-course {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.featured-course img {
  width: 100%;
  height: min(520px, 70vw);
  object-fit: cover;
  border: 1px solid var(--line);
}

.course-grid,
.blog-grid,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.75rem;
}

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

.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.tier-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

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

.course-item,
.blog-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  transition: border-color 0.25s var(--ease);
}

.course-item:hover,
.blog-item:hover {
  border-color: var(--gold);
}

.course-item img,
.blog-item img,
.page-hero-img img,
.article-hero img,
.instructor-avatar {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.course-item img,
.blog-item img {
  height: 220px;
  margin-bottom: 1.15rem;
  transition: filter 0.35s var(--ease);
}

.course-item:hover img,
.blog-item:hover img {
  filter: brightness(1.08);
}

.course-item h3,
.blog-item h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.meta {
  font-size: 0.82rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

/* Benefits */
.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

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

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1;
}

/* Testimonials */
.quote-block {
  border-left: 1px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.testimonial-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.testimonial-panel p {
  margin-bottom: 1.25rem;
}

.testimonial-panel footer {
  font-size: 0.88rem;
  color: var(--ink-dim);
}

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

/* Pricing */
.tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier.is-featured {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
}

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

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

.tier ul {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.1rem;
  flex: 1;
}

.tier li {
  margin-bottom: 0.55rem;
}

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

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}

.field {
  margin-bottom: 1.25rem;
}

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

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

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

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
}

.field-error {
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 0.35rem;
}

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

.form-status.is-success {
  border-color: var(--success);
  color: var(--success);
  background: rgba(124, 179, 137, 0.08);
}

.form-status.is-error {
  border-color: var(--danger);
  color: #e8b4aa;
  background: rgba(212, 122, 106, 0.08);
}

.address-block {
  font-style: normal;
  line-height: 1.8;
  color: var(--ink-muted);
}

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

.page-hero.with-media {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: end;
  padding-bottom: 3rem;
}

.page-hero-img img {
  height: 320px;
}

.article-hero img {
  height: min(420px, 55vw);
  margin: 2rem 0 2.5rem;
}

.prose {
  max-width: 42rem;
}

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

.prose h3 {
  margin-top: 1.75rem;
}

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

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

.prose th {
  background: var(--bg-panel);
  color: var(--gold);
  font-weight: 500;
}

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

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

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

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

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

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

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

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

.instructor-avatar {
  width: 140px;
  height: 140px;
  object-fit: cover;
}

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

.case-study h3 {
  color: var(--gold-bright);
}

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

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.footer-tag {
  max-width: 28rem;
  color: var(--ink-dim);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

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

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

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

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

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

.footer-col address {
  font-style: normal;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

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

/* 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-strong);
  box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease) both;
}

.cookie-banner.is-leaving {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

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

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

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

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

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

/* Split layouts */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cta-band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(201, 168, 76, 0.08), transparent 55%),
    var(--bg-panel);
  padding: 4rem 0;
  text-align: center;
}

.cta-band p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

/* Responsive */
@media (max-width: 960px) {
  .proof-grid,
  .course-grid,
  .blog-grid,
  .tier-grid,
  .footer-cols,
  .featured-course,
  .page-hero.with-media,
  .contact-layout,
  .split-2 {
    grid-template-columns: 1fr;
  }

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

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(12, 11, 9, 0.97);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-list a {
    font-size: 1.15rem;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

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

  .benefit-list li,
  .module-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}
