/* Kreia Academy — design system
   Layout: editorial 12-col grid; a dark "night" hero stage, quiet light pages, dark bands for emphasis.
   One signature: Kreia cyan as a highlighter and as light on night surfaces, never as a flat UI fill. */
:root {
  --paper: #F5F6F3;
  --paper-2: #EAECE7;
  --card: #FFFFFF;
  --ink: #0E1213;
  --ink-2: #353D3F;
  --muted: #687174;
  --line: rgba(14, 18, 19, .12);
  --line-strong: rgba(14, 18, 19, .22);
  --night: #0B0E0F;
  --night-2: #151A1B;
  --night-3: #1D2426;
  --night-line: rgba(255, 255, 255, .1);
  --night-muted: #9AA4A6;
  --cyan: #B6F4F7;
  --cyan-deep: #7FE3E9;
  --teal: #0C5A60;
  --font-display: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(.82rem, .8rem + .1vw, .88rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 5.2rem);
  --step-5: clamp(3rem, 2rem + 5.4vw, 7rem);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
::selection { background: var(--cyan); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-5); letter-spacing: -.035em; line-height: .94; }
h2 { font-size: var(--step-4); letter-spacing: -.035em; }
h3 { font-size: var(--step-2); letter-spacing: -.02em; line-height: 1.1; }
h4 { font-size: var(--step-1); letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 38ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(72px, 9vw, 140px); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
.stack { display: grid; gap: 1.25rem; }
.stack-lg { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid > * { min-width: 0; }
@media (min-width: 760px) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 5fr 7fr; align-items: end; }
  .split-even { grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (min-width: 1000px) { .cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 999px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--ink-2); max-width: 60ch; font-size: var(--step-1); line-height: 1.45; }
.narrow > * { max-width: 860px; }

.night { background: var(--night); color: #EEF2F2; }
.night .muted, .night .section-head p { color: var(--night-muted); }
.night :focus-visible { outline-color: var(--cyan); }
.paper-2 { background: var(--paper-2); }

/* ---------- highlighter ---------- */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .06em; height: .42em; background: var(--cyan); transform-origin: left center; transform: scaleX(1); transition: transform 1.1s var(--ease) .25s; }
.js .mark.pre::after { transform: scaleX(0); }
.night .mark { color: var(--night); }
.night .mark::after { height: 1em; bottom: .02em; }
.glow { color: var(--cyan); }

/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-display); }
.brand svg { width: 34px; height: 34px; flex: none; }
.wordmark { display: grid; line-height: .92; }
.wordmark b { font-weight: 800; font-size: 1.04rem; letter-spacing: -.005em; }
/* logo option A: "AI ACADEMY" is sized and spaced to sit exactly the width of "KREIA" */
.wordmark i { font-style: normal; font-weight: 600; font-size: .576rem; letter-spacing: .1em; margin-right: -.1em; margin-top: .2em; white-space: nowrap; color: var(--teal); }
.site-footer .wordmark b, .mobile-menu .wordmark b { color: #fff; }
.site-footer .wordmark i, .mobile-menu .wordmark i { color: var(--cyan); }
.nav-links { display: none; gap: .25rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links { gap: clamp(1rem, 2vw, 1.9rem); }
.nav-links > li { position: relative; }
.nav-links > li.has-menu { position: static; }
.nav-links > li > a { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; padding: .55rem 0; font-size: .95rem; color: var(--ink-2); transition: color .25s; }
/* the label turns teal only on hover, keyboard focus, or while its dropdown is open; the current page just reads in full ink */
.nav-links > li > a[aria-current="page"] { color: var(--ink); }
.nav-links > li > a:hover, .nav-links > li.open > a, .nav-links > li > a:focus-visible { color: var(--teal); }
.nav-links > li.has-menu { margin-right: 14px; }
.nav-top .chev { position: absolute; right: -15px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; opacity: .7; transform: rotate(45deg); transition: transform .3s var(--ease); }
.has-menu.open .nav-top .chev { transform: translateY(3px) rotate(225deg); }
/* Courses dropdown */
.mega { position: absolute; top: calc(100% + 8px); left: 50%; width: min(1100px, calc(100vw - 48px)); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s; z-index: 60; }
.mega::before { content: ""; position: absolute; inset: -24px 0 auto; height: 24px; }
.has-menu.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; padding: 30px 32px 32px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 90px -36px rgba(14,18,19,.4); }
.mega-label { font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.mega-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.mega-cat { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px; margin: -2px; border-radius: 16px; text-decoration: none; transition: background-color .25s; }
.mega-cat:hover { background: none; }
.mega-img { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.mega-img img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; transition: transform .8s var(--ease); }
.mega-cat:hover .mega-img img { transform: scale(1.06); }
.mega-txt { display: grid; gap: 6px; min-width: 0; }
.mega-txt b { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -.015em; color: var(--ink); line-height: 1.25; transition: color .2s; }
.mega-cat:hover .mega-txt b { color: var(--teal); }
.mega-who { font-size: .84rem; line-height: 1.45; color: var(--ink-2);  }
.mega-meta { font-size: .78rem; color: var(--muted); }
.mega-side { display: flex; flex-direction: column; padding-left: 32px; border-left: 1px solid var(--line); }
.mega-side a:not(.btn) { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mega-side .mega-label { margin-bottom: 4px; }
.mega-side a:not(.btn) b { font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .2s; }
.mega-side a:not(.btn) span { font-size: .82rem; line-height: 1.45; color: var(--muted); }
.mega-side a:not(.btn):hover b { color: var(--teal); }
.mobile-menu .m-sub { display: grid; gap: .3rem; padding: .2rem 0 .6rem 1.1rem; border-left: 1px solid var(--night-line); margin-left: .2rem; }
.mobile-menu nav .m-sub a { font-family: var(--font-body); font-size: 1.05rem; letter-spacing: 0; color: var(--night-muted); }
.btn.nav-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: .5rem .95rem; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
@media (min-width: 1020px) { .nav-links { display: flex; } .btn.nav-cta { display: inline-flex; } .menu-btn { display: none; } }

.mobile-menu { position: fixed; inset: 0; z-index: 70; background: var(--night); color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 18px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 2rem; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu .top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .menu-btn { color: #fff; border-color: var(--night-line); }
.mobile-menu nav { display: grid; gap: .25rem; }
.mobile-menu nav a { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.03em; text-decoration: none; line-height: 1.15; transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.mobile-menu.open nav a { transform: none; opacity: 1; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .04s; } .mobile-menu.open nav a:nth-child(3) { transition-delay: .08s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .12s; } .mobile-menu.open nav a:nth-child(5) { transition-delay: .16s; } .mobile-menu.open nav a:nth-child(6) { transition-delay: .2s; }

/* ---------- buttons: pill, no arrows; hover fill blooms from the pointer ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --fill: var(--cyan); --fill-fg: var(--ink); --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .92rem 1.55rem; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1px var(--ring, transparent);
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 500; font-size: .98rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .45s var(--ease), background-color .2s linear .35s, transform .35s var(--ease), box-shadow .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: var(--x); top: var(--y);
  width: 260%; aspect-ratio: 1; border-radius: 50%; background: var(--fill);
  transform: translate(-50%, -50%) scale(0); transition: transform .6s var(--ease);
}
.btn:hover { color: var(--fill-fg); background-color: var(--fill); --ring: transparent; box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--fill) 70%, transparent); }
.btn:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn:active { transform: scale(.97); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --fill: var(--ink); --fill-fg: var(--paper); --ring: var(--line-strong); }
.night .btn, .hero .btn, .btn.on-night { --bg: var(--cyan); --fg: var(--night); --fill: #fff; --fill-fg: var(--night); }
.night .btn-ghost, .hero .btn-ghost, .result .btn-ghost, .btn-ghost.on-night { --bg: transparent; --fg: #fff; --fill: #fff; --fill-fg: var(--night); --ring: rgba(255,255,255,.28); }
/* dark text on a light button reads thinner than light text on a dark one, so it gets a heavier weight to look the same */
.btn-ghost, .night .btn, .hero .btn, .btn.on-night, .result .btn, .mobile-menu .btn { font-weight: 600; }
.night .btn-ghost, .hero .btn-ghost, .result .btn-ghost, .btn-ghost.on-night { font-weight: 500; }
.result .btn { --bg: var(--cyan); --fg: var(--night); --fill: #fff; --fill-fg: var(--night); }
.result .btn-ghost { --bg: transparent; --fg: #fff; }
.btn-sm { padding: .62rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-link { font-weight: 500; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; transition: background-size .45s var(--ease); }
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- HERO STAGE ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #EEF2F2; display: grid; align-items: center; min-height: min(calc(100svh - var(--header-h)), 900px); }
/* Full-bleed art: a looping generated film. The scrim is a plain colour fade so the headline stays readable. */
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
@media (min-width: 900px) { .hero-art { left: clamp(0px, 14vw - 100px, 240px); } }
.hero-art video, .hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; background: var(--night) url("img/hero-art.jpg") 72% 50% / cover no-repeat; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 0%, rgba(11,14,15,.78) 30%, rgba(11,14,15,0) 58%), linear-gradient(0deg, var(--night) 0%, rgba(11,14,15,0) 18%); }
.hero-inner { position: relative; padding-block: clamp(72px, 9vw, 140px); }
.hero-copy { max-width: 620px; }
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-inner { order: 1; padding-block: 48px 28px; z-index: 1; }
  .hero-art { order: 2; position: relative; inset: auto; z-index: 0; aspect-ratio: 1; margin-top: 0; }
  .hero-art video, .hero-art img { object-position: 74% 50%; }
  .hero-art::after { background: linear-gradient(180deg, var(--night) 0%, rgba(11,14,15,0) 28%), linear-gradient(0deg, var(--night) 0%, rgba(11,14,15,0) 20%); }
}
.intro .hero-art video { animation: art-in 2.4s var(--ease) both; }
@keyframes art-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.hero h1 { color: #fff; font-size: clamp(3rem, 1.8rem + 5vw, 6.4rem); }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lede { color: #C9D2D3; max-width: 40ch; }
.hero-copy { display: grid; gap: 1.8rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.2rem clamp(1.6rem, 3vw, 2.8rem); margin: .4rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); max-width: 620px; }
.hero-facts div { display: grid; gap: .2rem; }
.hero-facts dt { font-size: .78rem; color: var(--night-muted); }
.hero-facts dd { margin: 0; font-size: .98rem; font-weight: 500; color: #fff; }

.demo-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 1000px) { .demo-grid { grid-template-columns: 5fr 7fr; } }

.stage { position: relative; display: grid; gap: 14px; min-width: 0; }
.stage-shell { position: relative; border-radius: 18px; padding: 14px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--night-line); box-shadow: 0 40px 120px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06); }
.stage-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--night-line); }
.stage-bar .model { flex: none; font-size: .72rem; letter-spacing: .04em; color: var(--night); background: var(--cyan); border-radius: 999px; padding: .2rem .55rem; font-weight: 600; }
.stage-bar .typed { flex: 1; min-width: 0; font-size: .95rem; color: #E7ECEC; min-height: 1.5em; }
.stage-bar .send { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.stage-bar .send.busy { background: var(--cyan); transform: scale(.9); }
.stage-bar .send i { width: 10px; height: 10px; border-top: 2px solid var(--night); border-right: 2px solid var(--night); transform: rotate(-45deg) translate(-1px, 1px); }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--cyan); vertical-align: -.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.stage-view { position: relative; margin-top: 14px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--night-2); border: 1px solid var(--night-line); }
.out { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform 1s var(--ease); display: grid; }
.out.show { opacity: 1; transform: none; }
.out img { width: 100%; height: 100%; object-fit: cover; }
.out-label { position: absolute; left: 12px; bottom: 12px; font-size: .74rem; color: #fff; background: rgba(11,14,15,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--night-line); border-radius: 999px; padding: .3rem .7rem; }
.stage-tracks { display: flex; flex-wrap: wrap; gap: 2px 18px; border-bottom: 1px solid var(--night-line); }
.stage-tracks button { font: inherit; font-size: .85rem; color: var(--night-muted); background: none; border: 0; padding: .55rem 0; margin-bottom: -1px; border-bottom: 2px solid transparent; cursor: pointer; transition: color .25s, border-color .25s; }
.stage-tracks button:hover { color: #fff; }
.stage-tracks button[aria-pressed="true"] { color: var(--cyan); border-bottom-color: var(--cyan); }
/* on phones the examples stay on one line and scroll sideways, fading at the edge to show there are more */
@media (max-width: 560px) {
  .stage-tracks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 16px; border-bottom: 0; box-shadow: inset 0 -1px var(--night-line); -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .stage-tracks::-webkit-scrollbar { display: none; }
  .stage-tracks.at-end { -webkit-mask-image: none; mask-image: none; }
  .stage-tracks button { flex: none; white-space: nowrap; margin-bottom: 0; }
}
.stage-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); }
.stage-progress i { display: block; height: 100%; width: 0; background: var(--cyan); }

/* output mocks inside the stage */
.mock-doc { margin: auto; width: min(86%, 440px); background: #fff; color: var(--ink); border-radius: 8px; padding: 22px 24px; font-size: .78rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); display: grid; gap: 12px; align-self: center; }
.mock-doc .row { display: flex; justify-content: space-between; gap: 10px; }
.mock-doc .title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.mock-doc .tag { color: var(--teal); font-weight: 600; }
.mock-doc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mock-doc td, .mock-doc th { padding: 5px 0; border-bottom: 1px solid var(--line); text-align: left; }
.mock-doc th { font-weight: 500; color: var(--muted); font-size: .7rem; }
.mock-doc td:last-child, .mock-doc th:last-child { text-align: right; }
.mock-doc .total { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.mock-sheet { margin: auto; width: min(88%, 460px); display: grid; gap: 10px; align-self: center; }
.mock-sheet .bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 14px; background: #fff; border-radius: 8px; }
.mock-sheet .bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--teal), #13777e); transform-origin: bottom; animation: grow 1s var(--ease) both; }
.mock-sheet .bars i.hi { background: linear-gradient(180deg, var(--cyan-deep), var(--cyan)); }
@keyframes grow { from { transform: scaleY(0); } }
.mock-sheet .note { background: var(--night-3); color: #DDE3E3; border-radius: 8px; padding: 10px 12px; font-size: .78rem; border: 1px solid var(--night-line); }
.mock-browser { margin: auto; width: min(90%, 480px); border-radius: 10px; overflow: hidden; background: #fff; align-self: center; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.mock-browser .chrome { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: #EEF0EC; }
.mock-browser .chrome i { width: 8px; height: 8px; border-radius: 50%; background: #C9CFCC; }
.mock-browser .chrome span { margin-left: 8px; flex: 1; height: 16px; border-radius: 4px; background: #fff; font-size: .62rem; color: var(--muted); padding-left: 8px; line-height: 16px; }
.mock-browser .app { display: grid; grid-template-columns: 90px 1fr; min-height: 190px; }
.mock-browser .side { background: var(--ink); padding: 12px 10px; display: grid; gap: 8px; align-content: start; }
.mock-browser .side i { height: 8px; border-radius: 3px; background: rgba(255,255,255,.18); }
.mock-browser .side i:first-child { background: var(--cyan); width: 70%; }
.mock-browser .main { padding: 12px; display: grid; gap: 10px; align-content: start; }
.mock-browser .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-browser .kpis div { border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: .62rem; color: var(--muted); }
.mock-browser .kpis b { display: block; font-family: var(--font-display); color: var(--ink); font-size: .95rem; }
.mock-browser .rows { display: grid; gap: 5px; }
.mock-browser .rows i { height: 10px; border-radius: 3px; background: var(--paper-2); }
.mock-browser .rows i:nth-child(2n) { width: 82%; }
.film-ui { position: absolute; left: 12px; right: 12px; bottom: 44px; display: flex; align-items: center; gap: 10px; color: #fff; font-size: .72rem; font-variant-numeric: tabular-nums; }
.film-ui .play { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; }
.film-ui .play::before { content: ""; border-left: 8px solid var(--night); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.film-ui .track { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.film-ui .track i { display: block; height: 100%; width: 35%; background: var(--cyan); animation: scrub 6s linear infinite; }
@keyframes scrub { from { width: 5%; } to { width: 95%; } }

/* ---------- outcome marquee ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- principles ---------- */
.principle-card { display: grid; gap: .9rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); align-content: start; }
.principle-card .k { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; letter-spacing: -.032em; color: var(--teal); }
.principle-card p { color: var(--ink-2); }

/* ---------- track cards ---------- */
.tracks { display: grid; gap: 18px; }
@media (min-width: 700px) { .tracks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .tracks { grid-template-columns: repeat(3, 1fr); } }
.track-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; min-width: 0; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.track-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(14,18,19,.45); border-color: var(--line-strong); }
.track-visual { position: relative; aspect-ratio: 16 / 10; background: var(--night); overflow: hidden; display: grid; }
.track-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.track-card:hover .track-visual img { transform: scale(1.05); }
.track-visual .mock-doc, .track-visual .mock-browser, .track-visual .mock-sheet { transform: scale(.82); transition: transform .8s var(--ease); }
.track-card:hover .track-visual .mock-doc, .track-card:hover .track-visual .mock-browser, .track-card:hover .track-visual .mock-sheet { transform: scale(.86); }
.track-body { padding: 22px 22px 24px; display: grid; gap: .8rem; align-content: start; }
.track-body h3 { font-size: var(--step-1); }
.track-body p { color: var(--ink-2); font-size: .97rem; }
.track-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.chip { font-size: .76rem; padding: .25rem .65rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.chip.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.cy { background: var(--cyan); color: var(--ink); border-color: var(--cyan); }
/* agent mock: the agent's own run log, each finished step ticked and the next one waiting */
.mock-agent { margin: auto; width: min(88%, 400px); align-self: center; padding: 14px 16px 16px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--night-line); color: #EEF2F2; box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }
.mock-agent .hd { display: flex; align-items: center; gap: 8px; padding-bottom: 11px; margin-bottom: 12px; border-bottom: 1px solid var(--night-line); font-size: .78rem; }
.mock-agent .hd b { font-weight: 600; }
.mock-agent .live { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 22%, transparent); }
.mock-agent .state { margin-left: auto; font-size: .7rem; color: var(--night-muted); }
.mock-agent ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.mock-agent li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.mock-agent li:not(:last-child)::before { content: ""; position: absolute; left: 8.5px; top: 22px; bottom: -9px; width: 1px; background: var(--night-line); }
.mock-agent .ic { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; }
.mock-agent .ic::after { content: ""; width: 7px; height: 3.5px; margin-top: -2px; border-left: 1.6px solid var(--night); border-bottom: 1.6px solid var(--night); transform: rotate(-45deg); }
.mock-agent li.next .ic { background: none; border: 1.5px dashed var(--night-muted); }
.mock-agent li.next .ic::after { display: none; }
.mock-agent li div { display: grid; gap: 2px; min-width: 0; }
.mock-agent li b { font-size: .76rem; font-weight: 600; line-height: 1.3; }
.mock-agent li.next b { color: #C9D2D3; }
.mock-agent li span { font-size: .7rem; line-height: 1.4; color: var(--night-muted); }
.mock-agent time { font-size: .68rem; line-height: 1.6; color: var(--night-muted); font-variant-numeric: tabular-nums; }

/* ---------- flagship / own your system ---------- */

@media (min-width: 640px) { .packs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.price-tag { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price-tag small { font-family: var(--font-body); font-size: .8rem; color: var(--muted); letter-spacing: 0; }

/* ---------- course catalogue ---------- */
.filters { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.filters .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 12px; }
.seg { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 999px; background: var(--paper-2); width: max-content; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; flex: none; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--ink-2); padding: .5rem .95rem; border-radius: 999px; cursor: pointer; transition: color .3s; white-space: nowrap; }
.seg button[aria-pressed="true"] { color: var(--paper); }
.seg .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease), width .45s var(--ease); }
.levels { display: flex; flex-wrap: wrap; gap: 6px; }
.levels button { font: inherit; font-size: .8rem; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); padding: .32rem .75rem; border-radius: 999px; cursor: pointer; transition: all .25s; }
.levels button[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.track-block { padding-block: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.track-block[hidden] { display: none !important; }
.track-head { display: grid; gap: 1rem; margin-bottom: 28px; }
@media (min-width: 900px) { .track-head { grid-template-columns: 6fr 6fr; align-items: end; } }
.track-head h2 { font-size: var(--step-3); }
.track-head p { color: var(--ink-2); max-width: 52ch; }
.course-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
.course { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; transition: border-color .3s, box-shadow .4s var(--ease); }
.course:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px -30px rgba(14,18,19,.35); }
.course[hidden] { display: none !important; }
.course.flag { background: var(--night); color: #EEF2F2; border-color: var(--night); }
.course.flag .course-sum, .course.flag .course-facts dt { color: var(--night-muted); }
.course.flag .chip { border-color: var(--night-line); color: #DDE3E3; }
.course.flag .course-facts { border-color: var(--night-line); }
.course.flag details { border-color: var(--night-line); }
.course-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.course h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.course-sum { color: var(--ink-2); font-size: .95rem; }
.course-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-block: 12px; border-block: 1px solid var(--line); margin: 0; }
.course-facts dt { font-size: .74rem; color: var(--muted); }
.course-facts dd { margin: 2px 0 0; font-weight: 500; font-size: .92rem; font-variant-numeric: tabular-nums; }
.course details { border-top: 0; }
.course summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: .92rem; padding-block: 2px; }
.course summary::-webkit-details-marker { display: none; }
.course summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--ease); }
.course details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.syll { display: grid; gap: 12px; padding-top: 12px; font-size: .9rem; }
.syll b { font-weight: 600; display: block; margin-bottom: 4px; }
.syll ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 3px; color: var(--ink-2); }
.course.flag .syll ul { color: #C9D2D3; }
.outcomes { display: grid; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.outcomes li { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; font-size: .93rem; color: var(--ink-2); }
.outcomes li::before { content: ""; width: 12px; height: 12px; margin-top: .38em; border-radius: 50%; border: 3px solid var(--cyan); background: var(--ink); }
.course.flag .outcomes li, .night .outcomes li { color: #DDE3E3; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }

/* ---------- pricing ---------- */
.offer { display: grid; gap: .8rem; padding: clamp(20px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: 14px; background: var(--card); align-content: start; }
.offer .price { font-family: var(--font-display); font-size: var(--step-2); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.offer .price small { font-family: var(--font-body); font-size: var(--step--1); color: var(--muted); letter-spacing: 0; }
.schedule { display: grid; border-top: 1px solid var(--line-strong); }
.sched-row { display: grid; gap: .3rem 1.5rem; padding-block: 1.05rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; align-items: center; }
@media (min-width: 860px) { .sched-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr) 90px auto; } }
.sched-row .when { display: grid; gap: 2px; }
.sched-row .when small { font-size: .82rem; color: var(--muted); }
.night .sched-row .when small { color: var(--night-muted); }
.sched-row .what { font-weight: 500; }

/* ---------- FORM COMPONENTS ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 16px 10px; outline: none; appearance: none;
  box-shadow: 0 1px 0 rgba(14,18,19,.02), inset 0 0 0 0 transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field label { position: absolute; left: 17px; top: 18px; font-size: 1rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.field input:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 70%, transparent); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); color: var(--ink-2); }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field .hint { display: block; font-size: .78rem; color: var(--muted); margin: 6px 4px 0; }
.field.invalid input { border-color: #B3412E; box-shadow: 0 0 0 4px rgba(179, 65, 46, .12); }

/* custom select (listbox) */
.select { position: relative; }
.select-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 16px 10px; cursor: pointer; min-height: 62px; transition: border-color .25s, box-shadow .25s;
}
.select-btn .val { font-size: 1rem; min-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select-btn .val:empty::before { content: "\00a0"; }
.select-btn .chev { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); transition: transform .35s var(--ease), background .25s; margin-top: -14px; }
.select-btn .chev::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg) translate(-1px, -1px); }
.select .flabel { position: absolute; left: 17px; top: 18px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s; }
.select.filled .flabel, .select.open .flabel { transform: translateY(-10px) scale(.76); color: var(--ink-2); }
.select.open .select-btn, .select-btn:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 70%, transparent); outline: none; }
.select.open .chev { transform: rotate(180deg); background: var(--cyan); }
.select.invalid .select-btn { border-color: #B3412E; box-shadow: 0 0 0 4px rgba(179, 65, 46, .12); }
.select-pop {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px);
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px -30px rgba(14,18,19,.45);
  padding: 8px; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.select.open .select-pop { opacity: 1; transform: none; pointer-events: auto; }
.select-search { width: 100%; font: inherit; font-size: .92rem; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin-bottom: 6px; outline: none; background: var(--paper); }
.select-search:focus { border-color: var(--ink); }
.select-list { max-height: 300px; overflow-y: auto; display: grid; gap: 2px; padding: 0; margin: 0; list-style: none; overscroll-behavior: contain; }
.select-list .grp { font-size: .78rem; font-weight: 600; color: var(--muted); padding: .7rem .7rem .3rem; }
.select-list [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: .6rem .7rem; border-radius: 10px; cursor: pointer; font-size: .95rem; }
.select-list [role="option"] small { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .82rem; }
.select-list [role="option"] { position: relative; transition: color .2s, padding .25s var(--ease); }
.select-list [role="option"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); transform: translateY(-50%) scale(0); transition: transform .25s var(--ease); }
.select-list [role="option"].active { color: var(--teal); padding-left: 1.2rem; }
.select-list [role="option"].active::before { transform: translateY(-50%) scale(.7); left: .45rem; }
.select-list [role="option"][aria-selected="true"] { color: var(--ink); font-weight: 600; padding-left: 1.2rem; }
.select-list [role="option"][aria-selected="true"]::before { transform: translateY(-50%) scale(1); left: .45rem; }
.select-list [role="option"][aria-selected="true"] small { color: var(--teal); }
.select-list .empty { padding: .8rem; color: var(--muted); font-size: .9rem; }

/* segmented toggle */

.result { display: grid; gap: 14px; padding: 22px; border-radius: 16px; background: var(--night); color: #EEF2F2; }
.result[hidden] { display: none; }
.result h4 { color: #fff; }
.contact-card { display: grid; gap: 1.1rem; padding: clamp(24px, 3vw, 34px); border-radius: 18px; background: var(--night); color: #EEF2F2; align-content: start; }

/* ---------- accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; text-align: left; background: none; border: 0; padding: 1.2rem 0; font: inherit; color: inherit; cursor: pointer; }
.acc-btn .t { font-family: var(--font-display); font-size: var(--step-1); letter-spacing: -.015em; font-weight: 500; }
.acc-btn .pm { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s, border-color .3s; }
.acc-btn .pm::before { content: "+"; font-size: 1.1rem; line-height: 1; }
.acc-item.open .pm { transform: rotate(45deg); background: var(--cyan); border-color: var(--cyan); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel .inner { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 64ch; }

/* ---------- misc ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 110px) clamp(32px, 4vw, 56px); }

.page-hero .lede { max-width: 56ch; }
.page-hero-grid { display: grid; gap: 2rem; }
.img-band { position: relative; overflow: hidden; border-radius: 14px; }
.img-band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 700px) { .img-band img { aspect-ratio: 4 / 3; } }
.statement { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.08; letter-spacing: -.03em; max-width: 22ch; font-weight: 500; }
.cta-band { display: grid; gap: 2rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.principle { display: grid; gap: .8rem; padding: 1.75rem 0; border-top: 1px solid var(--line-strong); }
.principle p { color: var(--ink-2); max-width: 58ch; }
.step { display: grid; gap: .8rem; padding-top: 1.25rem; border-top: 1px solid var(--night-line); align-content: start; }
.step .idx { font-family: var(--font-display); font-size: var(--step-3); color: var(--cyan); line-height: 1; letter-spacing: -.032em; }
.step p { color: #C9D2D3; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #DDE3E3; padding-block: clamp(56px, 7vw, 96px) calc(env(safe-area-inset-bottom, 0px) + 32px); }
.footer-big { font-family: var(--font-display); font-size: clamp(3rem, 12vw, 11rem); letter-spacing: -.045em; line-height: .85; color: #fff; margin-block: 2.5rem 2rem; font-weight: 600; }
.footer-big em { font-style: normal; color: var(--cyan); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--night-muted); letter-spacing: .04em; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid a { text-decoration: none; color: #EEF2F2; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--night-line); font-size: var(--step--1); color: var(--night-muted); }

/* ---------- motion ---------- */
.js .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.pre { opacity: 0; transform: translateY(32px); }
.js .reveal-img { transition: clip-path 1.3s var(--ease), transform 1.3s var(--ease); }
.js .reveal-img.pre { clip-path: inset(12% 6% 12% 6% round 14px); transform: scale(.98); }
/* the line clips its rise-in animation, so leave room for descenders (g, y, p) below the baseline */
.split-line { display: block; overflow: hidden; padding-block: .14em .2em; margin-block: -.14em -.14em; }
.split-line > span { display: inline-block; }
.intro .split-line > span { animation: rise 1.1s var(--ease) both; }
.intro .split-line:nth-child(2) > span { animation-delay: .09s; }
.intro .split-line:nth-child(3) > span { animation-delay: .18s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.intro .fade-up { animation: fadeup 1s var(--ease) both; }
.intro .fade-up.d1 { animation-delay: .35s; } .intro .fade-up.d2 { animation-delay: .5s; } .intro .fade-up.d3 { animation-delay: .65s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.intro .hero-mark::after { animation: swipe 1.2s var(--ease) .75s both; }
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}


/* ---------- audiences (home cards, catalogue blocks) ---------- */
@media (min-width: 700px) { .tracks.aud { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.tracks.aud .track-visual { aspect-ratio: 16 / 9; }
.tracks.aud .track-body { padding: 24px 26px 28px; }
.tracks.aud .track-body h3 { font-size: var(--step-2); letter-spacing: -.03em; }
.track-head p b { color: var(--ink); font-weight: 500; }
.track-sub + .track-sub { margin-top: clamp(32px, 4vw, 48px); }
.track-sub, .pack-group { scroll-margin-top: 190px; }
.sub-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.sub-head h3 { font-size: var(--step-1); }
.sub-head p { color: var(--muted); font-size: .95rem; max-width: 60ch; }
.track-head + .track-sub .sub-head { border-top: 0; padding-top: 0; }

/* ---------- prompt packs grouped ---------- */

/* ---------- advice band ---------- */
.advice { display: grid; gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 4.5vw, 56px); border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
@media (min-width: 900px) { .advice { grid-template-columns: 6fr 5fr; align-items: center; } }
.advice h2 { font-size: var(--step-3); }
.advice-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: st; }
.advice-steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.advice-steps li:last-child { border-bottom: 1px solid var(--line); }
.advice-steps li::before { content: '0' counter(st); grid-row: span 2; font-family: var(--font-display); font-size: var(--step-1); color: var(--teal); letter-spacing: -.03em; line-height: 1.1; }
.advice-steps b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.advice-steps span { color: var(--ink-2); font-size: .95rem; }


/* ---------- category tabs (Courses page) and pack filter: text + brand dot, no pills ---------- */
.tabs { display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: .4rem; padding: .7rem 0; font: inherit; font-size: .98rem; color: var(--ink-2); text-decoration: none; background: none; border: 0; cursor: pointer; transition: color .25s; }
.tabs a span { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs a::after, .tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs a[aria-current="true"], .tabs button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.tabs a[aria-current="true"]::after, .tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.tabs-filter { margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.filters .wrap { padding-block: 0; }

/* ---------- course rows ---------- */
.crs-list { display: grid; border-top: 1px solid var(--line); }
.crs-group { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 26px 0 10px; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.crs-group b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.crs-group span { font-size: .82rem; color: var(--muted); }
.anchor { display: block; scroll-margin-top: 150px; }
.crs { position: relative; display: grid; gap: 18px 28px; padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
@media (min-width: 900px) { .crs { grid-template-columns: 150px 1fr 220px; align-items: start; } }
.crs-num { font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 1.6vw, 3.4rem); font-weight: 600; letter-spacing: -.04em; line-height: .9; color: var(--line-strong); }
.crs-img { width: 100%; max-width: 360px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.crs-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.crs:hover .crs-img img { transform: scale(1.05); }
.crs-main { display: grid; gap: .7rem; min-width: 0; }
.crs-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .82rem; color: var(--muted); }
.lvl { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; color: var(--ink-2); }
.lvl .dots { display: inline-flex; gap: 3px; }
.lvl .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.lvl .dots i.on { background: var(--teal); }
.lvl.flagship { color: var(--teal); }
.crs h3 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); letter-spacing: -.025em; }
.crs-sum { color: var(--ink-2); max-width: 62ch; }
.crs-out { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .35rem; }
@media (min-width: 1100px) { .crs-out { grid-template-columns: repeat(3, 1fr); gap: .6rem 1.2rem; } }
.crs-out li { position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.crs-out li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 2px color-mix(in srgb, var(--teal) 30%, transparent); }
.crs-syll summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .9rem; padding-top: .3rem; }
.crs-syll summary::-webkit-details-marker { display: none; }
.crs-syll summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.crs-syll[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.crs-syll .syll { display: grid; gap: 14px; padding-top: 14px; }
@media (min-width: 760px) { .crs-syll .syll { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.crs-syll .syll b { font-size: .88rem; }
.crs-syll .syll ul { margin: .3rem 0 0; padding-left: 1rem; font-size: .86rem; color: var(--ink-2); }
.crs-side { display: grid; gap: .7rem; align-content: start; }
@media (min-width: 900px) { .crs-side { justify-items: end; text-align: right; } }
.crs-price { font-family: var(--font-display); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); font-weight: 600; letter-spacing: -.032em; line-height: 1; font-variant-numeric: tabular-nums; }
.crs-price small { display: block; font-family: var(--font-body); font-size: .78rem; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: .35rem; }
.crs-meta { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.crs.flag { margin-block: 18px; padding: 30px clamp(20px, 3vw, 34px); border-radius: 18px; background: var(--night); color: #EEF2F2; border: 0; }
.crs.flag .crs-sum, .crs.flag .crs-out li, .crs.flag .crs-syll .syll ul { color: #C9D2D3; }
.crs.flag .crs-tags, .crs.flag .crs-meta, .crs.flag .crs-price small, .crs.flag .lvl { color: var(--night-muted); }
.crs.flag .lvl.flagship { color: var(--cyan); }
.crs.flag .lvl .dots i { background: rgba(255,255,255,.2); }
.crs.flag .lvl .dots i.on { background: var(--cyan); }
.crs.flag .crs-num { color: rgba(255,255,255,.18); }
.paper-2 .crs-list, .paper-2 .crs, .paper-2 .crs-group { border-color: rgba(14,18,19,.14); }

/* ---------- Courses page bands ---------- */
.cat-band { padding-block: clamp(48px, 6vw, 88px) 0; scroll-margin-top: 120px; }
.cat-band + .cat-band { border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }
.cat-band-head { display: grid; gap: 24px; margin-bottom: 28px; align-items: center; }
@media (min-width: 900px) { .cat-band-head { grid-template-columns: 380px 1fr; gap: 40px; } }
.cat-band-img { display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.cat-band-img img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; transition: transform 1.2s var(--ease); }
.cat-band-img:hover img { transform: scale(1.05); }
.cat-band-head h2 { font-size: var(--step-3); }
.cat-band-head p { color: var(--ink-2); max-width: 60ch; }
.cat-band-head p b { color: var(--ink); font-weight: 500; }

/* ---------- category landing pages ---------- */
.cat-hero { min-height: min(calc(100svh - var(--header-h)), 820px); }
@media (min-width: 900px) { .cat-hero .hero-art { left: clamp(0px, 22vw - 120px, 360px); } }
.cat-hero .hero-art::after { background: linear-gradient(90deg, var(--night) 0%, rgba(11,14,15,.8) 32%, rgba(11,14,15,0) 60%), linear-gradient(0deg, var(--night) 0%, rgba(11,14,15,0) 18%); }
.cat-hero h1 { font-size: clamp(2.8rem, 1.8rem + 4.4vw, 5.8rem); }
.crumb { display: inline-flex; align-items: center; gap: .5rem; justify-self: start; font-size: .85rem; color: var(--night-muted); text-decoration: none; transition: color .25s; }
.crumb::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.crumb:hover { color: #fff; }
.gallery { columns: 3 300px; column-gap: 18px; }
.shot { break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.shot img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 40px 16px 14px; color: #fff; background: linear-gradient(0deg, rgba(11,14,15,.82), rgba(11,14,15,0)); }
.shot figcaption b { font-weight: 600; font-size: .98rem; }
.shot figcaption a { font-size: .8rem; color: var(--cyan); text-decoration: none; }
.shot figcaption a:hover { text-decoration: underline; }
.mock-gallery { display: grid; gap: 18px; }
@media (min-width: 760px) { .mock-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mock-gallery { grid-template-columns: repeat(3, 1fr); } }
.mshot { margin: 0; display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.mshot-stage { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--night); overflow: hidden; }
.mshot-stage > * { transform: scale(.9); transition: transform .8s var(--ease); }
.mshot:hover .mshot-stage > * { transform: scale(.94); }
.mshot figcaption { display: grid; gap: 4px; padding: 16px 18px 18px; }
.mshot figcaption b { font-weight: 600; }
.mshot figcaption a { font-size: .85rem; color: var(--teal); text-decoration: none; }
.mshot figcaption a:hover { text-decoration: underline; }

/* ---------- extra mocks ---------- */
.mock-slides { width: min(88%, 440px); display: grid; gap: 10px; }
.mock-slides .slide { aspect-ratio: 16 / 9; border-radius: 8px; background: #fff; padding: 18px 20px; display: grid; align-content: start; gap: 6px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.mock-slides .slide b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.mock-slides .slide .sub { font-size: .7rem; color: var(--muted); }
.mock-slides .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mock-slides .cols i { height: 42px; border-radius: 6px; background: var(--paper-2); }
.mock-slides .cols i:nth-child(2) { background: var(--cyan); }
.mock-slides .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mock-slides .thumbs i { aspect-ratio: 16 / 9; border-radius: 3px; background: rgba(255,255,255,.14); }
.mock-slides .thumbs i.on { background: #fff; box-shadow: 0 0 0 2px var(--cyan); }
.mock-mail { width: min(86%, 420px); display: grid; gap: 10px; padding: 18px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.mock-mail .hd { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mock-mail .hd b { font-size: .82rem; }
.mock-mail .hd span { font-size: .7rem; color: var(--muted); }
.mock-mail p { font-size: .76rem; line-height: 1.5; color: var(--ink-2); }
.mock-mail .chip { justify-self: start; font-size: .66rem; }
.mock-site { width: min(90%, 460px); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.mock-site .chrome { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: #EEF0EC; }
.mock-site .chrome i { width: 8px; height: 8px; border-radius: 50%; background: #C9CFCC; }
.mock-site .chrome span { margin-left: 8px; flex: 1; height: 16px; border-radius: 4px; background: #fff; font-size: .62rem; color: var(--muted); padding-left: 8px; line-height: 16px; }
.mock-site .pg { padding: 14px 16px 18px; display: grid; gap: 14px; }
.mock-site .nv { display: flex; align-items: center; gap: 10px; }
.mock-site .nv b { font-family: var(--font-display); font-size: .85rem; margin-right: auto; }
.mock-site .nv span { width: 28px; height: 6px; border-radius: 3px; background: var(--paper-2); }
.mock-site .hr { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: center; }
.mock-site .hr > div:first-child { display: grid; gap: 7px; }
.mock-site .t { display: block; height: 12px; border-radius: 3px; background: var(--ink); }
.mock-site .t.s { width: 70%; }
.mock-site .b { display: block; width: 46%; height: 18px; margin-top: 6px; border-radius: 999px; background: var(--cyan); }
.mock-site .pic { aspect-ratio: 1; border-radius: 8px; background: url("img/ex-cafe.jpg") center / cover; }

/* ---------- prompt pack bundle ---------- */
.mobile-menu .btn { --bg: var(--cyan); --fg: var(--night); --fill: #fff; --fill-fg: var(--night); }

/* plain-text metadata: no pill labels */
.meta-line { display: flex; flex-wrap: wrap; gap: .2rem 0; font-size: .88rem; color: var(--muted); }
.meta-line span::before { content: "·"; margin: 0 .55rem; color: var(--line-strong); }
.track-body .text-link { justify-self: start; margin-top: .2rem; }
.dur { font-size: .9rem; color: var(--muted); margin-top: -.4rem; }
.night .dur, .offer[style*="night"] .dur { color: var(--night-muted); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .55rem 1.5rem; }
.plain-list li { padding-bottom: .55rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.mock-mail .drafted { font-size: .7rem; color: var(--teal); font-weight: 600; }

/* two-tone headings: one plain line, one accent line, each kept to a single row on wider screens */
h1 em, h2 em { font-style: normal; color: var(--teal); }
.night h1 em, .night h2 em, .hero h1 em { color: var(--cyan); }
.duo > span, .duo > em { display: block; }
@media (min-width: 760px) { .duo > span, .duo > em, .split-line > span { white-space: nowrap; } }

/* class details live inside the syllabus panel, not beside the price */
.crs-facts { display: flex; flex-wrap: wrap; gap: .9rem 2.2rem; margin: 14px 0 4px; padding: 14px 0; border-block: 1px solid var(--line); }
.crs-facts div { display: grid; gap: 2px; }
.crs-facts dt { font-size: .76rem; color: var(--muted); }
.crs-facts dd { margin: 0; font-size: .9rem; font-weight: 500; color: var(--ink); }
.crs.flag .crs-facts { border-color: var(--night-line); }
.crs.flag .crs-facts dt { color: var(--night-muted); }
.crs.flag .crs-facts dd { color: #fff; }
.cat-hero .hero-copy { max-width: 780px; }

/* ---------- home: upcoming classes link straight to checkout ---------- */
.sched-link { grid-template-columns: 1fr auto; border-color: var(--night-line); color: inherit; text-decoration: none; }
.sched-link .what { transition: color .25s; }
.sched-link:hover .what { color: var(--cyan); }

/* ---------- checkout ---------- */
.co-head { padding-block: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.co-head-inner { display: grid; gap: 14px; }
.co-back { display: inline-flex; align-items: center; gap: .5rem; justify-self: start; font-size: .85rem; color: var(--muted); text-decoration: none; transition: color .25s; }
.co-back::before { content: ""; width: 7px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.co-back:hover { color: var(--ink); }
.co-title { font-size: var(--step-4); letter-spacing: -.035em; line-height: 1; }
.co-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; align-items: center; gap: 12px; max-width: 620px; }
.co-steps li { display: flex; align-items: center; gap: 10px; flex: 1; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.co-steps li:last-child { flex: none; }
.co-steps li[hidden], #co-invoice-block[hidden], #co-fine-pay[hidden], .co-done [hidden] { display: none; }
.co-steps li:not(:last-child)::after { content: ""; flex: 1; min-width: 16px; height: 1px; background: var(--line-strong); }
.co-steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 600; border: 1.5px solid var(--line-strong); color: var(--muted); font-variant-numeric: tabular-nums; transition: background .3s, color .3s, border-color .3s; }
.co-steps li[aria-current="step"] { color: var(--ink); font-weight: 500; }
.co-steps li[aria-current="step"] .n { background: var(--ink); border-color: var(--ink); color: var(--cyan); }
.co-steps li.done { color: var(--ink-2); }
.co-steps li.done .n { background: var(--teal); border-color: var(--teal); color: transparent; position: relative; }
.co-steps li.done .n::after { content: ""; position: absolute; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.co-steps li.done::after { background: var(--teal); }
@media (max-width: 520px) { .co-steps .t { display: none; } .co-steps li[aria-current="step"] .t { display: inline; } }

.co-body { padding-block: clamp(28px, 4vw, 56px) clamp(64px, 8vw, 110px); }
.co-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
.co-main, .co-summary { min-width: 0; }
.co-main { container-type: inline-size; }
@media (min-width: 980px) {
  .co-grid { grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 380px); }
  .co-summary { position: sticky; top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 979px) { .co-summary { order: -1; } .co-sum-media { display: none; } }

.co-panel { display: grid; gap: 28px; }
.co-panel[hidden] { display: none; }
.co-block { display: grid; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.co-h { font-size: var(--step-1); letter-spacing: -.02em; line-height: 1.2; }
.co-h:focus { outline: none; }
.co-lede { color: var(--ink-2); max-width: 60ch; }
.form-row.two { display: grid; gap: 14px; }
@container (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field .err { display: none; font-size: .8rem; color: #B3412E; margin: 6px 4px 0; }
.field.invalid .err { display: block; }
.field.invalid textarea { border-color: #B3412E; }

.co-sessions { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.co-sessions legend { font-size: .85rem; color: var(--muted); padding: 0 0 8px 4px; }
.co-session-list { display: grid; gap: 10px; }
@container (min-width: 560px) { .co-session-list { grid-template-columns: 1fr 1fr; } }
.co-session { position: relative; display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.co-session input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-session .dot { grid-row: span 2; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: border-color .25s; }
.co-session .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); transform: scale(0); transition: transform .3s var(--ease); }
.co-s-main { font-weight: 600; font-size: .98rem; }
.co-s-sub { font-size: .82rem; color: var(--muted); grid-column: 2; }
.co-session:hover { border-color: var(--line-strong); }
.co-session:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.co-session:has(input:checked) .dot { border-color: var(--teal); }
.co-session:has(input:checked) .dot::after { transform: scale(1); }
.co-session:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 70%, transparent); }
#co-lang-field[hidden] { display: none; }

.co-agree { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.co-agree input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-agree .box { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--card); display: grid; place-items: center; transition: background .2s, border-color .2s; margin-top: 1px; }
.co-agree .box::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--ease); }
.co-agree input:checked + .box { background: var(--ink); border-color: var(--ink); }
.co-agree input:checked + .box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.co-agree input:focus-visible + .box { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 70%, transparent); }
.co-agree a { color: var(--ink); text-underline-offset: 3px; }
.co-agree-err { font-size: .85rem; color: #B3412E; margin-top: -16px; }
.co-agree-err[hidden] { display: none; }

.co-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.co-textbtn { background: none; border: 0; padding: 0 0 2px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.co-fine { font-size: .82rem; line-height: 1.55; color: var(--muted); max-width: 62ch; margin-top: -10px; }

/* payment */
.co-bank { display: grid; gap: 20px; padding: clamp(18px, 2.4vw, 26px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; align-items: start; }
.co-acct { margin: 0; display: grid; }
.co-acct div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; }
.co-acct div:first-child { padding-top: 0; }
.co-acct div:last-child { border-bottom: 0; padding-bottom: 0; }
.co-acct dt { font-size: .85rem; color: var(--muted); }
.co-acct dd { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
@container (max-width: 400px) { .co-acct div { grid-template-columns: 1fr; gap: 2px; } }
.co-copy { background: none; border: 0; padding: 0 0 1px; font: inherit; font-size: .82rem; font-weight: 500; color: var(--teal); cursor: pointer; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.co-copy:hover { color: var(--ink); }
.co-copy.copied { background-size: 0 1px; }
/* the payment reference is the last line of the bank details, set apart so nobody transfers without it */
.co-acct .co-acct-ref, .co-acct .co-acct-ref:last-child { grid-template-columns: 126px 1fr; margin-top: 12px; padding: 12px 14px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--cyan) 26%, var(--card)); }
/* the band is inset 14px, so its label column is 14px narrower and the value lines up with the rows above */
@container (max-width: 400px) { .co-acct .co-acct-ref, .co-acct .co-acct-ref:last-child { grid-template-columns: 1fr; gap: 2px; } }
.co-acct-ref dt { color: var(--ink-2); font-weight: 500; }
.co-acct-ref code { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; letter-spacing: .03em; color: var(--teal); white-space: nowrap; }
.co-ref-note { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--ink-2); }


.co-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: clamp(24px, 4vw, 40px) 20px; text-align: center; background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: 16px; cursor: pointer; transition: border-color .25s, background-color .25s; }
.co-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-drop:hover, .co-drop.over { border-color: var(--teal); background-color: color-mix(in srgb, var(--cyan) 18%, var(--card)); }
.co-drop:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 70%, transparent); border-color: var(--ink); }
.co-drop[hidden] { display: none; }
.co-drop-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; margin-bottom: 6px; }
.co-drop-icon::before { content: ""; position: absolute; left: 50%; top: 14px; width: 2px; height: 16px; margin-left: -1px; background: var(--cyan); }
.co-drop-icon::after { content: ""; position: absolute; left: 50%; top: 14px; width: 9px; height: 9px; margin-left: -5px; border-left: 2px solid var(--cyan); border-top: 2px solid var(--cyan); transform: rotate(45deg); }
.co-drop-t { font-size: 1rem; color: var(--ink-2); }
.co-drop-t b { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.co-drop-s { font-size: .82rem; color: var(--muted); max-width: 44ch; }
.co-file { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; }
.co-file[hidden] { display: none; }
.co-file-thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; }
.co-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-file-thumb.pdf { background: var(--ink); color: var(--cyan); font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.co-file-meta { display: grid; gap: 2px; min-width: 0; flex: 1; }
.co-file-meta b { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-file-meta span { font-size: .8rem; color: var(--muted); }

/* confirmation */
.co-done { justify-items: start; gap: 22px; }
.co-done:focus { outline: none; }
.co-tick { width: 60px; height: 60px; border-radius: 50%; background: var(--teal); position: relative; animation: co-pop .6s var(--ease) both; }
.co-tick::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 10px; margin: -8px 0 0 -10px; border-left: 3px solid var(--cyan); border-bottom: 3px solid var(--cyan); transform: rotate(-45deg); }
@keyframes co-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .co-tick { animation: none; } }
.co-done-h { font-size: var(--step-3); letter-spacing: -.035em; line-height: 1.05; }
.co-next { list-style: none; margin: 0; padding: 0; counter-reset: nx; display: grid; width: 100%; max-width: 640px; }
.co-next li { counter-increment: nx; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.co-next li:last-child { border-bottom: 1px solid var(--line); }
.co-next li::before { content: counter(nx); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: .85rem; font-weight: 600; color: var(--teal); }
.co-next b { font-weight: 600; }
.co-next span { color: var(--muted); font-size: .92rem; }

/* order summary */
.co-sum-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.co-sum-media { aspect-ratio: 16 / 9; background: var(--night); display: grid; place-items: center; overflow: hidden; }
.co-sum-media img { width: 100%; height: 100%; object-fit: cover; }
.co-sum-media span { font-size: var(--step-2); font-weight: 600; letter-spacing: -.03em; color: var(--cyan); }
.co-sum-body { display: grid; gap: 12px; padding: 20px 22px 22px; }
.co-sum-kicker { font-size: .8rem; color: var(--muted); }
.co-sum-title { font-size: var(--step-1); letter-spacing: -.02em; line-height: 1.2; margin-top: -6px; }
.co-sum-rows { margin: 0; display: grid; gap: 8px; padding-block: 12px; border-block: 1px solid var(--line); }
.co-sum-rows div { display: flex; justify-content: space-between; gap: 16px; }
.co-sum-rows dt { font-size: .85rem; color: var(--muted); flex: none; }
.co-sum-rows dd { margin: 0; font-size: .9rem; font-weight: 500; text-align: right; min-width: 0; }
.co-sum-total { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.co-sum-total span { font-weight: 600; }
.co-sum-total small { display: block; font-size: .76rem; font-weight: 400; color: var(--muted); }
.co-sum-total b { font-size: var(--step-2); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.co-sum-note { font-size: .82rem; color: var(--muted); line-height: 1.55; margin-top: 14px; }

/* ---------- legal pages ---------- */
.legal-hero h1 { font-size: clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem); }
.legal-hero .lede { max-width: 60ch; }
.legal-date { font-size: .85rem; color: var(--muted); }
.legal { padding-top: 0; }
.legal-body { max-width: 760px; display: grid; }
.legal-body section { display: grid; gap: 10px; padding-block: 26px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-body h2 { font-size: var(--step-1); letter-spacing: -.02em; line-height: 1.25; }
.legal-body p, .legal-body li { color: var(--ink-2); line-height: 1.7; }
.legal-body ul { margin: 0; padding-left: 1.15rem; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--teal); }
.legal-key { display: grid; gap: 12px; padding: clamp(20px, 2.6vw, 28px); margin-bottom: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.legal-key h2 { font-size: var(--step-1); }
.co-done-h > span { white-space: normal; }
.crs-syll-body { overflow: hidden; }
.crs-syll.closing summary::after { transform: rotate(45deg) translateY(-2px); }

/* home audience cards: details and link share a footer pinned to the card bottom */
.track-body { display: flex; flex-direction: column; }
.track-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; justify-items: start; gap: .7rem; }
.track-foot .text-link { margin-top: 0; }
.tracks.aud .track-body > p { margin-bottom: .6rem; }

/* offer cards: whatever sits last (price or button) lines up along the bottom */
.offer { display: flex; flex-direction: column; }
.offer-foot { margin-top: auto; display: grid; gap: .8rem; justify-items: start; padding-top: .4rem; }

/* phones: give the invoice and report mocks enough height to show in full */
@media (max-width: 560px) {
  .stage-view { aspect-ratio: 4 / 5; }
  .mshot-stage { aspect-ratio: 4 / 5; }
}
@media (max-width: 1199px) { .mega-inner { grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; padding: 24px; } .mega-side { padding-left: 24px; } .mega-cat { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; } }

/* courses page: the category tabs stay pinned only while you are in the course list */
.cat-scope { position: relative; }
/* course rows: next dated class */
.crs-next { font-size: .82rem; color: var(--teal); }
.crs.flag .crs-next { color: var(--cyan); }
/* phone menu: current page */
.mobile-menu nav a:hover { color: var(--cyan); }
/* pricing table on phones: course and fee stay visible */
/* "what you'll make" mock gallery: 5 tiles fill two rows, 3 tiles fill one */
@media (min-width: 1100px) {
  .mock-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mock-gallery > .mshot { grid-column: span 2; }
  .mock-gallery > .mshot:nth-child(-n+2):nth-last-child(n+4) { grid-column: span 3; }
}
@media (min-width: 760px) and (max-width: 1099px) { .mock-gallery > .mshot:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.mshot-stage .mock-slides { width: min(78%, 400px); }
.mega-who, .crs-sum, .lede { text-wrap: pretty; }
.mega-txt b { text-wrap: balance; }
/* dropdown side column: no divider under the last link, and clear space above the button */

/* course details: the tools line spans the full width */
.crs-facts .wide { flex-basis: 100%; }

/* checkout: seats stepper, attendees, company invoice, no-QR layout */
.co-seats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 4px; }
.co-seats-label { font-size: .85rem; color: var(--muted); }
.stepper { display: inline-grid; grid-template-columns: 40px 56px 40px; align-items: center; background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.stepper button { font: inherit; font-size: 1.15rem; line-height: 1; height: 42px; border: 0; background: none; color: var(--ink); cursor: pointer; transition: color .2s; }
.stepper button:hover { color: var(--teal); }
.stepper button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.stepper input { font: inherit; font-weight: 600; text-align: center; width: 100%; height: 42px; border: 0; border-inline: 1px solid var(--line); background: none; color: var(--ink); -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.co-seats-note { font-size: .82rem; color: var(--muted); }
.co-attendees { display: grid; gap: 12px; }
@container (min-width: 560px) { .co-attendees { grid-template-columns: 1fr 1fr; } }
.co-invoice { display: grid; gap: 14px; margin-top: 4px; }
.co-invoice[hidden], .co-nodates[hidden], #co-attendees-block[hidden], #co-sessions[hidden] { display: none; }
.co-invoice-toggle { margin: 0; }
.co-nodates { font-size: .95rem; color: var(--ink-2); padding: 14px 16px; background: var(--card); border: 1px dashed var(--line-strong); border-radius: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* language switcher: globe + the other language's name, beside the main button */
/* language picker: a globe that opens a short list, the current language ticked */
.lang { position: relative; margin-left: auto; }
.lang-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; transition: color .2s; }
.lang-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .6s var(--ease); }
.lang-btn:hover, .lang-btn:focus-visible, .lang.open .lang-btn { color: var(--teal); }
.lang.open .lang-btn svg { transform: rotate(-24deg); }
.lang-menu { position: absolute; z-index: 60; top: calc(100% + 10px); right: -10px; min-width: 176px; margin: 0; padding: 8px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -28px rgba(14,18,19,.38); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
.lang.open .lang-menu, html:not(.js) .lang:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 12px; font-size: .95rem; color: var(--ink); text-decoration: none; transition: color .2s; }
.lang-menu a:hover, .lang-menu a:focus-visible { color: var(--teal); }
.lang-menu a[aria-current]::after { content: ""; width: 10px; height: 5px; margin-top: -3px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
@media (min-width: 1020px) { .nav-links { margin-left: auto; } .lang { margin-left: auto; margin-right: .4rem; } }
:lang(zh-Hans) body { letter-spacing: .01em; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { letter-spacing: 0; }
@media (max-width: 560px) { .mock-slides .slide { padding: 14px 16px; gap: 4px; } .mock-slides .slide b { font-size: .95rem; } .mock-slides .cols { margin-top: 6px; } .mock-slides .cols i { height: 30px; } }
.mshot-stage, .track-visual, .stage-view { grid-template-columns: minmax(0, 1fr); }

/* galleries: looping clips and a before/after pair */
.shot video { display: block; width: 100%; height: auto; background: var(--night); }
.pair-imgs { display: grid; gap: 2px; }
.pair-imgs span { position: relative; display: block; overflow: hidden; }
.pair-imgs img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pair-imgs i { position: absolute; left: 14px; top: 12px; font-style: normal; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.65); }

@media (min-width: 900px) {
  /* fade the art's left edge into the background so no seam shows */
  .hero-art { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
}
@media (min-width: 900px) { .cat-hero .lede { max-width: 34ch; } :lang(zh-Hans) .cat-hero .lede { max-width: 21em; } }
@media (min-width: 900px) and (max-width: 1279px) { .cat-hero .hero-art { left: 40%; } .hero:not(.cat-hero) .hero-art { left: 22%; } .hero:not(.cat-hero) .lede { max-width: 31ch; } :lang(zh-Hans) .hero:not(.cat-hero) .lede { max-width: 19em; } }

/* ---------- team ---------- */
.team-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.member { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "photo head" "body body" "facts facts"; gap: 1rem 1.1rem; align-items: center; padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line-strong); }
.member-photo { grid-area: photo; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 10px; background: var(--paper-2); }
.member-head { grid-area: head; display: grid; gap: .3rem; }
.member-head h3 { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; letter-spacing: -.025em; }
.member-role { color: var(--teal); font-weight: 600; }
.member-meta { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
.member-body { display: contents; }
.member-body > p { grid-area: body; color: var(--ink-2); max-width: 60ch; }
.member-facts { grid-area: facts; display: grid; gap: .9rem; margin: 0; }
.member-facts dt { font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.member-facts dd { margin: .2rem 0 0; color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; }
@media (min-width: 560px) {
  .member { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-areas: "photo head" "photo body" "photo facts"; align-items: start; align-content: start; }
}
@media (min-width: 960px) {
  .member { grid-template-columns: 240px minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "photo head facts" "photo body facts"; grid-template-rows: auto 1fr; column-gap: clamp(28px, 3.5vw, 56px); row-gap: 1.1rem; }
}.sample-note { background: #FFF1CC; color: #4A3800; border-bottom: 1px solid #E9D28A; padding: .8rem 0; font-size: var(--step--1); line-height: 1.5; }

/* ---------- Courses page: choose your group ---------- */
.chooser-section { padding-top: 0; }
.chooser { display: grid; gap: 20px; }
@media (min-width: 760px) { .chooser { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.choose { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; min-width: 0; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.choose:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -38px rgba(14,18,19,.5); border-color: var(--line-strong); }
.choose-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.choose-img img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; transition: transform 1.2s var(--ease); }
.choose:hover .choose-img img { transform: scale(1.05); }
.choose-body { display: flex; flex-direction: column; gap: .9rem; padding: clamp(22px, 2.6vw, 32px); }
.choose-body h2 { font-size: var(--step-2); letter-spacing: -.03em; }
.choose-who { color: var(--ink-2); font-size: 1.02rem; max-width: 46ch; }
.choose-list { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .45rem; }
.choose-list li { position: relative; padding-left: 1.1rem; font-size: .95rem; }
.choose-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.choose-list li.more { color: var(--muted); }
.choose-list li.more::before { background: var(--line-strong); }
.choose-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.choose-foot .meta-line { margin: 0; }

/* ---------- category pages: "What You'll Make" wall ---------- */
.makes { overflow: clip; }
.makes-head { display: grid; justify-items: center; gap: 1.1rem; text-align: center; margin-bottom: clamp(32px, 4.5vw, 60px); }
.makes-head p { color: var(--ink-2); max-width: 58ch; font-size: var(--step-1); line-height: 1.45; }
.wall { --gap: 10px; --h: 210px; display: grid; gap: var(--gap); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.wall.rows-2 { --h: 260px; }
@media (min-width: 700px) { .wall { --gap: 16px; --h: clamp(270px, 25vw, 400px); } .wall.rows-2 { --h: clamp(320px, 32vw, 500px); } }
/* without scripts, or with reduced motion, each row simply scrolls sideways */
.wall-row { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.wall-row::-webkit-scrollbar { display: none; }
.wall.is-live .wall-row { overflow: hidden; }
.wall-track { display: flex; width: max-content; will-change: transform; }
.wall-set { display: flex; gap: var(--gap); padding-right: var(--gap); }
.tile { position: relative; flex: none; height: var(--h); aspect-ratio: var(--ar, 1); margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper-2); isolation: isolate; }
.tile > img, .tile > video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: transform 1.6s var(--ease); }
.tile:hover > img, .tile:hover > video { transform: scale(1.04); }
.tile figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 56px 16px 14px; color: #fff; font-size: .92rem; font-weight: 500; line-height: 1.3; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(0deg, rgba(6,8,9,.7) 0%, rgba(6,8,9,.32) 45%, rgba(6,8,9,0) 100%); border-radius: 0 0 inherit inherit; pointer-events: none; }
@media (max-width: 699px) { .tile { border-radius: 10px; } .tile figcaption { padding: 40px 11px 10px; font-size: .8rem; } }
.tile-before { position: absolute; z-index: 1; top: 12px; left: 12px; width: max(34%, 96px); border-radius: 10px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); }
.tile-before img { display: block; width: 100%; height: auto; }
.tile-before i { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 6px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
@media (max-width: 699px) { .tile-before { top: 8px; left: 8px; width: max(40%, 76px); border-radius: 8px; } .tile-before i { font-size: .62rem; padding: 12px 6px 5px; } }
.mshot figcaption { padding: 16px 18px 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* rounded picture frames: the picture carries the same rounding and the placeholder behind it is light, so no dark hairline shows at the corners */
.mega-img img, .crs-img img, .cat-band-img img, .shot img, .img-band img, .tile-before img { border-radius: inherit; }

/* the fashion portrait is cropped from the top wherever it's shown wider than it was shot, so the head always stays in frame */
img[src$="ex-fashion.jpg"] { object-position: 50% 6%; }

/* Private & Custom: three ways to book outside a public class; each price sits on its own line and the prices and buttons line up along the bottom */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: clamp(24px, 2.8vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.plan h3 { font-size: var(--step-1); letter-spacing: -.02em; }
.plan > p { max-width: 36ch; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.plan-price { margin-top: auto; padding-top: 28px; display: grid; gap: 8px; }
.plan-price b { font-family: var(--font-display); font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: .85rem; color: var(--muted); }
.plan-rates { margin: auto 0 0; padding-top: 28px; display: grid; gap: 12px; }
.plan-rates div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-rates dt { font-size: .88rem; color: var(--muted); }
.plan-rates dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-rates dd small { font-family: var(--font-body); font-size: .8rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan .btn { align-self: flex-start; margin-top: 16px; }
.plan.dark { background: var(--night); border-color: var(--night); color: #EEF2F2; }
.plan.dark h3, .plan.dark .plan-price b { color: #fff; }
.plan.dark > p { color: #C9D2D3; }
.plan.dark .plan-price span { color: var(--night-muted); }

/* About: the short story of why we started, read as plain paragraphs */
.story { display: grid; gap: 1.1rem; }
.story p { max-width: 62ch; font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); }

/* competitor mock: a small comparison table with your row picked out and the gap AI found */
.mock-compare { margin: auto; width: min(90%, 420px); align-self: center; padding: 14px 16px 16px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--night-line); color: #EEF2F2; box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }
.mock-compare .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--night-line); font-size: .78rem; }
.mock-compare .hd b { font-weight: 600; }
.mock-compare .hd span { font-size: .7rem; color: var(--night-muted); }
.mock-compare table { width: 100%; border-collapse: collapse; font-size: .72rem; font-variant-numeric: tabular-nums; }
.mock-compare th { padding: 8px 0 6px; font-weight: 500; color: var(--night-muted); text-align: right; }
.mock-compare td { padding: 7px 0; border-top: 1px solid var(--night-line); text-align: right; color: #C9D2D3; }
.mock-compare th:first-child, .mock-compare td:first-child { text-align: left; }
.mock-compare tr.you td { color: var(--cyan); font-weight: 600; }
.mock-compare .gap { margin: 10px 0 0; padding: 9px 11px; border-radius: 10px; background: color-mix(in srgb, var(--cyan) 14%, transparent); font-size: .72rem; line-height: 1.45; color: #DDE3E3; }
.mock-compare .gap b { color: var(--cyan); font-weight: 600; }

/* contact card: each way to reach us has an icon; the buttons open WhatsApp or the mail app directly */
.contact-lines { display: grid; }
.contact-line { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: .9rem; border-bottom: 1px solid var(--night-line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 13%, transparent); }
.contact-line .ci svg { width: 20px; height: 20px; }
.contact-line .ct { display: grid; gap: .15rem; min-width: 0; }
.contact-line .ct span { font-size: var(--step--1); color: var(--night-muted); }
.contact-line .ct strong { font-weight: 500; font-size: 1.05rem; overflow-wrap: anywhere; user-select: all; }
.contact-card .btn-row { margin-top: .4rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.i-fill { fill: currentColor; }
.i-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.result p { color: #C9D2D3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Corporate Training: industries as cards, each with an icon and the work AI takes on */
.industries { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.industry { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.industry:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(14,18,19,.35); }
.ind-ic { width: 42px; height: 42px; margin-bottom: 6px; border-radius: 12px; display: grid; place-items: center; color: var(--teal); background: color-mix(in srgb, var(--cyan) 30%, var(--card)); }
.ind-ic svg { width: 22px; height: 22px; }
.industry h3 { font-size: 1.08rem; letter-spacing: -.015em; }
.industry p { font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.corp-cta { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 1.5rem; align-items: center; padding: clamp(24px, 3vw, 36px); border-radius: 18px; background: var(--night); color: #EEF2F2; }
.corp-cta h3 { color: #fff; font-size: var(--step-1); }
.corp-cta p { color: #C9D2D3; max-width: 52ch; }
.corp-cta .btn { --bg: var(--cyan); --fg: var(--night); --fill: #fff; --fill-fg: var(--night); font-weight: 600; }
@media (min-width: 860px) { .corp-cta { grid-template-columns: 1fr auto; } }
@media (max-width: 599px) {
  .industry { grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 18px; }
  .ind-ic { grid-row: span 2; margin-bottom: 0; }
}

/* a group with only two mock-ups shows them side by side */
@media (min-width: 1100px) { .mock-gallery > .mshot:first-child:nth-last-child(2), .mock-gallery > .mshot:first-child:nth-last-child(2) ~ .mshot { grid-column: span 3; } }


/* "What You'll Make" mock-ups: parts appear in turn once the card scrolls into view, then the mock floats gently */
@keyframes mk-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mk-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes mk-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes mk-w { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mk-float { 50% { translate: 0 -6px; } }
.motion .mshot .mk { opacity: 0; }
.motion .mshot .mk-x { transform: scaleX(0); transform-origin: left center; animation: none; }
.motion .mshot .mk-y { transform: scaleY(0); transform-origin: bottom center; animation: none; }
.motion .mshot .mk-w { clip-path: inset(0 0 100% 0); }
.motion .mshot.play .mk { animation: mk-in .7s var(--ease) both; }
.motion .mshot.play .mk-x { animation: mk-x .9s var(--ease) both; }
.motion .mshot.play .mk-y { animation: mk-y .9s var(--ease) both; }
.motion .mshot.play .mk-w { animation: mk-w 1.3s var(--ease) both; }
.motion .mshot.play .mshot-stage > * { animation: mk-float 7s ease-in-out 2.4s infinite; }

/* the build loops: the mock fades out softly before it draws itself again */
.motion .mshot .mshot-stage > * { transition: opacity .55s var(--ease); }
.motion .mshot.out .mshot-stage > * { opacity: 0; }
/* ambient motion between builds */
@keyframes mk-thumb { 0%, 3% { opacity: 0; } 6%, 18% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes mk-live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 55%, transparent); } 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--cyan) 0%, transparent); } }
@keyframes mk-spin { to { rotate: 360deg; } }
@keyframes mk-shine { 0% { transform: translateY(110%); opacity: 0; } 20% { opacity: 1; } 60%, 100% { transform: translateY(-110%); opacity: 0; } }
.motion .mshot .mock-slides .thumbs i { position: relative; }
.motion .mshot .mock-slides .thumbs i.on { background: rgba(255,255,255,.14); box-shadow: none; }
.motion .mshot.play .mock-slides .thumbs i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; box-shadow: 0 0 0 2px var(--cyan); opacity: 0; animation: mk-thumb 6s ease-in-out 1.4s infinite; }
.motion .mshot.play .mock-slides .thumbs i:nth-child(2)::after { animation-delay: 2.6s; }
.motion .mshot.play .mock-slides .thumbs i:nth-child(3)::after { animation-delay: 3.8s; }
.motion .mshot.play .mock-slides .thumbs i:nth-child(4)::after { animation-delay: 5s; }
.motion .mshot.play .mock-slides .thumbs i:nth-child(5)::after { animation-delay: 6.2s; }
.motion .mshot.play .mock-agent .live { animation: mk-live 1.8s ease-out infinite; }
.motion .mshot.play .mock-agent li.next .ic { animation: mk-spin 8s linear infinite; }
.motion .mshot .mock-sheet .bars i.hi { position: relative; overflow: hidden; }
.motion .mshot.play .mock-sheet .bars i.hi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, transparent, rgba(255,255,255,.55), transparent); animation: mk-shine 3.2s ease-in-out 1.6s infinite; }

/* Courses menu: every clickable item shows a full teal border on hover, so it reads as one target */
.mega-cat { border: 1px solid transparent; transition: border-color .25s var(--ease), box-shadow .3s var(--ease); }
.mega-cat:hover, .mega-cat:focus-visible { border-color: color-mix(in srgb, var(--teal) 70%, transparent); box-shadow: 0 16px 34px -26px rgba(14,18,19,.45); }
.mega-side { gap: 6px; }
.mega-side a:not(.btn) { padding: 13px 14px; margin-inline: -14px; border: 1px solid transparent; border-radius: 12px; transition: border-color .25s var(--ease), box-shadow .3s var(--ease); }
.mega-side a:not(.btn):hover, .mega-side a:not(.btn):focus-visible { border-color: color-mix(in srgb, var(--teal) 70%, transparent); box-shadow: 0 14px 30px -24px rgba(14,18,19,.45); }

/* menu: each "not sure" link has its icon beside the text */
.mega-side a:not(.btn) { grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.mega-side a:not(.btn) .ms-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--teal); background: color-mix(in srgb, var(--cyan) 32%, var(--card)); transition: background-color .25s; }
.mega-side a:not(.btn) .ms-ic svg { width: 20px; height: 20px; }
.mega-side a:not(.btn):hover .ms-ic { background: color-mix(in srgb, var(--cyan) 60%, var(--card)); }
.mega-side a:not(.btn) .ms-t { display: grid; gap: 4px; font-size: inherit; color: inherit; }

/* footer: the other Kreia companies, each logo linking to its website */
.footer-family { display: grid; gap: .8rem; margin-top: 1.4rem; }
.footer-family > span { font-size: .78rem; letter-spacing: .04em; color: var(--night-muted); }
.family-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.family-logos a { display: block; opacity: .72; transition: opacity .25s, transform .3s var(--ease); }
.family-logos a:hover, .family-logos a:focus-visible { opacity: 1; transform: translateY(-2px); }
.family-logos img { display: block; height: 26px; width: auto; }
/* the studio artwork sets its name smaller, so it runs a little taller to read the same size as Kreia Tech */
.family-logos a[href*="kreiastudio"] img { height: 32px; }
.family-logos a[href*="kreiatech"] img { height: 24px; }
@media (min-width: 1200px) { .mega-inner { grid-template-columns: minmax(0, 1fr) 290px; } }
/* Kreia Studio is shown as icon + name at Kreia Tech's proportions (icon and two-line name the same height, gap 0.375 of it), so the two read as a matched pair */
.family-logos { --logo-h: 26px; }
.family-logos img, .family-logos a[href*="kreiastudio"] img, .family-logos a[href*="kreiatech"] img { height: var(--logo-h); }
.fam-lockup { display: flex; align-items: center; gap: calc(var(--logo-h) * .375); }

/* ---------- team on About: scroll through the people; on wide screens the portrait stays pinned and changes with them ---------- */
.crew-stage { display: none; }
.crew-list { display: grid; gap: clamp(64px, 12vw, 96px); }
.crew-card { display: grid; gap: clamp(20px, 5vw, 32px); }
.crew-photo { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; }
.crew-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 22px; }
.crew-text { display: grid; gap: .55rem; align-content: center; }
.crew-text h3 { font-size: var(--step-3); letter-spacing: -.035em; line-height: 1; }
.crew-role { color: var(--teal); font-weight: 600; }
.crew-line { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; letter-spacing: -.02em; line-height: 1.18; color: var(--ink); max-width: 22ch; margin-top: clamp(.6rem, 1.5vw, 1.1rem); text-wrap: balance; }
:lang(zh-Hans) .crew-line { max-width: 15em; }
.crew-bio { color: var(--ink-2); max-width: 52ch; margin-top: .35rem; }

@media (min-width: 960px) {
  .crew.is-live { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(48px, 7vw, 112px); align-items: start; }
  .crew.is-live .crew-stage { display: block; position: sticky; top: calc(var(--header-h) + 28px); height: min(calc(100vh - var(--header-h) - 56px), 760px); border-radius: 24px; overflow: hidden; }
  .crew-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 24px; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
  .crew-shot.is-on { opacity: 1; transform: none; }
  .crew.is-live .crew-photo { display: none; }
  .crew.is-live .crew-list { gap: 0; }
  /* each person holds the screen for a moment; only the person whose portrait is showing has their words visible */
  .crew.is-live .crew-card { min-height: min(calc(100vh - var(--header-h) - 56px), 760px); align-content: center; }
  .crew.is-live .crew-text { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
  .crew.is-live .crew-card.is-on .crew-text { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .crew-shot, .crew.is-live .crew-text { transition: none; transform: none; }
}

/* booking reference on the confirmation screen: the one number the learner keeps */
.co-bookref { display: grid; gap: 4px; width: 100%; max-width: 640px; padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--cyan) 26%, var(--card)); border: 1px solid color-mix(in srgb, var(--cyan) 70%, var(--card)); }
.co-bookref[hidden] { display: none; }
.co-bookref-l { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.co-bookref-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.co-bookref-v b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; color: var(--teal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-bookref-n { font-size: .85rem; color: var(--muted); }

/* ---------- floating WhatsApp button: bottom right, clear of the phone's home bar ---------- */
.wa-float { position: fixed; z-index: 40; right: calc(env(safe-area-inset-right, 0px) + clamp(16px, 2.4vw, 28px)); bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 2.4vw, 28px)); display: flex; align-items: center; gap: 12px; pointer-events: none; }
.wa-btn { position: relative; pointer-events: auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 28px rgba(14, 18, 19, .22), 0 2px 6px rgba(14, 18, 19, .12); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.wa-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 34px rgba(14, 18, 19, .26), 0 3px 8px rgba(14, 18, 19, .12); }
.wa-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.wa-ico { width: 28px; height: 28px; fill: currentColor; }
/* a single soft ring when it arrives, never on a loop */
.wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; opacity: 0; pointer-events: none; }
.wa-float.in .wa-btn::after { animation: wa-ring 1.4s var(--ease) .55s 1 both; }
.wa-hint { pointer-events: auto; margin: 0; display: flex; align-items: center; gap: 4px; padding: 10px 6px 10px 16px; background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: 0 10px 28px rgba(14, 18, 19, .16); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.wa-hint-x { border: 0; background: none; width: 28px; height: 28px; border-radius: 8px; font: 400 1.2rem/1 var(--font-body); color: var(--muted); cursor: pointer; }
.wa-hint-x:hover { color: var(--ink); }

/* with script: hidden until it pops in; the hint shows once per visit, then only the button */
.js .wa-float { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.6); transform-origin: 100% 100%; transition: opacity .45s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1), visibility 0s .6s; }
.js .wa-float.in { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1), visibility 0s; }
.js .wa-hint { opacity: 0; transform: translateX(10px); visibility: hidden; transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.js .wa-float.hint .wa-hint { opacity: 1; transform: none; visibility: visible; transition: opacity .4s var(--ease) .5s, transform .5s var(--ease) .5s, visibility 0s .5s; }
/* steps aside while someone is paying on the booking page */
html[data-co-step="2"] .wa-float, html.js[data-co-step="2"] .wa-float.in { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(14px) scale(.6); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
@keyframes wa-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@media (max-width: 420px) { .wa-btn { width: 52px; height: 52px; } .wa-hint { font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) {
  .js .wa-float, .js .wa-float.in, .js .wa-hint { transform: none; transition: opacity .3s ease, visibility 0s; }
  .wa-float.in .wa-btn::after { animation: none; }
}
