/* MLSA CUSIT — Enhanced original design system */
:root {
  --ink: #0c1524;
  --ink-soft: #1a2b42;
  --slate: #4a5d73;
  --slate-light: #6b7c90;
  --mist: #e8eef5;
  --paper: #f4f7fb;
  --white: #ffffff;
  --azure: #0078d4;
  --azure-deep: #005a9e;
  --cyan: #00a4ef;
  --line: rgba(12, 21, 36, 0.1);
  --line-strong: rgba(12, 21, 36, 0.16);
  --shadow-soft: 0 18px 40px rgba(12, 21, 36, 0.08);
  --shadow-lift: 0 22px 48px rgba(12, 21, 36, 0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1120px;
  --nav-h: 76px;
  --font-display: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

video,
iframe {
  max-width: 100%;
}

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

ul {
  list-style: none;
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--azure);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--azure);
}

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

h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 38rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 3rem;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--slate);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--azure);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.22);
}

.btn-primary:hover {
  background: var(--azure-deep);
  box-shadow: 0 12px 28px rgba(0, 120, 212, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(12, 21, 36, 0.03);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--mist);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease), color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 247, 251, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-home:not(.is-scrolled) {
  color: var(--white);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-text span {
  font-size: 0.72rem;
  color: var(--slate-light);
  letter-spacing: 0.02em;
}

.site-header.is-home:not(.is-scrolled) .logo-text span {
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  position: relative;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.site-header.is-home:not(.is-scrolled) .nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.9);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--azure);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.site-header.is-home:not(.is-scrolled) .nav-links a:not(.btn)::after {
  background: var(--white);
}

.nav-links a:not(.btn):hover,
.nav-links a.is-active {
  color: var(--azure);
}

.site-header.is-home:not(.is-scrolled) .nav-links a:not(.btn):hover,
.site-header.is-home:not(.is-scrolled) .nav-links a.is-active {
  color: var(--white);
}

.nav-links a:not(.btn):hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
  margin-left: 0.35rem;
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  box-shadow: none;
}

.nav-cta.btn-light {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.nav-cta.btn-light:hover {
  background: #f2f6fb;
}

.site-header:not(.is-home) .nav-cta.btn-light,
.site-header.is-scrolled .nav-cta.btn-light {
  background: var(--azure);
  color: var(--white);
  border-color: var(--azure);
}

.site-header:not(.is-home) .nav-cta.btn-light:hover,
.site-header.is-scrolled .nav-cta.btn-light:hover {
  background: var(--azure-deep);
  border-color: var(--azure-deep);
}

@media (min-width: 1101px) {
  .nav-cta {
    display: inline-flex;
  }
}

.site-header.is-home:not(.is-scrolled) .nav-cta.btn-primary {
  background: var(--white);
  color: var(--ink);
}

.site-header.is-home:not(.is-scrolled) .nav-cta.btn-primary:hover {
  background: var(--mist);
}

.site-header.is-home:not(.is-scrolled) .nav-cta.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.7);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-header.is-home:not(.is-scrolled):not(.menu-open) .nav-toggle {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-home:not(.is-scrolled):not(.menu-open) .nav-toggle:hover,
.site-header.is-home:not(.is-scrolled):not(.menu-open) .nav-toggle:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.hero-media.is-swiping {
  cursor: grabbing;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s var(--ease);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-media img,
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transform: scale(1.05);
  pointer-events: none;
}

.hero-slide.is-active img {
  animation: heroZoom 22s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(8, 14, 26, 0.55) 0%,
      rgba(8, 14, 26, 0.35) 38%,
      rgba(8, 14, 26, 0.82) 100%
    ),
    linear-gradient(
      90deg,
      rgba(8, 14, 26, 0.78) 0%,
      rgba(8, 14, 26, 0.45) 48%,
      rgba(8, 14, 26, 0.2) 100%
    );
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 3vw, 1.6rem);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transform: translateX(-50%);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(8, 14, 26, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

.hero-dots[hidden] {
  display: none !important;
}

.hero-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), width 0.25s var(--ease);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-dot.is-active {
  width: 26px;
  background: #fff;
}

.hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero > .container {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.hero-content .btn,
.hero-content a {
  pointer-events: auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 36rem;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
  animation: heroFade 0.9s var(--ease) both;
}

.hero-mobile-logo {
  display: none;
}

.hero-kicker,
.hero-tag,
.brand-mark,
.hero-rule,
.hero h1,
.hero .lead,
.hero .btn-group {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  text-indent: 0;
  letter-spacing: 0;
  transform: none;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.brand-mark {
  display: block;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0;
  color: var(--white);
}

.hero-rule {
  display: block;
  width: 3.5rem;
  height: 2px;
  flex-shrink: 0;
  margin-top: 1.15rem;
  margin-bottom: 1.25rem;
  background: var(--azure);
}

.hero h1 {
  max-width: 22ch;
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 2rem;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem;
  margin-bottom: 0;
  width: auto;
}

.hero .btn {
  transform: none;
  box-shadow: none;
}

.hero .btn:hover {
  transform: translateY(-2px);
}

.hero .btn-primary {
  box-shadow: none;
}

.hero .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

/* ---------- Page Hero (inner) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4.5rem) 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0, 164, 239, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(0, 120, 212, 0.1), transparent 50%),
    linear-gradient(180deg, #eaf1f8 0%, var(--paper) 100%);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 85%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  margin: 0.7rem 0 0.9rem;
  max-width: 14ch;
}

.page-hero .lead {
  max-width: 40rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #eef3f8 0%, #f7fafc 100%);
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 120, 212, 0.07), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(0, 164, 239, 0.06), transparent 35%);
  pointer-events: none;
}

.section-alt > .container {
  position: relative;
  z-index: 1;
}

.section-dark {
  background: linear-gradient(135deg, #0c1524 0%, #13233a 55%, #0d3a66 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  pointer-events: none;
}

.section-dark .container {
  position: relative;
  z-index: 1;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark .lead,
.section-dark .section-head p,
.section-dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.muted {
  color: var(--slate);
}

/* ---------- Logo carousel ---------- */
.logo-carousel {
  position: relative;
  z-index: 2;
  padding: 0.75rem 0;
  overflow: hidden;
  background: transparent;
  border-bottom: none;
}

.logo-carousel-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-carousel-track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: max-content;
  animation: logoMarquee var(--logo-marquee-duration, 40s) linear infinite;
  padding: 0.1rem 0;
  will-change: transform;
}

.logo-carousel-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 0 0 auto;
}

.logo-carousel:hover .logo-carousel-track {
  animation-play-state: paused;
}

.logo-carousel-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 2rem;
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
  cursor: default;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.logo-carousel-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.logo-carousel-item img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 44px;
  object-fit: contain;
  transition: transform 0.25s var(--ease);
}

.logo-carousel-item span {
  display: none;
}

@keyframes logoMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * var(--logo-marquee-shift, 50%)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-carousel-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.25rem;
    gap: 1.25rem 2rem;
  }

  .logo-carousel-group:not(:first-child) {
    display: none;
  }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--azure);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stat span {
  font-size: 0.95rem;
  color: var(--slate);
}

/* ---------- Pillars / Features ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 2rem;
}

.pillar {
  padding: 1.35rem 0.15rem 0.25rem;
  border-top: 2px solid var(--mist);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.pillar:hover {
  border-top-color: var(--azure);
  transform: translateY(-2px);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--azure);
  margin-bottom: 0.85rem;
}

.pillar h3 {
  margin-bottom: 0.65rem;
}

.pillar p {
  color: var(--slate);
  font-size: 0.98rem;
}

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.split-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
  transition: transform 0.8s var(--ease);
}

.split-media:hover img {
  transform: scale(1.03);
}

.split-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, rgba(12, 21, 36, 0.35));
  pointer-events: none;
}

.split-copy .eyebrow {
  display: block;
  margin-bottom: 0.75rem;
}

.split-copy h2 {
  margin-bottom: 1rem;
}

.split-copy p {
  color: var(--slate);
  margin-bottom: 1rem;
}

.quote {
  margin-top: 1.75rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
}

.quote blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--slate);
}

/* ---------- Azure CTA band ---------- */
.azure-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.azure-band h2 {
  margin: 0.6rem 0 1rem;
  max-width: 14ch;
}

.azure-band p {
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.azure-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(6px);
}

.azure-panel h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.azure-list {
  display: grid;
  gap: 0.85rem;
}

.azure-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.azure-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--cyan);
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.card:hover {
  border-color: rgba(0, 120, 212, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card-meta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--azure);
  margin-bottom: 0.75rem;
}

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

.card p {
  color: var(--slate);
  font-size: 0.96rem;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1.1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--azure-deep);
  transition: gap 0.25s var(--ease), color 0.2s ease;
}

.card-link-repo {
  color: var(--ink);
}

.card-link.is-muted {
  color: var(--slate);
  font-weight: 500;
  cursor: default;
}

.card-link:hover:not(.is-muted) {
  color: var(--azure);
  gap: 0.55rem;
}

.person {
  text-align: left;
  overflow: hidden;
  padding: 0;
}

.person-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
}

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

.person:hover .person-photo img {
  transform: scale(1.04);
}

.person > h3,
.person > .role,
.person > p {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.person > h3 {
  padding-top: 1.15rem;
  margin-bottom: 0.25rem;
}

.person .role {
  color: var(--azure);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.person > p:last-child {
  padding-bottom: 1.35rem;
  color: var(--slate);
  font-size: 0.94rem;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
}

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

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.12);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--slate);
}

.form-note.is-ok {
  color: #0f6b3a;
}

.form-note.is-error {
  color: #b42318;
}

/* ---------- Timeline / list rows ---------- */
.list-rows {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.list-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.list-row time {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--azure);
}

.list-row h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(143, 211, 255, 0.5);
  border-radius: 999px;
  background: rgba(0, 120, 212, 0.2);
  color: #d9f1ff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-tag[hidden] {
  display: none;
}

.event-heading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  margin-bottom: 0.25rem;
}

.event-heading-meta .tag {
  margin-bottom: 0;
}

.event-speaker {
  overflow-wrap: anywhere;
}

.list-row p {
  color: var(--slate);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.event-when {
  display: grid;
  gap: 0.45rem;
  align-self: center;
}

.list-row .event-location,
.list-row .event-time {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--slate);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.list-row .event-location svg,
.list-row .event-time svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  margin-top: 0.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.list-row > div:not(.list-row-actions) {
  min-width: 0;
}

.list-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  align-items: center;
}

.event-listing {
  border-bottom: 1px solid var(--line);
}

.event-listing .list-row {
  border-bottom: 0;
}

.event-register-panel {
  margin: 0 0 1.4rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
}

.event-register-head {
  margin-bottom: 1rem;
}

.event-register-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.event-register-head p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.event-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.event-register-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.event-register-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate);
}

.event-register-status.is-ok {
  color: #0f7b3a;
  font-weight: 600;
}

.event-register-status.is-error {
  color: #b42318;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text strong {
  color: var(--white);
}

.footer-brand .logo-text span {
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ---------- Gallery events ---------- */
.gallery-events {
  display: grid;
  gap: 1.35rem;
}

.gallery-event {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.15fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.gallery-event:hover,
.gallery-event:focus-visible {
  border-color: rgba(0, 120, 212, 0.28);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.gallery-event-collage {
  display: grid;
  grid-template-columns: 1.2fr 0.78fr 0.78fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.85rem;
  background: #f7f9fc;
  min-height: 250px;
}

.gallery-event-collage-main,
.gallery-event-collage-stack,
.gallery-event-collage-side {
  min-height: 0;
}

.gallery-event-collage-main {
  grid-column: 1;
  grid-row: 1 / -1;
}

.gallery-event-collage-stack {
  grid-column: 2;
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
}

.gallery-event-collage-side {
  grid-column: 3;
  grid-row: 1;
}

.gallery-event-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background: #e8eef5;
}

.gallery-event-collage-main img {
  min-height: 100%;
}

.gallery-event-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.5rem 1.2rem;
  border-left: 1px solid var(--line);
}

.gallery-event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.gallery-event-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #edf1f6;
  color: #1b2430;
  flex-shrink: 0;
}

.gallery-event-tag,
.gallery-event-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fbfcfe;
  color: #334155;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
}

.gallery-event-body h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.gallery-event-location {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
  font-size: 1rem;
}

.gallery-event-caption {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 46ch;
}

.gallery-event-expand {
  margin: auto 0 0;
  padding-top: 0.85rem;
  color: #8a98a8;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gallery-lightbox.hidden {
  display: none;
}

.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, 0.78);
  backdrop-filter: blur(6px);
}

.gallery-lightbox-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: #0f1724;
  color: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-head {
  padding-right: 2.5rem;
  margin-bottom: 1rem;
}

.gallery-lightbox-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.gallery-lightbox-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.gallery-lightbox-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 280px;
}

.gallery-lightbox-stage img {
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.gallery-lightbox-nav {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.gallery-lightbox-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.gallery-lightbox-thumbs button {
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  opacity: 0.7;
}

.gallery-lightbox-thumbs button.is-active {
  border-color: #5eb3f6;
  opacity: 1;
}

.gallery-lightbox-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-lightbox-count {
  margin: 0.75rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

/* ---------- Join chapter modal ---------- */
.join-modal-open {
  overflow: hidden;
}

.join-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.join-modal.hidden {
  display: none;
}

.join-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, 0.72);
  backdrop-filter: blur(6px);
}

.join-modal-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(92dvh, 760px);
  overflow: auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.join-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.35rem;
}

.join-modal-head h3 {
  margin: 0.35rem 0 0;
  font-size: 1.45rem;
}

.join-modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.join-modal-body {
  padding: 0.65rem 1.25rem 1.35rem;
}

.join-modal-lead {
  margin: 0 0 1rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.join-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.join-field-full {
  grid-column: 1 / -1;
}

.join-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.join-form-status {
  margin: 0.85rem 0 0;
  min-height: 1.2em;
  font-size: 0.92rem;
  color: var(--slate);
}

.join-form-status.is-ok {
  color: #0f7b3a;
  font-weight: 600;
}

.join-form-status.is-error {
  color: #b42318;
  font-weight: 600;
}

@media (max-width: 640px) {
  .join-form-grid {
    grid-template-columns: 1fr;
  }

  .join-modal-actions {
    flex-direction: column-reverse;
  }

  .join-modal-actions .btn {
    width: 100%;
  }
}

.mt-2 {
  margin-top: 2rem;
}

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

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

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azure-deep);
  background: rgba(0, 120, 212, 0.08);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  .pillars,
  .grid-3,
  .cards:has(.card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .stat {
    padding: 1.35rem 1.1rem;
  }

  .split {
    gap: 2.25rem;
  }

  .azure-band {
    gap: 1.75rem;
  }
}

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 90;
    width: 100%;
    height: 100dvh;
    max-height: none;
    background: rgba(244, 247, 251, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    margin-left: 0;
    padding: calc(var(--nav-h) + 0.75rem) 1.5rem max(2rem, env(safe-area-inset-bottom, 0px));
    border-bottom: 0;
    gap: 0.15rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    overflow: auto;
    overscroll-behavior: contain;
    transition: transform 0.4s var(--ease), opacity 0.35s var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    z-index: 110;
  }

  .site-header.menu-open,
  .site-header.menu-open.is-home:not(.is-scrolled) {
    background: rgba(244, 247, 251, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: none;
    color: var(--ink);
  }

  .site-header.menu-open.is-home:not(.is-scrolled) .logo-text strong,
  .site-header.menu-open.is-home:not(.is-scrolled) .logo-text span {
    color: var(--ink);
  }

  .site-header.menu-open.is-home:not(.is-scrolled) .logo-text span {
    color: var(--slate-light);
  }

  .site-header.menu-open .nav-toggle {
    color: var(--ink);
    border-color: var(--line);
    background: var(--white);
  }

  .site-header.is-home:not(.is-scrolled) .nav-links a:not(.btn) {
    color: var(--ink-soft);
  }

  .site-header.is-home:not(.is-scrolled) .nav-links a:not(.btn)::after {
    background: var(--azure);
  }

  .site-header.is-home:not(.is-scrolled) .nav-cta.btn-primary,
  .site-header.is-home:not(.is-scrolled) .nav-cta.btn-light {
    background: var(--azure);
    color: var(--white);
    border-color: var(--azure);
  }

  .nav-links a:not(.btn) {
    padding: 1rem 0.35rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
  }

  .nav-cta {
    display: inline-flex;
    width: 100%;
    margin: 1.1rem 0 0;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    z-index: 120;
  }

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

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

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

  .section {
    padding: 4rem 0;
  }

  .page-hero {
    padding: calc(var(--nav-h) + 2.75rem) 0 2.75rem;
  }

  .page-hero h1 {
    max-width: 18ch;
  }

  .stats,
  .pillars,
  .grid-3,
  .grid-2,
  .cards,
  .cards:has(.card) {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 0.85rem;
  }

  .split,
  .azure-band,
  .footer-grid,
  .form-row,
  .list-row {
    grid-template-columns: 1fr;
  }

  .list-row {
    align-items: start;
    gap: 0.65rem;
    padding: 1.15rem 0;
  }

  .list-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    width: 100%;
    gap: 0.55rem;
  }

  .list-row .btn,
  .list-row-actions .btn {
    flex: 1 1 auto;
    width: auto;
    min-width: min(100%, 10rem);
    justify-content: center;
  }

  .event-register-panel {
    padding: 1rem;
  }

  .event-register-grid {
    grid-template-columns: 1fr;
  }

  .event-register-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .event-register-actions .btn {
    width: 100%;
  }

  .split-media,
  .split-media img {
    min-height: 280px;
  }

  .hero-content {
    max-width: min(100%, 34rem);
  }

  .btn-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn-group .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .gallery-event-collage {
    grid-template-columns: 1.1fr 0.75fr 0.75fr;
    min-height: 210px;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }

  .azure-band h2,
  .page-hero h1 {
    max-width: none;
  }

  .footer-grid {
    gap: 1.75rem;
  }
}

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

  .gallery-event-body {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .gallery-event-collage {
    min-height: 200px;
  }

  .gallery-lightbox-dialog {
    width: min(100% - 1rem, 980px);
    max-height: min(94dvh, 920px);
    padding: 1rem 0.85rem 0.85rem;
  }

  .gallery-lightbox-stage {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox-nav {
    display: none;
  }

  .quote blockquote {
    font-size: 1.05rem;
  }
}

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

  .hero-dots {
    bottom: 0.85rem;
  }

  .person-photo {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 68px;
  }

  body {
    font-size: 1rem;
  }

  .container {
    width: min(100% - 2rem, var(--container));
  }

  .section {
    padding: 3.25rem 0;
  }

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

  .section-head h2,
  h1,
  h2,
  h3 {
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .logo-text span {
    display: none;
  }

  .logo-mark {
    width: 38px;
    height: 42px;
  }

  .hero {
    min-height: 100svh;
    align-items: center;
    background:
      radial-gradient(circle at 50% 18%, rgba(0, 120, 212, 0.28), transparent 38%),
      linear-gradient(155deg, #081528 0%, #0b2340 52%, #07111f 100%);
  }

  .hero-media,
  .hero-dots {
    display: none !important;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: calc(var(--nav-h) + 2rem) 0 2.75rem;
  }

  .hero-mobile-logo {
    width: clamp(140px, 38vw, 180px);
    height: auto;
    max-height: 190px;
    display: block;
    margin: 0 auto 1.25rem;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.3));
  }

  .hero-tag,
  .hero-kicker,
  .brand-mark,
  .hero h1,
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-rule {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .hero .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn,
  .btn-group .btn {
    width: 100%;
  }

  .page-hero {
    padding: calc(var(--nav-h) + 2.25rem) 0 2.25rem;
  }

  .page-hero .lead {
    font-size: 1rem;
  }

  .stats {
    margin-top: 1.5rem;
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 1.2rem 1.05rem;
  }

  .split-media,
  .split-media img {
    min-height: 220px;
  }

  .gallery-event {
    border-radius: 14px;
  }

  .gallery-event-collage {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 180px;
    padding: 0.65rem;
    gap: 0.4rem;
  }

  .gallery-event-collage-main {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .gallery-event-collage-stack {
    grid-column: 2;
    grid-row: 1 / -1;
  }

  .gallery-event-collage-side {
    display: none;
  }

  .gallery-event-body {
    padding: 1.1rem 1.1rem 1rem;
  }

  .gallery-event-body h3 {
    font-size: 1.15rem;
  }

  .gallery-lightbox-thumbs {
    justify-content: flex-start;
  }

  .gallery-lightbox-thumbs button {
    width: 54px;
    height: 42px;
    flex: 0 0 auto;
  }

  .person,
  .card,
  .pillar,
  .project-card,
  .event-listing {
    min-width: 0;
  }

  .card {
    padding: 1.15rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .azure-panel,
  .form-card,
  .editor-card,
  .form {
    max-width: 100%;
    padding-inline: 1rem;
  }

  .form {
    padding-inline: 0;
  }

  .tag {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .nav .logo-text strong {
    font-size: 0.9rem;
  }

  .container {
    width: min(100% - 2rem, var(--container));
  }

  .brand-mark {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .hero h1 {
    font-size: 1.15rem;
  }

  .nav-links {
    padding-inline: 1.1rem;
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + 1rem);
  }

  .gallery-event-collage {
    grid-template-columns: 1fr;
    grid-template-rows: 160px auto;
    min-height: 0;
  }

  .gallery-event-collage-main {
    grid-column: 1;
    grid-row: 1;
    min-height: 160px;
  }

  .gallery-event-collage-stack {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 88px;
  }

  .list-row-actions .btn {
    min-width: 100%;
  }
}

@media (hover: none) {
  .stat:hover,
  .pillar:hover,
  .gallery-event:hover,
  .card:hover,
  .person:hover {
    transform: none;
  }
}

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

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