/* Learner Rings, teacher rings, living sky (home) */

/* ---------- learner rings ---------- */
.pattern-wrap { position: relative; }
canvas.pattern { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.pattern-id { text-align: center; font-family: var(--f-display); font-size: 17px; letter-spacing: .04em; color: var(--dawn); min-height: 1.5em; margin-top: 6px; }
.pattern-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: 0;
  background: conic-gradient(from 0deg, rgba(242,165,65,0) 0deg, rgba(242,165,65,.0) 300deg, rgba(255,214,150,.42) 350deg, rgba(242,165,65,0) 360deg);
  -webkit-mask: radial-gradient(circle, #000 0 46%, transparent 47%); mask: radial-gradient(circle, #000 0 46%, transparent 47%);
}
.pattern-wrap.sealed::after { animation: dawnSweep 1.8s var(--ease) forwards; }
@keyframes dawnSweep { 0% { opacity: 0; transform: rotate(-30deg); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: rotate(330deg); } }
.keep-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.keep-btn { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(246,241,231,.25); background: transparent; color: var(--paper); font: 520 14.5px/1 var(--f-text); cursor: pointer; transition: border-color .2s, background .2s; }
.keep-btn:hover { border-color: var(--dawn); background: rgba(242,165,65,.08); }

/* ---------- teacher tiers ---------- */
.tiers { align-items: stretch; }
.tier { padding: 0 0 28px; overflow: hidden; gap: 0; }
.tier > *:not(.tier-art) { padding-left: 28px; padding-right: 28px; }
.tier-art {
  position: relative; height: 210px; margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: center; padding: 0 28px;
  background: radial-gradient(70% 90% at 50% 100%, rgba(242,165,65,.18), rgba(242,165,65,0) 70%), var(--paper-2);
  border-bottom: 1px solid var(--forest-12);
}
.tier-arches { width: 100%; max-width: 280px; height: auto; overflow: visible; display: block; }
.tier-arches .horizon-line { stroke: var(--forest); stroke-width: 1.4; }
.tier-arches .arch { fill: none; stroke: var(--forest); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease); }
.tier-arches .arch.warm { stroke: var(--dawn); stroke-width: 1.8; }
.tier-arches.grown .arch { stroke-dashoffset: 0; }
html.calm .tier-arches .arch { transition: none; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .tier-arches .arch { transition: none; stroke-dashoffset: 0; } }
.tier-tag { margin-bottom: 4px; }
.tier h3 { margin: 0 0 8px; }
.tier-who { margin-bottom: 16px; }
.tier-points { list-style: none; margin: 0 0 20px; display: grid; gap: 8px; font-size: 15px; color: var(--forest-70); }
.tier-points li { position: relative; padding-left: 18px; }
.tier-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--dawn); }
.tier-feature { border-color: var(--forest-50); box-shadow: 0 30px 60px -40px rgba(19,50,43,.5); }
.tier-feature .tier-tag { color: var(--forest); }
.tier-key { margin-top: 22px; font-size: 14.5px; color: var(--forest-50); text-align: center; }
@media (max-width: 900px) { .tier-art { height: 180px; } }

/* ---------- living sky ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: background 1s; }
html.sky-dawn .hero::before { background: radial-gradient(120% 70% at 75% 85%, rgba(242,165,65,.22), rgba(242,165,65,0) 60%), linear-gradient(180deg, #f3e6d6 0%, var(--paper) 70%); }
html.sky-day .hero::before { background: radial-gradient(90% 60% at 75% 30%, rgba(242,165,65,.12), rgba(242,165,65,0) 60%); }
html.sky-dusk .hero::before { background: radial-gradient(120% 80% at 75% 90%, rgba(226,120,70,.20), rgba(242,165,65,0) 60%), linear-gradient(180deg, #efdcd2 0%, var(--paper) 75%); }
html.sky-night .hero::before {
  background:
    radial-gradient(1.4px 1.4px at 62% 18%, rgba(19,50,43,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 71% 9%, rgba(19,50,43,.45), transparent 60%),
    radial-gradient(1.6px 1.6px at 83% 22%, rgba(19,50,43,.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 91% 12%, rgba(19,50,43,.4), transparent 60%),
    radial-gradient(1.3px 1.3px at 55% 30%, rgba(19,50,43,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 77% 34%, rgba(19,50,43,.4), transparent 60%),
    linear-gradient(180deg, #e4e3dc 0%, var(--paper) 72%);
}
.sunrise .sun-arc { transform: translateY(calc(var(--lift, 0) * -34px)); transition: transform .2s linear; }
.sunrise .sun-glow { opacity: calc(.65 + var(--lift, 0) * .35); }
html.sky-night .sunrise .sun-glow { filter: saturate(.6); }
.sky-note { margin-top: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--forest-50); }

/* ---------- hero kicker (sentence case, display italic) ---------- */
.kicker { font-family: var(--f-display); font-style: italic; font-size: clamp(18px, .6vw + 14px, 22px); color: var(--forest-70); display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--dawn); }
.kicker span { color: var(--dawn); font-style: normal; }

/* ---------- ways to learn ---------- */
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.way-card {
  position: relative; display: flex; flex-direction: column; padding: 0 28px 28px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid transparent; overflow: hidden;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.way-art { width: 100%; margin: 8px 0 18px; height: auto; display: block; }
.way-art .w-line { fill: none; stroke: var(--forest); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.way-art .w-dot { fill: var(--dawn); }
.way-art .w-glow { fill: var(--dawn); opacity: .18; transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.way-card.in .w-line { animation: wayDraw 1.4s var(--ease) both; }
.way-card:nth-child(2).in .w-line { animation-delay: .12s; }
.way-card:nth-child(3).in .w-line { animation-delay: .24s; }
@keyframes wayDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.way-card:hover { border-color: var(--forest-12); background: var(--paper); }
.way-card:hover .w-glow { transform: translateY(-8px) scale(1.25); opacity: .32; }
.way-n { font-family: var(--f-display); font-size: 15px; color: var(--dawn-ink, #A34A12); margin-bottom: 6px; }
.way-card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 1vw + 18px, 32px); letter-spacing: -0.01em; margin: 0 0 10px; }
.way-d { color: var(--forest-70); margin-bottom: 18px; }
.way-card .way-fit { margin-top: auto; padding: 14px 0 0; border: 0; border-top: 1px solid var(--forest-12); font-size: 15px; color: var(--forest-70); }
.way-card .way-fit span { font-weight: 560; color: var(--forest); }
@media (max-width: 900px) { .ways-grid { grid-template-columns: 1fr; } }
html.calm .way-card .w-line { animation: none; }
@media (prefers-reduced-motion: reduce) { .way-card .w-line { animation: none; } }

/* ---------- teach with UDBHO ---------- */
.teach-grid { align-items: center !important; grid-template-columns: 1fr 1.05fr !important; }
.teach-copy .lead { margin: 18px 0 26px; }
.teach-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 18px; }
.teach-points li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.tp-n { font-family: var(--f-display); color: var(--dawn-ink, #A34A12); font-size: 15px; padding-top: 2px; }
.teach-points strong { font-weight: 560; display: block; margin-bottom: 2px; }
.teach-points p { color: var(--forest-70); font-size: 15.5px; }
.board-scene { margin: 0; }
.board { width: 100%; height: auto; display: block; overflow: visible; }
.board .frame { fill: #8a6a4a; }
.board .tray { fill: #7a5c3f; }
.board .desk { stroke: var(--forest); stroke-width: 1.4; }
.board .chalk-text { font-family: var(--f-display); font-style: italic; font-size: 44px; fill: rgba(246,241,231,.92); }
.board .chalk-text.big { font-size: 52px; }
.board .chalk-line { fill: none; stroke: rgba(246,241,231,.88); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.board .chalk-line.ray { stroke: var(--dawn); }
.board .chalk-line.underline { stroke: var(--dawn); stroke-width: 3; }
.board .smudge { fill: none; stroke: rgba(246,241,231,.05); stroke-width: 18; stroke-linecap: round; }
.board .chalk-stick { fill: #f6f1e7; }
.board .chalk-stick.dawn { fill: var(--dawn); }
.board .duster-top { fill: #a07850; }
.board .duster-felt { fill: #3b3b3b; }
.board .book.b1 { fill: var(--forest); } .board .book.b2 { fill: #2f6a52; } .board .book.b3 { fill: var(--dawn); }
.board .mug-body { fill: var(--paper); stroke: var(--forest); stroke-width: 1.6; }
.board .mug-handle { fill: none; stroke: var(--forest); stroke-width: 1.6; }
.board .steam { fill: none; stroke: var(--forest-50); stroke-width: 1.4; stroke-linecap: round; opacity: 0; }
.board .wipe { transition: width 1.6s steps(24, end); }
.board-scene.in .wipe.w1 { width: 420px; transition-delay: .3s; }
.board-scene.in .wipe.w2 { width: 420px; transition-delay: 1.9s; }
.board-scene.in .chalk-line { animation: chalkDraw 1s var(--ease) forwards; }
.board-scene.in .underline { animation-delay: 3.2s; }
.board-scene.in .chalk-sun .chalk-line:nth-child(1) { animation-delay: 3.6s; }
.board-scene.in .chalk-sun .chalk-line:nth-child(2) { animation-delay: 3.9s; }
.board-scene.in .chalk-sun .chalk-line:nth-child(3) { animation-delay: 4.1s; }
.board-scene.in .chalk-sun .ray { animation-delay: 4.4s; }
.board-scene.in .steam { animation: steam 3.2s ease-in-out 1s infinite; }
.board .duster { transform-box: fill-box; transition: transform .6s var(--ease); }
.board-scene:hover .duster { transform: translateX(-26px) rotate(-3deg); }
@keyframes chalkDraw { to { stroke-dashoffset: 0; } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-10px); } }
html.calm .board .wipe { width: 420px !important; transition: none; }
html.calm .board .chalk-line { animation: none; stroke-dashoffset: 0; }
html.calm .board .steam { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .board .wipe { width: 420px !important; transition: none; }
  .board .chalk-line { animation: none !important; stroke-dashoffset: 0; }
  .board .steam { animation: none !important; }
}
@media (max-width: 900px) { .teach-grid { grid-template-columns: 1fr !important; } .board-scene { order: -1; } }
