/* ==========================================================================
   Baptist Higher Secondary School — public site
   Hand-written, no framework. The portal loads Tailwind from a CDN because it is
   an application; this is a brochure that parents open on mobile data, so every
   kilobyte and every blocking request is worth avoiding.
   The palette and typefaces match the portal deliberately: one institution.
   ========================================================================== */

:root {
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-900: #312e81;
  --gold-400:  #fbbf24;

  --ink:      #1e293b;
  --ink-soft: #475569;
  --ink-faint:#64748b;
  --line:     #e2e8f0;
  --paper:    #ffffff;
  --ground:   #f8fafc;

  --wrap: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* The header is sticky, so anything the browser scrolls to the top of the
     viewport arrives UNDERNEATH it — the skip link's target included, which would
     land a keyboard user on a heading they cannot see. This is the header's
     height plus the room a jump should come to rest in. */
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--brand-900);
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: 2em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }
a { color: var(--brand-700); }
a:hover { color: var(--brand-500); }

img { max-width: 100%; height: auto; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px;
  background: var(--brand-700); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }

/* ---------------------------------------------------------------- header */

.site-header {
  background: var(--brand-700);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; }
/* The crest sits in a white DISC with a gold ring — a round mark reads as a seal,
   which is what a school crest is, and the white ground lifts it off the indigo
   bar. The crest is portrait, so `contain` letterboxes it inside the circle
   rather than stretching it; the padding is what stops it touching the ring. */
.brand img {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  border: 2px solid var(--gold-400);
  object-fit: contain;
  flex: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
/* Set in the display serif at the weight of a masthead. It is the only wordmark
   on the page, so it can afford the size — and at four letters it costs almost
   no width, which is what leaves room for seven nav items. */
.brand strong {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.9rem; font-weight: 400; letter-spacing: .06em; line-height: 1;
}
@media (max-width: 420px) {
  .brand img { width: 44px; height: 44px; padding: 4px; }
  .brand strong { font-size: 1.6rem; }
}

.site-nav { display: flex; gap: .3rem; }
.site-nav a {
  color: #fff; text-decoration: none; font-size: .93rem; font-weight: 500;
  padding: .45rem .7rem; border-radius: 8px;
}
.site-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.2); }

/* --- a menu that holds pages (About: School, Faculty) ------------------------
   Built on <details>, so it answers a click, a tap and the keyboard without any
   JavaScript, and the browser keeps aria-expanded honest. */
.nav-group { position: relative; }
.nav-group > summary {
  list-style: none; cursor: pointer; user-select: none;
  color: #fff; font-size: .93rem; font-weight: 500;
  padding: .45rem .7rem; border-radius: 8px;
  display: flex; align-items: center; gap: .35rem;
}
.nav-group > summary::-webkit-details-marker { display: none; }
/* The caret is drawn here rather than typed into the markup, so the label stays
   a plain word for a screen reader to announce. */
.nav-group > summary::after {
  content: ''; width: .38em; height: .38em; margin-top: -.2em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease;
}
.nav-group[open] > summary::after { transform: rotate(-135deg); margin-top: .15em; }
.nav-group > summary:hover { background: rgba(255,255,255,.14); }
.nav-menu { display: flex; flex-direction: column; }
.nav-menu a { white-space: nowrap; }

/* The menu button is a styled <label> for a hidden checkbox — no JavaScript,
   so navigation works even if everything else fails to load. */
.nav-button { display: none; cursor: pointer; padding: .5rem; }
.nav-button span {
  display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px;
  margin: 5px 0;
}

/* Above the mobile breakpoint the group's items hang below it as a panel. */
@media (min-width: 851px) {
  .nav-menu {
    position: absolute; top: calc(100% + .35rem); left: 0; z-index: 60;
    min-width: 100%; padding: .35rem;
    background: var(--brand-700); border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,.22);
  }
  /* <details> alone needs a click to open and another to close. A pointer user
     expects a menu to fall open under the cursor, so it does — guarded by
     `hover: hover` so a touchscreen, where hover is a lie, keeps the tap. */
  .nav-group:not([open]) .nav-menu { display: none; }
  @media (hover: hover) {
    .nav-group:hover .nav-menu { display: flex; }
  }
}

/* Measured, not guessed, and re-measured whenever the menu changes: 143px of
   brand + 16px gap + 591px of links + the 40px .wrap takes = 790px before the
   last item is clipped, and it IS clipped rather than wrapped, because the nav is
   a single flex line. 850 leaves headroom for the fallback face, which is wider
   than DM Sans on the occasions the font does not arrive. */
@media (max-width: 850px) {
  .nav-button { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--brand-700); padding: .5rem 1.25rem 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,.18);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: .7rem .5rem; border-radius: 0; }
  .header-inner { position: relative; }

  /* In the drawer there is nowhere to hang a panel, so the group expands in
     place — the same <details>, behaving the way one reads on a phone. */
  .nav-group > summary { padding: .7rem .5rem; border-radius: 0; }
  .nav-menu { padding-left: .9rem; border-left: 2px solid rgba(255,255,255,.22); margin-left: .5rem; }
  .nav-menu a { font-size: .9rem; }
}

/* ---------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900) 70%);
  color: #fff; border-radius: var(--radius);
  padding: clamp(1.8rem, 5vw, 3.2rem);
  /* No top margin: `main` now opens the page for every page alike. */
  margin: 0 0 2.5rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,.28), transparent 70%);
}
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero p { color: var(--brand-100); font-size: 1.08rem; max-width: 52ch; margin-bottom: 0; }
.hero .actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .7rem; }

.btn {
  display: inline-block; padding: .7rem 1.3rem; border-radius: 10px;
  font-weight: 700; text-decoration: none; font-size: .95rem;
}
.btn-primary { background: var(--gold-400); color: #422006; }
.btn-primary:hover { background: #fcd34d; color: #422006; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }

/* Every page opens here. Without the top padding an <h1> sits flush against the
   sticky bar — the home page only escaped it because the hero carried a margin of
   its own, which is why this belongs on `main` rather than being repeated.
   The bottom is the ONLY gap before the footer: .site-footer deliberately has no
   top margin, so this one value controls the whole space and cannot double up. */
main { padding-top: clamp(1.75rem, 3.5vw, 2.75rem); padding-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------------------------------------------------------------- cards */

.cards {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin: 1.5rem 0 2rem;
}
.card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(49,46,129,.10);
  border-color: var(--brand-200);
}
.card-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
  display: flex; align-items: center; justify-content: center;
}
/* The tint above shows only while the picture loads: a post without one of its
   own now falls back to a photograph from assets/defaults/, so there is no such
   thing as a card with no image. */
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* "Show the whole picture" — for a poster or notice where a centre crop would
   cut the text in half. Set per post in the admin panel. */
.card-thumb img.whole { object-fit: contain; background: #fff; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
             color: var(--brand-600); font-weight: 700; margin-bottom: .35rem; }
.card h3 { margin-bottom: .35rem; font-size: 1.15rem; }
.card-summary { color: var(--ink-soft); font-size: .93rem; margin: 0; }

/* ------------------------------------------------- home: news + notice board */

/* Two thirds news, one third notices. The board is a column of lines rather than
   cards, which is what lets five notices sit level with two cards. */
.home-latest {
  display: grid; gap: 0 2.5rem;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  margin-top: 2.6rem;
}
.home-latest > * { min-width: 0; }
/* The row itself carries the space above, so both columns start on the same
   line — the news heading and the top of the board. */
.home-latest h2 { margin-top: 0; }
.home-news .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* --- the board -------------------------------------------------------------
   A real board rather than a list in the margin: the indigo header and its gold
   rule are the hero and the crest's ring, so it belongs to the page instead of
   being decorated for its own sake. `overflow: hidden` is what lets the header
   fill the card's rounded corners. */
.notice-board {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(49, 46, 129, .07);
}
.notice-board h2 {
  margin: 0; padding: .8rem 1.15rem;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900) 75%);
  border-bottom: 3px solid var(--gold-400);
  color: #fff; font-size: 1.4rem;
}

.notice-list { list-style: none; margin: 0; padding: 0 1.15rem; }
.notice-list li + li { border-top: 1px solid var(--line); }
.notice-list a {
  display: block; padding: .75rem 0; text-decoration: none; color: var(--ink);
}
.notice-list a:hover { color: var(--brand-700); }
.notice-list a:hover span { text-decoration: underline; }
/* The date leads, small and in the brand colour, because a notice is scanned for
   "is this new" before it is read for what it says. */
.notice-list time {
  display: block; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--brand-600); margin-bottom: .15rem;
}
.notice-list span { display: block; font-size: .95rem; line-height: 1.45; }

/* Ruled off and tinted, so the way out of the board reads as part of it rather
   than as a sixth notice. */
.notice-more {
  margin: 0; padding: .75rem 1.15rem;
  border-top: 1px solid var(--line); background: var(--ground);
  font-size: .9rem; font-weight: 500;
}

@media (max-width: 820px) {
  /* One column, and the BOARD COMES FIRST: on a phone the school's news is one
     scroll away, but a scholarship deadline is the thing being looked for. */
  .home-latest { grid-template-columns: 1fr; gap: 0; }
  .notice-board { order: -1; margin-bottom: 2.2rem; }
  /* Brief here: the board is a glance on the way past, not the page. */
  .notice-list a { padding: .6rem 0; }
  .notice-list span { font-size: .92rem; }
  /* Three notices on a phone, not five. The board sits ABOVE the news here, so
     every extra line is news pushed further down; three is enough to answer "is
     there anything new" and "All notices" is right underneath for the rest.
     Hidden rather than not built: one home page is served to every screen, and
     the two extra lines cost about 200 bytes. Scoped to the board, so the search
     results — which share .notice-list — keep showing every hit. */
  .notice-board .notice-list li:nth-child(n+4) { display: none; }
}

/* ---------------------------------------------------------------- faculty */

.staff-group + .staff-group { margin-top: 2.6rem; }
/* The section heading is ruled off, so a long list still reads as School, then
   Higher Secondary, then Office, rather than one wall of faces. */
.staff-group h2 {
  margin: 0 0 1.2rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--brand-100);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.staff-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}
.staff-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
  transition: box-shadow .15s ease, border-color .15s ease;
}
/* Lifts on hover like a card, but does NOT rise: these are not links, and a card
   that moves under the cursor promises somewhere to go. */
.staff-card:hover { box-shadow: 0 6px 18px rgba(49, 46, 129, .09); border-color: var(--brand-200); }

/* Square, because a square survives whatever the office actually uploads — a
   phone portrait, a cropped group photo, a scan — where a tall frame would cut
   heads off. */
.staff-face {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
  display: flex; align-items: center; justify-content: center;
}
.staff-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Someone with no photograph yet is ordinary, not an error, so the gap is given
   its own mark rather than a broken image or a stock face belonging to nobody. */
.staff-initials {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.1rem; color: var(--brand-500); opacity: .55; letter-spacing: .04em;
}
.staff-body { padding: .8rem .9rem 1rem; }
.staff-card h3 {
  margin: 0 0 .2rem; font-size: 1rem; line-height: 1.3;
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700;
  color: var(--ink);
}
.staff-title {
  margin: 0; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--brand-600);
}
.staff-subject { margin: .3rem 0 0; font-size: .87rem; color: var(--ink-soft); line-height: 1.4; }

/* One or two people — the Principal, the Vice Principal — turned on their side so
   the card fills its line instead of sitting marooned in an empty row. */
.staff-grid.is-lead { grid-template-columns: repeat(auto-fit, minmax(270px, 370px)); }
.staff-grid.is-lead .staff-card { display: flex; align-items: stretch; }
.staff-grid.is-lead .staff-face { flex: 0 0 118px; aspect-ratio: auto; }
.staff-grid.is-lead .staff-body { display: flex; flex-direction: column; justify-content: center; }
.staff-grid.is-lead h3 { font-size: 1.08rem; }

@media (max-width: 420px) {
  /* Two across rather than one: a column of large faces makes a short staff list
     feel like a very long page. */
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .staff-body { padding: .6rem .7rem .8rem; }
  .staff-initials { font-size: 1.7rem; }
  /* The lead cards stay on their side here — a phone has the width for a small
     face beside a name, and it keeps the Principal from taking a whole screen. */
  .staff-grid.is-lead { grid-template-columns: 1fr; }
  .staff-grid.is-lead .staff-face { flex-basis: 96px; }
}

/* ------------------------------------------------------- search and paging */

/* Shipped with `hidden` on the form and revealed by the script, so the box only
   exists where it can work. Nothing else on the page depends on it. */
.search { margin: 0 0 1.6rem; max-width: 30rem; }
.search label {
  display: block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--brand-600); margin-bottom: .35rem;
}
.search input {
  width: 100%; font: inherit; color: var(--ink);
  padding: .6rem .85rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--ground);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.search input:focus {
  outline: none; background: var(--paper);
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.search-count {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-faint); margin-bottom: .2rem;
}
/* The results reuse the notice board's dated lines. A list answers "is the thing
   I typed in here" faster than a grid of pictures, which is the only question a
   search is asking. */
.result-list { padding: 0; border-top: 1px solid var(--line); margin-bottom: 2rem; }

.pager {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  margin: 2rem 0 1rem;
}
.pager a, .pager span {
  display: inline-block; padding: .45rem .75rem; border-radius: 8px;
  font-size: .9rem; text-decoration: none; line-height: 1;
}
.pager a { color: var(--brand-700); border: 1px solid var(--line); }
.pager a:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.pager .is-here {
  background: var(--brand-700); color: #fff; font-weight: 700;
  border: 1px solid var(--brand-700);
}
/* Kept in place rather than removed at the ends of the run, so the numbers do
   not shift sideways as you page through them. */
.pager .is-off { color: var(--ink-faint); opacity: .45; border: 1px solid transparent; }
.pager-step { font-weight: 500; }
.pager-n { min-width: 2.2rem; text-align: center; }

@media (max-width: 420px) {
  /* The steps are the ones a thumb wants; the numbers wrap under them. */
  .pager { gap: .3rem; }
  .pager-n { min-width: 2rem; padding: .45rem .5rem; }
}

/* ---------------------------------------------------------------- content */

/* Set larger than the body, so it wants TIGHTER leading, not the same: 1.65 at
   this size opens gaps the eye has to jump. The margin is what separates the
   opening sentence from the first section under it. */
.lead { font-size: 1.15rem; line-height: 1.55; color: var(--ink-soft);
        max-width: 62ch; margin-bottom: 1.75rem; }

.panels { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.panel { background: var(--ground); border: 1px solid var(--line);
         border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.panel h3 { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4em; }

table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
th { background: var(--brand-50); font-weight: 700; }

.note {
  border-left: 4px solid var(--gold-400); background: #fffbeb;
  padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0;
  color: #713f12; font-size: .95rem;
}
.note p:last-child { margin-bottom: 0; }

.empty { color: var(--ink-faint); font-style: italic; }

/* ---------------------------------------------------------------- a post */

.post { max-width: 70ch; margin-inline: auto; }
.post-meta { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
             color: var(--brand-600); font-weight: 700; margin-bottom: .3rem; }
.post-hero { width: 100%; border-radius: var(--radius); margin: 1.2rem 0 1.8rem; }
.post-body { font-size: 1.05rem; }
.post-body h2 { font-size: 1.5rem; margin-top: 1.8em; }
.post-body h3 { font-size: 1.2rem; margin-top: 1.6em; }
.post-body ul, .post-body ol { padding-left: 1.3rem; }
.post-body figure { margin: 1.8rem 0; }
.post-body figure img { border-radius: 10px; width: 100%; }
.post-body figcaption { font-size: .85rem; color: var(--ink-faint); text-align: center;
                        margin-top: .5rem; }
.post-body blockquote {
  margin: 1.5rem 0; padding-left: 1.1rem;
  border-left: 3px solid var(--brand-200); color: var(--ink-soft); font-style: italic;
}
.post-body code { background: var(--brand-50); padding: .1em .35em; border-radius: 4px;
                  font-size: .9em; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.back { margin-top: 2.5rem; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--brand-900); color: var(--brand-100);
  /* No margin-top — `main`'s padding-bottom owns the gap above, so the two
     cannot add up into a band of empty page nobody chose. */
  padding: 2.5rem 0 1.5rem; font-size: .92rem;
}
.footer-inner { display: grid; gap: 1.8rem;
                grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer strong { color: #fff; display: block; margin-bottom: .5rem; }
.site-footer p { margin: 0 0 .35rem; }
.site-footer a { color: var(--brand-200); }
.site-footer a:hover { color: #fff; }
/* The bottom bar: the school's line one side, the builder credit the other, ruled
   off from the columns above. The pair measures about 200px against 280px of room
   at a 320px viewport, so they hold the one row on every phone; `wrap` is there
   only for the case where a large text setting pushes them apart. */
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1.2rem; margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.copyright { margin: 0; color: #a5b4fc; font-size: .85rem; }
/* Scoped to .site-footer so it outweighs `.site-footer a` above, which would
   otherwise colour this link differently from the copyright line beside it. */
.site-footer .built-by {
  display: inline-flex; align-items: center; gap: .55rem;
  color: #a5b4fc; font-size: .85rem; text-decoration: none;
}
.site-footer .built-by:hover { color: #fff; }
/* Sized in CSS as well as on the tag: the width/height attributes reserve the
   space before the file arrives, and these keep it right if the file is ever
   replaced with one of different dimensions. */
.built-by img { width: 40px; height: 40px; display: block; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover { transform: none; }
}
