/* =========================================================
   Teepee Tuition · brand-register marketing site
   Color strategy: Committed. Indigo ~40%, peach ~12%, warm cream ground.
   ========================================================= */

:root {
  /* OKLCH-derived palette, all neutrals tinted toward indigo (hue 280) */
  --indigo-900: oklch(0.22 0.07 280);
  --indigo-700: oklch(0.36 0.13 280);
  --indigo-600: oklch(0.45 0.15 280);   /* brand primary  ≈ #4F4FA8 */
  --indigo-500: oklch(0.55 0.13 280);
  --indigo-300: oklch(0.78 0.06 280);
  --indigo-100: oklch(0.93 0.022 280);
  --indigo-050: oklch(0.965 0.012 280);

  --peach-700: oklch(0.62 0.13 50);
  --peach-600: oklch(0.72 0.13 50);
  --peach-500: oklch(0.79 0.12 50);     /* brand accent ≈ #F5A878 */
  --peach-300: oklch(0.87 0.07 55);
  --peach-100: oklch(0.95 0.035 60);
  --peach-050: oklch(0.98 0.018 65);

  --ink:       oklch(0.22 0.05 280);
  --ink-muted: oklch(0.45 0.04 280);
  --ink-faint: oklch(0.60 0.03 280);

  --paper:     oklch(0.985 0.008 280);
  --paper-2:   oklch(0.97 0.012 280);
  --paper-3:   oklch(0.94 0.018 280);

  --rule:      oklch(0.85 0.025 280);
  --rule-soft: oklch(0.90 0.018 280);

  /* type */
  --serif: "Fraunces", "Source Serif Pro", Cambria, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  /* scale (responsive via clamp) */
  --fs-display: clamp(3rem, 7.4vw, 6.5rem);
  --fs-display-2: clamp(2.25rem, 4.4vw, 3.75rem);
  --fs-h3: clamp(1.35rem, 1.8vw, 1.65rem);
  --fs-lede: clamp(1.125rem, 1.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.78rem;

  /* layout */
  --wrap-max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-color: var(--peach-500); text-underline-offset: 3px; }

/* utility */
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--indigo-600); color: var(--paper);
  padding: 0.75rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; z-index: 100; }

::selection { background: var(--peach-300); color: var(--ink); }

/* =========================================================
   Typography
   ========================================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--indigo-600);
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow.on-dark { color: var(--peach-300); }
.eyebrow .dot {
  width: 0.55rem; height: 0.55rem; border-radius: 999px;
  background: var(--peach-500);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--peach-500) 22%, transparent);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

.display, .display-2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
  margin: 0 0 1.25rem;
}
.display {
  font-size: var(--fs-display);
  line-height: 0.96;
}
.display em {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: var(--peach-700);
}
.display-2 {
  font-size: var(--fs-display-2);
  line-height: 1.05;
}
.display-2.on-dark { color: var(--paper); }
.display-2 .muted { color: var(--peach-300); font-style: italic; font-weight: 400; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 2rem;
}
.lede.on-dark { color: color-mix(in oklab, var(--paper) 88%, var(--peach-300)); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.site-header.scrolled {
  border-bottom-color: var(--rule-soft);
  background: color-mix(in oklab, var(--paper) 94%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--indigo-600);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: auto;
}
/* Horizontal logo lockup (Teepee Tuition Logo-01). Natural aspect 563x337,
   content has tight margins already so a plain img works without cropping. */
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
}

.nav { display: flex; gap: 1.75rem; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 160ms var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px;
  height: 2px;
  background: var(--peach-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms var(--ease-out-strong);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms var(--ease-out-strong),
              background 180ms var(--ease-out),
              color 180ms var(--ease-out),
              box-shadow 200ms var(--ease-out);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--indigo-600);
  color: var(--paper);
  box-shadow: 0 1px 0 oklch(0.30 0.13 280),
              0 8px 22px -10px oklch(0.30 0.13 280 / 0.55);
}
.btn-primary:hover {
  background: var(--indigo-700);
  box-shadow: 0 1px 0 oklch(0.25 0.12 280),
              0 14px 28px -12px oklch(0.30 0.13 280 / 0.65);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--peach-500);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.btn-ghost:hover { color: var(--indigo-600); }
.btn-ghost:focus-visible { outline: 2px solid var(--indigo-600); outline-offset: 3px; border-radius: 4px; }

.btn-lg { padding: 1.05rem 1.6rem; font-size: 1rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 9vw, 7rem);
  background:
    radial-gradient(1100px 600px at 92% -10%, var(--peach-100) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 90%, var(--indigo-100) 0%, transparent 55%),
    var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy { max-width: 38rem; }

.hero-ctas {
  display: flex;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
}
.hero-facts > div { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-facts dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}
.hero-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink);
}
.hero-facts dd .plus {
  color: var(--peach-700);
  font-style: italic;
}
.hero-facts dd .muted-fact {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  display: inline-block;
  margin-top: 0.25rem;
}
.nowrap { white-space: nowrap; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.teepee-art {
  width: min(100%, 460px);
  height: auto;
  filter: drop-shadow(0 18px 30px oklch(0.4 0.1 280 / 0.10));
  animation: floaty 9s var(--ease-out) infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  color: var(--indigo-300);
  opacity: 0.55;
  pointer-events: none;
}
.wave svg { width: 100%; height: 28px; display: block; }

/* =========================================================
   Section heads (shared)
   ========================================================= */
.section-head {
  max-width: 38rem;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.section-note {
  margin: 0.8rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================================================
   Approach
   ========================================================= */
.approach {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--paper);
}
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  counter-reset: pillar;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  position: relative;
}
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--peach-700);
  letter-spacing: 0.04em;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.pillar p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* =========================================================
   Subjects
   ========================================================= */
.subjects {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--rule-soft);
}
.levels {
  list-style: none;
  margin: 0;
  padding: 0;
}
.level {
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.level:last-child { border-bottom: 1px solid var(--rule); }
.level-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.level-num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--peach-700);
  letter-spacing: -0.01em;
  line-height: 1;
}
.level-num .sep {
  color: var(--indigo-300);
  margin: 0 0.15rem;
  font-style: italic;
}
.level-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin: 0;
  color: var(--ink);
  line-height: 1;
}
.subject-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
}
.subject-list li {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.subject-list li.prep {
  background: transparent;
  border-color: transparent;
  color: var(--ink-faint);
  font-style: italic;
  font-weight: 400;
  padding-left: 0.4rem;
}
.subject-list li.prep::before {
  content: "→ ";
  color: var(--peach-700);
  font-style: normal;
}

/* =========================================================
   About
   ========================================================= */
.about {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--paper);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-photo { position: sticky; top: 6rem; }
.photo-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: linear-gradient(160deg, var(--indigo-100), var(--peach-100));
  box-shadow: 0 24px 50px -28px oklch(0.30 0.13 280 / 0.28);
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.photo-caption {
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--indigo-700);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.about-copy p { color: var(--ink-muted); max-width: 60ch; }
.about-copy .lede { color: var(--ink); }
.creds {
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
}
.creds dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
}
.creds dd {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* =========================================================
   Stories / Testimonials (magazine layout)
   ========================================================= */
.stories {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule-soft);
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.quote {
  margin: 0;
  padding: 1.85rem 1.85rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: transform 360ms var(--ease-out-strong), box-shadow 360ms var(--ease-out-strong);
}
.q-5 { grid-column: span 5; }
.q-7 { grid-column: span 7; }
.q-12 { grid-column: span 12; }
.quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px oklch(0.30 0.13 280 / 0.30);
}
.quote::before {
  content: "“";
  position: absolute;
  top: 0.2rem;
  left: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--peach-500);
  opacity: 0.5;
}
.quote blockquote { margin: 0; padding-top: 1.5rem; }
.quote blockquote p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
}
.quote .who {
  font-weight: 600;
  color: var(--ink);
}
.quote .role {
  color: var(--ink-faint);
  margin-top: 0.1rem;
}
.q-7 blockquote p { font-size: 1.35rem; }
.quote-wide blockquote p { font-size: 1.5rem; max-width: 52ch; }
.quote-wide { padding: 2.2rem 2.4rem 2rem; }

.quote-peach {
  background: linear-gradient(170deg, var(--peach-050), var(--peach-100));
  border-color: var(--peach-300);
}
.quote-peach::before { color: var(--indigo-600); opacity: 0.4; }

/* =========================================================
   FAQ (accordion, editorial)
   ========================================================= */
.faq {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule-soft);
}
.faq-list {
  max-width: 48rem;
  margin: 0;
}
.faq-item {
  border-top: 1px solid var(--rule);
}
.faq-item:last-of-type {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.6rem 0.25rem 1.6rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 2px;
  background: var(--indigo-600);
  transform: translate(-50%, -50%);
  transition: transform 280ms var(--ease-out-strong), opacity 200ms var(--ease-out);
  border-radius: 1px;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq-item:hover .faq-q { color: var(--indigo-700); }

.faq-a {
  padding: 0 0 1.6rem;
  max-width: 44rem;
}
.faq-a p {
  margin: 0 0 0.9rem;
  color: var(--ink-muted);
  line-height: 1.65;
}
.faq-a p:last-child { margin-bottom: 0; }

.faq-rates {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: grid;
  gap: 0.5rem;
  max-width: 28rem;
}
.faq-rates li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--rule-soft);
}
.faq-rates li:last-child { border-bottom: 0; }
.faq-level {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.faq-price {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--indigo-700);
  white-space: nowrap;
}

/* Smooth open animation where supported */
@supports (interpolate-size: allow-keywords) {
  .faq-item {
    interpolate-size: allow-keywords;
  }
  .faq-item::details-content {
    overflow: hidden;
    height: 0;
    transition: height 320ms var(--ease-out-strong), content-visibility 320ms allow-discrete;
  }
  .faq-item[open]::details-content {
    height: auto;
  }
}

/* =========================================================
   Waitlist (dark indigo block)
   ========================================================= */
.waitlist {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background:
    radial-gradient(900px 500px at 90% 10%, oklch(0.50 0.16 280) 0%, transparent 55%),
    radial-gradient(700px 400px at 0% 100%, oklch(0.38 0.14 280) 0%, transparent 55%),
    var(--indigo-600);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.waitlist::before {
  /* faint repeating zigzag texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'><path d='M0 28 L10 18 L20 28 L30 18 L40 28 L50 18 L60 28 L70 18 L80 28 L90 18 L100 28 L110 18 L120 28' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.4'/></svg>");
  background-size: 120px 40px;
  opacity: 0.9;
  pointer-events: none;
}
.waitlist-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.waitlist-bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.waitlist-bullets li {
  position: relative;
  padding-left: 1.75rem;
  color: color-mix(in oklab, var(--paper) 90%, var(--peach-300));
  font-size: 1.02rem;
}
.waitlist-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--peach-500);
  box-shadow: 0 0 0 4px oklch(0.79 0.12 50 / 0.18);
}

.waitlist-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow:
    0 1px 0 oklch(0.30 0.13 280 / 0.10),
    0 30px 60px -35px oklch(0.30 0.13 280 / 0.60);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }

.field label,
.field legend {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0;
}
.field .optional {
  font-weight: 400;
  color: var(--ink-faint);
  font-style: italic;
  margin-left: 0.25rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.5; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--indigo-300); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo-600);
  background: var(--paper);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--indigo-600) 18%, transparent);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%234F4FA8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}

fieldset.field {
  border: none;
  margin: 0;
  padding: 0;
}
.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  padding: 0.4rem 0 0;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  transition: background 140ms var(--ease-out);
}
.checks label:hover { background: var(--paper-2); }
.checks input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05rem; height: 1.05rem;
  border-radius: 5px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 140ms var(--ease-out), background 140ms var(--ease-out);
}
.checks input[type="checkbox"]::before {
  content: "";
  width: 0.55rem; height: 0.55rem;
  background: var(--paper);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 20%, 84% 6%, 38% 70%);
  transform: scale(0);
  transition: transform 140ms var(--ease-out);
}
.checks input[type="checkbox"]:checked {
  background: var(--indigo-600);
  border-color: var(--indigo-600);
}
.checks input[type="checkbox"]:checked::before { transform: scale(1); }
.checks input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--peach-500);
  outline-offset: 2px;
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.form-foot .btn { align-self: flex-start; }
.form-hint {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0;
  max-width: 40ch;
  line-height: 1.45;
}

.btn-spinner {
  display: none;
  width: 1rem; height: 1rem;
  border-radius: 999px;
  border: 2px solid color-mix(in oklab, var(--paper) 50%, transparent);
  border-top-color: var(--paper);
  animation: spin 0.7s linear infinite;
}
.btn[data-busy="true"] .btn-spinner { display: inline-block; }
.btn[data-busy="true"] .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-msg {
  grid-column: 1 / -1;
  padding: 0.95rem 1.1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-msg-ok {
  background: color-mix(in oklab, var(--peach-100) 70%, var(--paper));
  border: 1px solid var(--peach-300);
  color: var(--indigo-700);
}
.form-msg-err {
  background: oklch(0.96 0.04 30);
  border: 1px solid oklch(0.78 0.13 30);
  color: oklch(0.32 0.14 30);
}

/* =========================================================
   Footer
   ========================================================= */
.site-foot {
  background: var(--indigo-900);
  color: color-mix(in oklab, var(--paper) 80%, var(--peach-300));
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}
.foot-name {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peach-300);
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.foot-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: color-mix(in oklab, var(--paper) 80%, var(--peach-300));
  margin: 0;
  max-width: 36ch;
}
.foot-contact { font-size: 0.95rem; line-height: 1.7; }
.foot-contact a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--peach-300) 60%, transparent);
  padding-bottom: 1px;
  transition: border-color 160ms var(--ease-out);
}
.foot-contact a:hover { border-bottom-color: var(--peach-500); }
.foot-meta {
  grid-column: 1 / -1;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in oklab, var(--paper) 14%, transparent);
  font-size: 0.82rem;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
}

/* =========================================================
   Reveal-on-scroll (with stagger support)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out-strong), transform 700ms var(--ease-out-strong);
  transition-delay: calc(var(--ri, 0) * 80ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Scroll progress bar
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  background: transparent;
}
.scroll-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--peach-500), var(--peach-700));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  transition: transform 60ms linear;
}

/* =========================================================
   Hero stagger entrance
   ========================================================= */
.stagger {
  opacity: 0;
  transform: translateY(12px);
  animation: stagger-in 760ms var(--ease-out-strong) forwards;
  animation-delay: calc(var(--si, 0) * 90ms + 120ms);
}
@keyframes stagger-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-art {
  opacity: 0;
  animation: art-in 1100ms var(--ease-out-strong) 240ms forwards;
}
@keyframes art-in {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* =========================================================
   Teepee SVG self-draw
   --len is set by JS (getTotalLength) — fallback below if JS off
   ========================================================= */
.ta-stroke {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  animation: draw var(--draw-dur, 1000ms) var(--ease-out-strong) forwards;
  animation-delay: calc(var(--di, 0) * 110ms + 380ms);
}
/* Draw order:
   poles (0,1) → body (2) → band1 top/bot (3,4) → band2 (5,6) → band3 (7,8) */
.ta-pole:nth-of-type(1) { --di: 0; --draw-dur: 600ms; }
.ta-pole:nth-of-type(2) { --di: 1; --draw-dur: 600ms; }
.ta-body  { --di: 2; --draw-dur: 1400ms; }

.ta-zig:nth-of-type(1) { --di: 3; --draw-dur: 800ms; }
.ta-zig:nth-of-type(2) { --di: 3; --draw-dur: 800ms; }
.ta-zig:nth-of-type(3) { --di: 5; --draw-dur: 800ms; }
.ta-zig:nth-of-type(4) { --di: 5; --draw-dur: 800ms; }
.ta-zig:nth-of-type(5) { --di: 7; --draw-dur: 800ms; }
.ta-zig:nth-of-type(6) { --di: 7; --draw-dur: 800ms; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.ta-halo, .ta-sun, .ta-stars, .ta-door {
  opacity: 0;
  animation: fade-in 700ms var(--ease-out-strong) forwards;
}
.ta-halo  { animation-delay: 200ms; }
.ta-sun   { animation-delay: 480ms; animation-name: sun-in; }
.ta-stars { animation-delay: 640ms; }
.ta-door  { animation-delay: 2200ms; animation-name: door-in; }

@keyframes fade-in {
  to { opacity: 1; }
}
@keyframes sun-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.85); transform-origin: 298px 92px; }
  to   { opacity: 0.85; transform: translateY(0) scale(1); }
}
@keyframes door-in {
  from { opacity: 0; transform: translateY(10px) scale(0.92); transform-origin: 186px 410px; }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Float idle continues once entrance is complete */
.teepee-art {
  animation: none;
}
.teepee-art.idle {
  animation: floaty 9s var(--ease-out) infinite;
}

/* =========================================================
   Subject row hover
   ========================================================= */
.level {
  transition: background-color 280ms var(--ease-out);
}
.level:hover {
  background-color: color-mix(in oklab, var(--peach-100) 60%, transparent);
}
.level:hover .level-num { color: var(--indigo-600); }
.level:hover .level-head h3 { color: var(--indigo-700); }
.level .level-num, .level .level-head h3 {
  transition: color 280ms var(--ease-out);
}

/* Subject pill hover */
.subject-list li:not(.prep) {
  transition: transform 200ms var(--ease-out-strong),
              border-color 200ms var(--ease-out),
              background 200ms var(--ease-out);
  cursor: default;
}
.subject-list li:not(.prep):hover {
  transform: translateY(-1px);
  border-color: var(--indigo-300);
  background: var(--paper-3);
}

/* =========================================================
   Stagger refinements for reveal sections
   ========================================================= */
.pillar:nth-child(1) { --ri: 0; }
.pillar:nth-child(2) { --ri: 1; }
.pillar:nth-child(3) { --ri: 2; }

.quote-grid .quote:nth-child(1) { --ri: 0; }
.quote-grid .quote:nth-child(2) { --ri: 1; }
.quote-grid .quote:nth-child(3) { --ri: 2; }
.quote-grid .quote:nth-child(4) { --ri: 3; }
.quote-grid .quote:nth-child(5) { --ri: 4; }
.quote-grid .quote:nth-child(6) { --ri: 5; }
.quote-grid .quote:nth-child(7) { --ri: 6; }
.quote-grid .quote:nth-child(8) { --ri: 7; }

.quote-coda {
  margin-top: 0.8rem !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98em;
  color: var(--muted);
  line-height: 1.5;
}
.quote-peach .quote-coda { color: oklch(0.35 0.06 60); }

.level:nth-child(1) { --ri: 0; }
.level:nth-child(2) { --ri: 1; }
.level:nth-child(3) { --ri: 2; }

.creds > div { transition: transform 240ms var(--ease-out-strong); }

/* =========================================================
   Form success checkmark
   ========================================================= */
.form-msg-ok {
  display: none;
  align-items: center;
  gap: 0.85rem;
}
.form-msg-ok:not([hidden]) {
  display: flex;
  animation: ok-in 420ms var(--ease-out-strong) both;
}
.check-anim {
  width: 28px; height: 28px;
  flex-shrink: 0;
  color: var(--indigo-700);
}
.check-anim circle {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: draw 600ms var(--ease-out-strong) 60ms forwards;
}
.check-anim path {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: draw 360ms var(--ease-out-strong) 380ms forwards;
}
@keyframes ok-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Button press feedback
   ========================================================= */
.btn-primary:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 90ms;
}

/* =========================================================
   Reduced motion — strip choreography, keep instant visibility
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .stagger, .hero-art,
  .ta-stroke, .ta-halo, .ta-sun, .ta-stars, .ta-door {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .check-anim circle, .check-anim path {
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
  .scroll-progress { display: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .teepee-art { width: 280px; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  .pillar { padding-top: 1.25rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 320px; }
  .waitlist-grid { grid-template-columns: 1fr; }
  .quote, .q-5, .q-7, .q-12 { grid-column: 1 / -1; }
  .quote-wide { padding: 1.85rem 1.85rem 1.6rem; }
  .quote-wide blockquote p { font-size: 1.2rem; }
  .foot-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-cta { padding: 0.7rem 1rem; font-size: 0.9rem; }
  .header-inner { gap: 1rem; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
  .hero-facts dd { font-size: 1.3rem; }
  .level { grid-template-columns: 1fr; gap: 1rem; padding: 1.75rem 0; }
  .level-head { flex-direction: row; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
  .level-head h3 { font-size: 1.85rem; }
  .level-num { font-size: 1.4rem; }
  .creds { grid-template-columns: 1fr; gap: 1.25rem; }
  .waitlist-form { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .quote::before { font-size: 3.2rem; top: 0.4rem; left: 1rem; }
  .quote blockquote p { font-size: 1.1rem; }
  .quote-lg blockquote p { font-size: 1.2rem; }
}

@media (max-width: 420px) {
  .brand-logo { height: 38px; }
  .hero-facts { grid-template-columns: 1fr; }
}
