/* ==========================================================================
   سورنا | Surena MCC
   Aesthetic direction: light architectural — near-white field, an architect's
   white model under soft light, brand gradient (coral → blue) as the only
   saturated element, oversized Persian display type, generous whitespace,
   and a scroll-driven 3D sequence as the centrepiece.
   ========================================================================== */

@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

/* ---------- Primitives ---------- */
:root {
  --white: #ffffff;
  --paper-50: #fafbfc;
  --paper-100: #f4f6f9;
  --paper-200: #eaeef4;
  --paper-300: #dde3ec;

  --ink-985: #060a16;
  --ink-950: #0a1024;
  --ink-900: #0b1220;
  --ink-850: #111a34;
  --ink-800: #16223f;
  --ink-700: #26303f;
  --ink-500: #5a6478;
  --ink-400: #66718a;

  --coral-400: #f2726f;
  --coral-500: #e3564f;
  --coral-700: #c93f38;

  --blue-400: #3d7fd6;
  --blue-500: #2b62b8;
  --blue-600: #1e4c96;
  --blue-800: #12305f;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px; --space-11: 176px;

  --text-xs: .78rem;   --text-sm: .9rem;    --text-base: 1.02rem;
  --text-lg: 1.15rem;  --text-xl: 1.4rem;   --text-2xl: 1.9rem;
  --text-3xl: 2.8rem;

  --radius-sm: 4px; --radius-md: 10px; --radius-lg: 20px; --radius-full: 999px;

  --duration-fast: 150ms; --duration-base: 260ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-body: 'Vazirmatn', system-ui, sans-serif;
  --shell: 1180px;
  --nav-h: 72px;

  --shadow-sm: 0 1px 2px rgba(11,18,32,.06), 0 2px 8px rgba(11,18,32,.05);
  --shadow-md: 0 2px 6px rgba(11,18,32,.06), 0 12px 28px rgba(11,18,32,.08);
  --shadow-lg: 0 4px 12px rgba(11,18,32,.07), 0 28px 60px rgba(11,18,32,.11);
}

/* ---------- Semantic ---------- */
:root {
  --color-bg: var(--white);
  --color-bg-soft: var(--paper-100);
  --color-bg-tint: var(--paper-50);
  --color-surface: var(--white);

  --color-text: var(--ink-900);
  --color-text-body: var(--ink-700);
  --color-text-muted: var(--ink-500);
  --color-text-faint: var(--ink-400);

  --color-accent: var(--coral-500);
  --color-accent-text: var(--coral-700);
  --color-brand: var(--blue-600);
  --color-brand-soft: var(--blue-400);

  --color-border: #e6eaf1;
  --color-border-strong: #cfd7e3;
  --color-grid: rgba(30, 76, 150, .06);

  --gradient-brand: linear-gradient(115deg, var(--coral-400), var(--blue-600));
  --gradient-warm: linear-gradient(120deg, #ff8f6b, var(--coral-500) 42%, var(--blue-600));
}

/* ==========================================================================
   DARK SCOPE — every component already reads semantic tokens, so re-pointing
   them inside .on-dark flips a whole section without touching component CSS.
   ========================================================================== */
.on-dark {
  --color-bg: var(--ink-950);
  --color-bg-soft: var(--ink-900);
  --color-bg-tint: var(--ink-850);
  --color-surface: rgba(255, 255, 255, .045);

  --color-text: #ffffff;
  --color-text-body: rgba(255, 255, 255, .84);
  --color-text-muted: rgba(255, 255, 255, .64);
  --color-text-faint: rgba(255, 255, 255, .46);

  --color-accent: var(--coral-400);
  --color-accent-text: var(--coral-400);
  --color-brand: var(--blue-400);

  --color-border: rgba(255, 255, 255, .12);
  --color-border-strong: rgba(255, 255, 255, .26);
  --color-grid: rgba(148, 190, 255, .08);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 34px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.55);

  background: var(--color-bg);
  color: var(--color-text-body);
  position: relative;
}
.on-dark .btn--primary { background: #fff; color: var(--ink-950); }
.on-dark .btn--primary:hover { background: var(--paper-200); }
.on-dark .btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.04); }
.on-dark .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.on-dark .arrow-link { color: var(--coral-400); }
.on-dark :focus-visible { outline-color: var(--coral-400); }
.on-dark .honor { background: rgba(255,255,255,.06); }

/* ---------- Ambient gradient wash (the "aurora") ---------- */
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
}
.aurora::before {
  width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  inset-block-start: -18%; inset-inline-end: -10%;
  background: radial-gradient(circle, rgba(242,114,111,.34), transparent 66%);
}
.aurora::after {
  width: 58vw; height: 58vw; max-width: 840px; max-height: 840px;
  inset-block-end: -22%; inset-inline-start: -12%;
  background: radial-gradient(circle, rgba(45,110,220,.38), transparent 66%);
}
.aurora--soft::before { background: radial-gradient(circle, rgba(242,114,111,.16), transparent 66%); }
.aurora--soft::after { background: radial-gradient(circle, rgba(45,110,220,.18), transparent 66%); }

/* fine grain — keeps large flat areas from banding */
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.on-dark > .shell, .on-dark > .shell-wide { position: relative; z-index: 2; }

/* drafting grid overlay for any section */
.blueprint {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to left, var(--color-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-grid) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 15%, transparent 76%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.9;
  color: var(--color-text-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--coral-400); color: #fff; }

:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---------- Layout ---------- */
.shell { width: calc(100% - var(--space-6) * 2); max-width: var(--shell); margin-inline: auto; }
@media (max-width: 640px) { .shell { width: calc(100% - var(--space-5) * 2); } }

.section { padding-block: var(--space-11); position: relative; }
.section--tight { padding-block: var(--space-9); }
.section--soft { background: var(--color-bg-soft); }
.section--tint { background: var(--color-bg-tint); }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 300;
  background: var(--color-brand); color: #fff; padding: var(--space-3) var(--space-5); font-weight: 700;
}
.skip-link:focus { inset-inline-start: var(--space-4); top: var(--space-4); }

/* ---------- Type ---------- */
.display {
  font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.06; letter-spacing: -.035em; color: var(--color-text); text-wrap: balance;
}
.h1 { font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.1; letter-spacing: -.032em; color: var(--color-text); text-wrap: balance; }
.h2 { font-weight: 900; font-size: clamp(1.8rem, 3.9vw, var(--text-3xl)); line-height: 1.18; letter-spacing: -.028em; color: var(--color-text); text-wrap: balance; }
.h3 { font-weight: 700; font-size: var(--text-xl); line-height: 1.45; letter-spacing: -.014em; color: var(--color-text); }
.h4 { font-weight: 700; font-size: var(--text-lg); line-height: 1.45; color: var(--color-text); }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: clamp(1.08rem, 1.9vw, 1.32rem); line-height: 1.85; color: var(--color-text-muted); font-weight: 300; max-width: 60ch; }
.prose { max-width: 66ch; color: var(--color-text-body); }
.prose p + p { margin-top: var(--space-4); }
.muted { color: var(--color-text-muted); }
.faint { color: var(--color-text-faint); }
.center { text-align: center; }
.center .lede, .center .prose { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 700; letter-spacing: .04em;
  color: var(--color-accent-text); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--gradient-brand); }

.section-head { margin-bottom: var(--space-8); max-width: 72ch; }
.section-head .lede { margin-top: var(--space-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); min-height: 50px;
  font-weight: 700; font-size: 1rem; border-radius: var(--radius-full);
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-500); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: var(--color-border-strong); color: var(--color-text); background: rgba(255,255,255,.7); }
.btn--ghost:hover { border-color: var(--color-brand); color: var(--color-brand); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.center .btn-row { justify-content: center; }

.arrow-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; color: var(--color-brand); font-size: .98rem; }
.arrow-link svg { transition: transform var(--duration-base) var(--ease-out); }
.arrow-link:hover svg { transform: translateX(-5px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0); border-bottom: 1px solid transparent;
  transition: background var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.nav.is-stuck { background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(18px); border-bottom-color: var(--color-border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); width: 100%; }

.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand__mark { width: 36px; height: 36px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-weight: 900; font-size: 1.05rem; letter-spacing: -.03em; color: var(--color-text); }
.brand__sub { font-size: .7rem; color: var(--color-text-faint); }

.nav__links { display: flex; align-items: center; gap: var(--space-1); }
.nav__link {
  position: relative; padding: var(--space-2) var(--space-4);
  font-size: .95rem; font-weight: 500; color: var(--color-text-muted); border-radius: var(--radius-full);
  transition: color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}
.nav__link:hover { color: var(--color-text); background: var(--color-bg-soft); }
.nav__link[aria-current="page"] { color: var(--color-text); font-weight: 700; }
.nav__link[aria-current="page"]::after {
  content: ''; position: absolute; inset-block-end: 2px; inset-inline: 50%;
  width: 16px; height: 2px; border-radius: 2px; margin-inline-start: -8px; background: var(--gradient-brand);
}

/* Pages that open on a dark hero: the transparent nav must invert until it sticks. */
body[data-nav="over-dark"] .nav:not(.is-stuck) .brand__name,
body[data-nav="over-dark"] .nav:not(.is-stuck) .nav__link[aria-current="page"] { color: #fff; }
body[data-nav="over-dark"] .nav:not(.is-stuck) .brand__sub { color: rgba(255,255,255,.62); }
body[data-nav="over-dark"] .nav:not(.is-stuck) .nav__link { color: rgba(255,255,255,.74); }
body[data-nav="over-dark"] .nav:not(.is-stuck) .nav__link:hover { color: #fff; background: rgba(255,255,255,.1); }
body[data-nav="over-dark"] .nav:not(.is-stuck) .nav__toggle { border-color: rgba(255,255,255,.34); }
body[data-nav="over-dark"] .nav:not(.is-stuck) .nav__toggle span { background: #fff; }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-fast); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset-block-start: var(--nav-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(18px); border-bottom: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-5) var(--space-6);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: var(--space-4) var(--space-2); font-size: 1.05rem; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .nav__link[aria-current="page"]::after { inset-inline: auto; inset-inline-start: 0; margin: 0; width: 3px; height: 55%; inset-block: 22%; }
}

/* ==========================================================================
   SCROLL STORY — sticky stage, 3D driven by scroll position
   ========================================================================== */
.story {
  position: relative; height: 560vh;
  background: linear-gradient(180deg, var(--ink-985) 0%, var(--ink-950) 35%, #0d1733 100%);
}
.story__sticky { position: sticky; inset-block-start: 0; height: 100svh; overflow: hidden; }
.story__canvas { position: absolute; inset: 0; z-index: 1; }
.story__canvas canvas { width: 100%; height: 100%; }
/* glow behind the model, and a faint drafting grid on the floor plane */
.story__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.story__glow::before {
  content: ''; position: absolute; inset-block-start: 6%; inset-inline-start: 50%;
  width: 78vw; height: 78vw; max-width: 1100px; max-height: 1100px;
  transform: translateX(50%); border-radius: 50%; filter: blur(90px);
  background: radial-gradient(circle, rgba(242,114,111,.28) 0%, rgba(45,110,220,.24) 42%, transparent 68%);
}
.story__glow::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to left, rgba(148,190,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,190,255,.07) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 70%);
}

/* text lives in the top band, the 3D model performs in the lower two-thirds */
.story__sticky::after {
  content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 58%;
  z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,10,22,.94) 14%, rgba(6,10,22,.66) 48%, transparent 100%);
}
.story__stage {
  position: relative; z-index: 3; height: 100%;
  display: grid; justify-items: center; align-content: start;
  padding: calc(var(--nav-h) + var(--space-7)) var(--space-6) var(--space-8);
}
/* the story runs on its own dark palette */
.story {
  --color-text: #fff;
  --color-text-muted: rgba(255,255,255,.68);
  --color-border: rgba(255,255,255,.16);
  --color-border-strong: rgba(255,255,255,.3);
}
.story .act__kicker { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.8); backdrop-filter: blur(14px); }
.story .act__kicker b { color: #fff; }
.story .btn--primary { background: #fff; color: var(--ink-950); }
.story .btn--primary:hover { background: var(--paper-200); }
.story .btn--ghost { border-color: rgba(255,255,255,.32); color: #fff; background: rgba(255,255,255,.05); }
.story .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.story .act__stat b { color: #fff; }
.story .act__stat span { color: rgba(255,255,255,.62); }
.story .story__hint { color: rgba(255,255,255,.5); }
.story .story__rail i { background: rgba(255,255,255,.22); }

.act {
  grid-area: 1 / 1; max-width: 780px; text-align: center;
  opacity: 0; transform: translateY(26px) scale(.985);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.act.is-active { opacity: 1; transform: none; pointer-events: auto; }
.act__kicker {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  background: rgba(255,255,255,.72); border: 1px solid var(--color-border);
  backdrop-filter: blur(10px); font-size: var(--text-sm); font-weight: 700; color: var(--color-text-muted);
}
.act__kicker b { color: var(--color-text); }
.act__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral-500); }
.act p.lede { margin-inline: auto; margin-top: var(--space-5); }
.act .btn-row { justify-content: center; margin-top: var(--space-7); }

.act__figure { display: flex; justify-content: center; gap: var(--space-8); flex-wrap: wrap; margin-top: var(--space-7); }
.act__stat b { display: block; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--color-text); }
.act__stat span { font-size: var(--text-sm); color: var(--color-text-muted); }

/* progress rail */
.story__rail {
  position: absolute; z-index: 3; inset-block-end: var(--space-7); inset-inline-start: 50%; transform: translateX(50%);
  display: flex; gap: var(--space-2); align-items: center;
}
.story__rail i { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--color-border-strong); transition: background var(--duration-base) var(--ease-out); }
.story__rail i.on { background: var(--gradient-brand); }

.story__hint {
  position: absolute; z-index: 3; inset-block-end: calc(var(--space-7) + 26px); inset-inline-start: 50%; transform: translateX(50%);
  font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: .08em; white-space: nowrap;
  transition: opacity var(--duration-base) var(--ease-out);
}

@media (max-width: 700px) {
  .story { height: 480vh; }
  .act__figure { gap: var(--space-6); }
  .act__kicker { font-size: var(--text-xs); padding: var(--space-2) var(--space-4); line-height: 1.7; }
  .story__stage { padding-inline: var(--space-5); }
}

/* Static fallback when motion is reduced or WebGL is unavailable */
.story.is-static { height: auto; }
.story.is-static .story__sticky { position: relative; height: auto; min-height: 84svh; }
.story.is-static .act { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; margin-block: var(--space-8); }
.story.is-static .story__stage { display: block; text-align: center; }
.story.is-static .story__rail, .story.is-static .story__hint { display: none; }

/* ---------- Page header (inner pages) ---------- */
/* Inner pages are type-led and calm — the 3D sequence belongs to the home page.
   A drafting grid and a soft brand wash carry the identity instead. */
/* Inner pages open on a dark, lit header — consistent with the home story. */
.pagehead {
  position: relative; overflow: hidden;
  padding-block: calc(var(--nav-h) + var(--space-10)) var(--space-10);
  background: linear-gradient(155deg, var(--ink-985) 0%, var(--ink-900) 42%, var(--blue-800) 128%);
  --color-text: #fff;
  --color-text-body: rgba(255,255,255,.84);
  --color-text-muted: rgba(255,255,255,.66);
  --color-text-faint: rgba(255,255,255,.52);
  --color-accent-text: var(--coral-400);
  --color-brand: var(--blue-400);
  --color-grid: rgba(148,190,255,.09);
  color: var(--color-text-body);
}
.pagehead::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to left, var(--color-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-grid) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 85% 110% at 22% 100%, #000 8%, transparent 74%);
}
.pagehead::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  inset-block-start: -220px; inset-inline-start: -160px; width: 720px; height: 720px;
  border-radius: 50%; filter: blur(50px);
  background: radial-gradient(circle, rgba(242,114,111,.34), rgba(45,110,220,.26) 46%, transparent 70%);
}
.pagehead .shell { position: relative; z-index: 2; }
.pagehead .crumbs a:hover { color: var(--coral-400); }
.pagehead .lede { margin-top: var(--space-5); }
.crumbs { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-sm); color: var(--color-text-faint); margin-bottom: var(--space-4); }
.crumbs a:hover { color: var(--color-brand); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: var(--space-7) var(--space-5); background: var(--color-surface); }
.stat__num { font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 900; line-height: 1; letter-spacing: -.045em; color: var(--color-text); display: flex; align-items: baseline; gap: 3px; }
.stat__num small { font-size: .4em; font-weight: 900; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); align-items: start; }
.split--wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 940px) { .split, .split--wide { grid-template-columns: 1fr; gap: var(--space-7); } }

/* ==========================================================================
   MARQUEE — an endless band of what the company has actually built
   ========================================================================== */
.marquee {
  position: relative; overflow: hidden;
  padding-block: var(--space-6);
  background: var(--gradient-warm);
  border-block: 1px solid rgba(255,255,255,.18);
}
.marquee__track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: var(--space-8); padding-inline-end: var(--space-8); }
.marquee__item {
  display: inline-flex; align-items: baseline; gap: var(--space-3);
  color: #fff; white-space: nowrap; font-weight: 700; font-size: 1.05rem;
}
.marquee__item b { font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; }
.marquee__item i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); align-self: center; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ==========================================================================
   BENTO — varied cell sizes instead of four identical cards
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.bento__cell {
  position: relative; overflow: hidden;
  padding: var(--space-7);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
  min-height: 210px;
}
.bento__cell:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.bento__cell--wide { grid-column: span 2; }
.bento__cell--tall { grid-row: span 2; }
.bento__cell--feature {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(150deg, var(--ink-900), var(--ink-850) 55%, var(--blue-800));
  border-color: transparent; color: #fff; justify-content: space-between;
}
.bento__cell--feature .bento__title { color: #fff; }
.bento__cell--feature p { color: rgba(255,255,255,.72); }
.bento__cell--feature::after {
  content: ''; position: absolute; inset-block-end: -40%; inset-inline-start: -20%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,114,111,.34), transparent 66%);
  pointer-events: none;
}
.bento__index {
  font-size: var(--text-sm); font-weight: 900; letter-spacing: .1em;
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bento__cell--feature .bento__index { background: none; color: var(--coral-400); }
.bento__title { font-size: var(--text-xl); font-weight: 900; letter-spacing: -.02em; color: var(--color-text); line-height: 1.35; }
.bento__cell p { color: var(--color-text-muted); font-size: .95rem; line-height: 1.8; position: relative; z-index: 1; }
/* needs to out-specify `.bento__cell p` and `.bento__cell--feature p` above */
.bento__cell p.bento__big {
  font-size: clamp(3.2rem, 8vw, 5.6rem); font-weight: 900; line-height: .9;
  letter-spacing: -.05em; color: #fff; position: relative; z-index: 1;
}
.bento__cell p.bento__big small { font-size: .28em; color: var(--coral-400); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--feature, .bento__cell--wide { grid-column: span 2; }
  .bento__cell--tall, .bento__cell--feature { grid-row: auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell--feature, .bento__cell--wide { grid-column: span 1; }
}

/* ==========================================================================
   PULL QUOTE — the big editorial moment
   ========================================================================== */
.quote { position: relative; padding-inline-start: var(--space-9); }
.quote::before {
  content: '”'; position: absolute; inset-block-start: -.32em; inset-inline-start: 0;
  font-size: 8rem; line-height: 1; font-weight: 900;
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quote p {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.45;
  letter-spacing: -.028em; color: var(--color-text); text-wrap: balance;
}
.quote cite { display: block; margin-top: var(--space-5); font-style: normal; font-size: var(--text-sm); color: var(--color-text-muted); }
.quote cite b { color: var(--color-text); font-weight: 700; }
@media (max-width: 620px) { .quote { padding-inline-start: var(--space-7); } .quote::before { font-size: 5rem; } }

/* ==========================================================================
   FIGURE BAND — oversized numerals as a design element
   ========================================================================== */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-7); }
.figure { position: relative; padding-top: var(--space-6); border-top: 2px solid var(--color-border); }
.figure::before {
  content: ''; position: absolute; inset-block-start: -2px; inset-inline-start: 0;
  width: 44px; height: 2px; background: var(--gradient-brand);
}
.figure__n {
  font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 900; line-height: 1;
  letter-spacing: -.05em; color: var(--color-text); display: flex; align-items: baseline; gap: 4px;
}
.figure__n small { font-size: .3em; font-weight: 900; color: var(--color-accent); }
/* :not() keeps this caption rule from out-specifying the numeral above it */
.figure p:not(.figure__n) { margin-top: var(--space-3); color: var(--color-text-muted); font-size: .95rem; line-height: 1.7; }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-5); }
.caps__item {
  padding: var(--space-6); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.caps__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.caps__num { font-size: var(--text-sm); font-weight: 900; letter-spacing: .06em; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caps__item h3 { margin-block: var(--space-3) var(--space-2); }
.caps__item p { color: var(--color-text-muted); font-size: .96rem; line-height: 1.8; }

/* ---------- Project cards ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-6); }
.pcard {
  display: flex; flex-direction: column; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.pcard:hover { box-shadow: var(--shadow-lg); }
.pcard__visual { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(165deg, #f7f9fc, #e9eef6); border-bottom: 1px solid var(--color-border); overflow: hidden; }
.pcard__badge {
  position: absolute; z-index: 2; inset-block-start: var(--space-4); inset-inline-start: var(--space-4);
  padding: 5px var(--space-3); border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 700;
  background: rgba(255,255,255,.9); border: 1px solid var(--color-border); color: var(--color-text-muted);
  backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm);
}
.pcard__badge--live { color: var(--coral-700); border-color: rgba(227,86,79,.4); }
.pcard__badge--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral-500); animation: pulse 2s ease-in-out infinite; }
.pcard__badge--todo { color: var(--blue-600); border-color: rgba(61,127,214,.42); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.pcard__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.pcard__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); color: var(--color-text-faint); }
.pcard__desc { color: var(--color-text-muted); font-size: .96rem; line-height: 1.8; }
.pcard__facts { margin-top: auto; padding-top: var(--space-5); border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: var(--space-6); }
.pcard__fact b { display: block; font-size: 1.4rem; font-weight: 900; color: var(--color-text); letter-spacing: -.03em; line-height: 1.2; }
.pcard__fact span { font-size: var(--text-xs); color: var(--color-text-faint); }

.progress { display: flex; flex-direction: column; gap: var(--space-2); }
.progress__top { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--color-text-muted); }
.progress__top b { color: var(--color-brand); font-weight: 700; }
.progress__track { height: 6px; border-radius: var(--radius-full); background: var(--paper-200); overflow: hidden; }
.progress__fill { height: 100%; border-radius: var(--radius-full); background: var(--gradient-brand); width: 0; transition: width 1.1s var(--ease-out); }

/* ---------- Elevation drawings ---------- */
.elev { width: 100%; height: 100%; display: block; }
.elev .f { fill: #fff; stroke: var(--blue-600); stroke-width: 1.3; stroke-linejoin: round; }
.elev .l { fill: none; stroke: var(--blue-400); stroke-width: 1; opacity: .55; }
.elev .a { fill: none; stroke: var(--coral-500); stroke-width: 1.7; }
.elev .af { fill: rgba(242,114,111,.16); stroke: var(--coral-500); stroke-width: 1.4; }
.elev .w { fill: rgba(61,127,214,.16); }
.elev .g { stroke: rgba(30,76,150,.1); stroke-width: 1; }
.elev .dash { fill: none; stroke: var(--blue-400); stroke-width: 1; opacity: .45; stroke-dasharray: 4 5; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-inline-start: var(--space-7); }
.timeline::before { content: ''; position: absolute; inset-block: 8px 0; inset-inline-start: 5px; width: 2px; border-radius: 2px; background: linear-gradient(to bottom, var(--coral-400), var(--blue-600) 45%, var(--color-border)); }
.tl-item { position: relative; padding-bottom: var(--space-8); }
.tl-item::before { content: ''; position: absolute; inset-inline-start: calc(var(--space-7) * -1 + 1px); inset-block-start: 9px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid var(--coral-500); }
.tl-year { font-size: var(--text-sm); font-weight: 900; color: var(--color-accent-text); letter-spacing: .04em; }
.tl-item h3 { margin-block: var(--space-1) var(--space-2); }
.tl-item p { color: var(--color-text-muted); max-width: 58ch; }

/* ---------- Leadership ---------- */
.leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-6); }
.leader { position: relative; padding: var(--space-8) var(--space-7); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.leader::before { content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--gradient-brand); }
.leader__role { font-size: var(--text-sm); font-weight: 700; color: var(--color-accent-text); margin-bottom: var(--space-2); }
.leader__name { font-size: var(--text-2xl); font-weight: 900; letter-spacing: -.035em; color: var(--color-text); line-height: 1.2; }
.leader__born { font-size: var(--text-sm); color: var(--color-text-faint); margin-top: var(--space-2); }
.leader__bio { margin-top: var(--space-5); color: var(--color-text-muted); font-size: .96rem; line-height: 1.9; }
.leader__bio p + p { margin-top: var(--space-3); }
.honors { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.honor { font-size: var(--text-xs); font-weight: 500; padding: 6px var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--color-border-strong); color: var(--color-text-body); background: var(--color-bg-soft); }

/* ---------- Lists / panels ---------- */
.ticks { display: grid; gap: var(--space-4); }
.tick { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); align-items: start; color: var(--color-text-body); }
.tick svg { margin-top: 8px; color: var(--coral-500); }

.panel { padding: var(--space-7); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel--accent { border-top: 4px solid transparent; border-image: var(--gradient-brand) 1; border-radius: 0; }
.panel--dark {
  position: relative; overflow: hidden; border-color: transparent;
  background: linear-gradient(150deg, var(--ink-985), var(--ink-850) 55%, var(--blue-800));
  --color-text: #fff; --color-text-muted: rgba(255,255,255,.7); --color-accent-text: var(--coral-400);
  color: rgba(255,255,255,.82); box-shadow: var(--shadow-lg);
}
.panel--dark::after {
  content: ''; position: absolute; inset-block-end: -45%; inset-inline-start: -25%;
  width: 400px; height: 400px; border-radius: 50%; filter: blur(30px); pointer-events: none;
  background: radial-gradient(circle, rgba(242,114,111,.36), transparent 68%);
}
.panel--dark > * { position: relative; z-index: 1; }
.panel--dark .tick svg { color: var(--coral-400); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); gap: var(--space-8); align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-size: var(--text-sm); font-weight: 700; color: var(--color-text); }
.field label .req { color: var(--coral-700); margin-inline-start: 2px; }
.field input, .field textarea, .field select {
  padding: var(--space-3) var(--space-4); min-height: 52px;
  background: var(--color-bg-soft); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md);
  color: var(--color-text); transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.8; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-400); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-brand); background: #fff; box-shadow: 0 0 0 4px rgba(30,76,150,.1); }
.field input::placeholder, .field textarea::placeholder { color: var(--color-text-faint); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--coral-700); }
.field__error { font-size: var(--text-sm); color: var(--coral-700); display: none; align-items: center; gap: 6px; }
.field__error.is-shown { display: flex; }
.field__hint { font-size: var(--text-xs); color: var(--color-text-faint); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

.form-status { margin-top: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); font-size: .96rem; display: none; border: 1px solid transparent; line-height: 1.75; }
.form-status.is-shown { display: block; }
.form-status--ok { background: rgba(30,76,150,.07); border-color: rgba(61,127,214,.4); color: var(--blue-800); }
.form-status--err { background: rgba(227,86,79,.08); border-color: rgba(227,86,79,.4); color: var(--coral-700); }

.cline { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-5); border-bottom: 1px solid var(--color-border); align-items: start; }
.cline:first-child { border-top: 1px solid var(--color-border); }
.cline__icon { color: var(--color-brand); padding-top: 3px; }
.cline__k { font-size: var(--text-xs); color: var(--color-text-faint); letter-spacing: .04em; }
.cline__v { font-weight: 700; color: var(--color-text); margin-top: 2px; line-height: 1.7; word-break: break-word; }
.cline__v a:hover { color: var(--color-brand); }
.cline__v[data-placeholder] { color: var(--color-text-faint); font-weight: 400; }

/* ---------- Notice ---------- */
.notice {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-4);
  padding: var(--space-5); margin-bottom: var(--space-7);
  border: 1px dashed rgba(61,127,214,.55); border-radius: var(--radius-md);
  background: rgba(61,127,214,.05); color: var(--blue-800); font-size: .94rem; line-height: 1.85;
}
.notice svg { margin-top: 5px; }
.notice b { color: var(--color-text); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; padding-block: var(--space-11);
  background: linear-gradient(140deg, var(--ink-985) 0%, var(--ink-850) 48%, var(--blue-800) 100%);
  color: #fff;
}
.cta::before { content: ''; position: absolute; inset-block-start: -50%; inset-inline-start: -8%; width: 680px; height: 680px; border-radius: 50%; filter: blur(40px); background: radial-gradient(circle, rgba(242,114,111,.4), transparent 66%); }
.cta::after { content: ''; position: absolute; inset-block-end: -60%; inset-inline-end: -8%; width: 680px; height: 680px; border-radius: 50%; filter: blur(40px); background: radial-gradient(circle, rgba(61,127,214,.42), transparent 66%); }
.cta .shell { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.cta .h2 { color: #fff; }
.cta .lede { color: rgba(255,255,255,.75); }
.cta .btn--primary { background: #fff; color: var(--color-text); }
.cta .btn--primary:hover { background: var(--paper-200); }
.cta .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Footer ---------- */
.footer { background: var(--color-bg-soft); border-top: 1px solid var(--color-border); padding-block: var(--space-8) var(--space-6); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: var(--space-7); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.footer h4 { font-size: var(--text-sm); color: var(--color-text); margin-bottom: var(--space-4); }
.footer__links { display: grid; gap: var(--space-3); }
.footer__links a { color: var(--color-text-muted); font-size: .94rem; }
.footer__links a:hover { color: var(--color-brand); }
.footer__about { color: var(--color-text-muted); font-size: .94rem; max-width: 46ch; line-height: 1.9; margin-top: var(--space-4); }
.footer__bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--color-border); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: var(--text-sm); color: var(--color-text-faint); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }
.reveal[data-delay="4"] { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pcard__badge--live i { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

/* ==========================================================================
   WORDPRESS INTEGRATION
   Only rules the CMS itself requires — the design system above is untouched.
   ========================================================================== */

/* The admin bar is 32px (46px on mobile) and pushes html down; the fixed nav
   must follow or it hides behind it for logged-in users. */
.admin-bar .nav { inset-block-start: 32px; }
@media screen and (max-width: 782px) { .admin-bar .nav { inset-block-start: 46px; } }
.admin-bar .nav__links { inset-block-start: calc(var(--nav-h) + 32px); }
@media screen and (max-width: 782px) { .admin-bar .nav__links { inset-block-start: calc(var(--nav-h) + 46px); } }
.admin-bar .story__sticky { height: calc(100svh - 32px); }

/* Editor output inside .prose */
.prose img, .prose figure { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.prose figure { margin-block: var(--space-5); }
.prose figcaption { font-size: var(--text-sm); color: var(--color-text-faint); margin-top: var(--space-2); }
.prose ul, .prose ol { margin-block: var(--space-4); padding-inline-start: var(--space-5); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3, .prose h4 { color: var(--color-text); margin-block: var(--space-6) var(--space-3); }
.prose blockquote {
  margin-block: var(--space-5); padding-inline-start: var(--space-5);
  border-inline-start: 3px solid var(--color-accent); color: var(--color-text);
}

/* Core alignment classes */
.alignleft { float: left; margin-inline-end: var(--space-5); }
.alignright { float: right; margin-inline-start: var(--space-5); }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }

/* Pagination */
.nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding-inline: var(--space-3);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  color: var(--color-text-muted); font-weight: 700;
}
.nav-links .page-numbers:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.nav-links .page-numbers.current { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }

/* Screen-reader text — WordPress emits this class in several core widgets */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
