:root {
  --bg: #0b0907;
  --bg-elevated: #14110e;
  --bg-soft: #1a1612;
  --ink: #f4efe6;
  --ink-muted: #b7ae9f;
  --gold: #c9a962;
  --gold-bright: #e0c57a;
  --gold-dim: #8a7340;
  --line: rgba(201, 169, 98, 0.22);
  --danger: #d9897a;
  --success: #8fbf9a;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1180px;
  --header-h: 4.5rem;
  --radius: 2px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  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(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 169, 98, 0.12), transparent 55%),
    radial-gradient(900px 500px at 95% 5%, rgba(201, 169, 98, 0.08), transparent 50%),
    linear-gradient(180deg, #100e0b 0%, var(--bg) 38%, #090807 100%);
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

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

a:hover {
  color: #f0db9c;
}

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.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }

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

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #3a1f1c;
  color: #f3d4ce;
  border-bottom: 1px solid var(--danger);
  font-size: 0.95rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 9, 7, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 9, 7, 0.92);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  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: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 3px rgba(201, 169, 98, 0.15);
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-body);
}

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

.nav-toggle-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

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

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

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

.nav-cta:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 98, 0.08);
}

/* Layout */
.shell {
  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;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  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-gold {
  background: linear-gradient(135deg, #d4b56e, #b89445);
  color: #15110c;
  border-color: #d4b56e;
}

.btn-gold:hover {
  color: #0c0a08;
  background: linear-gradient(135deg, #e0c57a, #c9a962);
}

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

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

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

/* Hero home — editorial vertical brand strip */
.hero-editorial {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  overflow: hidden;
}

@media (min-width: 960px) {
  .hero-editorial {
    grid-template-columns: 5.5rem 1fr 1.05fr;
  }
}

.hero-spine {
  display: none;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  padding: 2rem 0;
}

@media (min-width: 960px) {
  .hero-spine { display: flex; }
}

.hero-copy {
  padding: 4.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-copy .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  line-height: 0.92;
  color: var(--ink);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.hero-copy .hero-line {
  width: 4rem;
  height: 1px;
  background: var(--gold);
  margin: 0 0 1.5rem;
  animation: drawLine 1.1s ease forwards;
  transform-origin: left;
}

.hero-copy h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 500;
  max-width: 18ch;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  filter: saturate(0.85) contrast(1.05);
  animation: softZoom 18s ease-in-out infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 9, 7, 0.88), rgba(11, 9, 7, 0.15) 45%, rgba(11, 9, 7, 0.35));
}

@media (min-width: 960px) {
  .hero-visual::after {
    background: linear-gradient(90deg, rgba(11, 9, 7, 0.55), transparent 35%, rgba(11, 9, 7, 0.25));
  }
}

@keyframes softZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes drawLine {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

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

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

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

.hero-copy > * {
  animation: fadeUp 0.8s ease both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.34s; }

/* Trust strip */
.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(20, 17, 14, 0.65);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}

@media (min-width: 800px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

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

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

/* Course cards / media blocks — not generic white cards */
.course-rail {
  display: grid;
  gap: 1.75rem;
}

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

.course-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.3s ease, transform 0.35s ease;
}

.course-tile:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.course-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.6s ease;
}

.course-tile:hover img {
  transform: scale(1.05);
}

.course-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 6, 4, 0.92) 78%);
}

.course-tile-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
}

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

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

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

@media (min-width: 800px) {
  .benefit-list { grid-template-columns: 1fr 1fr; }
}

.benefit-list li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.benefit-list h3 {
  color: var(--ink);
  margin-bottom: 0.4rem;
}

/* Quote / testimonials */
.quote-block {
  border-left: 2px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.35rem;
  margin: 0 0 2rem;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: var(--ink);
  line-height: 1.35;
}

.quote-meta {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .testimonial-grid { grid-template-columns: 1.2fr 0.8fr; }
}

.testimonial-stack {
  display: grid;
  gap: 1.25rem;
}

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

.testimonial p {
  color: var(--ink-muted);
}

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

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

.page-hero.with-media {
  padding: 0;
  border: none;
}

.page-hero-media {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
}

.page-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
}

.page-hero-media .shell {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

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

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

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.price-tier {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 22, 18, 0.9), rgba(14, 12, 10, 0.95));
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-tier.is-featured {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.15), var(--shadow);
}

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

.price-tier .amount span {
  font-size: 1rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

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

.price-tier li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(201, 169, 98, 0.12);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Forms */
.form-panel {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 1.75rem;
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: #0f0d0b;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

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

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--danger);
}

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

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

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

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

.address-block p {
  margin-bottom: 0.5rem;
}

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

.blog-item {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

@media (min-width: 800px) {
  .blog-item {
    grid-template-columns: 280px 1fr;
    align-items: center;
  }
}

.blog-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.blog-item h2 {
  color: var(--ink);
  font-size: 1.85rem;
}

.article-body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

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

.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

/* FAQ */
.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;
  list-style: none;
}

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

.faq details[open] summary {
  color: var(--gold-bright);
}

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

.modules li {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .modules li {
    grid-template-columns: 5rem 1fr;
    gap: 1.25rem;
  }
}

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

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

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

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

/* Legal */
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.legal-content h2 {
  margin-top: 2.25rem;
}

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

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: #16130f;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

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

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

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

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

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  max-width: 28rem;
}

.footer-cols {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0;
}

@media (min-width: 800px) {
  .footer-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

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

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

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

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

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

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

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

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

/* Utilities */
.muted { color: var(--ink-muted); }
.gold { color: var(--gold); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.narrow { max-width: 40rem; }
.wide-media {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.cta-band {
  margin: 2rem 0 0;
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(201, 169, 98, 0.08), transparent 40%),
    var(--bg-elevated);
}

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

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

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

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

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

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

  .site-nav.is-open {
    transform: none;
  }

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

  .nav-list a {
    font-size: 1.2rem;
    font-family: var(--font-display);
  }
}
