/* Good Luck Yogi home, "Take a Breath" (round 2).
   One breath at sunrise, the new app through the day, a breathing night sky at bedtime, then a quiet new morning. */

:root {
  --ink: #151719;
  --ink-2: #3b4048;
  --sky: #a9e7f7;
  --cream: #fff8ea;
  --cobalt: #2857c5;
  --night: #12204a;
  --sun: #ffd24f;
  --display: "Baloo 2", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1360px;
  --bar: 68px;
  --arc: clamp(56px, 10vw, 150px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --focus: var(--ink);
}
@media (min-width: 400px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --bar: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
section[id], #download { scroll-margin-top: calc(var(--bar) + 12px); }
/* blocks overlap by 1px so no hairline of page background shows between fields */
main > * + *, .footer { margin-top: -1px; }

.skip { position: fixed; top: 8px; left: 8px; z-index: 100; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; text-decoration: none; transform: translateY(-160%); --focus: var(--sun); }
.skip:focus { transform: none; }

/* ---------- shared pieces ---------- */
.lead { font-size: 1.125rem; line-height: 1.5; max-width: 52ch; }
.kicker { margin: 0 0 14px; font: 800 .875rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: .7em 1.6em; border: 2px solid transparent; border-radius: 999px; font: 800 1.0625rem/1.15 var(--body); text-align: center; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #fff; }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.text-link:hover { text-decoration-thickness: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badges a { display: block; border-radius: 10px; }
.badges img { width: auto; height: 46px; }

/* small time-of-day marks */
.time { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.1rem; font: 800 .875rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.ico { position: relative; flex: none; width: 22px; height: 22px; }
.ico::before, .ico::after { content: ""; position: absolute; }
.ico-rise::before { left: 3px; right: 3px; top: 8px; height: 8px; border-radius: 8px 8px 0 0; background: var(--sun); }
.ico-rise::after { left: 0; right: 0; top: 17px; height: 2px; border-radius: 2px; background: currentColor; }
.ico-sun::before { inset: 3px; border-radius: 50%; background: var(--sun); }
.ico-moon::before { inset: 2px; border-radius: 50%; box-shadow: inset 6px -3px 0 0 var(--sun); }

/* ---------- header with the new logo ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; --focus: var(--sun); }
.bar { display: flex; align-items: center; gap: 10px; height: var(--bar); }
.site-header .gly-logo { margin-right: auto; color: #fff; }
.nav { display: none; }
.btn-app { min-height: 44px; padding: .45em 1.05em; font-size: .9375rem; background: var(--sky); color: var(--ink); }
.btn-app:hover { background: #fff; }
.btn-app .long { display: none; }
.menu-btn { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 2px solid rgb(255 255 255 / .4); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; transition: transform .2s var(--ease); }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.is-open .menu-icon { background: transparent; }
.is-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 359px) {
  .bar { gap: 6px; }
  .site-header .gly-logo { gap: 7px; }
  .site-header .gly-logo img { width: 36px; }
  .site-header .gly-logo span { font-size: .98rem; }
  .btn-app { padding-inline: .85em; }
  .menu-btn { width: 44px; height: 44px; }
}
@media (max-width: 1023px) {
  .is-open .nav { display: block; position: absolute; top: 100%; left: 0; right: 0; padding: 4px var(--gutter) 28px; background: var(--ink); border-top: 1px solid rgb(255 255 255 / .14); box-shadow: 0 28px 40px rgb(0 0 0 / .28); }
  .nav a { display: flex; align-items: center; min-height: 58px; border-bottom: 1px solid rgb(255 255 255 / .12); font: 800 1.5rem/1 var(--display); text-decoration: none; }
}
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .btn-app .long { display: inline; }
  .nav { display: block; margin-right: 10px; }
  .nav ul { display: flex; gap: 2px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px; border-radius: 999px; font: 800 .95rem/1 var(--body); text-decoration: none; }
  .nav a:hover { background: rgb(255 255 255 / .12); }
}

/* ---------- hero: one breath at sunrise ---------- */
.hero { position: relative; overflow: hidden; background: var(--sky); }
.hero-media { position: relative; height: clamp(280px, 92vw, 460px); overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 42%; transform-origin: 70% 50%; }
.hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(rgb(169 231 247 / 0), var(--sky)); pointer-events: none; }
.hero-copy { position: relative; padding-top: 16px; padding-bottom: 64px; text-align: center; }
.cue, .cue-still { margin: 0 0 14px; font: 800 1.375rem/1.1 var(--display); color: var(--night); }
.cue { display: inline-flex; align-items: center; gap: 12px; }
.cue-words { display: grid; text-align: left; }
.cue-words span { grid-area: 1 / 1; }
.dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--night); box-shadow: 0 0 0 6px rgb(18 32 74 / .14); }
.cue-still { display: none; }
.hero h1 { margin: 0 0 .3em; font-size: clamp(2.75rem, 12.6vw, 4.4rem); line-height: .9; letter-spacing: -.03em; }
.hero .lead { max-width: 32ch; margin: 0 auto 24px; }
@media (min-width: 1024px) {
  .hero { display: flex; align-items: center; min-height: max(640px, min(calc(100vh - var(--bar)), 900px)); }
  .hero-media { position: absolute; inset: 0; height: auto; }
  .hero-img { object-position: 50% 45%; }
  .hero-media::after { height: 14%; }
  .hero-copy { padding-top: 48px; padding-bottom: 88px; text-align: left; }
  .hero-copy > * { max-width: min(40vw, 600px); }
  .hero h1 { font-size: clamp(4.25rem, 6.2vw, 6.75rem); }
  .hero .lead { max-width: 26ch; margin: 0 0 32px; font-size: 1.3rem; }
  .cue, .cue-still { margin-bottom: 20px; font-size: 1.6rem; }
}
@supports (height: 100svh) {
  @media (min-width: 1024px) { .hero { min-height: max(640px, min(calc(100svh - var(--bar)), 900px)); } }
}

/* ---------- the day: the new app ---------- */
.app { overflow: hidden; background: var(--sky); padding: 24px 0 104px; }
.app-grid { display: grid; gap: 28px; }
.app h2 { margin-bottom: .35em; font-size: clamp(2.4rem, 10.4vw, 4.4rem); }
.points { display: grid; gap: 12px; margin: 22px 0 26px; font-weight: 700; font-size: 1.0625rem; }
.points li { display: flex; align-items: center; gap: 12px; }
.signup { display: grid; gap: 10px; width: min(100%, 470px); }
.signup input { min-height: 52px; padding: 0 20px; border: 2px solid transparent; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; }
.signup input::placeholder { color: #5b6270; }
.signup input:focus-visible { outline: none; border-color: var(--ink); }
.signup-note { margin: 12px 0 0; font-weight: 800; }
.live-app { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 30px; padding-top: 22px; border-top: 2px solid rgb(21 23 25 / .14); }
.live-app p { margin: 0; font-weight: 800; }
.app-stage { position: relative; display: grid; place-items: center; padding: 8px 0 12px; }
.app-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(118%, 620px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / .85), rgb(255 255 255 / .35) 62%, rgb(255 255 255 / 0)); }
.app-shot { display: none; }
@media (min-width: 560px) {
  .signup { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: #fff; }
  .signup input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; }
  .signup:focus-within { box-shadow: 0 0 0 3px var(--ink); }
  .signup .btn { min-height: 48px; padding-inline: 1.3em; }
}
@media (min-width: 768px) {
  .app-stage { min-height: clamp(560px, 62vw, 700px); }
  .app-shot { display: block; position: absolute; z-index: 1; width: clamp(150px, 15vw, 205px); aspect-ratio: 9 / 19.2; object-fit: cover; border: 7px solid #0b1020; border-radius: 30px; box-shadow: 0 30px 50px -30px rgb(10 16 46 / .5); }
  .app-shot--l { left: 6%; top: 16%; transform: rotate(-9deg); }
  .app-shot--r { right: 6%; top: 22%; transform: rotate(8deg); }
}
@media (min-width: 1024px) {
  .app { padding: 40px 0 140px; }
  .app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: clamp(40px, 5vw, 80px); }
}

/* the app's breath timer, drawn by CSS alone (ported from the GLYSPACE shop): in 4, hold 2, out 6, rest 2 */
.phone { --w: 280px; position: relative; width: var(--w); aspect-ratio: 9 / 19.2; padding: calc(var(--w) * .032); border-radius: calc(var(--w) * .155); background: #0b1020; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .1) inset, 0 50px 80px -40px rgb(10 16 46 / .55), 0 22px 36px -22px rgb(10 16 46 / .5); }
.phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .125); background: #1b2470; isolation: isolate; color: #fff; }
.phone__screen::after { content: ""; position: absolute; left: 50%; top: 2.6%; z-index: 5; width: 30%; height: 3.4%; translate: -50% 0; border-radius: 999px; background: #0b1020; }
.bt-phone { --w: min(64vw, 270px); z-index: 2; font-size: calc(var(--w) / 20); }
.bt__view { --seat: 9%; --gh: 31%; --loop: 14s; --breath: cubic-bezier(.333, 0, .667, 1); background: #151f52; font-family: var(--body); -webkit-user-select: none; user-select: none; }
.bt__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%; transform-origin: 50% 85%; transform: scale(1.03); }
.bt__gly { position: absolute; left: 50%; bottom: var(--seat); width: auto; height: var(--gh); max-width: none; translate: -50% 0; transform-origin: 50% 100%; }
.bt__gly--out { opacity: 0; }
.bt__shadow { position: absolute; left: 50%; bottom: calc(var(--seat) - 1%); width: 46%; height: 3%; translate: -50% 0; border-radius: 50%; background: rgb(20 12 50 / .36); filter: blur(.3em); }
.bt__ring, .bt__guide { position: absolute; left: 50%; bottom: calc(var(--seat) + var(--gh) * .5); aspect-ratio: 1; border-radius: 50%; translate: -50% 50%; }
.bt__guide { border: .08em solid rgb(255 255 255 / .22); }
.bt__guide--a { width: 46%; }
.bt__guide--b { width: 82%; }
.bt__ring { width: 82%; border: .4em solid #fff; background: radial-gradient(closest-side, rgb(255 255 255 / .42), rgb(255 255 255 / 0) 78%); box-shadow: 0 0 2.8em rgb(170 215 255 / .7); transform: scale(.76); opacity: .8; }
.bt__words { position: absolute; left: 0; right: 0; top: 13%; z-index: 3; height: 1.1em; margin: 0; color: #fff; font-family: var(--display); font-weight: 800; font-size: 2.05em; line-height: 1.05; letter-spacing: -.025em; text-align: center; text-shadow: 0 2px 18px rgb(10 16 60 / .5); }
.bt__words span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
.bt__words span:first-child { opacity: 1; }
@media (min-width: 1024px) { .bt-phone { --w: clamp(250px, 21vw, 300px); } }

/* ---------- dusk, then the night ---------- */
.fade { height: clamp(96px, 13vw, 200px); }
.fade-dusk { background: linear-gradient(var(--sky), var(--cobalt) 55%, var(--night)); }
.night { position: relative; background: var(--night); color: #fff; padding-bottom: calc(var(--arc) + 72px); --focus: var(--sun); }
.night::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--arc) - 44px); width: 88px; height: 88px; margin-left: -44px; border-radius: 50%; background: var(--sun); }
.night-sky { position: relative; overflow: hidden; padding: 40px 0 64px; background-color: var(--night); background-repeat: no-repeat; background-size: cover; background-position: 70% 100%; }
.night-sky.has-galaxy { background-image: url("../shared/media/gen/visor-galaxy-800.webp"); }
.night-sky::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--night) 18%, rgb(18 32 74 / .55) 60%, rgb(18 32 74 / .2)); pointer-events: none; }
.stars-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
.stars-canvas.is-on { opacity: 1; }
.night-head { position: relative; z-index: 1; display: grid; gap: 32px; }
.night .time { color: var(--sun); }
.night h2 { margin-bottom: .35em; font-size: clamp(2.5rem, 11vw, 4.25rem); }
.status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.status span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 2px solid var(--sun); border-radius: 999px; color: var(--sun); font-weight: 800; font-size: .9375rem; }
.night .lead { font-size: 1.2rem; }
.soft { color: rgb(255 255 255 / .86); }
.night-pic img { width: 100%; aspect-ratio: 3 / 2; border-radius: 28px; object-fit: cover; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
@media (min-width: 1024px) {
  .night-sky { padding: 72px 0 96px; background-position: right center; }
  .night-sky.has-galaxy { background-image: url("../shared/media/gen/visor-galaxy.webp"); }
  .night-sky::before { background: linear-gradient(var(--night), rgb(18 32 74 / 0) 22%), linear-gradient(90deg, var(--night) 22%, rgb(18 32 74 / .55) 55%, rgb(18 32 74 / .15)); }
  .night-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: clamp(48px, 5vw, 88px); }
}

/* the plush: gallery and packs */
.plush-grid { display: grid; gap: 36px; padding-top: 16px; }
.stage { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 32px; background: #000; }
.stage img, .stage video { width: 100%; height: 100%; object-fit: cover; }
.stage video { object-fit: contain; }
.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; }
.stage-caption { margin: 0; color: rgb(255 255 255 / .88); }
.btn-play { min-height: 48px; padding: .5em 1.2em; font-size: 1rem; }
.tri { display: inline-block; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.thumb { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 6px 6px 10px; border: 2px solid transparent; border-radius: 18px; background: transparent; color: #fff; font: 700 .875rem/1.2 var(--body); cursor: pointer; }
.thumb img { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.thumb[aria-pressed="true"] { border-color: var(--sun); }
.thumb:hover { border-color: rgb(255 255 255 / .5); }
.thumb[aria-pressed="true"]:hover { border-color: var(--sun); }
.packs { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.packs legend { margin-bottom: 12px; padding: 0; font: 800 1.375rem/1.2 var(--display); }
.pack { position: relative; padding: 16px 18px 4px 54px; border: 2px solid rgb(255 255 255 / .3); border-radius: 22px; }
.pack input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pack label { display: block; cursor: pointer; }
.pack label::before { content: ""; position: absolute; left: 18px; top: 19px; width: 22px; height: 22px; border: 2px solid rgb(255 255 255 / .75); border-radius: 50%; }
.pack input:checked + label::before { border-color: var(--sun); background: var(--sun); box-shadow: inset 0 0 0 4px var(--night); }
.pack:has(input:checked) { border-color: var(--sun); background: rgb(255 210 79 / .08); }
.pack:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 3px; }
.pack-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pack-name { font: 800 1.3rem/1.2 var(--display); }
.pack-price { font: 800 1.6rem/1 var(--display); color: var(--sun); }
.pack-inside { display: block; margin-top: 4px; color: rgb(255 255 255 / .88); line-height: 1.45; }
.pack-link { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 44px; color: var(--sky); font-size: .9375rem; font-weight: 800; text-decoration: underline; text-underline-offset: .22em; }
.reserve { width: 100%; min-height: 60px; margin-top: 20px; font-size: 1.1875rem; }
.note { margin: 12px 0 0; color: rgb(255 255 255 / .82); font-size: .9375rem; text-align: center; }
.facts { margin-top: 28px; }
.facts details { border-top: 1px solid rgb(255 255 255 / .22); }
.facts details:last-child { border-bottom: 1px solid rgb(255 255 255 / .22); }
.facts summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; font: 800 1.2rem/1.2 var(--display); list-style: none; cursor: pointer; }
.facts summary::-webkit-details-marker { display: none; }
.facts summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.facts details[open] summary::after { background-size: 100% 2px, 0 0; }
.facts p { max-width: 58ch; color: rgb(255 255 255 / .88); }
.night .text-link { color: var(--sky); }
@media (min-width: 1024px) {
  .plush-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; column-gap: clamp(56px, 6vw, 96px); padding-top: 24px; }
}

/* the friends, coming soon: each on its own colour field, words beside the picture, never on it */
.friends { padding-top: 88px; }
.friends-head { max-width: 40rem; margin-bottom: 26px; }
.friends-head h3 { font-size: clamp(1.75rem, 6.6vw, 2.75rem); line-height: 1.02; }
.friends-head p { margin: 10px 0 0; color: rgb(255 255 255 / .86); }
.friend-list { display: grid; gap: 14px; }
.friend { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 4px 18px; padding: 14px 18px 12px 12px; border-radius: 24px; background: var(--f); color: var(--t); }
.friend--turbo { --f: #ffd23f; --t: #16240a; }
.friend--dozer { --f: #b9a5ff; --t: #2a1238; }
.friend--petal { --f: #a8dcff; --t: #14301f; }
.friend-pic { display: flex; align-items: flex-end; justify-content: center; height: 128px; }
.friend-pic img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: 50% 100%; }
.pill { display: inline-flex; align-items: center; min-height: 26px; margin: 0 0 8px; padding: 0 10px; border: 2px solid currentColor; border-radius: 999px; font-size: .8125rem; font-weight: 800; }
.friend h4 { margin-bottom: 6px; font-size: 1.6rem; }
.friend h4 span { display: block; margin-top: 2px; font: 700 .9375rem/1.3 var(--body); letter-spacing: 0; }
.friend-text p:not(.pill) { margin: 0; font-size: .97rem; line-height: 1.42; }
.friend .text-link { color: inherit; }
@media (min-width: 768px) {
  .friend-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .friend { grid-template-columns: 1fr; align-items: start; padding: 22px 24px 16px; }
  .friend-pic { height: 210px; margin-bottom: 14px; }
}

/* ---------- morning again: the tees, under the sunrise arc ---------- */
.tees { position: relative; z-index: 1; margin-top: calc(-1 * var(--arc)); padding: calc(var(--arc) + 16px) 0 88px; border-radius: 50% 50% 0 0 / var(--arc) var(--arc) 0 0; background: var(--cream); }
.tees-head { display: grid; gap: 10px; margin-bottom: 26px; }
.tees-head h2 { font-size: clamp(2.5rem, 11vw, 4.5rem); }
.tees-head p { margin: 0; max-width: 44ch; }
.tees-head .btn { justify-self: start; margin-top: 6px; }
.tee-rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tee-rail:focus-visible { outline-offset: -3px; }
.tee-list { display: flex; gap: 16px; width: max-content; padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2)) 18px; }
.tee { width: min(60vw, 250px); scroll-snap-align: center; }
.tee img { width: 100%; aspect-ratio: 1; border-radius: 22px; background: #fff; }
.tee-name { margin: 12px 0 2px; font: 800 1.1rem/1.2 var(--display); }
.tee-name span { margin-right: 8px; color: var(--cobalt); }
.tee-color { margin: 0; color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 1024px) {
  .tees { padding-bottom: 120px; }
  .tees-head { grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; column-gap: 56px; margin-bottom: 36px; }
  .tees-head p { margin-bottom: .6em; }
  .tees-head .btn { margin: 0 0 .3em; }
}

/* ---------- book ---------- */
.book { background: #fff; padding: 96px 0; }
.book-grid { display: grid; gap: 36px; }
.book-art img { width: 100%; aspect-ratio: 3 / 2; border-radius: 32px; object-fit: cover; }
.dream { margin-bottom: 18px; font: 700 1.25rem/1.3 var(--display); color: var(--cobalt); max-width: 34ch; }
.book h2 { margin-bottom: .35em; font-size: clamp(2.4rem, 10vw, 4.25rem); }
.byline { color: var(--ink-2); font-weight: 700; }
.first-ed { margin-bottom: 26px; padding: 14px 18px; border-left: 4px solid var(--sun); border-radius: 0 16px 16px 0; background: var(--cream); }
@media (min-width: 1024px) {
  .book { padding: 140px 0; }
  .book-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; column-gap: clamp(56px, 6vw, 104px); }
}

/* ---------- schools and services ---------- */
.schools { background: var(--cream); padding: 96px 0; }
.schools-top { display: grid; gap: 28px; }
.schools h2 { margin-bottom: .35em; font-size: clamp(2.4rem, 10vw, 4.25rem); }
.schools-photo img { width: 100%; aspect-ratio: 1024 / 682; border-radius: 28px; object-fit: cover; }
.schools-bottom { display: grid; gap: 40px; margin-top: 44px; }
.service { padding: 18px 0 22px; border-top: 2px solid var(--ink); }
.service h3 { margin-bottom: .35em; font-size: 1.75rem; }
.service p { margin: 0; max-width: 60ch; }
.service-lead h3::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 12px; vertical-align: .12em; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--ink); }
.schools-cta { padding-top: 22px; border-top: 2px solid var(--ink); }
.cta-line { font: 800 1.35rem/1.2 var(--display); }
.yt-card { overflow: hidden; align-self: start; border-radius: 28px; background: var(--ink); }
.yt { display: block; width: 100%; padding: 0; border: 0; background: var(--ink); color: #fff; text-align: left; cursor: pointer; }
.yt-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; }
.yt-media img, .yt-frame { width: 100%; height: 100%; object-fit: cover; }
.yt-frame { display: block; aspect-ratio: 16 / 9; height: auto; border: 0; }
.yt-bar { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 20px 18px; background: var(--ink); color: #fff; }
.yt-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding-left: 3px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.yt-text { display: grid; gap: 2px; }
.yt-title { font: 800 1.125rem/1.2 var(--display); }
.yt-sub { color: rgb(255 255 255 / .85); font-size: .9375rem; }
.yt:hover .yt-icon { background: #fff; }
.yt:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
@media (min-width: 1024px) {
  .schools { padding: 140px 0; }
  .schools-top { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; column-gap: clamp(48px, 5vw, 88px); }
  .schools-bottom { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(48px, 5vw, 88px); margin-top: 72px; }
}

/* ---------- proof ---------- */
.proof { background: #fff; padding: 96px 0; }
.proof-head { max-width: 58rem; }
.proof h2 { max-width: 15ch; margin-bottom: .4em; font-size: clamp(2.6rem, 11vw, 5rem); }
.quotes { display: grid; gap: 26px; margin-top: 40px; }
.quote { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: start; gap: 18px; }
.quote img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.quote blockquote p { margin: 0; font: 700 1.3rem/1.25 var(--display); }
.quote figcaption { margin-top: 8px; color: var(--ink-2); font-weight: 800; }
.partners { margin-top: 64px; }
.partners h3 { margin-bottom: 18px; font-size: clamp(1.5rem, 6vw, 2rem); }
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.logos li { display: grid; place-items: center; height: 76px; padding: 10px 12px; border-radius: 16px; background: var(--cream); }
.logos img { width: auto; max-width: 100%; max-height: 50px; object-fit: contain; }
@media (min-width: 768px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .proof { padding: 140px 0; }
  .quotes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
  .quote { grid-template-columns: 1fr; gap: 18px; }
  .quote img { width: 112px; height: 112px; }
  .quote blockquote p { font-size: 1.45rem; }
  .partners { margin-top: 96px; }
  .logos { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .logos li { height: 92px; }
}

/* ---------- blog ---------- */
.blog { background: var(--cream); padding: 96px 0; }
.blog h2 { margin-bottom: .35em; font-size: clamp(2.4rem, 10vw, 4.25rem); }
.blog-head { display: grid; gap: 8px; margin-bottom: 36px; }
.blog-head .lead { margin-bottom: 8px; }
.blog-head .btn { justify-self: start; }
.posts { display: grid; gap: 22px; }
.post { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; color: var(--ink); text-decoration: none; }
.post img { grid-row: 1 / span 2; width: 100%; aspect-ratio: 1; border-radius: 18px; object-fit: cover; }
.post-date { display: block; margin: 2px 0 4px; color: var(--ink-2); font-size: .9375rem; font-weight: 700; }
.post h3 { font-size: 1.2rem; line-height: 1.12; letter-spacing: -.01em; }
.post:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
@media (min-width: 768px) {
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .post { display: block; }
  .post img { aspect-ratio: 800 / 534; border-radius: 22px; }
  .post-date { margin: 14px 0 6px; }
  .post h3 { font-size: 1.4rem; }
}
@media (min-width: 1024px) {
  .blog { padding: 140px 0; }
  .blog-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; margin-bottom: 52px; }
  .blog-head .btn { justify-self: end; margin-bottom: 1.5em; }
}

/* ---------- contact ---------- */
.contact { background: var(--sky); padding: 80px 0 96px; }
.contact-grid { display: grid; justify-items: center; gap: 22px; text-align: center; }
.contact-gly { width: min(44vw, 220px); margin-bottom: 20px; }
.contact h2 { margin-bottom: .35em; font-size: clamp(2.4rem, 10vw, 4.25rem); }
.contact .lead { max-width: 40ch; margin-inline: auto; }
.contact .actions { justify-content: center; margin-top: 8px; }
.mail { margin: 14px 0 0; }
@media (min-width: 1024px) {
  .contact { padding: 120px 0; }
  .contact-grid { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: clamp(56px, 7vw, 120px); max-width: calc(1080px + 2 * var(--gutter)); text-align: left; }
  .contact-gly { width: 280px; }
  .contact .lead { margin-inline: 0; }
  .contact .actions { justify-content: flex-start; }
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 64px 0 104px; --focus: var(--sun); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.footer-brand, .footer-app { grid-column: 1 / -1; }
.footer .gly-logo { color: #fff; }
.footer-line { margin: 14px 0 2px; }
.footer p { margin-bottom: .2em; }
.footer a:not(.gly-logo) { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.footer a:not(.gly-logo):hover { text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 0 20px; }
.social a { color: var(--sky); font-weight: 800; }
.footer-col h2 { margin-bottom: 6px; color: var(--sky); font: 800 .875rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.footer .badges { margin-top: 8px; }
@media (min-width: 1024px) {
  .footer { padding: 80px 0 96px; }
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
  .footer-brand, .footer-app { grid-column: auto; }
}

/* ---------- tablets: one column, pictures held to a calm size ---------- */
@media (min-width: 640px) and (max-width: 1023px) {
  .night-pic, .gallery, .book-art { justify-self: center; width: min(100%, 600px); }
}

/* ---------- motion: one loop at a time, slow reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: sky-breath 8s ease-in-out infinite; }
  .dot { animation: dot 8s ease-in-out infinite; }
  .cue-in { animation: cue-in 8s ease-in-out infinite; }
  .cue-out { animation: cue-out 8s ease-in-out infinite; }
  .hero.is-paused .hero-img, .hero.is-paused .dot, .hero.is-paused .cue-words span { animation-play-state: paused; }
  .bt__bg { animation: bt-bg var(--loop) var(--breath) infinite paused; }
  .bt__ring { animation: bt-ring var(--loop) var(--breath) infinite paused; }
  .bt__gly--in { animation: bt-gly var(--loop) var(--breath) infinite paused, bt-pose-in var(--loop) linear infinite paused; }
  .bt__gly--out { animation: bt-gly var(--loop) var(--breath) infinite paused, bt-pose-out var(--loop) linear infinite paused; }
  .bt__words { animation: bt-word var(--loop) var(--breath) infinite paused; }
  .bt__words span:nth-child(1) { animation: bt-w1 var(--loop) step-end infinite paused; }
  .bt__words span:nth-child(2) { animation: bt-w2 var(--loop) step-end infinite paused; }
  .bt__words span:nth-child(3) { animation: bt-w3 var(--loop) step-end infinite paused; }
  .bt__words span:nth-child(4) { animation: bt-w4 var(--loop) step-end infinite paused; }
  .bt-phone.is-live .bt__view * { animation-play-state: running; }
  .js .reveal { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tee img { transition: transform .5s var(--ease); }
  .tee:hover img { transform: translateY(-6px) rotate(-1.5deg); }
}
@keyframes sky-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes dot { 0%, 100% { transform: scale(.5); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }
@keyframes cue-in { 0% { opacity: 0; } 10%, 40% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes cue-out { 0%, 50% { opacity: 0; } 60%, 90% { opacity: 1; } 100% { opacity: 0; } }
/* 4 s in = 28.571% · 2 s hold = to 42.857% · 6 s out = to 85.714% · 2 s rest */
@keyframes bt-ring { 0%, 85.714%, 100% { transform: scale(.561); opacity: .62; } 28.571%, 42.857% { transform: scale(1); opacity: 1; } }
@keyframes bt-gly { 0%, 85.714%, 100% { transform: scale(.985); } 28.571%, 42.857% { transform: scale(1.025); } }
@keyframes bt-bg { 0%, 85.714%, 100% { transform: scale(1.01); } 28.571%, 42.857% { transform: scale(1.06); } }
@keyframes bt-word { 0%, 85.714%, 100% { transform: scale(.9); } 28.571%, 42.857% { transform: scale(1.06); } }
@keyframes bt-pose-in { 0%, 42.857% { opacity: 1; } 47.143%, 85.714% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes bt-pose-out { 0%, 42.857% { opacity: 0; } 47.143%, 85.714% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes bt-w1 { 0% { opacity: 1; } 28.571%, 100% { opacity: 0; } }
@keyframes bt-w2 { 0% { opacity: 0; } 28.571% { opacity: 1; } 42.857%, 100% { opacity: 0; } }
@keyframes bt-w3 { 0% { opacity: 0; } 42.857% { opacity: 1; } 85.714%, 100% { opacity: 0; } }
@keyframes bt-w4 { 0% { opacity: 0; } 85.714%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cue { display: none; }
  .cue-still { display: block; }
  .btn, .btn:hover, .menu-icon::before, .menu-icon::after, .stars-canvas { transition: none; }
  .btn:hover { transform: none; }
}
