/* ML Platform — premium dark + gold */
:root {
  --bg: #0c0a08;
  --bg-elevated: #15110d;
  --bg-soft: #1c1712;
  --ink: #f3ebe0;
  --ink-muted: #b8a994;
  --gold: #c9a227;
  --gold-soft: #e0c56a;
  --gold-deep: #8a6e15;
  --line: rgba(201, 162, 39, 0.22);
  --line-strong: rgba(201, 162, 39, 0.45);
  --danger: #d96a5b;
  --success: #6faf7a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 4px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Manrope", "Segoe UI", sans-serif;
  --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;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(120, 90, 30, 0.1), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
  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: var(--bg);
  padding: 0.6rem 1rem;
  font-family: var(--font-ui);
  text-decoration: none;
}

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

.inline-error {
  background: #3a1814;
  color: #ffc9c0;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--danger);
}

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  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: 1.35rem;
  height: 1.35rem;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  background:
    linear-gradient(135deg, transparent 45%, var(--gold) 45% 55%, transparent 55%),
    linear-gradient(45deg, transparent 45%, rgba(201, 162, 39, 0.35) 45% 55%, transparent 55%);
}

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

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

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
}

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

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

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
  padding: 0;
  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: -6px;
}

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

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

.section {
  padding: 5.5rem 0;
}

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

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  max-width: 38rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.9rem 1.5rem;
  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(180deg, var(--gold-soft), var(--gold));
  color: #1a1408;
  border-color: var(--gold-deep);
}

.btn-gold:hover {
  color: #0c0a08;
  background: linear-gradient(180deg, #edd78a, var(--gold-soft));
}

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

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

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

/* Hero variants */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - var(--header-h));
  max-width: none;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem 4rem clamp(1.5rem, 8vw, 7rem);
  max-width: 40rem;
  margin-left: auto;
  animation: rise 0.9s var(--ease) both;
}

.hero-copy h1 {
  margin-bottom: 0.4em;
}

.hero-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-soft);
  margin-bottom: 1.25rem;
}

.hero-visual {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  animation: fade 1.2s var(--ease) 0.15s both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 70vh;
  filter: saturate(0.85) contrast(1.05);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.55), transparent 40%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.35), transparent 35%);
}

.hero-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 235, 224, 0.75);
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s var(--ease) both;
}

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

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

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

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

.benefit {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
  animation: rise 0.8s var(--ease) both;
}

.benefit:nth-child(2) {
  animation-delay: 0.08s;
}

.benefit:nth-child(3) {
  animation-delay: 0.16s;
}

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

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
}

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

.stat span {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Course / blog tiles — interaction containers */
.tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.tile-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.tile-body {
  padding: 1.35rem 1.4rem 1.6rem;
}

.tile-body h3 {
  color: var(--ink);
  font-size: 1.35rem;
  margin-bottom: 0.4em;
}

.tile-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* Testimonials */
.quote-block {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.quote-block:last-child {
  border-bottom: 0;
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
}

.quote-block cite {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rating {
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

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

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.price-tier.is-featured {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.price-tier h3 {
  color: var(--gold-soft);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--ink);
  margin: 0.4rem 0 1rem;
}

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

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

.price-tier li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
}

.form-field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

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

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

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

.field-error {
  margin: 0.4rem 0 0;
  color: var(--danger);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.form-status {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
}

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

.form-status.is-error {
  border-color: var(--danger);
  color: #ffb4a8;
}

.form-status.is-pending {
  color: var(--ink-muted);
}

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

.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);
  vertical-align: top;
}

th {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--bg-elevated);
}

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

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

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

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

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(0.2);
}

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

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

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 42rem;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner.is-hiding {
  opacity: 0;
  transform: translateY(12px);
}

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

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

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

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

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

.footer-tag {
  max-width: 22rem;
  margin-bottom: 2rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.footer-col h3 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  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.55rem;
}

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

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

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

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

.band {
  background: linear-gradient(120deg, rgba(201, 162, 39, 0.12), transparent 55%), var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

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

.split-contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}

.media-wide {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  margin: 2rem 0;
  filter: saturate(0.8);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-strong);
}

.timeline li {
  padding: 0 0 1.75rem 1.5rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

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

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero-split,
  .grid-3,
  .price-grid,
  .footer-cols,
  .split-contact,
  .stat-row,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 48vh;
  }

  .hero-visual img {
    min-height: 48vh;
  }

  .price-tier.is-featured {
    transform: none;
  }

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

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

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

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

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

  .site-nav a {
    font-size: 1rem;
  }
}

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