/* ==========================================================================
   BFFI — British Fashion Foundation Institute
   Single-page launch site · bffi.ro
   Type system inspired by contemporary UK art-school sites (CSM / UCA):
   bold neo-grotesque headings + clean grotesque body, sentence case.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --void: #0D0D0D;
  --paper: #F2EDE5;
  --paper-alt: #EBE4D9;
  --ice: #C3D9EE;
  --ice-dark: #9BBCD5;
  --steel: #7F93A3;                /* muted text on DARK backgrounds (>=6:1 on void) */
  --steel-ink: #556572;            /* muted text on LIGHT backgrounds (>=4.7:1) */
  --accent-ink: #5E7C93;           /* heading accent on LIGHT backgrounds (>=3.4:1, large text) */
  --white: #FFFFFF;
  --border-light: #DDD5C5;
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Neo-grotesque system */
  --font-display: "Archivo", system-ui, -apple-system, sans-serif; /* headings, hero, titles */
  --font-heading: "Archivo", system-ui, -apple-system, sans-serif; /* section headings */
  --font-label: "Inter", system-ui, -apple-system, sans-serif;     /* eyebrows, labels, buttons */
  --font-body: "HelveticaNeueLTPro-Md", Helvetica, Arial, sans-serif; /* body copy */

  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 104px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--void);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 120px 0; }
.section--paper { background: var(--paper); }
.section--paper-alt { background: var(--paper-alt); }
.section--void { background: var(--void); color: var(--paper); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin-bottom: 28px;
}
.eyebrow--ice { color: var(--ice); }

.section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.8vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 16em;
  margin-bottom: 40px;
}
.section-heading em {
  font-style: normal;
  color: var(--accent-ink);
}
.section-heading--light { color: var(--white); }
.section-heading--light em { color: var(--ice); }

.section-subheading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.01em;
  color: var(--steel-ink);
  margin: -24px 0 40px;
}

.section-intro {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
  max-width: 44em;
  margin-bottom: 56px;
  color: rgba(13, 13, 13, 0.8);
}
.section-intro--light { color: var(--ice); }

.prose p:not(.prose-lead) { margin-bottom: 1.3em; max-width: 40em; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; }
.prose p:last-child { margin-bottom: 0; }
.prose-lead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--void);
  margin-bottom: 1.3em;
  max-width: 40em;
}
.prose-closing { margin-top: 40px; font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 17px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.btn--primary {
  background: var(--ice);
  color: var(--void);
  border-color: var(--ice);
}
.btn--primary:hover { background: var(--ice-dark); border-color: var(--ice-dark); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { border-color: var(--ice); color: var(--ice); }
.btn--dark {
  background: var(--void);
  color: var(--paper);
  border-color: var(--void);
}
.btn--dark:hover { background: #2a2a2a; }
.btn--ghost-dark {
  background: transparent;
  color: var(--void);
  border-color: rgba(13, 13, 13, 0.35);
}
.btn--ghost-dark:hover { border-color: var(--void); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--ice-dark);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--void);
  border-bottom: 1px solid var(--border-dark);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo { display: flex; align-items: center; }
.header-logo img { width: auto; height: 72px; }

.header-nav {
  display: flex;
  gap: 34px;
}
.header-nav a {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.header-nav a:hover { color: var(--ice); border-bottom-color: var(--ice); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  margin: 5px 0;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--void);
  color: var(--paper);
  padding: 100px 0 120px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 30px;
}
.hero-headline em {
  font-style: normal;
  color: var(--ice);
}
.hero-sub {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.6;
  color: rgba(242, 237, 229, 0.85);
  max-width: 34em;
  margin-bottom: 44px;
}
.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin-bottom: 24px;
}
.hero-actions .btn { width: 100%; }
.hero-meta {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

/* ---------- What BFFI Is ---------- */
.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: start;
}
.pull-quote {
  border-left: 2px solid var(--ice-dark);
  padding-left: 32px;
  position: sticky;
  top: calc(var(--header-h) + 48px);
}
.pull-quote p {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ---------- Educators (circular floating avatars, text under) ---------- */
.educators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 8px;
}
.educator {
  display: flex;
  flex-direction: column;
}
.educator-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-alt);
  box-shadow: 0 18px 38px rgba(13, 13, 13, 0.22);
  margin-bottom: 28px;
}
.educator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.educator-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.educator-role {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin-bottom: 26px;
}
.educator-body p:not(.educator-subhead) { margin-bottom: 1.15em; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; }
.educator-subhead {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--void);
  margin: 26px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}
.educator-list { margin-bottom: 6px; }
.educator-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 1rem;
  line-height: 1.5;
}
.educator-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 12px;
  height: 1px;
  background: var(--ice-dark);
}
.educators-closing {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
  max-width: 42em;
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--void);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
  padding: 22px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}
.ticker-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ice);
  white-space: nowrap;
  padding-right: 12px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Courses (floating gradient cards on light bg) ---------- */
.courses-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel-ink);
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  margin-bottom: 32px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 30px 28px 28px;
  border-radius: 22px;
  background: linear-gradient(155deg, #2a3b49 0%, #16202a 55%, #0D0D0D 100%);
  color: var(--paper);
  border: 1px solid rgba(195, 217, 238, 0.16);
  box-shadow: 0 16px 38px rgba(13, 13, 13, 0.18);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(13, 13, 13, 0.3);
}
.course-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.course-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ice);
  background: rgba(195, 217, 238, 0.12);
  border: 1px solid rgba(195, 217, 238, 0.3);
}
.course-pill {
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  border: 1px solid rgba(195, 217, 238, 0.32);
  border-radius: 999px;
  padding: 7px 14px;
}
.course-arrow {
  margin-left: auto;
  color: var(--ice);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 200ms ease;
}
.course-card:hover .course-arrow { transform: translate(3px, -3px); }
.course-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 14px;
}
.course-title-alt { color: var(--steel); font-weight: 600; }
.course-excerpt {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(242, 237, 229, 0.78);
  margin-bottom: 22px;
  flex-grow: 1;
}
.course-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.course-metas span {
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(195, 217, 238, 0.09);
  border-radius: 999px;
  padding: 6px 12px;
}
.course-more {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  margin-top: auto;
}

/* Flagship — full-width, horizontal, ice-forward gradient */
.course-card--flagship {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  min-height: auto;
  padding: 44px;
  background: linear-gradient(135deg, #3d5670 0%, #21303e 48%, #0D0D0D 100%);
  border-color: rgba(195, 217, 238, 0.4);
}
.flagship-main { flex: 1 1 60%; }
.flagship-side {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  border-left: 1px solid rgba(195, 217, 238, 0.2);
  padding-left: 48px;
}
.course-flag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--ice);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 20px;
}
.course-card--flagship .course-title { font-size: 2.2rem; margin-bottom: 16px; }
.course-card--flagship .course-excerpt { margin-bottom: 0; max-width: 34em; }
.course-card--flagship .course-metas { flex-direction: column; align-items: flex-start; margin-bottom: 8px; }

.courses-cta { margin-top: 56px; text-align: center; }
.enrol-form-wrap {
  max-width: 720px;
  margin: 44px auto 0;
  text-align: left;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 40px;
  background: var(--white);
}

/* ---------- Forms ---------- */
/* Forms that sit bare beneath body copy (e.g. Founding Patrons) need their
   own breathing room; forms nested in a bordered/padded box or under their
   own heading already have separation from the box/heading itself. */
.prose + .capture-form { margin-top: 40px; }

.capture-form label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin-bottom: 20px;
}
.capture-form input[type="text"],
.capture-form input[type="email"],
.capture-form input[type="tel"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--void);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}
.capture-form--dark input[type="text"],
.capture-form--dark input[type="email"],
.capture-form--dark input[type="tel"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-dark);
  color: var(--white);
}

.form-row--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 20px;
}

.form-checklist {
  border: none;
  margin: 8px 0 32px;
}
.form-checklist legend {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin-bottom: 16px;
  padding: 0;
}
.form-checklist label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  margin-bottom: 10px;
  cursor: pointer;
}
.form-checklist input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ice-dark);
  flex-shrink: 0;
  transform: translateY(2px);
}

.form-reassurance {
  font-size: 0.95rem;
  color: var(--steel-ink);
  margin-top: 20px;
  max-width: 36em;
}

/* Dark-form (waitlist on void) keeps the on-dark steel so labels stay legible */
.capture-form--dark .form-row label,
.capture-form--dark .form-checklist legend,
.capture-form--dark .form-reassurance { color: var(--steel); }

.form-confirm {
  padding: 32px 0 8px;
  font-size: 1.2rem;
}
.form-confirm p { margin-bottom: 12px; }
.form-confirm-secondary {
  font-family: var(--font-label);
  font-size: 0.85rem;
}
.form-confirm-secondary a { color: var(--steel-ink); }

/* ---------- Lead magnet · Fashion Discovery Companion ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}
.guide-media {
  margin: 0;
  max-width: 480px;
}
.guide-media img {
  width: 100%;
  /* transparent PNG/WebP: drop-shadow follows the alpha silhouette
     instead of a rectangular box-shadow, so no card outline shows */
  filter: drop-shadow(0 16px 30px rgba(13, 13, 13, 0.22));
  transition: transform 200ms ease, filter 200ms ease;
}
.guide-media img:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 28px 46px rgba(13, 13, 13, 0.32));
}
.guide-hook {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  letter-spacing: -0.015em;
  color: var(--accent-ink);
  max-width: 26em;
  margin: 28px 0 36px;
}

/* ---------- Tutorials media ---------- */
.tutorial-media {
  margin: 0 0 48px;
}
.tutorial-media img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 16px;
}

/* ---------- Research trips ---------- */
.research-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
  margin-bottom: 72px;
}
.research-media img { width: 100%; border-radius: 14px; }
.research-media figcaption {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-ink);
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border-light);
}

.itinerary-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.itinerary-list { max-width: 52em; margin-bottom: 56px; }
.itinerary-list li {
  padding: 20px 0 20px 34px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.55;
}
.itinerary-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 30px;
  width: 14px;
  height: 1px;
  background: var(--steel);
}
.itinerary-list strong { font-weight: 600; }

.itinerary-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.itinerary-facts dt,
.facts-inline dt {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin-bottom: 8px;
}
.itinerary-facts dd,
.facts-inline dd { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; }

.itinerary-who { max-width: 48em; margin-bottom: 40px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; }

/* ---------- Tutorials ---------- */
.facts-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 48px 0 72px;
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.steps-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-bottom: 72px;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px 30px;
}
.step-num {
  display: block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin-bottom: 16px;
}
.steps h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.step-note { color: var(--steel-ink); font-size: 1rem; font-weight: 400; }
.steps p { font-size: 1.02rem; line-height: 1.55; }

.tutorials-outcome { max-width: 44em; margin-bottom: 48px; }
.tutorials-outcome h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.tutorials-outcome p { margin-bottom: 16px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; }
.tutorials-practical { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; color: rgba(13, 13, 13, 0.75); }
.tutorials-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Destinations ---------- */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.destination {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px 30px;
}
.destination h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.destination p { font-size: 1.02rem; line-height: 1.55; }

/* ---------- Waitlist ---------- */
.coming-list { margin-bottom: 72px; }
.coming-list li {
  padding: 22px 0 22px 34px;
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  font-size: 1.15rem;
}
.coming-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 32px;
  width: 14px;
  height: 1px;
  background: var(--ice);
}
.coming-list strong { font-weight: 600; color: var(--white); }

.waitlist-form-block {
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 48px;
}
.waitlist-form-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--void);
  color: var(--paper);
  padding: 88px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand img { width: auto; height: 50px; margin-bottom: 22px; }
.footer-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ice);
  max-width: 18em;
}
.footer-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}
.footer-col p:not(.footer-label) { margin-bottom: 8px; font-size: 1.02rem; }
.footer-col a { text-decoration: none; border-bottom: 1px solid var(--steel); transition: border-color 200ms ease, color 200ms ease; }
.footer-col a:hover { color: var(--ice); border-bottom-color: var(--ice); }
.footer-link-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 1.02rem;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid var(--steel);
  transition: border-color 200ms ease, color 200ms ease;
}
.footer-link-btn:hover { color: var(--ice); border-bottom-color: var(--ice); }
.footer-anpc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border-dark);
}
.footer-anpc img { opacity: 0.92; transition: opacity 200ms ease; }
.footer-anpc a:hover img { opacity: 1; }
.footer-legal {
  padding-top: 24px;
  font-family: var(--font-label);
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--steel);
  max-width: 74em;
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 150;
  width: min(420px, calc(100vw - 48px));
  background: var(--void);
  color: var(--paper);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 50px rgba(13, 13, 13, 0.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 12px;
}
.cookie-banner-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(242, 237, 229, 0.85);
  margin-bottom: 8px;
}
.cookie-banner-text a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid var(--ice-dark);
}
.cookie-banner-text a:hover { color: var(--white); }

.cookie-prefs {
  margin: 18px 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border-dark);
}
.cookie-prefs[hidden] { display: none; }
.cookie-pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.cookie-pref-row + .cookie-pref-row { border-top: 1px solid var(--border-dark); }
.cookie-pref-copy { flex: 1; }
.cookie-pref-name {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.cookie-pref-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--steel);
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.cookie-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  transition: background-color 200ms ease;
  pointer-events: none;
}
.cookie-toggle-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 200ms ease;
}
.cookie-toggle input:checked ~ .cookie-toggle-track { background: var(--ice-dark); }
.cookie-toggle input:checked ~ .cookie-toggle-track::before { transform: translateX(18px); background: var(--void); }
.cookie-toggle input:disabled ~ .cookie-toggle-track { background: rgba(255, 255, 255, 0.08); cursor: not-allowed; }
.cookie-toggle input:focus-visible ~ .cookie-toggle-track { outline: 2px solid var(--ice-dark); outline-offset: 2px; }

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.cookie-banner-actions .btn { flex: 1 1 auto; padding: 13px 18px; font-size: 0.72rem; }
.cookie-banner-link-row { margin-top: 14px; text-align: center; }
.cookie-banner-manage-toggle {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-banner-manage-toggle:hover { color: var(--ice); }

@media (max-width: 520px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 22px 20px 20px; }
}

/* ---------- Password gate (temporary preview gate — not real security) ---------- */
/* Real content is hidden until the gate is passed; the check for an
   already-open session runs inline in <head> so there's no flash of
   real content before this stylesheet or main.js load. */
html:not(.gate-passed) .site-content { display: none; }
html.gate-passed .gate-overlay { display: none; }

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.gate-logo {
  width: auto;
  height: 48px;
  margin: 0 auto 48px;
}
.gate-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
}
.gate-input {
  display: block;
  width: 100%;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
}
.gate-input::placeholder { color: var(--steel); }
.gate-submit { width: 100%; }
.gate-error {
  margin-top: 18px;
  font-family: var(--font-label);
  font-size: 0.82rem;
  color: var(--ice-dark);
}
.gate-error[hidden] { display: none; }

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.8);
}
.modal-panel {
  position: relative;
  background: var(--paper);
  color: var(--void);
  max-width: 640px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 20px;
  padding: 56px 48px 48px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--void);
  cursor: pointer;
  padding: 8px;
}
.modal-close:hover { color: var(--steel); }
.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.modal-flag { margin-bottom: 18px; }
.modal-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 28px;
}
.modal-facts dt {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin-bottom: 6px;
}
.modal-facts dd { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.modal-desc { font-size: 1.15rem; line-height: 1.6; margin-bottom: 36px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.modal .btn--ghost { color: var(--void); border-color: rgba(13, 13, 13, 0.35); }
.modal .btn--ghost:hover { border-color: var(--void); color: var(--void); }
.modal .capture-form { margin-top: 8px; }

body.modal-open { overflow: hidden; }

/* ---------- Legal page ---------- */
.legal-main { padding: 96px 0 120px; }
.legal-back {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 36px;
}
.legal-back:hover { color: var(--void); }
.legal-disclaimer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--steel-ink);
  line-height: 1.7;
}
.name-list { margin-top: 48px; }
.name-list-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.name-list ul li {
  padding: 20px 0 20px 34px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  max-width: 46em;
}
.name-list ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 30px;
  width: 14px;
  height: 1px;
  background: var(--steel);
}
.name-list strong { font-weight: 600; }

/* ---------- Legal / policy pages (Privacy, Cookie) ---------- */
.legal-updated {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-ink);
  margin: -16px 0 48px;
}
.legal-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}
.legal-section:first-of-type { margin-top: 64px; }
.legal-section-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.legal-flag {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px dashed var(--accent-ink);
  border-radius: 12px;
  background: rgba(94, 124, 147, 0.06);
}
.legal-flag p {
  margin: 0;
  font-size: 1rem;
  color: var(--void);
}
.legal-flag p:first-child {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.legal-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 8px 0 0;
}
.legal-badges img { max-width: 220px; height: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 80px 0; }

  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }

  .prose-grid { grid-template-columns: 1fr; gap: 44px; }
  .pull-quote { position: static; }

  .educators-grid { grid-template-columns: 1fr; gap: 56px; }

  .courses-grid { grid-template-columns: 1fr 1fr; }
  .course-card--flagship { flex-direction: column; align-items: flex-start; gap: 28px; padding: 36px; }
  .flagship-side { border-left: none; border-top: 1px solid rgba(195,217,238,0.2); padding-left: 0; padding-top: 28px; width: 100%; }

  .research-grid { grid-template-columns: 1fr; gap: 44px; }
  .research-media { order: -1; }

  .guide-grid { grid-template-columns: 1fr; gap: 44px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Collapse nav to hamburger before the wider logo crowds the links */
@media (max-width: 900px) {
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--void);
    border-bottom: 1px solid var(--border-dark);
    padding: 8px 24px 24px;
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { padding: 16px 0; border-bottom: 1px solid var(--border-dark); }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  body { font-size: 1.02rem; }

  .header-logo img { height: 50px; }

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

  .enrol-form-wrap { padding: 28px 20px; }
  .waitlist-form-block { padding: 32px 24px; }
  .modal-panel { padding: 48px 24px 32px; }

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

  .hero-actions { grid-template-columns: 1fr; }
  .tutorials-actions .btn { width: 100%; }
}
