/* Socioling — Conferio Home-03 inspired (airy, layered, Fixel Display + Text)
   Ripples: jquery.ripples on .hero-media (desktop only) */

:root {
  --sl-navy: #0B1C2C;
  --sl-ink: #111827;
  --sl-teal: #1C51A8;
  --sl-teal-dark: #164086;
  --sl-gold: #F5C518;
  --sl-logo-orange: #FBAF06; /* logo network node */
  --sl-bg: #FFFFFF;
  --sl-bg-soft: #F6F7F9;
  --sl-bg-mist: #FAFBFC;
  --sl-text: #1E293B;
  --sl-muted: #64748B;
  --sl-border: #E8ECF1;
  --sl-white: #FFFFFF;
  /* Pastels — primary (copy pills / stickers) */
  --sl-peach: #FFD8C2;
  --sl-sky: #98CDEA;
  --sl-lavender: #EFCCFF;
  --sl-gold-sticker: #EFDF5C;
  /* Pastels — secondary (hero floats / accents) */
  --sl-mint: #C8E6D9;
  --sl-butter: #F0E6A8;
  --sl-rose: #E9D0DE;
  --sl-fill-muted: rgba(11, 28, 44, 0.16);

  --sl-font-display: 'Fixel Display', Georgia, serif;
  --sl-font-text: 'Fixel Text', 'Segoe UI', sans-serif;
  --sl-font-alt: "salt" 1, "ss01" 1;

  --sl-container: 1180px;
  --sl-prose: 45rem; /* ~720px reading column — matches news/article pages */
  --sl-header-h: 80px;
  --sl-logo-h: 118px;
  --sl-logo-hang: calc(var(--sl-logo-h) - var(--sl-header-h) + 8px);
  --sl-radius: 18px;
  --sl-radius-sm: 12px;
  --sl-radius-pill: 999px;
  --sl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sl-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --sl-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  /* Firefox: matte that covers square WebGL corners (must match surface behind media) */
  --sl-ripples-matte: var(--sl-bg);
}

/* Animate header/logo size when compacting on scroll */
@property --sl-header-h {
  syntax: '<length>';
  inherits: true;
  initial-value: 80px;
}
@property --sl-logo-h {
  syntax: '<length>';
  inherits: true;
  initial-value: 118px;
}

html {
  transition: --sl-header-h 0.4s var(--sl-ease), --sl-logo-h 0.4s var(--sl-ease);
}

/* Compact sticky header: bar ~25% shorter; logo slightly reduced (no vertical shift) */
html.is-header-compact {
  --sl-header-h: 60px;
  --sl-logo-h: 78px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    transition: none;
  }
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  font-family: var(--sl-font-text);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--sl-text);
  background: var(--sl-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sl-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--sl-ease);
}
a:hover { color: var(--sl-teal-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sl-font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--sl-navy);
  margin: 0 0 0.75rem;
  font-feature-settings: var(--sl-font-alt);
  font-variant-alternates: styleset(ss01);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

p { margin: 0 0 1rem; }

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

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--sl-header-h);
  overflow: visible; /* allow logo “icicle” to hang into the page */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--sl-ease), box-shadow 0.25s var(--sl-ease), height 0.4s var(--sl-ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--sl-header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: -1;
  transition: border-color 0.25s var(--sl-ease), box-shadow 0.25s var(--sl-ease), height 0.4s var(--sl-ease);
}

.site-header.is-scrolled::before {
  border-bottom-color: var(--sl-border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.site-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--sl-header-h);
  position: relative;
  z-index: 1;
  transition: height 0.4s var(--sl-ease);
}

.brand {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: var(--sl-navy);
  min-width: 0;
  align-self: flex-start;
  margin-top: 0.55rem; /* optical align with nav row */
  position: relative;
  z-index: 5;
  transition: margin-top 0.4s var(--sl-ease), transform 0.4s var(--sl-ease);
}
.brand:hover { color: var(--sl-navy); }
/* Compact: no upward shift to avoid clipping the logo top */
html.is-header-compact .brand {
  margin-top: 0.1rem;
  transform: none;
}

.brand__logo {
  /* Larger mark; blue/orange constellation hangs below the header bar */
  height: var(--sl-logo-h);
  width: auto;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.12));
  transition: height 0.4s var(--sl-ease), filter 0.4s var(--sl-ease);
}
html.is-header-compact .brand__logo {
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.1));
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop > li {
  position: relative;
}

.nav-desktop a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--sl-text);
  text-decoration: none;
  font-size: 0.92rem;
  border-radius: var(--sl-radius-pill);
}

.nav-desktop > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--sl-navy);
  background: var(--sl-bg-soft);
}

/* Dropdown caret */
.nav-desktop > li.has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
  flex-shrink: 0;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--sl-white);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-sm);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s var(--sl-ease), transform 0.15s var(--sl-ease), visibility 0.15s;
  z-index: 120;
}

/* Hover bridge across the gap under the parent link */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

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

.nav-dropdown a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch a {
  color: var(--sl-muted);
  text-decoration: none;
  padding: 0.3rem 0.45rem;
  border-radius: var(--sl-radius-pill);
}

.lang-switch a.active,
.lang-switch a:hover {
  color: var(--sl-navy);
  background: var(--sl-bg-soft);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-sm);
  background: var(--sl-white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--sl-navy);
  transition: transform 0.25s var(--sl-ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--sl-border);
  background: var(--sl-white);
  padding: 1rem 0 1.25rem;
}
.nav-mobile.is-open { display: block; }
.nav-mobile > .container > ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile > .container > ul > li > a {
  display: block;
  padding: 0.7rem 0;
  color: var(--sl-navy);
  text-decoration: none;
  font-family: var(--sl-font-display);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--sl-border);
}
.nav-mobile__sub {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0 0 0.35rem 0.85rem;
  border-bottom: 1px solid var(--sl-border);
}
.nav-mobile__sub a {
  display: block;
  padding: 0.45rem 0;
  color: var(--sl-muted);
  text-decoration: none;
  font-family: var(--sl-font-text);
  font-size: 0.95rem;
  border: 0;
}
.nav-mobile__sub a:hover {
  color: var(--sl-navy);
}
.nav-mobile > .container > ul > li.has-children > a {
  border-bottom: 0;
  padding-bottom: 0.35rem;
}

@media (max-width: 920px) {
  :root {
    --sl-logo-h: 92px;
  }
  html.is-header-compact {
    --sl-logo-h: 76px;
  }
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .brand { margin-top: 0.35rem; }
}

@media (max-width: 560px) {
  :root {
    --sl-logo-h: 76px;
    --sl-header-h: 72px;
  }
  html.is-header-compact {
    --sl-header-h: 54px;
    --sl-logo-h: 70px;
  }
  .footer__logo { height: 88px; }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.95rem 1.45rem;
  font-family: var(--sl-font-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--sl-radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--sl-ease), box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--sl-teal);
  color: var(--sl-white);
}
.btn-primary:hover { background: var(--sl-teal-dark); color: var(--sl-white); }

.btn-dark {
  background: linear-gradient(180deg, #2a2a2a 0%, #111 100%);
  color: var(--sl-white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 0.35rem 0.35rem 0.35rem 1.35rem;
  gap: 0.75rem;
}
.btn-dark:hover { color: var(--sl-white); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22); }

.btn-arrow .btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--sl-radius-pill);
  background: var(--sl-gold);
  color: transparent; /* glyph rendered via ::after for slide animation */
  font-size: 1.05rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.btn-arrow .btn__arrow::after {
  content: '→';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sl-ink);
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

/* Arrow exits right, pauses ~0.06s off-screen, re-enters from left */
@keyframes sl-arrow-reenter {
  0% { transform: translateX(0); }
  44% { transform: translateX(var(--sl-arrow-travel, 2.75rem)); }
  44.01%,
  51.5% { transform: translateX(calc(-1 * var(--sl-arrow-travel, 2.75rem))); }
  100% { transform: translateX(0); }
}

.btn-arrow:hover .btn__arrow::after,
.btn-arrow:focus-visible .btn__arrow::after {
  animation: sl-arrow-reenter 0.8s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .btn-arrow:hover .btn__arrow::after,
  .btn-arrow:focus-visible .btn__arrow::after,
  .news-card__more:hover .news-card__more-icon svg,
  .news-row__more:hover .news-row__more-icon svg,
  .news-row__more:focus-visible .news-row__more-icon svg {
    animation: none;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--sl-navy);
  border-color: rgba(11, 28, 44, 0.18);
}
.btn-ghost:hover {
  background: var(--sl-bg-soft);
  color: var(--sl-navy);
}

.btn-ghost-dark {
  background: var(--sl-white);
  color: var(--sl-navy);
  border-color: var(--sl-border);
  box-shadow: var(--sl-shadow-soft);
}
.btn-ghost-dark:hover { color: var(--sl-navy); border-color: #d5dbe3; }

.btn-outline {
  background: transparent;
  color: var(--sl-navy);
  border-color: var(--sl-navy);
}
.btn-outline:hover { background: var(--sl-navy); color: var(--sl-white); }

.btn-secondary {
  background: transparent;
  color: var(--sl-navy);
  border-color: rgba(11, 28, 44, 0.2);
}
.btn-secondary:hover { background: var(--sl-bg-soft); color: var(--sl-navy); }

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

/* ========== Hero (Conferio Home-03 layered) ========== */
#hero.hero {
  position: relative;
  /* room for the hanging logo “icicle” */
  padding: calc(1.25rem + var(--sl-logo-hang)) 0 1.25rem;
  background:
    radial-gradient(ellipse 60% 50% at 8% 0%, rgba(255, 216, 194, 0.35), transparent 55%),
    radial-gradient(ellipse 45% 40% at 95% 10%, rgba(205, 232, 255, 0.4), transparent 50%),
    linear-gradient(180deg, transparent 0%, var(--sl-bg-mist) 100%);
  overflow: clip;
  color: var(--sl-navy);
  min-height: auto;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  position: relative;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding: 1rem 0 2rem;
}

.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--sl-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sl-ink);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s var(--sl-ease), box-shadow 0.2s var(--sl-ease);
}
a.hero-pill:hover,
a.hero-pill:focus-visible {
  color: var(--sl-ink);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}
.hero-pill--peach { background: var(--sl-peach); }
.hero-pill--sky { background: var(--sl-sky); }
.hero-pill--lavender { background: var(--sl-lavender); }
.hero-pill--mint { background: var(--sl-mint); }
.hero-pill--butter { background: var(--sl-butter); }
.hero-pill--rose { background: var(--sl-rose); }
.hero-pill--tilt-l { transform: rotate(-4deg); }
.hero-pill--tilt-r { transform: rotate(5deg); }
a.hero-pill--tilt-l:hover,
a.hero-pill--tilt-l:focus-visible { transform: rotate(-4deg) translateY(-1px); }
a.hero-pill--tilt-r:hover,
a.hero-pill--tilt-r:focus-visible { transform: rotate(5deg) translateY(-1px); }
a.hero-pill:not(.hero-pill--tilt-l):not(.hero-pill--tilt-r):hover,
a.hero-pill:not(.hero-pill--tilt-l):not(.hero-pill--tilt-r):focus-visible {
  transform: translateY(-1px);
}

.hero__eyebrow {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sl-muted);
}

.hero__title {
  color: var(--sl-navy);
  margin: 0 0 1.1rem;
  max-width: 12ch;
  line-height: 1.05;
  position: relative;
  z-index: 3;
}

.hero__slogan {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--sl-muted);
  margin-bottom: 1.85rem;
  max-width: 34rem;
}

.hero__visual {
  position: relative;
  z-index: 1;
  min-height: 420px;
  padding: 1rem 0 2.5rem;
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  border-radius: 28px 28px 80px 28px;
  /* WebGL canvas ignores CSS radius; clip-path keeps corners stable when ripples paint (Chromium) */
  clip-path: inset(0 round 28px 28px 80px 28px);
  --sl-ripples-matte: var(--sl-bg-mist);
  background-size: cover;
  /* Keep right/center of the photo (screen + right seats) in frame when cropped */
  background-position: 75% 42%;
  background-repeat: no-repeat;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}

.hero-media canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0; /* clip via parent clip-path — inherit radius flickers on WebGL */
  pointer-events: auto;
  z-index: 2;
}

.hero-media__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 42%;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

/* Only hide the photo once WebGL canvas is actually painting it */
.hero-media.is-ripples-ready .hero-media__fallback {
  opacity: 0;
}

.hero__live {
  position: absolute;
  left: -1.25rem;
  bottom: 3.5rem;
  z-index: 4;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 280px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: var(--sl-shadow);
}

.hero__live-dot {
  width: 10px; height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.08); }
}

.hero__live-label {
  margin: 0 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sl-muted);
}
.hero__live-title {
  margin: 0;
  font-family: var(--sl-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sl-navy);
  line-height: 1.3;
  font-feature-settings: var(--sl-font-alt);
}
.hero__live-text {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--sl-muted);
}

.hero-float {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: var(--sl-radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sl-ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  pointer-events: auto;
  transition: transform 0.2s var(--sl-ease), box-shadow 0.2s var(--sl-ease);
}
a.hero-float:hover,
a.hero-float:focus-visible {
  color: var(--sl-ink);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}
.hero-float--butter {
  top: 12%;
  right: -0.5rem;
  background: var(--sl-butter);
  transform: rotate(8deg);
}
.hero-float--rose {
  bottom: 18%;
  right: 8%;
  background: var(--sl-rose);
  transform: rotate(-6deg);
}
.hero-float--mint {
  top: 10%;
  left: -0.35rem;
  background: var(--sl-mint);
  transform: rotate(-7deg);
}
a.hero-float--butter:hover,
a.hero-float--butter:focus-visible { transform: rotate(8deg) translateY(-1px); }
a.hero-float--rose:hover,
a.hero-float--rose:focus-visible { transform: rotate(-6deg) translateY(-1px); }
a.hero-float--mint:hover,
a.hero-float--mint:focus-visible { transform: rotate(-7deg) translateY(-1px); }

@media (max-width: 960px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .hero__title { max-width: none; }
  .hero__visual {
    order: -1;
    min-height: 0;
    padding: 0 0 1rem;
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }
  .hero-media {
    aspect-ratio: 5 / 4;
    max-height: 380px;
    border-radius: 24px 24px 48px 24px;
    clip-path: inset(0 round 24px 24px 48px 24px);
  }
  .hero__live {
    left: 0.75rem;
    bottom: 1.25rem;
    max-width: 210px;
  }
  .hero-float--butter { right: 0.5rem; }
  .hero-float--mint { left: 0.5rem; }
  .hero__copy { padding-top: 0.5rem; }
}

@media (max-width: 560px) {
  .hero-float { display: none; }
  .hero__live { display: none; }
}

/* ========== Partners marquee ========== */
.partners-band {
  padding: 3.5rem 0 2.75rem;
  background: linear-gradient(180deg, #F3ECF8 0%, #FAFBFC 42%, #FFFFFF 100%);
  border-bottom: 1px solid var(--sl-border);
  overflow: visible;
}

.partners-band__head {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1rem 0.75rem;
  overflow: visible;
}

.partners-band__heading .sl-heading__title {
  /* Two-line title: «Партнерство з / науковими установами» */
  max-width: min(28ch, 92vw);
  margin-left: auto;
  margin-right: auto;
}

.partners-band__heading .sl-heading__text {
  white-space: pre-line;
}

/* Partners stickers use the same .sl-sticker--ribbon/tape padding as other sections */

.partners-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  padding: 0.35rem 0 0.5rem;
}

.partners-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 52s linear infinite;
}

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

.partners-marquee__group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 0.85rem;
}

.partner-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  width: max-content;
  max-width: 26rem;
  padding: 0.55rem 0.65rem 0.55rem 0.95rem;
  border: 1.5px solid #1A1A1A;
  border-radius: 14px;
  color: var(--sl-ink);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s var(--sl-ease), box-shadow 0.2s var(--sl-ease);
}
a.partner-card:hover,
a.partner-card:focus-visible {
  color: var(--sl-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.partner-card--peach { background: var(--sl-peach); }
.partner-card--sky { background: var(--sl-sky); }
.partner-card--lavender { background: var(--sl-lavender); }
.partner-card--mint { background: var(--sl-mint); }
.partner-card--butter { background: var(--sl-butter); }
.partner-card--rose { background: var(--sl-rose); }
.partner-card--gold { background: var(--sl-gold-sticker); }

.partner-card__name {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  min-width: 0;
  font-family: var(--sl-font-display);
  font-weight: 800;
  font-size: clamp(0.72rem, 1.05vw, 0.9rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-feature-settings: var(--sl-font-alt);
}

.partner-card__line {
  display: block;
  white-space: nowrap;
}

.partner-card__logo {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.partner-card__logo img {
  max-width: 72%;
  max-height: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
}

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

/* ========== News marquee (news-item page) ========== */
.news-marquee-band {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, var(--sl-bg) 0%, var(--sl-bg-soft) 40%, var(--sl-bg-mist) 100%);
  border-top: 1px solid var(--sl-border);
  overflow: visible;
}

.news-marquee-band__head {
  /* Align with news reading column (same ~720px as .content-prose) */
  box-sizing: border-box;
  width: min(100% - 2.5rem, var(--sl-prose));
  max-width: var(--sl-prose);
  margin: 0 auto 1.15rem;
  padding: 0;
}

.news-marquee-band__label {
  margin: 0;
  font-family: var(--sl-font-display);
  font-size: 1.425rem; /* 0.95rem × 1.5 */
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sl-navy);
}

.news-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  padding: 0.35rem 0 0.5rem;
}

/* Placeholder height before rows mount (images stay unloaded inside <template>) */
.news-marquee-band__mount:empty {
  height: 14.5rem;
}

.news-marquee-band__rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-marquee__track {
  display: flex;
  width: max-content;
  animation: news-marquee-scroll 90s linear infinite;
}

.news-marquee__track--reverse {
  animation-name: news-marquee-scroll;
  animation-duration: 100s;
  animation-direction: reverse;
}

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

.news-marquee__group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.news-marquee-card {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  height: 100px;
  max-height: 100px;
  padding: 0.4rem 0.5rem 0.4rem 0.8rem;
  border: 1.5px solid #1A1A1A;
  border-radius: 12px;
  color: var(--sl-ink);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s var(--sl-ease), box-shadow 0.2s var(--sl-ease);
}

a.news-marquee-card:hover,
a.news-marquee-card:focus-visible {
  color: var(--sl-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  text-decoration: none;
}

.news-marquee-card--peach { background: var(--sl-peach); }
.news-marquee-card--sky { background: var(--sl-sky); }
.news-marquee-card--lavender { background: var(--sl-lavender); }
.news-marquee-card--mint { background: var(--sl-mint); }
.news-marquee-card--butter { background: var(--sl-butter); }
.news-marquee-card--rose { background: var(--sl-rose); }
.news-marquee-card--gold { background: var(--sl-gold-sticker); }

.news-marquee-card__title {
  /* Width follows the longest nowrap title line (not a fixed max-width) */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05em;
  width: max-content;
  min-width: 0;
  margin: 0;
  font-family: var(--sl-font-display);
  font-weight: 800;
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-feature-settings: var(--sl-font-alt);
}

.news-marquee-card__line {
  display: block;
  white-space: nowrap;
}

.news-marquee-card__media {
  flex-shrink: 0;
  width: 6.75rem; /* landscape ~3:2 inside 100px card */
  height: 4.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.news-marquee-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-marquee-card--no-media {
  padding-right: 0.95rem;
}

@keyframes news-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Legacy partners strip (inner pages) — now uses partner-card grid */
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.85rem;
}

.partners-page__intro {
  max-width: var(--sl-prose);
  margin: 0 auto 2rem;
  color: var(--sl-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: left;
}

/* Float wrap: logo = height of 4 partner rows; extra cards flow under the logo */
.partners-page__layout {
  --partners-gap: 0.85rem;
  /* logo circle + vertical padding + borders */
  --partner-row-h: calc(3.15rem + 1.1rem + 3px);
  --partners-brand-h: calc(4 * var(--partner-row-h) + 3 * var(--partners-gap));
}

.partners-page__layout::after {
  content: "";
  display: table;
  clear: both;
}

.partners-page__brand {
  float: left;
  box-sizing: border-box;
  width: var(--partners-brand-h);
  height: var(--partners-brand-h);
  max-width: calc(100% - 1rem);
  margin: 0 var(--partners-gap) var(--partners-gap) 0;
  padding: 40px;
  background: #fff;
  border-radius: var(--sl-radius);
  box-shadow:
    0 0 0 1.5px rgba(26, 26, 26, 0.1),
    0 14px 40px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.06);
}

.partners-page__brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Let cards participate in the float flow (wrap around brand) */
.partners-page__list {
  display: contents;
}

.partners-page__list .partner-card {
  vertical-align: top;
  box-sizing: border-box;
  height: var(--partner-row-h);
  margin: 0 var(--partners-gap) var(--partners-gap) 0;
}

@media (max-width: 767px) {
  .partners-page__brand {
    float: none;
    display: block;
    width: min(100%, var(--partners-brand-h));
    margin: 0 auto var(--partners-gap);
  }

  .partners-page__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--partners-gap);
  }

  .partners-page__list .partner-card {
    margin: 0;
  }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 64px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius);
  color: var(--sl-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: var(--sl-white);
  box-shadow: var(--sl-shadow-soft);
}

/* ========== Sections ========== */
.section {
  padding: 5rem 0;
}

.section--airy {
  background: var(--sl-bg);
}

.section--soft {
  background: var(--sl-bg-soft);
}

/* Homepage stack boundaries (hero → directions → about → news → team → partners → cta):
   consecutive sections must not share the same / near-same fill. */
#directions.section--soft {
  /* Hero ends on mist; cool sky wash reads clearly after the peach/sky hero glow */
  background:
    linear-gradient(180deg, rgba(152, 205, 234, 0.2) 0%, transparent 42%),
    var(--sl-bg-soft);
}

#news.section {
  background: var(--sl-bg-soft);
}

.section--navy {
  background: var(--sl-navy);
  color: var(--sl-white);
}
.section--navy h2,
.section--navy h3 { color: var(--sl-white); }

.section__header {
  margin-bottom: 2.75rem;
  max-width: 42rem;
  overflow: visible;
  padding-top: 0.5rem;
}

.section__header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}
.section__header--row > div { max-width: 40rem; overflow: visible; }
.section__header-btn { flex-shrink: 0; }

@media (max-width: 700px) {
  .section__header--row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sl-teal);
}

.section__lead {
  color: var(--sl-muted);
  font-size: 1.05rem;
  margin: 0.35rem 0 0;
  position: relative;
  z-index: 1;
}

.section__actions { margin-top: 2.25rem; }

/* ========== Conferio-style heading stickers + fill ========== */
.sl-heading {
  position: relative;
  /* Reserve space so stickers can hang without covering lead copy */
  padding-top: 1.35rem;
  padding-bottom: 3.5rem;
  margin: 0 0 0.15rem;
  overflow: visible;
}

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

.sl-heading__title {
  position: relative;
  display: inline-block;
  margin: 0;
  max-width: 22ch;
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  font-feature-settings: var(--sl-font-alt);
  color: var(--sl-navy);
  overflow: visible;
}

.sl-heading--center .sl-heading__title {
  text-align: center;
}

.sl-heading__text {
  display: inline;
  position: relative;
  z-index: 1;
}

.sl-heading__title--fill .sl-heading__text {
  color: var(--sl-fill-muted);
}

.sl-heading__title--fill .sl-fill-char {
  color: var(--sl-fill-muted);
  transition: color 0.05s linear;
  will-change: color;
}

.sl-heading__title--fill .sl-fill-char.is-filled {
  color: var(--sl-navy);
}

.sl-heading.is-filled-done .sl-heading__text,
.sl-heading.is-filled-done .sl-fill-char {
  color: var(--sl-navy);
}

/*
  Stickers ~½ cap-height.
  Top (right / tape): Conferio “Organizers” — kinked top & bottom edges.
  Bottom (left / ribbon): Conferio “Event Experts” — concave short ends.
*/
.sl-sticker {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sl-font-text);
  font-size: 0.34em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sl-navy);
  line-height: 1.1;
  white-space: nowrap;
  padding: 0.42em 0.95em;
  pointer-events: none;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--sl-ease);
  will-change: opacity;
  top: 0;
  left: 0;
  background: transparent;
  border: 0;
}

.sl-sticker.is-pinned {
  right: auto;
  bottom: auto;
  visibility: visible;
}

.sl-sticker__shape {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: calc(100% + 1.15em);
  height: calc(100% + 0.85em);
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

.sl-sticker__shape path {
  fill: var(--sl-sticker-fill, #efccff);
  stroke: #1a1a1a;
  vector-effect: non-scaling-stroke;
}

.sl-sticker__label {
  position: relative;
  z-index: 1;
}

.sl-sticker--ribbon {
  padding-left: 1.15em;
  padding-right: 1.15em;
}

.sl-sticker--tape {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.sl-sticker--peach { --sl-sticker-fill: var(--sl-peach); }
.sl-sticker--sky { --sl-sticker-fill: var(--sl-sky); }
.sl-sticker--lavender { --sl-sticker-fill: var(--sl-lavender); }
.sl-sticker--gold { --sl-sticker-fill: var(--sl-gold-sticker); }
.sl-sticker--mint { --sl-sticker-fill: var(--sl-mint); }
.sl-sticker--butter { --sl-sticker-fill: var(--sl-butter); }
.sl-sticker--rose { --sl-sticker-fill: var(--sl-rose); }

.sl-heading.is-revealed .sl-sticker.is-pinned {
  opacity: 1;
  transition-delay: 0.12s;
}

/* Same tilt family: clockwise; lower angle milder.
   translateY: ~1mm less letter bite (right up, left down) */
.sl-sticker--right.is-pinned {
  transform: rotate(15deg) translateY(-5px);
  transform-origin: bottom left;
}

.sl-sticker--left.is-pinned {
  transform: rotate(10deg) translateY(5px);
  transform-origin: top left;
}

.sl-heading + .section__lead,
.sl-heading + .content-prose,
.section__header .section__lead {
  margin-top: 0;
  clear: both;
}

.split__copy .content-prose {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .sl-heading {
    padding-top: 1rem;
    padding-bottom: 2.75rem;
  }
  .sl-heading__title {
    max-width: none;
    font-size: clamp(1.65rem, 7.5vw, 2.25rem);
  }
  .sl-sticker {
    font-size: 0.3em;
    padding: 0.24em 0.5em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-heading__title--fill .sl-heading__text,
  .sl-heading__title--fill .sl-fill-char {
    color: var(--sl-navy) !important;
  }
  .sl-sticker.is-pinned {
    opacity: 1;
    transition: none;
  }
}

/* ========== Cards ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.35rem;
}

.card,
.card--soft {
  background: var(--sl-white);
  border: 1px solid rgba(232, 236, 241, 0.9);
  border-radius: 22px;
  padding: 1.65rem 1.5rem;
  box-shadow: var(--sl-shadow-soft);
  transition: box-shadow 0.25s var(--sl-ease), transform 0.25s var(--sl-ease), border-color 0.2s;
}

.card:hover,
.card--soft:hover {
  border-color: rgba(28, 81, 168, 0.28);
  box-shadow: var(--sl-shadow);
  transform: translateY(-3px);
}

.card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(28, 81, 168, 0.14), rgba(205, 232, 255, 0.55));
  color: var(--sl-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.card__title { margin-bottom: 0.5rem; font-size: 1.2rem; }
.card__text { color: var(--sl-muted); margin: 0; font-size: 0.98rem; }
.card a.card__link {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--sl-navy);
}
.card a.card__link:hover { color: var(--sl-teal); }

/* Section hub cards (Research / About) — pastel warm↔cool gradients */
.section-hub__intro {
  margin: 0 auto 1.75rem;
  max-width: var(--sl-prose);
  color: var(--sl-muted);
  font-size: 1.05rem;
  text-align: left; /* centered column, left-aligned reading */
}
.section-hub__intro > *:last-child { margin-bottom: 0; }

.cards--hub {
  margin-bottom: 0;
}

.card--hub {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(145deg, var(--sl-peach) 0%, color-mix(in srgb, var(--sl-sky) 70%, white) 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.32s var(--sl-ease),
    box-shadow 0.32s var(--sl-ease);
}

.card--hub::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.card--hub:hover {
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.card--hub-peach-sky {
  background: linear-gradient(145deg, #FFE4D2 0%, #FFD0B5 42%, #B9DCF0 100%);
}
.card--hub-butter-mint {
  background: linear-gradient(145deg, #F3E9B0 0%, #E5EFCC 48%, #BFE6D4 100%);
}
.card--hub-rose-lavender {
  background: linear-gradient(145deg, #F0D6E4 0%, #E8D0F2 45%, #D4D8FF 100%);
}
/* Extra warm↔cool pairs (directions timeline, 4–6) */
.card--hub-coral-teal {
  background: linear-gradient(145deg, #FFD0C4 0%, #F5B8AE 40%, #9DD9D4 100%);
}
.card--hub-apricot-blue {
  background: linear-gradient(145deg, #FFE2B5 0%, #F5D09A 44%, #B4C8F5 100%);
}
.card--hub-blush-mint {
  background: linear-gradient(145deg, #F8CFD8 0%, #E8C8DC 42%, #B4E5D0 100%);
}

.card__icon--hub {
  background: rgba(255, 255, 255, 0.55);
  color: var(--sl-navy);
  backdrop-filter: blur(6px);
}

.card--hub .card__text {
  color: color-mix(in srgb, var(--sl-navy) 62%, transparent);
}

.card--hub .card__link {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .card--hub,
  .card--hub:hover {
    transition: none;
    transform: none;
  }
}

/* Conferio About Us — Core Values style (directions)
   Desktop + landscape tablet: 1 : 2 : 1 (middle cards twice as wide) */
.cards--directions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem; /* 20px */
}

@media (min-width: 768px) and (orientation: landscape), (min-width: 1024px) {
  .cards--directions {
    grid-template-columns: 1fr 2fr 1fr;
  }
}

.card--direction {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 0;
  border-radius: 10px;
  padding: 2.5rem 1.75rem 2rem;
  box-shadow: none;
  background: #1a1a1a;
  color: #1a1a1a;
  transition: transform 0.28s var(--sl-ease), box-shadow 0.28s var(--sl-ease);
}

.card--direction .card__title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.25;
  color: inherit;
}

.card--direction .card__icon {
  width: auto;
  height: auto;
  margin: 0 0 1.5rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--sl-font-display);
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-feature-settings: var(--sl-font-alt);
  /* outline numerals — stroke must be explicit (not currentColor when fill is transparent) */
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.75px #1a1a1a;
  text-stroke: 1.75px #1a1a1a;
}

.card--tone-ink .card__icon {
  -webkit-text-stroke-color: #ffffff;
  text-stroke-color: #ffffff;
}

.card--direction .card__text {
  margin: 0;
  max-width: 28ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: inherit;
  opacity: 0.78;
}

.card--direction .card__link {
  margin-top: 1.35rem;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
}

.card--direction .card__link:hover {
  opacity: 1;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card--direction:hover {
  transform: translateY(-5px);
  box-shadow: var(--sl-shadow-soft);
  border-color: transparent;
}

/* Pastel tones (Conferio Core Values / mission panels) */
.card--tone-ink {
  background: #1a1a1a;
  color: #fff;
}
.card--tone-ink .card__icon {
  -webkit-text-stroke-color: #ffffff;
  text-stroke-color: #ffffff;
}
.card--tone-sky { background: #98cdea; }
.card--tone-lilac { background: #c8cbff; }
.card--tone-peach { background: #ffc29f; }
.card--tone-lavender { background: #efccff; }
.card--tone-mint { background: #a1e9a1; }
.card--tone-gold { background: #efdf5c; }

/* PXLfadeInUp-like entrance for direction cards */
.card--direction[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 60px, 0) scale(0.88, 1);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(0.15s + (var(--reveal-delay, 0) * 1ms));
}
.card--direction[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .card--direction[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Team teaser — title | enlarged mid slot | director; prose under title */
.team-teaser__layout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1.67fr) minmax(11rem, 0.72fr);
  grid-template-areas:
    "title slot card"
    "copy  slot card";
  column-gap: 15px;
  row-gap: 0.85rem;
  align-items: start;
}

.team-teaser__aside-title {
  grid-area: title;
  margin: 0;
  padding-top: 0.35rem;
  padding-right: 0;
  max-width: 12.5rem;
  font-family: var(--sl-font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--sl-navy);
}

.team-teaser__copy {
  grid-area: copy;
  max-width: 22rem;
  padding-right: 0.35rem;
}

.team-teaser__prose {
  color: var(--sl-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.team-teaser__prose p {
  margin: 0 0 1rem;
}

.team-teaser__prose p:last-child {
  margin-bottom: 0;
}

/* Middle photo — slightly wider column (~+8%); ≥15px gaps both sides */
.team-teaser__slot {
  grid-area: slot;
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: start;
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  border-radius: 4.75rem 1.15rem 1.15rem 1.15rem;
  clip-path: inset(0 round 4.75rem 1.15rem 1.15rem 1.15rem);
  --sl-ripples-matte: var(--sl-bg);
  background-color: #152033;
  background-size: cover;
  background-position: center;
  box-shadow: var(--sl-shadow-soft);
}

.team-teaser__slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.team-teaser__slot canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  pointer-events: auto;
  z-index: 2;
}

.team-teaser__slot.is-ripples-ready .team-teaser__slot-img {
  opacity: 0;
}

.team-teaser__card {
  grid-area: card;
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  max-width: 17.5rem;
  width: 100%;
  justify-self: end;
}

.team-teaser__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 1.35rem;
  clip-path: inset(0 round 1.35rem);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  --sl-ripples-matte: var(--sl-bg);
  margin-bottom: 0.85rem;
  background-color: #E8ECF1;
  background-size: cover;
  background-position: 50% 18%;
  box-shadow: var(--sl-shadow-soft);
}

.team-teaser__photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.team-teaser__photo canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  pointer-events: auto;
  z-index: 2;
}

.team-teaser__photo.is-ripples-ready .team-teaser__photo-fallback {
  opacity: 0;
}

.team-teaser__name {
  margin: 0 0 0.45rem;
  font-family: var(--sl-font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--sl-navy);
}

.team-teaser__bio {
  margin: 0;
  color: var(--sl-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .team-teaser__layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    grid-template-areas:
      "title title"
      "slot  card"
      "copy  copy";
    column-gap: 15px;
  }

  .team-teaser__aside-title {
    max-width: none;
  }

  .team-teaser__copy {
    max-width: none;
  }

  .team-teaser__slot {
    width: 100%;
    margin: 0;
  }

  .team-teaser__card {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .team-teaser__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "slot"
      "card"
      "copy";
  }

  .team-teaser__slot {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .team-teaser__card {
    max-width: 18rem;
  }
}

/* Legacy equal team cards (inner /about/team listing if reused) */
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  text-align: left;
  padding: 1rem 1rem 1.35rem;
}

.team-card__photo {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #E8ECF1, #D6DDE6);
  border-radius: 18px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__role {
  color: var(--sl-teal);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
.team-card__name { margin: 0 0 0.5rem; font-size: 1.15rem; }
.team-card__bio { color: var(--sl-muted); font-size: 0.92rem; margin: 0; }

/* News — Conferio blog-grid layout1 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 15px;
  row-gap: 3.75rem;
}

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

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

.news-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 10px;
  background: var(--sl-white);
  border: 1px solid rgba(26, 26, 26, 0.14);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-height: 0;
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
  transform: none;
  box-shadow: var(--sl-shadow-soft);
  border-color: rgba(26, 26, 26, 0.22);
  text-decoration: none;
  color: inherit;
}

.news-card__hold {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}

.news-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sl-navy);
  line-height: 1.55;
}

.news-card:hover .news-card__chip:not(.news-card__chip--date) {
  background: var(--sl-navy);
  color: #fff;
  border-color: transparent;
}

.news-card__title {
  margin: 0 0 2.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--sl-navy);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  transition: background-size 0.35s var(--sl-ease);
}

.news-card:hover .news-card__title {
  background-size: 100% 1.5px;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  margin: auto 0 2.5rem;
  padding: 0 5px 0 1.15rem;
  border-radius: 6px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: transparent;
  color: var(--sl-navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.news-card--no-media .news-card__more {
  margin-bottom: 0;
}

.news-card__more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--sl-navy);
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.news-card__more-icon svg {
  display: block;
  flex-shrink: 0;
}
.news-card__more:hover .news-card__more-icon svg {
  animation: sl-arrow-reenter 0.8s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

.news-card__media {
  position: relative;
  border-radius: 10px;
  clip-path: inset(0 round 10px);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  --sl-ripples-matte: var(--sl-white);
  aspect-ratio: 767 / 444;
  background-color: var(--sl-bg-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Visible by default — ripples must never leave an empty box */
.news-card__media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.8s ease;
}

.news-card:hover .news-card__media:not(.is-ripples-ready) .news-card__media-fallback {
  transform: scale(1.06);
}

.news-card__media canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  pointer-events: auto;
  z-index: 2;
}

/* Hide <img> only after WebGL texture is confirmed painting */
.news-card__media.is-ripples-ready .news-card__media-fallback {
  opacity: 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.news-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  padding: 1.1rem;
  border-radius: 12px;
  background: var(--sl-white);
  border: 1px solid rgba(26, 26, 26, 0.14);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.35s var(--sl-ease), border-color 0.35s var(--sl-ease);
}

.news-row__media,
.news-row__body {
  align-self: start;
}

.news-row:hover {
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sl-shadow-soft);
  border-color: rgba(26, 26, 26, 0.22);
}

.news-row--no-media {
  grid-template-columns: 1fr;
}

.news-row__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.news-row__media {
  position: relative;
  z-index: 3; /* above .news-row__hit so cursor drives ripples */
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 2;
  height: auto;
  border-radius: 10px;
  clip-path: inset(0 round 10px);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
  --sl-ripples-matte: var(--sl-white);
  background-color: var(--sl-bg-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  cursor: pointer;
}

/* Visible by default — ripples must never leave an empty box */
.news-row__media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

.news-row__media canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  pointer-events: auto; /* cursor = stick in water (Conferio) */
  z-index: 2;
  /* Do not force opacity:0 here — that was for /events cover-texture flash and
     hid news ripples whenever .is-ripples-ready lagged. Match .news-card__media. */
}

/* Hide <img> only after WebGL texture is confirmed painting */
.news-row__media.is-ripples-ready .news-row__media-fallback {
  opacity: 0;
}

.news-row__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  min-width: 0;
  padding: 0;
}

.news-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.news-row__chip {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--sl-navy);
  text-decoration: none;
}

.news-row__chip--cat {
  background: var(--sl-logo-orange, #FBAF06);
  border: 1px solid transparent;
  color: #0b1c2c;
}

.news-row__chip--cat:hover {
  filter: brightness(0.96);
  text-decoration: none;
  color: #0b1c2c;
}

.news-row__chip--date {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.16);
}

.news-row__title {
  margin: 0;
  font-family: var(--sl-font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--sl-navy);
}

.news-row__title a {
  position: relative;
  z-index: 3;
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  transition: background-size 0.35s var(--sl-ease);
}

.news-row:hover .news-row__title a,
.news-row__title a:hover,
.news-row__title a:focus-visible {
  background-size: 100% 1.5px;
  text-decoration: none;
  color: inherit;
}

.news-row__more {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  margin-top: 0.35rem;
  padding: 0 4px 0 1.05rem;
  border-radius: 8px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: transparent;
  color: var(--sl-navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.news-row__more:hover {
  text-decoration: none;
  color: var(--sl-navy);
  border-color: rgba(26, 26, 26, 0.28);
}

.news-row__more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--sl-navy);
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.news-row__more-icon svg {
  display: block;
  flex-shrink: 0;
}
.news-row__more:hover .news-row__more-icon svg,
.news-row__more:focus-visible .news-row__more-icon svg {
  animation: sl-arrow-reenter 0.8s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

@media (max-width: 760px) {
  .news-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .news-row__media {
    max-width: none;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .news-row__body {
    padding: 0.15rem 0.15rem 0.25rem;
  }
  .news-row__title {
    font-size: 1.1rem;
  }
}

.news-empty { margin-top: 0.5rem; }

/* CTA band — soft fill so it doesn’t blend into partners-band’s white fade-out */
.cta-band {
  text-align: center;
  padding: 3.5rem 0 5rem;
  background: var(--sl-bg-soft);
}

.cta-band__panel {
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(245, 197, 24, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(205, 232, 255, 0.45), transparent 55%),
    linear-gradient(145deg, #0B1C2C 0%, #16324a 55%, #0a4f4a 130%);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: var(--sl-shadow);
}

.cta-band__panel h2 {
  color: var(--sl-white);
  margin-bottom: 0.75rem;
}
.cta-band__panel p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}
.cta-band .btn-dark { margin-top: 0.25rem; }

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

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
}

.split__visual {
  position: relative;
  min-height: 320px;
  border-radius: 28px 28px 72px 28px;
  clip-path: inset(0 round 28px 28px 72px 28px);
  --sl-ripples-matte: var(--sl-bg);
  box-shadow: var(--sl-shadow);
  overflow: hidden;
  isolation: isolate;
  contain: paint;
}

/* Soft peach/navy wash above photo + WebGL canvas; pointer-events none so ripples still receive mouse */
.split__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(160deg, rgba(255, 216, 194, 0.18), transparent 48%),
    linear-gradient(200deg, rgba(28, 81, 168, 0.08), transparent 55%);
}

.split__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.split__panel canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  pointer-events: auto;
  z-index: 2;
}

.split__panel-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

.split__panel.is-ripples-ready .split__panel-fallback {
  opacity: 0;
}

/* Breadcrumbs — sit above .container inside .page-hero (own .container for gutters) */
.site-breadcrumbs {
  padding: 0 0 0.85rem;
  background: transparent;
}

.site-breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0;
  font-family: var(--sl-font-text);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--sl-muted);
}

.site-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.site-breadcrumbs__item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin: 0 0.55rem;
  border-right: 1.5px solid var(--sl-fill-muted);
  border-top: 1.5px solid var(--sl-fill-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.85;
}

.site-breadcrumbs__link {
  color: var(--sl-muted);
  text-decoration: none;
  text-underline-offset: 0.16em;
  transition: color 0.2s var(--sl-ease);
}

.site-breadcrumbs__link:hover,
.site-breadcrumbs__link:focus-visible {
  color: var(--sl-teal-dark);
  text-decoration: underline;
}

.site-breadcrumbs__current {
  display: inline-block;
  max-width: min(48ch, 62vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sl-navy);
  font-weight: 500;
}

/* Page shell (non-home) — same peach/sky ambient as home hero */
.page-hero {
  padding: calc(0.7rem + var(--sl-logo-hang)) 0 2rem;
  background:
    radial-gradient(ellipse 60% 50% at 8% 0%, rgba(255, 216, 194, 0.35), transparent 55%),
    radial-gradient(ellipse 45% 40% at 95% 10%, rgba(205, 232, 255, 0.4), transparent 50%);
  border-bottom: 1px solid var(--sl-border);
}

.page-hero h1 { margin-bottom: 0.5rem; }
/* The breadcrumb owns a nested .container; center only the hero content. */
.page-hero--news > .container,
.page-hero--event > .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero--news .meta-row,
.page-hero--event .meta-row {
  justify-content: center;
}
.page-hero--news h1,
.page-hero--event h1 {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: min(64rem, 100%);
  margin-bottom: 0.65rem;
}
@media (min-width: 768px) {
  .page-hero--news h1,
  .page-hero--event h1 {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
  }
}
.page-hero--news .page-hero__lead,
.page-hero--event .page-hero__lead {
  margin-inline: auto;
  max-width: min(56rem, 100%);
}
.page-hero__lead { color: var(--sl-muted); max-width: 40rem; margin: 0; }
.page-body { padding: 3rem 0 4rem; }

/* Reading column below the hero — centered like news; grids stay full .container */
.page-body > .container.content-prose {
  max-width: min(var(--sl-prose), var(--sl-container));
}
.page-body > .container > .content-prose {
  max-width: var(--sl-prose);
  margin-inline: auto;
}

.content-prose > *:first-child { margin-top: 0; }
.content-prose h2 { margin-top: 2rem; }
.content-prose ul { padding-left: 1.25rem; }

/* News / page body images — center by default; left/right via Grav ?classes= */
.content-prose {
  display: flow-root; /* contain floats without clipping quote mark */
  overflow: visible;
}
.content-prose img {
  height: auto;
  max-width: 100%;
  margin: 1.25rem auto;
  border-radius: 0.35rem;
  border: 1px solid rgba(11, 28, 44, 0.14); /* match blockquote frame */
}
.content-prose .sl-carousel__img {
  border: 0; /* frame is on .sl-carousel__viewport */
}
.content-prose p:has(> img:only-child) {
  text-align: center;
}
.content-prose img.center,
.content-prose img.aligncenter,
.content-prose img.align-center {
  display: block;
  float: none;
  margin: 1.25rem auto;
  max-width: min(100%, 36rem);
}
.content-prose img.left,
.content-prose img.alignleft,
.content-prose img.align-left,
.content-prose img.float-left {
  display: block;
  float: left;
  margin: 0.35rem 1.35rem 1rem 0;
  max-width: min(100%, 55%);
}
.content-prose img.right,
.content-prose img.alignright,
.content-prose img.align-right,
.content-prose img.float-right {
  display: block;
  float: right;
  margin: 0.35rem 0 1rem 1.35rem;
  max-width: min(100%, 55%);
}
.content-prose figure {
  margin: 1.25rem 0;
}
.content-prose figure.center,
.content-prose figure.aligncenter {
  float: none;
  display: block;
  margin: 1.25rem auto;
  max-width: min(100%, 36rem);
  text-align: center;
}
.content-prose figure.left,
.content-prose figure.alignleft {
  float: left;
  clear: left;
  margin: 0.35rem 1.35rem 1rem 0;
  max-width: min(100%, 55%);
}
.content-prose figure.right,
.content-prose figure.alignright {
  float: right;
  clear: right;
  margin: 0.35rem 0 1rem 1.35rem;
  max-width: min(100%, 55%);
}
.content-prose figure img {
  margin: 0 !important;
  width: 100%;
  max-width: 100%;
  float: none !important;
  display: block;
}
.content-prose figcaption {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--sl-muted);
  text-align: center;
  font-style: italic;
}
.content-prose .news-source {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sl-border);
  font-size: 0.9rem;
  color: var(--sl-muted);
}
.content-prose .news-source a {
  color: var(--sl-teal-dark);
}

/* Contextual aside / further reading within news prose */
.content-prose .sl-context-note {
  margin: 1.75rem 0 0;
  padding: 1.05rem 1.2rem;
  background: var(--sl-bg-soft);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-sm);
}
.content-prose .sl-context-note > :first-child { margin-top: 0; }
.content-prose .sl-context-note > :last-child { margin-bottom: 0; }
.content-prose .sl-context-note p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.55;
  color: color-mix(in srgb, var(--sl-text) 92%, var(--sl-muted));
}

/* Canva / external presentation embed in news prose */
.content-prose .sl-canva-embed {
  margin: 1.75rem 0;
}
.content-prose .sl-canva-embed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-sm);
  background: var(--sl-bg-soft);
}
.content-prose .sl-canva-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.content-prose .sl-canva-embed__fallback {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
}
.content-prose .sl-canva-embed__fallback a {
  font-weight: 600;
}

.content-prose .news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.content-prose .news-tags__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.85rem;
  border: 1px solid rgba(11, 28, 44, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--sl-navy);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.content-prose .news-tags__chip:hover {
  border-color: var(--sl-teal-dark);
  background: rgba(28, 81, 168, 0.08);
  color: var(--sl-teal-dark);
  text-decoration: none;
}

/* Pull-quote boxes (Markdown `>` → <blockquote>; alias .sl-quote) */
.content-prose blockquote,
blockquote.sl-quote {
  position: relative;
  clear: both;
  overflow: visible;
  margin: 2rem 0 1.75rem;
  /* Extra left pad so half-in mark clears first letters */
  padding: 1.65rem 1.6rem 1.45rem 2.35rem;
  background: var(--sl-white);
  border: 1px solid rgba(11, 28, 44, 0.14);
  border-radius: var(--sl-radius-sm);
  box-shadow: var(--sl-shadow-soft);
  color: var(--sl-navy);
  font-style: italic;
  line-height: 1.7;
}
/*
 * Thin L-shaped white eraser — only the border strokes near the corner,
 * never a fat pad over text. Horizontal bar on top border + vertical on left.
 * Strip thickness covers 1px border + ~12px radius corner.
 */
.content-prose blockquote::before,
blockquote.sl-quote::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 2;
  /* Span: half-mark (inside) + gap past glyph right/bottom (taller after mark drop) */
  width: clamp(2.25rem, 4.4vw, 2.75rem);
  height: clamp(2.1rem, 4.2vw, 2.55rem);
  background:
    linear-gradient(var(--sl-white), var(--sl-white)) 0 0 / 100% 10px no-repeat,
    linear-gradient(var(--sl-white), var(--sl-white)) 0 0 / 10px 100% no-repeat;
  pointer-events: none;
}
/* Orange quote mark — centered on left border; dropped ~½ height onto the corner */
.content-prose blockquote::after,
blockquote.sl-quote::after {
  content: "“";
  position: absolute;
  top: -0.32em;
  left: 0;
  z-index: 3;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  transform: translateX(-50%) translateY(50%);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(5.1rem, 9.8vw, 6.35rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.55;
  letter-spacing: 0;
  color: var(--sl-logo-orange);
  pointer-events: none;
  user-select: none;
}
.content-prose blockquote p,
blockquote.sl-quote p {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  font-style: italic;
  color: var(--sl-navy);
  line-height: 1.7;
}
.content-prose blockquote p:last-child,
blockquote.sl-quote p:last-child {
  margin-bottom: 0;
}
.content-prose blockquote strong,
.content-prose blockquote b,
blockquote.sl-quote strong,
blockquote.sl-quote b {
  font-weight: 700;
  font-style: italic;
}
.content-prose blockquote em,
blockquote.sl-quote em {
  font-style: italic;
  font-weight: 600;
}
@media (max-width: 640px) {
  .content-prose blockquote,
  blockquote.sl-quote {
    margin: 1.65rem 0 1.4rem;
    padding: 1.45rem 1.15rem 1.25rem 2rem;
  }
  .content-prose blockquote::before,
  blockquote.sl-quote::before {
    width: clamp(1.75rem, 7.5vw, 2.15rem);
    height: clamp(1.85rem, 7.5vw, 2.25rem);
  }
  .content-prose blockquote::after,
  blockquote.sl-quote::after {
    top: -0.32em;
    left: 0;
    font-size: clamp(4rem, 15vw, 5.1rem);
  }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes sl-quote-mark-in {
    from {
      opacity: 0;
      transform: translateX(-50%) translateY(calc(50% + 6px));
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(50%);
    }
  }
  .content-prose blockquote::after,
  blockquote.sl-quote::after {
    animation: sl-quote-mark-in 0.65s var(--sl-ease) both;
  }
}
@media (max-width: 640px) {
  .content-prose img.left,
  .content-prose img.right,
  .content-prose img.alignleft,
  .content-prose img.alignright,
  .content-prose img.align-left,
  .content-prose img.align-right,
  .content-prose img.float-left,
  .content-prose img.float-right,
  .content-prose figure.left,
  .content-prose figure.right,
  .content-prose figure.alignleft,
  .content-prose figure.alignright {
    float: none;
    display: block;
    margin: 1.1rem auto;
    max-width: 100%;
  }
}

/* Clear float stream (shortcode [clear] / before full-width blocks) */
.content-prose .sl-clear,
.content-prose .clear,
.content-prose .clearfix {
  clear: both;
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.content-prose p:has(> .sl-clear:only-child),
.content-prose p:has(> br.sl-clear:only-child) {
  clear: both;
  margin: 0;
  padding: 0;
  height: 0;
  line-height: 0;
  overflow: hidden;
}

/* News image carousel — horizontal slide track */
.sl-carousel {
  position: relative;
  clear: both; /* never wrap beside floated photos */
  width: 100%;
  margin: 1.75rem 0 2rem;
  /* Landscape Media Center photos: shorter frame → less letterboxing */
  --sl-carousel-ratio: 16 / 9;
}
.sl-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid rgba(11, 28, 44, 0.14); /* match blockquote / prose imgs */
  background: #0b1c2c;
  aspect-ratio: var(--sl-carousel-ratio);
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.sl-carousel__viewport.is-dragging {
  cursor: grabbing;
}
.sl-carousel__track,
.content-prose .sl-carousel__track {
  /* Must beat .content-prose ul { padding-left } or slides drift */
  position: relative; /* offsetParent for slide.offsetLeft in JS */
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.sl-carousel__slide,
.content-prose .sl-carousel__slide {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sl-carousel__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 !important;
  float: none !important;
  border-radius: 0;
  cursor: zoom-in;
  pointer-events: auto;
}
.sl-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(transparent, rgba(11, 28, 44, 0.75));
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  pointer-events: none;
}
.sl-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1c2c;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(11, 28, 44, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}
.sl-carousel__btn:hover {
  background: #fff;
}
.sl-carousel__btn--prev { left: 0.65rem; }
.sl-carousel__btn--next { right: 0.65rem; }
.sl-carousel__meta {
  display: flex;
  justify-content: center;
  margin-top: 0.65rem;
}
.sl-carousel__counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sl-muted);
  letter-spacing: 0.02em;
}
.sl-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  max-height: 3.5rem;
  overflow: auto;
  padding: 0.15rem;
}
.sl-carousel__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 28, 44, 0.22);
  cursor: pointer;
}
.sl-carousel__dot.is-active {
  background: var(--sl-navy);
  transform: scale(1.25);
}
@media (max-width: 640px) {
  .sl-carousel {
    /* Keep landscape frame on phones — 3/4 made huge top/bottom bars */
    --sl-carousel-ratio: 4 / 3;
  }
  .sl-carousel__btn {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.45rem;
  }
}
/* Content image lightbox */
.content-prose img.sl-lightbox-trigger,
.sl-carousel img.sl-lightbox-trigger {
  cursor: zoom-in;
}
.sl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 28, 44, 0.82);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: zoom-out;
}
.sl-lightbox[hidden] {
  display: none !important;
}
.sl-lightbox__stage {
  max-width: 100%;
  max-height: calc(100vh - 4.5rem);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.sl-lightbox__stage.is-dragging {
  cursor: grabbing;
}
.sl-lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  cursor: inherit;
}
.sl-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  border-radius: 0.25rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  background: #0b1c2c;
  margin-inline: auto;
}
.sl-lightbox__img.is-slide-from-right {
  animation: sl-lb-slide-in-right 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.sl-lightbox__img.is-slide-from-left {
  animation: sl-lb-slide-in-left 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes sl-lb-slide-in-right {
  from { transform: translateX(28%); opacity: 0.35; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes sl-lb-slide-in-left {
  from { transform: translateX(-28%); opacity: 0.35; }
  to { transform: translateX(0); opacity: 1; }
}
.sl-lightbox-reduced .sl-lightbox__img.is-slide-from-right,
.sl-lightbox-reduced .sl-lightbox__img.is-slide-from-left,
.sl-lightbox-reduced .sl-carousel__track {
  animation: none !important;
  transition: none !important;
}
.sl-lightbox__caption {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.sl-lightbox__meta {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
}
.sl-lightbox__close {
  position: fixed;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 11001;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.sl-lightbox__close:hover,
.sl-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}
.sl-lightbox__nav {
  position: fixed;
  top: 50%;
  z-index: 11001;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sl-lightbox__nav[hidden] { display: none !important; }
.sl-lightbox__nav--prev { left: 0.75rem; }
.sl-lightbox__nav--next { right: 0.75rem; }
.sl-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.24);
}
html.has-sl-lightbox {
  overflow: hidden;
}
html.has-sl-lightbox body {
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .sl-lightbox:not([hidden]) {
    animation: sl-lightbox-in 0.18s ease-out;
  }
}
@keyframes sl-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.content-prose h3 {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  padding: 2rem 1.75rem;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(145deg, #FFE4CC 0%, #EDE8E4 50%, #D6E8F8 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.28s var(--sl-ease), transform 0.28s var(--sl-ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}
.contact-card dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sl-teal);
  margin: 0 0 0.35rem;
}
.contact-card dd {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}
.contact-card dd:last-child { margin-bottom: 0; }

.contact-map {
  position: relative;
  border-radius: var(--sl-radius);
  overflow: hidden;
  border: 1px solid var(--sl-border);
  background: var(--sl-bg-soft);
  min-height: 360px;
  align-self: stretch;
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 760px) {
  .contact-map {
    position: relative;
    height: 320px;
  }
}
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.form-input,
.form-select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-sm);
  font: inherit;
  background: var(--sl-white);
}
.form-actions { margin-top: 1rem; }

/* Footer */
.site-footer {
  background: var(--sl-navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  margin-top: auto;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.site-footer a:hover { color: var(--sl-gold); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem 1.75rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 920px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand-link {
  display: inline-block;
  margin-bottom: 0.85rem;
  text-decoration: none;
}
.footer__logo {
  height: 110px;
  width: auto;
  display: block;
  background: var(--sl-white);
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
}
.footer__blurb {
  margin: 0 0 0.85rem;
  max-width: 22rem;
  line-height: 1.55;
  font-size: 0.92rem;
}
.footer__social {
  margin: 0;
}
.footer__brand {
  font-family: var(--sl-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sl-white);
  margin-bottom: 0.5rem;
  font-feature-settings: var(--sl-font-alt);
  font-variant-alternates: styleset(ss01);
}
.footer__title {
  font-family: var(--sl-font-text);
  color: var(--sl-white);
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.85rem;
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 0.45rem; }
.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--sl-ease), transform 0.85s var(--sl-ease);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .partners-marquee__track { animation: none; }
  .news-marquee__track { animation: none; }
  .hero__live-dot { animation: none; }
}

/* Layout shell */
.site-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* WordPress-style admin bar (only when logged into Admin2) */
.sl-admin-bar {
  position: fixed;
  z-index: 10050;
  inset: 0 0 auto 0;
  background: #0b1c2c;
  color: #fff;
  font-family: var(--sl-font-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sl-admin-bar[hidden] {
  display: none !important;
}
.sl-admin-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  min-height: 36px;
  padding: 0.35rem 1rem;
  max-width: 1400px;
  margin-inline: auto;
}
.sl-admin-bar__howdy {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-right: auto;
}
.sl-admin-bar a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.sl-admin-bar a:hover {
  background: rgba(255, 255, 255, 0.12);
}
.sl-admin-bar__edit {
  background: rgba(212, 175, 55, 0.22);
}
.sl-admin-bar__edit:hover {
  background: rgba(212, 175, 55, 0.35);
}
html.has-sl-admin-bar body {
  padding-top: 36px;
}
html.has-sl-admin-bar .site-header {
  top: 36px;
}
.site-main { flex: 1; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--sl-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(28, 81, 168, 0.12);
  color: var(--sl-teal-dark);
  border-radius: var(--sl-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.badge--event-status-announced {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}
.badge--event-status-ongoing {
  background: rgba(251, 175, 6, 0.22);
  color: #92400e;
}
.badge--event-status-completed {
  background: rgba(15, 23, 42, 0.08);
  color: var(--sl-muted);
}

/* —— Events archive (tabs: Upcoming / Past) —— */
.events-archive {
  max-width: 960px;
  margin-inline: auto;
}
.events-archive__tabs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.events-archive__tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.2rem;
  border-bottom: 1px solid var(--sl-border);
}
.events-archive__tab {
  appearance: none;
  margin: 0;
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--sl-radius-sm);
  background: transparent;
  font-family: var(--sl-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sl-muted);
  cursor: pointer;
  transition: color 0.2s var(--sl-ease), background 0.2s var(--sl-ease), border-color 0.2s var(--sl-ease);
}
.events-archive__tab:hover {
  color: var(--sl-navy);
  background: var(--sl-bg-soft);
}
.events-archive__tab:focus-visible {
  outline: 2px solid var(--sl-teal);
  outline-offset: 2px;
}
.events-archive__tab.is-active {
  color: var(--sl-navy);
  background: color-mix(in srgb, var(--sl-sky) 45%, white);
  border-color: transparent;
}
.events-archive__panel {
  width: 100%;
}
.events-archive__panel[hidden] {
  display: none;
}
.events-archive__empty {
  margin: 0;
  color: var(--sl-muted);
  font-size: 0.95rem;
}
.event-row__summary {
  position: relative;
  z-index: 3;
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--sl-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-row .badge--event-status {
  position: relative;
  z-index: 3;
}
/* Event rows: same news-row 3:2 landscape media; CSS cover only (no WebGL). */

/* —— Event item page —— */
.page-hero--event .meta-row {
  align-items: center;
  flex-wrap: wrap;
}
.page-hero--event .event-hero__cta {
  margin: 1.25rem 0 0;
}
.event-item__cover {
  margin: 0 0 1.75rem;
}
.event-item__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.event-section {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}
.event-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--sl-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sl-navy);
}
.event-section__text {
  margin: 0 0 0.65rem;
}
.event-list {
  margin: 0;
  padding-left: 1.15rem;
}
.event-list li + li {
  margin-top: 0.4rem;
}
.event-list__meta {
  color: var(--sl-muted);
  font-weight: 400;
}
.event-list--related {
  list-style: none;
  padding-left: 0;
}
.event-list--related li + li {
  margin-top: 0.65rem;
}
.event-list--related .btn {
  display: inline-flex;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  height: auto;
  min-height: 2.5rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.event-gallery__item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: rgba(15, 23, 42, 0.04);
}
.event-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__live-status {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.hero__live a.hero__live-title-link {
  color: inherit;
  text-decoration: none;
}
.hero__live a.hero__live-title-link:hover,
.hero__live a.hero__live-title-link:focus-visible {
  text-decoration: underline;
}

/*
 * Firefox (Gecko): overflow/border-radius stop clipping WebGL after scroll
 * (layer promotion) — corners go square while ripples still run. Do not use
 * clip-path/contain/isolation (flicker). Rounding is applied in JS via SVG
 * CSS mask on the host + canvas (applyGeckoRippleMask in site.js).
 */
@supports (-moz-appearance: none) {
  .hero-media,
  .news-card__media,
  .news-row__media,
  .team-teaser__photo,
  .team-teaser__slot,
  .split__visual {
    clip-path: none !important;
    contain: none !important;
    isolation: auto !important;
  }
}

/* —— Projects archive (Active | Completed) —— */
.projects-archive {
  max-width: 1120px;
  margin-inline: auto;
}
.projects-archive__grid {
  display: grid;
  gap: 2.5rem 2rem;
}
@media (min-width: 900px) {
  .projects-archive__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.projects-archive__heading {
  margin: 0 0 1.25rem;
  font-family: var(--sl-font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--sl-navy);
}
.projects-archive__empty {
  margin: 0;
  color: var(--sl-muted);
  font-size: 0.95rem;
}
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-card {
  position: relative;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--sl-radius);
  border: 1px solid transparent;
  transition: opacity 0.85s var(--sl-ease), transform 0.85s var(--sl-ease), box-shadow 0.35s var(--sl-ease);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms), calc(var(--reveal-delay, 0) * 1ms), 0s;
}

/* Active — pastel fills */
.project-card--active {
  box-shadow: var(--sl-shadow-soft);
}
.project-card--peach { background: color-mix(in srgb, var(--sl-peach) 72%, white); }
.project-card--sky { background: color-mix(in srgb, var(--sl-sky) 55%, white); }
.project-card--mint { background: color-mix(in srgb, var(--sl-mint) 70%, white); }
.project-card--lavender { background: color-mix(in srgb, var(--sl-lavender) 65%, white); }
.project-card--butter { background: color-mix(in srgb, var(--sl-butter) 70%, white); }
.project-card--rose { background: color-mix(in srgb, var(--sl-rose) 68%, white); }

/* Completed — pale / washed out */
.project-card--completed {
  background: #f1f3f6;
  border-color: rgba(15, 23, 42, 0.06);
  color: #6b7280;
  box-shadow: none;
  filter: saturate(0.35);
}
.project-card--completed .project-card__title {
  color: #64748b;
}
.project-card--completed .project-card__summary,
.project-card--completed .project-card__fact dd,
.project-card--completed .project-card__fact dt {
  color: #8b95a5;
}
.project-card--completed .project-card__link {
  color: #6b7c93;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.project-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.75rem;
  border-radius: var(--sl-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.project-card__badge--active {
  background: rgba(251, 175, 6, 0.28);
  color: #7a4a05;
}
.project-card__badge--completed {
  background: rgba(15, 23, 42, 0.08);
  color: #6b7280;
}

.project-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--sl-font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--sl-navy);
}

.project-card__summary {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--sl-text);
}

.project-card__facts {
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.project-card__fact {
  margin: 0;
}
.project-card__fact dt {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sl-muted);
}
.project-card__fact dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--sl-text);
}

.project-card__links {
  list-style: none;
  margin: 1.05rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sl-teal);
  text-decoration: none;
}
.project-card__link:hover {
  color: var(--sl-teal-dark);
  text-decoration: underline;
}
.project-card__link-icon {
  display: inline-flex;
  flex-shrink: 0;
}

/* ========== Publications (bibliographic cards) ========== */
.publications-archive {
  padding-bottom: 2.5rem;
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
}
.pub-filters__chip {
  appearance: none;
  border: 1px solid var(--sl-border);
  background: var(--sl-bg);
  color: var(--sl-muted);
  font-family: var(--sl-font-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--sl-radius-sm);
  cursor: pointer;
  transition: background 0.2s var(--sl-ease), color 0.2s var(--sl-ease), border-color 0.2s var(--sl-ease);
}
.pub-filters__chip:hover {
  color: var(--sl-navy);
  border-color: rgba(28, 81, 168, 0.35);
}
.pub-filters__chip.is-active {
  background: color-mix(in srgb, var(--sl-sky) 45%, white);
  border-color: transparent;
  color: var(--sl-navy);
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.publications-year__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
  color: var(--sl-navy);
}
.publications-year__items {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.publications-archive__empty {
  margin: 0;
  color: var(--sl-muted);
  font-size: 0.95rem;
}
.publications-archive__empty--filtered {
  margin-top: 1rem;
}

.pub-card {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0 1.35rem;
  padding: 1.2rem 1.3rem 1.25rem;
  background: var(--sl-bg-mist);
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius);
  border-left: 3px solid var(--sl-teal);
  box-shadow: none;
  transition: opacity 0.85s var(--sl-ease), transform 0.85s var(--sl-ease), box-shadow 0.35s var(--sl-ease), border-color 0.25s var(--sl-ease);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms), calc(var(--reveal-delay, 0) * 1ms), 0s, 0s;
}
.pub-card:hover {
  box-shadow: var(--sl-shadow-soft);
  border-color: rgba(28, 81, 168, 0.22);
  border-left-color: var(--sl-teal);
}
.pub-card.is-filtered-out {
  display: none;
}

.pub-card__rail {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0.1rem;
}
.pub-card__cover {
  position: relative;
  width: 9rem;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(165deg, #e8eef6 0%, #d5dde8 100%);
  border: 1px solid rgba(28, 81, 168, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 6px 16px rgba(11, 28, 44, 0.12);
}
.pub-card__cover::before {
  /* thin “spine” edge on the left of the cover block */
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(11, 28, 44, 0.22), rgba(11, 28, 44, 0.08));
  z-index: 1;
  pointer-events: none;
}
.pub-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.pub-card__cover--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--sl-sky) 35%, white) 0%, color-mix(in srgb, var(--sl-teal) 18%, #eef3f9) 100%);
  color: var(--sl-teal-dark);
}
.pub-card__cover-icon {
  width: 40px;
  height: 40px;
  opacity: 0.72;
}

.pub-card__body {
  min-width: 0;
}

.pub-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.pub-card__type {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.65rem;
  border-radius: var(--sl-radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(28, 81, 168, 0.1);
  color: var(--sl-teal-dark);
}

.pub-card__people {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--sl-text);
}
.pub-card__editors,
.pub-card__authors {
  font-weight: 600;
}

.pub-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--sl-font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--sl-navy);
}
.pub-card__title--book {
  font-style: italic;
  font-weight: 600;
}

.pub-card__venue {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--sl-text);
  font-style: italic;
}

.pub-card__imprint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--sl-muted);
}

.pub-card__ids {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--sl-muted);
}
.pub-card__id {
  color: inherit;
}
.pub-card__id--doi {
  font-weight: 600;
  text-decoration: none;
}
.pub-card__id--doi:hover {
  color: var(--sl-teal-dark);
  text-decoration: underline;
}
.pub-card__id-sep {
  opacity: 0.5;
}

.pub-card__summary {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--sl-text);
}

.pub-card__links {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}
.pub-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sl-teal);
  text-decoration: none;
}
.pub-card__link:hover {
  color: var(--sl-teal-dark);
  text-decoration: underline;
}
.pub-card__link-icon {
  display: inline-flex;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .pub-card {
    grid-template-columns: 7.2rem minmax(0, 1fr);
    gap: 0 1rem;
    padding-left: 1.05rem;
  }
  .pub-card__rail {
    padding-top: 0;
  }
  .pub-card__cover {
    width: 7.2rem;
  }
}

.publications-year.is-filtered-empty {
  display: none;
}

/* ========== Research directions page (timeline + accordion) ========== */
.directions-page__intro {
  max-width: var(--sl-prose);
  margin: 0 auto 2.75rem;
  color: var(--sl-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
}

.directions-timeline {
  display: grid;
  grid-template-columns: minmax(11rem, 15.5rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: start;
}

.directions-timeline__brand {
  position: sticky;
  /* Stick below hanging header logo; initial flush with first card (margin-top: 0) */
  top: calc(var(--sl-header-h) + var(--sl-logo-hang) + 1rem);
  margin-top: 0;
  box-sizing: border-box;
  aspect-ratio: 1;
  width: 100%;
  padding: clamp(1.25rem, 2.5vw, 2.35rem);
  background: #fff;
  border-radius: var(--sl-radius);
  box-shadow:
    0 0 0 1.5px rgba(26, 26, 26, 0.1),
    0 14px 40px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.06);
}

.directions-timeline__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.directions-timeline__track {
  position: relative;
  min-width: 0;
}

.directions-timeline__list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.directions-item {
  scroll-margin-top: calc(var(--sl-header-h) + var(--sl-logo-hang) + 1rem);
  color: inherit;
}

.directions-item__summary {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  cursor: pointer;
}

.directions-item__summary::-webkit-details-marker {
  display: none;
}

.directions-item__summary::marker {
  content: "";
}

/* Wrapper: spine-like vertical C-curve behind the circle (original 01 look, every node) */
.directions-item__node-wrap {
  position: relative;
  z-index: 2;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  overflow: visible;
}

.directions-item__node-swish {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.75rem;
  height: 4.85rem;
  transform: translate(-50%, -50%);
  color: #1a1a1a;
  opacity: 0.88;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.directions-item__node {
  position: relative;
  z-index: 1;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  border: 1.5px solid #1a1a1a;
  display: grid;
  place-items: center;
  font-family: var(--sl-font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  /* Halo masks the C-curve through the node → elegant swishes above & below */
  box-shadow: 0 0 0 5px var(--sl-bg);
  flex-shrink: 0;
}

.directions-item__card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 1.15rem 1.35rem 1.2rem;
  border-radius: 16px;
  border: 0;
  color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.28s var(--sl-ease), transform 0.28s var(--sl-ease);
}

/* Wide accordion cards need a soft neutral mid bridge (hub cards keep shared 3-stops). */
.directions-item__card.card--hub-peach-sky,
.directions-item__node.card--hub-peach-sky {
  background: linear-gradient(145deg, #FFE4D2 0%, #F0EBE6 50%, #B9DCF0 100%);
}
.directions-item__card.card--hub-butter-mint,
.directions-item__node.card--hub-butter-mint {
  background: linear-gradient(145deg, #F3E9B0 0%, #EFEEE4 50%, #BFE6D4 100%);
}
.directions-item__card.card--hub-rose-lavender,
.directions-item__node.card--hub-rose-lavender {
  background: linear-gradient(145deg, #F0D6E4 0%, #EDE8EC 50%, #D4D8FF 100%);
}
.directions-item__card.card--hub-coral-teal,
.directions-item__node.card--hub-coral-teal {
  background: linear-gradient(145deg, #FFD0C4 0%, #F0E8E4 50%, #9DD9D4 100%);
}
.directions-item__card.card--hub-apricot-blue,
.directions-item__node.card--hub-apricot-blue {
  background: linear-gradient(145deg, #FFE2B5 0%, #F2EBDF 50%, #B4C8F5 100%);
}
.directions-item__card.card--hub-blush-mint,
.directions-item__node.card--hub-blush-mint {
  background: linear-gradient(145deg, #F8CFD8 0%, #EBE6E4 50%, #B4E5D0 100%);
}

/* Mirror .card--hub::after — fixed rem offsets so ~1/4 stays visible on wide cards
   (hub % inset works on narrow grid cards; % of accordion width pushes the orb off-screen). */
.directions-item__card::after {
  content: "";
  position: absolute;
  right: -4.5rem;
  bottom: -4.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  z-index: 0;
}

.directions-item__summary:hover .directions-item__card,
.directions-item[open] .directions-item__card {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.directions-item__title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.45rem;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.2;
  color: inherit;
}

.directions-item__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--sl-navy) 62%, transparent);
}

.directions-item__toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  color: inherit;
  opacity: 0.88;
}

.directions-item__less {
  display: none;
}

.directions-item[open] .directions-item__more {
  display: none;
}

.directions-item[open] .directions-item__less {
  display: inline;
}

.directions-item__body {
  /* Mirror summary grid: spacer under node + body under card column */
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 0.85rem;
  margin: 0.35rem 0 0;
  padding: 0 0 0.35rem;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.directions-item__body > * {
  grid-column: 2;
}

.directions-item__body p {
  margin: 0.9rem 0 0;
  color: var(--sl-text);
  font-size: 1.02rem;
  line-height: 1.7;
}

.directions-item__body p:first-child {
  margin-top: 1rem;
}

.directions-page__footer {
  margin: 3rem 0 0;
  max-width: var(--sl-prose);
  color: var(--sl-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.directions-page__footer a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sl-teal) 45%, transparent);
}

.directions-page__footer a:hover {
  border-bottom-color: var(--sl-teal-dark);
}

@media (max-width: 900px) {
  .directions-timeline {
    grid-template-columns: 1fr;
  }

  .directions-timeline__brand {
    position: static;
    width: min(100%, 14rem);
    margin: 1.25rem auto 0.75rem;
  }

  .directions-item__summary {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .directions-item__node-wrap {
    width: 2.4rem;
    height: 2.4rem;
  }

  .directions-item__node-swish {
    width: 2.4rem;
    height: 4.35rem;
  }

  .directions-item__body {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    column-gap: 0.65rem;
  }
}

@media (max-width: 560px) {
  .directions-item__card {
    padding: 1rem 1.05rem 1.05rem;
  }

  .directions-item__node {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.72rem;
  }

  .directions-item__node-wrap {
    width: 2.25rem;
    height: 2.25rem;
  }

  .directions-item__node-swish {
    width: 2.25rem;
    height: 4.1rem;
  }

  .directions-item__body {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  .directions-item__body > * {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .directions-item__card,
  .directions-item__summary:hover .directions-item__card,
  .directions-item[open] .directions-item__card {
    transition: none;
    transform: none;
  }
}


/* ========== LingID video grid (news: Пряма мова) ========== */
.content-prose .sl-video-breakout {
  width: min(100vw - 2.5rem, 1180px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  font-family: var(--sl-font-text);
}
.video-card {
  border: 1px solid #111;
  border-radius: 12px;
  padding: 15px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 #111;
  color: #111;
  text-decoration: none;
}
/* Pastel fills the whole card (LingID pattern) */
.bg-yellow { background-color: var(--sl-gold-sticker); }
.bg-blue { background-color: var(--sl-sky); }
.bg-peach { background-color: var(--sl-peach); }
.bg-lilac { background-color: var(--sl-lavender); }
.bg-mint { background-color: var(--sl-mint); }
.bg-butter { background-color: var(--sl-butter); }
.bg-rose { background-color: var(--sl-rose); }
.bg-white { background-color: var(--sl-white); }
.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 #111;
  outline: none;
  color: #111;
  text-decoration: none;
}
.main-video {
  grid-column: span 2;
  grid-row: span 2;
  padding: 20px;
}
/* Thumb via background-image — 16:9 box with own border (like donor) */
.video-preview-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 12px;
  border: 1px solid #111;
  border-radius: 8px;
  overflow: hidden;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 65px;
  height: 65px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.play-button::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent currentColor;
}
.play-button.small { display: none; width: 50px; height: 50px; }
.play-button.small::before {
  margin-left: 3px;
  border-width: 8px 0 8px 12px;
}
.video-card:hover .play-button {
  background: #EFDF5C;
  color: #111;
  transform: translate(-50%, -50%) scale(1.1);
}
.video-info { margin-top: auto; }
.video-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 8px;
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #fff;
}
.video-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: #111;
  line-height: 1.2;
}
.main-video .video-name { font-size: 1.8rem; }
.video-label-small {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #555;
  margin-top: 5px;
}
/* Reparented to document.body by site.js so .sl-video-breakout transform
   cannot trap position:fixed to the breakout box. */
.brutal-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.brutal-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.brutal-modal-content {
  background: #fff;
  border: 2px solid #111;
  box-shadow: 10px 10px 0 #111;
  border-radius: 12px;
  width: 100%;
  max-width: 1000px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
}
.brutal-modal-overlay.active .brutal-modal-content { transform: translateY(0); }
.video-iframe-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.video-iframe-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.brutal-modal-close {
  position: absolute;
  top: -45px;
  right: -10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}
.brutal-modal-close:hover { color: #EFDF5C; transform: scale(1.1); }
@media (max-width: 992px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .main-video { grid-column: span 2; grid-row: auto; }
  .main-video .video-name { font-size: 1.4rem; }
  .play-button { display: none; }
  .play-button.small { display: flex; }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .main-video { grid-column: span 1; }
  .main-video .video-name { font-size: 1.25rem; }
}

/* ========== Documents page (Drive links + preview modal) ========== */
.section-hub__featured-docs {
  max-width: var(--sl-prose);
  margin: 0 auto 1.75rem;
}

.section-hub__featured-docs .documents-links {
  margin-top: 0;
}

.documents-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.documents-links__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.05rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(26, 26, 26, 0.1);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s var(--sl-ease), box-shadow 0.22s var(--sl-ease), border-color 0.22s var(--sl-ease);
}

.documents-links__item:hover,
.documents-links__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(26, 26, 26, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  outline: none;
}

.documents-links__icon {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  border: 1.5px solid #1a1a1a;
  display: grid;
  place-items: center;
  background: #fff;
  color: #1a1a1a;
}

.documents-links__title {
  font-size: 0.98rem;
  line-height: 1.45;
  font-weight: 650;
}

.sl-drive-modal .brutal-modal-content {
  max-width: min(1100px, 100%);
  padding: 1rem 1rem 0.85rem;
}

.sl-drive-modal__title {
  margin: 0 0 0.75rem;
  padding-right: 1.5rem;
  font-family: var(--sl-font-display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.35;
  color: #1a1a1a;
}

.sl-drive-modal__frame {
  position: relative;
  width: 100%;
  height: min(72vh, 820px);
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f3f3;
  border: 1.5px solid #1a1a1a;
}

.sl-drive-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sl-drive-modal__fallback {
  margin: 0.7rem 0 0;
  text-align: right;
  font-size: 0.9rem;
}

.sl-drive-modal__fallback a {
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sl-teal) 45%, transparent);
}

.sl-drive-modal__fallback a:hover {
  border-bottom-color: var(--sl-teal-dark);
}

@media (max-width: 700px) {
  .sl-drive-modal__frame {
    height: min(68vh, 640px);
    min-height: 320px;
  }

  .documents-links__item {
    padding: 0.8rem 0.9rem;
  }
}

