/* Public pages of minestem.com (home, about, contact, privacy, terms). */
:root {
  --teal: #2b7681;
  --teal-bright: #3fb7c7;
  --teal-dark: #1e6470;
  --teal-soft: #e6f2f4;
  --orange: #ef6e2e;
  --orange-bright: #ff8a4c;
  --orange-soft: #fdeee5;
  --navy: #1a3a4a;
  --night: #0b1f2a;
  --night-2: #10303d;
  --ink: #1f2937;
  --muted: #5d6875;
  --line: #e3e9ed;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --radius: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: Nunito, system-ui, sans-serif; color: var(--navy); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); font-weight: 900; letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
img, video { max-width: 100%; display: block; }
.ms-wrap { width: min(1140px, 100% - 32px); margin: 0 auto; position: relative; }
.ms-eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: .7rem; }
.ms-eyebrow-light { color: #ffd0b5; }
.ms-lead { font-size: 1.18rem; color: var(--muted); max-width: 44rem; }
.ms-muted { color: var(--muted); }
.ms-grad { background: linear-gradient(90deg, var(--teal-bright), var(--orange-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------ header */
.ms-top { position: sticky; top: 0; z-index: 30; transition: background .35s var(--ease), border-color .35s, box-shadow .35s; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ms-top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.ms-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ms-mark { height: 30px; width: auto; display: block; }
.ms-wordmark { font-family: Nunito, system-ui, sans-serif; font-size: 1.55rem; font-weight: 800; color: var(--orange); letter-spacing: -.01em; }
.ms-wordmark b { font-weight: 900; }
.ms-nav { display: flex; align-items: center; gap: 24px; }
.ms-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .98rem; position: relative; }
.ms-nav a:not(.ms-btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.ms-nav a:not(.ms-btn):hover::after, .ms-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 640px) { .ms-nav a:not(.ms-btn) { display: none; } }
/* over the dark hero */
.ms-public-home .ms-top--overlay { background: linear-gradient(rgba(11,31,42,.75), rgba(11,31,42,0)); border-color: transparent; backdrop-filter: none; }
.ms-public-home .ms-top--overlay .ms-nav a { color: #fff; }
.ms-public-home .ms-top--dark { background: rgba(11,31,42,.82); backdrop-filter: blur(14px); border-color: rgba(255,255,255,.08); }
.ms-public-home .ms-top--dark .ms-nav a { color: #fff; }
.ms-top--solid { box-shadow: 0 6px 24px rgba(15,35,45,.06); }

/* ------------------------------------------------------------ buttons */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.ms-btn:hover { transform: translateY(-2px); }
.ms-btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-bright)); color: #fff !important; box-shadow: 0 10px 26px rgba(239,110,46,.32); }
.ms-btn-primary:hover { box-shadow: 0 14px 34px rgba(239,110,46,.4); }
.ms-btn-ghost { border-color: var(--line); color: var(--navy) !important; background: #fff; }
.ms-btn-ghost:hover { border-color: var(--teal); color: var(--teal) !important; }
.ms-btn-glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff !important; backdrop-filter: blur(8px); }
.ms-btn-glass:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.ms-btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* ------------------------------------------------------------ dark hero */
.ms-hero-dark { position: relative; color: #fff; background: radial-gradient(1200px 700px at 70% 10%, var(--night-2), var(--night) 70%); padding: clamp(96px, 12vw, 150px) 0 clamp(72px, 9vw, 120px); margin-top: -70px; overflow: hidden; isolation: isolate; }
.ms-hero-dark h1 { color: #fff; }
.ms-hero-dark .ms-lead { color: rgba(255,255,255,.78); }
.ms-hero-dark .ms-eyebrow { color: var(--teal-bright); }
.ms-hero-note { margin-top: 1.1rem; font-size: .95rem; color: rgba(255,255,255,.55); }
.ms-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ms-grid-lines { position: absolute; inset: -20% 0 0 0; background-image: linear-gradient(rgba(63,183,199,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(63,183,199,.13) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 30%, transparent 85%); animation: ms-grid-drift 26s linear infinite; }
@keyframes ms-grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 0 64px, 64px 0; } }
.ms-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: ms-glow 12s ease-in-out infinite alternate; }
.ms-glow-teal { width: 560px; height: 560px; right: -8%; top: -18%; background: radial-gradient(circle, rgba(63,183,199,.7), transparent 65%); }
.ms-glow-orange { width: 460px; height: 460px; left: -10%; bottom: -30%; background: radial-gradient(circle, rgba(239,110,46,.55), transparent 65%); animation-delay: -6s; }
@keyframes ms-glow { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.12); } }

.ms-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .ms-hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.ms-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* entrance animation for hero copy */
.ms-js .ms-anim { opacity: 0; transform: translateY(22px); animation: ms-rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 120ms + 80ms); }
.ms-js .ms-hero-stage .ms-float.ms-anim { transform: none; }
@keyframes ms-rise { to { opacity: 1; transform: none; } }
@keyframes ms-fade { to { opacity: 1; } }
.ms-reduce .ms-anim { opacity: 1; transform: none; animation: none; }

/* the stage: the seven lesson parts as a floating card stack, characters among them */
.ms-hero-stage { position: relative; height: clamp(420px, 44vw, 560px); }
.ms-hero-stage [data-depth] { will-change: transform; transition: transform .12s linear; }
.ms-stack { position: absolute; right: 4%; top: 0; width: 66%; height: 62%; z-index: 2; }
.ms-js .ms-part-card { animation: ms-fade .9s var(--ease) forwards, ms-card-drift 7s ease-in-out infinite; animation-delay: calc(var(--d) * 120ms + 80ms), calc(var(--i) * -1.1s); }
.ms-part-card { position: absolute; left: calc(var(--i) * 3.2%); right: calc((6 - var(--i)) * 2.2%); top: calc(var(--i) * 13.5%); transform: rotate(calc(-2.2deg + var(--i) * 0.7deg)); z-index: calc(var(--i) + 1); display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(0,0,0,.35); color: #fff; transform-origin: left center; }
.ms-part-card i { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .82rem; align-self: center; }
.ms-part-card b { font-family: Nunito, system-ui, sans-serif; font-size: .98rem; line-height: 1.2; }
.ms-part-card span { font-size: .8rem; color: rgba(255,255,255,.62); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-part-t i { background: rgba(239,110,46,.25); color: #ffb48a; }
.ms-part-s i { background: rgba(63,183,199,.25); color: #8fe3ee; }
.ms-part-card { pointer-events: auto; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; cursor: default; }
.ms-part-card:hover { transform: translateY(-10px) rotate(0) !important; z-index: 20 !important; background: rgba(255,255,255,.14); box-shadow: 0 26px 50px rgba(0,0,0,.45); }
.ms-part-t { border-left: 3px solid var(--orange); }
.ms-part-s { border-left: 3px solid var(--teal-bright); }
@keyframes ms-card-drift { 0%, 100% { margin-left: 0; } 50% { margin-left: calc(3px + var(--i) * 1.5px); } }
.ms-reduce .ms-part-card, .ms-reduce .ms-float { animation: none !important; opacity: 1; }

/* ---- character sprites: transparent looping walk cycles ---- */
.ms-sprite { position: relative; display: block; width: auto; height: var(--h, 160px); aspect-ratio: 360 / 648; }
.ms-sprite img, .ms-sprite video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.ms-sprite img { object-position: bottom; }
.ms-sprite.ms-sprite-ready img { visibility: hidden; }
.ms-sprite video { filter: drop-shadow(0 14px 16px rgba(0,0,0,.28)); }

/* a walkway: actors cross left to right, each once per pass, over a glowing floor */
.ms-walkway { position: absolute; left: -6%; right: -6%; bottom: 0; height: 240px; overflow: hidden; pointer-events: none; }
.ms-actor { position: absolute; bottom: 14px; left: 0; transform: translateX(-30vw); animation: ms-cross var(--t, 24s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes ms-cross { from { transform: translateX(-260px); } to { transform: translateX(calc(100% + 100vw)); } }
.ms-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(180deg, rgba(63,183,199,.16), rgba(63,183,199,0)); border-top: 1px solid rgba(63,183,199,.38); }
.ms-floor::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--teal-bright) 40%, transparent 70%); background-size: 60% 100%; animation: ms-floor 4s linear infinite; }
@keyframes ms-floor { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.ms-walkway-hero { height: 190px; left: -10%; right: -10%; }
.ms-builder { position: absolute; left: -2%; bottom: 8px; z-index: 3; aspect-ratio: 620 / 648; }
.ms-builder video { filter: drop-shadow(0 18px 20px rgba(0,0,0,.4)); }
/* phones & small tablets: no deck; a flowing strip of the parts, and a wide stage for the characters */
.ms-flow { display: none; }
@media (max-width: 900px) {
  .ms-hero-grid { gap: 28px; }
  .ms-hero-dark { padding-bottom: 0; }
  .ms-stack { display: none; }
  .ms-flow { display: block; overflow: hidden; margin: 0 -16px; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .ms-flow-track { display: flex; gap: 10px; width: max-content; animation: ms-flow 28s linear infinite; }
  @keyframes ms-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .ms-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap; backdrop-filter: blur(8px); }
  .ms-pill i { width: 8px; height: 8px; border-radius: 50%; }
  .ms-pill-t i { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
  .ms-pill-s i { background: var(--teal-bright); box-shadow: 0 0 10px var(--teal-bright); }
  .ms-reduce .ms-flow-track { animation: none; flex-wrap: wrap; width: auto; }
  .ms-hero-stage { width: 100%; height: 250px; max-height: none; margin: 0; }
  .ms-walkway-hero { height: 250px; left: -16px; right: -16px; }
  .ms-builder { --h: 190px !important; left: 4px; bottom: 6px; }
  .ms-actor { bottom: 12px; }
}
@media (max-width: 520px) { .ms-hero-stage { height: 220px; } .ms-walkway-hero { height: 220px; } .ms-builder { --h: 165px !important; } }
.ms-walkway-cast { position: relative; height: 270px; margin-top: 12px; left: 0; right: 0; }
.ms-reduce .ms-actor { animation: none; transform: translateX(20vw); }
.ms-reduce .ms-floor::before { animation: none; }

/* ---- Chip walks along the bottom edge as you scroll (positioned by public.js) ---- */
.ms-walker { position: fixed; left: 0; bottom: 0; width: auto; z-index: 25; pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0px), 0, 0); transition: opacity .4s; }
.ms-walker.ms-walker-on { opacity: 1; }
.ms-walker.ms-walker-hide { opacity: 0 !important; }
.ms-walker .ms-sprite { --h: clamp(90px, 9vw, 140px); transform-origin: 50% 100%; transform: scaleX(var(--dir, 1)); transition: transform .25s var(--ease); }
.ms-walker:not(.ms-walking) .ms-sprite video { animation-play-state: paused; }
.ms-walker-shadow { position: absolute; left: 20%; right: 20%; bottom: 2px; height: 10px; border-radius: 50%; background: rgba(0,0,0,.28); filter: blur(3px); }
.ms-walker.ms-walking .ms-walker-shadow { animation: ms-walk-shadow .42s ease-in-out infinite; }
@keyframes ms-walk-shadow { 0%, 100% { transform: scaleX(1); opacity: .28; } 50% { transform: scaleX(.8); opacity: .18; } }
.ms-reduce .ms-walker, .ms-touch .ms-walker { display: none; }

.ms-scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; display: none; }
.ms-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal-bright); animation: ms-cue 1.8s ease-in-out infinite; }
@keyframes ms-cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 901px) { .ms-scroll-cue { display: block; } }

/* ------------------------------------------------------------ numbers strip */
.ms-numbers { background: var(--night); color: #fff; padding: 0 0 8px; }
.ms-numbers-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
@media (max-width: 760px) { .ms-numbers-row { grid-template-columns: repeat(2, 1fr); } }
.ms-number { display: flex; gap: 14px; align-items: flex-start; }
.ms-number b { font-family: Nunito, system-ui, sans-serif; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; line-height: 1; min-width: 2ch; background: linear-gradient(180deg, #fff, var(--teal-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-number span { color: rgba(255,255,255,.7); font-size: .92rem; line-height: 1.35; padding-top: 6px; }

/* ------------------------------------------------------------ sections */
.ms-section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.ms-section-alt { background: var(--bg-alt); }
.ms-section-dark { background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.ms-section-dark h2, .ms-section-dark h3 { color: #fff; }
.ms-section-dark .ms-lead, .ms-section-dark p { color: rgba(255,255,255,.75); }
.ms-section-dark .ms-eyebrow { color: var(--teal-bright); }
.ms-section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.ms-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .ms-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ms-grid-3 { grid-template-columns: 1fr; } }
.ms-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ms-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(300px 200px at var(--mx, 50%) var(--my, 50%), rgba(63,183,199,.14), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.ms-card.ms-tilting::before { opacity: 1; }
.ms-card.ms-tilting { box-shadow: 0 24px 50px rgba(26,58,74,.14); }
.ms-card h3 { margin-top: .4rem; }
.ms-card p:last-child { margin-bottom: 0; }
.ms-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: 1.35rem; margin-bottom: .6rem; }
.ms-icon-orange { background: var(--orange-soft); color: var(--orange); }
.ms-list { padding-left: 1.2rem; margin: 0 0 1em; }
.ms-list li { margin: .35em 0; }
.ms-check { list-style: none; padding: 0; margin: 0; }
.ms-check li { position: relative; padding-left: 1.8rem; margin: .55em 0; }
.ms-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }

/* ---- scroll reveal ---- */
.ms-js .ms-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.ms-js .ms-reveal.ms-in { opacity: 1; transform: none; }
.ms-reduce .ms-reveal { opacity: 1; transform: none; transition: none; }
[data-tilt] { transition: transform .35s var(--ease), box-shadow .35s var(--ease); transform-style: preserve-3d; }
[data-tilt].ms-tilting { transition: transform .08s linear, box-shadow .35s var(--ease); }

/* ------------------------------------------------------------ inside a lesson */
.ms-lesson-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .ms-lesson-grid { grid-template-columns: 1fr; gap: 32px; } }
.ms-lesson-sticky { position: sticky; top: 96px; }
@media (max-width: 900px) { .ms-lesson-sticky { position: static; } }
.ms-steps { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 6px; }
.ms-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; transition: background .35s, border-color .35s, transform .35s var(--ease); }
.ms-steps li i { grid-row: 1 / 3; align-self: center; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85rem; color: var(--teal); background: var(--teal-soft); transition: background .35s, color .35s; }
.ms-steps li.ms-step-t i { color: #b4501a; background: var(--orange-soft); }
.ms-steps li b { display: block; font-family: Nunito, system-ui, sans-serif; color: var(--navy); font-size: 1rem; }
.ms-steps li span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.ms-steps li.ms-step-on { background: #fff; border-color: var(--line); transform: translateX(6px); box-shadow: 0 8px 24px rgba(26,58,74,.08); }
.ms-steps li.ms-step-on i { background: var(--teal); color: #fff; }
.ms-steps li.ms-step-t.ms-step-on i { background: var(--orange); color: #fff; }
.ms-lesson-scenes { display: grid; gap: 16px; }
.ms-scene { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(26,58,74,.08); }
.ms-scene img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: #eef3f5; }
.ms-scene figcaption { font-size: .95rem; color: var(--muted); line-height: 1.45; }
.ms-scene figcaption b { display: block; color: var(--navy); font-family: Nunito, system-ui, sans-serif; margin-bottom: 2px; font-size: 1.02rem; }
@media (max-width: 520px) { .ms-scene { grid-template-columns: 72px 1fr; } .ms-scene img { width: 72px; height: 72px; } }

/* ------------------------------------------------------------ books */
.ms-books-pair { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 28px; align-items: start; margin: 8px 0 0; }
@media (max-width: 900px) { .ms-books-pair { grid-template-columns: 1fr 1fr; } .ms-books-pair .ms-grades { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ms-books-pair { grid-template-columns: 1fr; } }
.ms-book-card { margin: 0; }
.ms-book-card img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 18px 40px rgba(26,58,74,.22), 0 2px 5px rgba(26,58,74,.12); }
.ms-book-card figcaption { margin-top: 14px; font-family: Nunito, system-ui, sans-serif; font-weight: 800; color: var(--navy); }
.ms-book-card figcaption span { display: block; font-family: system-ui, sans-serif; font-weight: 500; font-size: .9rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.ms-grades h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ms-grade-list { list-style: none; padding: 0; margin: 0; }
.ms-grade-list li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ms-grade-list b { font-family: Nunito, system-ui, sans-serif; font-weight: 900; color: var(--teal); font-size: 1.05rem; }
.ms-grade-list span { color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------ iPad band */
.ms-band { background: radial-gradient(700px 400px at 20% 0%, rgba(63,183,199,.35), transparent 60%), linear-gradient(135deg, var(--teal), var(--night-2)); color: #fff; border-radius: 26px; padding: clamp(30px, 4.5vw, 54px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; box-shadow: 0 30px 70px rgba(26,58,74,.25); }
@media (max-width: 800px) { .ms-band { grid-template-columns: 1fr; } }
.ms-band h2, .ms-band h3 { color: #fff; }
.ms-band p { color: rgba(255,255,255,.86); }
.ms-band .ms-btn-ghost { background: #fff; border-color: #fff; color: var(--teal-dark) !important; }
.ms-band .ms-btn-ghost:hover { background: var(--teal-soft); }
.ms-tablet { width: min(100%, 360px); margin: 0 auto; padding: 14px; border-radius: 30px; background: #0b1f2a; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 34px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); }
.ms-tablet-screen { position: relative; border-radius: 18px; overflow: hidden; background: #fff; aspect-ratio: 4 / 5; color: var(--navy); }
.ms-mock-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-family: Nunito, system-ui, sans-serif; font-weight: 800; font-size: .95rem; border-bottom: 1px solid var(--line); }
.ms-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.ms-mock-list { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 8px; }
.ms-mock-list li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; transition-delay: calc(var(--i) * 120ms) !important; }
.ms-mock-list li em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); }
.ms-mock-list li:nth-child(n+3) em { background: var(--orange-soft); color: #b4501a; }
.ms-mock-check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--teal); position: relative; }
.ms-mock-list li:nth-child(-n+2) .ms-mock-check { background: var(--teal); }
.ms-mock-list li:nth-child(-n+2) .ms-mock-check::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ms-mock-peek { position: absolute; right: -28px; bottom: -30px; width: 46%; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.3)); animation: ms-peek 6s ease-in-out infinite; }
@keyframes ms-peek { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-3deg); } }
.ms-reduce .ms-mock-peek { animation: none; }

/* ------------------------------------------------------------ company */
.ms-company { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 800px) { .ms-company { grid-template-columns: 1fr; } }
.ms-facts { border-left: 4px solid var(--orange); padding-left: 20px; margin: 0; }
.ms-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-top: .9rem; }
.ms-facts dd { margin: .1rem 0 0; font-weight: 600; color: var(--navy); }
.ms-facts dt:first-child { margin-top: 0; }

/* ------------------------------------------------------------ inner pages */
.ms-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 800px) { .ms-contact-grid { grid-template-columns: 1fr; } }
.ms-contact-grid .ms-card a { font-weight: 600; text-decoration: none; }
address { font-style: normal; }
.ms-doc { max-width: 46rem; }
.ms-doc h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.ms-doc h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.ms-doc-meta { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.ms-doc table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0 1.5rem; }
.ms-doc th, .ms-doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ms-doc th { background: var(--bg-alt); color: var(--navy); }
.ms-page-head { padding: clamp(40px, 6vw, 72px) 0 8px; }

/* ------------------------------------------------------------ footer */
.ms-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 52px 0 24px; font-size: .95rem; color: var(--muted); }
.ms-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 800px) { .ms-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ms-footer-grid { grid-template-columns: 1fr; } }
.ms-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); margin-bottom: .6rem; }
.ms-footer a { color: var(--navy); text-decoration: none; }
.ms-footer a:hover { color: var(--teal); }
.ms-footer-tag { max-width: 22rem; margin-top: .6rem; }
.ms-brand-footer .ms-wordmark { font-size: 1.3rem; }
.ms-brand-footer .ms-mark { height: 24px; }
.ms-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }

/* store badges in the apps band */
.ms-store-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.ms-store { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-weight: 700; font-size: .9rem; color: #fff; }
.ms-store i { font-style: normal; font-size: 1rem; }

/* ------------------------------------------------------------ icons */
.ms-ico { width: 24px; height: 24px; flex: 0 0 auto; }
.ms-ico-sm { width: 18px; height: 18px; }
.ms-ico-xs { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.ms-icon .ms-ico { width: 22px; height: 22px; }
.ms-store .ms-ico { width: 18px; height: 18px; }

/* ------------------------------------------------------------ inner-page hero */
.ms-page-hero { padding: clamp(40px, 6vw, 72px) 0 0; background: radial-gradient(900px 420px at 90% -20%, var(--teal-soft), transparent 60%); }
.ms-page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; }
@media (max-width: 860px) { .ms-page-hero-grid { grid-template-columns: 1fr; } }
.ms-page-hero h1 { margin-bottom: .6em; }
.ms-page-hero-art { position: relative; height: 230px; }
.ms-walkway-about { height: 230px; left: -8%; right: -8%; }
.ms-floor-light { background: linear-gradient(180deg, rgba(43,118,129,.10), rgba(43,118,129,0)); border-top-color: rgba(43,118,129,.35); }
.ms-floor-light::before { background: linear-gradient(90deg, transparent, var(--teal) 40%, transparent 70%); background-size: 60% 100%; }
@media (max-width: 860px) { .ms-page-hero-art { height: 200px; } .ms-walkway-about { height: 200px; left: -16px; right: -16px; } }

/* ------------------------------------------------------------ about */
.ms-mission { margin: 0; max-width: 52rem; }
.ms-mission p { font-family: Nunito, system-ui, sans-serif; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; color: var(--navy); margin: 0; padding-left: 26px; border-left: 4px solid var(--orange); }
.ms-principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .ms-principles { grid-template-columns: 1fr; } }
.ms-principle { display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding: 26px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.ms-principle-ico { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(63,183,199,.16); color: var(--teal-bright); }
.ms-principle h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.ms-principle p { margin: 0; font-size: .98rem; }
.ms-principle a { color: var(--teal-bright); }
.ms-facts-list { list-style: none; margin: 0; padding: 6px 0 0; display: grid; gap: 10px; }
.ms-facts-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--teal); }
.ms-facts-list li span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.ms-facts-list li b { display: block; color: var(--navy); font-weight: 600; margin-top: 2px; }
.ms-facts-list li b a { color: var(--navy); text-decoration: none; }
.ms-facts-list li b a:hover { color: var(--teal); }

/* ------------------------------------------------------------ contact */
.ms-contact-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px rgba(26,58,74,.06); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
a.ms-contact-card:hover { border-color: var(--teal); box-shadow: 0 24px 50px rgba(26,58,74,.14); }
.ms-contact-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal-soft), #fff); color: var(--teal); border: 1px solid var(--line); margin-bottom: 8px; }
.ms-contact-ico .ms-ico { width: 26px; height: 26px; }
.ms-contact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.ms-contact-value { font-family: Nunito, system-ui, sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--navy); line-height: 1.35; word-break: break-word; }
.ms-contact-note { display: inline-flex; align-items: center; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.ms-help-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
@media (max-width: 860px) { .ms-help-row { grid-template-columns: 1fr; } }
.ms-help { display: flex; gap: 14px; align-items: flex-start; padding: 6px 4px; }
.ms-help-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange); flex: 0 0 auto; }
.ms-help-ico .ms-ico { width: 20px; height: 20px; }
.ms-help h3 { font-size: 1rem; margin: 6px 0 4px; }
.ms-help p { margin: 0; font-size: .95rem; color: var(--muted); }
