/* VECT prototype page styles (design phase).
 * Uses only semantic tokens from tokens.css, so both themes (light / vintage) share this file.
 * Breakpoints: desktop >=1024px, tablet <=1023px, mobile <=767px.
 * Runtime-only state: classes "is-*" and elements [data-clone] (the studio strips them on save). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
img { display: block; max-width: 100%; }
a { color: var(--green-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-y) 0; overflow: clip; }   /* clip, not hidden: never scrollable by code (scrollIntoView, focus), so a section can't shift sideways */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2, .contact-info h2 {
  font-family: var(--font-heading); font-weight: var(--heading-weight);
  font-size: clamp(30px, 4vw, 44px); color: var(--text);
}
.section-head .lead { margin-top: 16px; }

.eyebrow {
  font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 18px;
}
.lead { font-size: 19px; color: var(--text-soft); }
.pattern { position: absolute; pointer-events: none; opacity: var(--pattern-opacity); filter: var(--pattern-filter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px; border-radius: var(--btn-radius); border: 2px solid transparent;
  font: 700 16px/1.1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
/* No hover lift on any button (v8, SPECS §4e #6): a button's hover is its colour, or its own effect. */
.btn-red { background: var(--red); color: var(--on-accent); }
.btn-red:hover { background: var(--red-hover); }
.btn-outline { border-color: var(--green); color: var(--green-dark); background: transparent; }
.btn-on { background: var(--on-accent); color: var(--card-open-ink); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; }
/* the hero's consult button: no hover effect for now (its own energized effect is being designed, SPECS §11) */
.btn.cta-hero:hover { background: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 80px; }
.brand { display: inline-flex; border-radius: 8px; background: var(--plate); }
.brand img { height: 52px; width: auto; }
.nav {
  /* N1 Effects controls (page.js): page scroll time by distance, the heading's landing gap, the pill's follow time */
  --scroll-min: 500ms; --scroll-max: 900ms; --landing-gap: 40px; --pill-follow: 300ms;
  --pill-bg: var(--brand-green-dark); --pill-ink: #FFFFFF; --pill-radius: 999px; --pill-ring: none;
  display: flex; gap: 28px; margin-left: auto; position: relative; isolation: isolate;
}
.nav a { position: relative; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; transition: color .2s ease; }
.nav a:hover { color: var(--green-dark); }
/* the green pill behind the section you're in (N1.1): white on Green Dark is 4.7:1 (on the brand green only 3.2:1) */
.nav a.is-current, .nav a.is-current:hover { color: var(--pill-ink); }
.nav-pill {
  position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; opacity: 0;
  width: var(--pill-w, 0); height: var(--pill-h, 0); transform: translate(var(--pill-x, 0), var(--pill-y, 0));
  border-radius: var(--pill-radius); background: var(--pill-bg); box-shadow: var(--pill-ring);
  transition: transform var(--pill-ms, 0ms) var(--pill-ease, linear), width var(--pill-ms, 0ms) var(--pill-ease, linear), opacity .2s ease;
}
.nav-pill.is-shown { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--green); color: var(--green-dark); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }

/* ---------- 1. Cộng đồng VECT ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.pattern-hero { width: 520px; right: -80px; top: 20px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.display {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 6.2vw, 80px); line-height: 1.32; color: var(--green);
}
.hero-copy .lead { margin-top: 24px; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-media { position: relative; padding-bottom: 48px; }
.photo { border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); filter: var(--photo-filter); }
.photo-main { width: 100%; aspect-ratio: 4 / 3; }
.photo-float {
  /* the frame has the photo's own shape, 720 : 1090, so the whole photo shows (object-fit cover trims nothing). content-box, so
   * the ratio belongs to the photo area and the 6px border sits outside it. The width is chosen so the outer HEIGHT stays what
   * the old 3:4 frame had (34.3% here, 38.2% on phones, instead of 38% / 42%): a taller frame reached up over the faces of the
   * two people at the left of the group photo. */
  position: absolute; left: -36px; bottom: 0; box-sizing: content-box; width: calc(34.3% - 12px); aspect-ratio: 720 / 1090;
  border: 6px solid var(--photo-frame); transform: rotate(-6deg);
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
.pillar {
  --bw: 2px;          /* border width; the screen fill reaches over it, so no hairline gap can appear */
  --pad: 28px;
  --icon-h: 56px;
  --icon-w: calc(var(--icon-h) * var(--ratio, 1.8));
  position: relative; isolation: isolate; cursor: pointer;
  padding: var(--pad); border: var(--bw) solid var(--green); border-radius: var(--radius); background: var(--surface);
}
.pillar::before { content: ""; display: block; height: calc(var(--icon-h) + 18px); }   /* room for the icon (it is positioned so it can grow) */
.pillar h3 { font-family: var(--font-heading); font-size: 22px; font-weight: var(--heading-weight); color: var(--text); margin-bottom: 8px; }
.pillar p { color: var(--text-soft); }
/* per box: the drawing's proportions and its warp filter */
.pillar--steps { --ratio: calc(522 / 287); --warp: url(#vect-warp-1); }
.pillar--grid { --ratio: calc(740 / 412); --warp: url(#vect-warp-2); }
.pillar--talk { --ratio: calc(411 / 291); --warp: url(#vect-warp-3); }

/* Animated "screen" state. Hover shows it while the mouse is over the box; a click or tap switches it on/off.
 * page.js decides and sets the class "is-on"; everything below follows two switches:
 * --live (0 = normal, 1 = screen on) and --play (loops paused / running).
 * The icon itself is the animated drawing (inline SVG + CSS): no video, GIF or library. */
.pillars {
  /* Effect controls (editable in the studio: select a box → Effects) */
  --live-open: 650ms;
  --live-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --drift-duration: 6s;
  --drift-distance: 5%;
  --parallax-depth: 12px;       /* how far the drawing floats inside the box while the screen is on */
  --flicker-duration: 2.8s;
  --flicker-turn: 9s;
  --glow-fade: 1.2s;            /* glow hand-off: the old glow fades out while the next one fades in */
  --glow-size: 1;               /* glow width, × the base blur on each #halo filter (page.js) */
  --glow-strength: 1;           /* glow density, × the base alpha slope on each #halo filter (page.js) */
  --glitch-jump: 1;             /* glitch jump distance, × normal */
  --spark-duration: 3s;
  --warp-strength: 8px;
  --warp-band: 75px;            /* one wave: the soft edge eases in over half of it, the other edge ends crisp */
  --warp-fade: 20%;             /* strength fades in / out over this share of the box at each end of the crossing */
  --warp-soft-edge: both;       /* how the band's strength starts and ends: both edges eased (v8), or only the leading / trailing one (v7) */
  --warp-duration: 5.2s;
  --art-size: 64%;
}
@property --drift-amp { syntax: '<number>'; inherits: true; initial-value: 0; }
.pillar {
  --live: 0;
  --play: paused;
  --k: calc(1 - var(--live));
  --live-t: calc(var(--live-open) * .7);   /* closing is a little quicker than opening */
  --drift-amp: 0;                          /* 0 → 1 with the screen: eases the drift and the inner parallax in and out */
  transition: --drift-amp var(--live-t) var(--live-ease);
}
.pillar.is-on { --live: 1; --play: running; --live-t: var(--live-open); --drift-amp: 1; }
.pillar.is-away { --play: paused; }                  /* scrolled out of view */
html[data-studio-edit] .pillar { --play: paused; }   /* studio Edit mode: a pinned screen holds still */

/* the text fades out as the screen opens, and comes back while the drawing heads home */
.pillar > :is(h3, p) {
  opacity: calc(1 - var(--live));
  transition: opacity calc(var(--live-t) * .5) ease calc(var(--live-t) * .25);   /* closing */
}
.pillar.is-on > :is(h3, p) { transition: opacity calc(var(--live-t) * .45) ease; }   /* opening */

/* The fill: opens from the icon's own box to the whole card, border included.
 * Opening: the color arrives in the first 30% while the fill grows.
 * Closing: the color leaves first and fast (ease-out over the first 55%), in step with the shrinking, so the second
 * half is already the card's own background. (v5 kept the green until 70% and then faded it: "resize, then recolor".) */
.pillar-screen {
  position: absolute; inset: calc(var(--bw) * -1); z-index: 1; pointer-events: none;
  border-radius: var(--radius);
  background: radial-gradient(ellipse 85% 80% at 50% 45%, var(--live-bg) 35%, var(--live-bg-edge) 100%);
  opacity: var(--live);
  clip-path: inset(
    calc(var(--k) * (var(--bw) + var(--pad)))
    calc(var(--k) * (100% - var(--bw) - var(--pad) - var(--icon-w)))
    calc(var(--k) * (100% - var(--bw) - var(--pad) - var(--icon-h)))
    calc(var(--k) * (var(--bw) + var(--pad)))
    round calc(var(--radius) - var(--k) * (var(--radius) - 6px)));
  transition: clip-path var(--live-t) var(--live-ease), opacity calc(var(--live-t) * .55) cubic-bezier(0, 0, .58, 1);
}
.pillar.is-on .pillar-screen { transition: clip-path var(--live-t) var(--live-ease), opacity calc(var(--live-t) * .3) ease; }

/* everything the warp wave bends: the HUD grid and the drawing */
.pillar-view { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.pillar.is-on .pillar-view { filter: var(--warp); }
html[data-studio-edit] .pillar.is-on .pillar-view { filter: none; }   /* no warp while editing */
.pillar-view::before {     /* faint HUD grid, fading out toward the edges; opens and closes with the fill; sits behind the drawing in the parallax */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--live-grid) 1px, transparent 1px), linear-gradient(90deg, var(--live-grid) 1px, transparent 1px);
  background-size: 22px 22px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
  opacity: var(--live);
  clip-path: inset(
    calc(var(--k) * var(--pad))
    calc(var(--k) * (100% - var(--pad) - var(--icon-w)))
    calc(var(--k) * (100% - var(--pad) - var(--icon-h)))
    calc(var(--k) * var(--pad)));
  transform: translate(
    calc(var(--rt-x, 0) * var(--drift-amp) * var(--parallax-depth) * .45),
    calc(var(--rt-y, 0) * var(--drift-amp) * var(--parallax-depth) * .45));
  transition: clip-path var(--live-t) var(--live-ease), opacity calc(var(--live-t) * .55) cubic-bezier(0, 0, .58, 1);
}
.pillar.is-on .pillar-view::before { transition: clip-path var(--live-t) var(--live-ease), opacity calc(var(--live-t) * .3) ease; }

/* The icon: at rest exactly where it always was; on, it grows into the middle of the screen and floats a little
 * against the input (the parallax inside the box; page.js writes --rt-x / --rt-y and eases them itself, and --drift-amp
 * eases it in and out with the screen, so at rest the icon and the fill's starting window always stay aligned). */
.pillar-art {
  position: absolute; z-index: 1; pointer-events: auto;
  top: var(--pad); left: var(--pad); width: var(--icon-w); translate: 0 0;
  transform: translate(
    calc(var(--rt-x, 0) * var(--drift-amp) * var(--parallax-depth) * -1),
    calc(var(--rt-y, 0) * var(--drift-amp) * var(--parallax-depth) * -1));
  transition:
    top var(--live-t) var(--live-ease), left var(--live-t) var(--live-ease),
    width var(--live-t) var(--live-ease), translate var(--live-t) var(--live-ease);
}
.pillar.is-on .pillar-art { top: 50%; left: 50%; width: var(--art-size); translate: -50% -50%; }
/* Slow side-to-side drift, on its own GPU layer so it glides at sub-pixel precision (no 1-pixel jumps).
 * Attached only while on (plus "is-closing", which page.js keeps for the closing transition so the drift can ease
 * home): at rest an animated layer here would switch the nearby text from ClearType to grey smoothing. */
.pillar:is(.is-on, .is-closing) .art-drift {
  will-change: transform;
  animation: art-drift var(--drift-duration) cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
  animation-play-state: var(--play);
}
@keyframes art-drift {
  from { transform: translateX(calc(var(--drift-amp) * var(--drift-distance) * -1)); }
  to { transform: translateX(calc(var(--drift-amp) * var(--drift-distance))); }
}
.art { display: block; width: 100%; height: auto; overflow: visible; }
/* Color timing. Closing: the drawing turns back to its greens in step with the green fill leaving (5% → 55%), so it
 * never sinks into a green box. Opening: unchanged from v5. While on, opacity changes (dim steps, hand-off) use the
 * glow fade. */
.art * {
  transition:
    fill calc(var(--live-t) * .5) ease calc(var(--live-t) * .05),
    stroke calc(var(--live-t) * .5) ease calc(var(--live-t) * .05),
    opacity calc(var(--live-t) * .5) ease calc(var(--live-t) * .05),
    stroke-width var(--live-t) ease;
}
.pillar.is-on .art * {
  transition: fill var(--live-t) ease, stroke var(--live-t) ease, opacity var(--glow-fade) ease-in-out, stroke-width var(--live-t) ease;
}

/* colors at rest (the brand icon) → on (light drawing) */
.art .c-a { fill: var(--pattern-a); }
.art .c-b { fill: var(--pattern-b); }
.art .lines path, .art .node-o { fill: none; stroke: var(--pattern-b); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art .node-f { fill: var(--pattern-b); }
.art .talk { fill: var(--pattern-c); stroke: var(--pattern-c); stroke-width: 0; stroke-linejoin: round; }
.art .dot { fill: var(--pattern-dot); transform-box: fill-box; transform-origin: center; }
.pillar.is-on .art :is(.c-a, .c-b, .node-f) { fill: var(--live-ink); }
.pillar.is-on .art .dim { opacity: .62; }
.pillar.is-on .art .fx-node.is-flicker > .dim { opacity: 1; }   /* a dim step brightens during its turn (and fades back after) */
.pillar.is-on .art :is(.lines path, .node-o) { stroke: var(--live-ink); stroke-width: 6; }
.pillar.is-on .art .lines { opacity: .85; }
.pillar.is-on .art .talk { fill: color-mix(in srgb, var(--live-ink) 14%, transparent); stroke: var(--live-ink); stroke-width: 7; }
.pillar.is-on .art .dot {  /* typing indicator: the dots light up in turn */
  fill: var(--live-ink); opacity: .35;
  animation: dot-type calc(var(--flicker-duration) * .55) ease-in-out infinite; animation-play-state: var(--play);
}
.pillar.is-on .art .dot:nth-of-type(2) { animation-delay: calc(var(--flicker-duration) * .55 / 6); }
.pillar.is-on .art .dot:nth-of-type(3) { animation-delay: calc(var(--flicker-duration) * .55 / 3); }
@keyframes dot-type {
  0%, 55%, 100% { opacity: .35; transform: translateY(0); }
  22% { opacity: 1; transform: translateY(-14%); }
}

/* Flicker template (one look for every pattern). page.js gives the turn to random elements by adding "is-flicker".
 * - Glitch: twice per cycle the element and its glow jump slightly out of place and back in abrupt bursts
 *   (step-end timing = no fades). --g sets how far it jumps, in drawing units.
 * - Glow: a soft copy behind the element (.fx-halo, made by page.js) that breathes slowly and fades in and out with
 *   the turn (--glow-fade), so the glow moves from one element to the next instead of jumping.
 *   Hand-offs wait for a calm moment between bursts. */
.art--steps { --halo: url(#halo-p03); --g: calc(11px * var(--glitch-jump)); }
.art--grid { --glow: url(#glow-p01); --halo: url(#halo-p01); --g: calc(16px * var(--glitch-jump)); }
.art--talk { --halo: url(#halo-p02); --g: calc(9px * var(--glitch-jump)); }
.art .glow-color { flood-color: var(--live-glow); }
.art .fx-node.is-flicker {
  transform-box: fill-box; transform-origin: center;
  animation: fx-glitch var(--flicker-duration) step-end infinite; animation-play-state: var(--play);
}
.art .fx-halo { opacity: 0; filter: var(--halo); pointer-events: none; transition: opacity var(--glow-fade) ease-in-out; }
.pillar.is-on .art .fx-node.is-flicker > .fx-halo { opacity: 1; }
.pillar:not(.is-on) .art .fx-halo { transition: opacity calc(var(--live-t) * .4) ease-out; }   /* closing: the glow leaves with the screen */
.pillar:is(.is-on, .is-closing) .art .halo-breathe {
  animation: fx-breathe var(--flicker-duration) ease-in-out infinite; animation-play-state: var(--play);
}
@keyframes fx-breathe {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}
@keyframes fx-glitch {
  0%     { opacity: 1;   transform: none; }
  45%    { opacity: .15; transform: translate(calc(var(--g) * .9), calc(var(--g) * -.5)); }
  46.2%  { opacity: 1;   transform: translate(calc(var(--g) * -1.3), calc(var(--g) * .2)) scaleX(1.12); }
  47.4%  { opacity: .35; transform: translate(calc(var(--g) * .5), calc(var(--g) * .8)); }
  48.4%  { opacity: 1;   transform: none; }
  49.4%  { opacity: .05; transform: none; }
  50.2%  { opacity: .9;  transform: translate(calc(var(--g) * 1.5), calc(var(--g) * -.2)) scaleX(.9); }
  51.4%  { opacity: 1;   transform: translate(calc(var(--g) * -.6), calc(var(--g) * -.9)); }
  52.6%  { opacity: .2;  transform: translate(calc(var(--g) * .3), calc(var(--g) * .4)); }
  53.4%  { opacity: 1;   transform: none; }
  80%    { opacity: .2;  transform: translate(calc(var(--g) * -1), calc(var(--g) * .4)); }
  81.2%  { opacity: 1;   transform: translate(calc(var(--g) * .7), 0) scaleX(1.08); }
  82.2%  { opacity: .4;  transform: none; }
  83%    { opacity: 1;   transform: translate(calc(var(--g) * -.4), calc(var(--g) * -.6)); }
  84%    { opacity: 1;   transform: none; }
}
.art .spark {              /* sparks of light travelling along the lines (made by page.js; drawn beneath the nodes) */
  fill: none; stroke: var(--live-glow); stroke-width: 8; stroke-linecap: round; filter: var(--glow);
}

/* the warp wave's own defs (filters only, nothing visible) */
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 2. Khóa học ---------- */
.courses { background: var(--surface-alt); }
.course-grid {
  /* Effect controls (editable in the studio: select the course grid → Effects) */
  --expand-duration: 700ms;
  --expand-delay: 100ms;
  --expand-ease: cubic-bezier(0.65, 0, 0.35, 1); /* ease-in-out: slow start, fast middle, soft landing */
  --fill-fade: 600ms;
  --details-fade: 320ms;
  --course-h: 420px;
  --gap: 24px;
  --w: calc((100% - 2 * var(--gap)) / 3);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
}
.course-panel { border-radius: var(--radius); background: var(--surface); color: var(--text); }
.course-card--featured .course-panel { background: var(--red); color: var(--on-accent); }
.course-summary { display: flex; flex-direction: column; gap: 14px; }
.course-summary h3 { font-family: var(--font-heading); font-size: 26px; font-weight: var(--heading-weight); line-height: 1.25; }
.course-summary p { opacity: .82; }
.course-summary .course-meta { margin-top: auto; font-size: 14px; font-weight: 700; letter-spacing: .02em; opacity: 1; }
.tag {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  background: var(--green-tint); color: var(--green-dark); font-size: 13px; font-weight: 700;
  transition: background-color var(--fill-fade) ease, color var(--fill-fade) ease;
}
.course-card--featured .tag, .course-card.is-open .tag {
  background: color-mix(in srgb, var(--on-accent) 18%, transparent);
  color: var(--on-accent);
}
/* Tablet & phone: a round chevron under the text, no words. It follows the tag pill's colours, points down while the box is
 * closed and up while it is open, and the whole strip under the text is the tap target (the circle is only the picture).
 * "Xem chi tiết" / "Thu gọn" stay in the markup as its accessible name, hidden from the eye. Hover and press only change
 * the colour (no lifts, motion rule 6); the chevron morphs between down and up (no turning, see its rule below). */
.course-toggle {
  display: none; position: relative; align-self: stretch; align-items: center; justify-content: center; min-height: 52px; margin-top: 6px; padding: 0;
  border: 0; background: none; color: var(--green-dark); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color var(--fill-fade) ease;
}
.course-toggle::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: var(--green-tint); transition: background-color var(--fill-fade) ease;
}
.course-toggle svg { position: relative; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.67px; stroke-linecap: round; stroke-linejoin: round; }
/* the chevron morphs, it never turns: a vertical flip of its one stroke about its middle (scaleY 1 → -1), so both arms flatten
 * into a straight line and bend the other way, the tip travelling up while the ends travel down. The stroke keeps one width all
 * the way (non-scaling-stroke; 1.67px = the old 2 units of the 24-unit drawing at 20px). Plain transforms, so it also works in
 * Safari, which cannot animate a path's shape. Same card ease as the expansion, and the same in both directions. */
.course-toggle svg path { vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; transition: transform .24s cubic-bezier(.65, 0, .35, 1); }
.course-card.is-open .course-toggle svg path { transform: scaleY(-1); }
.course-card--featured .course-toggle, .course-card.is-open .course-toggle { color: var(--on-accent); }
.course-card--featured .course-toggle::before, .course-card.is-open .course-toggle::before { background: color-mix(in srgb, var(--on-accent) 18%, transparent); }
.course-toggle:active::before { background: color-mix(in srgb, currentColor 26%, transparent); }
@media (hover: hover) { .course-toggle:hover::before { background: color-mix(in srgb, currentColor 22%, transparent); } }
.course-toggle:focus-visible { outline: none; }
.course-toggle:focus-visible::before { outline: 2px solid currentColor; outline-offset: 3px; }
.course-toggle .when-closed, .course-toggle .when-open { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.course-toggle .when-open { display: none; }
.course-card.is-open .course-toggle .when-open { display: inline; }
.course-card.is-open .course-toggle .when-closed { display: none; }
/* Light theme only: a light disc with a coloured chevron, whatever the box does. The chevron keeps one colour pair against its
 * disc while the box fades white <-> green, so the morph stays crisp. (A chevron that swapped between dark and white against a
 * disc swapping the other way dipped to 1.0:1 half way, and the flat line of the morph vanished; measured, no timing trick
 * got it above 1.7:1.) Mint disc + green chevron on the white boxes, white disc + red chevron on the red box, white disc + green
 * chevron on every open box (4.7:1 at rest, was 2.6:1). Vintage keeps the translucent disc above: it never dips (3.9:1 or better
 * in every frame). Hover and press still only change the colour; the focus ring is drawn in the box's light colour where the
 * chevron's own colour would disappear into the box. */
html:not([data-theme="vintage"]) .course-card .course-toggle { --tg-disc: var(--green-tint); }
html:not([data-theme="vintage"]) .course-card--featured .course-toggle { --tg-disc: var(--on-accent); color: var(--red); }
html:not([data-theme="vintage"]) .course-card.is-open .course-toggle { --tg-disc: var(--on-accent); color: var(--card-open-ink); }
html:not([data-theme="vintage"]) .course-card .course-toggle::before { background: var(--tg-disc); }
html:not([data-theme="vintage"]) .course-card .course-toggle:active::before { background: color-mix(in srgb, currentColor 18%, var(--tg-disc)); }
@media (hover: hover) { html:not([data-theme="vintage"]) .course-card .course-toggle:hover::before { background: color-mix(in srgb, currentColor 10%, var(--tg-disc)); } }
html:not([data-theme="vintage"]) .course-card--featured .course-toggle:focus-visible::before,
html:not([data-theme="vintage"]) .course-card.is-open .course-toggle:focus-visible::before { outline-color: var(--on-accent); }

.course-details h4 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-bottom: 12px; }
.facts { margin: 0; }
.facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.facts dt { font-weight: 500; opacity: .8; white-space: nowrap; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.course-details ul { margin: 0; padding-left: 18px; }
.course-details li + li { margin-top: 6px; }
.detail-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.detail-note { font-size: 14px; opacity: .85; max-width: 62%; }

/* Desktop: hovered box expands across all three slots (clip-path reveal).
 * Layers (z-index), so a closing card can never cover the one that opens:
 *   opening / open card = 3, taken when its expansion actually starts (after --expand-delay; a quick pass-over never
 *   rises); closing card = 2 for exactly its closing time, then 1; resting cards = 1 (they never overlap at rest).
 * The closing step 3 → 2 → 1 is a z-index transition with steps(2, jump-both): it drops to 2 at once (2.33 rounds
 * to 2), holds 2 (1.67 rounds to 2) and lands on 1 when the shrink ends. Before v7 the closing card kept 3 until the
 * end, tying with the opening card, and the later card in the page won the tie (the "under another card" bug). */
@media (min-width: 1024px) {
  .course-grid { position: relative; height: var(--course-h); filter: var(--shadow-card); }
  .course-card { position: static; }
  .course-card:nth-child(1) { --clip-l: 0px; --clip-r: calc(100% - var(--w)); --slot: 0px; }
  .course-card:nth-child(2) { --clip-l: calc(var(--w) + var(--gap)); --clip-r: calc(var(--w) + var(--gap)); --slot: calc(var(--w) + var(--gap)); }
  .course-card:nth-child(3) { --clip-l: calc(100% - var(--w)); --clip-r: 0px; --slot: calc(100% - var(--w)); }
  .course-panel {
    position: absolute; inset: 0; z-index: 1;
    clip-path: inset(0 var(--clip-r) 0 var(--clip-l) round var(--radius));
    transition:
      clip-path calc(var(--expand-duration) * .85) var(--expand-ease),
      background-color var(--fill-fade) var(--expand-ease),
      color var(--fill-fade) var(--expand-ease),
      z-index calc(var(--expand-duration) * .85) steps(2, jump-both);
  }
  .course-summary {
    position: absolute; top: 0; bottom: 0; left: var(--slot); width: var(--w); padding: 36px 32px;
    transition: left calc(var(--expand-duration) * .85) var(--expand-ease);
  }
  .course-details {
    position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--w) + var(--gap));
    padding: 40px 44px 36px 16px;
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 24px 40px;
    opacity: 0; visibility: hidden; transform: translateX(24px);
    transition: opacity calc(var(--details-fade) * .6) ease, transform calc(var(--details-fade) * .6) ease, visibility 0s linear calc(var(--details-fade) * .6);
  }
  .detail-foot { grid-column: 1 / -1; }

  html:not([data-studio-edit]) .course-card:hover .course-panel,
  .course-card:focus-within .course-panel,
  .course-card.is-open .course-panel {
    clip-path: inset(0 0 0 0 round var(--radius));
    z-index: 3;
    background: var(--card-open); color: var(--on-accent);
    transition:
      clip-path var(--expand-duration) var(--expand-ease) var(--expand-delay),
      background-color var(--fill-fade) var(--expand-ease) var(--expand-delay),
      color var(--fill-fade) var(--expand-ease) var(--expand-delay),
      z-index 0s linear var(--expand-delay);
  }
  /* Red → green passes through a muddy brown halfway, so the featured (red) box changes color
   * much faster than the white ones; the slide keeps its full duration. */
  .course-card--featured .course-panel {
    transition:
      clip-path calc(var(--expand-duration) * .85) var(--expand-ease),
      background-color calc(var(--fill-fade) * .3) ease-out,
      color calc(var(--fill-fade) * .3) ease-out,
      z-index calc(var(--expand-duration) * .85) steps(2, jump-both);
  }
  html:not([data-studio-edit]) .course-card--featured:hover .course-panel,
  .course-card--featured:focus-within .course-panel,
  .course-card--featured.is-open .course-panel {
    transition:
      clip-path var(--expand-duration) var(--expand-ease) var(--expand-delay),
      background-color calc(var(--fill-fade) * .3) ease-out var(--expand-delay),
      color calc(var(--fill-fade) * .3) ease-out var(--expand-delay),
      z-index 0s linear var(--expand-delay);
  }
  html:not([data-studio-edit]) .course-card:hover .course-summary,
  .course-card:focus-within .course-summary,
  .course-card.is-open .course-summary {
    left: 0;
    transition: left var(--expand-duration) var(--expand-ease) var(--expand-delay);
  }
  html:not([data-studio-edit]) .course-card:hover .course-details,
  .course-card:focus-within .course-details,
  .course-card.is-open .course-details {
    opacity: 1; visibility: visible; transform: none;
    transition:
      opacity var(--details-fade) ease calc(var(--expand-delay) + var(--expand-duration) * .45),
      transform var(--details-fade) ease calc(var(--expand-delay) + var(--expand-duration) * .45),
      visibility 0s linear calc(var(--expand-delay) + var(--expand-duration) * .45);
  }
  html:not([data-studio-edit]) .course-card:hover .tag,
  .course-card:focus-within .tag {
    background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent);
  }
}

/* Tablet & mobile: stacked boxes, tap the chevron to open */
@media (max-width: 1023px) {
  .course-grid { grid-template-columns: 1fr; gap: 20px; }
  .course-panel { padding: 28px; box-shadow: var(--shadow); transition: background-color var(--fill-fade) ease, color var(--fill-fade) ease; }
  .course-card.is-open .course-panel { background: var(--card-open); color: var(--on-accent); }
  .course-toggle { display: inline-flex; }
  .course-details { display: none; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: 24px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
  .course-card.is-open .course-details { display: grid; animation: details-in var(--details-fade) ease; }
  .detail-foot { grid-column: 1 / -1; }
}
@keyframes details-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 3. Học viên ---------- */
.pattern-students { width: 300px; right: -40px; top: 40px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.stat { padding: 24px 28px; background: var(--green-tint); border-radius: var(--radius-sm); }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1.2; color: var(--green); }
.stat > span { font-weight: 700; color: var(--text-soft); }

.marquee {
  /* Effect controls (editable in the studio: select the reviews band → Effects). page.js runs the loop:
   * it copies the set as often as the screen needs and moves the band by exactly one set per loop. */
  --marquee-speed: 25;          /* pixels per second */
  --marquee-direction: normal;
  --marquee-gap: 36px;
  position: relative; overflow: hidden; padding: 28px 0 12px;
  touch-action: pan-y;   /* touch: sideways drags move the band (page.js), vertical swipes still scroll the page */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track { display: flex; gap: var(--marquee-gap); width: max-content; padding: 0 calc(var(--marquee-gap) / 2); will-change: transform; }
.testimonial { flex: 0 0 300px; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.polaroid { width: 100%; aspect-ratio: 589 / 530; object-fit: cover; rotate: 2deg; filter: var(--photo-filter); }
.testimonial.tilt-left .polaroid { rotate: -2deg; }   /* per review (not odd/even), so every copy in the loop matches */
.polaroid.framed { background: var(--polaroid-paper); padding: 14px 14px 44px; box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.testimonial blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--text); }
.testimonial figcaption strong { display: block; }
.testimonial figcaption span { color: var(--text-muted); font-size: 15px; }

/* ---------- 4. Liên hệ ---------- */
.contact { background: var(--green-tint); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-info .lead { margin-top: 16px; }
.info-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.info-list li { font-weight: 700; }
.info-list a { color: inherit; text-decoration: none; }
.info-list a:hover { color: var(--green-dark); }
.info-list span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--eyebrow); }
/* "Nhắn Zalo" (v8): a small outlined button beside the hotline number, instead of an underlined link after a dot */
.info-list .zalo-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 4px 12px; vertical-align: middle;
  min-height: 34px; padding: 6px 14px; border: 1.5px solid var(--green); border-radius: var(--btn-radius);
  background: var(--surface); color: var(--green-dark); font-size: 14px; line-height: 1;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.info-list .zalo-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-list .zalo-chip:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--on-accent); }

/* Contact form (v8): fields → sending → sent, or a send error. Every state is an is-* class set by page.js, so the
 * studio strips it on save; State preview pins one per element (the form, the button, the alert, the name field). */
.contact-form {
  display: grid; padding: 36px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-form > .form-body, .contact-form > .form-sent { grid-area: 1 / 1; min-width: 0; }   /* stacked: the card keeps the form's height */
.form-body { display: grid; gap: 16px; transition: opacity .2s ease; }
.form-fields { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; transition: opacity .2s ease; }
.field { display: grid; gap: 6px; min-width: 0; }
.contact-form h3 { font-family: var(--font-heading); font-size: 24px; font-weight: var(--heading-weight); margin-bottom: 4px; }
.contact-form label { font-size: 14px; font-weight: 700; }
.contact-form label .optional { font-weight: 500; color: var(--text-muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-width: 0;   /* a <select> is otherwise as wide as its longest option (v2–v6: 394 px on a 350 px phone column) */
  font: 400 16px var(--font-sans); padding: 13px 14px; color: var(--text);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--input-bg);
}
.contact-form ::placeholder { color: var(--text-muted); }
/* The course select's hint "Chọn khóa học" is not an option: page.js leaves the select with nothing chosen, and this text sits over
 * it, in the placeholder's colour, until a course is picked. */
.select-wrap { position: relative; display: grid; min-width: 0; }
.select-hint { position: absolute; left: 15.5px; top: 50%; translate: 0 -50%; max-width: calc(100% - 52px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; font: 400 16px var(--font-sans); color: var(--text-muted); }
.select-wrap:has(option:checked) .select-hint { display: none; }
/* a focused field shows one simple border, like a button's (v8): its own border turns green; no outer ring */
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); box-shadow: inset 0 0 0 .5px var(--green); }
/* checking: a message under each wrong field (two for the phone: empty / wrong format); it clears as you type */
.field-error { display: none; margin: 0; font-size: 14px; font-weight: 600; color: var(--error); }
.field.is-invalid .field-error:not(.when-format), .field.is-invalid.is-format .when-format { display: block; }
.field.is-invalid.is-format .field-error:not(.when-format) { display: none; }
.contact-form .field.is-invalid input { border-color: var(--error); }
.contact-form .field.is-invalid input:focus { border-color: var(--error); box-shadow: inset 0 0 0 .5px var(--error); }
.form-alert {
  display: none; margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; line-height: 1.5;
  color: var(--error); background: color-mix(in srgb, var(--error) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--error) 35%, transparent);
}
.form-alert.is-shown { display: block; }
.form-alert a { color: inherit; font-weight: 800; }
/* sending: the button keeps its size; its label gives way to a spinner and "Đang gửi…"; the fields dim and lock */
.form-submit { position: relative; }
.form-submit .label-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; }
.form-submit .label-idle, .form-submit .label-busy { transition: opacity .15s ease; }
.form-submit.is-sending, .form-submit.is-sending:hover { background: var(--red-hover); cursor: progress; }
.form-submit.is-sending .label-idle { opacity: 0; }
.form-submit.is-sending .label-busy { opacity: 1; }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.form-submit.is-sending .spinner { animation: form-spin .8s linear infinite; }
@keyframes form-spin { to { transform: rotate(1turn); } }
.contact-form:has(.form-submit.is-sending) .form-fields { opacity: .6; }
/* sent: a thank-you panel takes the form's place inside the same card, so nothing else on the page moves */
.form-sent {
  display: grid; align-content: center; justify-items: center; gap: 12px; padding: 12px; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.contact-form .form-sent h3 { margin: 4px 0 0; outline: none; }
.form-sent p { max-width: 36ch; color: var(--text-soft); }
.sent-phone { font-weight: 800; color: var(--text); white-space: nowrap; }
.sent-phone:empty::before { content: "09xx xxx xxx"; opacity: .5; }   /* studio preview only: a real send writes the visitor's number here */
.sent-check { width: 60px; height: 60px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sent-check circle { stroke-dasharray: 170; stroke-dashoffset: 170; }
.sent-check path { stroke-dasharray: 34; stroke-dashoffset: 34; }
.contact-form.is-sent .form-body { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.contact-form.is-sent .form-sent { opacity: 1; visibility: visible; transition: opacity .25s ease .15s, visibility 0s; }   /* visible at once (only its opacity waits), so its heading can take focus */
.contact-form.is-sent .sent-check circle { animation: sent-draw .5s cubic-bezier(.22, .8, .24, 1) .2s forwards; }
.contact-form.is-sent .sent-check path { animation: sent-draw .3s cubic-bezier(.22, .8, .24, 1) .62s forwards; }
@keyframes sent-draw { to { stroke-dashoffset: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-logo { display: inline-flex; border-radius: 8px; background: var(--plate); }
.footer-logo img { height: 56px; width: auto; }
.footer-logo .logo-plate { display: none; }
.footer-slogan { margin-top: 14px; font-weight: 800; letter-spacing: .04em; color: var(--footer-accent); }
.footer-nav, .footer-social { display: grid; gap: 10px; }
.site-footer a { color: var(--footer-fg); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--footer-accent); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--footer-fg) 30%, transparent); font-size: 14px; }

/* =====================================================================
 * VINTAGE ALTERNATIVE: treatments beyond the palette swap
 * ===================================================================== */
html[data-theme="vintage"] ::selection { background: #CFAB66; color: #1C1712; }
/* lamplight glow over the top of the page (on the hero, so it scrolls and never seams) */
html[data-theme="vintage"] .hero {
  background: radial-gradient(ellipse 75% 70% at 35% 0%, rgba(207, 171, 102, .09), transparent 70%);
}
/* film grain + lamp-light vignette over everything (never intercepts clicks) */
html[data-theme="vintage"] body::before,
html[data-theme="vintage"] body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; }
html[data-theme="vintage"] body::before {
  opacity: .1; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="vintage"] body::after { background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, .38) 100%); }

/* header & footer: double brass rule, logo on a parchment bookplate */
html[data-theme="vintage"] .site-header { border-bottom: 3px double color-mix(in srgb, var(--ornament) 50%, transparent); }
html[data-theme="vintage"] .brand,
html[data-theme="vintage"] .footer-logo {
  padding: 6px 12px;
  box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px color-mix(in srgb, var(--ornament) 70%, transparent);
}
html[data-theme="vintage"] .brand img { height: 42px; }
html[data-theme="vintage"] .footer-logo .logo-reverse { display: none; }
html[data-theme="vintage"] .footer-logo .logo-plate { display: block; height: 46px; }
html[data-theme="vintage"] .site-footer { border-top: 3px double color-mix(in srgb, var(--ornament) 55%, transparent); }
html[data-theme="vintage"] .footer-slogan { letter-spacing: .14em; font-size: 15px; }
html[data-theme="vintage"] .theme-toggle .icon-sun { display: block; }
html[data-theme="vintage"] .theme-toggle .icon-moon { display: none; }
html[data-theme="vintage"] .theme-toggle { border-color: color-mix(in srgb, var(--ornament) 50%, transparent); color: var(--ornament); }
/* the nav pill becomes a book-cloth label: Forest cloth, cream label (6.5:1), a brass hairline inside, 8 px corners */
html[data-theme="vintage"] .nav { --pill-bg: var(--card-open); --pill-ink: var(--on-accent); --pill-radius: 8px; --pill-ring: inset 0 0 0 1px color-mix(in srgb, var(--ornament) 70%, transparent); }

/* typography: letterpress headline, brass eyebrow rule, ornamental rule under section titles */
html[data-theme="vintage"] .display { text-shadow: 0 1px 0 rgba(0, 0, 0, .45), 0 0 28px rgba(156, 182, 126, .12); }
html[data-theme="vintage"] .eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px;
  vertical-align: middle; background: currentColor;
}
html[data-theme="vintage"] .section-head h2::after,
html[data-theme="vintage"] .contact-info h2::after {
  content: ""; display: block; width: 112px; height: 10px; margin-top: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='10' viewBox='0 0 112 10'%3E%3Cg fill='none' stroke='%23CFAB66' stroke-width='1'%3E%3Cpath d='M0 5h44M68 5h44'/%3E%3Cpath d='M56 1l4 4-4 4-4-4z' fill='%23CFAB66'/%3E%3Ccircle cx='47' cy='5' r='1.2' fill='%23CFAB66'/%3E%3Ccircle cx='65' cy='5' r='1.2' fill='%23CFAB66'/%3E%3C/g%3E%3C/svg%3E") no-repeat left center;
}

/* framed "label" cards: thin brass ring inset inside the edge */
html[data-theme="vintage"] .pillar {
  --bw: 1px;
  border: var(--bw) solid color-mix(in srgb, var(--ornament) 45%, transparent);
  outline: 1px solid color-mix(in srgb, var(--ornament) 22%, transparent); outline-offset: -8px;
}
html[data-theme="vintage"] .stat {
  outline: 1px solid color-mix(in srgb, var(--ornament) 30%, transparent); outline-offset: -7px;
}
html[data-theme="vintage"] .stat strong { color: var(--ornament); }
html[data-theme="vintage"] .contact-form { border: 1px solid color-mix(in srgb, var(--ornament) 30%, transparent); }
html[data-theme="vintage"] .info-list .zalo-chip:hover { background: var(--card-open); border-color: var(--card-open); }   /* cream on forest; cream on sage would be unreadable */
html[data-theme="vintage"] .sent-check { stroke: var(--ornament); }
html[data-theme="vintage"] .btn-red { box-shadow: inset 0 0 0 1px rgba(245, 236, 216, .22); letter-spacing: .02em; }
html[data-theme="vintage"] .course-toggle::before { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ornament) 50%, transparent); }   /* the olive circle alone is as dark as the walnut box: a brass hairline, like the theme toggle's */
html[data-theme="vintage"] .course-summary .course-meta { color: var(--eyebrow); }
html[data-theme="vintage"] .course-card--featured .course-meta,
html[data-theme="vintage"] .course-card.is-open .course-meta { color: inherit; }
@media (min-width: 1024px) {
  html[data-theme="vintage"]:not([data-studio-edit]) .course-card:hover .course-meta,
  html[data-theme="vintage"] .course-card:focus-within .course-meta { color: inherit; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-media { max-width: 640px; }
  .photo-float { left: auto; right: -12px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .header-inner { height: 68px; gap: 12px; }
  .brand img { height: 42px; }
  html[data-theme="vintage"] .brand img { height: 34px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 10px 14px; font-size: 14px; }
  .pillars, .stats { grid-template-columns: 1fr; }
  .pillars { margin-top: 48px; }
  .photo-float { width: calc(38.2% - 12px); right: -4px; }
  .pattern-students { display: none; }
  .course-details { grid-template-columns: 1fr; }
  .detail-foot { flex-direction: column; align-items: flex-start; }
  .detail-note { max-width: none; }
  .facts > div { flex-direction: column; align-items: flex-start; gap: 2px; }
  .facts dd { text-align: left; }
  .contact-form { padding: 24px; }
}

@media (hover: none) {   /* touch: a long press on the band holds it, without the text / image callout */
  .marquee { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}
/* Touch screens give the long-press to the page (v9, SPECS §4e #5): no text selection, link preview or image menu;
 * form fields still select, edit and paste. */
@media (hover: none) {
  html { -webkit-user-select: none; user-select: none; }
  a, img, button, .pillar { -webkit-touch-callout: none; }
  input, select, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }
}
/* Moves the page makes by itself (v9): headings take focus quietly, the browser doesn't re-anchor the scroll mid-move,
 * and course cards stay shut under a resting cursor until it moves 4 px (page.js). */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, h3[tabindex="-1"]:focus { outline: none; }
html.is-moving { overflow-anchor: none; }
html.is-cards-calm .course-grid, html.is-cards-calm .pillars { pointer-events: none; }   /* course cards, and the hero boxes' screens */
/* Full motion for everyone (SPECS §4e #1): nothing here reacts to prefers-reduced-motion. */

/* =====================================================================
 * N2 · Circuit current (v9): the hero "Đăng ký tư vấn" charges on hover (or a touch hold), fires a current down the
 * page margin, and arms "Gửi đăng ký" for 8 s. Runtime layers come from page.js (data-runtime); states are is-* classes.
 * Vintage swaps the material: a brass wheel tools a gold line and a wax seal closes it (docs/MOTION_PROPOSALS.md N2v).
 * ===================================================================== */
.btn.cta-hero {
  /* N2 Effects controls (page.js) */
  --n2-charge: 600ms; --n2-speed: 3.2; --n2-run-min: 700ms; --n2-run-max: 1300ms; --n2-rail-inset: 40px; --n2-cool: 1400ms; --n2-armed: 8s;
  position: relative; isolation: isolate;
  transition: background-color .2s ease, color .2s ease, border-color 80ms linear, transform .16s cubic-bezier(.22, .8, .24, 1), filter 60ms linear;
}
.btn.cta-hero.is-charging, .btn.cta-hero.is-charged { border-color: #FF8C8C; }
.btn.cta-hero.is-pressed { transform: scale(.97); transition-duration: .2s, .2s, 80ms, .1s, 60ms; }
.btn.cta-hero.is-firing { filter: brightness(1.22); }
.btn.cta-hero.is-charged { box-shadow: inset 0 0 14px 2px rgba(255, 200, 200, .75); }   /* the studio pin: a full charge, still */
.n2-fx { position: absolute; inset: -2px; z-index: -1; border-radius: inherit; pointer-events: none; }
.n2-glow {
  position: absolute; inset: 2px; border-radius: inherit;
  box-shadow: inset 0 0 calc(4px + var(--fill, 0) * 14px) calc(var(--fill, 0) * 3px) rgba(255, 205, 205, calc(var(--fill, 0) * .8 * var(--flick, 1)));
}
.n2-spark { position: absolute; inset: 0; border-radius: inherit; opacity: var(--spark-o, 1); filter: drop-shadow(0 0 1.5px #FFFFFF) drop-shadow(0 0 5px #FF5050); }
.n2-spark > i, .n2-rim > i {
  position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.n2-spark > i { padding: 3px; background: conic-gradient(from calc(var(--a, 0deg) - 52deg), transparent 0deg, rgba(255, 190, 190, 0) 4deg, rgba(255, 175, 175, .75) 30deg, #FFE8E8 45deg, #FFFFFF 50deg, transparent 52deg); }
.n2-point {
  position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 0 6px 2px #FF5A5A, 0 0 14px 4px rgba(214, 40, 40, .7); transform: scale(0);
}
.n2-crackle { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 4px 1px #FF6A6A; pointer-events: none; }
/* the run (an SVG over the whole document, under the header) */
.n2-layer { position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; overflow: visible; }
/* "Gửi đăng ký": the current's sweep, then armed: a soft breathing glow and one spark circling once per breath */
@property --n2-orbit { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.n2-sweep { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.n2-sweep > i { position: absolute; top: 0; bottom: 0; left: 0; width: 46%; background: linear-gradient(90deg, transparent, rgba(255, 120, 120, .25) 30%, rgba(255, 150, 150, .9) 78%, #FFE3E3 94%, transparent); }
.form-submit::before, .form-submit::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; opacity: 0; }
.form-submit::before { inset: 0; box-shadow: 0 0 22px 6px rgba(255, 70, 70, .55); }
.form-submit::after {
  inset: -2px; padding: 2px;
  background: conic-gradient(from calc(var(--n2-orbit) - 52deg), transparent 0deg, rgba(255, 90, 90, .6) 36deg, #FFE0E0 49deg, #FFFFFF 51deg, transparent 52deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.form-submit.is-armed::before { animation: n2-breathe 2.4s ease-in-out infinite; }
.form-submit.is-armed::after { opacity: 1; animation: n2-orbit 2.4s linear infinite; }
.form-submit.is-disarming::before, .form-submit.is-disarming::after { animation: n2-drain var(--drain, .6s) ease-out forwards; }
@keyframes n2-breathe { 0%, 100% { opacity: .32; } 50% { opacity: 1; } }
@keyframes n2-orbit { to { --n2-orbit: 360deg; } }
@keyframes n2-drain { from { opacity: .75; } to { opacity: 0; } }
/* a launch after the form was sent: the thank-you card's border lights once */
.contact-form.is-lit { animation: n2-lit .7s ease-out; }
@keyframes n2-lit { 0% { box-shadow: var(--shadow), 0 0 0 2px #FF6B6B, 0 0 26px 6px rgba(255, 70, 70, .5); } 100% { box-shadow: var(--shadow); } }

/* N2v · vintage: gold tooling. The rim warms to brass from the corners, a notched brass wheel waits at the left edge
 * (its notches tick in steps, 12 a second), gold leaf flakes off; the key travels down instead of squeezing. */
html[data-theme="vintage"] .btn.cta-hero.is-charging, html[data-theme="vintage"] .btn.cta-hero.is-charged { border-color: transparent; }
html[data-theme="vintage"] .btn.cta-hero.is-pressed { transform: translateY(2px); transition-duration: .2s, .2s, 80ms, 60ms, 60ms; }
html[data-theme="vintage"] .btn.cta-hero.is-firing { filter: brightness(1.12) sepia(.25); }
html[data-theme="vintage"] .btn.cta-hero.is-charged { box-shadow: inset 0 0 0 1px #E2BE78, inset 0 0 12px rgba(226, 190, 120, .35); }
html[data-theme="vintage"] .n2-glow { box-shadow: inset 0 0 calc(4px + var(--fill, 0) * 10px) calc(var(--fill, 0) * 1px) rgba(120, 30, 14, calc(var(--fill, 0) * .55)); }
.n2-rim { position: absolute; inset: 0; border-radius: inherit; filter: drop-shadow(0 0 3px rgba(233, 201, 135, .55)); }
.n2-wheel {
  position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: radial-gradient(circle, #5A4120 0 1.6px, transparent 2px), repeating-conic-gradient(#F1D59A 0 15deg, #9C7634 15deg 30deg);
  box-shadow: 0 0 0 1px #6E5225, 0 0 5px rgba(233, 201, 135, .6);
  transform: scale(0); animation: n2-wheel 1s steps(12) infinite;
}
@keyframes n2-wheel { to { rotate: 360deg; } }
.n2-leaf { position: absolute; width: 3px; height: 2px; background: #E9C987; box-shadow: 0 0 3px rgba(233, 201, 135, .7); pointer-events: none; }
.n2-dent { position: absolute; left: -4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(20, 12, 6, .55); pointer-events: none; }
html[data-theme="vintage"] .n2-sweep > i { background: linear-gradient(90deg, transparent, rgba(233, 201, 135, .2) 30%, rgba(241, 213, 154, .75) 80%, rgba(255, 238, 200, .85) 94%, transparent); }
html[data-theme="vintage"] .form-submit::before { box-shadow: inset 0 0 0 1.5px #E2BE78, 0 0 16px 3px rgba(226, 170, 90, .4); }
html[data-theme="vintage"] .form-submit.is-armed::after { opacity: 0; animation: none; }
html[data-theme="vintage"] .contact-form.is-lit { animation-name: n2-lit-brass; }
@keyframes n2-lit-brass { 0% { box-shadow: var(--shadow), 0 0 0 1.5px #E2BE78, 0 0 22px 5px rgba(226, 170, 90, .45); } 100% { box-shadow: var(--shadow); } }
/* the wax seal: Brick wax with an embossed V, stamped onto the button's left end */
.n2-seal { position: absolute; left: -12px; top: 50%; width: 34px; height: 34px; margin-top: -17px; pointer-events: none; z-index: 2; }
.n2-seal svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* =====================================================================
 * F1 · Peel / Laser (v9): the theme toggle. One View Transition per burst: the new picture is clipped every frame to
 * its theme's stripes (--f1-clip, page.js); curls, lasers, dust and sparks are drawn on .f1-canvas above both pictures.
 * ===================================================================== */
.theme-toggle {
  --wave-duration: 2000ms; --wave-gap: 200ms; --curl-size: 75px;   /* F1 Effects controls */
  position: relative; overflow: hidden;
  transition: border-color .2s ease, color .2s ease, transform 80ms ease;
}
.theme-toggle:active { transform: scale(.94); }                    /* F1.4: the press */
.theme-toggle svg { transition: rotate .18s cubic-bezier(.22, .8, .24, 1); }
/* F1.2 (to vintage): the toggle's top-right edge lifts like a sticker corner, showing its cream back; the moon tilts */
.theme-toggle::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 70%, #BFA978 64%, #F6EDD8 73%, #ECDDBF 100%);
  -webkit-mask: radial-gradient(circle at 30% 70%, transparent 66%, #000 67%);
          mask: radial-gradient(circle at 30% 70%, transparent 66%, #000 67%);
  transform-origin: 100% 0; transform: scale(0); transition: transform .18s cubic-bezier(.22, .8, .24, 1);
}
html:not([data-theme="vintage"]) .theme-toggle:hover::after, html:not([data-theme="vintage"]) .theme-toggle.is-preview::after { transform: scale(1); }
html:not([data-theme="vintage"]) .theme-toggle:hover .icon-moon, html:not([data-theme="vintage"]) .theme-toggle.is-preview .icon-moon { rotate: 8deg; }
/* F1.3 (to modern): a thin green scan line passes once over the sun, along the laser's diagonal */
.theme-toggle::before {
  content: ""; position: absolute; left: -30%; top: 50%; width: 160%; height: 2px; margin-top: -1px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, #7DFFB8 30%, #FFFFFF 50%, #7DFFB8 70%, transparent); box-shadow: 0 0 6px 1px rgba(0, 255, 140, .8);
  transform: rotate(45deg) translateY(-26px);
}
html[data-theme="vintage"] .theme-toggle:hover::before, html[data-theme="vintage"] .theme-toggle.is-preview::before { animation: f1-scan .4s cubic-bezier(.42, 0, .58, 1) both; }
@keyframes f1-scan { from { opacity: 1; transform: rotate(45deg) translateY(-26px); } to { opacity: 1; transform: rotate(45deg) translateY(26px); } }
/* the burst */
::view-transition { pointer-events: none; }
html.is-theming::view-transition-old(root), html.is-theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.is-theming::view-transition-new(root) { clip-path: var(--f1-clip, none); }
html.is-theming::view-transition-group(f1fx), html.is-theming::view-transition-old(f1fx), html.is-theming::view-transition-new(f1fx) { animation: none; }
html.is-theming *, html.is-theming *::before, html.is-theming *::after { transition: none !important; }   /* no colour fades in the new picture */
html.is-theming[data-theme="vintage"] .section-head h2::after, html.is-theming[data-theme="vintage"] .contact-info h2::after { opacity: 0; }   /* they ink in after */
.f1-canvas { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 11; pointer-events: none; view-transition-name: f1fx; }   /* the viewport without its scrollbar (100vw would widen the page) */
.f1-canvas.is-after { view-transition-name: none; }   /* the burst is over: its dust and sparks settle outside any transition */
.f1-dip { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
/* after the last wave, once (F1.6, v10): vintage's whole double brass rule under the header shines up in place to
 * polished gold and dims back, with no travelling motion. The shine is the rule itself: two 1 px lines with the rule's
 * 1 px gap (a 3 px double border), a warm halo, and only its opacity animates. Modern has no arrival. */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; box-sizing: border-box;
  border-top: 1px solid #F3D99A; border-bottom: 1px solid #F3D99A;
  filter: drop-shadow(0 0 3px rgba(255, 214, 140, .85)) drop-shadow(0 0 7px rgba(240, 190, 110, .45));
  pointer-events: none; opacity: 0;
}
html.is-shining[data-theme="vintage"] .site-header::after { animation: f1-shine 1.1s linear both; }
@keyframes f1-shine {
  0% { opacity: 0; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }    /* brightens (260 ms) */
  23.6% { opacity: 1; animation-timing-function: linear; }                         /* holds (120 ms) */
  34.5% { opacity: 1; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }  /* dims back to brass (720 ms) */
  100% { opacity: 0; }
}
@property --ink { syntax: '<number>'; inherits: false; initial-value: 1; }
html.is-inking[data-theme="vintage"] .section-head h2::after, html.is-inking[data-theme="vintage"] .contact-info h2::after {
  transform-origin: 56px 5px;
  -webkit-mask-image: linear-gradient(90deg, transparent calc(50% - var(--ink) * 50%), #000 calc(50% - var(--ink) * 50%), #000 calc(50% + var(--ink) * 50%), transparent calc(50% + var(--ink) * 50%));
          mask-image: linear-gradient(90deg, transparent calc(50% - var(--ink) * 50%), #000 calc(50% - var(--ink) * 50%), #000 calc(50% + var(--ink) * 50%), transparent calc(50% + var(--ink) * 50%));
  animation: f1-ink .4s linear both;
}
@keyframes f1-ink {
  0% { --ink: .1; transform: scale(1.25); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }   /* the diamond stamps in */
  30% { --ink: .1; transform: scale(1); animation-timing-function: cubic-bezier(.22, .8, .24, 1); }      /* hard stop */
  100% { --ink: 1; transform: scale(1); }                                                               /* the rules draw out */
}

/* =====================================================================
 * F3 · Small toys (v9): they play only when you touch them. Each draws a runtime overlay over the untouched original.
 * ===================================================================== */
/* F3a · Live grid: lights over the hero's pattern image (box 2's geometry, 736 × 408). Each node lights in its own
 * drawing (a hollow node stays hollow); the spark runs behind the nodes, as in box 2 (a mask cut by the nodes). */
.hero { --grid-reach: 140px; --max-sparks: 3; }   /* on the section, so the studio can reach them (the image takes no clicks) */
/* the hero is the top of the page: even the browser's own jump to #cong-dong (without page.js) lands at the very top */
.hero { scroll-margin-top: 999px; }
.grid-live { position: absolute; pointer-events: none; overflow: visible; }
.grid-live .gl-lit { filter: drop-shadow(0 0 5px rgba(43, 212, 122, .7)); }
.grid-live .gl-f { fill: var(--green); stroke: var(--green); stroke-width: 2; }
.grid-live .gl-o { fill: rgba(43, 212, 122, .16); stroke: var(--green); stroke-width: 4.5; }
.grid-live .gl-trail { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.grid-live .gl-spark { fill: none; stroke: #B6F7D2; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 2px #1ED47A) drop-shadow(0 0 7px rgba(0, 196, 106, .85)); }
.grid-live .gl-pop { fill: none; stroke: var(--green); stroke-width: 2.5px; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
/* vintage: brass rivets (each with its own highlight, turned toward the cursor by page.js) and a pen inking the line */
html[data-theme="vintage"] .grid-live .gl-lit { filter: drop-shadow(0 0 4px rgba(232, 201, 122, .5)); }
html[data-theme="vintage"] .grid-live .gl-f { fill: var(--brass); stroke: #5E4520; stroke-width: 1.5; }
html[data-theme="vintage"] .grid-live .gl-o { fill: rgba(233, 201, 135, .08); stroke: var(--brass); stroke-width: 4.5; }
html[data-theme="vintage"] .grid-live .gl-ink { fill: none; stroke: #F4D99A; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="vintage"] .grid-live .gl-nib { fill: none; stroke: #FFF3D2; stroke-width: 8; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(255, 214, 140, .9)); }
html[data-theme="vintage"] .grid-live .gl-pop { stroke: #E9C987; }
/* F3b · Growth counter: odometer wheels over the real number (which turns transparent only while they roll). Each
 * wheel takes the width of the digit it shows (Paytone's digits differ by up to 10 px), so the number never clips. */
.stats { --roll-duration: 1200ms; --push: 33%; }
.stat { cursor: pointer; }
.stat strong { position: relative; --odo-color: var(--green); }
html[data-theme="vintage"] .stat strong { --odo-color: var(--ornament); }
.stat strong.is-rolling, html[data-theme="vintage"] .stat strong.is-rolling { color: transparent; }
.odo { position: absolute; inset: 0; color: var(--odo-color); pointer-events: none; }
.odo-w {   /* digits roll in and out through a soft edge (the digit's ink sits at 30–82% of the box, clear of the fades) */
  position: absolute;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.odo-s { position: absolute; left: 0; top: 0; width: 100%; display: flex; flex-direction: column; }
.odo-s > span { display: block; text-align: center; white-space: nowrap; }
.odo-c { position: absolute; text-align: center; white-space: nowrap; }
.odo-probe { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; }
.odo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* vintage: a brass mechanical counter, ink digits on cream drums behind small brass windows (not for the hover nudge) */
html[data-theme="vintage"] .odo:not(.is-nudge) .odo-w { -webkit-mask-image: none; mask-image: none; clip-path: inset(10px 0 3px round 2px); }   /* hard-edged windows, centred on the digits */
html[data-theme="vintage"] .odo:not(.is-nudge) .odo-w::before,
html[data-theme="vintage"] .odo:not(.is-nudge) .odo-w::after { content: ""; position: absolute; inset: 10px 0 3px; border-radius: 2px; }
html[data-theme="vintage"] .odo:not(.is-nudge) .odo-w::before { background: linear-gradient(#B8A47C, #EDE2C8 26%, #F8F1E0 50%, #EDE2C8 74%, #B8A47C); }
html[data-theme="vintage"] .odo:not(.is-nudge) .odo-w::after { box-shadow: inset 0 0 0 1px #CFAB66, inset 0 2px 3px rgba(42, 32, 24, .35), inset 0 -2px 3px rgba(42, 32, 24, .3); }
html[data-theme="vintage"] .odo:not(.is-nudge) .odo-s { color: #2A2018; }
/* F3c · Lit slogan: a runtime copy of the line, laid exactly over it while a word plays */
.footer-slogan { cursor: pointer; --surge-duration: 1600ms; --sparks: 10; position: relative; }
.footer-slogan.is-surging { color: transparent; }
/* the light: a layer inside the line, each word a fixed piece pinned where the line has it (never re-flowed) */
.slogan-live { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.slogan-live .sw { position: absolute; left: 0; top: 0; }
.slogan-live .sp { position: absolute; white-space: pre; }
/* toys never select text (v10): their labels can't be selected outside the studio's Edit mode (page.js also stops
 * a double or triple press on any toy from starting a selection) */
html:not([data-studio-edit]) :is(.stat, .footer-slogan) { -webkit-user-select: none; user-select: none; }
.slogan-live .ss { position: absolute; width: 2px; height: 2px; margin: -1px 0 0 -1px; border-radius: 50%; background: #FFF8D6; box-shadow: 0 0 4px 1px rgba(255, 255, 220, .95); }
html[data-theme="vintage"] .slogan-live .ss { background: #FFB25A; box-shadow: 0 0 5px 1px rgba(255, 110, 30, .85); }   /* embers (they cool to red as they fall: page.js) */
