/* =========================================================
   CMR International School - site styles (v2)
   Design tokens are at the top. Change a colour once and the whole site follows.
   Shape rule: buttons are pills, cards/photos use --r-lg (20px), inputs use --r-sm (12px).
   Light and dark mode both follow the visitor's phone/computer setting.
   ========================================================= */
:root {
  /* Brand (from the logo) */
  --brand: #042f66;          /* school navy */
  --brand-deep: #021b3d;
  --accent: #f7941d;         /* logo orange - the ONLY accent colour */
  --accent-press: #e5830c;
  --on-accent: #0c1f3f;      /* text on orange buttons (7:1 contrast) */

  /* Neutrals (light mode) */
  --bg: #f7f8fb;
  --surface: #ffffff;
  --tint: #eef2f8;           /* soft navy tint for alternating sections */
  --ink: #0c1f3f;            /* headings */
  --text: #3a4762;           /* body */
  --muted: #5f6b84;
  --line: #dde3ee;
  --logo-chip: transparent;
  --scrim: rgba(6, 18, 40, .78);
  --shadow: 0 1px 2px rgba(4, 47, 102, .06), 0 12px 32px -12px rgba(4, 47, 102, .18);
  --shadow-lg: 0 30px 60px -24px rgba(4, 47, 102, .35);

  /* Type */
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Shape + space */
  --r-lg: 20px;
  --r-sm: 12px;
  --r-btn: 999px;
  --container: 1240px;
  --sec: clamp(72px, 9vw, 120px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {html[data-dark="auto"] {
    --bg: #07132a;
    --surface: #0d1c38;
    --tint: #0b1830;
    --ink: #f1f4fa;
    --text: #c5cddd;
    --muted: #97a3bb;
    --line: #20325a;
    --logo-chip: #ffffff;
    --scrim: rgba(3, 10, 24, .82);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-press); }
a[href^="tel"] { white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.02em; }
h3 { line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--sec) 0; position: relative; }
.section-tight-top { padding-top: 0; }
.bg-tint { background: var(--tint); }
.center { text-align: center; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.top-sentinel { position: absolute; top: 0; height: 40px; width: 1px; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: var(--r-btn); border: 1.5px solid transparent; font-family: var(--font); font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { background: var(--accent-press); color: var(--on-accent); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.text-link i { font-size: .8em; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--ink); }
.text-link:hover i { transform: translateX(4px); }

/* ---------- Section titles ---------- */
.sec-title { max-width: 680px; margin-bottom: 48px; }
.sec-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-title h2 { font-size: clamp(30px, 3.6vw, 46px); }
.sec-title p { font-size: 18px; color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-press); margin-bottom: 14px; }
@media (prefers-color-scheme: dark) {html[data-dark="auto"] .eyebrow { color: var(--accent); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(4, 47, 102, .4); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--bg); } }
.header-in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { flex-shrink: 0; background: var(--logo-chip); border-radius: 10px; padding: 2px 6px; margin-left: -6px; }
.logo img { height: 52px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 10px 14px; font-weight: 600; font-size: 15.5px; color: var(--text); border-radius: 999px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a { color: var(--ink); background: var(--tint); }
.has-sub { display: flex; align-items: center; }
.has-sub > a { padding-right: 4px !important; }
.sub-toggle { background: none; border: 0; color: var(--muted); padding: 8px 8px 8px 2px; cursor: pointer; font-size: 11px; }
.submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.submenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text); }
.submenu a:hover, .submenu .active a { background: var(--tint); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); }
.header-phone i { color: var(--accent-press); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; cursor: pointer; padding: 0; position: relative; }
.menu-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 16px; } .menu-toggle span:nth-child(2) { top: 22px; } .menu-toggle span:nth-child(3) { top: 28px; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-extra { display: none; }

/* ---------- Inner page heading ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); max-width: 16ch; margin-bottom: 14px; }
.page-head .lead { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(560px, calc(100dvh - var(--header-h) - 120px)); }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; max-width: 15ch; }
.hero-sub { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 44ch; margin: 0; }
.hero-media { position: relative; padding-bottom: 48px; }
.hero-img-main { border-radius: calc(var(--r-lg) + 8px); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); }
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-inset { position: absolute; left: -36px; bottom: 0; width: 42%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow-lg); }
.hero-img-inset img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--display); font-weight: 650; font-size: clamp(34px, 3.6vw, 46px); line-height: 1; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 15px; color: var(--muted); font-weight: 600; }

/* ---------- Split layout (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-rev .split-text { order: 0; }
.split h2 { font-size: clamp(30px, 3.4vw, 44px); }
.lead-p { font-size: 18.5px; }
.frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-tall { aspect-ratio: 4 / 4.6; }
.stack { position: relative; padding: 0 0 70px 0; }
.stack .frame:first-child { aspect-ratio: 4 / 3.6; width: 88%; margin-left: auto; }
.stack .frame-small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid var(--tint); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 30px 0 34px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.perks i { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--brand); font-size: 17px; }
@media (prefers-color-scheme: dark) {html[data-dark="auto"] .perks i { color: var(--accent); } }
.perks strong { display: block; color: var(--ink); font-size: 16px; }

/* ---------- Programs switcher (home) ---------- */
.prog-switch { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; }
.prog-tabs { display: flex; flex-direction: column; gap: 8px; }
.prog-tab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; width: 100%; padding: 20px 22px; border-radius: calc(var(--r-sm) + 4px); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-family: var(--font); transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.prog-tab:hover { border-color: var(--muted); }
.prog-tab .pt-name { font-family: var(--display); font-size: 24px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.prog-tab .pt-age { font-size: 14px; font-weight: 700; color: var(--muted); }
.prog-tab.is-active { background: var(--brand); border-color: var(--brand); }
.prog-tab.is-active .pt-name { color: #fff; }
.prog-tab.is-active .pt-age { color: var(--accent); }
.prog-panels { position: relative; }
.prog-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 4px); overflow: hidden; height: 100%; }
.js .prog-panel:not(.is-active) { display: none; }
.js .prog-panel.is-active { animation: fadeUp .5s var(--ease); }
.pp-img { min-height: 340px; }
.pp-img img { width: 100%; height: 100%; object-fit: cover; }
.pp-body { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.pp-body h3 { font-size: 34px; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 4px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pp-meta dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pp-meta dd { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pp-body p { margin-bottom: 22px; }
.pp-body .text-link { align-self: flex-start; }

/* ---------- Pillars (approach) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 36px 36px 8px 0; }
.pillar + .pillar { padding-left: 36px; border-left: 1px solid var(--line); }
.pillar i { font-size: 26px; color: var(--accent-press); margin-bottom: 22px; display: block; }
@media (prefers-color-scheme: dark) {html[data-dark="auto"] .pillar i { color: var(--accent); } }
.pillar h3 { font-size: 23px; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Bento (activities) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 16px; }
.bento-cell { position: relative; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: var(--tint); }
.bento-cell.b-wide { grid-column: span 2; }
.bento-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.bento-cell::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 28%, rgba(6, 18, 40, .55) 58%, rgba(6, 18, 40, .92) 100%); }
.bento-cell:hover img { transform: scale(1.04); }
.bento-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; color: #e9eef7; }
.bento-text h3 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.bento-text p { margin: 0; font-size: 15.5px; max-width: 46ch; line-height: 1.5; }

/* ---------- Values ---------- */
.value-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.value-list li:last-child { padding-bottom: 0; }
.value-list h3 { font-size: 22px; margin-bottom: 6px; }
.value-list p { margin: 0; color: var(--muted); }
.split .sec-title { margin-bottom: 26px; }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 40px; }
.reviews-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 0; }
.reviews-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; }
.review-lead { grid-row: span 2; background: var(--brand); border-color: var(--brand); padding: clamp(32px, 4vw, 52px); justify-content: space-between; }
.review blockquote { margin: 14px 0 22px; }
.review blockquote p { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.55; }
.review-lead blockquote p { color: #fff; font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -.015em; font-weight: 500; }
.stars { color: var(--accent); font-size: 14px; display: flex; gap: 3px; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14.5px; color: var(--muted); }
.review figcaption strong { display: block; color: var(--ink); font-size: 16px; }
.review-lead figcaption, .review-lead figcaption strong { color: #fff; }
.review-lead figcaption { color: #b8c6de; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.review-lead .avatar { background: var(--accent); color: var(--on-accent); }

/* ---------- Forms ---------- */
.split-form { align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 4px); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 26px; margin-bottom: 6px; }
.form-note { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field-label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.field small, .field-help { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.form input:not([type=radio]):not([type=checkbox]), .form textarea, .form select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; min-height: 50px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px rgba(4, 47, 102, .12); }
@media (prefers-color-scheme: dark) {html[data-dark="auto"] .form input:focus, html[data-dark="auto"] .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(247, 148, 29, .18); } }
.form input[type=file] { padding: 10px; cursor: pointer; }
.form input[type=file]::file-selector-button { font: inherit; font-weight: 700; font-size: 14px; border: 0; border-radius: 999px; padding: 8px 16px; margin-right: 12px; background: var(--tint); color: var(--ink); cursor: pointer; }
.form input:user-invalid, .form textarea:user-invalid { border-color: #c4361b; }
.form-msg { padding: 14px 18px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.form-msg i { margin-top: 4px; }
.form-msg.ok { background: #e4f6ec; color: #0f5b33; }
.form-msg.err { background: #fdeceb; color: #9a2412; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--text); background: var(--bg); transition: all .2s; }
.radio input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.radio input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form fieldset { display: grid; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.form legend { font-family: var(--display); font-size: 22px; font-weight: 650; color: var(--ink); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.form legend + * { clear: both; }
.contact-mini { display: grid; gap: 12px; margin-top: 26px; font-weight: 600; }
.contact-mini li { display: flex; gap: 12px; align-items: center; }
.contact-mini i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent-press); font-size: 14px; flex-shrink: 0; border: 1px solid var(--line); }

/* ---------- Gallery strip (one marquee on the site) ---------- */
.strip-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.strip-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; }
.marquee-track a { width: 320px; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; flex-shrink: 0; }
.marquee-track a:nth-child(even) { aspect-ratio: 3 / 3.4; width: 250px; }
.marquee-track img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.marquee-track a:hover img { transform: scale(1.05); }
.marquee-track { align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 60s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track a[aria-hidden="true"] { display: none; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.faq-head p { color: var(--muted); }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--font); font-size: 18px; font-weight: 700; letter-spacing: 0; margin: 0; }
.faq summary i { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; color: var(--ink); transition: transform .3s var(--ease), background-color .2s; }
.faq[open] summary i { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 var(--sec); }
.section + .cta-band, .bg-tint + .cta-band { padding-top: var(--sec); }
.cta-in { background: var(--brand); border-radius: calc(var(--r-lg) + 8px); padding: clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; isolation: isolate; }
.cta-in::before { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 65%); z-index: -1; }
.cta-text h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); max-width: 20ch; }
.cta-text p { color: #b8c6de; margin: 0; max-width: 50ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.cta-phone { color: #fff; font-weight: 700; display: inline-flex; gap: 10px; align-items: center; }
.cta-phone:hover { color: var(--accent); }
@media (prefers-color-scheme: dark) {html[data-dark="auto"] .cta-in { background: #0f2a57; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #a9b7cf; padding: 80px 0 0; font-size: 15.5px; }
@media (prefers-color-scheme: dark) {html[data-dark="auto"] .site-footer { background: #040c1c; } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.f-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 14px; margin-bottom: 22px; }
.f-logo img { height: 48px; width: auto; }
.f-about p { max-width: 36ch; }
.f-title { font-family: var(--font); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 18px; }
.f-links li { margin-bottom: 10px; }
.site-footer a { color: #d5deec; }
.site-footer a:hover { color: var(--accent); }
.f-links span { color: #7f90ad; font-size: 14px; }
.f-contact p { margin-bottom: 14px; }
.f-hours { color: #a9b7cf; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background-color .2s, border-color .2s, color .2s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; padding-bottom: 28px; font-size: 14px; }
.footer-bottom p { margin: 0; }

/* ---------- Mobile quick-action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Program cards (Programs page, class pages) ---------- */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.program-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pc-img { aspect-ratio: 5 / 4; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { font-size: 24px; margin-bottom: 8px; }
.pc-body h3 a { color: var(--ink); }
.pc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pc-meta li { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--ink); }
.pc-body p { font-size: 15.5px; color: var(--muted); }
.pc-body .text-link { margin-top: auto; align-self: flex-start; font-size: 15px; }

/* Class page layout */
.prog-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.prog-gallery { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; }
.pg-main { border-radius: calc(var(--r-lg) + 4px); overflow: hidden; aspect-ratio: 5 / 4; display: block; }
.pg-main img, .pg-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pg-main:hover img, .pg-thumbs a:hover img { transform: scale(1.04); }
.pg-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pg-thumbs a { border-radius: 14px; overflow: hidden; aspect-ratio: 1; display: block; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: 30px; }
.facts div { padding: 18px 20px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--display); font-size: 22px; font-weight: 650; color: var(--ink); }
.prog-text h2 { font-size: clamp(28px, 3vw, 38px); }
.prog-text h3 { font-size: 22px; margin-top: 30px; }
.check-list { display: grid; gap: 10px; margin-bottom: 8px; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check-list i { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 11px; margin-top: 2px; }

/* ---------- Photos page ---------- */
.photo-grid { columns: 3 300px; column-gap: 16px; }
.photo-grid a { display: block; margin-bottom: 16px; border-radius: 16px; overflow: hidden; break-inside: avoid; background: var(--tint); }
.photo-grid img { width: 100%; transition: transform .6s var(--ease); }
.photo-grid a:hover img { transform: scale(1.03); }

/* ---------- Videos ---------- */
.video-feature { margin-bottom: 28px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.video { margin: 0; }
.video-thumb, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--brand-deep); }
.video-feature .video-thumb, .video-feature iframe { border-radius: 24px; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; opacity: .92; }
.video-thumb:hover img { transform: scale(1.04); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand); display: grid; place-items: center; font-size: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: scale .3s var(--ease); }
.play i { margin-left: 3px; }
.video-thumb:hover .play { scale: 1.08; }
.video-feature .play { width: 84px; height: 84px; font-size: 26px; }
.video figcaption { margin-top: 12px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.video-feature figcaption { font-family: var(--display); font-size: 22px; font-weight: 650; }
.center-row { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 0; margin-bottom: 32px; }
.contact-list li { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list i { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--brand); }
@media (prefers-color-scheme: dark) {html[data-dark="auto"] .contact-list i { color: var(--accent); } }
.contact-list h2 { font-family: var(--font); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; font-weight: 700; }
.contact-list p { margin: 0; font-weight: 600; color: var(--ink); }
.map { border-radius: calc(var(--r-lg) + 4px); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; margin-top: clamp(40px, 6vw, 72px); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- About ---------- */
.motto { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; color: var(--ink); letter-spacing: -.02em; font-weight: 600; max-width: 22ch; margin: 0 0 28px; }
.motto span { color: var(--accent-press); }
@media (prefers-color-scheme: dark) {html[data-dark="auto"] .motto span { color: var(--accent); } }
.mvv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mvv > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.mvv .wide { grid-column: 1 / -1; background: var(--brand); border-color: var(--brand); }
.mvv .wide h3, .mvv .wide p { color: #fff; }
.mvv .wide p { color: #c3d0e5; }
.mvv h3 { font-size: 22px; }
.mvv p { margin: 0; color: var(--muted); }
.journey { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: j; border-top: 1px solid var(--line); }
.journey li { padding: 30px 28px 0 0; position: relative; }
.journey li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.journey i { font-size: 24px; color: var(--accent-press); margin-bottom: 18px; display: block; }
@media (prefers-color-scheme: dark) {html[data-dark="auto"] .journey i { color: var(--accent); } }
.journey h3 { font-size: 21px; margin-bottom: 6px; }
.journey p { margin: 0; color: var(--muted); font-size: 15.5px; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { margin: 0; }
.member .m-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tint); margin-bottom: 14px; }
.member img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member figcaption { font-family: var(--display); font-weight: 650; font-size: 20px; color: var(--ink); }

/* ---------- Careers / Enquiry ---------- */
.career-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.career-aside .frame { aspect-ratio: 4 / 5; margin-bottom: 28px; }
.enquiry-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.enquiry-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.enquiry-aside h2 { font-size: 28px; }
.steps-list { counter-reset: s; display: grid; gap: 18px; margin: 22px 0 30px; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; }
.steps-list li::before { counter-increment: s; content: counter(s); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.steps-list strong { display: block; color: var(--ink); }
.steps-list span { color: var(--muted); font-size: 15px; }

/* ---------- 404 ---------- */
.nf { text-align: center; max-width: 560px; margin: 0 auto; }
.nf-num { font-family: var(--display); font-size: clamp(90px, 16vw, 160px); font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.05em; }
.nf-num span { color: var(--accent); }
.nf .btn-row { justify-content: center; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(4, 12, 28, .94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lb.open { display: flex; animation: fade .25s ease; }
.lb img { max-height: 100%; max-width: 100%; border-radius: 14px; object-fit: contain; }
.lb button { position: absolute; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 18px; transition: background-color .2s; }
.lb button:hover { background: var(--accent); color: var(--on-accent); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; color: #c9d3e4; font-size: 14px; font-weight: 600; }
.lb-lock { overflow: hidden; }

/* ---------- Scroll reveal (only when motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-text > * { animation: fadeUp .9s var(--ease) both; }
  .hero-text > *:nth-child(2) { animation-delay: .08s; }
  .hero-text > *:nth-child(3) { animation-delay: .16s; }
  .hero-text > *:nth-child(4) { animation-delay: .24s; }
  .hero-img-main { animation: fadeUp 1s var(--ease) .1s both; }
  .hero-img-inset { animation: fadeUp 1s var(--ease) .35s both; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1280px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
  .main-nav > ul > li > a { padding: 10px 11px; font-size: 15px; }
}

@media (max-width: 1100px) {
  :root { --header-h: 66px; }
  .menu-toggle { display: block; }
  .header-actions .btn, .header-phone { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 16px 24px 32px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; margin: 0; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .main-nav > ul > li > a { padding: 16px 4px; font-size: 20px; font-family: var(--display); font-weight: 600; color: var(--ink); background: none !important; border-radius: 0; flex: 1; }
  .sub-toggle { width: 48px; height: 48px; font-size: 14px; padding: 0; }
  .has-sub.open .sub-toggle i { transform: rotate(180deg); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 8px; display: none; width: 100%; background: transparent; }
  .has-sub.open .submenu { display: block; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub.open:hover .submenu, .has-sub.open:focus-within .submenu { display: block; }
  .nav-mobile-extra { display: grid; gap: 14px; margin-top: 28px; }
  .nav-phone { font-weight: 700; text-align: center; padding: 10px; }

  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: 14ch; }
  .hero-media { padding-bottom: 36px; margin-left: 24px; }
  .hero-img-inset { left: -24px; width: 40%; }
  .split, .faq-wrap, .contact-grid, .career-grid, .enquiry-grid, .prog-layout { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 2; }
  .faq-head, .enquiry-aside, .prog-gallery { position: static; }
  .prog-switch { grid-template-columns: 1fr; }
  .prog-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
  .prog-tabs::-webkit-scrollbar { display: none; }
  .prog-tab { flex: 0 0 auto; width: auto; flex-direction: column; gap: 2px; padding: 14px 20px; }
  .prog-tab .pt-name { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team, .journey { grid-template-columns: 1fr 1fr; }
  .journey li:nth-child(3) { padding-left: 0; border-left: 0; }
  .journey li { padding-bottom: 28px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16.5px; }
  .footer-bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .container { padding: 0 20px; }
  .logo img { height: 46px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding: 22px 12px 22px 0; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 20px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .perks, .form-row, .check-list.cols-2, .mvv { grid-template-columns: 1fr; }
  .prog-panel { grid-template-columns: 1fr; }
  .pp-img { min-height: 0; aspect-ratio: 5 / 4; }
  .pp-meta { grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
  .pillars { grid-template-columns: 1fr; border-top: 0; }
  .pillar, .pillar + .pillar { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .bento-cell.b-wide { grid-column: auto; }
  .stack { padding-bottom: 50px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-lead { grid-row: auto; }
  .marquee-track a { width: 240px; }
  .marquee-track a:nth-child(even) { width: 190px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
  .facts dd { font-size: 16px; white-space: nowrap; }
  .facts dt { font-size: 11px; }
  .facts div { padding: 14px; }
  .team { grid-template-columns: 1fr 1fr; gap: 14px; }
  .journey { grid-template-columns: 1fr; }
  .journey li, .journey li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .journey { border-top: 0; }
  .video-grid { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
  .lb { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; translate: none; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }

  .mobile-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--r-btn); font-weight: 700; border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
  .mobile-bar .mb-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
}

@media print {
  .site-header, .mobile-bar, .cta-band, .site-footer, .marquee { display: none !important; }
}

/* ---------- Programs table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.glance { width: 100%; border-collapse: collapse; min-width: 520px; }
.glance th, .glance td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.glance thead th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.glance tbody tr:last-child > * { border-bottom: 0; }
.glance tbody th a { font-family: var(--display); font-size: 20px; font-weight: 650; color: var(--ink); }
.glance td { font-weight: 600; color: var(--ink); }
.h-sm { font-size: 24px; margin-bottom: 16px; }
@media (prefers-color-scheme: dark) {html[data-dark="auto"] .prog-tab.is-active { background: #16326a; border-color: var(--accent); }html[data-dark="auto"] .review-lead { background: #102a58; border-color: #1c3a72; }html[data-dark="auto"] .mvv .wide { background: #102a58; border-color: #1c3a72; }
}
.page-head + .section { padding-top: clamp(40px, 5vw, 72px); }

/* =========================================================
   CMS additions: image placeholders, text logo, blog
   ========================================================= */
.img-fallback { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background: var(--tint); color: var(--muted); font-size: 32px; }
.logo-text { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); }
.f-logo .logo-text { color: var(--brand-deep); }
.member figcaption span { display: block; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); }
.empty-note { color: var(--muted); padding: 30px 0; }
.strip-title { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 32px; }
.reviews-grid.one { grid-template-columns: 1fr; }

/* labels (categories) and tags */
.label { display: inline-block; align-self: flex-start; background: var(--label, var(--brand)); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 5px 12px; border-radius: var(--r-btn); margin-bottom: 12px; }
.label:hover { color: #fff; filter: brightness(1.1); }
.page-head .label { margin-bottom: 16px; }
.label-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-btn); border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.chip span { font-size: 12px; color: var(--muted); }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--label, var(--brand)); }
.chip:first-child::before { display: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.is-active span { color: inherit; opacity: .7; }
.tag { display: inline-block; padding: 6px 12px; border-radius: var(--r-btn); background: var(--tint); color: var(--ink); font-weight: 600; font-size: 14px; margin: 0 6px 8px 0; }
.tag:hover { background: var(--accent); color: var(--on-accent); }
.tag-cloud { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }

/* post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
.post-body h3 a { color: var(--ink); }
.post-body p { color: var(--muted); font-size: 15.5px; }
.post-meta { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.post-meta.big { font-size: 15px; margin-bottom: 24px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-btn); border: 1.5px solid var(--line); font-weight: 700; color: var(--ink); }
.pager a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* single post */
.post-wrap { padding-top: clamp(32px, 4vw, 56px); }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: clamp(32px, 5vw, 72px); justify-content: space-between; align-items: start; }
.post-hero { margin: 0 0 36px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--tint); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 1.6em 0 .6em; }
.prose h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent-press); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-family: var(--display); font-size: 21px; color: var(--ink); }
.prose img { border-radius: var(--r-sm); margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-tags > span, .share > span { font-weight: 700; color: var(--ink); margin-right: 8px; margin-bottom: 8px; }
.share { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.share a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--ink); }
.share a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.post-side { position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { background: var(--brand); color: #c8d4ea; border-radius: var(--r-lg); padding: 28px; }
.side-card h2 { color: #fff; }

@media (max-width: 1100px) { .post-grid { grid-template-columns: 1fr 1fr; } .post-layout { grid-template-columns: 1fr; } .post-side { position: static; } }
@media (max-width: 767px) { .post-grid { grid-template-columns: 1fr; } .prose { font-size: 17px; } .label-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 28px; padding: 0 20px 4px; scrollbar-width: none; } .chip { flex-shrink: 0; } }
