/* ==========================================================================
   CIMEGS Hub — design system
   Source of truth: DESIGN_GUIDE.md (v2.0). Editorial signature: quiet
   cartographic linework. Logical properties only (Arabic-ready).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Ink blue, anchored to the logo navy #242F5F */
  --blue-900: #10162E;
  --blue-800: #1A2247;
  --brand:    #242F5F;
  --blue-600: #32417F;
  --blue-500: #44549C;
  --blue-300: #97A1CC;
  --blue-100: #DCE0EF;
  --blue-050: #F0F2F8;

  /* Crimson, anchored to the logo red #E41715. Accent only, never dominant. */
  --red-900: #570808;
  --red-800: #7A0C0B;
  --red-700: #9E100F;
  --red-600: #C31412;
  --red-500: #E41715;
  --red-100: #F9D8D7;
  --red-050: #FCEDED;

  /* Cool neutrals (paper and ink, never creamy) */
  --paper:   #F7F8FA;
  --surface: #FFFFFF;
  --n-100: #ECEEF1;
  --n-300: #C9CED6;
  --n-500: #6E7785;
  --n-700: #4A515B;
  --ink:   #16202B;

  /* Functional */
  --ok:   #1E7A52;
  --warn: #9A6A12;
  --err:  var(--red-700);

  /* Semantic aliases */
  --color-bg:     var(--paper);
  --color-fg:     var(--ink);
  --color-brand:  var(--brand);
  --color-accent: var(--red-700);
  --color-line:   var(--n-300);
  --color-muted:  var(--n-500);

  /* Division accents (one flat tone each) */
  --div-journal:    #32417F;
  --div-events:     #9A6A12;
  --div-academy:    #6B4A8A;
  --div-writers:    #335E73;
  --div-publishing: #9E100F;
  --div-research:   #1E6E63;

  /* Type scale, ratio 1.25, responsive */
  --fs-900: clamp(2.3rem, 1.8rem + 2.2vw, 3.052rem);
  --fs-800: clamp(1.95rem, 1.62rem + 1.5vw, 2.441rem);
  --fs-700: clamp(1.62rem, 1.4rem + 1vw, 1.953rem);
  --fs-600: clamp(1.32rem, 1.2rem + .6vw, 1.563rem);
  --fs-500: 1.25rem;
  --fs-400: 1rem;
  --fs-300: .8rem;

  --lh-body: 1.6;
  --lh-head: 1.18;

  --font-display: 'IBM Plex Serif', 'Plex Serif Fallback', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', 'Plex Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Rhythm */
  --space-1: .5rem;  --space-2: .75rem; --space-3: 1rem;  --space-4: 1.5rem;
  --space-5: 2rem;   --space-6: 3rem;   --space-7: 4rem;  --space-8: 6rem;
  --maxw: 75rem;
  --maxw-prose: 42rem;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-1: 0 1px 2px rgba(26, 34, 71, .06);
  --shadow-2: 0 6px 24px rgba(26, 34, 71, .09);

  --focus-ring: 2px solid var(--blue-600);
}

/* --------------------------------------------------------------------------
   2. Fonts (self-hosted woff2, latin subset)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: optional;
  src: url('../fonts/plex-sans-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-serif-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plex-serif-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plex-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0152-0153, U+2000-206F;
}
/* Metric-adjusted fallbacks: kill layout shift if a font is slow */
@font-face {
  font-family: 'Plex Sans Fallback';
  src: local('Arial'), local('Helvetica Neue');
  size-adjust: 98%; ascent-override: 102%; descent-override: 27%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Plex Serif Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 104%; ascent-override: 98%; descent-override: 26%; line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 5.5rem; /* sticky header must not obscure focus targets */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: var(--lh-body);
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-head);
  letter-spacing: -0.01em;
  color: var(--color-brand);
  margin-block: 0 var(--space-3);
  text-wrap: balance;
}
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-700); }
h3 { font-size: var(--fs-600); }
h4 { font-size: var(--fs-500); margin-block: 0 var(--space-2); color: var(--color-brand); }

p { margin-block: 0 var(--space-3); }

a { color: var(--blue-600); text-decoration-color: var(--blue-300); text-underline-offset: 3px; }
a:hover { color: var(--brand); text-decoration-color: var(--red-600); }

img, svg { max-inline-size: 100%; block-size: auto; }

::selection { background: var(--blue-100); color: var(--blue-900); }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  inset-block-start: 0;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.2rem;
  font-weight: 600;
}
.skip-link:focus {
  inset-inline-start: var(--space-3);
  inset-block-start: var(--space-3);
}

/* Honeypot: present in the DOM, invisible to humans */
.hp-field {
  position: absolute;
  inset-inline-start: -9999px;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
}

.container {
  max-inline-size: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

main { display: block; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  letter-spacing: .06em;
}

/* Section scaffolding */
.section { padding-block: clamp(2.8rem, 7vw, 5rem); }
.section-head { max-inline-size: 46rem; margin-block-end: var(--space-5); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--color-accent);
  margin-block-end: var(--space-2);
}
.kicker::before {
  content: "";
  inline-size: 2.2rem;
  block-size: 3px;
  border-radius: 3px;
  /* A faded line in the current accent colour with a soft light sheen drifting
     across it. currentColor lets each portal's kicker colour flow through. */
  background-image:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent),
    linear-gradient(90deg, currentColor 0%, currentColor 40%, transparent 100%);
  background-size: 42% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: -60% 0, 0 0;
  animation: kicker-sheen 5s ease-in-out infinite;
}
@keyframes kicker-sheen {
  0%   { background-position: -60% 0, 0 0; }
  45%  { background-position: 200% 0, 0 0; }
  100% { background-position: 200% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kicker::before { animation: none; }
}
.section-head h2 { margin-block-end: var(--space-2); }
.section-head .lede { color: var(--n-700); font-size: var(--fs-500); margin: 0; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--n-100);
}
.site-header::before {
  /* hairline brand rule: navy with one red interval, like a map border */
  content: "";
  display: block;
  block-size: 3px;
  background: linear-gradient(to right, var(--red-600) 0 14%, var(--brand) 14% 100%);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 1.8vw, 1.6rem);
  padding-block: .65rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--brand);
  margin-inline-end: auto;
}
.brand img { inline-size: 46px; block-size: 46px; }

/* Header seal: gentle breathing crossfade between the all-navy seal and the
   navy+red seal. One slow cycle, disabled with prefers-reduced-motion. */
.brand-mark {
  position: relative;
  inline-size: 46px;
  block-size: 46px;
  flex-shrink: 0;
}
.brand-mark img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}
.brand-mark .logo-b { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .brand-mark .logo-a { animation: seal-a 7s ease-in-out infinite; }
  .brand-mark .logo-b { animation: seal-b 7s ease-in-out infinite; }
}
@keyframes seal-a {
  0%, 44%  { opacity: 1; }
  50%, 92% { opacity: 0; }
  98%, 100% { opacity: 1; }
}
@keyframes seal-b {
  0%, 44%  { opacity: 0; }
  50%, 92% { opacity: 1; }
  98%, 100% { opacity: 0; }
}
.brand-name { display: flex; flex-direction: column; line-height: 1.18; }
.brand-abbr {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.brand-full {
  font-size: .68rem;
  color: var(--n-700);
  letter-spacing: .015em;
  max-inline-size: 15rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 1.2vw, 1.15rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding-block: .4rem;
  text-decoration: none;
  color: var(--n-700);
  font-weight: 500;
  font-size: .9rem;
  line-height: 1.25;
  white-space: nowrap;   /* multi-word items must never wrap to a second line */
  position: relative;
}
.site-nav a::after {
  /* ink underline draws on hover */
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  inline-size: 100%;
  block-size: 2px;
  background: var(--red-600);
  transform: scaleX(0);
  transform-origin: 0 50%; /* physical: scaleX has no logical origin keyword */
  transition: transform .22s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  padding: .62rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--blue-800); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: none; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--blue-050); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--blue-050); border-color: var(--blue-050); color: var(--blue-900); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--n-300);
  border-radius: var(--radius);
  padding: .5rem .6rem;
  cursor: pointer;
  color: var(--brand);
  min-inline-size: 44px;
  min-block-size: 44px;
}

@media (max-width: 80rem) {
  .brand-full { display: none; }
}
/* Collapse to the menu button early: seven items plus the CTA need real room. */
@media (max-width: 72rem) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute;
    inset-inline: 0;
    inset-block-start: 100%;
    background: var(--surface);
    border-block-end: 1px solid var(--n-100);
    box-shadow: var(--shadow-2);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
  .site-nav a {
    display: block;
    padding: .85rem clamp(1rem, 4vw, 2.5rem);
    font-size: 1.05rem;
    white-space: normal;
  }
  .site-nav a::after { display: none; }
  .site-nav li + li { border-block-start: 1px solid var(--n-100); }
}

/* --------------------------------------------------------------------------
   4b. Important-news ticker (below the header, admin-managed)
   -------------------------------------------------------------------------- */
.news-ticker {
  position: relative;
  z-index: 90;                 /* under the sticky header (100) */
  background: linear-gradient(100deg, var(--blue-900) 0%, var(--brand) 55%, var(--blue-800) 100%);
  color: var(--blue-050);
  border-block-end: 1px solid rgba(151, 161, 204, .22);
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: 46px;        /* reserve height: no layout shift */
}
.ticker-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #fff;
  background: var(--red-600);
  padding: .26rem .7rem;
  border-radius: 99px;
}
.ticker-tag svg { inline-size: 13px; block-size: 13px; }
.ticker-track {
  position: relative;
  flex-grow: 1;
  min-inline-size: 0;
  block-size: 1.5rem;
}
.ticker-item {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--blue-050);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(.45rem);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.ticker-item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.ticker-item:hover { text-decoration: underline; text-decoration-color: var(--red-500); text-underline-offset: 3px; color: #fff; }
.ticker-nav { display: flex; gap: .3rem; flex-shrink: 0; }
.ticker-btn {
  inline-size: 26px;
  block-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 219, 236, .4);
  border-radius: 50%;
  background: transparent;
  color: var(--blue-050);
  cursor: pointer;
}
.ticker-btn:hover { background: rgba(214, 219, 236, .16); color: #fff; }
.ticker-btn svg { inline-size: 14px; block-size: 14px; }
@media (max-width: 40rem) {
  .ticker-nav { display: none; }
  .ticker-tag span { display: none; }   /* keep the bell icon only on small screens */
}
@media (prefers-reduced-motion: reduce) {
  .ticker-item { transition: none; }
}

/* --------------------------------------------------------------------------
   5. Hero (asymmetric editorial opening, cartographic signature)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-block-end: 1px solid var(--n-100);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-6);
  padding-block: clamp(3rem, 9vw, 6.5rem);
}
.hero-copy { position: relative; z-index: 2; max-inline-size: 38rem; }
.hero-copy h1 { margin-block-end: var(--space-4); }
.hero-copy .lede {
  font-size: var(--fs-500);
  color: var(--n-700);
  max-inline-size: 36rem;
  margin-block-end: var(--space-5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero-actions .text-link { font-weight: 600; }

.hero-art {
  position: relative;
  min-block-size: 16rem;
}
.hero-art svg {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}
.hero-seal {
  position: absolute;
  inset-block-start: 46%;
  inset-inline-end: 7%;
  inline-size: clamp(8rem, 17vw, 13rem);
  block-size: auto;
  z-index: 1;
  opacity: .12;
  pointer-events: none;
  transform: translateY(-50%);
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-seal { animation: seal-float 8s ease-in-out infinite; }
}
@keyframes seal-float {
  0%, 100% { transform: translateY(calc(-50% - 16px)) rotate(-6deg) scale(1); }
  50%      { transform: translateY(calc(-50% + 16px)) rotate(6deg) scale(1.06); }
}
.hero-plaque {
  position: absolute;
  inset-block-end: 6%;
  inset-inline-end: 0;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--n-300);
  border-inline-start: 3px solid var(--red-600);
  padding: .9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--n-700);
  box-shadow: var(--shadow-1);
}
.hero-plaque strong { color: var(--brand); font-weight: 600; }

/* signature linework: draws itself once, then settles */
.sig-line {
  fill: none;
  stroke: var(--blue-500);
  stroke-width: 1.3;
  opacity: .34;
}
.sig-line-strong { stroke-width: 1.7; opacity: .5; }
.sig-grid { stroke: var(--blue-300); stroke-width: .7; opacity: .25; }
.sig-accent { stroke: var(--red-600); stroke-width: 1.7; opacity: .85; }
.sig-dot { fill: var(--blue-500); opacity: .55; }
.sig-dot-accent { fill: var(--red-600); }

@media (prefers-reduced-motion: no-preference) {
  .sig-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: sig-draw 2.2s cubic-bezier(.4, 0, .2, 1) forwards;
  }
  .sig-draw:nth-of-type(2) { animation-delay: .15s; }
  .sig-draw:nth-of-type(3) { animation-delay: .3s; }
  .sig-draw:nth-of-type(4) { animation-delay: .45s; }
  .sig-draw:nth-of-type(5) { animation-delay: .6s; }
  .sig-fade { opacity: 0; animation: sig-fade .9s ease-out 1.4s forwards; }
}
@keyframes sig-draw { to { stroke-dashoffset: 0; } }
@keyframes sig-fade { to { opacity: 1; } }

@media (max-width: 54rem) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-art { min-block-size: 11rem; }
}

/* --------------------------------------------------------------------------
   6. Portal cards (uniform, centered grid: 3 across, 2 rows)
   -------------------------------------------------------------------------- */
.portals { background: var(--paper); }
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;          /* centered, organized content */
  text-align: center;
  gap: .65rem;
  background: var(--surface);
  border: 1px solid var(--n-100);
  border-block-start: 3px solid var(--division-accent, var(--blue-600));
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.portal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--ink); }

.portal-icon {
  inline-size: 56px;
  block-size: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-050);
  color: var(--division-accent, var(--blue-600));
  margin-block-end: .2rem;
}
.portal-icon svg { inline-size: 30px; block-size: 30px; }

.portal-card h3 {
  margin: 0;
  font-size: var(--fs-500);
  color: var(--brand);
}
.portal-name { position: relative; display: inline; background-image: linear-gradient(var(--red-600), var(--red-600)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 50% 100%; /* physical: centered underline */ transition: background-size .25s ease; padding-block-end: 2px; }
.portal-card:hover .portal-name { background-size: 100% 2px; }

.portal-desc { color: var(--n-700); font-size: .95rem; margin: 0; flex-grow: 1; max-inline-size: 22rem; }
.portal-host {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--color-muted);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.portal-host svg { inline-size: 14px; block-size: 14px; color: var(--division-accent, var(--blue-600)); }

.p-journal    { --division-accent: var(--div-journal); }
.p-events     { --division-accent: var(--div-events); }
.p-academy    { --division-accent: var(--div-academy); }
.p-writers    { --division-accent: var(--div-writers); }
.p-publishing { --division-accent: var(--div-publishing); }
.p-research   { --division-accent: var(--div-research); }

@media (max-width: 60rem) {
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 38rem) {
  .portal-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   7. About band (deep ink, quotable)
   -------------------------------------------------------------------------- */
.about-band {
  background: var(--brand);
  color: var(--blue-050);
  position: relative;
  overflow: hidden;
}
.about-band .band-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--space-6);
  align-items: center;
}
.about-band .kicker { color: var(--red-100); }
.about-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.45rem);
  line-height: 1.55;
  margin: 0 0 var(--space-4);
}
.about-band a.text-link { color: #fff; text-decoration-color: var(--red-500); font-weight: 600; }
.about-band a.text-link:hover { color: var(--blue-100); }
.about-emblem { text-align: center; }
.about-emblem img {
  inline-size: clamp(9rem, 16vw, 13rem);
  opacity: .92;
  filter: drop-shadow(0 6px 24px rgba(16, 22, 46, .5));
}
.band-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
}
@media (max-width: 54rem) {
  .about-band .band-grid { grid-template-columns: 1fr; }
  .about-emblem { display: none; }
}

/* --------------------------------------------------------------------------
   8. Fields of study (map-legend list)
   -------------------------------------------------------------------------- */
.fields-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--n-100);
  border: 1px solid var(--n-100);
  border-radius: var(--radius);
  overflow: hidden;
}
.fields-list li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  background: var(--surface);
  padding: 1rem 1.2rem;
  font-weight: 500;
}
.fields-list .idx {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--red-700);
  letter-spacing: .08em;
}

/* --------------------------------------------------------------------------
   9. News
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: var(--space-4);
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--n-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease;
  container-type: inline-size;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.news-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-050); }
/* contain, not cover: the whole uploaded image is shown, never cropped.
   Off-ratio images sit on a light brand tint instead of being clipped. */
.news-card-media img { inline-size: 100%; block-size: 100%; object-fit: contain; object-position: center; display: block; }
.news-card-body { display: flex; flex-direction: column; gap: .55rem; padding: var(--space-4); flex-grow: 1; }
.news-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-muted);
}
.news-card h3 { font-size: var(--fs-500); margin: 0; }
.news-card h3 a { color: var(--brand); text-decoration: none; }
.news-card h3 a:hover { color: var(--blue-600); text-decoration: underline; text-decoration-color: var(--red-600); text-underline-offset: 4px; }
.news-card .excerpt { color: var(--n-700); font-size: .95rem; margin: 0; flex-grow: 1; }
.news-card .read-more {
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue-600);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.news-card .read-more svg { inline-size: 15px; block-size: 15px; transition: transform .2s ease; }
.news-card .read-more:hover svg { transform: translateX(3px); /* physical: matches LTR reading direction */ }

.section-foot { margin-block-start: var(--space-5); }
.text-link {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--blue-300);
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: var(--red-600); }

/* Empty states */
.empty-note {
  background: var(--blue-050);
  border: 1px dashed var(--blue-300);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: center;
  color: var(--n-700);
}

/* --------------------------------------------------------------------------
   10. Subscribe band
   -------------------------------------------------------------------------- */
.subscribe-band {
  background: var(--blue-050);
  border-block: 1px solid var(--blue-100);
}
.subscribe-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-6);
  align-items: center;
}
.subscribe-form .form-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-3);
}
.subscribe-form .form-row-phone {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr);
}
.subscribe-form button { inline-size: 100%; justify-content: center; }
.form-note { font-size: .82rem; color: var(--color-muted); margin-block-start: .6rem; }
@media (max-width: 54rem) {
  .subscribe-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 30rem) {
  .subscribe-form .form-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
label { display: block; font-weight: 500; font-size: .9rem; margin-block-end: .35rem; color: var(--n-700); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="datetime-local"], input[type="url"],
select, textarea {
  inline-size: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--n-300);
  border-radius: var(--radius);
  padding: .62rem .8rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}
textarea { min-block-size: 8rem; resize: vertical; }
.field { margin-block-end: var(--space-3); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }
@media (max-width: 38rem) { .form-grid-2 { grid-template-columns: 1fr; } }
.req { color: var(--red-700); }

fieldset.choice-set { border: 1px solid var(--n-300); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-3); }
fieldset.choice-set legend { font-weight: 600; color: var(--brand); padding-inline: .4rem; }
.choice {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding-block: .45rem;
}
.choice input { inline-size: auto; margin-block-start: .25rem; accent-color: var(--brand); min-inline-size: 18px; min-block-size: 18px; }
.choice strong { display: block; }
.choice .hint { color: var(--color-muted); font-size: .86rem; }

/* Flash messages */
.flash-stack { margin-block: var(--space-4); display: grid; gap: .6rem; }
.flash {
  border-radius: var(--radius);
  border: 1px solid;
  padding: .85rem 1.1rem;
  font-size: .95rem;
}
.flash-success { background: #EFF7F2; border-color: var(--ok); color: #14532D; }
.flash-error   { background: var(--red-050); border-color: var(--red-700); color: var(--red-800); }
.flash-info    { background: var(--blue-050); border-color: var(--blue-500); color: var(--blue-800); }

/* --------------------------------------------------------------------------
   12. Page interior, prose, breadcrumbs
   -------------------------------------------------------------------------- */
.page-head {
  background: linear-gradient(to right, var(--surface) 55%, var(--blue-050));
  border-block-end: 1px solid var(--n-100);
  padding-block: clamp(2.2rem, 6vw, 3.6rem);
  position: relative;
  overflow: hidden;
}
/* Cartographic marginalia fills the end side of every page head. */
.page-head::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: min(48%, 620px);
  pointer-events: none;
  opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 300' preserveAspectRatio='xMaxYMid slice'%3E%3Cg fill='none' stroke='%2397A1CC' stroke-width='.8' opacity='.45'%3E%3Cpath d='M0 60h620M0 120h620M0 180h620M0 240h620'/%3E%3Cpath d='M100 0v300M200 0v300M300 0v300M400 0v300M500 0v300'/%3E%3C/g%3E%3Cg fill='none' stroke='%2344549C' stroke-width='1.2'%3E%3Cpath d='M40 250 C 140 215, 210 265, 310 230 S 480 160, 560 190 S 640 230, 660 210' opacity='.5'/%3E%3Cpath d='M60 200 C 160 165, 230 215, 330 180 S 500 110, 580 140' opacity='.65'/%3E%3Cpath d='M80 150 C 180 115, 250 165, 350 130 S 520 60, 600 90' opacity='.5'/%3E%3C/g%3E%3Cg stroke='%23C31412' stroke-width='1.4'%3E%3Cpath d='M468 96v12M468 124v12M446 116h12M478 116h12'/%3E%3C/g%3E%3Ccircle cx='468' cy='116' r='3.4' fill='%23C31412'/%3E%3Ccircle cx='468' cy='116' r='10' fill='none' stroke='%23C31412' stroke-width='1' opacity='.5'/%3E%3Ccircle cx='180' cy='225' r='3' fill='%2344549C' opacity='.7'/%3E%3Ccircle cx='560' cy='250' r='3' fill='%2344549C' opacity='.7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 100% 50%; /* physical: decorates the trailing edge */
  background-size: cover;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent); /* physical: pairs with position above */
  mask-image: linear-gradient(to left, #000 55%, transparent);
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { margin-block-end: .4rem; max-inline-size: 50rem; }
.page-head .lede { color: var(--n-700); font-size: var(--fs-500); max-inline-size: 44rem; margin: 0; }

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-block-end: var(--space-3);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: .5rem; color: var(--n-300); }
.breadcrumbs a { color: var(--color-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }

.prose { max-inline-size: var(--maxw-prose); }
.prose p, .prose li { font-size: 1.045rem; line-height: 1.7; }
.prose h2 {
  font-size: var(--fs-600);
  margin-block: var(--space-6) var(--space-3);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--n-100);
}
.prose h2:first-child { margin-block-start: 0; border: 0; padding-block-start: 0; }
.prose h3 { font-size: var(--fs-500); margin-block: var(--space-5) var(--space-2); }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin-block: 0 var(--space-4); }
.prose li { margin-block-end: .5rem; }
.prose blockquote {
  margin: var(--space-4) 0;
  padding-inline-start: var(--space-4);
  border-inline-start: 3px solid var(--red-600);
  color: var(--n-700);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.prose img { border-radius: var(--radius); }
.prose hr { border: 0; border-block-start: 1px solid var(--n-300); margin-block: var(--space-5); }
.prose table { border-collapse: collapse; inline-size: 100%; margin-block: var(--space-4); font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--n-300); padding: .55rem .75rem; text-align: start; }
.prose th { background: var(--blue-050); color: var(--brand); }

/* Article (news single) */
.article-head { max-inline-size: 50rem; }
.article-hero {
  margin-block: var(--space-5) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--n-100);
  box-shadow: var(--shadow-1);
}
.article-hero img { display: block; inline-size: 100%; block-size: auto; }
.article-body { padding-block: var(--space-6); }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  border-block-start: 1px solid var(--n-100);
  padding-block-start: var(--space-4);
  margin-block-start: var(--space-6);
}
.article-nav a {
  display: block;
  text-decoration: none;
  border: 1px solid var(--n-100);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-nav a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.article-nav .dir {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-muted);
  display: block;
  margin-block-end: .3rem;
}
.article-nav .ttl { color: var(--brand); font-weight: 600; }
.article-nav .next { text-align: end; }
@media (max-width: 38rem) { .article-nav { grid-template-columns: 1fr; } .article-nav .next { text-align: start; } }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-block-start: var(--space-6);
  font-family: var(--font-mono);
  font-size: .9rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.5rem;
  min-block-size: 2.5rem;
  padding-inline: .6rem;
  border: 1px solid var(--n-300);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--n-700);
  background: var(--surface);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   13. Membership and board
   -------------------------------------------------------------------------- */
.member-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-4);
  margin-block: var(--space-5);
}
.member-type {
  background: var(--surface);
  border: 1px solid var(--n-100);
  border-block-start: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-1);
}
.member-type:nth-child(2) { border-block-start-color: var(--div-research); }
.member-type:nth-child(3) { border-block-start-color: var(--div-events); }
.member-type h3 { font-size: var(--fs-500); margin-block-end: .4rem; }
.member-type p { color: var(--n-700); font-size: .95rem; margin: 0; }

.apply-panel {
  background: var(--surface);
  border: 1px solid var(--n-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  max-inline-size: 48rem;
  margin-block-start: var(--space-5);
  margin-inline: auto;
}

.board-grid {
  display: grid;
  gap: var(--space-4);
  max-inline-size: 46rem;
  margin-inline: auto;
  margin-block-start: var(--space-5);
}
.board-card {
  background: var(--surface);
  border: 1px solid var(--n-100);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
}
.board-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-block-end: var(--space-3);
}
.board-head-text { min-inline-size: 0; }
.board-photo {
  inline-size: 88px;
  block-size: 88px;
  border-radius: 50%;
  border: 2px solid var(--blue-100);
  background: var(--blue-050);
  object-fit: cover;
  flex: none;
  margin: 0;
}
.board-photo-fallback { object-fit: contain; padding: 13px; }
.board-card h3 { font-size: var(--fs-500); margin: 0 0 .2rem; line-height: 1.25; }
.board-role {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.55;
  color: var(--red-700);
  margin: 0;
}
.board-card .bio { color: var(--n-700); font-size: .95rem; line-height: 1.75; margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-4);
  margin-block-start: var(--space-5);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--n-100);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-1);
}
.contact-card .ic { inline-size: 28px; block-size: 28px; color: var(--brand); margin-block-end: .6rem; }
.contact-card h3 { font-size: 1.05rem; margin-block-end: .35rem; }
.contact-card p, .contact-card address { font-style: normal; color: var(--n-700); font-size: .95rem; margin: 0; line-height: 1.6; }
.contact-card a { word-break: break-word; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--blue-900);
  color: var(--blue-100);
  margin-block-start: var(--space-7);
  border-block-start: 3px solid var(--red-600);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 2.5fr) minmax(0, 2.5fr) minmax(0, 3fr);
  gap: var(--space-6);
  padding-block: var(--space-7) var(--space-5);
}
.footer-brand { display: flex; align-items: flex-start; gap: .9rem; margin-block-end: var(--space-3); }
.footer-brand img {
  inline-size: 56px;
  block-size: 56px;
  background: var(--paper);          /* the seal needs a light plate on the dark footer */
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 0 0 1px rgba(151, 161, 204, .35);
}
.footer-brand .brand-abbr { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-full { color: var(--blue-300); max-inline-size: 16rem; }
.site-footer p { color: var(--blue-300); font-size: .92rem; }
.site-footer h2 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-block-end: var(--space-3);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--blue-100); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red-500); text-underline-offset: 3px; }
.site-footer address { font-style: normal; color: var(--blue-300); font-size: .92rem; line-height: 1.7; }
.footer-bottom {
  border-block-start: 1px solid rgba(151, 161, 204, .25);
  padding-block: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem var(--space-4);
  justify-content: space-between;
  font-size: .82rem;
  color: var(--blue-300);
}
@media (max-width: 64rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38rem) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); } }

/* --------------------------------------------------------------------------
   15. Error pages
   -------------------------------------------------------------------------- */
.error-hero { text-align: center; padding-block: var(--space-8); }
.error-hero .code {
  font-family: var(--font-mono);
  font-size: .9rem;
  letter-spacing: .2em;
  color: var(--red-700);
  display: block;
  margin-block-end: var(--space-2);
}

/* --------------------------------------------------------------------------
   15b. Content sheet: a centered reading surface so wide screens never show
        a text column hugging the start edge with dead space after it.
   -------------------------------------------------------------------------- */
.content-sheet {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--n-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(1.5rem, 4.5vw, 3.25rem);
  max-inline-size: 56rem;
  margin-inline: auto;
}
.content-sheet::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 3px;
  background: linear-gradient(to right, var(--red-600) 0 56px, var(--brand) 56px);
  border-start-start-radius: var(--radius-lg);
  border-start-end-radius: var(--radius-lg);
}
.content-sheet > .prose { max-inline-size: 44rem; margin-inline: auto; }

/* Center the article furniture on the same axis as the sheet. */
.article-head, .article-hero, .article-nav, .author-box { margin-inline: auto; }
.article-back { max-inline-size: 56rem; margin: var(--space-5) auto 0; }

/* --------------------------------------------------------------------------
   15c. News slider (homepage): five posts, quiet cross-fade, no layout shift.
   -------------------------------------------------------------------------- */
.news-slider {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--n-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.news-slider::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 3px;
  z-index: 2;
  background: linear-gradient(to right, var(--red-600) 0 56px, var(--brand) 56px);
}
.news-slides { display: grid; }
.news-slide {
  grid-area: 1 / 1;            /* all slides share one cell: tallest sets the height */
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility .65s ease;
}
.news-slide.is-active { opacity: 1; visibility: visible; }
.news-slide-media {
  display: block;
  block-size: 100%;
  min-block-size: 15rem;
  background: var(--blue-050);
}
.news-slide-media img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;          /* show the whole image, never crop */
  object-position: center;
  display: block;
}
.news-slide-body {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
}
.news-slide-body h3 { font-size: var(--fs-600); margin: 0; }
.news-slide-body h3 a { color: var(--brand); text-decoration: none; }
.news-slide-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--red-600); text-underline-offset: 4px; }
.news-slide-body .excerpt { color: var(--n-700); margin: 0; flex-grow: 1; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border-block-start: 1px solid var(--n-100);
  background: var(--paper);
  padding: .55rem clamp(1rem, 2.5vw, 1.6rem);
  position: relative;
  z-index: 2;
}
.slider-arrows { display: flex; gap: .45rem; }
.slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 38px;
  block-size: 38px;
  border: 1px solid var(--n-300);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.slider-btn:hover { border-color: var(--brand); background: var(--blue-050); }
.slider-btn svg { inline-size: 17px; block-size: 17px; }
.slider-dots { display: flex; gap: .25rem; }
.slider-dot {
  inline-size: 26px;
  block-size: 26px;            /* WCAG 2.2 target size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.slider-dot::before {
  content: "";
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  background: var(--n-300);
  transition: background .2s ease, transform .2s ease;
}
.slider-dot:hover::before { background: var(--blue-500); }
.slider-dot[aria-current="true"]::before { background: var(--red-600); transform: scale(1.25); }
.slider-count {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--color-muted);
}
@media (max-width: 54rem) {
  .news-slide { grid-template-columns: 1fr; }
  .news-slide-media { min-block-size: 0; aspect-ratio: 16 / 9; }
}

/* --------------------------------------------------------------------------
   16. Reveal on scroll (progressive enhancement, no JS)
   -------------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: fade-up .6s ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   17. Reduced motion, print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    animation-timeline: auto !important;
    scroll-behavior: auto !important;
  }
  .sig-draw { stroke-dashoffset: 0 !important; }
  .sig-fade { opacity: 1 !important; }
}

@media print {
  .site-header, .site-footer, .subscribe-band, .nav-toggle, .hero-art,
  .article-nav, .pagination, .hero-actions, .flash-stack { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  .prose, .article-head { max-inline-size: 100%; }
}
