:root {
  --bg-deep: #0a0908;
  --bg-elevated: #141210;
  --bg-soft: #1c1915;
  --bg-panel: #221e18;
  --gold: #c9a45c;
  --gold-soft: #e2c789;
  --gold-dim: #8a7340;
  --ink: #f3eee4;
  --ink-muted: #b8b09a;
  --ink-faint: #8a8276;
  --line: rgba(201, 164, 92, 0.22);
  --line-strong: rgba(201, 164, 92, 0.45);
  --danger: #d4a08a;
  --success: #8faf7a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.5rem;
  --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.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 164, 92, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(201, 164, 92, 0.08), transparent 50%),
    linear-gradient(180deg, #0d0b09 0%, var(--bg-deep) 40%, #080706 100%);
  background-attachment: fixed;
}

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

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

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

p { margin: 0 0 1.1em; color: var(--ink-muted); }

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

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

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

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

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

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-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.85rem;
  height: 0.85rem;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.12);
}

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

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

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

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

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

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
}

.nav-toggle-bar { top: 50%; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(14, 12, 10, 0.97);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .site-nav.is-open { max-height: 28rem; }
  .site-nav .nav-list {
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.85rem;
  }
}

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

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

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.25) 0%, rgba(10, 9, 8, 0.55) 45%, rgba(10, 9, 8, 0.92) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-stage > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 4.5rem 0 3.5rem;
  max-width: 38rem;
}

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

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 1.25rem;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 32rem;
  animation: fadeUp 0.9s 0.12s var(--ease) both;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  animation: fadeUp 0.9s 0.22s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #1a150c;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  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 {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: #1a150c;
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: rgba(201, 164, 92, 0.12);
  color: var(--gold);
}

.section {
  padding: 5rem 0;
}

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

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.85rem;
}

.section-intro {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  border: 0;
  margin: 0 0 2rem;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split-2 { grid-template-columns: 1.05fr 0.95fr; }
  .split-2.flip > :first-child { order: 2; }
}

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.8s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.03);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.benefit-list li {
  padding-left: 1.4rem;
  border-left: 1px solid var(--gold-dim);
}

.benefit-list h3 {
  margin-bottom: 0.35rem;
  color: var(--gold-soft);
}

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

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

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

.item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.item-media {
  overflow: hidden;
  margin-bottom: 1.1rem;
  border: 1px solid var(--line);
}

.item-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: brightness(0.9);
}

.item-link:hover .item-media img {
  transform: scale(1.04);
  filter: brightness(1);
}

.item-meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.45rem;
}

.item-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.item-excerpt {
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin: 0;
}

.proof-band {
  border-block: 1px solid var(--line);
  background: rgba(28, 25, 21, 0.55);
}

.proof-row {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 0;
}

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

.proof-stat {
  text-align: center;
}

.proof-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold);
  font-weight: 500;
}

.proof-stat span {
  color: var(--ink-faint);
  font-size: 0.92rem;
}

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

.quote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.4;
}

.quote footer {
  margin-top: 1rem;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.price-tier {
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(34, 30, 24, 0.9), rgba(14, 12, 10, 0.95));
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

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

.price-tier.featured {
  border-color: var(--gold-dim);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 92, 0.2);
}

.price-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold-soft);
  margin: 0;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ink);
}

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

.price-tier ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-muted);
  flex: 1;
}

.price-tier li { margin-bottom: 0.45rem; }

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

.page-hero .lede {
  max-width: 40rem;
  font-size: 1.15rem;
}

.prose {
  max-width: 44rem;
}

.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; color: var(--gold-soft); }

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

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

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
}

th {
  color: var(--gold-soft);
  font-weight: 600;
  background: rgba(201, 164, 92, 0.06);
}

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

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s var(--ease);
}

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

.field textarea { min-height: 9rem; resize: vertical; }

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.35rem;
  display: none;
}

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

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

.form-status.is-success {
  display: block;
  border-color: rgba(143, 175, 122, 0.5);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  border-color: rgba(212, 160, 138, 0.5);
  color: var(--danger);
}

.contact-panel {
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: rgba(20, 18, 16, 0.7);
}

.contact-panel p { margin-bottom: 0.7rem; }

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

.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mod;
}

.modules li {
  counter-increment: mod;
  padding: 1.25rem 0 1.25rem 3.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

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

.instructor {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: rgba(20, 18, 16, 0.55);
}

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

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

.rating {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.case-study {
  border-left: 2px solid var(--gold-dim);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.cta-band {
  margin: 3rem 0 0;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-band p {
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.error-page {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--gold);
  line-height: 1;
  margin: 0;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 34rem;
  margin-inline: auto;
  padding: 1.25rem 1.35rem;
  background: rgba(16, 14, 12, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  display: none;
}

.cookie-banner.is-visible { display: block; animation: fadeUp 0.45s var(--ease); }

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

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

.cookie-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

.inline-error {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(212, 160, 138, 0.45);
  color: var(--danger);
  background: rgba(40, 20, 16, 0.4);
}

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

.footer-grid {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.footer-tagline {
  color: var(--ink-faint);
  font-size: 0.95rem;
}

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

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

.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.footer-contact p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-bottom {
  width: min(100% - 2.5rem, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

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

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

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