/* ===== core-styles ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy: #2D1B5E;
    --navy-mid: #3D2575;
    --ivory: #FAF8FF;
    --ivory-dark: #EDE8FF;
    --gold: #F5C800;
    --gold-light: #FFE066;
    --slate: #A899CC;
    --slate-light: #C8BFDF;
    --white: #FFFFFF;
    --text-body: #1E1040;
    --text-muted: #5A4A80;
  }

  html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--ivory);
    color: var(--text-body);
    overflow-x: hidden;
  }

  /* ─── NAV ─── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw;
    height: 72px;
    background: rgba(45,27,94,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245,200,0,0.2);
    transition: all 0.3s ease;
  }

  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.04em;
    cursor: pointer;
  }

  .nav-logo span { color: var(--gold); }

  .nav-links {
    display: flex; gap: 2.5rem; list-style: none;
  }

  .nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate-light);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.25s;
  }

  .nav-links a:hover, .nav-links a.active { color: var(--gold); }

  .nav-cta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    background: var(--gold);
    padding: 0.55rem 1.4rem;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
  }
  .nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

  /* ─── PAGES ─── */
  .page { display: none; }
  .page.active { display: block; }

  .page-scroll-cue {
    position: fixed;
    bottom: 1.75rem;
    left: 50%;
    z-index: 90;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    color: #160a30;
    background: linear-gradient(145deg, #ffe36b 0%, #f5c800 58%, #dca800 100%);
    border: 1px solid rgba(255, 232, 128, 0.72);
    border-radius: 50%;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.5),
      0 5px 14px rgba(245, 200, 0, 0.28),
      0 0 20px rgba(245, 200, 0, 0.2);
    cursor: pointer;
    opacity: 1;
    transform: translateX(-50%);
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.22s ease,
      box-shadow 0.22s ease;
  }

  .page-scroll-cue span {
    display: none;
  }

  .page-scroll-cue::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translate(-50%, -65%) rotate(45deg);
  }

  .page-scroll-cue:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.62),
      0 7px 18px rgba(245, 200, 0, 0.38),
      0 0 25px rgba(245, 200, 0, 0.3);
  }

  .page-scroll-cue.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  /* ─── HOME: HERO ─── */
  .hero {
    height: 100vh;
    background: var(--navy);
    display: flex; align-items: center; justify-content: flex-start;
    position: relative; overflow: hidden;
  }

  .hero-scene {
    position: absolute; inset: 0;
    pointer-events: none;
  }

  .hero-bg-lines {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(245,200,0,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(245,200,0,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
  }

  .hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245,200,0,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 820px; padding: 0 2rem;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s forwards;
  }

  .hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.9s 0.6s forwards;
  }

  .hero-headline em {
    font-style: italic;
    color: var(--gold-light);
  }

  .hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--slate-light);
    line-height: 1.8;
    max-width: 520px; margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeUp 0.9s 0.9s forwards;
  }

  .hero-actions {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s 1.1s forwards;
  }

  .btn-primary {
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--gold); color: var(--navy);
    border: none; padding: 1rem 2.4rem;
    cursor: pointer; transition: all 0.25s;
  }
  .btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

  .btn-outline {
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: transparent; color: var(--white);
    border: 1px solid rgba(255,255,255,0.3); padding: 1rem 2.4rem;
    cursor: pointer; transition: all 0.25s;
  }
  .btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

  .hero-scroll {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    opacity: 0; animation: fadeIn 1s 2s forwards;
    color: var(--slate); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  }

  .scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(var(--gold), transparent);
    animation: scrollPulse 2s infinite;
  }

  /* ─── TRUST STRIP ─── */
  .trust-strip {
    background: var(--navy-mid);
    border-top: 1px solid rgba(245,200,0,0.15);
    border-bottom: 1px solid rgba(245,200,0,0.15);
    padding: 1.5rem 5vw;
    display: flex; align-items: center; justify-content: center; gap: 4rem; flex-wrap: wrap;
  }

  .trust-item {
    text-align: center;
    color: var(--slate-light);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .trust-item strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.3rem;
  }

  /* ─── SECTION SHARED ─── */
  section { padding: 6rem 5vw; }

  .section-eyebrow {
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1rem;
  }

  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 400; line-height: 1.2;
    color: var(--navy); margin-bottom: 1.5rem;
  }

  .section-title em { font-style: italic; }

  .section-lead {
    font-size: 1.05rem; font-weight: 300;
    line-height: 1.85; color: var(--text-muted);
    max-width: 560px;
  }

  /* ─── PHILOSOPHY SECTION ─── */
  .philosophy {
    background: var(--ivory);
    display: grid; grid-template-columns: 1fr 1fr; gap: 6rem;
    align-items: center;
  }

  .philosophy-visual {
    position: relative;
  }

  .phil-card {
    background: var(--navy);
    padding: 3rem;
    position: relative;
  }

  .phil-card::before {
    content: '';
    position: absolute;
    top: -12px; left: -12px; right: 12px; bottom: 12px;
    border: 1px solid var(--gold);
    pointer-events: none;
  }

  .phil-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem; font-weight: 300; font-style: italic;
    color: var(--white); line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .phil-attr {
    font-size: 0.72rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--gold);
  }

  /* ─── PILLARS ─── */
  .pillars { background: var(--ivory-dark); }

  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2px;
    margin-top: 4rem;
    border: 2px solid var(--navy);
  }

  .pillar {
    background: var(--ivory);
    padding: 2.8rem 2.4rem;
    border-right: 2px solid var(--navy);
    transition: background 0.3s;
    position: relative; overflow: hidden;
  }

  .pillar:last-child { border-right: none; }

  .pillar::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    height: 3px; width: 0;
    background: var(--gold);
    transition: width 0.4s ease;
  }

  .pillar:hover::after { width: 100%; }
  .pillar:hover { background: var(--white); }

  .pillar-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem; font-weight: 300;
    color: var(--ivory-dark);
    line-height: 1; margin-bottom: 1.2rem;
    transition: color 0.3s;
  }

  .pillar:hover .pillar-num { color: rgba(245,200,0,0.2); }

  .pillar-title {
    font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--navy); margin-bottom: 0.8rem;
  }

  .pillar-text {
    font-size: 0.9rem; font-weight: 300;
    line-height: 1.75; color: var(--text-muted);
  }

  /* ─── PROCESS ─── */
  .process { background: var(--navy); }

  .process .section-title { color: var(--white); }

  .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0; margin-top: 4rem;
  }

  .step {
    padding: 2.5rem;
    border-left: 1px solid rgba(245,200,0,0.2);
    position: relative;
  }

  .step:first-child { border-left: none; }

  .step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem; font-weight: 400;
    color: var(--gold); letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
  }

  .step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-weight: 400;
    color: var(--white); margin-bottom: 0.8rem;
  }

  .step-text {
    font-size: 0.88rem; font-weight: 300;
    line-height: 1.75; color: var(--slate);
  }

  /* ─── TESTIMONIALS ─── */
  .testimonials { background: var(--ivory); }

  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; margin-top: 4rem;
  }

  .testimonial {
    background: var(--white);
    padding: 2.5rem;
    border-top: 3px solid var(--gold);
    box-shadow: 0 4px 24px rgba(45,27,94,0.06);
  }

  .testimonial-stars {
    color: var(--gold); font-size: 0.85rem;
    letter-spacing: 0.1em; margin-bottom: 1.2rem;
  }

  .testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-style: italic;
    color: var(--navy); line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .testimonial-author {
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted);
  }

  .testimonial-role {
    font-size: 0.72rem; color: var(--gold);
    margin-top: 0.2rem;
  }

  /* ─── CTA BAND ─── */
  .cta-band {
    background: var(--navy);
    border-top: 3px solid var(--gold);
    padding: 5rem 5vw;
    text-align: center;
  }

  .cta-band h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400; color: var(--white);
    margin-bottom: 1rem;
  }

  .cta-band p {
    font-size: 1rem; color: var(--slate-light);
    margin-bottom: 2rem; font-weight: 300;
  }

  .btn-dark {
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--gold); color: var(--navy);
    border: none; padding: 1rem 2.4rem;
    cursor: pointer; transition: all 0.25s;
  }
  .btn-dark:hover { background: var(--gold-light); transform: translateY(-2px); }

  /* ─── ABOUT PAGE ─── */
  .about-hero {
    background: var(--navy);
    padding: 10rem 5vw 6rem;
    text-align: center;
  }

  .about-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300; color: var(--white);
    margin-bottom: 1.5rem;
  }

  .about-hero p {
    font-size: 1rem; font-weight: 300;
    color: var(--slate-light); max-width: 560px;
    margin: 0 auto; line-height: 1.8;
  }

  .about-story {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6rem; align-items: center;
    padding: 6rem 5vw; background: var(--ivory);
  }

  .about-story h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400; color: var(--navy);
    margin-bottom: 1.5rem;
  }

  .about-story p {
    font-size: 0.95rem; font-weight: 300;
    line-height: 1.9; color: var(--text-muted);
    margin-bottom: 1.2rem;
  }

  .about-values {
    background: var(--navy-mid); padding: 6rem 5vw;
  }

  .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem; margin-top: 3rem;
  }

  .value-card {
    padding: 2rem;
    border: 1px solid rgba(245,200,0,0.2);
    transition: border-color 0.3s;
  }

  .value-card:hover { border-color: var(--gold); }

  .value-icon {
    font-size: 1.5rem; margin-bottom: 1rem; color: var(--gold);
  }

  .value-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; color: var(--white);
    margin-bottom: 0.7rem;
  }

  .value-card p {
    font-size: 0.88rem; font-weight: 300;
    color: var(--slate); line-height: 1.7;
  }

  .team-section { background: var(--ivory); padding: 6rem 5vw; }

  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem; margin-top: 3rem;
  }

  .team-card {
    text-align: center;
  }

  .team-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--navy);
    margin: 0 auto 1.2rem;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; color: var(--gold);
    border: 2px solid var(--gold);
  }

  .team-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem; color: var(--navy);
    margin-bottom: 0.3rem;
  }

  .team-card p {
    font-size: 0.78rem; color: var(--gold);
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-bottom: 0.8rem;
  }

  .team-card span {
    font-size: 0.85rem; color: var(--text-muted);
    font-weight: 300;
  }

  /* ─── TUTORS PAGE ─── */
  .page-hero {
    background: var(--navy);
    padding: 10rem 5vw 5rem;
    text-align: center;
  }

  .page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300; color: var(--white);
    margin-bottom: 1rem;
  }

  .page-hero p {
    color: var(--slate-light); font-weight: 300;
    max-width: 500px; margin: 0 auto; line-height: 1.8;
  }

  .tutors-section { background: var(--ivory); padding: 6rem 5vw; }

  .tutors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; margin-top: 3rem;
  }

  .tutor-card {
    background: var(--white);
    border-top: 3px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 16px rgba(45,27,94,0.06);
    overflow: hidden;
  }

  .tutor-card:hover {
    border-top-color: var(--gold);
    box-shadow: 0 8px 32px rgba(45,27,94,0.12);
  }

  .tutor-head {
    background: var(--navy);
    padding: 2.5rem;
    text-align: center;
  }

  .tutor-initials {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(245,200,0,0.15);
    border: 2px solid var(--gold);
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; color: var(--gold);
  }

  .tutor-head h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; color: var(--white);
    margin-bottom: 0.3rem;
  }

  .tutor-head span {
    font-size: 0.72rem; color: var(--gold);
    letter-spacing: 0.1em; text-transform: uppercase;
  }

  .tutor-body { padding: 2rem; }

  .tutor-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-bottom: 1.2rem;
  }

  .tag {
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--ivory-dark);
    color: var(--navy); padding: 0.3rem 0.7rem;
  }

  .tutor-body p {
    font-size: 0.88rem; font-weight: 300;
    line-height: 1.7; color: var(--text-muted);
  }

  /* ─── APPLICATION FORM ─── */
  .form-section { background: var(--ivory); padding: 6rem 5vw; }

  .form-wrap {
    max-width: 720px; margin: 0 auto;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; gap: 1.5rem;
    margin-top: 3rem;
  }

  .form-group {
    display: flex; flex-direction: column; gap: 0.5rem;
  }

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

  .form-group label {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--navy);
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem; font-weight: 300;
    color: var(--text-body);
    background: var(--white);
    border: 1px solid var(--ivory-dark);
    padding: 0.9rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
  }

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

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

  .form-submit {
    margin-top: 2rem; text-align: center;
  }

  .form-note {
    font-size: 0.78rem; color: var(--text-muted);
    margin-top: 1rem; font-weight: 300;
  }

  .success-msg {
    background: rgba(245,200,0,0.1);
    border: 1px solid var(--gold);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    display: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; color: var(--navy);
  }

  .form-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .form-error-msg {
    display: none;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-left: 3px solid #9f2f3f;
    background: rgba(159, 47, 63, 0.08);
    color: #751f2d;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  #contact-submit:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
  }

  /* ─── CONTACT ─── */
  .contact-section {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; background: var(--ivory);
  }

  .contact-info {
    background: var(--navy); padding: 6rem 5vw;
  }

  .contact-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300; color: var(--white);
    margin-bottom: 2rem;
  }

  .contact-detail {
    margin-bottom: 2rem;
  }

  .contact-detail h4 {
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.5rem;
  }

  .contact-detail p {
    font-size: 0.95rem; font-weight: 300;
    color: var(--slate-light); line-height: 1.7;
  }

  .contact-form-wrap { padding: 6rem 5vw; }

  .contact-form-wrap h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 400;
    color: var(--navy); margin-bottom: 2rem;
  }

  /* ─── FOOTER ─── */
  footer {
    background: var(--navy);
    border-top: 1px solid rgba(245,200,0,0.15);
    padding: 4rem 5vw 2rem;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
  }

  .footer-brand p {
    font-size: 0.88rem; font-weight: 300;
    color: var(--slate); line-height: 1.7;
    margin-top: 1rem; max-width: 280px;
  }

  .footer-col h5 {
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.2rem;
  }

  .footer-col ul { list-style: none; }

  .footer-col ul li {
    margin-bottom: 0.6rem;
  }

  .footer-col ul li a {
    font-size: 0.85rem; font-weight: 300;
    color: var(--slate); text-decoration: none;
    cursor: pointer; transition: color 0.2s;
  }

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

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.75rem; color: var(--slate);
  }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

  @keyframes scrollPulse {
    0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
  }

  .reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.visible {
    opacity: 1; transform: translateY(0);
  }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .philosophy { grid-template-columns: 1fr; gap: 3rem; }
    .about-story { grid-template-columns: 1fr; gap: 2rem; }
    .contact-section { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
  }

/* ===== codex-header-refinement ===== */
:root {
          --navy: #160a30;
          --navy-mid: #241044;
        }

        .browse-menu {
          position: relative;
          flex: 0 0 auto;
          z-index: 3;
        }

        .browse-menu summary {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 0.65rem;
          min-width: 126px;
          height: 44px;
          padding: 0 1.15rem;
          color: #ffffff;
          background: linear-gradient(120deg, #29134e 0%, #15092e 100%);
          border: 1px solid rgba(245, 200, 0, 0.3);
          border-radius: 6px;
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 8px 22px rgba(15, 7, 36, 0.22);
          font-size: 0.82rem;
          font-weight: 600;
          letter-spacing: 0.02em;
          cursor: pointer;
          list-style: none;
        }

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

        .browse-menu summary:hover,
        .browse-menu[open] summary {
          background: linear-gradient(120deg, #351765 0%, #1d0c3c 100%);
          border-color: rgba(245, 200, 0, 0.72);
        }

        .browse-chevron {
          display: inline-block;
          width: 8px;
          height: 8px;
          margin: -4px 0 0;
          color: transparent;
          border-right: 2px solid #f5c800;
          border-bottom: 2px solid #f5c800;
          font-size: 0;
          transform: rotate(45deg);
          transform-origin: center;
          transition: transform 0.22s ease;
        }

        .browse-menu[open] .browse-chevron {
          margin-top: 4px;
          transform: rotate(225deg);
        }

        .browse-panel {
          position: absolute;
          top: calc(100% + 0.55rem);
          left: 0;
          width: 370px;
          max-height: min(430px, calc(100vh - 110px));
          padding: 0.5rem;
          overflow-y: auto;
          background: #10071f;
          border: 1px solid rgba(245, 200, 0, 0.24);
          border-radius: 7px;
          box-shadow: 0 24px 60px rgba(12, 5, 28, 0.38);
        }

        .browse-option {
          display: block;
          width: 100%;
          position: relative;
          padding: 0.9rem 2.5rem 0.9rem 1rem;
          color: #f8f7fa;
          background: transparent;
          border: 0;
          border-bottom: 1px solid rgba(200, 191, 223, 0.14);
          text-align: left;
          cursor: pointer;
        }

        .browse-option::after {
          content: "\2192";
          position: absolute;
          top: 50%;
          right: 1rem;
          color: #f5c800;
          font-size: 1.25rem;
          transform: translateY(-50%);
        }
        .browse-option:last-child {
          border-bottom: 0;
        }

        .browse-option:hover {
          color: #ffffff;
          background: #281249;
        }

        .browse-option strong {
          display: block;
          margin-bottom: 0.18rem;
          font-size: 0.78rem;
          letter-spacing: 0.02em;
        }

        .browse-option span {
          display: block;
          color: #aaa4b3;
          font-size: 0.7rem;
          font-weight: 400;
          line-height: 1.35;
        }

        .hero-content {
          transform: translateY(50px);
        }

        .hero-sub {
          position: relative;
          max-width: 650px;
          padding: 0 1rem;
          font-family: "Bodoni Moda", "Cormorant Garamond", serif;
          font-size: 1.03rem;
          font-weight: 500;
          font-style: italic;
          line-height: 1.75;
          color: #eee8f7;
          margin-bottom: 2.25rem;
        }

        .hero-actions {
          gap: 0.85rem;
        }

        .hero-actions .btn-primary,
        .hero-actions .btn-outline {
          width: 250px;
          min-width: 0;
          padding: 1.08rem 1.9rem;
          border-radius: 2px;
          font-family: "Bodoni Moda", "Cormorant Garamond", serif;
          font-size: 1.08rem;
          font-weight: 600;
          letter-spacing: 0.012em;
          text-transform: none;
        }

        .hero-scroll {
          bottom: 1.25rem;
          gap: 0.35rem;
        }

        .hero-scroll .scroll-line {
          height: 18px;
          background: linear-gradient(rgba(245, 200, 0, 0.62), transparent);
        }

        .hero-scroll span {
          color: rgba(200, 191, 223, 0.72);
          font-size: 0.58rem;
        }

        .hero-actions .btn-primary {
          color: #160a30;
          background: linear-gradient(135deg, #fffefa 0%, #e8e3d9 100%);
          border: 1px solid rgba(245, 200, 0, 0.58);
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            0 10px 26px rgba(9, 3, 24, 0.24);
        }

        .hero-actions .btn-primary:hover {
          color: #160a30;
          background: #ffffff;
          border-color: #f5c800;
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 1),
            0 13px 30px rgba(9, 3, 24, 0.3);
          transform: translateY(-2px);
        }

        .hero-actions .btn-outline {
          color: #f7f4fb;
          background: rgba(255, 255, 255, 0.035);
          border: 1px solid rgba(200, 191, 223, 0.42);
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.05),
            0 10px 24px rgba(9, 3, 24, 0.12);
        }

        .hero-actions .btn-outline:hover {
          color: #ffffff;
          background: rgba(245, 200, 0, 0.065);
          border-color: rgba(245, 200, 0, 0.68);
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            0 12px 28px rgba(9, 3, 24, 0.2);
          transform: translateY(-2px);
        }

        .hero {
          height: 100vh;
          min-height: 0;
          padding: 112px 4vw 22px;
          align-items: stretch;
          justify-content: center;
        }

        .philosophy-text .section-eyebrow {
          position: relative;
          margin-bottom: 1.05rem;
          padding-bottom: 0.75rem;
          color: #160a30;
          font-family: "Bodoni Moda", "Cormorant Garamond", serif;
          font-size: clamp(2.55rem, 5vw, 4.35rem);
          font-weight: 500;
          letter-spacing: -0.045em;
          line-height: 1;
          text-transform: none;
        }

        .philosophy-text .section-eyebrow::after {
          content: "";
          position: absolute;
          bottom: 0;
          left: 0;
          width: 54px;
          height: 2px;
          background: linear-gradient(90deg, #a98e18, rgba(169, 142, 24, 0.18));
        }

        .philosophy-text .section-eyebrow em {
          display: inline-block;
          margin-left: 0.08em;
          color: #b79412;
          font-family: "Parisienne", "Segoe Script", "Brush Script MT", cursive;
          font-size: 1.6em;
          font-style: italic;
          font-weight: 400;
          line-height: 0.74;
          letter-spacing: -0.035em;
          white-space: nowrap;
          text-shadow: 0 7px 22px rgba(169, 142, 24, 0.18);
          transform: translateY(0.04em) rotate(-1deg);
        }

        .philosophy-text .section-lead {
          max-width: 590px;
          margin: 0;
          color: #51466d;
          font-family: "Inter", sans-serif;
          font-size: clamp(0.93rem, 1.15vw, 1.02rem) !important;
          font-weight: 300;
          letter-spacing: -0.008em;
          line-height: 1.82;
        }

        .philosophy-text > br {
          display: none;
        }

        .philosophy-text .section-lead + .section-lead {
          margin-top: 1.35rem;
        }

        .philosophy .philosophy-visual {
          isolation: isolate;
        }

        .philosophy .philosophy-carousel {
          position: relative;
          width: 100%;
          max-width: 560px;
          aspect-ratio: 1.24 / 1;
          padding: 0;
          overflow: visible;
          background: #0c0519;
          border: none;
          box-shadow:
            0 28px 60px rgba(22, 10, 48, 0.2);
        }

        .philosophy .philosophy-carousel::before {
          display: none;
        }

        .philosophy .philosophy-carousel::after {
          content: "";
          position: absolute;
          inset: 0;
          z-index: 8;
          border: 1px solid rgba(255, 255, 255, 0.1);
          box-shadow: inset 0 0 0 1px rgba(169, 142, 24, 0.08);
          pointer-events: none;
        }

        .philosophy-slides {
          position: absolute;
          inset: 0;
          overflow: visible;
          background: #0c0519;
        }

        .philosophy-slide {
          position: absolute;
          inset: 0;
          margin: 0;
          overflow: hidden;
          opacity: 0;
          visibility: hidden;
          transform-origin: center center;
          will-change: opacity, transform, filter;
        }

        .philosophy-slide.is-active {
          z-index: 2;
          opacity: 1;
          visibility: visible;
        }

        .philosophy-slide.is-next-preview {
          z-index: 1;
          opacity: 1;
          visibility: visible;
          transform: translate(30px, 24px);
          filter: brightness(0.82) saturate(0.86);
          pointer-events: none;
        }

        .philosophy-slide.is-next-preview .philosophy-slide-overlay,
        .philosophy-slide.is-next-preview figcaption {
          opacity: 0;
        }

        .philosophy-slide.is-next-preview.is-next-preview-entering {
          animation: philosophyPreviewEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        body.is-async-transitioning #navbar {
          pointer-events: none;
        }

        .philosophy-slide.is-card-entering {
          z-index: 4;
          visibility: visible;
          animation: philosophyCardEnter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        .philosophy-slide.is-card-exiting {
          z-index: 3;
          opacity: 1;
          visibility: visible;
          animation: philosophyCardRecede 0.85s cubic-bezier(0.55, 0.08, 0.18, 1) both;
        }

        .philosophy-slide.is-card-exiting::after {
          content: "";
          position: absolute;
          inset: 0;
          z-index: 4;
          background: rgba(10, 4, 24, 0.62);
          pointer-events: none;
          animation: philosophyCardShade 0.85s ease both;
        }

        .philosophy-slide > img {
          display: block;
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: var(--portrait-position, center 28%);
          filter: grayscale(0.1) sepia(0.08) contrast(1.04);
          transform: none;
        }

        .philosophy-slide.is-active > img {
          animation: none;
        }

        .philosophy-slide-overlay {
          position: absolute;
          inset: 0;
          background:
            linear-gradient(180deg, rgba(10, 4, 24, 0.14) 0%, rgba(10, 4, 24, 0.34) 32%, rgba(10, 4, 24, 0.96) 100%),
            linear-gradient(90deg, rgba(12, 5, 27, 0.36), transparent 74%);
        }

        .philosophy-slide figcaption {
          position: absolute;
          inset: 0;
          z-index: 2;
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
          padding: clamp(1.75rem, 3vw, 2.55rem);
          padding-bottom: 4.25rem;
          color: #ffffff;
        }

        .philosophy-kicker {
          display: flex;
          align-items: center;
          gap: 0.7rem;
          margin-bottom: 0.8rem;
          color: #eedf92;
          font-family: "Inter", sans-serif;
          font-size: 0.58rem;
          font-weight: 600;
          letter-spacing: 0.2em;
          text-transform: uppercase;
        }

        .philosophy-kicker::before {
          content: "";
          width: 30px;
          height: 1px;
          background: #d3b73f;
        }

        .philosophy-slide blockquote {
          max-width: 520px;
          margin: 0 0 1rem;
          color: #fffefa;
          font-family: "Cormorant Garamond", serif;
          font-size: clamp(1.55rem, 2.35vw, 2rem);
          font-style: italic;
          font-weight: 400;
          letter-spacing: -0.018em;
          line-height: 1.27;
          text-wrap: balance;
          text-shadow: 0 2px 18px rgba(5, 1, 13, 0.45);
        }

        .philosophy-slide.is-long blockquote {
          font-size: clamp(1.27rem, 1.85vw, 1.62rem);
          line-height: 1.34;
        }

        .philosophy-attribution {
          display: flex;
          flex-direction: column;
          gap: 0.2rem;
          margin: 0;
        }

        .philosophy-attribution strong {
          color: #ffffff;
          font-family: "Inter", sans-serif;
          font-size: 0.68rem;
          font-weight: 600;
          letter-spacing: 0.14em;
          text-transform: uppercase;
        }

        .philosophy-attribution span {
          color: rgba(255, 255, 255, 0.68);
          font-family: "Inter", sans-serif;
          font-size: 0.62rem;
          font-weight: 300;
          letter-spacing: 0.04em;
        }

        .philosophy-carousel-controls {
          position: absolute;
          right: clamp(1.75rem, 3vw, 2.55rem);
          bottom: 1.35rem;
          z-index: 10;
          display: flex;
          align-items: center;
        }

        .philosophy-arrow {
          display: inline-grid;
          width: 34px;
          height: 34px;
          padding: 0;
          place-items: center;
          color: rgba(255, 255, 255, 0.78);
          background: transparent;
          border: none;
          border-radius: 0;
          cursor: pointer;
          transition:
            color 0.25s ease,
            background 0.25s ease,
            border-color 0.25s ease,
            transform 0.25s ease;
        }

        .philosophy-arrow svg {
          width: 13px;
          height: 13px;
          fill: none;
          stroke: currentColor;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-width: 1.4;
        }

        .philosophy-arrow:hover {
          color: #f5c800;
          background: transparent;
          transform: translateX(3px);
        }

        @keyframes philosophyCardRecede {
          0% {
            opacity: 1;
            filter: brightness(1) blur(0);
            transform: translate(0, 0) scale(1) rotate(0deg);
          }
          58% {
            opacity: 0.5;
            filter: brightness(0.68) blur(0.6px);
          }
          100% {
            opacity: 0;
            filter: brightness(0.48) blur(1.4px);
            transform: translate(18px, 16px) scale(0.93) rotate(1.2deg);
          }
        }

        @keyframes philosophyPreviewEnter {
          from {
            opacity: 0;
            filter: brightness(0.46) saturate(0.68);
            transform: translate(46px, 34px);
          }
          to {
            opacity: 1;
            filter: brightness(0.82) saturate(0.86);
            transform: translate(30px, 24px);
          }
        }

        @keyframes philosophyCardEnter {
          0% {
            opacity: 0;
            filter: brightness(0.72) blur(1.2px);
            transform: translate(-10px, -8px) scale(1.035) rotate(-0.65deg);
          }
          38% {
            opacity: 0;
          }
          100% {
            opacity: 1;
            filter: brightness(1);
            transform: translate(0, 0) scale(1) rotate(0deg);
          }
        }

        @keyframes philosophyCardShade {
          0% {
            opacity: 0;
          }
          100% {
            opacity: 1;
          }
        }

        @media (max-width: 768px) {
          .philosophy .philosophy-carousel {
            max-width: 560px;
            margin: 0 auto;
            aspect-ratio: 1.16 / 1;
          }
        }

        @media (min-width: 769px) and (max-width: 1100px) {
          .philosophy {
            gap: 3rem;
          }

          .philosophy-slide figcaption {
            padding-right: 1.65rem;
            padding-left: 1.65rem;
          }

          .philosophy-carousel-controls {
            right: 1.65rem;
            left: auto;
          }
        }

        .hero-stage {
          display: grid;
          grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
          gap: clamp(2.2rem, 4.5vw, 5rem);
          width: min(100%, 1360px);
          height: 100%;
          margin: 0 auto;
        }

        .hero-copy {
          display: flex;
          flex-direction: column;
          justify-content: center;
          min-width: 0;
          padding: 0;
        }

        .hero-copy .hero-eyebrow {
          margin-bottom: 0.8rem;
          font-size: 0.62rem;
          text-align: left;
        }

        .hero-copy .hero-headline {
          margin-bottom: 1rem;
          font-size: clamp(2.35rem, 4.8vw, 3.55rem);
          line-height: 1.02;
          text-align: left;
        }

        .hero-copy .hero-sub {
          max-width: 610px;
          margin: 0 0 1.05rem;
          padding: 0;
          font-size: 0.87rem;
          line-height: 1.52;
          text-align: left;
        }

        .hero-journey {
          width: min(100%, 610px);
          margin-top: 0.15rem;
        }

        .hero-journey-title {
          position: relative;
          margin-bottom: 0.65rem;
          padding-top: 0.62rem;
          color: #ffffff;
          font-family: "Inter", sans-serif;
          font-size: 0.88rem;
          font-weight: 600;
          letter-spacing: -0.015em;
        }

        .hero-journey-title::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 34px;
          height: 2px;
          background: #f5c800;
        }

        .journey-options {
          display: grid;
          gap: 3px;
        }

        .journey-option {
          display: flex;
          align-items: center;
          width: 100%;
          min-height: 48px;
          padding: 0.65rem 0.95rem;
          color: #f8f5fc;
          background: rgba(255, 255, 255, 0.055);
          border: 1px solid rgba(200, 191, 223, 0.16);
          text-align: left;
          cursor: pointer;
          transition:
            background 0.25s ease,
            border-color 0.25s ease,
            transform 0.25s ease;
        }

        .journey-option:hover {
          background: rgba(245, 200, 0, 0.085);
          border-color: rgba(245, 200, 0, 0.52);
          transform: translateX(4px);
        }

        .journey-marker {
          display: inline-flex;
          flex: 0 0 auto;
          align-items: center;
          justify-content: center;
          width: 15px;
          height: 15px;
          margin-right: 0.75rem;
          border: 1px solid rgba(245, 200, 0, 0.72);
          border-radius: 2px;
        }

        .journey-marker::after {
          content: "";
          width: 5px;
          height: 5px;
          background: #f5c800;
          opacity: 0;
          transition: opacity 0.2s ease;
        }

        .journey-option:hover .journey-marker::after {
          opacity: 1;
        }

        .journey-option strong {
          font-family: "Bodoni Moda", "Cormorant Garamond", serif;
          font-size: 0.92rem;
          font-weight: 600;
          letter-spacing: 0.01em;
        }

        .journey-arrow {
          display: inline-flex;
          flex: 0 0 auto;
          align-items: center;
          justify-content: center;
          position: relative;
          width: 25px;
          height: 25px;
          margin-left: auto;
          color: #f5c800;
          border: 1px solid rgba(245, 200, 0, 0.38);
          border-radius: 50%;
          font-size: 0;
          transition:
            background 0.25s ease,
            border-color 0.25s ease,
            transform 0.25s ease;
        }

        .journey-arrow::before {
          content: "";
          width: 6px;
          height: 6px;
          margin-left: -2px;
          border-top: 1.5px solid #f5c800;
          border-right: 1.5px solid #f5c800;
          transform: rotate(45deg);
        }

        .journey-option:hover .journey-arrow {
          background: rgba(245, 200, 0, 0.12);
          border-color: rgba(245, 200, 0, 0.85);
          transform: translateX(3px);
        }

        .educator-showcase {
          position: relative;
          height: 100%;
          min-width: 0;
          overflow: hidden;
          border-radius: 12px;
          mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%
          );
        }

        .educator-showcase::before {
          content: "";
          position: absolute;
          inset: 0;
          z-index: 3;
          border: 1px solid rgba(245, 200, 0, 0.12);
          border-radius: inherit;
          pointer-events: none;
        }

        .educator-columns {
          display: grid;
          grid-template-columns: repeat(2, minmax(0, 1fr));
          gap: 0.9rem;
          height: 100%;
        }

        .educator-lane {
          min-width: 0;
          overflow: hidden;
        }

        .educator-track {
          display: flex;
          flex-direction: column;
          animation: educatorsMoveDown 24s linear infinite;
          will-change: transform;
        }

        .educator-lane:nth-child(2) .educator-track {
          animation-duration: 29s;
          animation-delay: -9s;
        }

        .educator-showcase:hover .educator-track {
          animation-play-state: paused;
        }

        .educator-sequence {
          display: flex;
          flex-direction: column;
          gap: 0.9rem;
          padding-bottom: 0.9rem;
        }

        .educator-card {
          position: relative;
          overflow: hidden;
          aspect-ratio: 4 / 5;
          border: 1px solid rgba(245, 200, 0, 0.16);
          border-radius: 10px;
          background: #0e061e;
          box-shadow: 0 16px 32px rgba(8, 2, 20, 0.28);
        }

        .educator-card img {
          display: block;
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .educator-card::after {
          content: "";
          position: absolute;
          inset: 52% 0 0;
          background: linear-gradient(transparent, rgba(9, 3, 23, 0.88));
          pointer-events: none;
        }

        .educator-card span {
          position: absolute;
          right: 0.8rem;
          bottom: 0.7rem;
          left: 0.8rem;
          z-index: 2;
          color: #fff;
          font-size: 0.61rem;
          font-weight: 600;
          letter-spacing: 0.13em;
          text-transform: uppercase;
        }

        .educator-card span small,
        .educator-card span strong {
          display: block;
        }

        .educator-card span small {
          margin-bottom: 0.25rem;
          color: #f5c800;
          font-size: 0.5rem;
          font-weight: 600;
          letter-spacing: 0.18em;
        }

        .educator-card span strong {
          max-width: 15ch;
          color: #ffffff;
          font-family: "Inter", sans-serif;
          font-size: 0.66rem;
          font-weight: 600;
          letter-spacing: 0.11em;
          line-height: 1.25;
        }

        @keyframes educatorsMoveDown {
          from {
            transform: translateY(-50%);
          }
          to {
            transform: translateY(0);
          }
        }

        @media (max-width: 920px) {
          .hero-stage {
            grid-template-columns: minmax(0, 1fr) 320px;
            gap: 1.8rem;
          }

          .hero-copy .hero-headline {
            font-size: clamp(2.35rem, 5vw, 3rem);
          }

          .educator-showcase {
            height: 100%;
          }
        }

        @media (max-width: 760px) {
          .hero {
            min-height: auto;
            padding: 110px 1.25rem 3rem;
          }

          .hero-stage {
            grid-template-columns: 1fr;
          }

          .hero-copy {
            padding-bottom: 0;
          }

          .educator-showcase {
            height: 520px;
          }
        }

        body.is-async-transitioning {
          overflow: hidden;
        }

        .transition-backdrop {
          position: fixed;
          inset: 0;
          z-index: 70;
          background: #160a30;
        }

        .transition-source-stage,
        .page.is-transition-target {
          display: block;
          position: fixed;
          will-change: transform, opacity, filter;
        }

        .transition-source-stage {
          inset: 0;
          z-index: 80;
          overflow: hidden;
        }

        .transition-source-stage > .page {
          display: block;
          position: absolute;
          top: var(--transition-scroll-offset, 0);
          left: 0;
          width: 100%;
        }

        .page.is-transition-target {
          inset: 0;
          z-index: 90;
          height: 100vh;
          overflow: hidden;
          opacity: 1;
        }

        .transition-source-stage.transition-source-up {
          animation: simpleExitUp 0.48s cubic-bezier(0.4, 0, 0.2, 1) both;
        }

        .transition-source-stage.transition-source-down {
          animation: simpleExitDown 0.48s cubic-bezier(0.4, 0, 0.2, 1) both;
        }

        .transition-source-stage.transition-source-left {
          animation: simpleExitLeft 0.48s cubic-bezier(0.4, 0, 0.2, 1) both;
        }

        .transition-source-stage.transition-source-right {
          animation: simpleExitRight 0.48s cubic-bezier(0.4, 0, 0.2, 1) both;
        }

        .page.transition-enter-bottom {
          animation: simpleEnterBottom 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .page.transition-enter-top {
          animation: simpleEnterTop 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .page.transition-enter-right {
          animation: simpleEnterRight 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        .page.transition-enter-left {
          animation: simpleEnterLeft 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        @keyframes simpleExitUp {
          from { opacity: 1; transform: translate3d(0, 0, 0); }
          to { opacity: 0; transform: translate3d(0, -7vh, 0); }
        }

        @keyframes simpleExitDown {
          from { opacity: 1; transform: translate3d(0, 0, 0); }
          to { opacity: 0; transform: translate3d(0, 7vh, 0); }
        }

        @keyframes simpleExitLeft {
          from { opacity: 1; transform: translate3d(0, 0, 0); }
          to { opacity: 0; transform: translate3d(-7vw, 0, 0); }
        }

        @keyframes simpleExitRight {
          from { opacity: 1; transform: translate3d(0, 0, 0); }
          to { opacity: 0; transform: translate3d(7vw, 0, 0); }
        }

        @keyframes simpleEnterBottom {
          from { opacity: 0; transform: translate3d(0, 7vh, 0); }
          to { opacity: 1; transform: translate3d(0, 0, 0); }
        }

        @keyframes simpleEnterTop {
          from { opacity: 0; transform: translate3d(0, -7vh, 0); }
          to { opacity: 1; transform: translate3d(0, 0, 0); }
        }

        @keyframes simpleEnterRight {
          from { opacity: 0; transform: translate3d(7vw, 0, 0); }
          to { opacity: 1; transform: translate3d(0, 0, 0); }
        }

        @keyframes simpleEnterLeft {
          from { opacity: 0; transform: translate3d(-7vw, 0, 0); }
          to { opacity: 1; transform: translate3d(0, 0, 0); }
        }

        /* Three.js pillar monument */
        .pillars-rotunda {
          position: relative;
          isolation: isolate;
          overflow: hidden;
          padding: clamp(4.75rem, 7vw, 7.5rem) clamp(1.5rem, 5vw, 5.5rem);
          color: #f8f4ec;
          background:
            radial-gradient(circle at 76% 48%, rgba(108, 67, 144, 0.2), transparent 34%),
            radial-gradient(circle at 22% 66%, rgba(214, 170, 69, 0.055), transparent 28%),
            linear-gradient(118deg, #11071f 0%, #170a2d 54%, #0d0619 100%);
        }

        .pillars-rotunda::before {
          content: "";
          position: absolute;
          inset: 0;
          z-index: -2;
          opacity: 0.28;
          background:
            repeating-linear-gradient(
              90deg,
              transparent 0,
              transparent 122px,
              rgba(255, 255, 255, 0.018) 123px,
              transparent 124px
            ),
            repeating-linear-gradient(
              0deg,
              transparent 0,
              transparent 86px,
              rgba(255, 255, 255, 0.012) 87px,
              transparent 88px
            );
          pointer-events: none;
        }

        .pillars-rotunda::after {
          display: none;
        }

        .pillar-monument-shell {
          width: min(1240px, 100%);
          margin: 0 auto;
        }

        .pillar-monument-heading {
          position: relative;
          z-index: 3;
          max-width: 820px;
          margin-bottom: clamp(2.5rem, 4vw, 4rem);
        }

        .pillars-rotunda .section-eyebrow {
          display: flex;
          align-items: center;
          gap: 0.8rem;
          margin-bottom: 1rem;
          color: #d6aa45;
          font-size: 0.72rem;
          letter-spacing: 0.28em;
        }

        .pillars-rotunda .section-eyebrow::before {
          content: "";
          width: 2.75rem;
          height: 1px;
          background: linear-gradient(90deg, #f0ca67, rgba(240, 202, 103, 0.1));
        }

        .pillars-rotunda .section-title {
          color: #fbf7f0;
          font-family: "Bodoni Moda", "Cormorant Garamond", serif;
          font-size: clamp(2.7rem, 5vw, 4.7rem);
          font-weight: 500;
          line-height: 0.98;
          letter-spacing: -0.045em;
        }

        .pillars-rotunda .section-title em {
          color: #e8c35b;
          font-weight: 500;
        }

        .pillar-monument-kicker {
          display: block;
          margin-top: 1.25rem;
          color: rgba(244, 237, 227, 0.63);
          font-size: 0.84rem;
          font-weight: 300;
          line-height: 1.65;
          letter-spacing: 0.035em;
        }

        .pillar-monument-layout {
          display: grid;
          grid-template-areas: "info scene";
          grid-template-columns: minmax(265px, 0.72fr) minmax(540px, 1.55fr);
          align-items: center;
          gap: clamp(2rem, 4vw, 4.75rem);
        }

        .pillar-monument-info {
          grid-area: info;
          position: relative;
          z-index: 4;
          min-height: 360px;
          padding: clamp(1.5rem, 3vw, 2.5rem) 0;
        }

        .pillar-monument-info::before {
          content: "";
          position: absolute;
          top: 0;
          bottom: 0;
          left: -2rem;
          width: 1px;
          background: linear-gradient(transparent, rgba(214, 170, 69, 0.55), transparent);
        }

        .pillar-info-meta {
          display: flex;
          align-items: center;
          gap: 0.9rem;
          color: #d6aa45;
        }

        .pillar-info-roman {
          font-family: "Cormorant Garamond", serif;
          font-size: 2.2rem;
          line-height: 1;
          letter-spacing: 0.08em;
        }

        .pillar-info-rule {
          width: 3.5rem;
          height: 1px;
          background: linear-gradient(90deg, rgba(214, 170, 69, 0.95), transparent);
        }

        .pillar-info-short {
          font-size: 0.66rem;
          font-weight: 600;
          letter-spacing: 0.18em;
          text-transform: uppercase;
        }

        .pillar-info-symbol {
          display: block;
          margin-top: 2rem;
          color: rgba(238, 226, 205, 0.55);
          font-size: 0.66rem;
          font-weight: 500;
          letter-spacing: 0.2em;
          text-transform: uppercase;
        }

        .pillar-monument-info h3 {
          margin: 0.52rem 0 1rem;
          color: #fffaf2;
          font-family: "Bodoni Moda", "Cormorant Garamond", serif;
          font-size: clamp(2.1rem, 3.35vw, 3.35rem);
          font-weight: 500;
          line-height: 1.03;
          letter-spacing: -0.04em;
        }

        .pillar-monument-info p {
          max-width: 31rem;
          margin: 0;
          color: rgba(244, 237, 228, 0.76);
          font-size: clamp(0.92rem, 1.2vw, 1rem);
          font-weight: 300;
          line-height: 1.82;
        }

        .pillar-monument-controls {
          display: flex;
          align-items: center;
          gap: 0.75rem;
          margin-top: 2.25rem;
        }

        .pillar-monument-control {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          width: 2.65rem;
          height: 2.65rem;
          color: rgba(255, 247, 231, 0.78);
          background: transparent;
          border: 1px solid rgba(214, 170, 69, 0.42);
          border-radius: 50%;
          cursor: pointer;
          transition:
            color 0.25s ease,
            border-color 0.25s ease,
            background 0.25s ease,
            transform 0.25s ease;
        }

        .pillar-monument-control:hover,
        .pillar-monument-control:focus-visible {
          color: #fffaf0;
          background: rgba(214, 170, 69, 0.12);
          border-color: rgba(236, 199, 112, 0.88);
          outline: none;
          transform: translateY(-2px);
        }

        .pillar-position {
          min-width: 4.2rem;
          color: rgba(244, 237, 227, 0.48);
          text-align: center;
          font-size: 0.62rem;
          font-weight: 600;
          letter-spacing: 0.16em;
        }

        .pillar-scene-shell {
          grid-area: scene;
          position: relative;
          min-width: 0;
        }

        .pillar-scene {
          position: relative;
          width: 100%;
          height: clamp(500px, 47vw, 640px);
          overflow: hidden;
          border: none;
          background: transparent;
          box-shadow: none;
          cursor: grab;
          touch-action: pan-y;
        }

        .pillar-scene::before {
          content: "";
          position: absolute;
          right: 9%;
          bottom: 8%;
          left: 9%;
          z-index: 0;
          height: 12%;
          background: radial-gradient(ellipse, rgba(228, 185, 94, 0.16), transparent 70%);
          filter: blur(12px);
          pointer-events: none;
        }

        .pillar-scene.is-dragging {
          cursor: grabbing;
        }

        .pillar-scene canvas {
          position: relative;
          z-index: 1;
          display: block;
          width: 100%;
          height: 100%;
          outline: none;
        }

        .pillar-scene-hint {
          position: absolute;
          right: 1.1rem;
          bottom: 0.9rem;
          z-index: 3;
          margin: 0;
          color: rgba(244, 237, 227, 0.42);
          font-size: 0.58rem;
          font-weight: 500;
          letter-spacing: 0.13em;
          text-transform: uppercase;
          pointer-events: none;
        }

        .pillar-scene-status {
          position: absolute;
          inset: 0;
          z-index: 4;
          display: none;
          place-items: center;
          padding: 2rem;
          color: rgba(255, 248, 235, 0.72);
          text-align: center;
          font-family: "Cormorant Garamond", serif;
          font-size: 1.2rem;
          line-height: 1.5;
        }

        .pillar-scene.is-unavailable .pillar-scene-status {
          display: grid;
        }

        @media (max-width: 980px) {
          .pillar-monument-layout {
            grid-template-columns: minmax(240px, 0.68fr) minmax(430px, 1.32fr);
            gap: 1.75rem;
          }

          .pillar-scene {
            height: 520px;
          }
        }

        @media (max-width: 760px) {
          .pillars-rotunda {
            padding: 4.5rem 1.25rem;
          }

          .pillars-rotunda::after {
            inset: 0.65rem;
          }

          .pillar-monument-heading {
            margin-bottom: 2.2rem;
          }

          .pillar-monument-layout {
            grid-template-areas:
              "scene"
              "info";
            grid-template-columns: minmax(0, 1fr);
            gap: 1.4rem;
          }

          .pillar-scene {
            height: clamp(390px, 112vw, 510px);
          }

          .pillar-monument-info {
            min-height: 0;
            padding: 1.65rem 0 0.5rem;
          }

          .pillar-monument-info::before {
            top: 0;
            right: 0;
            bottom: auto;
            left: 0;
            width: auto;
            height: 1px;
            background: linear-gradient(90deg, rgba(214, 170, 69, 0.55), transparent);
          }

          .pillar-info-symbol {
            margin-top: 1.35rem;
          }
        }

        @media (max-width: 430px) {
          .pillars-rotunda .section-title {
            font-size: clamp(2.45rem, 13vw, 3.3rem);
          }

          .pillar-scene {
            height: 390px;
          }

          .pillar-scene-hint {
            right: 0.8rem;
            bottom: 0.7rem;
            font-size: 0.52rem;
          }
        }

        @media (prefers-reduced-motion: reduce) {
          .transition-source-stage.transition-source-up,
          .transition-source-stage.transition-source-down,
          .transition-source-stage.transition-source-left,
          .transition-source-stage.transition-source-right,
          .page.transition-enter-bottom,
          .page.transition-enter-top,
          .page.transition-enter-right,
          .page.transition-enter-left {
            animation: none;
          }

          .educator-track {
            animation-play-state: paused;
          }

          .philosophy-slide,
          .philosophy-slide.is-active > img {
            animation: none;
            transition: none;
          }

          .pillar-monument-control {
            transition: none;
          }

          .page-scroll-cue span,
          .page-scroll-cue::after {
            animation: none;
          }
        }

        nav {
          background:
            linear-gradient(
              105deg,
              #fbfbfd 0%,
              #f4f3f7 52%,
              #faf9fc 100%
            );
          border-bottom: 1px solid #d7d3df;
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            inset 0 -2px 0 rgba(111, 50, 168, 0.08),
            0 7px 12px rgba(27, 13, 62, 0.18),
            0 18px 36px rgba(27, 13, 62, 0.14);
          backdrop-filter: none;
          gap: clamp(1.5rem, 3vw, 3.5rem);
          height: 88px;
          top: 0;
          padding-inline: clamp(1.5rem, 4vw, 4.5rem);
        }

        nav::after {
          content: "";
          position: absolute;
          right: 4vw;
          bottom: -3px;
          left: 4vw;
          height: 3px;
          background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(111, 50, 168, 0.58) 20%,
            rgba(245, 200, 0, 0.95) 50%,
            rgba(111, 50, 168, 0.58) 80%,
            transparent 100%
          );
          box-shadow: 0 2px 7px rgba(245, 200, 0, 0.22);
          pointer-events: none;
        }

        .nav-logo,
        .nav-cta {
          flex: 0 0 auto;
        }

        .nav-logo--image {
          display: flex;
          align-items: center;
          cursor: pointer;
          width: clamp(112px, 10vw, 154px);
          height: 76px;
          color: var(--navy);
          font-size: clamp(1.05rem, 1.7vw, 1.35rem);
          white-space: nowrap;
        }

        .nav-logo--image img {
          display: block;
          width: 100%;
          height: 100%;
          object-fit: contain;
        }

        .nav-links {
          flex: 1 1 auto;
          align-items: center;
          justify-content: center;
          gap: clamp(1.25rem, 2.6vw, 2.75rem);
          min-width: 0;
        }

        .nav-links li {
          flex: 0 0 auto;
        }

        .nav-links a {
          display: block;
          color: #51466d;
          white-space: nowrap;
        }

        .nav-links a:hover,
        .nav-links a.active {
          color: #6f32a8;
        }

        .nav-cta {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          background: #160a30;
          color: #ffffff;
          border: 1px solid rgba(245, 200, 0, 0.78);
          border-radius: 2px;
          padding: 0.72rem 1.35rem;
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 6px 16px rgba(45, 27, 94, 0.18);
        }

        .nav-cta:hover {
          background: #29134e;
          color: #ffffff;
          border-color: #f5c800;
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 8px 20px rgba(45, 27, 94, 0.24);
        }

        .nav-cta-icon {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          width: 1.25rem;
          height: 1.25rem;
          margin-left: 0.7rem;
          color: #f5c800;
          border: 1px solid rgba(245, 200, 0, 0.72);
          border-radius: 50%;
          font-family: "Cormorant Garamond", serif;
          font-size: 0.9rem;
          font-weight: 600;
          line-height: 1;
          transition:
            color 0.25s ease,
            background 0.25s ease,
            transform 0.25s ease;
        }

        .nav-cta:hover .nav-cta-icon {
          background: #f5c800;
          color: #2d1b5e;
          transform: scale(1.06);
        }

        @media (max-width: 980px) {
          nav {
            gap: 1.25rem;
            height: 80px;
            padding-inline: 1.5rem;
          }

          .nav-logo--image {
            width: 112px;
            height: 68px;
          }

          .nav-links {
            gap: 1.25rem;
          }

          .nav-links a {
            font-size: 0.7rem;
            letter-spacing: 0.09em;
          }
        }

        @media (max-width: 620px) {
          nav {
            gap: 0.5rem;
            padding-inline: 0.75rem;
          }

          .nav-logo--image {
            width: auto;
            height: 68px;
            font-size: 1rem;
          }

          .browse-menu summary {
            min-width: 88px;
            padding-inline: 0.65rem;
          }

          .browse-panel {
            position: fixed;
            top: 86px;
            right: 1rem;
            left: 1rem;
            width: auto;
          }

          .nav-cta {
            padding-inline: 0.85rem;
          }

          .nav-cta-icon {
            display: none;
          }
        }

/* ===== codex-home-reference ===== */
/* Floating dark header and editorial hero inspired by the supplied reference. */
        #navbar {
          top: 22px;
          right: clamp(1rem, 4.5vw, 4.75rem);
          left: clamp(1rem, 4.5vw, 4.75rem);
          width: auto;
          height: 82px;
          padding: 0 clamp(1.35rem, 2.5vw, 2.6rem);
          gap: clamp(1.35rem, 3vw, 3.5rem);
          color: #fffdf7;
          background:
            linear-gradient(105deg, rgba(26, 13, 48, 0.96), rgba(12, 6, 27, 0.94)),
            radial-gradient(circle at 34% 0%, rgba(245, 200, 0, 0.09), transparent 38%);
          border: none;
          border-radius: 18px;
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            inset 0 -1px 0 rgba(245, 200, 0, 0.08),
            0 0 0 1px rgba(245, 200, 0, 0.04),
            0 14px 42px rgba(5, 1, 15, 0.42),
            -6px 0 18px rgba(245, 200, 0, 0.12);
          backdrop-filter: blur(18px);
        }

        #navbar::after { display: none; }

        #navbar .nav-logo--image {
          order: 1;
          width: auto;
          height: auto;
          color: #fffdf7;
          font-family: "Cormorant Garamond", serif;
          font-size: clamp(1.45rem, 2vw, 1.9rem);
          font-weight: 600;
          letter-spacing: 0.015em;
        }

        #navbar .nav-links {
          order: 2;
          gap: clamp(1.4rem, 3.1vw, 3.6rem);
        }

        #navbar .nav-links a {
          position: relative;
          color: rgba(240, 234, 248, 0.78);
          font-size: 0.72rem;
          font-weight: 500;
          letter-spacing: 0.16em;
        }

        #navbar .nav-links a::after {
          content: "";
          position: absolute;
          right: 0;
          bottom: -0.55rem;
          left: 0;
          height: 1px;
          background: #f5c800;
          box-shadow: 0 0 8px rgba(245, 200, 0, 0.32);
          transform: scaleX(0);
          transform-origin: right center;
          transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
        }

        #navbar .nav-links a:hover {
          color: rgba(240, 234, 248, 0.78);
        }

        #navbar .nav-links a:hover::after {
          transform: scaleX(1);
          transform-origin: left center;
        }

        #navbar .nav-links a.active {
          color: #f5c800;
        }

        #navbar .browse-menu {
          order: 3;
        }

        #navbar .browse-menu summary {
          min-width: 132px;
          height: 52px;
          padding-inline: 1.35rem;
          color: #fff;
          background: rgba(32, 17, 58, 0.64);
          border: none;
          border-radius: 10px;
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 6px 20px rgba(5, 1, 15, 0.3);
          font-size: 0.72rem;
          letter-spacing: 0.14em;
          text-transform: uppercase;
        }

        #navbar .browse-menu[open] summary {
          background: rgba(41, 21, 72, 0.94);
        }

        #navbar .browse-panel {
          top: calc(100% + 0.75rem);
          right: 0;
          left: auto;
          width: min(410px, calc(100vw - 2rem));
          max-height: min(560px, calc(100vh - 126px));
          padding: 0.45rem 1rem;
          background:
            linear-gradient(150deg, rgba(24, 12, 45, 0.985), rgba(10, 5, 23, 0.985));
          border-color: rgba(205, 164, 49, 0.55);
          border-radius: 13px;
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 26px 70px rgba(3, 1, 12, 0.58);
        }

        #navbar .browse-option {
          min-height: 86px;
          padding: 1.05rem 2.5rem 1.05rem 4rem;
          border-bottom-color: rgba(205, 196, 222, 0.15);
        }

        #navbar .browse-option::before {
          position: absolute;
          top: 50%;
          left: 1rem;
          display: grid;
          width: 34px;
          height: 34px;
          place-items: center;
          color: #f5c800;
          border: 1px solid rgba(245, 200, 0, 0.68);
          border-radius: 7px;
          font-family: "Cormorant Garamond", serif;
          font-size: 1.2rem;
          transform: translateY(-50%);
        }

        #navbar .browse-option:nth-child(1)::before { content: "⌑"; }
        #navbar .browse-option:nth-child(2)::before { content: "♙"; }
        #navbar .browse-option:nth-child(3)::before { content: "▷"; }
        #navbar .browse-option:nth-child(4)::before { content: "▤"; }
        #navbar .browse-option:nth-child(5)::before { content: "✉"; }

        #navbar .browse-option strong {
          color: #fffdf8;
          font-family: "Cormorant Garamond", serif;
          font-size: 1rem;
          font-weight: 600;
          letter-spacing: 0.01em;
          text-transform: none;
        }

        #navbar .browse-option span {
          color: rgba(221, 214, 233, 0.72);
          font-size: 0.72rem;
          line-height: 1.45;
        }

        #navbar .nav-cta {
          display: none;
        }

        #page-home .hero {
          height: auto;
          min-height: min(100vh, 940px);
          padding: 132px clamp(1.5rem, 5.2vw, 5.5rem) 42px;
          background:
            radial-gradient(circle at 16% 45%, rgba(72, 43, 114, 0.18), transparent 34%),
            radial-gradient(circle at 82% 14%, rgba(130, 85, 147, 0.12), transparent 28%),
            linear-gradient(122deg, #0c061b 0%, #120824 48%, #0a0517 100%);
        }

        #page-home .hero-background-image {
          position: absolute;
          inset: 0;
          z-index: 0;
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center center;
          opacity: 1;
          filter: saturate(1.03) contrast(1.02) brightness(1.02);
          pointer-events: none;
        }

        #page-home .hero::before {
          content: "";
          position: absolute;
          inset: 0;
          z-index: 1;
          opacity: 1;
          background-image:
            linear-gradient(90deg, rgba(8, 3, 20, 0.46) 0%, rgba(10, 4, 22, 0.36) 44%, rgba(8, 3, 18, 0.16) 72%, rgba(7, 3, 16, 0.24) 100%),
            linear-gradient(180deg, rgba(8, 3, 18, 0.1), rgba(8, 3, 18, 0.26));
          background-size: auto;
          pointer-events: none;
        }

        #page-home .hero::after {
          display: none;
        }

        #page-home .hero-stage {
          position: relative;
          z-index: 2;
          grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
          gap: clamp(3rem, 6vw, 7rem);
          width: min(100%, 1480px);
          height: auto;
          min-height: min(calc(100vh - 174px), 766px);
        }

        #page-home .hero-copy .hero-eyebrow {
          margin-bottom: 1.15rem;
          color: #f5c800;
          font-size: 0.66rem;
          letter-spacing: 0.26em;
        }

        #page-home .hero-copy .hero-headline {
          margin-bottom: 1.25rem;
          color: #fffdf8;
          font-size: clamp(3.1rem, 5vw, 5rem);
          font-weight: 400;
          line-height: 0.98;
          letter-spacing: -0.035em;
          text-shadow: 0 10px 38px rgba(3, 1, 10, 0.35);
        }

        #page-home .hero-copy .hero-headline em {
          color: #e4b548;
        }

        #page-home .hero-copy .hero-sub {
          max-width: 640px;
          margin-bottom: 1.35rem;
          color: rgba(248, 243, 252, 0.86);
          font-size: 0.95rem;
          font-weight: 400;
          line-height: 1.55;
        }

        #page-home .hero-journey {
          width: min(100%, 620px);
        }

        #page-home .hero-journey-title {
          margin-bottom: 0.85rem;
          padding-top: 1rem;
          font-family: "Cormorant Garamond", serif;
          font-size: 1.12rem;
          font-weight: 500;
        }

        #page-home .hero-journey-title::before {
          width: 42px;
          background: #e9bd38;
        }

        #page-home .journey-options {
          gap: 0;
        }

        #page-home .journey-option {
          display: grid;
          grid-template-columns: 58px minmax(0, 1fr) 38px;
          gap: 1rem;
          width: calc(100% + 1.5rem);
          min-height: 94px;
          margin-left: -0.75rem;
          padding: 0.85rem 0.75rem;
          background: transparent;
          border: 1px solid transparent;
          border-bottom-color: rgba(214, 201, 231, 0.13);
          border-radius: 16px;
          transform: none;
        }

        #page-home .journey-option:last-child {
          border-bottom: 0;
        }

        #page-home .journey-option:hover {
          z-index: 2;
          background: linear-gradient(100deg, rgba(51, 29, 82, 0.88), rgba(24, 12, 45, 0.72));
          border-color: rgba(245, 200, 0, 0.38);
          border-radius: 20px;
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 14px 34px rgba(3, 1, 12, 0.34);
          transform: scale(1.025);
        }

        #page-home .journey-icon {
          display: grid;
          width: 54px;
          height: 54px;
          place-items: center;
          color: #f5c800;
          border: 1px solid rgba(245, 200, 0, 0.62);
          border-radius: 50%;
          transition: background 0.25s ease, transform 0.25s ease;
        }

        #page-home .journey-icon svg {
          width: 29px;
          height: 29px;
          fill: none;
          stroke: currentColor;
          stroke-linecap: round;
          stroke-linejoin: round;
          stroke-width: 1.35;
        }

        #page-home .journey-option:hover .journey-icon {
          background: rgba(245, 200, 0, 0.08);
          transform: scale(1.04);
        }

        #page-home .journey-copy {
          display: flex;
          min-width: 0;
          flex-direction: column;
          align-items: flex-start;
          justify-content: center;
        }

        #page-home .journey-copy small {
          margin-top: 0.22rem;
          color: rgba(236, 230, 243, 0.7);
          font-family: "Inter", sans-serif;
          font-size: 0.72rem;
          font-weight: 300;
          line-height: 1.45;
        }

        #page-home .journey-option strong {
          color: #fffdf7;
          font-size: 1.2rem;
          font-weight: 500;
        }

        #page-home .journey-arrow {
          width: 34px;
          height: 34px;
          align-self: center;
          border-color: rgba(245, 200, 0, 0.72);
        }

        #page-home .educator-showcase {
          height: min(760px, calc(100vh - 158px));
          min-height: 560px;
          overflow: hidden;
          border-radius: 12px;
          mask-image: none;
        }

        #page-home .educator-columns {
          gap: 0.8rem;
        }

        #page-home .educator-sequence {
          gap: 0.8rem;
          padding-bottom: 0.8rem;
        }

        #page-home .educator-card {
          border-color: rgba(205, 164, 49, 0.35);
          border-radius: 12px;
          box-shadow: 0 18px 38px rgba(3, 1, 12, 0.38);
        }

        @media (max-width: 1080px) {
          #navbar {
            right: 1.25rem;
            left: 1.25rem;
            padding-inline: 1.35rem;
          }

          #navbar .nav-links {
            gap: 1.25rem;
          }

          #page-home .hero-stage {
            grid-template-columns: minmax(0, 1fr) 390px;
            gap: 2.5rem;
          }

          #page-home .hero-copy .hero-headline {
            font-size: clamp(2.8rem, 5vw, 4rem);
          }
        }

        @media (min-width: 769px) and (max-width: 1100px) {
          #navbar {
            justify-content: space-between;
          }

          #navbar .nav-links {
            display: none;
          }

          #page-home .hero {
            min-height: 0;
            padding: 124px clamp(2.25rem, 6vw, 4.5rem) 4.5rem;
          }

          #page-home .hero-stage {
            grid-template-columns: minmax(0, 1fr);
            gap: 3.5rem;
            width: min(100%, 840px);
            min-height: 0;
          }

          #page-home .hero-copy {
            width: min(100%, 760px);
            margin: 0 auto;
          }

          #page-home .hero-copy .hero-headline {
            max-width: 720px;
            font-size: clamp(3.75rem, 8vw, 5rem);
          }

          #page-home .hero-copy .hero-sub,
          #page-home .hero-journey {
            max-width: 680px;
          }

          #page-home .educator-showcase {
            width: 100%;
            height: min(650px, 78vw);
            min-height: 560px;
            margin: 0 auto;
          }
        }

        @media (max-width: 768px) {
          #navbar {
            top: 12px;
            right: 0.75rem;
            left: 0.75rem;
            height: 68px;
            padding-inline: 1rem;
            border-radius: 14px;
          }

          #navbar .nav-logo--image {
            font-size: 1.3rem;
          }

          #navbar .browse-menu summary {
            min-width: 104px;
            height: 44px;
            padding-inline: 0.9rem;
          }

          #navbar .browse-panel {
            position: fixed;
            top: 88px;
            right: 0.75rem;
            left: 0.75rem;
            width: auto;
          }

          #page-home .hero {
            padding: 108px 1.25rem 3.5rem;
          }

          #page-home .hero-background-image {
            opacity: 1;
            object-position: 58% center;
          }

          #page-home .hero::before {
            background-image:
              linear-gradient(90deg, rgba(8, 3, 20, 0.46), rgba(8, 3, 20, 0.32)),
              linear-gradient(180deg, rgba(8, 3, 18, 0.12), rgba(8, 3, 18, 0.3));
            background-size: auto;
          }

          #page-home .hero-stage {
            grid-template-columns: 1fr;
            gap: 2.75rem;
          }

          #page-home .hero-copy .hero-headline {
            font-size: clamp(2.65rem, 12vw, 3.6rem);
          }

          #page-home .educator-showcase {
            height: 540px;
            min-height: 0;
          }

          #page-home .journey-option {
            grid-template-columns: 48px minmax(0, 1fr) 32px;
            gap: 0.8rem;
            width: calc(100% + 0.75rem);
            min-height: 84px;
            margin-left: -0.375rem;
            padding-inline: 0.375rem;
          }

          #page-home .journey-icon {
            width: 46px;
            height: 46px;
          }

          #page-home .journey-icon svg {
            width: 24px;
            height: 24px;
          }

          #page-home .journey-option strong {
            font-size: 1.02rem;
          }

          #page-home .journey-copy small {
            font-size: 0.66rem;
          }

          #page-home .journey-arrow {
            width: 30px;
            height: 30px;
          }
        }

        @media (max-width: 900px) and (max-height: 600px) {
          #page-home .hero {
            padding-top: 96px;
          }

          #page-home .educator-showcase {
            height: 430px;
            min-height: 0;
          }
        }

/* ===== Tutor standards tabs ===== */
.tutor-standards {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 7rem) 5vw;
  background:
    radial-gradient(circle at 12% 18%, rgba(129, 94, 193, 0.08), transparent 31%),
    radial-gradient(circle at 86% 72%, rgba(245, 200, 0, 0.055), transparent 28%),
    #f5f2ff;
}

.tutor-standards::before,
.tutor-standards::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(54, 31, 105, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.tutor-standards::before { top: -230px; right: -80px; }
.tutor-standards::after { bottom: -250px; left: -120px; }

.standards-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1100px, 100%);
  margin: 0 auto clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(45, 27, 94, 0.14);
}

.standards-tab {
  position: relative;
  padding: 0.85rem 1.4rem 1rem;
  color: rgba(45, 27, 94, 0.55);
  background: transparent;
  border: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease;
}

.standards-tab::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  bottom: -1px;
  left: 1.4rem;
  height: 2px;
  background: #e1b500;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.standards-tab:hover,
.standards-tab.is-active { color: #20103f; }
.standards-tab.is-active::after { transform: scaleX(1); }

.standards-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(420px, 1.25fr);
  gap: clamp(3.5rem, 7vw, 7.5rem);
  width: min(1100px, 100%);
  min-height: 430px;
  margin: 0 auto;
  align-items: center;
}

.standards-panel[hidden] { display: none; }
.standards-panel.is-active { animation: standardsPanelEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }

.standards-copy .section-eyebrow {
  margin-bottom: 1.35rem;
  color: #d8ad00;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

.standards-copy h2 {
  color: #1e103e;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.standards-copy h2 em {
  color: #2d1b5e;
  font-weight: 400;
}

.standards-rule {
  display: block;
  width: 54px;
  height: 2px;
  margin: 1.7rem 0 1.8rem;
  background: #e4b900;
}

.standards-copy > p:last-child {
  max-width: 390px;
  color: #67578e;
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.75;
}

.standards-values {
  display: grid;
}

.standards-value {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 2rem;
  min-height: 190px;
  padding: 1.9rem 0;
  align-items: center;
  border-bottom: 1px solid rgba(45, 27, 94, 0.13);
}

.standards-value:last-child { border-bottom: 0; }

.standards-icon {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  color: #31206a;
  border: 1px solid rgba(49, 32, 106, 0.32);
  border-radius: 50%;
}

.standards-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.standards-icon .gold-stroke { stroke: currentColor; }

.standards-value h3 {
  margin-bottom: 0.75rem;
  color: #1f123e;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.standards-value p {
  max-width: 440px;
  color: #69598e;
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.72;
}

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

@media (max-width: 760px) {
  .tutor-standards { padding: 4rem 1.25rem; }
  .standards-tabs { overflow-x: auto; }
  .standards-tab { flex: 1 0 auto; padding-inline: 0.8rem; }
  .standards-tab::after { right: 0.8rem; left: 0.8rem; }
  .standards-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 2.6rem;
  }
  .standards-copy h2 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .standards-value {
    grid-template-columns: 82px 1fr;
    gap: 1.25rem;
    min-height: 150px;
  }
  .standards-icon { width: 76px; height: 76px; }
  .standards-icon svg { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .standards-panel.is-active { animation: none; }
}

/* ===== tutor pathways and availability ===== */
.mobile-tutor-link {
  display: none;
}

#navbar .browse-option.is-development {
  min-height: 104px;
  padding-right: 2.5rem;
  cursor: not-allowed;
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(245, 200, 0, 0.055), transparent 70%);
}

#navbar .browse-option.is-development:hover {
  background:
    linear-gradient(90deg, rgba(245, 200, 0, 0.055), transparent 70%);
}

#navbar .browse-option.is-development::after {
  display: none;
}

#navbar .browse-option.is-development strong,
#navbar .browse-option.is-development > span:not(.development-badge) {
  opacity: 0.58;
}

#navbar .browse-option .development-badge {
  position: static;
  display: inline-flex;
  width: auto;
  margin-top: 0.5rem;
  padding: 0.28rem 0.48rem;
  align-items: center;
  color: #f5c800;
  background: rgba(245, 200, 0, 0.08);
  border: 1px solid rgba(245, 200, 0, 0.4);
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transform: none;
}

#navbar .browse-option:nth-child(6)::before {
  content: "T";
}

#navbar .browse-option::before {
  content: attr(data-icon);
}

#navbar .browse-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#navbar .browse-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.telegram-invite {
  max-width: 620px;
  margin: 2.75rem auto 0;
  padding-top: 2rem;
  text-align: center;
  border-top: 1px solid rgba(45, 27, 94, 0.12);
}

.telegram-invite p {
  margin-bottom: 0.9rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.6;
}

.telegram-invite a {
  display: inline-flex;
  min-height: 46px;
  padding: 0.72rem 1.1rem;
  align-items: center;
  gap: 0.45rem;
  color: #2d1b5e;
  background: rgba(245, 200, 0, 0.1);
  border: 1px solid rgba(205, 164, 49, 0.64);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.telegram-invite a:hover {
  background: rgba(245, 200, 0, 0.2);
  border-color: #d4aa00;
  transform: translateY(-2px);
}

.telegram-invite a span {
  color: #745b00;
}

.telegram-invite a b {
  color: #b48d00;
  font-size: 1rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  #navbar {
    gap: 0.45rem;
    padding-inline: 0.75rem;
  }

  #navbar .nav-logo--image {
    width: 94px;
    font-size: 1.08rem;
  }

  #navbar .mobile-tutor-link {
    display: inline-flex;
    height: 40px;
    padding: 0 0.65rem;
    align-items: center;
    justify-content: center;
    color: #fffdf8;
    background: rgba(245, 200, 0, 0.08);
    border: 1px solid rgba(245, 200, 0, 0.38);
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 0.57rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
  }

  #navbar .mobile-tutor-link:hover,
  #navbar .mobile-tutor-link:focus-visible {
    color: #160a30;
    background: #f5c800;
    outline: none;
  }

  #navbar .browse-menu summary {
    min-width: 92px;
    padding-inline: 0.7rem;
  }

  #navbar .browse-panel {
    max-height: calc(100dvh - 106px);
  }

  #navbar .browse-option.is-development {
    padding-right: 2.5rem;
  }

  #navbar .browse-option .development-badge {
    padding-inline: 0.38rem;
    font-size: 0.47rem;
  }

  .telegram-invite {
    margin-top: 2.25rem;
  }
}

@media (max-width: 380px) {
  #navbar .nav-logo--image {
    width: 82px;
    font-size: 0.98rem;
  }

  #navbar .mobile-tutor-link {
    padding-inline: 0.48rem;
    font-size: 0.52rem;
  }

  #navbar .browse-menu summary {
    min-width: 86px;
    font-size: 0.6rem;
  }
}

/* ===== mobile viewport stability ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

.page,
.page.active {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

#navbar .browse-menu:not([open]) .browse-panel {
  display: none;
}

@media (max-width: 768px) {
  #navbar {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top));
    z-index: 1000;
    max-width: calc(100vw - 1.5rem);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }

  #page-home .journey-option {
    width: 100%;
    margin-left: 0;
  }

  #page-home .philosophy,
  #page-home .philosophy-carousel,
  #page-home .philosophy-slides {
    max-width: 100%;
    overflow-x: clip;
  }
}
