/* Happy Home School System — site styles
   Layout concept: the ten-square logo becomes the grid — coloured tiles mark
   structure (eyebrows, values, campus badges), white space carries the premium feel.
   Deliberately single (light) theme to match the logo artwork; all colours set explicitly. */
:root {
  color-scheme: light;
  /* brand tiles, sampled from the logo */
  --plum: #A53692;
  --tangerine: #F58634;
  --azure: #0082C6;
  --lime: #A8CF45;
  --logo-yellow: #F7EC2B;
  --scarlet: #ED3237;
  --sky: #0098DA;
  /* screen-tuned building yellow for large surfaces and calls to action */
  --sun: #FFD13B;
  --sun-deep: #F2B705;
  --sun-soft: #FFF6D1;
  /* neutrals, biased toward the plum tile */
  --ink: #1C1838;
  --ink-2: #4B4766;
  --ink-3: #7A7694;
  --paper: #FFFFFF;
  --mist: #F6F4F9;
  --mist-2: #EEEBF4;
  --line: #E4E0EC;
  --ok: #1E8E5A;
  --err: #C62A2F;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.07rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 4rem);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1200px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --shadow: 0 1px 2px rgba(28, 24, 56, .06), 0 8px 24px rgba(28, 24, 56, .07);
  --shadow-lg: 0 2px 6px rgba(28, 24, 56, .08), 0 24px 48px rgba(28, 24, 56, .12);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.mist { background: var(--mist); }
.section.ink { background: var(--ink); color: #fff; }
.section.sun { background: var(--sun); color: var(--ink); }

/* ribbon of logo colours */
.ribbon { display: grid; grid-template-columns: repeat(9, 1fr); height: 5px; }
.ribbon span:nth-child(1) { background: var(--plum); }
.ribbon span:nth-child(2) { background: var(--tangerine); }
.ribbon span:nth-child(3) { background: var(--azure); }
.ribbon span:nth-child(4) { background: var(--lime); }
.ribbon span:nth-child(5) { background: var(--logo-yellow); }
.ribbon span:nth-child(6) { background: var(--scarlet); }
.ribbon span:nth-child(7) { background: var(--tangerine); }
.ribbon span:nth-child(8) { background: var(--plum); }
.ribbon span:nth-child(9) { background: var(--sky); }

/* eyebrow with a tile */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c, var(--plum)); flex: none; }
.section.ink .eyebrow { color: rgba(255,255,255,.75); }
.hand { font-family: var(--f-hand); font-weight: 600; font-size: 1.35em; color: var(--plum); line-height: 1; }

.head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--ink-2); font-size: var(--step-1); max-width: 62ch; }
.section.ink .head p { color: rgba(255,255,255,.78); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; white-space: nowrap; font-size: var(--step-0); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 18px rgba(242, 183, 5, .35); }
.btn-sun:hover { background: #FFC814; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2B2650; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-wa { background: #1FAF5A; color: #fff; }
.btn-wa:hover { background: #17964C; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--step--1); }
.btn-block { width: 100%; }
.link { color: var(--azure); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; }

/* announcement */
.announce { background: var(--ink); color: #fff; font-size: var(--step--1); }
.announce .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 40px; padding-block: 6px; text-align: center; flex-wrap: wrap; }
.announce a { color: var(--sun); font-weight: 700; }
@media (max-width: 600px) { .announce .dot { display: none; } .announce .wrap { gap: 4px 10px; } }
.announce .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(168,207,69,.25); flex: none; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: none; margin-left: auto; gap: 2px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 999px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--mist-2); }
.header-cta { display: none; }
.menu-btn { margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; margin-left: 8px; }
  .menu-btn { display: none; }
  .brand img { height: 38px; }
}

/* mobile menu */
.drawer { position: fixed; inset: 0; z-index: 80; background: var(--paper); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 20px) var(--gutter-l); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; overflow-y: auto; }
.drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.drawer-top img { height: 30px; width: auto; }
.drawer nav { display: grid; margin-top: 18px; }
.drawer nav a { display: flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.drawer nav a i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.drawer .drawer-actions { display: grid; gap: 10px; margin-top: 24px; }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sun-soft) 0%, var(--paper) 78%); }
.hero .wrap { display: grid; gap: 36px; padding-block: clamp(32px, 6vw, 80px) clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun) 62%); padding: 0 .06em; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero-copy > p { font-size: var(--step-1); color: var(--ink-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: var(--step--1); font-weight: 600; margin-top: 4px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--ok); }
.mosaic { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 10px; aspect-ratio: 6 / 5; max-width: 100%; }
.mosaic .m-main { grid-column: 1 / 5; grid-row: 1 / 5; border-radius: var(--r-lg); }
.mosaic .m-a { grid-column: 5 / 7; grid-row: 1 / 3; border-radius: var(--r); }
.mosaic .m-b { grid-column: 5 / 7; grid-row: 3 / 5; border-radius: var(--r); }
.mosaic .tile { border-radius: 8px; aspect-ratio: 1; }
.mosaic .tiles { grid-column: 1 / 7; grid-row: 5 / 6; display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; align-items: center; }
.mosaic .tiles i { aspect-ratio: 1; border-radius: 6px; display: block; animation: pop .5s cubic-bezier(.3,1.5,.6,1) both; }
.mosaic .tiles i:nth-child(1) { background: var(--plum); animation-delay: .05s; }
.mosaic .tiles i:nth-child(2) { background: var(--tangerine); animation-delay: .1s; }
.mosaic .tiles i:nth-child(3) { background: var(--azure); animation-delay: .15s; }
.mosaic .tiles i:nth-child(4) { background: var(--lime); animation-delay: .2s; }
.mosaic .tiles i:nth-child(5) { background: var(--logo-yellow); outline: 3px solid var(--ink); outline-offset: -3px; animation-delay: .25s; }
.mosaic .tiles i:nth-child(6) { background: var(--scarlet); animation-delay: .3s; }
.mosaic .tiles i:nth-child(7) { background: var(--tangerine); animation-delay: .35s; }
.mosaic .tiles i:nth-child(8) { background: var(--plum); animation-delay: .4s; }
.mosaic .tiles i:nth-child(9) { background: var(--sky); animation-delay: .45s; }
@keyframes pop { from { transform: scale(.4); } to { transform: none; } }
.since { position: absolute; left: -6px; bottom: 22%; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: grid; gap: 2px; }
.since b { font-family: var(--f-display); font-size: 1.8rem; line-height: 1; }
.since small { color: var(--ink-2); font-weight: 600; font-size: .78rem; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .since { left: -28px; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--paper); padding: 22px 20px; display: grid; gap: 4px; }
.stat b { font-family: var(--f-display); font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: var(--step--1); font-weight: 600; }
.stat:nth-child(1) b { color: var(--plum); }
.stat:nth-child(2) b { color: var(--azure); }
.stat:nth-child(3) b { color: var(--tangerine); }
.stat:nth-child(4) b { color: var(--scarlet); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* split layouts */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.rev > :first-child { order: 2; } }
.prose { display: grid; gap: 16px; color: var(--ink-2); font-size: var(--step-1); max-width: 62ch; }
.prose strong { color: var(--ink); }

/* pillars */
.pillars { display: grid; gap: 14px; margin-top: 8px; }
.pillar { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.pillar .num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 800; }
.pillar h3 { font-size: var(--step-1); margin-bottom: 4px; }
.pillar p { color: var(--ink-2); font-size: var(--step-0); }

/* image placeholders */
.ph { position: relative; margin: 0; overflow: hidden; background: var(--mist-2); isolation: isolate; border-radius: var(--r); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.empty { background: linear-gradient(135deg, var(--c1, var(--plum)) 0%, var(--c2, var(--tangerine)) 100%); }
.ph.empty::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 28px 28px; z-index: -1; }
.ph.empty::after { content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -10%; bottom: -16%; border-radius: 22%; background: rgba(255,255,255,.14); transform: rotate(12deg); z-index: -1; }
.ph .ph-art { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.ph .ph-art svg { width: clamp(36px, 22%, 72px); height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.12)); }
.ph-dev { display: none; }
body.dev-images .ph-dev { display: block; position: absolute; inset: 8px; z-index: 3; background: rgba(28,24,56,.88); color: #fff; font: 600 12px/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 10px; border-radius: 10px; overflow: auto; border: 2px dashed var(--sun); }
body.dev-images .ph-dev b { color: var(--sun); display: block; margin-bottom: 4px; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-1 { aspect-ratio: 1; }

/* programme cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .ph { border-radius: 0; }
.card-body { padding: 20px; display: grid; gap: 8px; align-content: start; flex: 1; }
.card-body h3 { font-size: var(--step-2); }
.card-body p { color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.chip.c-sun { background: var(--sun); color: var(--ink); }
.chip.c-plum { background: #F5E6F2; color: #7D2370; }
.chip.c-azure { background: #E0F0FA; color: #005A8C; }
.chip.c-lime { background: #EEF6DC; color: #4A6B12; }
.chip.c-scarlet { background: #FDE5E5; color: #A51E22; }

/* values tiles */
.values { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.value { position: relative; border-radius: var(--r); padding: 22px 20px 20px; color: #fff; min-height: 190px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.value .n { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: .9; opacity: .32; }
.value h3 { font-size: 1.12rem; }
.value p { font-size: .92rem; opacity: .92; line-height: 1.5; }
.value.dark-text { color: var(--ink); }
.value.dark-text p { opacity: .85; }

/* attributes list */
.attrs { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); }
.attr { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); align-items: center; }
.attr i { width: 28px; height: 28px; border-radius: 7px; }
.attr b { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.attr span { color: var(--ink-3); font-size: .9rem; }

/* campus */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; font-size: .92rem; color: var(--ink-2); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.campus { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.campus .ph { border-radius: 0; }
.campus-body { padding: 20px; display: grid; gap: 12px; flex: 1; align-content: start; }
.campus-body h3 { font-size: var(--step-2); }
.campus-body .area { color: var(--ink-3); font-weight: 600; font-size: .9rem; margin-top: -6px; }
.kv { display: grid; gap: 8px; font-size: .95rem; }
.kv div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.kv svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ink-3); }
.kv a { text-decoration: none; font-weight: 700; color: var(--ink); }
.campus-fee { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 12px; gap: 12px; }
.campus-fee small { color: var(--ink-3); font-weight: 600; }
.campus-fee b { font-family: var(--f-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.campus-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 20px 20px; }

/* fee planner */
.fee-shell { display: grid; gap: 20px; }
@media (min-width: 960px) { .fee-shell { grid-template-columns: 380px 1fr; align-items: start; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); min-width: 0; }
@media (min-width: 960px) { .panel.sticky { position: sticky; top: calc(var(--header-h) + 20px); } }
.fee-big { display: grid; gap: 14px; }
.fee-figure { border-radius: var(--r); padding: 18px; display: grid; gap: 4px; }
.fee-figure small { font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.fee-figure b { font-family: var(--f-display); font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fee-figure.f1 { background: var(--sun-soft); }
.fee-figure.f2 { background: #E0F0FA; }
.fee-figure.f3 { background: var(--ink); color: #fff; }
.fee-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fee-figs .f3 { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-weight: 700; font-size: .9rem; }
.field .req { color: var(--scarlet); }
.field .help { color: var(--ink-3); font-size: .82rem; }
.input, select.input, textarea.input { width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease; }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(0,130,198,.15); }
.input[aria-invalid="true"] { border-color: var(--err); }
.stepper { display: grid; grid-template-columns: 50px 1fr 50px; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { border: 0; background: var(--mist); font-size: 1.4rem; font-weight: 700; cursor: pointer; min-height: 48px; }
.stepper output { display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; min-width: 520px; }
table.t th, table.t td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th { background: var(--mist); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
table.t td.num, table.t th.num { text-align: right; }
table.t tr.muted td { color: var(--ink-3); }
table.t tr.hl td { background: var(--sun-soft); }
table.t tfoot td { font-weight: 800; background: var(--mist); border-bottom: 0; }
table.t tbody tr:hover td { background: #FBFAFD; }
.notes { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.notes li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.notes li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; margin-top: 8px; background: var(--c, var(--tangerine)); }

/* steps */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); counter-reset: s; }
.step { position: relative; padding: 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.step .sn { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: #fff; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-2); font-size: .96rem; }

/* tabs */
.tabs { display: flex; gap: 6px; padding: 6px; background: var(--mist); border-radius: 999px; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; border: 0; background: transparent; padding: 10px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-2); white-space: nowrap; font-size: .95rem; }
.tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }

/* forms */
.form { display: grid; gap: 16px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form legend { font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); padding: 0; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.form legend::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--azure)); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { border-radius: var(--r); padding: 16px 18px; display: grid; gap: 10px; }
.form-msg.ok { background: #E6F5EC; color: #145C3B; }
.form-msg.err { background: #FDECEC; color: #8E1D21; }
.form-msg.info { background: var(--sun-soft); color: var(--ink); }
.form-msg b { font-family: var(--f-display); font-size: 1.1rem; }
.err-text { color: var(--err); font-size: .82rem; font-weight: 600; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(28,24,56,.25); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* page header */
.page-head { background: var(--mist); position: relative; overflow: hidden; }
.page-head .wrap { padding-block: clamp(36px, 6vw, 72px); display: grid; gap: 14px; position: relative; z-index: 1; }
.page-head h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; }
.page-head p { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; }
.page-head .deco { position: absolute; right: max(16px, 4vw); top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(3, 38px); gap: 8px; opacity: .9; }
.page-head .deco i { width: 38px; height: 38px; border-radius: 8px; }
@media (max-width: 760px) { .page-head .deco { display: none; } }
.crumbs { font-size: var(--step--1); color: var(--ink-3); font-weight: 600; }
.crumbs a { text-decoration: none; }

/* timeline */
.timeline { display: grid; gap: 0; position: relative; }
.tl { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding-bottom: 26px; position: relative; }
.tl::before { content: ""; position: absolute; left: 107px; top: 10px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .yr { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; text-align: right; padding-top: 2px; }
.tl .body { padding-left: 24px; position: relative; display: grid; gap: 4px; }
.tl .body::before { content: ""; position: absolute; left: -3px; top: 7px; width: 16px; height: 16px; border-radius: 5px; background: var(--c, var(--plum)); }
.tl h3 { font-size: var(--step-1); }
.tl p { color: var(--ink-2); }

/* founders */
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.person { display: grid; gap: 12px; }
.person b { font-family: var(--f-display); font-size: var(--step-1); }
.person span { color: var(--ink-3); font-weight: 600; font-size: .9rem; }

/* mission / vision */
.mv { display: grid; gap: 16px; }
@media (min-width: 800px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv article { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 12px; align-content: start; }
.mv article h3 { font-size: var(--step-2); }
.mv .m { background: var(--ink); color: #fff; }
.mv .m p { color: rgba(255,255,255,.85); }
.mv .v { background: var(--sun); }
.mv p { font-size: var(--step-1); line-height: 1.55; }

/* publications */
.pubs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.pub { border-radius: var(--r); padding: 18px; display: grid; gap: 6px; border: 1px solid var(--line); background: var(--paper); position: relative; overflow: hidden; }
.pub::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--c, var(--azure)); }
.pub { padding-left: 26px; }
.pub b { font-family: var(--f-display); font-size: 1.15rem; }
.pub span { color: var(--ink-3); font-size: .88rem; font-weight: 600; }

/* book list */
.booklist { display: grid; gap: 16px; }
@media (min-width: 860px) { .booklist { grid-template-columns: 240px 1fr; } }
.class-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
@media (min-width: 860px) { .class-list { flex-direction: column; overflow: visible; } }
.class-list button { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 10px 14px; text-align: left; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
.class-list button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.books { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.books li { padding: 12px 14px; border-radius: 10px; background: var(--mist); display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.books li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--azure); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: var(--step-0); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--ink-3); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* modules (smart school) */
.mods { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.mod { border-radius: var(--r-lg); padding: 20px; display: grid; gap: 10px; align-content: start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.mod .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.mod .ic svg { width: 22px; height: 22px; color: #fff; }
.mod h3 { font-size: var(--step-1); }
.mod p { color: rgba(255,255,255,.75); font-size: .94rem; }
.mod .status { justify-self: start; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255,209,59,.18); color: var(--sun); }
.mod .status.live { background: rgba(168,207,69,.2); color: var(--lime); }
.section:not(.ink) .mod { background: var(--paper); border-color: var(--line); color: var(--ink); }
.section:not(.ink) .mod p { color: var(--ink-2); }
.section:not(.ink) .mod .status { background: var(--sun-soft); color: #8A6400; }

/* news */
.news { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.news .card-body .date { color: var(--ink-3); font-size: .85rem; font-weight: 600; }

/* gallery */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; } }
.gallery figure { margin: 0; position: relative; }
.gallery .ph { aspect-ratio: 1; height: 100%; }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 700; font-size: .8rem; padding: 5px 10px; border-radius: 999px; z-index: 2; }

/* CTA band */
.cta-band { border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: clamp(28px, 5vw, 56px); display: grid; gap: 22px; position: relative; overflow: hidden; }
.cta-band h2 { font-size: var(--step-3); max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,.8); font-size: var(--step-1); max-width: 52ch; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .squares { position: absolute; right: -20px; top: -20px; display: grid; grid-template-columns: repeat(3, 56px); gap: 10px; opacity: .9; transform: rotate(8deg); }
.cta-band .squares i { width: 56px; height: 56px; border-radius: 12px; }
@media (max-width: 700px) { .cta-band .squares { opacity: .25; } }

/* contact */
.contact-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.ccard { border-radius: var(--r-lg); padding: 20px; display: grid; gap: 6px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; align-content: start; }
.ccard .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.ccard .ic svg { width: 22px; height: 22px; }
.ccard small { color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.ccard b { font-family: var(--f-display); font-size: 1.15rem; overflow-wrap: anywhere; }
.ccard span { color: var(--ink-2); font-size: .92rem; }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); }
.site-footer .wrap { padding-block: 48px 28px; display: grid; gap: 32px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer img.flogo { height: 36px; width: auto; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; font-family: var(--f-body); font-weight: 800; letter-spacing: .02em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--sun); }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: .85rem; }

/* floating WhatsApp + bottom bar */
.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.45); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-tip { position: absolute; right: 70px; white-space: nowrap; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: .82rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; }
.wa-float:hover .wa-tip { opacity: 1; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px var(--gutter-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.bottom-bar a, .bottom-bar button { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: .72rem; font-weight: 700; color: var(--ink-2); background: none; border: 0; padding: 6px 2px; cursor: pointer; border-radius: 12px; }
.bottom-bar svg { width: 22px; height: 22px; }
.bottom-bar .primary span.pill { background: var(--sun); color: var(--ink); width: 52px; height: 30px; border-radius: 999px; display: grid; place-items: center; }
.bottom-bar .primary { color: var(--ink); }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
.assist-launch { display: none; }
@media (min-width: 1080px) {
  .bottom-bar { display: none; }
  body { padding-bottom: 0; }
  .wa-float { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: calc(24px + env(safe-area-inset-right, 0px)); }
  .assist-launch { display: inline-flex; position: fixed; left: calc(24px + env(safe-area-inset-left, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 70; box-shadow: var(--shadow-lg); }
}

/* assistant */
.assistant { position: fixed; z-index: 90; inset: auto 0 0 0; max-height: min(78vh, 680px); background: var(--paper); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(28,24,56,.25); display: flex; flex-direction: column; transform: translateY(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s; padding-bottom: env(safe-area-inset-bottom, 0px); }
.assistant.open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 700px) { .assistant { inset: auto auto calc(24px + env(safe-area-inset-bottom, 0px)) calc(24px + env(safe-area-inset-left, 0px)); width: 400px; border-radius: 22px; transform: translateY(20px) scale(.98); opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; } .assistant.open { opacity: 1; pointer-events: auto; transform: none; transition: opacity .22s ease, transform .22s ease; } }
.as-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.as-head .av { width: 40px; height: 40px; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px; background: var(--ink); }
.as-head .av i { border-radius: 3px; }
.as-head b { font-family: var(--f-display); display: block; }
.as-head small { color: var(--ink-3); font-weight: 600; }
.as-head button { margin-left: auto; border: 0; background: var(--mist); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.2rem; }
.as-log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; min-height: 200px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.5; }
.msg.bot { background: var(--mist); border-bottom-left-radius: 4px; }
.msg.me { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.msg a { color: var(--azure); font-weight: 700; }
.msg.me a { color: var(--sun); }
.as-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.as-chips button { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 12px; font-size: .84rem; font-weight: 700; cursor: pointer; }
.as-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.as-form input { flex: 1; min-width: 0; }
.as-form button { flex: none; }

/* misc */
.draft-bar { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; transform: translateX(-50%); z-index: 95; background: var(--scarlet); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); }
.draft-bar button { border: 0; background: #fff; color: var(--scarlet); border-radius: 999px; padding: 4px 10px; font-weight: 800; cursor: pointer; }
.view { animation: viewin .35s ease both; }
@keyframes viewin { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-2 > * { min-width: 0; }
.mt-s { margin-top: 12px; } .mt { margin-top: 24px; } .mt-l { margin-top: 40px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: end; }
.empty-note { border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 28px; text-align: center; color: var(--ink-2); display: grid; gap: 10px; justify-items: center; }

/* ===== v2 additions ===== */
.rotator-line { font-size: var(--step-1); color: var(--ink); font-weight: 600; max-width: 54ch; }
.rotator { display: inline-block; }
.rot-word { display: inline-block; font-family: var(--f-display); font-weight: 800; color: var(--ink); background: linear-gradient(transparent 60%, color-mix(in srgb, var(--c, var(--sun)) 45%, transparent) 60%); padding: 0 .12em; transition: opacity .25s ease, transform .25s ease; }
.rot-word.out { opacity: 0; transform: translateY(6px); }
.hero-note { font-size: 1.7rem; margin-top: -4px; }
.deco-img { position: absolute; right: max(16px, 4vw); top: 50%; transform: translateY(-50%) rotate(6deg); width: 150px; height: 150px; opacity: .95; }
@media (max-width: 760px) { .deco-img { display: none; } }
.av-img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.foot-mark { display: inline-flex; align-items: center; gap: 10px; }
.foot-mark img { border-radius: 50%; }
.founders-band { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .founders-band { grid-template-columns: 1fr 1fr; } }
.founder-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.founder { margin: 0; display: grid; gap: 10px; }
.founder .ph { border-radius: var(--r-lg); }
.founder figcaption { display: grid; gap: 2px; }
.founder figcaption b { font-family: var(--f-display); font-size: var(--step-0); }
.founder figcaption span { color: var(--ink-3); font-size: .88rem; font-weight: 600; }
.article-wrap { max-width: 820px; display: grid; gap: 28px; }
.post-cover { border-radius: var(--r-lg); }
.post-meta { color: var(--ink-3) !important; font-weight: 600; font-size: var(--step-0) !important; }
.article { font-size: 1.08rem; line-height: 1.75; color: var(--ink-2); display: grid; gap: 18px; min-width: 0; overflow-wrap: anywhere; }
.article h2 { font-size: var(--step-2); color: var(--ink); margin-top: 12px; }
.article h3 { font-size: var(--step-1); color: var(--ink); margin-top: 8px; }
.article p, .article ul, .article ol, .article blockquote, .article figure { margin: 0; }
.article ul, .article ol { padding-left: 1.4em; display: grid; gap: 8px; }
.article li::marker { color: var(--tangerine); font-weight: 800; }
.article a { color: var(--azure); font-weight: 700; }
.article strong { color: var(--ink); }
.article blockquote { border-left: 6px solid var(--sun); background: var(--sun-soft); padding: 16px 20px; border-radius: 0 var(--r) var(--r) 0; font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: var(--step-1); }
.article img { border-radius: var(--r); height: auto; }
.article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.article td, .article th { border: 1px solid var(--line); padding: 8px 12px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px dashed var(--line); padding-top: 18px; }
.share b { margin-right: 6px; }
.ssr { padding-block: 32px; }
.ssr h1 { font-size: var(--step-4); margin-bottom: 12px; }
.ssr h2 { font-size: var(--step-2); margin: 24px 0 8px; }
.ssr p, .ssr li { color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); }

/* ===== v2.1 additions ===== */
.vword { display: inline-block; align-self: flex-start; font-family: var(--f-display); font-weight: 800; font-size: .82rem; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.22); }
.value.dark-text .vword { background: rgba(28,24,56,.1); }
.values-intro { display: grid; gap: 20px; align-items: center; margin-bottom: 24px; }
@media (min-width: 800px) { .values-intro { grid-template-columns: 340px 1fr; } }
.values-intro .ph { border-radius: var(--r-lg); }
.values-line { font-size: var(--step-1); color: var(--ink-2); }
.philo-line { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); line-height: 1.15; color: var(--ink); margin: -12px 0 18px; max-width: 24ch; text-wrap: balance; }
.mv .mv-main { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); line-height: 1.3; }
.mv .mv-short { font-family: var(--f-hand); font-size: 1.6rem; line-height: 1.2; opacity: .95; }
.mv .m .mv-short { color: var(--sun); }
.mv .v .mv-short { color: var(--plum); }
.promise { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.pr-tile { display: flex; align-items: center; min-height: 64px; padding: 12px 18px; border-radius: var(--r); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: var(--step-1); }
.pr-tile.dark-text { color: var(--ink); }
.pledge { font-size: 1.9rem; line-height: 1.3; margin-top: 24px; max-width: 46ch; }
.teacher-pics { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: end; }
.teacher-pics .ph { border-radius: var(--r-lg); }
@media (min-width: 800px) { .gallery figure:nth-child(8):last-child { grid-column: span 2; } }

/* ===== v2.2 additions (same tokens, same design language) ===== */
.deco-img { transform: translateY(-50%); filter: drop-shadow(0 12px 24px rgba(28,24,56,.18)); border-radius: 50%; }
/* header search */
.search-btn { margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.search-btn svg { width: 20px; height: 20px; }
.search-btn:hover { background: var(--mist); }
.search-btn + .header-cta + .menu-btn, .search-btn ~ .menu-btn { margin-left: 8px; }
@media (min-width: 1080px) { .search-btn { margin-left: 6px; width: 42px; height: 42px; border-radius: 999px; } }
@media (min-width: 1080px) and (max-width: 1300px) { .nav a { padding: 10px 8px; font-size: .9rem; } }
.search { position: fixed; inset: 0; z-index: 90; background: rgba(28,24,56,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; padding: calc(env(safe-area-inset-top, 0px) + 10vh) var(--gutter-r) 24px; }
.search.open { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.search-box { max-width: 680px; margin: 0 auto; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-form svg { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.search-form input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.1rem; padding: 8px 0; background: transparent; color: var(--ink); min-width: 0; }
.search-close { border: 1px solid var(--line); background: var(--mist); border-radius: 8px; font: 600 .8rem var(--f-body); padding: 6px 10px; cursor: pointer; color: var(--ink-2); }
.search-results { max-height: min(60vh, 520px); overflow: auto; padding: 8px; }
.search-results a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--mist); outline: none; }
.search-results b { font-weight: 700; }
.search-results small { color: var(--ink-3); font-size: .85rem; }
.s-kind { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); }
.s-hint, .s-empty { padding: 14px; color: var(--ink-3); }
.s-hint button { border: 1px solid var(--line); background: var(--mist); border-radius: 999px; padding: 6px 12px; margin: 4px 2px; font: 600 .85rem var(--f-body); cursor: pointer; color: var(--ink-2); }
/* home quick links */
.quick-wrap { padding-top: clamp(20px, 3vw, 36px); }
.quick-title { font-size: var(--step-2); margin-bottom: 16px; }
.quick { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.quick-card { position: relative; display: grid; grid-template-columns: 48px 1fr 22px; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.quick-card .qi { width: 48px; height: 48px; border-radius: 14px; background: var(--c); color: #fff; display: grid; place-items: center; }
.quick-card .qi svg { width: 22px; height: 22px; }
.quick-card .qt { display: grid; gap: 3px; }
.quick-card b { font-family: var(--f-display); font-size: 1.12rem; }
.quick-card small { color: var(--ink-2); font-size: .88rem; line-height: 1.4; }
.quick-card .qa svg { width: 20px; height: 20px; color: var(--ink-3); }
.quick-card.glow { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.quick-card.glow::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); animation: glow 2.8s ease-out infinite; animation-delay: var(--d, 0s); }
.quick-card.glow .qi { animation: qbeat 2.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 50%, transparent); } 70% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--c) 0%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes qbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } 24% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .quick-card.glow::after, .quick-card.glow .qi { animation: none; } }
/* announcements */
.notices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.notice .ph.poster { aspect-ratio: 4 / 5; }
.notice .card-body .date { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.notice-wrap { display: grid; gap: clamp(22px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .notice-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .notice-poster { position: sticky; top: calc(var(--header-h) + 20px); } }
.notice-poster .ph { aspect-ratio: 4 / 5; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.lead-p { font-size: var(--step-1); color: var(--ink); font-weight: 600; }
/* founders */
.founder-cards { display: grid; gap: 22px; }
@media (min-width: 900px) { .founder-cards { grid-template-columns: 1fr 1fr; } }
.founder-card { display: grid; gap: 18px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 24px); }
@media (min-width: 560px) { .founder-card { grid-template-columns: 170px 1fr; } }
.founder-card .ph { border-radius: var(--r-lg); align-self: start; }
.fc-body { display: grid; gap: 10px; align-content: start; }
.fc-role { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.fc-body h3 { font-size: var(--step-2); }
.fc-body p { color: var(--ink-2); }
/* colony suggestion + voice */
.near { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sun-soft); color: var(--ink); font-size: .9rem; font-weight: 600; }
.near svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.near-pick { border: 1px solid var(--sun-deep); background: var(--paper); border-radius: 999px; padding: 3px 10px; margin: 2px; font: 700 .85rem var(--f-body); cursor: pointer; color: var(--ink); }
.near-pick.on { background: var(--sun); }
.voice { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border: 1px dashed var(--line); border-radius: 14px; background: var(--mist); }
.voice .btn svg { width: 18px; height: 18px; }
.voice .btn.rec { background: var(--scarlet); color: #fff; border-color: var(--scarlet); }
.voice .btn.rec svg { animation: qbeat 1.2s infinite; }
.vtime { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.voice audio { height: 40px; max-width: 100%; }
.voice-field .lbl { font-weight: 700; font-size: .92rem; }
/* footer visitor counter */
.visits { display: inline-flex; align-items: center; gap: 6px; opacity: .85; }
.visits svg { width: 16px; height: 16px; }
.notices.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.notices.compact .notice { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; }
.notices.compact .ph.poster { aspect-ratio: auto; height: 100%; min-height: 220px; }
.form-grid > .field { align-self: start; }
.voice [hidden], .voice-field [hidden] { display: none !important; }
.search-form input::-webkit-search-cancel-button { display: none; }

/* ===== v2.3: desktop "More" menu, language, sharing, RTL ===== */
.nav-more { position: relative; }
.nav-more-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; font: 600 .95rem var(--f-body); color: var(--ink-2); padding: 10px 12px; border-radius: 999px; cursor: pointer; }
.nav-more-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-more-btn:hover, .nav-more.open .nav-more-btn { background: var(--mist); color: var(--ink); }
.nav-more.open .nav-more-btn svg { transform: rotate(180deg); }
.nav-more-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 230px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 60; }
.nav-more.open .nav-more-menu { display: grid; }
.nav-more-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; }
.nav-more-menu a i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
@media (min-width: 1080px) and (max-width: 1240px) { .nav-more-btn { padding: 10px 8px; font-size: .9rem; } }
.lang-btn { margin-inline-start: auto; height: 46px; min-width: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--sun-soft); color: var(--ink); font: 700 1rem "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", var(--f-body); cursor: pointer; flex: none; line-height: 1; }
html.ur .lang-btn { font-family: var(--f-body); font-size: .9rem; letter-spacing: .04em; }
.lang-btn + .search-btn { margin-left: 8px; margin-inline-start: 8px; }
@media (min-width: 1080px) { .lang-btn { height: 42px; border-radius: 999px; margin-inline-start: 8px; } }
.form-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.share-btn svg { width: 16px; height: 16px; }
.page-head .share-btn { margin-top: 4px; background: rgba(255,255,255,.7); }
.share-sheet { position: fixed; inset: 0; z-index: 96; background: rgba(28,24,56,.45); display: none; align-items: flex-end; justify-content: center; padding: 16px; }
.share-sheet.open { display: flex; animation: fade .15s ease; }
@media (min-width: 640px) { .share-sheet { align-items: center; } }
.ss-box { width: 100%; max-width: 460px; background: var(--paper); border-radius: 22px; padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow-lg); margin-bottom: env(safe-area-inset-bottom, 0px); }
.ss-head { display: flex; justify-content: space-between; align-items: center; } .ss-head b { font-family: var(--f-display); font-size: 1.25rem; }
.ss-head button { border: 0; background: var(--mist); width: 38px; height: 38px; border-radius: 10px; font-size: 1.3rem; cursor: pointer; }
.ss-title { font-weight: 700; } .ss-url { background: var(--mist); padding: 10px 12px; border-radius: 12px; font-size: .85rem; overflow-wrap: anywhere; direction: ltr; text-align: left; }
.ss-acts { display: grid; gap: 8px; } .ss-acts .btn { width: 100%; justify-content: center; } .ss-acts svg { width: 18px; height: 18px; }
.ss-note { color: var(--ink-3); }
.lang-gate { position: fixed; inset: 0; z-index: 99; background: rgba(28,24,56,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.lg-box { width: 100%; max-width: 430px; background: var(--paper); border-radius: 26px; overflow: hidden; text-align: center; display: grid; gap: 12px; justify-items: center; padding: 0 24px 24px; box-shadow: var(--shadow-lg); }
.lg-box .ribbon { width: calc(100% + 48px); margin: 0 -24px 10px; }
.lg-box img { border-radius: 50%; box-shadow: 0 10px 24px rgba(28,24,56,.16); }
.lg-box h2 { font-size: 1.6rem; } .lg-ur { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; font-size: 1.5rem; line-height: 2; margin: -6px 0 0; }
.lg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 6px; } .lg-btns .btn { width: 100%; justify-content: center; min-height: 54px; font-size: 1.1rem; }
.lg-urbtn { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif !important; font-size: 1.3rem !important; line-height: 1; }
.lang-note { background: var(--sun-soft); padding: 10px 14px; border-radius: 12px; font-weight: 600; }

/* ---------- Urdu (right to left) ---------- */
html.ur { --f-display: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Bricolage Grotesque", serif; --f-body: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Figtree", serif; }
html.ur body { font-size: 1.06rem; line-height: 2.05; }
html.ur * { letter-spacing: 0 !important; text-transform: none !important; }
html.ur h1, html.ur h2, html.ur h3, html.ur h4 { line-height: 1.75; font-weight: 700; }
html.ur .hero h1, html.ur .page-head h1 { line-height: 1.55; font-weight: 700; }
html.ur .eyebrow { font-size: .95rem; }
html.ur .btn { line-height: 1.6; }
html.ur .input, html.ur input, html.ur select, html.ur textarea { font-family: var(--f-body); }
html.ur input[type="tel"], html.ur input[type="email"], html.ur input[type="number"], html.ur .ss-url, html.ur code { direction: ltr; text-align: left; font-family: "Figtree", sans-serif; }
html.ur .i-arrow { transform: scaleX(-1); }
html.ur .since { left: auto; right: -6px; }
@media (min-width: 900px) { html.ur .since { right: -28px; left: auto; } }
html.ur .deco-img, html.ur .page-head .deco { right: auto; left: max(16px, 4vw); }
html.ur .tl::before { left: auto; right: 107px; }
html.ur .tl .body { padding-left: 0; padding-right: 24px; } html.ur .tl .body::before { left: auto; right: -3px; }
html.ur .pub::before { left: auto; right: 0; } html.ur .pub { padding-left: 0; padding-right: 26px; }
html.ur .gallery figcaption { left: auto; right: 10px; }
html.ur .cta-band .squares { right: auto; left: -20px; }
html.ur .wa-tip { right: auto; left: 70px; }
html.ur table.t th, html.ur table.t td { text-align: right; } html.ur table.t .num { text-align: left; }
html.ur .class-list button { text-align: right; }
html.ur .article ul, html.ur .article ol { padding-left: 0; padding-right: 1.4em; }
html.ur .article blockquote { border-left: 0; border-right: 6px solid var(--sun); border-radius: var(--r) 0 0 var(--r); }
html.ur .share b { margin-right: 0; margin-left: 6px; }
html.ur .as-head button { margin-left: 0; margin-right: auto; }
html.ur .nav { margin-left: 0; margin-right: auto; }
html.ur .menu-btn, html.ur .search-btn { margin-left: 0; }
html.ur .lang-btn + .search-btn { margin-right: 8px; }
html.ur .search-btn ~ .menu-btn { margin-right: 8px; }
html.ur .header-cta { margin-left: 0; margin-right: 8px; }
html.ur .vtime, html.ur .fee-figure b, html.ur .stat b, html.ur .campus-fee b { font-family: "Figtree", sans-serif; }
html.ur .rot-word, html.ur .rotator { font-family: var(--f-display); }
html.ur .hand { font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif; }
/* header fit: full menu from 1200px; compact spacing up to 1440px */
@media (min-width: 1080px) and (max-width: 1199px) { .nav { display: none; } .menu-btn { display: grid; margin-left: 8px; } html.ur .menu-btn { margin-left: 0; margin-right: 8px; } .lang-btn { margin-inline-start: auto; } }
@media (min-width: 1200px) and (max-width: 1440px) { .site-header .wrap { gap: 10px; } .nav a, .nav-more-btn { padding: 9px 8px; font-size: .9rem; } .brand img { height: 32px; } .header-cta { padding-inline: 14px; } }
html.ur .since b, html.ur .stat b { direction: ltr; unicode-bidi: isolate; }
html.ur [lang="en"], html.ur [lang="en"] * { font-family: "Figtree", sans-serif; line-height: 1.7; }
.hp { left: 0 !important; top: 0; clip-path: inset(50%); overflow: hidden; pointer-events: none; }
html.ur .skip { left: auto; right: 12px; }
.near[hidden] { display: none; }
