/* =====================================================================
   PYRAMID INTERNATIONAL SCHOOL — Design System v3
   ---------------------------------------------------------------------
   Rebrand: change only the BRAND tokens in :root.
   ===================================================================== */

/* ---------- BRAND TOKENS ---------- */
:root {
  /* Primary — royal blue */
  --brand-950: #0a1c44;
  --brand-900: #0e2a63;
  --brand-800: #133a86;
  --brand-700: #1b4bb0;
  --brand-600: #2563d6;
  /* primary */
  --brand-500: #4785ef;
  --brand-400: #7aa9f6;
  --brand-300: #aecbfb;

  /* Violet — used in gradients */
  --violet-700: #4c2a86;
  --violet-600: #6b34b8;
  --violet-500: #8b47e0;

  /* Accent — gold */
  --gold-600: #c8860a;
  --gold-500: #f0a819;
  --gold-400: #ffc559;

  /* Pop — coral (sparingly) */
  --coral-600: #e0492e;
  --coral-500: #ff5d47;
  --coral-400: #ff8a73;

  /* Neutrals */
  --ink-950: #0b1220;
  --ink-900: #121826;
  --ink-700: #2c3444;
  --ink-500: #5b6577;
  --ink-400: #838da0;
  --ink-300: #9aa3b2;
  --line: #e5e8f0;
  --paper: #ffffff;
  --paper-2: #f5f7fc;
  --paper-3: #eceff8;

  /* Semantic */
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --text: #121826;
  --text-soft: #5b6577;
  --primary: var(--brand-600);
  --primary-ink: #ffffff;
  --accent: var(--gold-500);
  --pop: var(--coral-500);
  --border: var(--line);
  --card-bg: #ffffff;

  --grad-hero: linear-gradient(120deg, #0a1c44 0%, #133a86 38%, #4c2a86 72%, #6b34b8 100%);
  --grad-cta: linear-gradient(120deg, var(--brand-800), var(--violet-600));
  --grad-accent: linear-gradient(120deg, var(--gold-500), var(--coral-500));

  /* Typography */
  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.10rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.30rem + 1vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.8vw, 3rem);
  --step-4: clamp(2.4rem, 1.85rem + 2.9vw, 4.2rem);
  --step-5: clamp(3rem, 2.1rem + 4.6vw, 6rem);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 63, .06), 0 2px 8px rgba(14, 26, 63, .06);
  --shadow-md: 0 8px 24px rgba(14, 26, 63, .10), 0 3px 8px rgba(14, 26, 63, .06);
  --shadow-lg: 0 30px 70px rgba(11, 31, 58, .22);
  --shadow-glow: 0 10px 40px rgba(37, 99, 214, .35);

  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --nav-h: 78px;

  --ease: cubic-bezier(.16, .84, .44, 1);
  --ease-out-back: cubic-bezier(.34, 1.56, .64, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c;
    --bg-alt: #0f1626;
    --text: #eef2fb;
    --text-soft: #9aa6bd;
    --primary: var(--brand-400);
    --primary-ink: #06101f;
    --border: #1e293f;
    --paper: #0d1424;
    --paper-2: #111a2c;
    --paper-3: #16203a;
    --card-bg: #0e1626;
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, .55);
  }
}

:root[data-theme="dark"] {
  --bg: #0a0f1c;
  --bg-alt: #0f1626;
  --text: #eef2fb;
  --text-soft: #9aa6bd;
  --primary: var(--brand-400);
  --primary-ink: #06101f;
  --border: #1e293f;
  --paper: #0d1424;
  --paper-2: #111a2c;
  --paper-3: #16203a;
  --card-bg: #0e1626;
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .55);
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  user-select: none;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Videos play automatically, muted and looping — no play button or controls.
   Slider videos keep pointer events for the sound toggle overlay. */
video:not([controls]) {
  pointer-events: none;
}

video:not([controls])::-webkit-media-controls,
video:not([controls])::-webkit-media-controls-enclosure,
video:not([controls])::-webkit-media-controls-panel,
video:not([controls])::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.mslide video {
  pointer-events: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul[role="list"] {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.bg-alt {
  background: var(--bg-alt);
}

.stack>*+* {
  margin-top: 1rem;
}

.grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.is-hidden {
  display: none !important;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .eyebrow {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lede {
  font-size: var(--step-1);
  color: var(--text-soft);
  max-width: 60ch;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---------- BUTTONS ---------- */
.btn {
  --_bg: var(--primary);
  --_fg: var(--primary-ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: .01em;
  background: var(--_bg);
  color: var(--_fg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s, color .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(-1px);
}

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.btn--ghost:hover {
  --_bg: var(--primary);
  --_fg: #fff;
  border-color: var(--primary);
}

.btn--accent {
  --_bg: var(--accent);
  --_fg: #241704;
}

.btn--accent:hover {
  --_bg: var(--gold-400);
  --_fg: #241704;
}

.btn--pop {
  --_bg: var(--pop);
  --_fg: #fff;
}

.btn--pop:hover {
  --_bg: var(--coral-600);
  --_fg: #fff;
}

/* ghost buttons placed on dark backgrounds (hero, page header, CTA band) */
.hero .btn--ghost,
.page-header .btn--ghost,
.cta-band .btn--ghost {
  --_bg: rgba(255, 255, 255, .08);
  --_fg: #fff;
  border-color: rgba(255, 255, 255, .55);
}

.hero .btn--ghost:hover,
.page-header .btn--ghost:hover,
.cta-band .btn--ghost:hover {
  --_bg: #fff;
  --_fg: var(--brand-800);
  border-color: #fff;
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: var(--step-0);
}

.btn--block {
  width: 100%;
}

/* ---------- HEADER + GROUPED NAV ---------- */
#site-header {
  display: block;
  min-height: var(--nav-h);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s, height .3s;
}

.site-header.is-stuck {
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(14, 26, 63, .08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  flex: none;
}

.brand img {
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.brand .brand__mark {
  display: grid;
  place-items: center;
  height: 46px;
  width: 46px;
  border-radius: 12px;
  background: var(--grad-hero);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-sans);
}

.brand small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .55rem .7rem;
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color .2s, background .2s;
}

@media (min-width: 1200px) and (max-width: 1340px) {
  .nav-link {
    padding: .5rem .55rem;
    font-size: .84rem;
  }
}

/* the header "WhatsApp" pill is redundant with the floating button — only show it when there's room */
@media (max-width: 1340px) {
  .nav-actions .btn--ghost {
    display: none;
  }
}

.nav-link .caret {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease);
}

.nav-link:hover,
.nav-item:hover .nav-link,
.nav-link[aria-current="page"],
.nav-item.is-active>.nav-link {
  color: var(--text);
  background: var(--bg-alt);
}

.nav-item:hover .nav-link .caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  transform: translateY(8px);
  min-width: 240px;
  max-width: min(280px, 90vw);
  padding: .5rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}

/* keep the last dropdowns from spilling off the right edge */
.nav-item:nth-last-child(-n+3) .nav-dropdown {
  left: auto;
  right: 0;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: .7rem .9rem;
  border-radius: 10px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--text-soft);
  transition: background .18s, color .18s, padding-left .18s;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  background: var(--bg-alt);
  color: var(--primary);
  padding-left: 1.2rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform .3s var(--ease), opacity .2s;
  border-radius: 2px;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg) translateY(-1px);
}

@media (max-width: 1199px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-actions .btn--ghost {
    display: none;
  }

  .nav-list {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-115%);
    transition: transform .45s var(--ease);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }

  .nav-list.is-open {
    transform: translateY(0);
  }

  .nav-link {
    padding: .95rem 1rem;
    font-size: var(--step-0);
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    left: auto;
    right: auto;
    max-width: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    margin: 0 0 .4rem .8rem;
    padding: 0 0 0 .4rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
  }

  .nav-item.is-open .nav-dropdown {
    max-height: 600px;
  }

  .nav-item.is-open .nav-link .caret {
    transform: rotate(180deg);
  }
}

/* ---------- SCROLL PROGRESS + BACK TO TOP ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: var(--grad-accent);
  box-shadow: 0 0 12px rgba(240, 168, 25, .6);
  transition: width .1s linear;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: calc(92px + var(--fab-lift));
  z-index: 91;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--grad-accent);
  color: #241704;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(240, 168, 25, .45), 0 4px 10px rgba(14, 26, 63, .2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px) scale(.7);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease-out-back), box-shadow .25s var(--ease);
}

.back-to-top svg {
  width: 26px;
  height: 26px;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  animation: bttBob 2.4s ease-in-out infinite;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 18px 40px rgba(240, 168, 25, .6), 0 6px 14px rgba(14, 26, 63, .25);
  animation-play-state: paused;
}

@keyframes bttBob {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -5px;
  }
}

@media (max-width: 520px) {
  .back-to-top {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: calc(84px + var(--fab-lift));
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 13vw, 10rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero__bg-fallback {
  position: absolute;
  inset: -20%;
  z-index: -3;
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: gradientShift 18s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  right: -12%;
  top: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 168, 25, .35), transparent 68%);
  animation: floaty 12s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 14, 28, .28), rgba(6, 14, 28, .72));
}

.hero__blob {
  position: absolute;
  z-index: -2;
  border-radius: 46% 54% 60% 40% / 55% 45% 55% 45%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 71, 224, .5), transparent 70%);
  filter: blur(8px);
  animation: floaty 16s ease-in-out infinite reverse;
}

.hero__blob--1 {
  width: 380px;
  height: 380px;
  left: -8%;
  bottom: -18%;
}

.hero__blob--2 {
  width: 240px;
  height: 240px;
  left: 40%;
  top: -14%;
  animation-duration: 20s;
}

@keyframes floaty {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(24px, -30px) rotate(8deg);
  }

  66% {
    transform: translate(-18px, 18px) rotate(-6deg);
  }
}

.hero,
.hero * {
  color: #fff;
}

.hero .eyebrow {
  -webkit-text-fill-color: initial;
  color: var(--gold-400);
  background: none;
}

.hero .eyebrow::before {
  background: var(--gold-400);
}

.hero h1 {
  max-width: 18ch;
  margin-block: 1rem .8rem;
}

.hero .lede {
  color: rgba(255, 255, 255, .85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
}

.hero__stat span {
  font-size: var(--step--1);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

/* word-mask reveal for hero heading */
.reveal-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.reveal-mask>span {
  display: inline-block;
  transform: translateY(110%);
  animation: maskUp .9s var(--ease) forwards;
}

.reveal-mask:nth-child(2)>span {
  animation-delay: .08s;
}

.reveal-mask:nth-child(3)>span {
  animation-delay: .16s;
}

.reveal-mask:nth-child(4)>span {
  animation-delay: .24s;
}

.reveal-mask:nth-child(5)>span {
  animation-delay: .32s;
}

@keyframes maskUp {
  to {
    transform: translateY(0);
  }
}

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-header {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  overflow: hidden;
  background-image: url("../assets/img/page-header-banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* dark scrim over the banner so the white breadcrumb / title / text stay readable */
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, rgba(11, 18, 32, .55), rgba(11, 18, 32, .72));
}

.page-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  top: -50%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 168, 25, .32), transparent 70%);
  animation: floaty 14s ease-in-out infinite;
}

.page-header,
.page-header * {
  color: #fff;
}

.page-header .eyebrow {
  -webkit-text-fill-color: initial;
  color: var(--gold-400);
  background: none;
}

.page-header .eyebrow::before {
  background: var(--gold-400);
}

.page-header p {
  color: rgba(255, 255, 255, .82);
  max-width: 58ch;
  margin-top: .8rem;
}

.crumbs {
  display: flex;
  gap: .5rem;
  font-size: var(--step--1);
  color: rgba(255, 255, 255, .68);
  margin-bottom: 1rem;
}

.crumbs a:hover {
  color: #fff;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 1rem;
  transition: transform .35s var(--ease-out-back), background .3s;
}

.card:hover .card__icon {
  transform: translateY(-3px) scale(1.08) rotate(-4deg);
  background: var(--grad-accent);
  color: #241704;
}

.card h3 {
  margin-bottom: .4rem;
}

.card p {
  color: var(--text-soft);
  font-size: var(--step--1);
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

/* ---------- FEATURE SPLIT ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.split--reverse .split__media {
  order: 2;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }
}

.split__media img,
.split__media video {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
  background: linear-gradient(145deg, var(--brand-800), var(--violet-600));
}

/* portrait people-photos: keep the face in frame instead of cropping to landscape */
.split__media.split__media--portrait img,
.split__media.split__media--portrait video {
  aspect-ratio: 3 / 4;
  max-width: 380px;
  margin-inline: auto;
  object-position: top center;
}

/* documents / diagrams (calendar, poster, chart): show the whole image, never crop */
.split__media.split__media--doc img,
.split__media.split__media--doc video {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: var(--paper);
}

.tick-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .85rem;
  margin-top: 1.4rem;
}

.tick-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: var(--step--1);
}

.tick-list svg {
  flex: none;
  color: var(--primary);
  margin-top: .2rem;
}

/* ---------- PROSE ---------- */
.prose {
  max-width: 72ch;
}

.prose>*+* {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 2.4rem;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  display: grid;
  gap: .5rem;
}

.prose li {
  color: var(--text-soft);
}

.prose strong {
  color: var(--text);
}

/* ---------- CHIPS / FILTER ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.chip {
  padding: .55rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .2s var(--ease);
}

.chip:hover {
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-2px);
}

.chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: .65rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.empty-state {
  text-align: center;
  color: var(--text-soft);
  padding: 3rem 1rem;
}

/* ---------- PROFILE / PEOPLE ---------- */
.people-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.profile {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.profile__photo {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
  background: var(--paper-3);
  transition: transform .5s var(--ease);
}

.profile:hover .profile__photo {
  transform: scale(1.05);
}

.profile__body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}

.profile__body h3 {
  font-size: var(--step-0);
}

.profile__role {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--step--1);
}

.profile__meta {
  color: var(--text-soft);
  font-size: var(--step--1);
}

.profile__link {
  margin-top: auto;
  padding-top: .8rem;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--primary);
}

.profile-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: start;
}

@media (max-width: 760px) {
  .profile-detail {
    grid-template-columns: 1fr;
  }
}

.profile-detail img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* ---------- TIMELINE ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 1.7rem;
  padding-left: 3.5rem;
}

/* subtle static track — sits well clear of the text */
.timeline::before {
  content: "";
  position: absolute;
  left: -17px;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--primary) 28%, transparent),
      color-mix(in srgb, var(--violet-500) 20%, transparent));
}

/* one glowing ball travelling up & down the track, continuously */
.timeline::after {
  content: "";
  position: absolute;
  left: 0;
  top: .3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--primary) 62%);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 13%, transparent),
    0 0 16px 3px color-mix(in srgb, var(--primary) 48%, transparent);
  animation: timelineBall 3s cubic-bezier(.45, .05, .55, .95) infinite alternate;
  z-index: 2;
}

@keyframes timelineBall {
  from {
    top: .3rem;
  }

  to {
    top: calc(100% - .3rem - 14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline::after {
    display: none;
  }
}

/* milestone nodes — hollow rings read cleaner than solid blobs */
.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-3.5rem + 1px);
  top: .5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.timeline b {
  font-family: var(--font-display);
  font-size: var(--step-1);
  display: block;
}

.timeline p {
  color: var(--text-soft);
  font-size: var(--step--1);
  margin-top: .15rem;
}

/* ---------- FOUNDER / CHAIRMAN'S MESSAGE ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: start;
  margin: 0;
  padding: clamp(1.6rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  /* gradient hairline border that doesn't bleed onto the fill */
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(135deg, var(--primary), var(--violet-500) 55%, var(--gold-500)) border-box;
}

/* oversized watermark quotation mark, gently drifting */
.founder::before {
  content: "\201C";
  position: absolute;
  top: clamp(-2rem, -3vw, -.6rem);
  left: clamp(.4rem, 3vw, 1.8rem);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  font-size: clamp(6.5rem, 15vw, 12rem);
  color: color-mix(in srgb, var(--primary) 11%, transparent);
  pointer-events: none;
  z-index: 0;
  animation: founderFloat 9s ease-in-out infinite;
}

@keyframes founderFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(10px) rotate(-2deg);
  }
}

@media (max-width: 780px) {
  .founder {
    grid-template-columns: 1fr;
  }
}

/* --- richer entrance: soft blur-in card, then portrait, caption & a light sheen --- */
.founder[data-reveal] {
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  filter: blur(7px);
}

.founder[data-reveal].is-visible {
  filter: blur(0);
}

.founder__portrait {
  opacity: 0;
  transform: scale(.93) translateY(16px);
  transition: opacity .8s .12s var(--ease), transform .8s .12s var(--ease-out-back);
}

.founder.is-visible .founder__portrait {
  opacity: 1;
  transform: none;
}

.founder__id {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s .34s var(--ease), transform .7s .34s var(--ease);
}

.founder.is-visible .founder__id {
  opacity: 1;
  transform: none;
}

/* one-time diagonal light sweep across the card as it appears */
.founder::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 34%,
      color-mix(in srgb, #fff 50%, transparent) 48%, transparent 62%);
  transform: translateX(-130%);
  opacity: 0;
}

.founder.is-visible::after {
  animation: founderSheen 1.5s .4s var(--ease) 1;
}

@keyframes founderSheen {
  0% {
    transform: translateX(-130%);
    opacity: 0;
  }

  22% {
    opacity: 1;
  }

  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .founder[data-reveal] {
    filter: none;
  }

  .founder__portrait,
  .founder__id {
    opacity: 1;
    transform: none;
  }

  .founder.is-visible::after {
    animation: none;
  }
}

/* aside: portrait + identity */
.founder__aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  z-index: 1;
}

@media (max-width: 780px) {
  .founder__aside {
    position: static;
  }
}

.founder__portrait {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, var(--brand-800), var(--violet-600));
}

.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}

.founder:hover .founder__portrait img {
  transform: scale(1.045);
}

.founder__portrait.is-empty {
  display: grid;
  place-items: center;
}

.founder__portrait.is-empty::after {
  content: "PIS";
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .92);
}

.founder__id::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: .1rem auto .7rem;
  border-radius: 3px;
  background: var(--grad-accent);
}

.founder__id b {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--text);
  display: block;
}

.founder__id span {
  color: var(--text-soft);
  font-size: var(--step--1);
}

/* the letter */
.founder__letter {
  margin: 0;
  position: relative;
  z-index: 1;
}

.founder__letter p {
  color: var(--text-soft);
  line-height: 1.78;
  max-width: 62ch;
  margin-top: 1rem;
}

.founder__letter p.founder__lede {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--text);
}

.founder__letter .hl {
  background: linear-gradient(120deg,
      color-mix(in srgb, var(--gold-500) 34%, transparent),
      color-mix(in srgb, var(--gold-500) 12%, transparent));
  color: var(--text);
  font-weight: 600;
  padding: .05em .32em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.founder__sign {
  margin-top: 1.8rem !important;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.founder__sign span {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--text);
}

.founder__sign span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.28rem;
  height: 3px;
  width: 0;
  border-radius: 3px;
  background: var(--grad-accent);
}

.founder.is-visible .founder__sign span::after {
  animation: signGrow .9s .55s var(--ease) forwards;
}

@keyframes signGrow {
  to {
    width: 66px;
  }
}

.founder__sign em {
  display: block;
  margin-top: .5rem;
  font-style: normal;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: .02em;
  color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .founder::before {
    animation: none;
  }

  .founder.is-visible .founder__sign span::after {
    animation: none;
    width: 66px;
  }
}

/* mirrored variant — portrait on the right, for alternating stacked messages */
.founder--flip {
  grid-template-columns: 1fr minmax(220px, 300px);
}

.founder--flip .founder__aside {
  order: 2;
}

.founder--flip .founder__letter {
  order: 1;
}

.founder--flip::before {
  left: auto;
  right: clamp(.4rem, 3vw, 1.8rem);
}

@media (max-width: 780px) {
  .founder--flip {
    grid-template-columns: 1fr;
  }

  .founder--flip .founder__aside {
    order: 0;
  }
}

/* ---------- NEWS ---------- */
.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.news-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 760px) {
  .news-grid--2 {
    grid-template-columns: 1fr;
  }
}

.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.post__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--paper-3);
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

.post__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(145deg, var(--brand-800), var(--violet-600));
}

.post:hover .post__media img {
  transform: scale(1.06);
}

.post__body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.post__meta {
  font-size: var(--step--1);
  color: var(--text-soft);
  display: flex;
  gap: .6rem;
  align-items: center;
}

.tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: .25rem .6rem;
  border-radius: var(--radius-pill);
}

.post h3 {
  font-size: var(--step-1);
}

.post__body .more {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary);
  font-size: var(--step--1);
}

/* ---------- GALLERY + LIGHTBOX ---------- */
.gallery-grid {
  columns: 3 240px;
  column-gap: 1rem;
}

.gallery-grid figure {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  position: relative;
}

.gallery-grid img {
  width: 100%;
  transition: transform .5s var(--ease);
  background: var(--paper-3);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-grid figure:hover img {
  transform: scale(1.07);
}

.gallery-grid figure.figure--video {
  cursor: default;
}

.gallery-grid figure video {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: linear-gradient(145deg, var(--brand-800), var(--violet-600));
}

.gallery-grid figure.figure--video figcaption {
  pointer-events: none;
}

.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem .9rem .7rem;
  font-size: var(--step--1);
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 4vw;
  background: rgba(5, 10, 20, .92);
  backdrop-filter: blur(4px);
}

.lightbox.is-open {
  display: grid;
  animation: fadeIn .25s ease;
}

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: zoomIn .3s var(--ease-out-back);
}

.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, .3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(.9);
  }
}

.video-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.video-embed {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 0;
  width: 100%;
  background: var(--paper-3);
}

/* ---------- TESTIMONIAL CAROUSEL ---------- */
.tcarousel {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
}

.tcarousel__track {
  position: relative;
  min-height: 360px;
}

.tslide {
  flex: 0 0 100%;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  text-align: center;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tslide.is-active {
  opacity: 1;
  transform: scale(1);
  position: relative;
  pointer-events: auto;
}

.tslide__quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
}

.tslide p {
  font-size: var(--step-1);
  max-width: 60ch;
  margin: .5rem auto 1.4rem;
}

.tslide img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto .8rem;
}

.tslide__name {
  font-weight: 700;
}

.tslide__meta {
  color: var(--text-soft);
  font-size: var(--step--1);
}

.tslide__stars {
  color: var(--accent);
  letter-spacing: .15em;
  margin-bottom: .8rem;
}

/* Urdu / Arabic-script testimonials need more vertical space and a larger size */
[lang="ur"] {
  line-height: 2;
  font-size: 1.12em;
  font-family: "Segoe UI", "Noto Naskh Arabic", "Jameel Noori Nastaleeq", "Traditional Arabic", serif;
}

.tcarousel__nav {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.4rem;
}

.tcarousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.tcarousel__dot.is-active {
  background: var(--primary);
  transform: scale(1.4);
}

.tcarousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background .2s, border-color .2s;
}

.tcarousel__arrow:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
}

.tcarousel__arrow--prev {
  left: -10px;
}

.tcarousel__arrow--next {
  right: -10px;
}

@media (max-width: 720px) {
  .tcarousel__arrow {
    width: 40px;
    height: 40px;
  }
  .tcarousel__arrow--prev {
    left: 4px;
  }
  .tcarousel__arrow--next {
    right: 4px;
  }
  /* keep the quote text clear of the side arrows */
  .tslide {
    padding-inline: 3.4rem;
  }
}

/* ---------- TABLES (disclosure) ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  min-width: 560px;
}

table.data caption {
  text-align: left;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: var(--step-1);
  background: var(--bg-alt);
}

table.data th,
table.data td {
  padding: .85rem 1.2rem;
  text-align: left;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

table.data thead th {
  background: var(--bg-alt);
  font-size: var(--step--1);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

table.data tbody tr:hover {
  background: var(--bg-alt);
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--primary);
}

.badge-todo {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: color-mix(in srgb, var(--gold-500) 18%, transparent);
  padding: .2rem .55rem;
  border-radius: var(--radius-pill);
}

/* ---------- FACULTY / STAFF TABLE ---------- */
.chip__count { margin-left: .35rem; font-weight: 700; opacity: .5; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__count { opacity: .8; }

.staff-wrap {
  max-height: min(74vh, 760px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.staff-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.staff-wrap::-webkit-scrollbar-track { background: var(--bg); }
.staff-wrap::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 32%, var(--border));
  border-radius: 10px; border: 2px solid var(--bg);
}

table.staff-table { min-width: 760px; }
table.staff-table thead th {
  position: sticky; top: 0; z-index: 3;
  background: linear-gradient(120deg, var(--brand-800), var(--violet-600));
  color: #fff; border-top: 0;
  box-shadow: inset 0 -1px 0 color-mix(in srgb, #fff 22%, transparent),
              0 12px 20px -14px rgba(0, 0, 0, .55);
}
table.staff-table thead .col-no { color: rgba(255, 255, 255, .72); }
table.staff-table .col-no {
  width: 3.2rem; text-align: right;
  color: var(--text-soft); font-variant-numeric: tabular-nums;
}
table.staff-table tbody .staff-name { font-weight: 600; color: var(--text); }
table.staff-table tbody td:nth-child(3),
table.staff-table tbody td:nth-child(4) {
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-soft);
}

/* staggered row entrance (only once the wrap reveals; rows stay visible if JS is off) */
table.staff-table tbody tr { position: relative; transition: background .18s var(--ease); }
.staff-wrap.is-visible table.staff-table tbody tr {
  animation: staffRowIn .5s var(--ease) both;
  animation-delay: calc(var(--r, 0) * 38ms);
}
@keyframes staffRowIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.staff-wrap table.staff-table tbody tr:hover { background: color-mix(in srgb, var(--primary) 8%, var(--bg)); }
table.staff-table tbody td:first-child { overflow: hidden; }
table.staff-table tbody td:first-child::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-accent);
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.staff-wrap table.staff-table tbody tr:hover td:first-child::before { transform: scaleX(1); }

/* designation badges */
.role-badge {
  display: inline-block; padding: .24rem .62rem; border-radius: var(--radius-pill);
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; border: 1px solid transparent; transition: transform .18s var(--ease);
}
.staff-wrap table.staff-table tbody tr:hover .role-badge { transform: scale(1.05); }
.role-lead    { color: var(--gold-600);   background: color-mix(in srgb, var(--gold-500) 16%, transparent);   border-color: color-mix(in srgb, var(--gold-500) 40%, transparent); }
.role-tgt     { color: var(--brand-700);  background: color-mix(in srgb, var(--brand-600) 12%, transparent);  border-color: color-mix(in srgb, var(--brand-600) 34%, transparent); }
.role-prt     { color: var(--violet-600); background: color-mix(in srgb, var(--violet-500) 13%, transparent); border-color: color-mix(in srgb, var(--violet-500) 34%, transparent); }
.role-ntt     { color: #0e7c70;           background: color-mix(in srgb, #14b8a6 15%, transparent);            border-color: color-mix(in srgb, #14b8a6 36%, transparent); }
.role-support { color: var(--coral-600);  background: color-mix(in srgb, var(--coral-500) 13%, transparent);  border-color: color-mix(in srgb, var(--coral-500) 34%, transparent); }

/* legend under the table */
.table-legend {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
  margin-top: 1rem; font-size: var(--step--1); color: var(--text-soft);
}
.table-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.table-legend .lg { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.lg-lead { background: var(--gold-500); }
.lg-tgt { background: var(--brand-600); }
.lg-prt { background: var(--violet-500); }
.lg-ntt { background: #14b8a6; }
.lg-support { background: var(--coral-500); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .role-lead { color: var(--gold-400); }
  :root:not([data-theme="light"]) .role-tgt { color: var(--brand-300); }
  :root:not([data-theme="light"]) .role-prt { color: #cbb2f2; }
  :root:not([data-theme="light"]) .role-ntt { color: #5ed3c6; }
  :root:not([data-theme="light"]) .role-support { color: var(--coral-400); }
}
:root[data-theme="dark"] .role-lead { color: var(--gold-400); }
:root[data-theme="dark"] .role-tgt { color: var(--brand-300); }
:root[data-theme="dark"] .role-prt { color: #cbb2f2; }
:root[data-theme="dark"] .role-ntt { color: #5ed3c6; }
:root[data-theme="dark"] .role-support { color: var(--coral-400); }

@media (prefers-reduced-motion: reduce) {
  table.staff-table tbody tr { opacity: 1; transform: none; animation: none; }
}

/* ---------- STATS STRIP ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-strip div {
  background: var(--bg);
  padding: 1.6rem 1.2rem;
  text-align: center;
}

.stat-strip b {
  font-family: var(--font-display);
  font-size: var(--step-3);
  display: block;
  color: var(--primary);
}

.stat-strip span {
  font-size: var(--step--1);
  color: var(--text-soft);
}

/* ---------- RESULT BOARDS (leaderboard style, animated bars) ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.result-board {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.result-board__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .6rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(120deg, var(--brand-800), var(--violet-600));
  color: #fff;
}
.result-board__head h3 {
  color: #fff;
  font-size: var(--step-1);
}
.result-board__head span {
  font-size: var(--step--1);
  opacity: .82;
  text-align: right;
}

.result-list {
  list-style: none;
  margin: 0;
  padding: .5rem .7rem;
}
.result-list li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: .7rem;
  padding: .65rem .5rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
.result-list li:last-child {
  border-bottom: 0;
}
.result-list .rk {
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: .78rem;
  background: var(--bg-alt);
  color: var(--text-soft);
}
.result-list li:nth-child(1) .rk {
  background: var(--grad-accent);
  color: #241704;
}
.result-list li:nth-child(2) .rk {
  background: color-mix(in srgb, #c0c7d1 55%, var(--bg-alt));
  color: var(--text);
}
.result-list li:nth-child(3) .rk {
  background: color-mix(in srgb, #cd7f32 45%, var(--bg-alt));
  color: var(--text);
}
.result-list .nm {
  font-weight: 600;
}
.result-list .sc {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--primary);
}
.result-list .bar {
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .5rem;
  height: 4px;
  border-radius: 4px;
  background: var(--bg-alt);
  overflow: hidden;
}
.result-list .bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--violet-500));
}
.result-board.is-visible .bar::after {
  width: calc(var(--score, 0) * 1%);
  transition: width 1.1s var(--ease) .25s;
}

@media (prefers-reduced-motion: reduce) {
  .result-board.is-visible .bar::after { transition: none; }
}

/* ---------- TABS ---------- */
.tabs {
  display: flex;
  gap: .3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab {
  padding: .8rem 1.1rem;
  border: none;
  background: none;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s;
}

.tab[aria-selected="true"] {
  color: var(--primary);
  border-color: var(--primary);
}

.tabpanel[hidden] {
  display: none;
}

/* ---------- FORMS ---------- */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-md);
}

.field {
  display: grid;
  gap: .4rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: var(--step--1);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.form-note {
  font-size: var(--step--1);
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.form-note code,
.owner-note code,
.prose code {
  background: var(--paper-3);
  padding: .1em .4em;
  border-radius: 5px;
  font-size: .9em;
  overflow-wrap: anywhere;
}

.owner-note {
  overflow-wrap: anywhere;
}

.form-status {
  margin-top: 1rem;
  padding: .9rem 1.1rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--text);
  font-size: var(--step--1);
}

/* ---------- FORM ACKNOWLEDGEMENT (animated "submitted" panel) ---------- */
.form-ack {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--paper); box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 4vw, 2.3rem); text-align: center;
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.form-ack.is-in { opacity: 1; transform: none; }

.form-ack__check svg { width: 68px; height: 68px; display: block; margin: 0 auto .7rem; }
.fac-ring {
  fill: color-mix(in srgb, var(--primary) 10%, transparent);
  stroke: var(--primary); stroke-width: 3;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: facRing .55s var(--ease) forwards;
}
.fac-tick {
  fill: none; stroke: var(--primary); stroke-width: 4.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 44; stroke-dashoffset: 44;
  animation: facTick .4s .5s var(--ease) forwards;
}
@keyframes facRing { to { stroke-dashoffset: 0; } }
@keyframes facTick { to { stroke-dashoffset: 0; } }

.form-ack__msg {
  display: flex; gap: .9rem; align-items: flex-start;
  text-align: left; max-width: 470px; margin: 0 auto;
}
.form-ack__avatar {
  position: relative; flex: none; width: 52px; height: 52px;
  border-radius: 50%; overflow: hidden;
  background: var(--grad-cta); box-shadow: var(--shadow-sm);
}
.form-ack__avatar::after {
  content: "PIS"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: .74rem; letter-spacing: .06em;
}
.form-ack__avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.form-ack__msg b { font-family: var(--font-display); font-size: var(--step-1); display: block; }
.form-ack__msg p { color: var(--text-soft); font-size: var(--step--1); margin-top: .25rem; }
.form-ack__sign { display: block; margin-top: .5rem; font-size: var(--step--1); font-weight: 600; color: var(--primary); }

.form-ack__summary {
  margin: 1.4rem auto 0; max-width: 470px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.form-ack__row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; }
.form-ack__row:not(:last-child) { border-bottom: 1px solid var(--border); }
.form-ack__row dt {
  padding: .55rem .8rem; font-weight: 600; font-size: var(--step--1);
  background: var(--bg-alt); color: var(--text-soft);
}
.form-ack__row dd { padding: .55rem .8rem; font-size: var(--step--1); word-break: break-word; }
.form-ack__again { margin-top: 1.4rem; }

.form-ack__confetti { position: absolute; left: 50%; top: 46px; width: 0; height: 0; pointer-events: none; }
.form-ack__confetti i {
  position: absolute; left: 0; top: 0; width: 8px; height: 13px; border-radius: 2px;
  background: hsl(var(--hue, 210) 85% 58%);
  transform: translate(-50%, -50%);
  animation: facConfetti var(--dur, .8s) var(--delay, 0s) cubic-bezier(.2, .6, .35, 1) forwards;
}
@keyframes facConfetti {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + 180px)) rotate(var(--rot, 200deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .form-ack { transition: none; opacity: 1; transform: none; }
  .fac-ring, .fac-tick { animation: none; stroke-dashoffset: 0; }
  .form-ack__confetti { display: none; }
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-list {
  display: grid;
  gap: 1.1rem;
  margin: 1.4rem 0;
}

.contact-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  list-style: none;
}

.contact-list svg {
  flex: none;
  color: var(--primary);
  margin-top: .15rem;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper-3);
}

/* ---------- FEATURE LIST ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.feature-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: transform .3s var(--ease), border-color .3s;
}

.feature-list li:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.feature-list svg {
  flex: none;
  color: var(--primary);
  margin-top: .1rem;
}

.feature-list b {
  display: block;
  font-size: var(--step-0);
}

.feature-list span {
  color: var(--text-soft);
  font-size: var(--step--1);
}

/* ---------- CTA BAND ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--grad-cta);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 6vw, 4rem);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -60px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .15), transparent 70%);
}

.cta-band,
.cta-band * {
  color: #fff;
}

.cta-band h2 {
  max-width: 22ch;
  margin: 0 auto .7rem;
}

.cta-band p {
  color: rgba(255, 255, 255, .85);
  max-width: 52ch;
  margin: 0 auto 1.8rem;
}

/* .cta-band .btn--ghost styling is handled in the BUTTONS section (dark-background ghost rules) */

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--text-soft);
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  opacity: .75;
}

.marquee-logos span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--text-soft);
}

/* ---------- FOOTER ---------- */
#site-footer {
  display: block;
  min-height: 320px;
  background: var(--brand-950);
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(3.5rem, 8vw, 6rem) 2rem;
  background:
    radial-gradient(55rem 26rem at 12% -10%, color-mix(in srgb, var(--violet-600) 32%, transparent), transparent 60%),
    radial-gradient(46rem 24rem at 100% 0%, color-mix(in srgb, var(--brand-600) 26%, transparent), transparent 55%),
    var(--brand-950);
}

/* animated gradient hairline across the top */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--violet-500), var(--gold-500), var(--brand-600));
  background-size: 300% 100%;
  animation: footerLine 9s linear infinite;
}
@keyframes footerLine { to { background-position: -300% 0; } }

.site-footer a {
  transition: color .2s var(--ease);
}
.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  position: relative;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
  padding-bottom: .55rem;
  position: relative;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transition: width .3s var(--ease);
}
.footer-grid > div:hover h4::after {
  width: 46px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .65rem;
  font-size: var(--step--1);
}
.site-footer ul li a {
  position: relative;
  display: inline-block;
  transition: transform .22s var(--ease), color .2s var(--ease);
}
.site-footer ul li a::before {
  content: "›";
  position: absolute;
  left: -12px;
  opacity: 0;
  transition: opacity .22s var(--ease), left .22s var(--ease);
}
.site-footer ul li a:hover {
  transform: translateX(14px);
}
.site-footer ul li a:hover::before {
  opacity: 1;
  left: -2px;
}

.footer-brand .footer-logo {
  height: 52px;
  width: auto;
  flex: none;
  display: block;
  padding: 6px 9px;
  background: #fff;
  border-radius: 12px;
  transition: transform .35s var(--ease-out-back);
}
.footer-brand .brand:hover .footer-logo {
  transform: rotate(-4deg) scale(1.05);
}

.footer-brand p {
  font-size: var(--step--1);
  max-width: 34ch;
  margin-top: .9rem;
  line-height: 1.7;
}
.footer-brand .brand__mark {
  transition: transform .35s var(--ease-out-back);
}
.footer-brand .brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.08);
}

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: var(--step--1);
}

.social {
  display: flex;
  gap: .55rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .78);
  transition: transform .28s var(--ease-out-back), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.social a:hover {
  transform: translateY(-4px) rotate(-6deg);
  background: var(--grad-accent);
  border-color: transparent;
  color: #241704;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer::before { animation: none; }
  .site-footer ul li a:hover { transform: none; }
  .social a:hover { transform: none; }
}

/* ---------- WHATSAPP FLOAT ---------- */
:root {
  --fab-lift: 0px;
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + var(--fab-lift));
  z-index: 92;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  color: #fff;
  transition: transform .25s var(--ease), bottom .35s var(--ease);
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}

.wa-float:hover {
  transform: scale(1.1);
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: .55;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@media (max-width: 520px) {
  .wa-float {
    width: 52px;
    height: 52px;
    right: 16px;
  }
}

/* ---------- FAQ CHATBOT ---------- */
.pis-chat {
  position: fixed;
  left: 20px;
  bottom: calc(20px + var(--fab-lift, 0px));
  z-index: 94;
  font-size: var(--step--1);
}

.pis-chat__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease);
}
.pis-chat__toggle:hover { transform: scale(1.08); }
.pis-chat__toggle svg { width: 26px; height: 26px; }
.pis-chat__ic-close { display: none; }
.pis-chat[data-open="true"] .pis-chat__ic-open { display: none; }
.pis-chat[data-open="true"] .pis-chat__ic-close { display: block; }

.pis-chat__panel {
  position: absolute;
  left: 0;
  bottom: 72px;
  width: min(360px, calc(100vw - 40px));
  height: min(70vh, 540px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.pis-chat[data-open="true"] .pis-chat__panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.pis-chat__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  background: var(--grad-cta);
  color: #fff;
  flex: none;
}
.pis-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex: none;
}
.pis-chat__id { display: block; line-height: 1.3; }
.pis-chat__id b { display: block; font-size: var(--step-0); }
.pis-chat__id span { font-size: .72rem; opacity: .88; }

.pis-chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: var(--bg-alt);
}
.pis-chat__msg {
  max-width: 88%;
  padding: .6rem .8rem;
  border-radius: 14px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
  animation: pisChatIn .25s var(--ease) both;
}
@keyframes pisChatIn { from { opacity: 0; transform: translateY(6px); } }
.pis-chat__msg--bot {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.pis-chat__msg--user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--primary-ink);
  border-bottom-right-radius: 4px;
}
.pis-chat__acts { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.pis-chat__acts .act {
  display: inline-flex;
  padding: .35rem .7rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .76rem;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.pis-chat__acts .act--wa { background: #25d366; color: #fff; border-color: #25d366; }

.pis-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .7rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--paper);
  flex: none;
}
.pis-chat__chips button {
  padding: .4rem .75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: .76rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.pis-chat__chips button:hover { border-color: var(--primary); color: var(--primary); }

.pis-chat__input {
  display: flex;
  gap: .4rem;
  padding: .7rem 1rem 1rem;
  background: var(--paper);
  flex: none;
}
.pis-chat__input input {
  flex: 1;
  min-width: 0;
  padding: .55rem .9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.pis-chat__input input:focus { outline: none; border-color: var(--primary); }
.pis-chat__input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--grad-cta);
  color: #fff;
  cursor: pointer;
  flex: none;
}

@media (max-width: 560px) {
  .pis-chat { left: 14px; bottom: calc(14px + var(--fab-lift, 0px)); }
  .pis-chat__toggle { width: 52px; height: 52px; }
  .pis-chat__panel { bottom: 66px; width: calc(100vw - 28px); height: min(72vh, 520px); }
}
@media (prefers-reduced-motion: reduce) {
  .pis-chat__toggle, .pis-chat__panel { transition-duration: .001ms; }
  .pis-chat__msg { animation: none; }
}

/* ---------- PRIVACY BANNER ---------- */
.privacy-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(160%);
  z-index: 96;
  width: min(680px, calc(100vw - 32px));
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  transition: transform .5s var(--ease-out-back);
}

.privacy-banner.is-visible {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .privacy-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    transform: translateY(160%);
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }

  .privacy-banner.is-visible {
    transform: translateY(0);
  }

  .privacy-banner .btn {
    flex: 1;
  }
}

.privacy-banner p {
  font-size: var(--step--1);
  color: var(--text-soft);
  flex: 1;
  min-width: 220px;
}

.privacy-banner .btn {
  padding: .6rem 1.1rem;
}

/* ---------- SCROLL REVEAL VARIANTS ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="zoom"] {
  transform: scale(.92);
}

[data-reveal="blur"] {
  filter: blur(10px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

[data-reveal-delay="1"] {
  transition-delay: .08s;
}

[data-reveal-delay="2"] {
  transition-delay: .16s;
}

[data-reveal-delay="3"] {
  transition-delay: .24s;
}

[data-reveal-delay="4"] {
  transition-delay: .32s;
}

[data-stagger]>* {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

[data-stagger].is-visible>* {
  opacity: 1;
  transform: none;
}

[data-stagger].is-visible>*:nth-child(1) {
  transition-delay: .05s;
}

[data-stagger].is-visible>*:nth-child(2) {
  transition-delay: .12s;
}

[data-stagger].is-visible>*:nth-child(3) {
  transition-delay: .19s;
}

[data-stagger].is-visible>*:nth-child(4) {
  transition-delay: .26s;
}

[data-stagger].is-visible>*:nth-child(5) {
  transition-delay: .33s;
}

[data-stagger].is-visible>*:nth-child(6) {
  transition-delay: .40s;
}

[data-stagger].is-visible>*:nth-child(7) {
  transition-delay: .47s;
}

[data-stagger].is-visible>*:nth-child(8) {
  transition-delay: .54s;
}

/* ---------- MISC ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: .7rem 1rem;
  z-index: 400;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.owner-note {
  border: 1px dashed var(--gold-600);
  background: color-mix(in srgb, var(--gold-500) 8%, transparent);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: var(--step--1);
  color: var(--text-soft);
}

.owner-note b {
  color: var(--gold-600);
}

.section-wave {
  display: block;
  width: 100%;
  height: 60px;
}

/* ---------- HOME MEDIA SLIDER (photos + videos) ---------- */
.hero-slider-section {
  padding: 0 0 clamp(1rem, 3vw, 2rem);
}

.mslider {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
}

/* hero variant — full-screen slider, first thing on the home page */
.mslider--hero {
  max-width: 100%;
  margin: 0;
  height: calc(100dvh - var(--nav-h));
  min-height: 480px;
}

.mslider--hero .mslider__viewport {
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.mslider--hero .mslider__track {
  height: 100%;
}

.mslider--hero .mslide {
  aspect-ratio: auto;
  height: 100%;
}

.mslider--hero .mslide__caption {
  font-size: var(--step-2);
  padding: 3.5rem 1.6rem 1.6rem;
}

.mslider--hero .mslider__arrow {
  width: 52px;
  height: 52px;
  font-size: 1.7rem;
}

.mslider--hero .mslider__arrow--prev {
  left: 18px;
}

.mslider--hero .mslider__arrow--next {
  right: 18px;
}

.mslider--hero .mslider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0;
  z-index: 4;
}

.mslider--hero .mslider__dots button {
  background: rgba(255, 255, 255, .45);
}

.mslider--hero .mslider__dots button.is-active {
  background: var(--grad-accent);
}

@media (max-width: 560px) {
  .mslider--hero .mslide__caption {
    font-size: var(--step-1);
    padding: 2.4rem 1rem 1.2rem;
  }

  .mslider--hero .mslider__arrow {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .mslider--hero .mslider__arrow--prev {
    left: 8px;
  }

  .mslider--hero .mslider__arrow--next {
    right: 8px;
  }
}

/* Tablet & phone: the hero is a proportioned band, not a full screen, so a
   landscape video shows properly instead of being cropped to a thin sliver. */
@media (max-width: 1024px) {
  .mslider--hero {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: 80svh;
  }
  .mslider--hero .mslider__viewport,
  .mslider--hero .mslider__track,
  .mslider--hero .mslide {
    height: 100%;
  }
}

@media (max-width: 640px) {
  .mslider--hero {
    aspect-ratio: 4 / 3;
    max-height: 72svh;
  }
  .mslider--hero .mslider__arrow {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
}

.mslider__viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--paper-3);
}

.mslider__track {
  display: flex;
  will-change: transform;
  transition: transform .8s var(--ease);
}

.mslide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

@media (max-width: 720px) {
  .mslide {
    aspect-ratio: 4 / 3;
  }
}

.mslide img,
.mslide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(145deg, var(--brand-800), var(--violet-600));
}

.mslide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.4rem 1.1rem;
  color: #fff;
  font-weight: 600;
  font-size: var(--step-1);
  font-family: var(--font-display);
  background: linear-gradient(transparent, rgba(6, 12, 26, .78));
  transform: translateY(12px);
  opacity: 0;
  transition: transform .6s var(--ease) .2s, opacity .6s var(--ease) .2s;
}

.mslide.is-active .mslide__caption {
  transform: none;
  opacity: 1;
}

.mslide__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #241704;
  background: var(--grad-accent);
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
}

.mslide__sound {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(6, 12, 26, .55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .2s, transform .2s;
}

.mslide__sound:hover {
  background: rgba(6, 12, 26, .8);
  transform: scale(1.08);
}

.mslider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  transition: background .2s, border-color .2s, transform .2s;
  z-index: 3;
}

.mslider__arrow:hover {
  background: var(--bg);
  border-color: var(--primary);
}

.mslider__arrow--prev {
  left: -14px;
}

.mslider__arrow--next {
  right: -14px;
}

@media (max-width: 780px) {
  .mslider__arrow--prev {
    left: 6px;
  }

  .mslider__arrow--next {
    right: 6px;
  }
}

.mslider__dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.2rem;
}

.mslider__dots button {
  width: 28px;
  height: 5px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: background .25s, transform .25s;
}

.mslider__dots button.is-active {
  background: var(--grad-accent);
  transform: scaleY(1.6);
}

.mslider__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--grad-accent);
  z-index: 3;
}

/* single-slide: no navigation needed */
.mslider--single .mslider__arrow,
.mslider--single .mslider__dots,
.mslider--single .mslider__progress {
  display: none !important;
}

/* ---------- LEADERSHIP & MANAGEMENT — feature card ---------- */
.leader-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: clamp(1.6rem, 5vw, 3.5rem);
  align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  outline: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

@media (max-width: 760px) {
  .leader-feature {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* animated gradient border on hover/focus */
.leader-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}

/* light sweep across the card */
.leader-feature::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-18deg);
  transition: left .8s var(--ease);
  pointer-events: none;
}

.leader-feature:hover,
.leader-feature:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.leader-feature:hover::before,
.leader-feature:focus-within::before {
  opacity: 1;
}

.leader-feature:hover::after,
.leader-feature:focus-within::after {
  left: 130%;
}

.leader-feature__media {
  position: relative;
}

.leader-feature__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: linear-gradient(145deg, var(--brand-800), var(--violet-600));
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}

.leader-feature:hover .leader-feature__media img,
.leader-feature:focus-within .leader-feature__media img {
  transform: scale(1.04) rotate(-1.6deg);
  box-shadow: 0 26px 55px rgba(37, 99, 214, .4);
}

.leader-feature__media::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--radius-lg) + 10px);
  border: 2px solid transparent;
  transition: border-color .5s var(--ease), inset .5s var(--ease);
  pointer-events: none;
}

.leader-feature:hover .leader-feature__media::after,
.leader-feature:focus-within .leader-feature__media::after {
  border-color: var(--accent);
  inset: -14px;
}

.leader-role {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .6rem;
}

@media (max-width: 760px) {
  .leader-role {
    justify-content: center;
  }
}

/* the stylish name field */
.leader-name {
  display: inline-block;
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  font-size: clamp(1.9rem, 1.35rem + 2.6vw, 3.1rem);
  letter-spacing: -.015em;
  color: var(--text);
  padding-bottom: .12em;
  transition: letter-spacing .45s var(--ease), color .25s var(--ease);
}

.leader-name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}

.leader-feature:hover .leader-name,
.leader-feature:focus-within .leader-name {
  color: var(--primary);
  letter-spacing: .01em;
}

.leader-feature:hover .leader-name::after,
.leader-feature:focus-within .leader-name::after {
  transform: scaleX(1);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .leader-name {
    background-image: var(--grad-hero);
    background-size: 220% 100%;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
  }

  .leader-feature:hover .leader-name,
  .leader-feature:focus-within .leader-name {
    color: transparent;
    background-position: 100% 0;
    transition: background-position 1.1s var(--ease), letter-spacing .45s var(--ease);
  }
}

.leader-quote {
  margin: 1rem 0 1rem;
  color: var(--text-soft);
  font-size: var(--step-0);
}

.leader-quote .badge-todo {
  vertical-align: middle;
}

/* =====================================================================
   RESPONSIVE POLISH — tablet & mobile (no overlaps at any width)
   ===================================================================== */

/* global guards */
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

.container {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ---- Tablet (<= 1024px) ---- */
@media (max-width: 1024px) {
  .section {
    padding-block: clamp(3rem, 7vw, 5rem);
  }

  .hero {
    padding-block: clamp(4rem, 11vw, 7rem);
  }

  .split {
    gap: clamp(1.8rem, 5vw, 3rem);
  }

  .profile-detail {
    grid-template-columns: 240px 1fr;
  }
}

/* ---- Large phone / small tablet (<= 768px) ---- */
@media (max-width: 768px) {
  /* the wide banner image gets badly cropped/zoomed on narrow screens —
     use the brand gradient instead so the header always looks clean */
  .page-header {
    padding-block: clamp(3rem, 10vw, 4.5rem);
    background-image: none;
    background: linear-gradient(120deg, #0a1c44 0%, #133a86 42%, #4c2a86 78%, #6b34b8 100%);
  }
  .page-header::before { display: none; }
  .page-header::after { width: 300px; height: 300px; right: -20%; }

  .section-head {
    margin-bottom: 1.8rem;
  }

  .crumbs {
    flex-wrap: wrap;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn,
  .cta-band .btn {
    flex: 1 1 auto;
  }

  .filter-bar .search-input {
    flex-basis: 100%;
    order: 3;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    white-space: nowrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .6rem;
  }

  .split__media img,
  .split__media video {
    aspect-ratio: 16/10;
  }
}

/* ---- Phone (<= 560px) ---- */
@media (max-width: 560px) {
  :root {
    --nav-h: 66px;
  }

  .btn {
    padding: .85rem 1.3rem;
  }

  .btn--lg {
    padding: .95rem 1.4rem;
    font-size: var(--step--1);
    width: 100%;
    max-width: 360px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: none;
  }

  .cta-band>div[style] {
    flex-direction: column;
    align-items: stretch !important;
  }

  .cta-band .btn {
    width: 100%;
  }

  .hero__stats {
    gap: 1.2rem 1.8rem;
  }

  .hero__stat {
    flex: 1 1 40%;
  }

  .mslide__caption {
    font-size: var(--step-0);
    padding: 1.7rem 1rem .9rem;
  }

  .mslide__tag {
    font-size: .62rem;
    top: .7rem;
    left: .7rem;
  }

  .mslide__sound {
    top: .7rem;
    right: .7rem;
    width: 36px;
    height: 36px;
  }

  .card {
    padding: 1.4rem;
  }

  .form-card {
    padding: 1.3rem;
  }

  table.data {
    font-size: .82rem;
  }

  table.data th,
  table.data td {
    padding: .7rem .8rem;
  }

  .nav-actions .btn {
    padding: .7rem 1.1rem;
  }

  .tcarousel__track {
    min-height: 420px;
  }
}

/* ---- Tiny phones (<= 380px) ---- */
@media (max-width: 380px) {
  .brand img {
    max-width: 150px;
    height: 40px;
  }

  .brand .brand__mark {
    height: 40px;
    width: 40px;
  }

  .nav-actions {
    gap: .4rem;
  }

  .nav-actions .btn {
    padding: .6rem .9rem;
    font-size: .8rem;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }
}

/* landscape phones: keep the mobile menu scrollable */
@media (max-height: 460px) and (max-width: 900px) {
  .nav-list {
    padding-bottom: 3rem;
  }
}