:root {
  --accent: #A07E4B;
  --bg: #F5F1E9;
  --card: #FBF8F2;
  --ink: #1E3230;
  --muted: #5B6661;
  --faint: #76756C;
  --border: rgba(30, 50, 48, 0.12);
  --border-strong: rgba(30, 50, 48, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection { background: color-mix(in oklch, var(--accent) 20%, transparent); color: var(--ink); }

input::placeholder, textarea::placeholder { color: var(--faint); }

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

/* overflow-x: clip contains horizontal overflow WITHOUT creating a scroll
   container — unlike `hidden`, it doesn't break descendant position:sticky */
.page { background: var(--bg); min-height: 100vh; overflow-x: clip; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 600;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(24px, 6vw, 72px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(30, 50, 48, 0.05);
}
.nav__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.nav__logo-mark { display: block; max-height: 32px !important; height: auto; width: auto; max-width: 100%; flex: none; align-self: center; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); font-size: 15px; font-weight: 500; }
.nav__link { color: var(--muted); }
.nav__cta {
  display: inline-block;
  white-space: nowrap;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--card);
  font-weight: 600;
  transition: filter 0.2s ease;
}
.nav__cta:hover { filter: brightness(1.08); color: var(--card); }

/* HERO */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(80px, 13vw, 168px) clamp(24px, 6vw, 48px) clamp(72px, 10vw, 120px);
  text-align: center;
}
.hero .eyebrow { margin: 0 0 30px; font-size: 13px; letter-spacing: 0.14em; }
.hero h1 {
  font-weight: 600;
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 auto;
  max-width: 760px;
}
.hero__sub {
  max-width: 560px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  margin: 32px auto 44px;
  font-weight: 400;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--card);
  font-weight: 600;
  font-size: 16px;
  transition: filter 0.2s ease;
}
.btn-primary:hover { filter: brightness(1.08); color: var(--card); }

.btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  background: var(--card);
  transition: border-color 0.2s ease;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* LOGOS */
.logos { max-width: 1080px; margin: 0 auto; padding: 0 clamp(24px, 6vw, 48px) clamp(72px, 10vw, 110px); }
.logos p {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 30px;
  font-weight: 600;
}
.logos__row { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; opacity: 0.6; }
.logo-mark { color: #9A927F; }

/* CURRICULUM */
.curriculum { max-width: 1080px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 48px) clamp(72px, 10vw, 110px); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2, .sessions__head h2 {
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.level1-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(32px, 4vw, 56px);
  margin-bottom: 20px;
  background: var(--card);
}
.level1-card__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.level-tag { font-size: 12px; letter-spacing: 0.14em; color: var(--accent); font-weight: 700; }
.level1-card h3 { font-weight: 600; font-size: 28px; letter-spacing: -0.02em; }
.level1-card__desc { color: var(--muted); max-width: 620px; line-height: 1.65; margin: 0 0 48px; font-size: 16px; }
.level1-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: color-mix(in oklch, var(--accent) 12%, var(--card));
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.step-title { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin: 0 0 8px; }
.step-desc { color: var(--muted); font-size: 15px; line-height: 1.6; }

.levels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.level-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  padding: clamp(32px, 4vw, 48px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.level-card h3 { font-weight: 600; font-size: 28px; letter-spacing: -0.02em; margin: 10px 0 16px; }
.level-card .desc { color: var(--muted); line-height: 1.65; margin: 0 0 32px; flex: 1; font-size: 16px; }

.btn-outline-sm {
  display: inline-block;
  align-self: flex-start;
  padding: 12px 26px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  background: var(--card);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline-sm:hover { border-color: var(--accent); color: var(--accent); }

.level-card--l3 {
  border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--border));
  background: color-mix(in oklch, var(--accent) 5%, var(--card));
}
.level-card--l3 .top-row { display: flex; align-items: center; justify-content: space-between; }
.badge-invite {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}
.btn-primary-sm {
  display: inline-block;
  align-self: flex-start;
  padding: 12px 26px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--card);
  font-weight: 600;
  font-size: 15px;
  transition: filter 0.2s ease;
}
.btn-primary-sm:hover { filter: brightness(1.08); color: var(--card); }

/* SESSIONS & PRICING */
.sessions {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(72px, 10vw, 110px) clamp(24px, 6vw, 48px);
}
.sessions__inner { max-width: 1080px; margin: 0 auto; }
.sessions__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 48px; }
.sessions__head .eyebrow { margin: 0 0 16px; }
.sessions__note { color: var(--faint); font-size: 15px; font-weight: 500; }

.rows { display: flex; flex-direction: column; gap: 12px; }
.row-head {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1fr 130px;
  gap: 24px;
  align-items: center;
  padding: 0 28px 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1fr 130px;
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  transition: border-color 0.2s ease;
}
.row:hover { border-color: var(--accent); }
.row__title { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin: 0 0 4px; }
.row__meta { color: var(--faint); font-size: 14px; }

.pill { justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.pill--online { background: #EFEAE0; color: var(--muted); }
.pill--inperson { background: color-mix(in oklch, var(--accent) 12%, var(--card)); color: var(--accent); }

.price-early { font-weight: 700; font-size: 21px; color: var(--ink); }
.price-until { font-size: 12px; color: var(--faint); margin: 2px 0 0; }

.btn-row {
  text-align: center;
  padding: 11px 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--card);
  font-weight: 600;
  font-size: 14px;
  transition: filter 0.2s ease;
}
.btn-row:hover { filter: brightness(1.08); color: var(--card); }

.deposit-note { text-align: center; color: var(--faint); font-size: 14px; margin: 28px 0 0; font-weight: 500; }

/* INSTRUCTORS */
.instructors { max-width: 1080px; margin: 0 auto; padding: clamp(72px, 10vw, 110px) clamp(24px, 6vw, 48px); }
.instructor { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin-bottom: 80px; }
.instructor--reverse { grid-template-columns: 1.15fr 1fr; margin-bottom: 0; }
.instructor--reverse .instructor__text { order: 1; }
.instructor--reverse .instructor__photo { order: 2; }

.instructor__photo {
  display: block;
  width: 100%;
  max-width: 100%;
  /* replaced elements default to intrinsic-width min-size, which blows out
     the grid track on narrow viewports — min-width:0 lets it shrink to fit */
  min-width: 0;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 20px;
  /* striped fill shows as a graceful fallback until the photo loads */
  background: repeating-linear-gradient(45deg, #EAE3D5 0px, #EAE3D5 12px, #F1EBDF 12px, #F1EBDF 24px);
  border: 1px solid var(--border);
}

.instructor__role { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.instructor__name { font-weight: 600; font-size: 38px; letter-spacing: -0.03em; margin: 0 0 20px; }
.instructor__name .aka { color: var(--faint); font-size: 22px; font-weight: 400; }
.instructor__bio { color: var(--muted); line-height: 1.7; font-size: 17px; margin: 0 0 18px; }
.instructor__teaches { color: var(--faint); line-height: 1.65; font-size: 15px; }

/* APPLICATION FORM */
.apply { background: var(--card); border-top: 1px solid var(--border); padding: clamp(72px, 10vw, 110px) clamp(24px, 6vw, 48px); }
.apply__inner { max-width: 680px; margin: 0 auto; }
.apply__head { text-align: center; margin-bottom: 48px; }
.apply__head h2 { font-weight: 600; font-size: clamp(36px, 4.8vw, 56px); letter-spacing: -0.03em; margin: 0 0 16px; }
.apply__head p { color: var(--faint); font-size: 15px; font-weight: 500; }

#apply-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

select, input[type="text"], input[type="email"], input[type="url"], textarea {
  padding: 15px 18px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 16px;
  font-family: 'Manrope', sans-serif;
  outline: none;
}
select { appearance: none; }
textarea { resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); }

.checkbox-row { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); line-height: 1.6; cursor: pointer; }
.checkbox-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }

.submit-btn {
  margin-top: 12px;
  width: 100%;
  padding: 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--card);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: filter 0.2s ease;
}
.submit-btn:hover { filter: brightness(1.08); }
.submit-btn:disabled { cursor: default; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px clamp(24px, 6vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__logo { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.footer__copy { color: var(--faint); font-size: 13px; font-weight: 500; }

/* SCROLL REVEAL */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* RESPONSIVE */
@media (max-width: 560px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

@media (max-width: 720px) {
  .nav__links { gap: 14px; font-size: 14px; }
  .levels-grid { grid-template-columns: 1fr; }
  .level1-grid { grid-template-columns: 1fr; }
  .row-head { display: none; }
  .row { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .btn-row { width: fit-content; padding: 11px 22px; }
  .instructor, .instructor--reverse { grid-template-columns: 1fr; }
  .instructor--reverse .instructor__text { order: 2; }
  .instructor--reverse .instructor__photo { order: 1; }
  .field-row { grid-template-columns: 1fr; }
}
