:root {
  --ink: #0b0b0c;
  --ink-soft: #1a1a1d;
  --paper: #f7f5f1;
  --bg: #ffffff;
  --muted: #5c5c61;
  --muted-2: #8a8a90;
  --line: rgba(11, 11, 12, 0.14);
  --line-soft: rgba(11, 11, 12, 0.08);
  --accent: #2563eb;
  --on-dark: #f4f3ef;
  --on-dark-muted: rgba(244, 243, 239, 0.66);
  --shadow: 0 30px 80px rgba(11, 11, 12, 0.16);
  --shadow-soft: 0 16px 44px rgba(11, 11, 12, 0.1);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.serif {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.shell {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-lockup img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

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

/* keep the in-menu Join button's label white (override .nav-links a color) */
.nav-links a.button {
  color: #fff;
}
.nav-links a.button:hover {
  color: #fff;
}

/* ---------- Buttons ---------- */
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(244, 243, 239, 0.4);
}

.button.light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.button.full {
  width: 100%;
  min-height: 56px;
  font-size: 1rem;
}

.button.sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}

/* ---------- Generic typography ---------- */
.eyebrow {
  display: inline-block;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.display {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

h1.display {
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  margin-bottom: 22px;
}

h1.display em {
  font-style: italic;
}

h2.display {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.section {
  padding: clamp(44px, 6vw, 84px) 0;
}

.section.paper {
  background: var(--paper);
}

.section.dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.section.dark .lede {
  color: var(--on-dark-muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 76px);
  background: var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.hero .lede {
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  min-height: 380px;
}

.hero-media .art-student {
  position: relative;
  z-index: 2;
  width: min(78%, 360px);
  margin-left: auto;
  filter: drop-shadow(0 24px 40px rgba(11, 11, 12, 0.18));
}

.hero-media .art-arm {
  position: absolute;
  left: -6%;
  bottom: 4%;
  width: min(46%, 210px);
  z-index: 3;
  filter: drop-shadow(0 18px 30px rgba(11, 11, 12, 0.2));
}

.hero-media .art-drone {
  position: absolute;
  right: 2%;
  top: -2%;
  width: min(40%, 180px);
  z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(11, 11, 12, 0.16));
}

/* ---------- Institutions strip ---------- */
.institutions {
  padding: 52px 0;
  background: #fff;
  border-top: 1px solid var(--line-soft);
}

.institutions p {
  text-align: center;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 26px;
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.logo-tile {
  display: grid;
  place-items: center;
  padding: 0 26px;
}

.logo-tile img {
  height: 48px;
  width: auto;
  object-fit: contain;
  /* drops the white backgrounds baked into the JPEG/WebP logos so they sit
     container-less on the cream strip while keeping their colours */
  mix-blend-mode: multiply;
}

/* Wigwe ships as a gold-on-green brand lockup; keep its real background
   (no multiply) and round its corners so it reads as a clean brand chip. */
.logo-tile.dark img {
  mix-blend-mode: normal;
  border-radius: 10px;
}

/* ---------- Philosophy / value grid ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.value h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.value p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Pillars ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: clamp(22px, 3vw, 32px);
}

.section.paper .card {
  background: #fff;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

/* ---------- Journey (dark) ---------- */
.journey {
  display: grid;
  gap: 16px;
}

.step {
  border: 1px solid rgba(244, 243, 239, 0.16);
  border-radius: 16px;
  background: rgba(244, 243, 239, 0.03);
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
}

.step .num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--on-dark-muted);
}

.step h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--on-dark-muted);
  margin: 0 0 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(244, 243, 239, 0.24);
  border-radius: 999px;
  padding: 5px 13px;
  color: var(--on-dark-muted);
}

/* ---------- Academy / course feature ---------- */
.course-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 28px 0;
}

.course-meta div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.course-meta div:last-child {
  border-right: 0;
}

.course-meta strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
}

.course-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.course-card .badge {
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-card .badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36d399;
  box-shadow: 0 0 0 4px rgba(54, 211, 153, 0.22);
}

.course-card-body {
  padding: 26px 24px;
}

.module-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.module-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.module-list li span {
  color: var(--muted-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.module-list li.more {
  display: block;
  color: var(--muted);
  border-bottom: 0;
  padding-top: 12px;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.price-tag .amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.price-tag .note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Instructors ---------- */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.instructor {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
}

.instructor img {
  width: 104px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
}

.instructor h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.instructor .role {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.instructor p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.phase .when {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 243, 239, 0.2);
}

.phase p {
  color: var(--on-dark-muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Final CTA ---------- */
.cta-band {
  text-align: center;
  border-radius: 24px;
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(44px, 7vw, 84px) clamp(24px, 5vw, 60px);
}

.cta-band h2 {
  margin: 0 auto 16px;
  max-width: 18ch;
}

.cta-band .lede {
  margin: 0 auto 28px;
  color: var(--on-dark-muted);
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-row img {
  height: 30px;
  width: auto;
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.copyright {
  margin: 24px 0 0;
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* ---------- Enroll / checkout page ---------- */
body.enroll {
  background: var(--ink);
  color: var(--on-dark);
}

.enroll-shell {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.enroll-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  padding: 40px 0 90px;
}

.enroll-copy {
  padding-top: clamp(20px, 5vh, 60px);
}

.enroll-copy .brand-lockup {
  margin-bottom: 44px;
}

.enroll-copy .brand-lockup img {
  height: 30px;
  filter: brightness(0) invert(1);
}

.enroll-copy .eyebrow {
  color: rgba(244, 243, 239, 0.6);
}

.enroll-copy h1 {
  color: #fff;
}

.enroll-copy .lede {
  color: var(--on-dark-muted);
}

.enroll-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.enroll-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  color: var(--on-dark-muted);
}

.enroll-list li::before {
  content: "→";
  color: #fff;
}

.checkout-panel {
  border: 1px solid rgba(244, 243, 239, 0.18);
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.checkout-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.checkout-panel > p {
  color: var(--muted);
  font-size: 0.94rem;
}

.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0;
}

.price {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 0.95;
}

.currency-select,
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.7rem 0.9rem;
  font: inherit;
  border-radius: 10px;
}

.currency-select {
  max-width: 230px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.method-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

.field-error,
.form-status {
  min-height: 1.1em;
  color: #c0392b;
  font-size: 0.84rem;
  font-weight: 600;
}

.payment-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

.method-button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 1rem;
  text-align: left;
  cursor: pointer;
}

.method-button strong,
.method-button span {
  display: block;
}

.method-button span {
  color: var(--muted);
  font-size: 0.82rem;
}

.method-button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.method-button[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.7);
}

.success-card {
  min-height: 78vh;
  display: grid;
  align-content: center;
  text-align: center;
  padding: 80px 0;
}

.success-card .panel {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(244, 243, 239, 0.2);
  border-radius: 20px;
  padding: clamp(30px, 5vw, 56px);
}

.success-card .brand-lockup {
  justify-content: center;
  margin-bottom: 30px;
}

.success-card .brand-lockup img {
  filter: brightness(0) invert(1);
  height: 30px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .course-feature,
  .enroll-hero {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-media {
    min-height: 320px;
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .value-grid,
  .cards,
  .roadmap,
  .course-meta,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .course-meta div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .course-meta div:last-child {
    border-bottom: 0;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

/* ---------- Logo marquee (auto carousel) ---------- */
.logo-marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: logo-scroll 36s linear infinite;
}
.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Mobile nav ---------- */
.nav-burger { display: none; }
.nav-join-mobile { display: none; }

@media (max-width: 640px) {
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  .nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-actions { display: none; }
  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 18px 18px;
    box-shadow: var(--shadow-soft);
    z-index: 40;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 11px 0; font-size: 1.02rem; }
  .nav-join-mobile { display: inline-flex; margin-top: 10px; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
