/* UDBHO — design preview
   Tokens: Forest / Paper / Dawn. Zodiak for display & headings, Switzer for everything else. */

@font-face {
  font-family: "Zodiak";
  src: url("/fonts/Zodiak-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #13322b;
  --forest-deep: #0d241f;
  --forest-70: rgba(19, 50, 43, 0.72);
  --forest-50: rgba(19, 50, 43, 0.5);
  --forest-12: rgba(19, 50, 43, 0.12);
  --paper: #f6f1e7;
  --paper-2: #efe8da;
  --paper-70: rgba(246, 241, 231, 0.74);
  --paper-14: rgba(246, 241, 231, 0.14);
  --dawn: #f2a541;
  --dawn-soft: rgba(242, 165, 65, 0.16);

  --f-display: "Zodiak", Georgia, "Times New Roman", serif;
  --f-text: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-rise: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--forest);
  font-family: var(--f-text);
  font-size: clamp(16px, 0.25vw + 15.2px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--dawn); color: var(--forest); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; border-radius: 6px; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12.5px; font-weight: 560; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--forest-70); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow-dawn { color: var(--dawn); }

h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw + 14px, 58px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 17ch;
  text-wrap: balance;
}
h3 { font-weight: 560; font-size: clamp(19px, 0.6vw + 16px, 23px); line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 0.5vw + 15px, 21px); line-height: 1.55; color: var(--forest-70); max-width: 34em; }
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lead { margin-top: 24px; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 520 16px/1 var(--f-text); text-decoration: none; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-solid { background: var(--forest); color: var(--paper); }
.btn-solid:hover { background: var(--forest-deep); box-shadow: 0 10px 30px -12px rgba(19,50,43,.6); }
.btn-ghost { color: var(--forest); padding: 0 8px; text-decoration: underline; text-decoration-color: var(--forest-50); text-underline-offset: 6px; }
.btn-ghost:hover { text-decoration-color: var(--forest); }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--forest); box-shadow: 0 0 0 0 var(--dawn-soft), 0 0 60px -6px rgba(242,165,65,.55); }
.btn-light:hover { box-shadow: 0 0 0 8px var(--dawn-soft), 0 0 80px 0 rgba(242,165,65,.6); }

/* ---------- preview bar + header ---------- */
.preview-bar {
  background: var(--forest-deep); color: var(--paper-70);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 7px 12px;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--forest-12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-sun { flex: none; }
.menu-cta { display: none; }
.brand-sun { width: 38px; height: 26px; fill: none; stroke: var(--forest); stroke-width: 2.2; stroke-linecap: round; }
.brand-word { font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: 0.14em; padding-top: 3px; }
.nav { display: flex; gap: 34px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--forest-70); position: relative; padding: 6px 0; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--forest); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--forest-12); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--forest); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; padding: 8px var(--gutter) 28px; border-top: 1px solid var(--forest-12); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--f-display); font-size: 30px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--forest-12); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 9vw, 128px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(44px, 4.6vw + 16px, 88px);
  line-height: 1; letter-spacing: -0.025em; margin-bottom: 32px;
}
.hero-title em { font-style: normal; color: var(--forest); position: relative; }
.hero-title em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .26em;
  background: linear-gradient(90deg, rgba(242,165,65,0), rgba(242,165,65,.55) 15%, rgba(242,165,65,.55) 85%, rgba(242,165,65,0));
  z-index: -1; transform: scaleX(0); transform-origin: left;
  animation: underline 1.1s var(--ease) 1.5s forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
@media (min-width: 1000px) { .hero-title .line { white-space: nowrap; } }
.show-sm { display: none; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1s var(--ease-rise) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .08s; }
.hero-title .line:nth-child(3) > span { animation-delay: .16s; }
.hero-title .line:nth-child(4) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: 14.5px; color: var(--forest-50); }

.hero-art { position: relative; }
.sunrise { width: 100%; height: auto; overflow: visible; }
.sunrise path { fill: none; stroke: var(--forest); stroke-linecap: round; }
.sun-arc { stroke-width: 2.4; }
.horizon { stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) .2s forwards; }
.reflect { stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.f1 { animation: draw .9s var(--ease) 1.5s forwards; }
.f2 { animation: draw .8s var(--ease) 1.65s forwards; }
.f3 { animation: draw .7s var(--ease) 1.8s forwards; }
.sun-body { transform: translateY(150px); animation: rise 2.2s var(--ease-rise) .5s forwards; }
.sun-glow { opacity: 0; transform-origin: 300px 300px; transform: scale(.6); animation: glow 2.6s var(--ease) .7s forwards; }
/* sun rays: keep turning and breathing, never settle */
.sun-rays { opacity: 0; transform-box: view-box; transform-origin: 300px 300px; animation: raysIn 1.2s var(--ease) 2.3s forwards, raysSpin 60s linear 2.3s infinite; }
.sunrise .ray { fill: none; stroke-linecap: round; transform-box: view-box; transform-origin: 300px 300px; }
.sunrise .ray-long { stroke: var(--dawn); stroke-width: 2.4; animation: raysBreathe 3.6s ease-in-out 2.3s infinite; }
.sunrise .ray-short { stroke: var(--forest); stroke-opacity: .45; stroke-width: 2; animation: raysBreathe 3.6s ease-in-out 4.1s infinite; }
@keyframes raysIn { to { opacity: 1; } }
@keyframes raysSpin { to { transform: rotate(360deg); } }
@keyframes raysBreathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.09); opacity: .55; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes glow { to { opacity: 1; transform: scale(1); } }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: -4px; text-align: center;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--forest-50);
  opacity: 0; animation: fade 1s var(--ease) 2.2s forwards;
}
.hero-caption span { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--forest-70); }
@keyframes fade { to { opacity: 1; } }

/* ---------- ways ---------- */
.ways { padding: var(--section) 0; border-top: 1px solid var(--forest-12); }
.ways-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--forest-12); }
.way {
  display: grid; grid-template-columns: 90px 1.3fr 1fr; gap: 24px; align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--forest-12);
  transition: padding-left .5s var(--ease);
}
.way:hover { padding-left: 12px; }
.way-num { font-family: var(--f-display); font-size: 20px; color: var(--forest-50); }
.way h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 1.8vw + 16px, 38px); letter-spacing: -0.01em; margin-bottom: 10px; }
.way-body p { color: var(--forest-70); max-width: 32em; }
.way-fit { font-size: 15px; color: var(--forest-70); padding-left: 18px; border-left: 2px solid var(--dawn); }
.subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 56px 0 0; }
.subjects > div { border-top: 1px solid var(--forest-12); padding-top: 18px; }
.subjects dt { font-size: 12.5px; font-weight: 560; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-50); margin-bottom: 8px; }
.subjects dd { margin: 0; font-family: var(--f-display); font-size: clamp(21px, .8vw + 16px, 26px); line-height: 1.35; color: var(--forest); }
.subjects dd { display: flex; flex-wrap: wrap; column-gap: 1.05em; overflow: hidden; }
.subjects dd span { position: relative; white-space: nowrap; }
/* saffron dot between words; a dot that would start a line falls outside and is clipped */
.subjects dd span + span::before { content: "·"; position: absolute; left: -.68em; color: var(--dawn); }

/* ---------- dark chapters ---------- */
.chapter-dark { background: var(--forest); color: var(--paper); }
.chapter-dark .lead { color: var(--paper-70); }

/* ---------- find your path ---------- */
.path { padding: var(--section) 0; position: relative; overflow: hidden; overflow: clip; }
.path::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: 10%;
  background: radial-gradient(circle, rgba(242,165,65,.12), rgba(242,165,65,0) 60%); pointer-events: none;
}
.path-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 72px); position: relative; }
.path-intro h2 { max-width: 20ch; margin-bottom: 24px; }
.path-stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.pattern-wrap { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.pattern { width: 100%; height: 100%; overflow: visible; }
.pattern path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pattern .ring { stroke: rgba(246,241,231,.82); stroke-width: 1.1; }
.pattern .ring.warm { stroke: var(--dawn); stroke-width: 1.6; }
.pattern .seed { stroke: rgba(246,241,231,.5); stroke-width: 1.1; stroke-dasharray: 3 6; }
.pattern-legend { text-align: center; font-size: 14px; color: var(--paper-70); margin-top: 8px; min-height: 1.6em; }

.path-card {
  background: rgba(246,241,231,.06); border: 1px solid var(--paper-14);
  border-radius: 24px; padding: clamp(24px, 3vw, 40px); min-height: 460px;
  display: flex; flex-direction: column;
}
.progress { height: 2px; background: var(--paper-14); border-radius: 2px; overflow: hidden; margin-bottom: 28px; }
.progress span { display: block; height: 100%; width: 0; background: var(--dawn); transition: width .6s var(--ease); }
#path-step { flex: 1; display: flex; flex-direction: column; }
.step-anim { animation: stepIn .55s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.q-count { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--dawn); margin-bottom: 12px; }
.q-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 1.4vw + 18px, 34px); line-height: 1.15; margin-bottom: 24px; }
.options { display: grid; gap: 10px; }
.opt {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; text-align: left; min-height: 56px; padding: 14px 20px;
  background: transparent; color: var(--paper); border: 1px solid rgba(246,241,231,.22); border-radius: 14px;
  font: 450 16.5px/1.3 var(--f-text); cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.opt::after { content: "→"; opacity: .35; transition: opacity .25s, transform .3s var(--ease); }
.opt:hover { border-color: var(--paper); background: rgba(246,241,231,.06); }
.opt:hover::after { opacity: 1; transform: translateX(3px); }
.opt.chosen { border-color: var(--dawn); background: rgba(242,165,65,.1); }
.opt.chosen::after { content: "✓"; opacity: 1; color: var(--dawn); }
.path-foot { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; color: var(--paper-70); }
.link-btn { background: none; border: 0; color: var(--paper-70); font: inherit; cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(246,241,231,.3); }
.link-btn:hover { color: var(--paper); }
.intro-title { font-family: var(--f-display); font-size: clamp(28px, 1.6vw + 18px, 38px); line-height: 1.12; margin-bottom: 16px; }
.intro-list { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 10px; color: var(--paper-70); }
.intro-list li { display: flex; gap: 12px; }
.intro-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dawn); margin-top: .62em; flex: none; }
.btn-dawnline { background: var(--paper); color: var(--forest); align-self: flex-start; }
.btn-dawnline:hover { box-shadow: 0 0 0 6px var(--dawn-soft); }
.privacy { font-size: 13.5px; color: var(--paper-70); margin-top: 18px; }

.result-title { font-family: var(--f-display); font-size: clamp(28px, 1.6vw + 18px, 38px); line-height: 1.1; margin-bottom: 22px; }
.result-row { padding: 16px 0; border-top: 1px solid var(--paper-14); }
.result-row .k { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dawn); margin-bottom: 4px; }
.result-row .v { font-size: 20px; font-weight: 520; }
.result-row .d { font-size: 15px; color: var(--paper-70); margin-top: 2px; }
.result-note { font-size: 15px; color: var(--paper-70); margin: 16px 0 22px; }
.msg-preview {
  font: 400 14px/1.55 var(--f-text); white-space: pre-wrap; color: var(--paper);
  background: rgba(0,0,0,.18); border: 1px solid var(--paper-14); border-radius: 14px; padding: 14px 16px; margin: 4px 0 18px;
}
.result-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.btn-wa { background: var(--paper); color: var(--forest); }
.btn-wa:hover { box-shadow: 0 0 0 6px var(--dawn-soft); }

/* ---------- teachers ---------- */
.teachers { padding: var(--section) 0; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier {
  border: 1px solid var(--forest-12); border-radius: var(--radius); padding: 32px 28px 30px;
  display: flex; flex-direction: column; gap: 6px; background: var(--paper);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.tier:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(19,50,43,.45); border-color: var(--forest-50); }
.rings { width: 96px; height: 96px; margin-bottom: 18px; overflow: visible; }
.rings circle { fill: none; stroke: var(--forest); stroke-width: 1.3; }
.rings circle.core { stroke: var(--dawn); stroke-width: 2; }
.tier-tag { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-50); }
.tier h3 { font-family: var(--f-display); font-weight: 400; font-size: 38px; letter-spacing: -0.01em; margin: 2px 0 6px; }
.tier-who { color: var(--forest); font-weight: 480; }
.tier-fit { color: var(--forest-70); font-size: 15.5px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--forest-12); }
.tier-who { margin-bottom: 18px; }
.tier-fit span { font-weight: 560; color: var(--forest); }

.trust {
  margin-top: 28px; padding: 32px; border-radius: var(--radius);
  background: var(--paper-2); display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center;
}
.trust h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 1vw + 18px, 30px); line-height: 1.15; }
.trust ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.trust li { display: flex; gap: 12px; align-items: center; font-weight: 480; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--forest); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 5px; height: 9px; border: solid var(--forest); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* ---------- how ---------- */
.how { padding: var(--section) 0; background: var(--paper-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps-line { position: absolute; top: 7px; left: 7px; right: 0; height: 2px; background: var(--forest-12); }
.steps-line span { display: block; height: 100%; width: 0; background: var(--forest); }
.step { position: relative; padding-top: 44px; }
.step .dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--forest-50); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.step.on .dot { background: var(--dawn); border-color: var(--forest); box-shadow: 0 0 0 6px var(--dawn-soft); }
.step-num { font-family: var(--f-display); color: var(--forest-50); font-size: 18px; display: block; margin-bottom: 10px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--forest-70); font-size: 15.5px; }

/* ---------- home school ---------- */
.homeschool { padding: var(--section) 0; overflow: hidden; }
.hs-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--dawn); color: var(--dawn); border-radius: 999px; padding: 7px 16px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dawn); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.homeschool h2 { max-width: 15ch; margin-bottom: 24px; }
.homeschool .lead { margin-bottom: 36px; }
.horizon-art { overflow: visible; }
.horizon-art path { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.horizon-art.in path { animation: draw 1.4s var(--ease) forwards; }
.horizon-art.in path:nth-of-type(2) { animation-delay: .15s; }
.horizon-art.in path:nth-of-type(3) { animation-delay: .9s; }
.horizon-art.in path:nth-of-type(4) { animation-delay: 1.05s; }
.horizon-art.in path:nth-of-type(5) { animation-delay: 1.2s; }

/* ---------- teach ---------- */
.teach { padding: var(--section) 0; }
.teach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.teach .lead { margin-bottom: 32px; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0 88px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--paper-14); }
.brand-sun.big { width: 72px; height: 48px; stroke: var(--paper); stroke-width: 1.6; margin-bottom: 14px; }
.footer-word { font-family: var(--f-display); font-size: clamp(56px, 6vw, 96px); letter-spacing: .12em; line-height: 1; }
.footer-tag { margin-top: 18px; color: var(--paper-70); font-family: var(--f-display); font-size: 20px; line-height: 1.35; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-h { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dawn); margin-bottom: 16px; }
.footer-cols a, .foot-plain { display: block; text-decoration: none; color: var(--paper-70); padding: 6px 0; transition: color .25s; }
.footer-cols a:hover { color: var(--paper); }
.footer-trust { padding: 28px 0; color: var(--paper-70); font-size: 15px; max-width: 46em; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; font-size: 13px; color: rgba(246,241,231,.5); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .path-stage { grid-template-columns: 1fr; }
  .pattern-wrap { max-width: 380px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin: -8px auto -12px; width: 100%; }
  .hero-caption { display: none; }
  .way { grid-template-columns: 48px 1fr; }
  .way-fit { grid-column: 2; }
  .tiers { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; padding-left: 40px; }
  .steps-line { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .steps-line span { width: 100%; height: 0; }
  .step { padding-top: 0; }
  .step .dot { left: -40px; top: 4px; }
  .hs-grid, .teach-grid, .footer-top { grid-template-columns: 1fr; }
  .hs-art { max-width: 360px; }
}
@media (max-width: 560px) {
  .header-inner { height: 64px; }
  .brand-word { font-size: 19px; }
  .brand-sun { width: 32px; height: 22px; }

  .hero { padding-top: 16px; }
  .hero-title { font-size: clamp(42px, 12.4vw, 56px); }
  .trust ul { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .path-card { min-height: 0; padding: 22px; }
  .tier h3 { font-size: 34px; }
  .btn { --h: 52px; }
  .btn.btn-sm { --h: 38px; padding: 0 14px; font-size: 13.5px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
}


/* ---------- phone pass (31 Oct): live ring, tidy controls, nothing under Aa ---------- */
@media (max-width: 900px) {
  .subjects { grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
  .subjects > div { padding: 16px 0; }
  .subjects > div:last-child { border-bottom: 1px solid var(--forest-12); }
  .subjects dt { margin-bottom: 6px; }

  /* while questions are on screen the ring pins small under the header, so every answer is seen */
  .path-stage { gap: 16px; }
  .path-stage.asking .pattern-wrap {
    position: sticky; top: 71px; z-index: 3; max-width: none; aspect-ratio: auto; width: auto; justify-self: stretch;
    margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) 10px;
    background: var(--forest); box-shadow: 0 14px 18px -10px var(--forest);
    display: flex; flex-direction: column; align-items: center;
  }
  .path-stage.asking canvas.pattern { width: 132px; }
  .path-stage.asking .pattern-id { display: none; }
  .path-stage.asking .pattern-legend { margin-top: 6px; font-size: 13.5px; min-height: 0; }
  .path-stage.asking .pattern-wrap::after { display: none; }
  .path-stage .pattern-wrap { scroll-margin-top: 80px; }
  .opt { min-height: 50px; padding: 12px 18px; font-size: 16px; }
  .options { gap: 8px; }
  .q-title { margin-bottom: 18px; }
  .progress { margin-bottom: 22px; }
  .path-foot { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 14px; }
  .path-foot .link-btn, .result-actions .link-btn { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
  .result-actions { flex-direction: column; align-items: flex-start; gap: 6px; }
  .keep-btn { flex: 1 1 auto; white-space: nowrap; }

  .tier-art { height: 132px; margin-bottom: 22px; }
  .tier-arches { max-width: 210px; }

  .site-footer { padding-bottom: 88px; }
}
@media (max-width: 560px) {
  .path-stage.asking .pattern-wrap { top: 63px; }
  .path-card { padding: 20px 18px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
}
/* larger text on a phone: give the header room instead of pushing the menu off screen */
@media (max-width: 480px) {
  html.fs-1 .header-actions .btn, html.fs-2 .header-actions .btn { display: none; }
  html.fs-1 .menu-cta, html.fs-2 .menu-cta { display: inline-flex; align-self: flex-start; margin-top: 18px; font-family: var(--f-text); font-size: 16px; font-weight: 520; border: 0; background: var(--forest); color: var(--paper); border-radius: 999px; padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .sun-rays, .sunrise .ray { animation: none !important; opacity: 1 !important; }
}

html.calm .sun-rays, html.calm .sunrise .ray { animation: none !important; opacity: 1 !important; }
