/* ============================================================
   THEME 13 — common.css  (ported from the approved mockup t13/theme13.css)
   Layers: fonts -> tokens -> base -> type -> layout -> glass -> components
   Every brand colour derives from --t13-primary / --t13-accent, injected by
   layout.blade.php from $userBs->base_color / $userBs->secondary_base_color.
   Generic element selectors are scoped to .t13-main / prefixed wrappers so
   nothing leaks into the shared inner pages that also load inner-common.css.
   ============================================================ */

/* ---------- 0. SELF-HOSTED FONTS (no Google CDN) ----------
   Geist is a variable woff2 (wght 100-900) — one file serves 400/500/600/700.
   Mukta Devanagari ships 400 + 700 (subset to the core Devanagari block);
   Nepali text at 500/600 maps to the nearest available weight.
   Arizonia (script wordmark) is latin only. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/geist-latinext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/mukta-deva-400.woff2) format("woff2");
  unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}
@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/mukta-deva-700.woff2) format("woff2");
  unicode-range: U+0900-097F, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}
@font-face {
  font-family: "Arizonia";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/arizonia-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. TOKENS ---------- */
:root {
  /* injected by layout.blade.php (sane fallbacks kept here) */
  --t13-primary: #1f3a5f;
  --t13-accent:  #c8102e;
  --t13-white:   #fdfdff;

  /* derived scale — no hardcoded brand colours below this line */
  --t13-p-900: color-mix(in srgb, var(--t13-primary) 58%, #000);
  --t13-p-700: color-mix(in srgb, var(--t13-primary) 80%, #000);
  --t13-p-500: var(--t13-primary);
  /* must read LIGHTER than --t13-primary: it is tonal text on the brand banner.
     Mixed with --t13-white (not a hardcoded pale blue) so it stays a valid lighter
     tint for ANY primary hue — a blue literal went muddy/mauve under a red primary. */
  --t13-p-400: color-mix(in srgb, var(--t13-primary) 42%, var(--t13-white));
  --t13-p-300: color-mix(in srgb, var(--t13-primary) 42%, var(--t13-white));
  --t13-p-100: color-mix(in srgb, var(--t13-primary) 16%, var(--t13-white));
  --t13-p-050: color-mix(in srgb, var(--t13-primary) 7%,  var(--t13-white));
  --t13-wash:  color-mix(in srgb, var(--t13-primary) 5%,  var(--t13-white));

  --t13-ink:   #0f1b2b;
  --t13-body:  #333a45;
  --t13-muted: #64748b;
  --t13-line:  color-mix(in srgb, var(--t13-primary) 12%, transparent);

  /* Accent-as-text on WHITE / light grounds. The raw accent is tuned to POP on the
     brand ground; for a LIGHT accent (e.g. yellow #ffd800) that leaves it ~1.4:1 on
     white — effectively invisible. We darken ONLY the too-light accents: cap the
     OKLCH lightness (hue + chroma preserved) so a light accent drops to a legible
     ink-of-the-accent while an already-dark accent passes through untouched. The cap
     (L 0.53) sits at the crimson default's own lightness (L≈0.53), so crimson stays
     #c8102e (~5.9:1 on white) — a LIVE client's colour is NOT shifted — while yellow
     caps down to a dark amber (~#8c6600, ~5.2:1 on white, clearing the 4.5:1 AA floor
     for small text; most accent-text here is bold, 3:1). Measured in-browser, not
     eyeballed. The color-mix line below is the fallback for engines without OKLCH
     relative colour (flat 42% darken toward --t13-ink: yellow ~#746a19 5.5:1, crimson
     ~#5d162c); the @supports (oklch(from …)) block after the fallbacks upgrades to the
     hue-preserving cap where supported. Route white/light-ground accent TEXT and thin
     graphics through this; dark/red grounds keep the raw accent (or --t13-accent-onnavy)
     where the accent already pops. */
  --t13-accent-ink: color-mix(in srgb, var(--t13-accent) 42%, var(--t13-ink)); /* fallback for engines w/o oklch relative colour */

  /* glass — see refs/basnetmahesh-glass.md */
  --t13-glass-bg:     color-mix(in srgb, var(--t13-white) 74%, transparent);
  --t13-glass-bg-hi:  color-mix(in srgb, var(--t13-white) 88%, transparent);
  --t13-glass-border: color-mix(in srgb, var(--t13-primary) 10%, transparent);
  --t13-glass-shadow: 0 14px 34px color-mix(in srgb, var(--t13-primary) 12%, transparent);
  --t13-glass-shadow-hi: 0 22px 48px color-mix(in srgb, var(--t13-primary) 18%, transparent);

  /* rhythm — lifted verbatim from gaganthapa :root */
  --t13-section-py: clamp(3rem, 7.5vh, 6rem);
  --t13-page-pt:    clamp(4.5rem, 9vh, 7.5rem);
  --t13-radius:     .625rem;
  --t13-container:  1280px;
  --t13-gutter:     clamp(1rem, 3.2vw, 2.5rem);

  /* motion */
  --t13-ease-out:  cubic-bezier(0, 0, .58, 1);
  --t13-ease-circ: cubic-bezier(0, .55, .45, 1);
  --t13-ease-ctrl: cubic-bezier(.4, 0, .2, 1);

  --t13-font-sans:   "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t13-font-script: "Arizonia", cursive;
  --t13-font-deva:   "Mukta", "Noto Sans Devanagari", "Geist", system-ui, sans-serif;
}

/* color-mix is 2023+; ship literal fallbacks for older engines */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root {
    --t13-p-900: #101f34; --t13-p-700: #152840; --t13-p-400: #a1acbc;
    --t13-p-300: #90a6c0; --t13-p-100: #dbe6f2; --t13-p-050: #eef3f9;
    --t13-wash: #f5f7fb; --t13-line: rgba(31,58,95,.12);
    /* crimson (#c8102e) darkened 42% toward --t13-ink — matches the default accent */
    --t13-accent-ink: #5d162c;
    --t13-glass-bg: rgba(253,253,255,.74);
    --t13-glass-bg-hi: rgba(253,253,255,.88);
    --t13-glass-border: rgba(31,58,95,.10);
  }
}

/* OKLCH relative colour (2024+): darken ONLY accents lighter than the cap; hue +
   chroma preserved, so crimson (L≈0.53) passes through essentially untouched (stays
   #c8102e — the LIVE crimson client is not re-coloured) while a light yellow accent
   (L≈0.89) is pulled down to a legible dark amber (~#8c6600, ~5.2:1 on white). Placed
   after the fallbacks so it wins in the cascade wherever it is supported; engines
   without it keep the flat color-mix darken above. */
@supports (color: oklch(from red l c h)) {
  :root { --t13-accent-ink: oklch(from var(--t13-accent) min(l, 0.53) c h); }
}

/* ---------- 2. BASE ----------
   Global-safe resets only. Element-level resets that could clash with the
   shared inner pages are scoped to .t13-main (homepage) / prefixed wrappers. */
.t13-main *, .t13-main *::before, .t13-main *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--t13-white);
  color: var(--t13-body);
  font: 400 16px/1.5 var(--t13-font-sans);
  -webkit-font-smoothing: antialiased;
  /* [data-reveal] parks elements at translateX(±30px) before they animate in,
     which widens the document on load. `clip` contains it WITHOUT creating a
     scroll container — `hidden` would kill the sticky banner. */
  overflow-x: clip;
}
@supports not (overflow: clip) { body { overflow-x: hidden; } }

.t13-main img, .t13-nav img, .t13-footer img, .t13-modal img { display: block; }
.t13-main img { max-width: 100%; }

/* Reset link colour for content links only. Excluding .t13-btn is required:
   `.t13-main a` (0,1,1) outweighs `.t13-btn--solid` (0,1,0), so without :not()
   the solid button text inherits body ink and vanishes on the navy fill. */
.t13-main a:not(.t13-btn), .t13-nav a:not(.t13-btn), .t13-mobilemenu a, .t13-footer a, .t13-wordmark {
  color: inherit; text-decoration: none;
}
.t13-main button, .t13-nav button, .t13-mobilemenu button, .t13-modal button {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
}
:focus-visible { outline: 3px solid var(--t13-accent); outline-offset: 3px; border-radius: 4px; }

.t13-container { width: 100%; max-width: var(--t13-container); margin-inline: auto; padding-inline: var(--t13-gutter); }
.t13-section   { padding-block: var(--t13-section-py); position: relative; }

/* De-double the stacked-section rhythm. Every .t13-section pays block padding top
   AND bottom, so two in a row summed to ~12rem of air. Drop the TOP padding of a
   section that directly follows another, leaving the previous section's bottom
   padding as the single gap. Sections that PAINT their own background reinstate a
   reduced top pad so their fill still breathes (content must not hug the colour
   seam). Scoped to .t13-main so the standalone inner pages keep their own rhythm. */
.t13-main .t13-section + .t13-section { padding-top: 0; }
.t13-main .t13-section + .t13-impact,
.t13-main .t13-section + .t13-quote,
.t13-main .t13-section + .t13-vision { padding-top: var(--t13-section-py); }

/* ---------- 3. TYPE ---------- */
.t13-main h1, .t13-main h2, .t13-main h3, .t13-main h4 {
  margin: 0; font-weight: 700; color: var(--t13-p-500); line-height: 1.12; letter-spacing: -.015em;
}
.t13-main p { margin: 0 0 1rem; }

.t13-eyebrow {
  font-size: clamp(1rem, 1.6vw, 1.5rem); line-height: 1.33; font-weight: 700;
  color: var(--t13-accent-ink); letter-spacing: .01em;
}
.t13-h1 { font-size: clamp(2.25rem, 5.2vw, 3.75rem); line-height: 1; }
.t13-h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); line-height: 1.34; margin-bottom: .75rem; }
.t13-h3 { font-size: clamp(1.375rem, 2.4vw, 2.25rem); line-height: 1.25; }
.t13-lead { font-size: 1rem; line-height: 1.75; color: var(--t13-muted); }

/* Devanagari renders denser: looser leading, its own family. Kept global so
   Nepali-tagged text on inner pages inherits it too. */
:lang(ne), .t13-ne { font-family: var(--t13-font-deva); line-height: 1.62; }
:lang(ne) h1, :lang(ne) h2, :lang(ne) h3, .t13-ne h1, .t13-ne h2, .t13-ne h3 { line-height: 1.35; letter-spacing: 0; }

.t13-script { font-family: var(--t13-font-script); font-weight: 400; letter-spacing: .01em; }

/* ---------- 4. BUTTONS ---------- */
.t13-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 12px 32px; border-radius: 9999px;
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  color: inherit; text-decoration: none; cursor: pointer;
  transition: color .15s var(--t13-ease-ctrl), background-color .15s var(--t13-ease-ctrl),
              border-color .15s var(--t13-ease-ctrl), transform .15s var(--t13-ease-ctrl);
  border: 2px solid transparent;
}
.t13-btn--solid   { background: var(--t13-p-500); color: var(--t13-white); }
.t13-btn--solid:hover   { background: var(--t13-p-700); color: var(--t13-white); transform: translateY(-1px); }
.t13-btn--outline { border-color: var(--t13-p-500); color: var(--t13-p-500); }
.t13-btn--outline:hover { background: var(--t13-p-500); color: var(--t13-white); }

.t13-iconbtn {
  width: 44px; height: 44px; border-radius: 9999px; display: grid; place-items: center;
  border: 1px solid var(--t13-line); background: var(--t13-white); color: var(--t13-p-500);
  cursor: pointer;
  transition: background-color .2s var(--t13-ease-ctrl), transform .2s var(--t13-ease-ctrl);
}
.t13-iconbtn:hover  { background: var(--t13-p-050); transform: scale(1.08); }
.t13-iconbtn:active { transform: scale(.95); }
.t13-iconbtn--sm { width: 40px; height: 40px; }

/* ---------- 5. WASH + GLASS ----------
   Blur only reads as glass over a busy backdrop. Over a flat colour use the
   translucent tint (no blur) — the reference site's own choice. */
.t13-wash-bg {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--t13-primary) 10%, transparent), transparent 55%),
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--t13-primary) 6%,  transparent), transparent 50%),
    radial-gradient(circle at 60% 92%, color-mix(in srgb, var(--t13-accent)  5%,  transparent), transparent 55%),
    linear-gradient(180deg, var(--t13-white), var(--t13-p-050));
}

.t13-glass {
  background: var(--t13-glass-bg);
  border: 1px solid var(--t13-glass-border);
  border-radius: 16px;
  box-shadow: var(--t13-glass-shadow);
  transition: transform .22s var(--t13-ease-out), box-shadow .22s var(--t13-ease-out),
              background-color .22s var(--t13-ease-out), border-color .22s var(--t13-ease-out);
}
.t13-glass:hover {
  transform: translateY(-4px);
  background: var(--t13-glass-bg-hi);
  border-color: color-mix(in srgb, var(--t13-primary) 18%, transparent);
  box-shadow: var(--t13-glass-shadow-hi);
}
.t13-glass--blur { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.t13-glass--dark {
  background: color-mix(in srgb, var(--t13-p-900) 42%, transparent);
  border-color: rgba(255,255,255,.16); color: var(--t13-white);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .t13-glass--blur { background: color-mix(in srgb, var(--t13-white) 94%, transparent); }
  .t13-glass--dark { background: color-mix(in srgb, var(--t13-p-900) 82%, transparent); }
}

.t13-badge {
  width: 54px; height: 54px; border-radius: 50%; flex: 0 0 54px;
  display: grid; place-items: center;
  background: var(--t13-white); color: var(--t13-p-500);
  border: 1px solid color-mix(in srgb, var(--t13-primary) 22%, transparent);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--t13-primary) 12%, transparent);
  transition: transform .22s var(--t13-ease-out), box-shadow .22s var(--t13-ease-out);
}

/* ---------- 6. NAV ---------- */
.t13-nav {
  position: fixed; inset: 0 0 auto; z-index: 999;
  padding-block: 24px; background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding .3s var(--t13-ease-ctrl), background-color .3s var(--t13-ease-ctrl),
              border-color .3s var(--t13-ease-ctrl), box-shadow .3s var(--t13-ease-ctrl);
}
.t13-nav.is-stuck {
  padding-block: 16px;
  background: var(--t13-white);
  border-bottom-color: var(--t13-line);
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
}
.t13-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.t13-nav__avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: 0 0 64px;
  border: 2px solid var(--t13-p-100); background: var(--t13-p-100);
  transition: width .3s var(--t13-ease-ctrl), height .3s var(--t13-ease-ctrl), flex-basis .3s var(--t13-ease-ctrl);
}
.t13-nav.is-stuck .t13-nav__avatar { width: 48px; height: 48px; flex-basis: 48px; }
.t13-nav__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* wordmark: live Arizonia text + hand-drawn swoosh (falls back to $userBs->logo) */
.t13-wordmark { position: relative; text-align: center; line-height: 1; }
.t13-wordmark__logo { max-height: 54px; width: auto; }
.t13-wordmark__name {
  font-family: var(--t13-font-script); font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--t13-p-500); display: block; padding-inline: .4em;
}
.t13-wordmark__swoosh { display: block; width: 100%; height: 10px; color: var(--t13-accent-ink); margin-top: -2px; }
.t13-wordmark__swoosh path { stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; }

.t13-nav__links { display: flex; align-items: center; gap: .25rem; }
.t13-nav__link {
  font-size: 1.125rem; font-weight: 500; color: #334153;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
  transition: background-color .2s var(--t13-ease-ctrl), color .2s var(--t13-ease-ctrl);
}
.t13-nav__link:hover { background: var(--t13-p-050); color: var(--t13-p-500); }
.t13-nav__link.is-active { color: var(--t13-p-500); font-weight: 700; }

.t13-nav__lang { display: flex; gap: 2px; margin-inline-start: .5rem; padding: 3px; border-radius: 9999px; background: var(--t13-p-050); }
.t13-nav__lang button { padding: 5px 12px; border-radius: 9999px; font-size: .875rem; font-weight: 600; color: var(--t13-muted); cursor: pointer; }
.t13-nav__lang button.is-active { background: var(--t13-p-500); color: var(--t13-white); }

.t13-burger { display: none; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.t13-burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--t13-p-500); transition: transform .3s, opacity .3s; }

.t13-mobilemenu {
  position: fixed; inset: 0; z-index: 998; padding: 96px var(--t13-gutter) 2rem;
  background: var(--t13-white); display: flex; flex-direction: column; gap: .25rem;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--t13-ease-ctrl), transform .3s var(--t13-ease-ctrl), visibility .3s;
}
.t13-mobilemenu.is-open { opacity: 1; visibility: visible; transform: none; }
.t13-mobilemenu a { font-size: 1.5rem; font-weight: 600; color: var(--t13-p-500); padding: 14px 4px; border-bottom: 1px solid var(--t13-line); }

/* ---------- 6b. NAV OVER A DARK INNER-PAGE BANNER ----------
   The inner pages (About/Vision/Impact/Timeline/Speeches/Gallery/Contact) render a
   full-bleed DARK photo banner (.t13-phero, pages.css) UNDER the transparent fixed
   nav, so the default DARK nav foreground — inherited body ink on the links, the red
   --t13-p-500 wordmark — is dark-on-dark and unreadable. The HOMEPAGE instead carries
   a LIGHT hero (.t13-hero), where that same dark foreground is correct, so we key off
   the banner rather than a (non-existent) body class: `body:has(.t13-phero)` matches
   the inner pages ONLY. `:has()` is broadly supported; on an engine that lacks it the
   whole block is simply skipped and the nav keeps its current (safe) dark text.

   Everything below reverts the instant the nav sticks — .is-stuck paints the bar white
   (line 292), where the original DARK text is again correct — because every selector is
   scoped to .t13-nav:not(.is-stuck). This is theme-wide, so it also lifts the navy live
   client's inner-page nav off its banner (a legibility win for every tenant).

   Specificity: each selector below is (0,4,1) or more — enough to beat the reset
   `.t13-nav a:not(.t13-btn)` (0,2,1) at line 170, `.t13-nav__link` (0,1,0) at 318 and
   `.t13-nav__link.is-active` (0,2,0) at 324. */
body:has(.t13-phero) .t13-nav:not(.is-stuck) .t13-nav__link {
  color: var(--t13-white);
}
body:has(.t13-phero) .t13-nav:not(.is-stuck) .t13-nav__link:hover {
  /* the default pale --t13-p-050 hover pill would put white text on a near-white
     ground → invisible; use a translucent-white wash so the label stays legible. */
  background: color-mix(in srgb, var(--t13-white) 16%, transparent);
  color: var(--t13-white);
}
body:has(.t13-phero) .t13-nav:not(.is-stuck) .t13-nav__link.is-active {
  /* current page: white label (font-weight:700 kept from line 324) + faint wash. */
  color: var(--t13-white);
  background: color-mix(in srgb, var(--t13-white) 12%, transparent);
}
body:has(.t13-phero) .t13-nav:not(.is-stuck) .t13-wordmark__name,
body:has(.t13-phero) .t13-nav:not(.is-stuck) .t13-wordmark__swoosh {
  color: var(--t13-white);
}
body:has(.t13-phero) .t13-nav:not(.is-stuck) .t13-nav__lang {
  /* the pale pill container would read as a bright blob on the dark banner; float it
     as a translucent-white pill instead. The .is-active button keeps its solid brand
     fill (+ white text) from line 328, which stays legible on the banner. */
  background: color-mix(in srgb, var(--t13-white) 16%, transparent);
}
body:has(.t13-phero) .t13-nav:not(.is-stuck) .t13-nav__lang button {
  color: var(--t13-white);
}
body:has(.t13-phero) .t13-nav:not(.is-stuck) .t13-burger span {
  background: var(--t13-white);
}

/* ---------- 7. HERO ---------- */
/* min-height gives the hero presence without leaving a big empty band around a
   short portrait: capped so a tall viewport doesn't stretch the dead space (the
   ≤1024px rule below drops it to auto). */
.t13-hero { padding-top: var(--t13-page-pt); min-height: min(82vh, 680px); display: flex; align-items: center; overflow: hidden; }
.t13-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
/* Every slide holds the same cell and is hidden with `visibility`, not
   `display`. Two things fall out of that: a crossfade overlays the slides
   instead of stacking two blocks in flow, and the deck is always as tall as
   its tallest slide — so its height cannot move as slides swap. Hidden slides
   stay out of the tab order and off the a11y tree, as with `display: none`. */
.t13-hero__deck { display: grid; }
.t13-hero__slide { grid-area: 1 / 1; visibility: hidden; }
.t13-hero__slide.is-active { visibility: visible; animation: t13-slide-in .5s var(--t13-ease-out) both; }
@keyframes t13-slide-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.t13-hero__title { margin: .5rem 0 1rem; }
.t13-hero__nav { display: flex; gap: .75rem; margin-top: 2rem; align-items: center; }
.t13-hero__dots { display: flex; gap: 6px; margin-inline-start: .5rem; }
.t13-hero__dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--t13-p-100); transition: background-color .3s, width .3s; }
.t13-hero__dots span.is-active { background: var(--t13-accent-ink); width: 22px; border-radius: 9999px; }

.t13-hero__figure { position: relative; justify-self: center; }
.t13-hero__figure::before {
  content: ""; position: absolute; inset: 8% -6% -4% -6%; border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 50% 40%, var(--t13-p-100), transparent 68%);
}
.t13-hero__portrait { position: relative; width: min(440px, 100%); }

/* ---------- 8. STICKY BANNER ---------- */
.t13-banner {
  position: sticky; top: 0; z-index: 1;
  background: var(--t13-p-500); overflow: hidden;
  /* One deliberate raw-accent detail on a brand-coloured ground: a flag-like
     accent hairline under the banner. On a light accent (yellow) over the red
     band it POPS (the red+yellow party the brief asks for); on a dark accent
     (crimson) over navy it reads as a quiet crimson rule. Kept raw (not -ink /
     -onnavy) because this is exactly the dark ground where the raw accent earns
     its place. */
  border-bottom: 3px solid var(--t13-accent);
}
.t13-banner__inner { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 4rem); padding-block: clamp(1rem, 3vh, 2.5rem); }
.t13-banner__text {
  font-family: var(--t13-font-deva); font-weight: 700;
  font-size: clamp(2.25rem, 6.6vw, 6rem); line-height: 1.25;
  color: var(--t13-p-400); white-space: nowrap; margin: 0;
}
.t13-banner__bus { width: clamp(140px, 22vw, 320px); }

/* ---------- 9. VISION ---------- */
.t13-vision { background: var(--t13-p-100); overflow: hidden; }
.t13-vision__grid { display: grid; grid-template-columns: minmax(0,.9fr) auto minmax(0,1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.t13-vision__img { border-radius: 20px; overflow: hidden; box-shadow: var(--t13-glass-shadow); }
.t13-vision__img img { width: 100%; height: 100%; object-fit: cover; }
.t13-vision__count { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; color: var(--t13-accent-ink); line-height: 1; text-align: center; }
.t13-vision__count small { display: block; font-size: .875rem; font-weight: 500; color: var(--t13-muted); margin-top: .35rem; }
.t13-vision__chevrons { display: flex; flex-direction: column; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.t13-vision__slide { display: none; }
.t13-vision__slide.is-active { display: block; animation: t13-fade .4s var(--t13-ease-out) both; }
@keyframes t13-fade { from { opacity: 0; } to { opacity: 1; } }
.t13-vision__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- 10. ABOUT ---------- */
.t13-about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.t13-about__img { border-radius: 24px; overflow: hidden; box-shadow: var(--t13-glass-shadow); }
.t13-about__img img { width: 100%; height: 100%; object-fit: cover; }
.t13-about__cols { columns: 2; column-gap: 2.5rem; }
.t13-about__cols p { break-inside: avoid; }

/* ---------- 11. IMPACT (counters) ----------
   Carries .t13-wash-bg: the glass tiles need a non-flat backdrop or they
   render as plain white cards. */
.t13-impact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 2.5rem; }
.t13-impact__tile { padding: 2rem 1.5rem; text-align: center; }
.t13-impact__num { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 700; color: var(--t13-p-500); line-height: 1; }
.t13-impact__num .t13-sym { color: var(--t13-accent-ink); }
.t13-impact__label { margin-top: .6rem; font-size: .9375rem; color: var(--t13-muted); }

/* ---------- 12. TIMELINE (the glass section) ---------- */
.t13-timeline { border-radius: 28px; overflow: hidden; box-shadow: 0 32px 85px color-mix(in srgb, var(--t13-primary) 14%, transparent); }
.t13-timeline__grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); align-items: stretch; }
.t13-timeline__stage {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.18), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(135deg, var(--t13-p-900) 0%, var(--t13-p-500) 55%, var(--t13-p-400) 100%);
}
/* The stage cell stretches to the full height of the card rail beside it. A fixed
   360px image left a tall empty brand-coloured slab (the owner's top complaint);
   fill the panel with the portrait instead so it reads as a full-height standing
   figure. The gradient stays as a ground for transparent/short sources; a subtle
   bottom scrim keeps the seam under the head area from going flat. object-position
   biases toward the upper body as the panel grows taller than the source. */
.t13-timeline__stage img {
  width: 100%; height: 100%; max-width: 100%;
  object-fit: cover; object-position: center 22%;
}
.t13-timeline__stage::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 38%; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--t13-p-900) 55%, transparent), transparent);
}
.t13-timeline__rail { padding: clamp(1.75rem, 3.5vw, 3rem); position: relative; }
.t13-timeline__item { display: grid; grid-template-columns: 54px 1fr; gap: 1.25rem; position: relative; padding-bottom: 1.5rem; }
.t13-timeline__item:last-child { padding-bottom: 0; }
.t13-timeline__item::before {
  content: ""; position: absolute; left: 26px; top: 60px; bottom: -6px; width: 2px;
  background: linear-gradient(var(--t13-line), transparent);
}
.t13-timeline__item:last-child::before { display: none; }
.t13-timeline__item:hover .t13-badge { transform: translateY(-2px); box-shadow: 0 16px 34px color-mix(in srgb, var(--t13-primary) 16%, transparent); }
.t13-timeline__card { padding: 16px 18px; }
.t13-timeline__card h3 { font-size: 1.125rem; margin-bottom: .35rem; }
.t13-timeline__card p { font-size: .875rem; color: var(--t13-muted); margin: 0; }
.t13-timeline__year { font-size: .8125rem; font-weight: 700; color: var(--t13-accent-ink); margin: 0 0 .1rem; }

/* ---------- 13. SPEECHES ---------- */
.t13-speeches__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); margin-top: 2.5rem; }
.t13-speech { border-radius: 18px; overflow: hidden; background: var(--t13-white); border: 1px solid var(--t13-line); transition: transform .22s var(--t13-ease-out), box-shadow .22s var(--t13-ease-out); display: block; }
.t13-speech:hover { transform: translateY(-4px); box-shadow: var(--t13-glass-shadow-hi); }
.t13-speech__media { aspect-ratio: 16/10; overflow: hidden; }
.t13-speech__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--t13-ease-out); }
.t13-speech:hover .t13-speech__media img { transform: scale(1.06); }
.t13-speech__body { padding: 1.25rem 1.25rem 1.5rem; }
.t13-speech__meta { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t13-accent-ink); margin: 0; }
.t13-speech__title { font-size: 1.1875rem; margin: .5rem 0 .5rem; line-height: 1.35; color: var(--t13-p-500); }

/* ---------- 14. VIDEO FILMSTRIP ---------- */
.t13-videos { overflow: hidden; }
.t13-videos .swiper { overflow: visible; }
.t13-vcard {
  position: relative; cursor: pointer; height: 100%;
  border-radius: 14px;
}
.t13-vcard__inner { position: relative; aspect-ratio: 3/4.15; overflow: hidden; background: var(--t13-p-100); border-radius: 14px; }
.t13-vcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--t13-ease-out); }
.t13-vcard:hover .t13-vcard__img { transform: scale(1.07); }
.t13-vcard__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--t13-p-900) 0%, color-mix(in srgb, var(--t13-p-900) 0%, transparent) 62%);
}
.t13-vcard__caption { position: absolute; inset: auto 0 0 0; padding: 8px 16px 16px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0; }
.t13-vcard__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transition: opacity .3s var(--t13-ease-ctrl);
}
.t13-vcard:hover .t13-vcard__play, .t13-vcard:focus-visible .t13-vcard__play { opacity: 1; }
.t13-vcard__play span {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.t13-videos__nav { display: flex; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* ---------- 15. GALLERY ---------- */
.t13-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 12px; margin-top: 2.5rem; }
.t13-gallery__item { overflow: hidden; border-radius: 14px; position: relative; }
/* 1 spans a 2x2 block; 2-5 fill the remaining 4 cells of those two rows;
   6 becomes a full-width panoramic strip. No orphan cells at any count. */
.t13-gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.t13-gallery__item:nth-child(6) { grid-column: 1 / -1; }
.t13-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--t13-ease-out); }
.t13-gallery__item:hover img { transform: scale(1.06); }
.t13-gallery__item::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: color-mix(in srgb, var(--t13-p-900) 35%, transparent);
  transition: opacity .3s var(--t13-ease-ctrl);
}
.t13-gallery__item:hover::after { opacity: 1; }

/* ---------- 16. QUOTE ---------- */
.t13-quote { background: var(--t13-wash); }
.t13-quote__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.t13-quote__avatar { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; border: 6px solid var(--t13-white); box-shadow: var(--t13-glass-shadow); flex: 0 0 168px; }
.t13-quote__avatar img { width: 100%; height: 100%; object-fit: cover; }
.t13-quote__text { font-size: clamp(1.5rem, 3.2vw, 3.75rem); line-height: 1.15; font-weight: 700; color: var(--t13-p-500); margin: 0; }
.t13-quote__stars { color: var(--t13-accent-ink); letter-spacing: .25em; font-size: 1.25rem; margin-bottom: 1rem; }
.t13-quote__cite { margin-top: 1.25rem; font-size: .9375rem; color: var(--t13-muted); }

/* ---------- 17. FOOTER ---------- */
.t13-footer { background: linear-gradient(180deg, var(--t13-p-050), var(--t13-white)); border-top: 1px solid var(--t13-line); }
.t13-footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(2.5rem, 5vh, 4rem); align-items: start; }
.t13-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.t13-footer__role { margin: 0; max-width: 34ch; color: var(--t13-muted); font-size: .9375rem; line-height: 1.55; }
.t13-footer h4 { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--t13-p-900); margin: 0 0 1.15rem; }
.t13-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.t13-footer a:hover { color: var(--t13-p-500); }

/* Follow Us — icon + label rows, aligned like the Quick Links / Contact columns */
.t13-footer .t13-footer__social-list a { display: inline-flex; align-items: center; gap: .6rem; }
.t13-footer__social-ico { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center; background: var(--t13-p-050); border: 1px solid var(--t13-line); color: var(--t13-p-500); font-size: 12px; transition: background-color .2s, color .2s; }
.t13-footer .t13-footer__social-list a:hover .t13-footer__social-ico,
.t13-footer .t13-footer__social-list a:focus-visible .t13-footer__social-ico { background: var(--t13-p-500); color: var(--t13-white); }

/* Contact — icon + text rows */
.t13-footer__contact li { display: flex; align-items: flex-start; gap: .6rem; }
.t13-footer .t13-footer__contact a { display: inline; }
.t13-footer__contact-ico { flex: 0 0 auto; margin-top: 1px; color: var(--t13-p-500); display: inline-flex; }

/* Legacy icon-circle row (kept so older markup still renders correctly) */
.t13-footer__socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.t13-footer__socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--t13-p-050); color: var(--t13-p-500); border: 1px solid var(--t13-line); transition: background-color .2s, color .2s, transform .2s; }
.t13-footer__socials a:hover { background: var(--t13-p-500); color: var(--t13-white); transform: translateY(-2px); }

/* Signature band — admin-configurable flourish between the columns and the copyright */
.t13-footer__sign { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.5rem); padding-block: 1.5rem; }
.t13-footer__sign::before, .t13-footer__sign::after { content: ""; flex: 1; height: 1px; background: var(--t13-line); }
.t13-footer__sign-img { max-height: 60px; width: auto; opacity: .92; }
.t13-footer__stars { color: var(--t13-accent-ink); letter-spacing: .3em; font-size: 1rem; }

.t13-footer__bottom { padding-block: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .875rem; color: var(--t13-muted); }

/* ---------- 18. BACK TO TOP ---------- */
.t13-totop {
  position: fixed; inset: auto 24px 24px auto; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
  color: var(--t13-white); background: var(--t13-p-500);
  box-shadow: var(--t13-glass-shadow); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--t13-ease-ctrl), transform .3s var(--t13-ease-ctrl), visibility .3s, background-color .2s;
}
.t13-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.t13-totop:hover { background: var(--t13-p-700); }

/* ---------- 19. VIDEO MODAL (phone-shaped) ---------- */
.t13-modal {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  padding: 1rem; opacity: 0; visibility: hidden;
  background: color-mix(in srgb, var(--t13-p-900) 78%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .3s var(--t13-ease-ctrl), visibility .3s;
}
.t13-modal.is-open { opacity: 1; visibility: visible; }
/* Portrait clips (Shorts/TikTok/Reels) fill a phone frame; landscape videos get
   a 16:9 frame instead of letterboxing into black bars. */
.t13-modal__phone {
  position: relative; width: min(360px, 92vw); aspect-ratio: 9/16; max-height: 86vh;
  border-radius: 28px; overflow: hidden; background: #000;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
  transform: scale(.94) translateY(12px);
  transition: transform .32s var(--t13-ease-circ);
}
.t13-modal__phone[data-orient="landscape"] {
  width: min(1000px, 94vw); aspect-ratio: 16/9; border-radius: 18px;
}
.t13-modal.is-open .t13-modal__phone { transform: none; }
.t13-modal__phone iframe { width: 100%; height: 100%; border: 0; }
.t13-modal__close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, transform .2s;
}
.t13-modal__close:hover { background: rgba(255,255,255,.3); transform: scale(1.08); }

/* ---------- 20. REVEALS (framer-motion parity, IntersectionObserver-driven) ---------- */
[data-reveal] { opacity: 0; will-change: transform, opacity; }
[data-reveal="up"]    { transform: translateY(20px); transition: opacity .5s var(--t13-ease-out), transform .5s var(--t13-ease-out); }
[data-reveal="left"]  { transform: translateX(-30px); transition: opacity 1s var(--t13-ease-circ), transform 1s var(--t13-ease-circ); }
[data-reveal="right"] { transform: translateX(30px);  transition: opacity 1s var(--t13-ease-circ), transform 1s var(--t13-ease-circ); }
[data-reveal="pop"]   { transform: scale(.9) translateY(20px); transition: opacity .5s var(--t13-ease-out), transform .5s var(--t13-ease-out); }
[data-reveal].is-in   { opacity: 1; transform: none; }

/* ---------- 21. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .t13-hero__grid, .t13-about__grid, .t13-timeline__grid { grid-template-columns: 1fr; }
  .t13-vision__grid { grid-template-columns: 1fr; }
  .t13-vision__chevrons { flex-direction: row; justify-content: center; }
  .t13-speeches__grid { grid-template-columns: repeat(2, 1fr); }
  .t13-impact__grid { grid-template-columns: repeat(2, 1fr); }
  .t13-footer__grid { grid-template-columns: 1fr 1fr; }
  .t13-footer__brand { grid-column: 1 / -1; }
  .t13-about__cols { columns: 1; }
  .t13-nav__links { display: none; }
  .t13-burger { display: block; }
  .t13-hero { min-height: auto; padding-bottom: 2rem; }
  .t13-hero__figure { order: -1; }
}
@media (max-width: 720px) {
  .t13-speeches__grid, .t13-impact__grid, .t13-footer__grid { grid-template-columns: 1fr; }
  .t13-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .t13-gallery__item:nth-child(6) { grid-column: span 2; }
  .t13-quote__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .t13-timeline__item { grid-template-columns: 44px 1fr; gap: .875rem; }
  .t13-badge { width: 44px; height: 44px; flex-basis: 44px; }
  .t13-timeline__item::before { left: 21px; top: 50px; }
  .t13-banner__text { white-space: normal; text-align: center; }
  .t13-banner__inner { flex-direction: column; }
}

/* Sideways reveals read badly on a phone and push the document wider before
   they land. Below the two-column breakpoint they become vertical. */
@media (max-width: 1024px) {
  [data-reveal="left"], [data-reveal="right"] {
    transform: translateY(20px);
    transition: opacity .5s var(--t13-ease-out), transform .5s var(--t13-ease-out);
  }
}

/* ---------- 21b. TYPE SCALE — small phones (≤480px) ----------
   .t13-h1/.t13-h2/.t13-h3's clamp()s only start climbing above ~690/830/920px
   viewport width (that's where the vw term first clears the min bound), so
   every phone from 320-767px currently renders the SAME flat floor
   (2.25rem/1.875rem/1.375rem). That's an acceptable display size down to
   ~480px, but on a 320-360px phone the same flat 36px h1 can wrap awkwardly
   against a ~288px content column. Redeclare each floor for ≤480 only, and
   cap the new clamp's max at the SAME value the base rule already floors
   to, so there's no seam at the 480px boundary — the desktop/tablet upper
   bound of every clamp (3.75rem/3rem/2.25rem) is completely untouched, and
   only phones narrower than ~420-430px actually render a smaller number. */
@media (max-width: 480px) {
  .t13-h1 { font-size: clamp(1.875rem, 8.5vw, 2.25rem); }
  .t13-h2 { font-size: clamp(1.625rem, 7vw, 1.875rem); }
  .t13-h3 { font-size: clamp(1.25rem, 5.5vw, 1.375rem); }

  /* Devanagari matras/conjuncts want a touch more vertical room than Latin
     at these smaller sizes than the global 1.35 (line 210) gives them;
     nudge leading up slightly on the narrowest phones only — desktop/tablet
     Nepali headings keep the existing 1.35. */
  :lang(ne) h1, :lang(ne) h2, :lang(ne) h3,
  .t13-ne h1, .t13-ne h2, .t13-ne h3 { line-height: 1.4; }
}

/* ---------- 22. A11Y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.t13-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* NOTE: `.t13-empty { display: none !important }` used to live here. Its only
   consumer is pages/_empty.blade.php, which pages.css styles `display: flex`
   (no !important) — so the !important always won and the inner-page empty state
   was invisible on every page. Removed: a tenant with a permission but no rows
   now sees the empty state instead of a blank page body. */
