/* Eudelics — design tokens follow brand/eudelics-style-guide-v003.pdf */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/assets/fonts/inter-var.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/baloo-2-var.woff2') format('woff2'); }
@font-face { font-family: 'Bree Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/bree-serif-400.woff2') format('woff2'); }

:root {
  --gold: #c1b099;
  --gold-deep: #8a7a62;       /* gold for text on light backgrounds (AA) */
  --sky: #66b0ca;
  --sky-deep: #2f7f9c;        /* sky for text/links on light backgrounds (AA) */
  --sky-shade: #c2dfea;
  --sky-mist: #eef6f9;
  --slate: #39393a;
  --slate-deep: #232324;
  --ink: #39393a;
  --muted: #6b6b6d;
  --line: #e7e3dc;
  --paper: #fbfaf8;
  --white: #fff;

  --font-head: 'Baloo 2', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-quote: 'Bree Serif', Georgia, serif;

  --gutter: clamp(20px, 5vw, 56px);
  --wrap: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-weight: 300; font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--slate); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type scale (guide: H1 Baloo 2 44 / H2 Inter Light 32 / H3 Inter Bold 24 / H4 Inter Bold 18 / body Inter Light 18) */
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--slate); }
h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(34px, 5.6vw, 64px); line-height: 1.08; letter-spacing: -.01em; }
h2 { font-weight: 300; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.3; }
h4 { font-weight: 700; font-size: 18px; line-height: 1.4; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.65; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--tint { background: var(--sky-mist); }
.section--white { background: var(--white); }
.center { text-align: center; }
.center .lead, .center p { margin-inline: auto; }

/* Buttons — uppercase, tracked, square (guide) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 34px; font: 500 14px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: transform .25s var(--ease), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--slate { background: var(--slate); color: #fff; }
.btn--slate:hover { background: var(--slate-deep); color: #fff; box-shadow: 0 12px 24px rgba(35,35,36,.25); }
.btn--sky { background: var(--sky); color: var(--slate-deep); font-weight: 600; }
.btn--sky:hover { background: #7bbdd5; color: var(--slate-deep); box-shadow: 0 12px 28px rgba(102,176,202,.45); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--outline { border-color: var(--slate); color: var(--slate); }
.btn--outline:hover { background: var(--slate); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow-link { font-weight: 500; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--sky-deep); display: inline-flex; gap: 8px; align-items: center; }
.arrow-link span { transition: transform .25s var(--ease); }
.arrow-link:hover span { transform: translateX(5px); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__logo { display: block; line-height: 0; }
.nav__logo img { height: 38px; width: auto; }
.nav__logo .logo-light { height: 46px; }
.nav__logo .logo-dark { display: none; }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s ease, color .25s ease; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { border-color: currentColor; }
.nav__links .btn { padding: 13px 24px; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: #fff; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .2s ease; }
.nav--solid, .nav.is-solid { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav--solid .logo-light, .nav.is-solid .logo-light { display: none; }
.nav--solid .logo-dark, .nav.is-solid .logo-dark { display: block; }
.nav--solid .nav__links a:not(.btn), .nav.is-solid .nav__links a:not(.btn) { color: var(--slate); }
.nav--solid .nav__toggle, .nav.is-solid .nav__toggle { color: var(--slate); }
.nav--solid .nav__links .btn--sky, .nav.is-solid .nav__links .btn--sky { background: var(--slate); color: #fff; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px var(--gutter) 28px; box-shadow: 0 24px 40px rgba(35,35,36,.12); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s ease, visibility .25s; }
  .nav__links a:not(.btn) { color: var(--slate) !important; display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { margin-top: 20px; }
  .nav__links .btn { width: 100%; background: var(--slate) !important; color: #fff !important; }
  .nav.is-open { background: #fff; }
  .nav.is-open .logo-light { display: none; }
  .nav.is-open .logo-dark { display: block; }
  .nav.is-open .nav__toggle { color: var(--slate); }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: #fff; background: var(--slate-deep); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Scaled from the top-left to crop the generator watermark out of the bottom-right corner of the video */
.hero__media video { transform: scale(1.14); transform-origin: 0 0; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(35,35,36,.55) 0%, rgba(35,35,36,.25) 35%, rgba(35,35,36,.78) 100%); }
.hero .wrap { width: 100%; padding-top: calc(var(--nav-h) + 60px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero h1 { color: #fff; max-width: 15em; margin-bottom: 26px; text-wrap: balance; }
.hero p.lead { color: rgba(255,255,255,.88); max-width: 36em; margin-bottom: 38px; }
.hero--page { min-height: clamp(380px, 56vh, 540px); }
.hero--page h1 { margin-bottom: 0; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 40px; color: #fff; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; opacity: .8; text-decoration: none; }
.hero__scroll::after { content: ''; width: 1px; height: 56px; background: currentColor; transform-origin: top; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) { .hero__scroll { display: none; } }
.rise { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; }
.rise:nth-child(2) { animation-delay: .12s; } .rise:nth-child(3) { animation-delay: .24s; } .rise:nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Quote band — the guide's gold box with special serif heading */
.quote-band { background: var(--gold); text-align: center; padding-block: clamp(64px, 9vw, 112px); }
.quote-band blockquote { margin: 0 auto; max-width: 880px; font-family: var(--font-quote); font-size: clamp(24px, 3.6vw, 38px); line-height: 1.35; color: #fff; text-wrap: balance; }
.quote-band blockquote::before { content: '“'; display: block; font-size: 1.6em; line-height: .6; margin-bottom: .2em; color: rgba(255,255,255,.6); }

/* Cards & grids */
.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); box-shadow: 0 1px 2px rgba(35,35,36,.04), 0 12px 32px -12px rgba(35,35,36,.1); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(35,35,36,.04), 0 28px 48px -16px rgba(35,35,36,.18); }
.card p { color: #555557; }
.card .arrow-link { margin-top: auto; padding-top: 12px; }
.card__num { font-family: var(--font-head); font-size: 15px; letter-spacing: .2em; color: var(--sky-deep); margin-bottom: 18px; display: block; }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; }

/* Phases (home strip + program) */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.phase { padding: 36px clamp(0px, 2vw, 28px) 36px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .phase { border-bottom: 0; border-right: 1px solid var(--line); padding-left: 28px; } .phase:first-child { padding-left: 0; } .phase:last-child { border-right: 0; } }
.phase__label { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 10px; display: block; }
.phase h3 { margin-bottom: 12px; }
.phase p { color: #555557; margin: 0 0 .8em; font-size: 17px; }

/* Photo band with testimonial */
.photo-band { position: relative; isolation: isolate; color: #fff; text-align: center; padding-block: clamp(80px, 12vw, 150px); background: var(--slate-deep); overflow: hidden; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-band::after { content: ''; position: absolute; inset: 0; background: rgba(35,35,36,.72); z-index: -1; }
.photo-band blockquote { margin: 0 auto 20px; max-width: 820px; font-family: var(--font-quote); font-size: clamp(22px, 3vw, 32px); line-height: 1.45; color: #fff; text-wrap: balance; }
.photo-band cite { display: block; font-style: normal; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.photo-band .arrow-link { color: #fff; }

/* CTA band */
.cta-band { background: var(--sky-shade); text-align: center; padding-block: clamp(64px, 9vw, 112px); }
.cta-band h2 { max-width: 18em; margin-inline: auto; }
.cta-band p { max-width: 34em; margin-inline: auto; margin-bottom: 32px; }

/* Prose pages */
.prose p { font-size: 18px; }
.prose p:first-of-type { font-size: clamp(20px, 2.2vw, 23px); line-height: 1.6; color: var(--slate); }
.sources { background: var(--sky-mist); border-left: 3px solid var(--sky); padding: 22px 28px; font-size: 15px; margin-top: 48px; border-radius: 0 var(--radius) var(--radius) 0; }
.sources p { margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; font-size: 17px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: .5em; width: 18px; height: 18px; border-radius: 50%; background: var(--sky-shade) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.4 2.4L13 6.2' fill='none' stroke='%232f7f9c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 24px 0; font-weight: 600; font-size: 18px; color: var(--slate); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 300; font-size: 30px; line-height: 1; color: var(--sky-deep); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 26px 0; margin: 0; color: #555557; }

/* Testimonials */
.testimonials { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.testimonial { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: 0 1px 2px rgba(35,35,36,.04), 0 12px 32px -12px rgba(35,35,36,.1); }
.testimonial blockquote { margin: 0 0 22px; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.7; color: var(--slate); }
.testimonial figcaption { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.testimonial { margin: 0; }

/* Forms */
.panel { background: var(--white); border-radius: 18px; padding: clamp(26px, 5vw, 56px); box-shadow: 0 1px 2px rgba(35,35,36,.04), 0 30px 60px -24px rgba(35,35,36,.18); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.input { width: 100%; padding: 16px 18px; font: 300 17px/1.5 var(--font-body); color: var(--slate); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.input:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(102,176,202,.25); background: #fff; }
textarea.input { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; }

/* Screening stepper */
.steps { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--muted); }
.progress { flex: 1; max-width: 220px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--sky); border-radius: 2px; transition: width .5s var(--ease); }
.step { display: none; }
.step.is-active { display: block; animation: rise .5s var(--ease) both; }
.step h2 { font-weight: 400; font-size: clamp(22px, 3vw, 28px); line-height: 1.35; margin-bottom: 26px; }
.choices { display: grid; gap: 12px; }
.choices--row { grid-auto-flow: column; grid-auto-columns: 1fr; }
.choice { padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; font: 400 17px/1.3 var(--font-body); color: var(--slate); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s var(--ease); }
.choice:hover { border-color: var(--sky); background: var(--sky-mist); transform: translateY(-1px); }
.choice[aria-pressed="true"] { border-color: var(--sky-deep); background: var(--sky-shade); font-weight: 500; }
.choices--row .choice { text-align: center; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.scale .choice { text-align: center; padding: 20px 0; font-size: 20px; }
.scale-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 12px; }
.step-actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.back { background: none; border: 0; color: var(--muted); font: 400 14px var(--font-body); cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.fineprint { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 22px 0 0; }
.done { text-align: center; padding: 16px 0; }
.done h2 { font-weight: 400; }
.done p { max-width: 30em; margin-inline: auto; }
.form-msg { margin-top: 16px; font-size: 15px; }
.form-msg.is-error { color: #a33a3a; }

/* Footer */
.footer { background: var(--slate-deep); color: rgba(255,255,255,.72); padding-block: clamp(48px, 7vw, 80px) 36px; font-size: 15px; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 24em; font-size: 15px; margin: 0; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__cols { display: flex; gap: clamp(40px, 8vw, 110px); flex-wrap: wrap; }
.footer__bottom { padding-top: 28px; font-size: 13px; color: rgba(255,255,255,.5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Reveal on scroll (only hidden when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .rise { opacity: 1; transform: none; }
}

/* Legal / policy pages */
.legal .prose p:first-of-type, .legal p:first-of-type { font-size: 18px; color: inherit; line-height: 1.7; }
.legal-jump { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 40px; }
.legal-jump a { font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.legal-title { margin-top: 1.6em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.policy { font-size: 16px; }
.policy h2 { font-weight: 700; font-size: 19px; letter-spacing: 0; margin: 2.2em 0 .7em; display: flex; gap: 14px; color: var(--slate); }
.policy .num { color: var(--gold-deep); font-variant-numeric: tabular-nums; min-width: 2.4em; font-weight: 600; }
.policy p { margin: 0 0 .9em; font-size: 16px !important; line-height: 1.7; }
.policy p.clause { display: flex; gap: 14px; }
.policy p.clause .num { flex: 0 0 2.4em; font-size: 14px; padding-top: 2px; }
.policy ul.alpha { list-style: lower-alpha; margin: 0 0 1em 4.4em; padding-left: 1.2em; display: grid; gap: 8px; }
.policy ul.alpha li { padding-left: 4px; }

.consent { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 8px; font-size: 15px; line-height: 1.6; cursor: pointer; }
.consent input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; accent-color: var(--slate); cursor: pointer; }
