:root {
  --bg: #0c0b09;
  --bg-elevated: #16140f;
  --bg-soft: #1e1b14;
  --ink: #f3ecdf;
  --ink-muted: #b7ab96;
  --gold: #c9a45c;
  --gold-soft: #e8d5a3;
  --gold-deep: #8a6f35;
  --line: rgba(201, 164, 92, 0.28);
  --danger: #d4746a;
  --success: #6f9f6a;
  --radius: 2px;
  --max: 1120px;
  --header-h: 4.5rem;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Libre Franklin", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  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 100% 0%, rgba(232, 213, 163, 0.06), transparent 50%),
    linear-gradient(180deg, #100e0b 0%, var(--bg) 40%, #090807 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 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.75rem);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
}

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

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-header],
[data-footer] {
  width: 100%;
}

main {
  flex: 1;
  padding-top: var(--header-h);
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(12, 11, 9, 0.82);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--gold-soft);
}

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

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

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

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

.nav-cta:hover {
  background: rgba(201, 164, 92, 0.12);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-toggle-bar {
  width: 1.1rem;
  height: 1px;
  background: var(--gold-soft);
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  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 ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #1a150c;
}

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

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

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

.section {
  padding: 5.5rem 0;
}

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

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

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

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

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }

  .split.reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .split.reverse > :first-child {
    order: 2;
  }
}

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

.hero-editorial::before {
  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.25) 100%),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  z-index: 0;
  animation: heroFade 1.4s ease both;
}

.hero-editorial .wrap {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.5rem;
}

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

.hero-line {
  width: 4rem;
  height: 1px;
  background: var(--gold);
  margin: 0 0 1.5rem;
  animation: rise 1s ease 0.1s both;
}

.hero-lede {
  max-width: 28rem;
  font-size: 1.15rem;
  color: var(--ink);
  animation: rise 1s ease 0.2s both;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 1s ease 0.3s both;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: -1px;
}

.metric {
  background: var(--bg-elevated);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

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

.metric span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.course-grid,
.card-grid,
.blog-grid,
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.media-panel {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transition: transform 1.1s ease;
}

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

.course-tile,
.blog-tile,
.price-tier,
.review-block,
.faq-item,
.info-panel {
  background: linear-gradient(160deg, rgba(30, 27, 20, 0.95), rgba(18, 16, 12, 0.98));
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.course-tile img,
.blog-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(201, 164, 92, 0.15);
}

.course-tile h3 a,
.blog-tile h3 a {
  color: var(--ink);
  text-decoration: none;
}

.course-tile h3 a:hover,
.blog-tile h3 a:hover {
  color: var(--gold-soft);
}

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

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

.feature-list li {
  padding-left: 1.25rem;
  border-left: 1px solid var(--gold);
}

.feature-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.quote-rail {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .quote-rail {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

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

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

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

.price-tier {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-tier.featured {
  border-color: var(--gold);
  background:
    radial-gradient(circle at top right, rgba(201, 164, 92, 0.16), transparent 45%),
    linear-gradient(160deg, rgba(36, 31, 20, 0.98), rgba(18, 16, 12, 0.98));
}

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

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

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

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

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

.page-hero p {
  max-width: 38rem;
  font-size: 1.08rem;
}

.prose {
  max-width: 46rem;
}

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

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

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

.prose li + li {
  margin-top: 0.4rem;
}

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

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

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

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

td {
  color: var(--ink-muted);
}

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

.form-row {
  display: grid;
  gap: 0.4rem;
}

label {
  font-size: 0.88rem;
  color: var(--gold-soft);
}

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

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

.field-error {
  color: #e8a39a;
  font-size: 0.85rem;
  min-height: 1.2em;
}

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

.form-status.is-visible {
  display: block;
}

.form-status.success {
  border-color: rgba(111, 159, 106, 0.55);
  color: #b7d4b3;
}

.form-status.error {
  border-color: rgba(212, 116, 106, 0.55);
  color: #e8a39a;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item details {
  color: var(--ink-muted);
}

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

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

.module-list {
  counter-reset: module;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.module-list li {
  counter-increment: module;
  border: 1px solid var(--line);
  padding: 1.25rem 1.25rem 1.25rem 4.25rem;
  position: relative;
  background: var(--bg-elevated);
}

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

.instructor {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: var(--bg-elevated);
}

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

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

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

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

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

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

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

.footer-heading {
  font-size: 1rem;
  letter-spacing: 0.14em;
  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;
}

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

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

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

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

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.45s ease both;
}

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

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

.inline-error {
  margin: 1rem auto;
  width: min(100% - 2.5rem, var(--max));
  padding: 0.85rem 1rem;
  border: 1px solid rgba(212, 116, 106, 0.55);
  color: #e8a39a;
  background: rgba(40, 18, 16, 0.65);
}

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

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

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

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

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

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

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

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

@keyframes heroFade {
  from {
    opacity: 0.4;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex;
  }

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

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

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

  .metric-row {
    grid-template-columns: 1fr;
  }
}
