/* ============================================================
   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 */
  --t13-p-400: color-mix(in srgb, var(--t13-primary) 42%, #a9cbf0);
  --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);

  /* 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: #53749e;
    --t13-p-300: #90a6c0; --t13-p-100: #dbe6f2; --t13-p-050: #eef3f9;
    --t13-wash: #f5f7fb; --t13-line: rgba(31,58,95,.12);
    --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);
  }
}

/* ---------- 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; }

/* ---------- 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); 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); 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); }

/* ---------- 7. HERO ---------- */
.t13-hero { padding-top: var(--t13-page-pt); min-height: calc(100vh - 140px); 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; }
.t13-hero__slide { display: none; }
.t13-hero__slide.is-active { display: block; 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); 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%); }
.t13-hero__flag { position: absolute; left: 50%; bottom: 4%; translate: -50% 0; width: 92%; animation: t13-wave 5s ease-in-out infinite; }
@keyframes t13-wave { 0%,100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-5px); } }

/* ---------- 8. STICKY BANNER ---------- */
.t13-banner {
  position: sticky; top: 0; z-index: 1;
  background: var(--t13-p-500); overflow: hidden;
}
.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); 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); }
.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,.8fr) minmax(0,1.2fr); }
.t13-timeline__stage {
  padding: clamp(2rem, 4vw, 3rem); display: grid; place-items: center;
  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%);
}
.t13-timeline__stage img { border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.32); max-width: 100%; }
.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); 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); 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-right: 1px solid rgba(255,255,255,.2);
}
.t13-vcard__inner { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--t13-p-100); }
.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); 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: 2fr 1fr 1fr 1.4fr; gap: clamp(1.5rem, 3vw, 3rem); padding-block: clamp(2.5rem, 5vh, 4rem); }
.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 1rem; }
.t13-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.t13-footer a:hover { color: var(--t13-p-500); }
.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); }
.t13-footer__bottom { border-top: 1px solid var(--t13-line); padding-block: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .875rem; color: var(--t13-muted); }
.t13-footer__stars { color: var(--t13-accent); letter-spacing: .2em; }

/* ---------- 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-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);
  }
}

/* ---------- 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; }
.t13-empty { display: none !important; }
