/* =========================================================
   DLPS — Design Tokens
   ========================================================= */
:root {
  /* Surfaces */
  --color-bg: #ffffff;
  --color-canvas: #f5f7fb;
  --color-canvas-2: #eef2f9;
  --color-surface: #ffffff;
  --color-border: #e6eaf2;
  --color-border-strong: #d3dbe8;

  /* Text */
  --color-ink: #0e1a2b;
  --color-ink-2: #1f2a3d;
  --color-muted: #5a6478;
  --color-muted-2: #8892a6;

  /* Brand */
  --color-primary: #1e6bf1;
  --color-primary-600: #1a5fd6;
  --color-primary-50: #e8f0ff;
  --color-accent: #14b8a6;
  --color-accent-50: #e6faf6;
  --color-warning: #f5b301;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, 0.04), 0 1px 3px rgba(14, 26, 43, 0.06);
  --shadow-md: 0 6px 16px rgba(14, 26, 43, 0.06), 0 2px 6px rgba(14, 26, 43, 0.05);
  --shadow-lg: 0 24px 60px rgba(14, 26, 43, 0.10), 0 8px 20px rgba(14, 26, 43, 0.06);
  --shadow-nav: 0 4px 20px rgba(14, 26, 43, 0.06);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Fraunces", Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1440px;
  --container-narrow: 920px;
  --gutter: clamp(24px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 96px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 420ms;
}

/* =========================================================
   Reset & Base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background-color: #f8fbff;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(30, 107, 241, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(30, 107, 241, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(20, 184, 166, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  line-height: 1.15;
}

p {
  margin: 0;
}

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

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

.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-50);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
}

.section-banner {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-banner .eyebrow {
  margin-bottom: 16px;
}

.section-banner .title {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  margin-bottom: 14px;
}

.section-banner .description {
  color: var(--color-muted);
  font-size: clamp(1rem, 1.4vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.65;
  max-width: 640px;
  margin-inline: auto;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(30, 107, 241, 0.28);
}

.btn-primary:hover {
  background: var(--color-primary-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(30, 107, 241, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  padding-inline: 8px;
}

.btn-ghost:hover {
  color: var(--color-primary);
}

.btn-outline {
  background: #fff;
  color: var(--color-ink);
  border: 1px solid var(--color-border-strong);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* Original CTA from old markup compatibility */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(30, 107, 241, 0.28);
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--color-primary-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(30, 107, 241, 0.32);
}

/* =========================================================
   Navigation
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: background var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 10px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-2);
  transition: color var(--t-fast) var(--ease);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active {
  color: var(--color-primary);
}

/* Sliding underline indicator (positioned by JS) */
.nav-indicator {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: translateX(0);
  transition:
    transform 360ms var(--ease),
    width 360ms var(--ease),
    opacity 200ms var(--ease);
  opacity: 0;
  pointer-events: none;
}

.nav-indicator.is-ready {
  opacity: 1;
}

.nav-cta-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  padding: 12px 22px;
  font-size: 0.9rem;
}

/* =========================================================
   Nav: Services dropdown (mega-menu)
   ========================================================= */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link--has-chevron {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link__chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--t-fast) var(--ease);
  color: currentColor;
}

.nav-item--dropdown.is-open .nav-link__chevron,
.nav-item--dropdown:hover .nav-link__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(380px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow:
    0 24px 60px rgba(14, 26, 43, 0.14),
    0 8px 20px rgba(14, 26, 43, 0.06);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms var(--ease),
    transform 200ms var(--ease),
    visibility 0s linear 200ms;
  z-index: 70;
}

.nav-item--dropdown.is-open .nav-dropdown__panel,
.nav-item--dropdown:hover .nav-dropdown__panel,
.nav-item--dropdown:focus-within .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    opacity 180ms var(--ease),
    transform 200ms var(--ease),
    visibility 0s linear 0s;
}

/* Hover bridge — keeps the panel open while moving the cursor across the
   8px gap between the trigger and the panel */
.nav-dropdown__panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background var(--t-fast) var(--ease);
  color: var(--color-ink);
}

.nav-dropdown__item:hover,
.nav-dropdown__item:focus-visible {
  background: var(--color-primary-50);
}

.nav-dropdown__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-primary-50);
  color: var(--color-primary);
}

.nav-dropdown__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-dropdown__item--featured .nav-dropdown__icon {
  background: var(--color-accent-50);
  color: var(--color-accent);
}

.nav-dropdown__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-dropdown__text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.3;
}

.nav-dropdown__text span {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.nav-dropdown__item--featured .nav-dropdown__text strong {
  color: var(--color-primary);
}

.nav-dropdown__divider {
  height: 1px;
  background: var(--color-border);
  margin: 6px 4px;
}

/* =========================================================
   Nav: Office availability indicator
   ========================================================= */
.nav-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 26, 43, 0.04);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: default;
}

.nav-availability__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-muted-2);
  flex-shrink: 0;
  position: relative;
}

.nav-availability.is-open {
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.30);
  color: #0f766e;
}

.nav-availability.is-open .nav-availability__dot {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: nav-availability-pulse 2.2s ease-out infinite;
}

.nav-availability.is-closed {
  background: rgba(14, 26, 43, 0.04);
  border-color: var(--color-border);
  color: var(--color-muted);
}

.nav-availability.is-closed .nav-availability__dot {
  background: #9ca3af;
}

@keyframes nav-availability-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-availability.is-open .nav-availability__dot {
    animation: none;
  }
}

/* Hide availability pill on tablet/mobile to keep nav uncluttered;
   the same info lives in the footer "Office & Hours" column */
@media (max-width: 1100px) {
  .nav-availability {
    display: none;
  }
}

/* =========================================================
   Target highlight — when a dropdown link jumps to a section/
   card that's already in (or near) the viewport, a brief ring
   pulse + accent flash makes it obvious which item the user
   landed on.
   ========================================================= */
.is-target-highlight {
  animation: target-highlight-ring 2s var(--ease) both;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}

.is-target-highlight.service-tile {
  border-color: var(--color-primary);
}

.is-target-highlight.service-tile .body .title,
.is-target-highlight .title {
  color: var(--color-primary);
  transition: color 320ms var(--ease);
}

@keyframes target-highlight-ring {
  0% {
    outline: 0 solid rgba(30, 107, 241, 0.85);
    outline-offset: 0;
    box-shadow: 0 0 0 0 rgba(30, 107, 241, 0.45);
  }
  18% {
    outline: 3px solid rgba(30, 107, 241, 0.85);
    outline-offset: 4px;
    box-shadow: 0 0 0 10px rgba(30, 107, 241, 0.20);
  }
  60% {
    outline: 2px solid rgba(30, 107, 241, 0.45);
    outline-offset: 8px;
    box-shadow: 0 0 0 18px rgba(30, 107, 241, 0.06);
  }
  100% {
    outline: 0 solid rgba(30, 107, 241, 0);
    outline-offset: 14px;
    box-shadow: 0 0 0 24px rgba(30, 107, 241, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-target-highlight {
    animation: none;
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
  }
}

/* Hamburger (kept compatible with old #menu-btn checkbox pattern) */
.hamburger {
  display: none;
  position: relative;
  z-index: 70;
}

.menu-btn {
  display: none;
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #fff;
  cursor: pointer;
}

.navicon {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease);
}

.navicon::before,
.navicon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease);
}

.navicon::before { top: -7px; }
.navicon::after  { top: 7px; }

.menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.menu-btn:checked ~ .menu-icon .navicon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-btn:checked ~ .menu-icon .navicon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile nav overlay */
@media (max-width: 960px) {
  /* Remove backdrop-filter on mobile — it creates a containing block
     that would clip the fixed-positioned overlay menu inside it. */
  .site-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.96);
  }

  .site-nav.scrolled {
    background: #ffffff;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 96px 24px 40px;
    gap: 6px;
    transform: translateY(-100%);
    transition: transform var(--t-slow) var(--ease);
    overflow-y: auto;
    z-index: 65;
  }

  .nav-link {
    padding: 16px 18px;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  /* Hide the sliding indicator inside the mobile overlay */
  .nav-indicator { display: none; }

  .nav-links .cta-button {
    margin-top: 16px;
    align-self: stretch;
  }

  .hamburger {
    display: block;
  }

  .nav-cta-desktop {
    display: none;
  }

  body:has(#menu-btn:checked) {
    overflow: hidden;
  }

  body:has(#menu-btn:checked) .nav-links {
    transform: translateY(0);
  }

  /* Dropdown collapses into a static, always-visible inline list inside
     the mobile overlay — no floating panel, no hover behavior */
  .nav-item--dropdown {
    display: block;
    width: 100%;
  }

  .nav-link__chevron {
    margin-left: auto;
  }

  .nav-link--has-chevron {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown__panel {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: var(--color-canvas);
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    margin: 8px 0 16px;
    padding: 8px;
    transition: none;
  }

  .nav-dropdown__panel::before {
    display: none;
  }

  .nav-dropdown__item {
    border-radius: 8px;
  }
}

@media (min-width: 961px) {
  .nav-links-mobile-cta {
    display: none;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 80px) clamp(60px, 7vw, 96px);
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.hero-orb-a {
  width: 460px;
  height: 460px;
  top: -120px;
  right: -140px;
  background: radial-gradient(circle, rgba(30, 107, 241, 0.32) 0%, rgba(30, 107, 241, 0) 70%);
}

.hero-orb-b {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28) 0%, rgba(20, 184, 166, 0) 70%);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 24px;
}

.hero-eyebrow {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 10px rgba(14, 26, 43, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 16px 8px 12px;
}

.hero-eyebrow .eyebrow-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
}

.hero-eyebrow .eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.4);
  animation: hero-pulse 2s ease-out infinite;
}

@keyframes hero-pulse {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2);   opacity: 0;   }
}

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--color-ink);
}

.hero-title .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-inline: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title .accent-grad,
.section-banner .title .accent-grad {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: inherit;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(14, 26, 43, 0.04);
}

.hero-features li svg {
  width: 16px;
  height: 16px;
  padding: 3px;
  border-radius: 50%;
  background: var(--color-primary-50);
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-proof-avatars {
  display: inline-flex;
}

.hero-proof-avatars .av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(14, 26, 43, 0.10);
}

.hero-proof-avatars .av + .av {
  margin-left: -10px;
}

.hero-proof-avatars .av-1 { background: linear-gradient(135deg, #1e6bf1, #1a5fd6); }
.hero-proof-avatars .av-2 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.hero-proof-avatars .av-3 { background: linear-gradient(135deg, #f5b301, #d97706); }
.hero-proof-avatars .av-4 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.hero-proof-text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-proof-text strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* Hero photo + dotted background panel */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 560px;
  margin-left: auto;
  width: 100%;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20px -20px 40px 40px;
  border-radius: var(--radius-xl);
  background-image: radial-gradient(var(--color-border-strong) 1.2px, transparent 1.4px);
  background-size: 16px 16px;
  background-position: 0 0;
  opacity: 0.85;
  z-index: 0;
}

.hero-photo-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #eaf0fb 0%, #dde6f5 100%);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  animation: hero-float 5.5s ease-in-out infinite;
  will-change: transform;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(14, 26, 43, 0.12), 0 4px 10px rgba(14, 26, 43, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--color-primary-50);
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-badge .badge-icon svg {
  width: 20px;
  height: 20px;
}

.hero-badge .badge-icon-accent {
  background: var(--color-accent-50);
  color: var(--color-accent);
}

.hero-badge .badge-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-badge .badge-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
  margin-top: 2px;
}

.hero-badge-rating {
  top: 8%;
  left: -28px;
  animation: hero-badge-float 6s ease-in-out infinite;
}

.hero-badge-stat {
  bottom: 12%;
  right: -32px;
  animation: hero-badge-float 6s ease-in-out infinite 1.5s;
}

@keyframes hero-badge-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-frame,
  .hero-badge,
  .hero-eyebrow .eyebrow-dot::after {
    animation: none;
  }
}

.hero-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
  color: var(--color-muted);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 24px;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    margin-inline: auto;
    max-width: 480px;
  }

  .hero-visual::before {
    inset: -16px -16px 24px 24px;
  }

  .hero-badge-rating { left: -12px; top: 4%; }
  .hero-badge-stat   { right: -12px; bottom: 8%; }
}

@media (max-width: 520px) {
  .hero-badge {
    padding: 10px 12px;
    gap: 10px;
  }
  .hero-badge .badge-icon { width: 32px; height: 32px; }
  .hero-badge .badge-icon svg { width: 16px; height: 16px; }
  .hero-badge .badge-title { font-size: 0.85rem; }
  .hero-badge .badge-sub { font-size: 0.7rem; }
  .hero-badge-rating { left: -8px; }
  .hero-badge-stat   { right: -8px; }
}

/* =========================================================
   About — card collage
   ========================================================= */
.about-grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.about-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, rgba(30, 107, 241, 0.10) 0%, rgba(20, 184, 166, 0.06) 45%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.about-card:hover::before {
  opacity: 1;
}

.about-card.stat {
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
}

.about-card.feature-dark {
  background: linear-gradient(135deg, #0e1a2b 0%, #1a2740 100%);
  color: #fff;
  border-color: transparent;
}

.about-card.feature-dark::before {
  background: radial-gradient(120% 80% at 50% 0%, rgba(30, 107, 241, 0.35) 0%, rgba(20, 184, 166, 0.20) 45%, transparent 70%);
}

.about-card.feature-dark:hover {
  border-color: rgba(30, 107, 241, 0.6);
}

.about-card.feature-dark .about-title,
.about-card.feature-dark .stat-number {
  color: #fff;
}

.about-card.feature-dark .about-desc {
  color: rgba(255, 255, 255, 0.75);
}

.about-card .stat-number {
  font-size: clamp(2.75rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.about-card .stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 16px;
  display: inline-block;
}

.about-card .about-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.about-card .about-desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Collage placement */
.about-card.c1 { grid-column: span 4; }
.about-card.c2 { grid-column: span 5; }
.about-card.c3 { grid-column: span 3; }
.about-card.c4 { grid-column: span 4; }
.about-card.c5 { grid-column: span 8; }

@media (max-width: 960px) {
  .about-card.c1,
  .about-card.c2,
  .about-card.c3 { grid-column: span 6; }
  .about-card.c4 { grid-column: span 6; }
  .about-card.c5 { grid-column: span 12; }
}

@media (max-width: 600px) {
  .about-card.c1,
  .about-card.c2,
  .about-card.c3,
  .about-card.c4,
  .about-card.c5 { grid-column: span 12; }
}

/* =========================================================
   Services — alternating feature cards
   ========================================================= */
.services-list {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
  margin-top: clamp(32px, 5vw, 56px);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    box-shadow var(--t-base) var(--ease),
    transform var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: var(--color-primary);
}

.service-card .images {
  position: relative;
  background: var(--color-canvas);
  min-height: 320px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.service-card .images:not(.collage) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .images:not(.collage) img + img {
  position: absolute;
  right: -8%;
  bottom: -8%;
  width: 55%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
}

/* ---- 3-photo collage for service cards ---- */
.service-card .images.collage {
  position: relative;
  min-height: 380px;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(135deg, var(--color-canvas) 0%, #fff 100%);
  display: block;
  place-items: unset;
  overflow: hidden;
}

.service-card .images.collage .collage-glow {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 30%, var(--color-primary-50) 0%, transparent 70%),
    radial-gradient(34% 38% at 78% 72%, rgba(99, 102, 241, 0.18) 0%, transparent 72%);
  filter: blur(24px);
  opacity: 0.9;
}

.service-card .images.collage .collage-img {
  position: absolute;
  border-radius: var(--radius-lg);
  border: 4px solid #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16), 0 4px 10px rgba(15, 23, 42, 0.08);
  object-fit: cover;
  z-index: 1;
  transition:
    transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 280ms var(--ease),
    opacity 520ms var(--ease),
    translate 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, translate, opacity;
}

/* Default (.odd) layout: large photo on the left, smaller two offset to the right/bottom */
.service-card.odd .images.collage .c-main,
.service-card:not(.even) .images.collage .c-main {
  width: 64%;
  height: 70%;
  left: 6%;
  top: 14%;
  transform: rotate(-4deg);
  z-index: 1;
}

.service-card.odd .images.collage .c-top,
.service-card:not(.even) .images.collage .c-top {
  width: 42%;
  height: 44%;
  right: 4%;
  top: 6%;
  transform: rotate(5deg);
  z-index: 2;
}

.service-card.odd .images.collage .c-bot,
.service-card:not(.even) .images.collage .c-bot {
  width: 46%;
  height: 46%;
  right: 10%;
  bottom: 6%;
  transform: rotate(-7deg);
  z-index: 3;
}

/* Mirrored layout for .even cards (info column is on the left) */
.service-card.even .images.collage .c-main {
  width: 64%;
  height: 70%;
  right: 6%;
  top: 14%;
  left: auto;
  transform: rotate(4deg);
  z-index: 1;
}

.service-card.even .images.collage .c-top {
  width: 42%;
  height: 44%;
  left: 4%;
  top: 6%;
  right: auto;
  transform: rotate(-5deg);
  z-index: 2;
}

.service-card.even .images.collage .c-bot {
  width: 46%;
  height: 46%;
  left: 10%;
  bottom: 6%;
  right: auto;
  transform: rotate(7deg);
  z-index: 3;
}

/* Hover: lift the collage and ease all rotations toward 0 */
.service-card:hover .images.collage .collage-img {
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.22), 0 6px 14px rgba(15, 23, 42, 0.10);
}

.service-card:hover .images.collage .c-main {
  transform: rotate(0deg) translateY(-4px);
}

.service-card:hover .images.collage .c-top {
  transform: rotate(0deg) translateY(-6px);
}

.service-card:hover .images.collage .c-bot {
  transform: rotate(0deg) translateY(-2px);
}

/* Scroll stagger: piggyback on the existing .reveal / .in-view classes
   that the IntersectionObserver in js/main.js applies to .service-card */
.service-card.reveal .images.collage .collage-img {
  opacity: 0;
  translate: 0 22px;
}

.service-card.reveal .images.collage .c-main { transition-delay: 0ms, 0ms, 0ms, 0ms; }
.service-card.reveal .images.collage .c-top  { transition-delay: 0ms, 0ms, 140ms, 140ms; }
.service-card.reveal .images.collage .c-bot  { transition-delay: 0ms, 0ms, 280ms, 280ms; }

.service-card.reveal.in-view .images.collage .collage-img {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .service-card .images.collage .collage-img,
  .service-card.reveal .images.collage .collage-img {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
  .service-card:hover .images.collage .c-main,
  .service-card:hover .images.collage .c-top,
  .service-card:hover .images.collage .c-bot {
    transform: none;
  }
}

.service-card .info {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.service-card .info .title {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}

.service-card .info .description {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.service-card .info .cta-button {
  align-self: flex-start;
  margin-top: 8px;
}

.service-card.even {
  grid-template-columns: 1fr 1fr;
}

.service-card.even .images { order: 2; }
.service-card.even .info   { order: 1; }

@media (max-width: 820px) {
  .service-card,
  .service-card.even {
    grid-template-columns: 1fr;
  }
  .service-card.even .images { order: 0; }
  .service-card.even .info   { order: 1; }
  .service-card .images { min-height: 240px; }
  .service-card .images.collage { min-height: 320px; padding: 18px; }

  .service-card.odd .images.collage .c-main,
  .service-card:not(.even) .images.collage .c-main {
    width: 60%;
    height: 70%;
    left: 8%;
    top: 14%;
    transform: rotate(-3deg);
  }
  .service-card.odd .images.collage .c-top,
  .service-card:not(.even) .images.collage .c-top {
    width: 40%;
    height: 44%;
    right: 6%;
    top: 6%;
    transform: rotate(3deg);
  }
  .service-card.odd .images.collage .c-bot,
  .service-card:not(.even) .images.collage .c-bot {
    width: 44%;
    height: 44%;
    right: 10%;
    bottom: 8%;
    transform: rotate(-4deg);
  }
  .service-card.even .images.collage .c-main {
    transform: rotate(3deg);
  }
  .service-card.even .images.collage .c-top {
    transform: rotate(-3deg);
  }
  .service-card.even .images.collage .c-bot {
    transform: rotate(4deg);
  }
}

@media (max-width: 460px) {
  .service-card .images.collage { min-height: 260px; padding: 14px; }
}



/* =========================================================
   Partners page — modern, clean editorial layout
   ========================================================= */

/* Logo marquee / trust strip */
.partners-marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
  padding-block: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-lg);
}

.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.partners-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #f8fbff 0%, transparent 100%);
}

.partners-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #f8fbff 0%, transparent 100%);
}

.partners-marquee-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: clamp(32px, 6vw, 72px);
  flex-wrap: wrap;
  padding-inline: clamp(20px, 4vw, 40px);
}

.partners-marquee-track img {
  height: clamp(36px, 4.5vw, 48px);
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.55);
  transition: filter var(--t-slow) var(--ease), transform var(--t-base) var(--ease);
}

.partners-marquee-track img:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-2px);
}

/* Section header (a touch tighter than the global one) */
.partners-section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Featured partners — soft panel with 4-up centered cards */
.partners-panel {
  background: linear-gradient(180deg, #eef0f3 0%, #e6e9ee 100%);
  border-radius: clamp(24px, 2.8vw, 36px);
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3.2vw, 44px);
  width: calc(100vw - 48px);
  max-width: 1600px;
  margin-inline: auto;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 32px);
  counter-reset: partner;
}

.partner-card {
  --accent: var(--color-primary);
  --accent-soft: rgba(30, 107, 241, 0.10);
  --accent-strong: rgba(30, 107, 241, 0.45);
  counter-increment: partner;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px) 0 0 / 16px 16px,
    #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 22px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: clamp(28px, 2.6vw, 36px) clamp(20px, 2vw, 26px);
  min-height: 400px;
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

/* Numbered index badge in the top-right corner */
.partner-card::before {
  content: counter(partner, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-display, inherit);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--accent) 55%, transparent);
  font-feature-settings: 'tnum';
  z-index: 3;
  transition: color var(--t-fast) var(--ease), transform var(--t-base) var(--ease);
}

/* Animated top accent strip — fills on hover */
.partner-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  z-index: 2;
  transition: width var(--t-base) var(--ease);
}

.partner-card:hover::after,
.partner-card:focus-within::after {
  width: 100%;
}

.partner-card:hover::before,
.partner-card:focus-within::before {
  color: var(--accent);
  transform: translateX(-2px);
}

.partner-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Staggered reveal entrance for the row */
.partner-card.reveal:nth-child(1) { transition-delay: 0ms; }
.partner-card.reveal:nth-child(2) { transition-delay: 90ms; }
.partner-card.reveal:nth-child(3) { transition-delay: 180ms; }
.partner-card.reveal:nth-child(4) { transition-delay: 270ms; }

.partner-card[data-accent="teal"] {
  --accent: var(--color-accent);
  --accent-soft: rgba(20, 184, 166, 0.12);
  --accent-strong: rgba(20, 184, 166, 0.45);
}

.partner-card[data-accent="amber"] {
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --accent-strong: rgba(245, 158, 11, 0.45);
}

.partner-card[data-accent="violet"] {
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-strong: rgba(139, 92, 246, 0.45);
}

.partner-card:hover,
.partner-card:focus-within {
  transform: translateY(-8px);
  box-shadow:
    0 22px 44px -16px var(--accent-strong),
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: transparent;
}

/* Body just lets its children flow into the parent flex column */
.partner-card__body {
  display: contents;
}

.partner-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  margin: 0 auto;
  order: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius-pill);
  line-height: 1;
  backdrop-filter: blur(4px);
}

.partner-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.partner-name {
  order: 2;
  font-size: clamp(1.1rem, 1.35vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  line-height: 1.3;
  margin: 14px 0 10px;
  text-align: center;
  transition: color var(--t-fast) var(--ease);
}

.partner-card:hover .partner-name,
.partner-card:focus-within .partner-name {
  color: var(--accent);
}

.partner-bio {
  order: 3;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-muted);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}

.partner-meta {
  order: 4;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.partner-meta li {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-ink-2);
  padding: 4px 10px;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.partner-card:hover .partner-meta li,
.partner-card:focus-within .partner-meta li {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--color-border));
  color: var(--accent);
}

/* Decorative logo block at bottom of the card */
.partner-card__media {
  order: 6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: clamp(16px, 2vw, 24px);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(120% 100% at 100% 100%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 14%, #ffffff) 0%,
      color-mix(in srgb, var(--accent) 6%, #ffffff) 100%);
  min-height: 90px;
  border-radius: 16px;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Soft floating orb in the corner of the well */
.partner-card__media::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -50px;
  bottom: -80px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
  filter: blur(32px);
  z-index: 0;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

/* Tiny dot constellation in the opposite corner for visual interest */
.partner-card__media::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 38px;
  height: 38px;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 50%, transparent) 1px, transparent 1.4px);
  background-size: 8px 8px;
  opacity: 0.55;
  z-index: 0;
  border-radius: 4px;
}

.partner-card:hover .partner-card__media::after,
.partner-card:focus-within .partner-card__media::after {
  opacity: 0.28;
  transform: translate(-12px, -8px);
}

.partner-card__media img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.06));
  transition: transform var(--t-base) var(--ease), filter var(--t-base) var(--ease);
}

.partner-card:hover .partner-card__media img,
.partner-card:focus-within .partner-card__media img {
  transform: scale(1.06) rotate(-1.5deg);
  filter: drop-shadow(0 12px 22px color-mix(in srgb, var(--accent) 35%, transparent));
}

.partner-cta {
  position: relative;
  order: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  transition: gap var(--t-fast) var(--ease);
}

.partner-cta::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--t-base) var(--ease);
}

.partner-cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast) var(--ease);
}

.partner-card:hover .partner-cta,
.partner-card:focus-visible .partner-cta {
  gap: 12px;
}

.partner-card:hover .partner-cta::after,
.partner-card:focus-within .partner-cta::after {
  width: 70%;
}

.partner-card:hover .partner-cta svg,
.partner-card:focus-visible .partner-cta svg {
  transform: translateX(3px);
}

@media (max-width: 1080px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 22px);
  }
  .partner-card { min-height: 380px; }
}

@media (max-width: 560px) {
  .partners-panel {
    padding: clamp(20px, 5vw, 28px) clamp(16px, 4vw, 22px);
    width: calc(100vw - 24px);
  }
  .partners-grid {
    grid-template-columns: 1fr;
  }
  .partner-card { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-card,
  .partner-card__media img,
  .partner-card__media::after,
  .partners-marquee-track img {
    transition: none;
  }
  .partner-card:hover { transform: none; }
  .partner-card:hover .partner-card__media img { transform: none; }
}

/* =========================================================
   Contact CTA band
   ========================================================= */
.contact-band-wrapper {
  margin: var(--section-y) auto;
  max-width: var(--container);
  width: calc(100% - 2 * var(--gutter));
}

.contact-band {
  background: linear-gradient(135deg, #0e1a2b 0%, #18243d 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 16px 16px;
  pointer-events: none;
}

.contact-band-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: 32px;
  padding: clamp(36px, 5vw, 64px);
  padding-bottom: 0; /* let the owner image sit flush with the bottom edge */
}

.contact-band .left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: clamp(36px, 5vw, 64px);
  align-self: center;
}

.contact-band .title {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  letter-spacing: -0.02em;
}

.contact-band .description {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 460px;
}

.contact-band .cta-button {
  align-self: flex-start;
}

.contact-band .right {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
}

.contact-band .owner {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

@media (max-width: 820px) {
  .contact-band-inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding-bottom: 0;
  }
  .contact-band .left {
    padding-bottom: clamp(20px, 4vw, 32px);
  }
  .contact-band .right {
    justify-self: center;
    align-self: end;
    max-width: 260px;
  }
  .contact-band .owner {
    max-width: 240px;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #0a1322;
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(56px, 7vw, 96px) 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: clamp(32px, 4vw, 48px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 18px;
}

.footer-brand .logo img {
  width: 32px;
  height: 32px;
}

.footer-brand .description {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 360px;
}

.footer-col .title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  transition: color var(--t-fast) var(--ease);
  width: fit-content;
}

.footer-links a:hover,
.footer-links a.active {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color var(--t-fast) var(--ease);
  width: fit-content;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.footer-contact a:hover svg {
  fill: #fff;
}

.footer-contact .row {
  display: flex;
  flex-direction: column;
}

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-hours .row {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-hours .row svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-hours .row strong {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  margin-bottom: 2px;
}

.footer-hours .row small {
  opacity: 0.75;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.7);
}

.footer-tagline {
  flex: 1 1 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.footer-top-link {
  transition: color var(--t-fast) var(--ease);
}

.footer-top-link:hover,
.footer-top-link:focus-visible {
  color: #fff;
}

.footer-top-link:hover svg,
.footer-top-link:focus-visible svg {
  fill: #fff;
  transform: translateY(-2px);
}

.footer-top-link svg {
  transition: transform var(--t-fast) var(--ease), fill var(--t-fast) var(--ease);
}

@media (max-width: 720px) {
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .footer-tagline {
    flex: 1 1 100%;
    order: 3;
  }
  .footer-top-link {
    order: 2;
  }
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 32px;
  }
}

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

/* =========================================================
   Generic page hero (non-home pages) - pastel centered
   ========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(72px, 9vw, 128px) clamp(48px, 6vw, 88px);
  text-align: center;
  background: linear-gradient(180deg, #eef5ff 0%, #e9fbf6 100%);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.page-hero::before {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(30, 107, 241, 0.45) 0%, transparent 70%);
}

.page-hero::after {
  width: 320px;
  height: 320px;
  bottom: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.45) 0%, transparent 70%);
}

.page-hero + .section,
.page-hero + .section-tight {
  padding-top: clamp(40px, 5vw, 72px);
}

.page-hero .eyebrow {
  margin-bottom: 22px;
}

.page-hero .title {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 700;
}

.page-hero .title .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-inline: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero .description {
  color: var(--color-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(32px, 5vw, 56px);
}

.contact-info {
  background: var(--color-canvas);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info .row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-border-strong);
  color: var(--color-ink);
}

.contact-info .row:last-child { border-bottom: none; }

.contact-info .row svg {
  width: 22px;
  height: 22px;
  fill: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info .row .label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.contact-info .row a {
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.975rem;
}

.contact-info .row a:hover { color: var(--color-primary); }

.contact-info-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.15;
}

.contact-info-description {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.contact-info-manual {
  font-size: 0.95rem;
  color: var(--color-ink-2);
  margin: 0;
}

.contact-info-manual a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-info-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.contact-info-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.contact-info-socials a:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.contact-info-socials svg {
  width: 16px;
  height: 16px;
  fill: var(--color-ink);
  transition: fill var(--t-fast) var(--ease);
}

.contact-info-socials a:hover svg {
  fill: var(--color-primary);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink-2);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-50);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  padding-right: 38px;
  cursor: pointer;
}

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

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .form-row label {
  margin: 0;
}

.contact-form .cta-button {
  align-self: stretch;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 820px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Services page sections
   ========================================================= */
.services-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 56px);
  margin-top: clamp(32px, 5vw, 56px);
}

.services-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.services-feature.reverse .visual { order: 2; }
.services-feature.reverse .body   { order: 1; }

.services-feature .visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-canvas);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

.services-feature .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-feature .body .eyebrow { margin-bottom: 16px; }

.services-feature .body .title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 16px;
}

.services-feature .body .description {
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.services-feature .body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.services-feature .body ul li {
  position: relative;
  padding-left: 28px;
  color: var(--color-ink-2);
  font-size: 0.975rem;
}

.services-feature .body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e6bf1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

@media (max-width: 820px) {
  .services-feature,
  .services-feature.reverse {
    grid-template-columns: 1fr;
  }
  .services-feature.reverse .visual { order: 0; }
  .services-feature.reverse .body   { order: 1; }
}

/* =========================================================
   Contact page — full-bleed Google Maps embed
   ========================================================= */
.map-section {
  width: 100%;
  padding: 0;
  margin: 0;
}

.map-frame {
  position: relative;
  width: 100%;
  height: clamp(260px, 32vh, 380px);
  overflow: hidden;
  background: var(--color-canvas);
  border-top: 1px solid var(--color-border);
}

.map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(1.05);
  transition: filter var(--t-base) var(--ease);
}

.map-frame:hover .map-embed {
  filter: saturate(1.15);
}

.map-overlay {
  position: absolute;
  top: clamp(16px, 2.5vw, 28px);
  left: clamp(16px, 3vw, 40px);
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px 20px;
  max-width: 320px;
  width: calc(100% - clamp(32px, 6vw, 80px));
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.map-overlay .eyebrow {
  margin: 0;
}

.map-overlay .title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 2px 0 0;
  line-height: 1.2;
}

.map-overlay .description {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.map-overlay .cta-button {
  margin-top: 6px;
  padding: 9px 18px;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .map-overlay {
    top: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    padding: 18px 18px 20px;
  }
}

/* =========================================================
   Services page — tile grid (Main Services + Trainings)
   ========================================================= */
.services-section-header {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.services-section-header .section-side-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0;
}

.services-section-header .section-side-tagline {
  position: relative;
  padding-left: 16px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 4px 0 0;
}

.services-section-header .section-side-tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}

@media (max-width: 720px) {
  .services-section-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.services-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.services-tiles-grid.cols-5 {
  grid-template-columns: repeat(3, 1fr);
}

.services-tiles-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.services-tiles-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
  .services-tiles-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-tile {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
  will-change: transform;
}

.service-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.service-tile .image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-canvas);
  overflow: hidden;
}

.service-tile .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.service-tile .image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 107, 241, 0) 55%, rgba(30, 107, 241, 0.18) 100%);
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
}

.service-tile:hover .image img {
  transform: scale(1.07);
}

.service-tile:hover .image::after {
  opacity: 1;
}

.service-tile .body .title,
.service-tile .body .cta-button {
  transition: color 240ms var(--ease), background 240ms var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease);
}

.service-tile:hover .body .title {
  color: var(--color-primary);
}

.service-tile:hover .badge {
  transform: scale(1.06);
}

.service-tile .badge {
  transition: transform 320ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .service-tile,
  .service-tile .image img,
  .service-tile .image::after,
  .service-tile .body .title,
  .service-tile .body .cta-button,
  .service-tile .badge {
    transition: none;
  }
  .service-tile:hover {
    transform: none;
  }
  .service-tile:hover .image img,
  .service-tile:hover .badge {
    transform: none;
  }
}

.service-tile .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3);
}

.service-tile .body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.service-tile .body .title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--color-ink);
}

.service-tile .body .description {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

.service-tile .body .cta-button {
  align-self: stretch;
  text-align: center;
  background: var(--color-accent);
  font-size: 0.85rem;
  padding: 10px 16px;
  margin-top: 6px;
  box-shadow: 0 6px 14px rgba(20, 184, 166, 0.28);
}

.service-tile .body .cta-button:hover {
  background: #0fa092;
  box-shadow: 0 10px 18px rgba(20, 184, 166, 0.34);
}

/* Services page — 4-column row: intro | service | service | service */
.services-cards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 28px);
  align-items: start;
  width: 100%;
}

.services-cards-layout > * {
  min-width: 0;
}

.services-cards-section .services-cards-intro {
  text-align: left;
  align-items: flex-start;
  max-width: none;
  margin: 0;
  padding: 0;
  margin-inline: 0;
}

.services-cards-section .services-cards-intro.section-banner {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.services-cards-section .services-cards-intro .title {
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  line-height: 1.22;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.services-cards-section .services-cards-intro .eyebrow {
  margin-bottom: 12px;
}

.services-cards-section .services-cards-intro .description {
  max-width: none;
  margin-inline: 0;
  font-size: clamp(0.9rem, 1.15vw, 0.98rem);
  line-height: 1.55;
}

.services-tiles-grid--clean {
  gap: clamp(22px, 2.4vw, 32px);
}

@media (max-width: 1080px) {
  .services-cards-layout {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 40px);
  }

  .services-cards-section .services-cards-intro .title {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
  }

  .services-cards-section .services-cards-intro .description {
    font-size: clamp(1rem, 1.4vw, 1.0625rem);
    max-width: 52ch;
  }
}

@media (min-width: 1081px) and (max-width: 1280px) {
  .services-cards-layout {
    gap: clamp(16px, 1.8vw, 22px);
  }

  .service-tile--clean .image {
    max-width: min(180px, 100%);
  }
}

.service-tile--clean {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  will-change: auto;
}

.service-tile.service-tile--clean:hover {
  transform: none;
  border: none;
  box-shadow: none;
}

.service-tile--clean .service-tile__content {
  padding: clamp(8px, 1.2vw, 12px) 0 clamp(8px, 1.2vw, 12px) 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 0;
  height: 100%;
  position: relative;
}

.service-tile--clean .service-tile__content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--color-border);
  border-radius: 2px;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.section--dark .service-tile--clean .service-tile__content::before {
  background: rgba(255, 255, 255, 0.1);
}

.service-tile--clean:hover .service-tile__content::before {
  background: var(--color-accent);
  transform: scaleY(1.05);
}

.service-tile--clean .title {
  order: 0;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0 0 16px;
  color: var(--color-ink);
  transition: color 240ms var(--ease);
}

.section--dark .service-tile--clean .title {
  color: #fff;
}

.section--dark .service-tile--clean:hover .title {
  color: var(--color-accent);
}

.service-tile--clean .image {
  order: 1;
  align-self: flex-start;
  position: relative;
  aspect-ratio: 1;
  width: min(200px, 100%);
  max-width: 200px;
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.section--dark .service-tile--clean .image {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.section--dark .service-tile--clean:hover .image {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 24px -8px rgba(0, 0, 0, 0.5);
}

.service-tile--clean .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-tile--clean .image::after {
  display: none;
}

.service-tile--clean:hover .image img {
  transform: scale(1.04);
}

.service-tile--clean .description {
  order: 2;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--color-muted);
  flex: 1;
}

.section--dark .service-tile--clean .description {
  color: rgba(255, 255, 255, 0.7);
}

.service-tile--clean:hover .title {
  color: var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  .service-tile--clean:hover .image img {
    transform: none;
  }
  .service-tile--clean:hover {
    transform: none;
  }
}

@media (max-width: 560px) {
  .service-tile--clean .image {
    max-width: min(200px, 72vw);
  }
}

@media (max-width: 760px) {
  .services-tiles-grid,
  .services-tiles-grid.cols-5,
  .services-tiles-grid.cols-4,
  .services-tiles-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .services-tiles-grid,
  .services-tiles-grid.cols-5,
  .services-tiles-grid.cols-4,
  .services-tiles-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Click-target overlay that turns the entire .service-tile into a link
   without disrupting the tile's internal layout. Mirrors the .bento-link
   pattern used by the Most Popular Trainings cards. */
.service-tile-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  border-radius: inherit;
  outline-offset: -3px;
}

.service-tile-link:focus-visible {
  outline: 2px solid var(--color-primary);
  box-shadow: 0 0 0 4px rgba(30, 107, 241, 0.35);
}

.section--dark .service-tile-link:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}

/* =========================================================
   Resources page
   ========================================================= */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(32px, 5vw, 56px);
}

.resource-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resource-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(30, 107, 241, 0.06) 0%, rgba(20, 184, 166, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.resource-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-slow) var(--ease);
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.resource-card:hover::before {
  opacity: 1;
}

.resource-card:hover::after {
  transform: scaleX(1);
}

.resource-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-50);
  display: grid;
  place-items: center;
  transition:
    background var(--t-base) var(--ease),
    transform var(--t-slow) var(--ease);
}

.resource-card:hover .icon {
  background: var(--color-primary);
  transform: translateY(-2px) rotate(-6deg) scale(1.08);
}

.resource-card .icon svg {
  width: 22px;
  height: 22px;
  fill: var(--color-primary);
  transition: fill var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.resource-card:hover .icon svg {
  fill: #fff;
  transform: translateY(-2px);
}

.resource-card .title {
  font-size: 1.125rem;
}

.resource-card .subtitle {
  margin-top: -6px;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.resource-card .description {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.section-simple-header {
  position: relative;
  padding-left: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.section-simple-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}

.section-simple-header .title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0;
  line-height: 1.2;
}

.section-simple-header + .resources-grid,
.section-simple-header + .videos-grid,
.section-simple-header + .featured-videos__list {
  margin-top: 0;
}

/* =========================================================
   Featured Videos — premium editorial showcase
   (replaces the legacy .videos-grid / .video-card layout)
   ========================================================= */
.featured-videos {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 4vw, 48px);
}

/* Section-level ambient color wash — soft brand-color orbs that bleed
   into the outer margins so the negative space feels intentional, not
   blank. (Apple / Stripe iPhone-page atmosphere.) */
.featured-videos::before,
.featured-videos::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}

.featured-videos::before {
  width: 720px;
  height: 720px;
  top: -180px;
  left: -240px;
  background: radial-gradient(circle, rgba(30, 107, 241, 0.16) 0%, transparent 70%);
}

.featured-videos::after {
  width: 680px;
  height: 680px;
  bottom: -200px;
  right: -220px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14) 0%, transparent 70%);
}

.featured-videos > .container {
  position: relative;
  z-index: 1;
}

.featured-videos__list {
  list-style: none;
  margin: clamp(20px, 2.5vw, 32px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 72px);
}

/* Flex row, centered — pushes the two children into a tight pair so any
   leftover whitespace falls on the OUTER edges of the row, not between
   the video and the copy. (Apple / Stripe / Linear style.) */
.featured-video {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(32px, 4.5vw, 64px);
  max-width: 960px;
  margin-inline: auto;
}

/* Giant faded serif numeral that bleeds into the outer margin opposite
   the video. Pure background chrome — invisible to screen readers,
   anchored via [data-index]. (Editorial / NYT magazine pattern.) */
.featured-video::before {
  content: attr(data-index);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(8rem, 20vw, 17rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  right: -10vw;
}

.featured-video--reverse::before {
  right: auto;
  left: -10vw;
}

.featured-video--reverse {
  flex-direction: row-reverse;
}

.featured-video__visual {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 320px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  isolation: isolate;
}

.featured-video__bloom {
  position: absolute;
  inset: 4% 2%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 28% 30%, rgba(30, 107, 241, 0.22), transparent 65%),
    radial-gradient(45% 55% at 75% 78%, rgba(20, 184, 166, 0.20), transparent 65%);
  filter: blur(14px);
  opacity: 0.85;
  transition: opacity var(--t-base) var(--ease);
}

.featured-video__bloom--alt {
  background:
    radial-gradient(55% 45% at 72% 28%, rgba(20, 184, 166, 0.22), transparent 65%),
    radial-gradient(45% 55% at 22% 78%, rgba(30, 107, 241, 0.20), transparent 65%);
}

.featured-video__device {
  position: relative;
  z-index: 1;
  width: min(260px, 100%);
  background: #0e1a2b;
  padding: 8px;
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(14, 26, 43, 0.16),
    0 10px 24px rgba(14, 26, 43, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
  will-change: transform;
}

.featured-video:hover .featured-video__device {
  transform: translateY(-6px);
  box-shadow:
    0 40px 100px rgba(14, 26, 43, 0.22),
    0 16px 40px rgba(14, 26, 43, 0.12);
}

.featured-video:hover .featured-video__bloom {
  opacity: 1;
}

.featured-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.featured-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.featured-video__content {
  position: relative;
  z-index: 1;
  flex: 0 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.featured-video__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.featured-video__index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  opacity: 0.85;
}

.featured-video__tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-primary-50);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-video__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 4px 0 2px;
}

.featured-video__description {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

.featured-video__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-bottom: 3px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition:
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.featured-video__cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--t-fast) var(--ease);
}

.featured-video__cta:hover,
.featured-video__cta:focus-visible {
  color: var(--color-primary-600);
  border-bottom-color: currentColor;
}

.featured-video__cta:hover svg,
.featured-video__cta:focus-visible svg {
  transform: translateX(4px);
}

@media (max-width: 820px) {
  .featured-video,
  .featured-video--reverse {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 480px;
  }
  .featured-video::before {
    display: none;
  }
  .featured-video__visual {
    width: 100%;
  }
  .featured-video__device {
    width: min(220px, 70vw);
  }
  .featured-video__content {
    flex: 1 1 auto;
    width: 100%;
    text-align: left;
    padding-top: 0;
  }
  .featured-video__title {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }
  .featured-videos::before,
  .featured-videos::after {
    filter: blur(60px);
    opacity: 0.7;
  }
}

/* legacy .videos-grid card styling kept below for backwards compatibility,
   though resources.html no longer uses it. */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: clamp(32px, 5vw, 56px);
}

.video-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.video-card .video-body .title {
  transition: color var(--t-base) var(--ease);
}

.video-card:hover .video-body .title {
  color: var(--color-primary);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-body .title {
  font-size: 1.125rem;
  margin: 0;
}

.video-body .subtitle {
  margin: 0;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

.video-body .description {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

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

.resource-card .link {
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.resource-card:hover .link {
  gap: 12px;
  color: var(--color-primary-600);
}

.resource-card .link:hover {
  color: var(--color-primary-600);
}

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

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

/* =========================================================
   Scroll reveal — fade + slide-up for cards
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Page transitions
   ========================================================= */

/* Enter animation: runs on every page load */
@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

main {
  animation: page-fade-in 480ms var(--ease) both;
}

/* Exit animation: triggered by JS adding .is-leaving on body before navigation */
body {
  transition: opacity 220ms var(--ease);
}

body.is-leaving {
  opacity: 0;
  pointer-events: none;
}

body.is-leaving main {
  transition: transform 220ms var(--ease);
  transform: translateY(-6px);
}

/* Modern browsers (Chrome/Edge): cross-document View Transitions */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-fade-out 220ms var(--ease) forwards;
}

::view-transition-new(root) {
  animation: page-fade-in 380ms var(--ease) forwards;
}

/* Keep the header + logo fixed across page transitions
   (prevents the logo from appearing to expand / pop during navigation). */
.site-nav { view-transition-name: site-header; }
.nav-logo { view-transition-name: site-logo; }
.nav-logo img { view-transition-name: site-logo-img; }

::view-transition-old(site-header),
::view-transition-new(site-header),
::view-transition-old(site-logo),
::view-transition-new(site-logo),
::view-transition-old(site-logo-img),
::view-transition-new(site-logo-img) {
  animation: none;
  mix-blend-mode: normal;
}

@keyframes page-fade-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* =========================================================
   Section background modifiers (alternating rhythm)
   ========================================================= */
.section--canvas {
  background: var(--color-canvas);
}

.section--dark {
  background: linear-gradient(135deg, #0a1322 0%, #14213d 100%);
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  overflow: hidden;
}

.section--dark::before,
.section--dark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.section--dark::before {
  width: 480px;
  height: 480px;
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, rgba(30, 107, 241, 0.30) 0%, transparent 70%);
}

.section--dark::after {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
}

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

.section--dark .section-banner .title,
.section-banner--inverse .title {
  color: #fff;
}

.section--dark .section-banner .description,
.section-banner--inverse .description {
  color: rgba(255, 255, 255, 0.65);
}

.section--dark .section-banner .eyebrow,
.section-banner--inverse .eyebrow {
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.30);
}

/* =========================================================
   Stats band (dark section, 4 cards, 1 accent)
   ========================================================= */
.stats-band {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  position: relative;
  padding: 28px 24px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.stat-card .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(30, 107, 241, 0.18);
  color: #93b5ff;
}

.stat-card .ic svg {
  width: 20px;
  height: 20px;
}

.stat-card .num {
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-card .lbl {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.stat-card .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform-origin: left center;
  transform: scaleX(0.35);
  opacity: 0.85;
  transition: transform 700ms var(--ease);
}

.stat-card:hover .bar {
  transform: scaleX(1);
}

.stat-card--accent {
  background: linear-gradient(160deg, var(--color-accent) 0%, #0d9488 100%);
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 18px 40px rgba(20, 184, 166, 0.25);
}

.stat-card--accent .ic {
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
}

.stat-card--accent .lbl {
  color: rgba(255, 255, 255, 0.85);
}

.stat-card--accent .bar {
  background: rgba(255, 255, 255, 0.85);
  transform: scaleX(1);
}

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

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

/* =========================================================
   Mission grid (3 cards)
   ========================================================= */
.mission-grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mission-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.mission-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 50% 0%, rgba(30, 107, 241, 0.08) 0%, rgba(20, 184, 166, 0.05) 45%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.mission-card:hover::before { opacity: 1; }

.mission-card .ic {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-primary-50), #d6e4ff);
  color: var(--color-primary);
  margin-bottom: 4px;
  transition: transform var(--t-slow) var(--ease);
}

.mission-card:hover .ic {
  transform: rotate(-6deg) scale(1.05);
}

.mission-card .ic svg {
  width: 28px;
  height: 28px;
}

.mission-card .eyebrow {
  align-self: flex-start;
  background: var(--color-accent-50);
  color: var(--color-accent);
  font-size: 12px;
  padding: 6px 12px;
}

.mission-card .title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}

.mission-card .description {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.mission-card .link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.mission-card:hover .link {
  gap: 12px;
  color: var(--color-primary-600);
}

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

/* =========================================================
   Features grid (6 cards)
   ========================================================= */
.features-grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.feature-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-slow) var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.feature-card:hover::after { transform: scaleX(1); }

.feature-card .ic {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--color-primary-50);
  color: var(--color-primary);
  margin-bottom: 4px;
  transition: background var(--t-base) var(--ease), transform var(--t-slow) var(--ease);
}

.feature-card:hover .ic {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
}

.feature-card .ic svg {
  width: 22px;
  height: 22px;
}

.feature-card .title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  line-height: 1.25;
  margin: 0;
}

.feature-card .description {
  color: var(--color-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  margin: 0;
}

.feature-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.feature-card .chips span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-50);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.feature-card .link {
  margin-top: auto;
  padding-top: 10px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.feature-card:hover .link {
  gap: 12px;
  color: var(--color-primary-600);
}

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

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

/* =========================================================
   Process row (3 steps + arrows)
   ========================================================= */
.process-row {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.process-row .step {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.process-row .step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.process-row .step .num {
  position: absolute;
  top: 4px;
  right: 16px;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-primary-50);
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.process-row .step .ic {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 107, 241, 0.30);
}

.process-row .step .ic svg {
  width: 26px;
  height: 26px;
}

.process-row .step h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.process-row .step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  max-width: 32ch;
}

.process-row .arrow {
  align-self: center;
  width: 40px;
  height: 28px;
  color: var(--color-border-strong);
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .process-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .process-row .arrow {
    transform: rotate(90deg);
    margin: -4px auto;
  }
}

/* =========================================================
   Split section (text + visual, alternating L/R)
   ========================================================= */
.split-section .container.split,
.split-section > .container.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split-section--reverse .container.split {
  grid-template-columns: 1fr 1.05fr;
}

.split-section--reverse .container.split .copy {
  order: 2;
}

.split-section--reverse .container.split .visual {
  order: 1;
}

.split-section .container.split .copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split-section .container.split .copy .eyebrow {
  align-self: flex-start;
}

.split-section .container.split .copy .title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
}

.split-section .container.split .copy .description {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0;
  max-width: 56ch;
}

.split-section .container.split .copy .checks {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: grid;
  gap: 10px;
}

.split-section .container.split .copy .checks li {
  position: relative;
  padding-left: 28px;
  color: var(--color-ink-soft, var(--color-ink));
  font-size: 0.975rem;
  line-height: 1.5;
}

.split-section .container.split .copy .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px 12px;
  background-position: center;
}

.split-section .container.split .copy .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.split-section .container.split .visual {
  position: relative;
}

.split-section .container.split .visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-canvas);
}

.split-section .container.split .visual::before {
  content: "";
  position: absolute;
  inset: -16px -16px auto auto;
  width: 64%;
  height: 64%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-50), rgba(20, 184, 166, 0.12));
  z-index: -1;
}

.split-section--reverse .container.split .visual::before {
  inset: -16px auto auto -16px;
}

@media (max-width: 880px) {
  .split-section .container.split,
  .split-section--reverse .container.split {
    grid-template-columns: 1fr;
  }
  .split-section--reverse .container.split .copy { order: 1; }
  .split-section--reverse .container.split .visual { order: 2; }
}

/* =========================================================
   Featured On / In the Media (4-card row)
   ========================================================= */
.featured-grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.featured-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.featured-card .ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-primary-50);
  color: var(--color-primary);
  margin-bottom: 4px;
  transition: background var(--t-base) var(--ease), transform var(--t-slow) var(--ease);
}

.featured-card:hover .ic {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.05);
}

.featured-card .ic svg {
  width: 22px;
  height: 22px;
}

.featured-card h3 {
  margin: 4px 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.featured-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.featured-card .link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.featured-card:hover .link {
  gap: 12px;
  color: var(--color-primary-600);
}

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

/* =========================================================
   FAQ section (accordion + sidebar card)
   ========================================================= */
.faq-layout {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq-grid details {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0;
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  overflow: hidden;
}

.faq-grid details[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.faq-grid summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-grid summary::-webkit-details-marker { display: none; }

.faq-grid summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-muted);
  border-bottom: 2px solid var(--color-muted);
  transform: rotate(45deg);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  flex-shrink: 0;
  margin-right: 4px;
}

.faq-grid details[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--color-primary);
}

.faq-grid details > p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--color-muted);
  font-size: 0.925rem;
  line-height: 1.65;
}

.faq-card {
  position: sticky;
  top: 96px;
  background: linear-gradient(160deg, var(--color-accent) 0%, #0d9488 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 36px rgba(20, 184, 166, 0.25);
}

.faq-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: #fff;
}

.faq-card .ic svg { width: 22px; height: 22px; }

.faq-card h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-card .btn-primary,
.faq-card .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.925rem;
  text-decoration: none;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease), color var(--t-base) var(--ease);
}

.faq-card .btn-primary {
  background: #fff;
  color: var(--color-accent);
  margin-top: 6px;
}

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

.faq-card .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.faq-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

.faq-card .trust {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.faq-card .trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
}

@media (max-width: 880px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-card { position: static; }
}

/* =========================================================
   CTA band (dark navy, pre-footer site-wide)
   ========================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #111d33 0%, #1a2a47 100%);
  color: #fff;
  text-align: center;
  padding-block: clamp(56px, 7vw, 88px);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.cta-band::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(30, 107, 241, 0.32) 0%, transparent 70%);
}

.cta-band::after {
  width: 380px;
  height: 380px;
  bottom: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28) 0%, transparent 70%);
}

.cta-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-band .eyebrow {
  background: rgba(20, 184, 166, 0.18);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.32);
}

.cta-band .title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}

.cta-band .description {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cta-stats {
  list-style: none;
  padding: 0;
  margin: 14px 0 6px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  justify-content: center;
}

.cta-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.cta-stats li + li::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(20px, 4vw, 56px) / 2);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
}

.cta-stats li strong {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cta-stats li span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.cta-actions .btn-primary,
.cta-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--t-base) var(--ease), background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.cta-actions .btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(30, 107, 241, 0.35);
}

.cta-actions .btn-primary:hover {
  transform: translateY(-2px);
  background: var(--color-primary-600);
  box-shadow: 0 16px 32px rgba(30, 107, 241, 0.45);
}

.cta-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.cta-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cta-stats {
    gap: 18px;
  }
  .cta-stats li + li::before { display: none; }
}

/* =========================================================
   Misc
   ========================================================= */
::selection {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
}

/* =========================================================
   AidenTeach Featured Section
   ========================================================= */
.aiden-feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(80px, 10vw, 140px);
  background: radial-gradient(ellipse at top, #0f172a 0%, #0b1120 60%, #060a16 100%);
  color: #f8fafc;
}

.aiden-feature .aiden-mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aiden-feature .aiden-mesh .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.aiden-feature .aiden-mesh .blob.b1 {
  top: -10%;
  left: -8%;
  width: 520px;
  height: 520px;
  background: #3b82f6;
  animation: aidenMeshDrift 22s ease-in-out infinite;
}

.aiden-feature .aiden-mesh .blob.b2 {
  bottom: -15%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: #14b8a6;
  animation: aidenMeshDrift 26s ease-in-out infinite reverse;
  animation-delay: -6s;
}

.aiden-feature .aiden-mesh .blob.b3 {
  top: 40%;
  left: 45%;
  width: 420px;
  height: 420px;
  background: #8b5cf6;
  opacity: 0.4;
  animation: aidenMeshDrift 30s ease-in-out infinite;
  animation-delay: -12s;
}

.aiden-feature .aiden-mesh .grid-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

@keyframes aidenMeshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(40px, -30px, 0) scale(1.08); }
  66%  { transform: translate3d(-30px, 40px, 0) scale(0.95); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.aiden-feature .aiden-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.aiden-feature .aiden-copy .aiden-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.35);
  color: #5eead4;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.aiden-feature .aiden-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  position: relative;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: aidenPulseDot 2s ease-out infinite;
}

@keyframes aidenPulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.aiden-feature .aiden-copy .title {
  margin: 18px 0 16px;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.aiden-feature .aiden-copy .description {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 560px;
}

.aiden-feature .aiden-copy .checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}

.aiden-feature .aiden-copy .checks li {
  position: relative;
  padding-left: 32px;
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.5;
}

.aiden-feature .aiden-copy .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.aiden-feature .aiden-copy .checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.aiden-feature .aiden-copy .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.aiden-feature .cta-button.glow {
  background: linear-gradient(135deg, #3b82f6 0%, #14b8a6 100%);
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.35),
              0 0 0 0 rgba(59, 130, 246, 0.6);
  position: relative;
  overflow: hidden;
}

.aiden-feature .cta-button.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.aiden-feature .cta-button.glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(20, 184, 166, 0.5),
              0 0 0 6px rgba(59, 130, 246, 0.15);
}

.aiden-feature .cta-button.glow:hover::before {
  transform: translateX(100%);
}

.aiden-feature .cta-button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.aiden-feature .cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

/* Stage + tilted card */
.aiden-feature .aiden-stage {
  position: relative;
  perspective: 1400px;
}

.aiden-feature .aiden-card {
  position: relative;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #14b8a6 50%, #8b5cf6);
  box-shadow: 0 30px 60px -15px rgba(59, 130, 246, 0.5),
              0 20px 40px -20px rgba(20, 184, 166, 0.4);
  transform-style: preserve-3d;
  animation: aidenFloat 6s ease-in-out infinite;
}

.aiden-feature .aiden-card.tilt {
  transform: perspective(1400px) rotateX(6deg) rotateY(-8deg);
}

.aiden-feature .aiden-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 24px;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  z-index: 0;
}

.aiden-feature .aiden-card .card-chrome {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aiden-feature .aiden-card .card-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.aiden-feature .aiden-card .card-chrome span:nth-child(1) { background: #ef4444; }
.aiden-feature .aiden-card .card-chrome span:nth-child(2) { background: #f59e0b; }
.aiden-feature .aiden-card .card-chrome span:nth-child(3) { background: #10b981; }

.aiden-feature .aiden-card .hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  border-radius: 0 0 24px 24px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0f172a;
}

.aiden-feature .aiden-card .float-img {
  position: absolute;
  z-index: 3;
  bottom: -8%;
  right: -10%;
  width: 48%;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(20, 184, 166, 0.3);
  background: #0f172a;
  animation: aidenFloat 7s ease-in-out infinite;
  animation-delay: -2s;
  transform: translateZ(40px);
}

@keyframes aidenFloat {
  0%, 100% { transform: perspective(1400px) rotateX(6deg) rotateY(-8deg) translateY(0); }
  50%      { transform: perspective(1400px) rotateX(6deg) rotateY(-8deg) translateY(-12px); }
}

/* Float animation for non-tilted (secondary image) */
.aiden-feature .aiden-card .float-img {
  animation-name: aidenFloatSimple;
}

@keyframes aidenFloatSimple {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(-2deg); }
}

/* Floating stat chips */
.aiden-feature .chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  animation: aidenChipFloat 6s ease-in-out infinite;
}

.aiden-feature .chip strong {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.aiden-feature .chip .lbl {
  color: #cbd5e1;
  font-weight: 500;
}

.aiden-feature .chip--tl {
  top: -4%;
  left: -8%;
  animation-delay: -1s;
}
.aiden-feature .chip--tr {
  top: 8%;
  right: -10%;
  animation-delay: -3s;
}
.aiden-feature .chip--bl {
  bottom: 12%;
  left: -12%;
  animation-delay: -2s;
}
.aiden-feature .chip--br {
  bottom: -2%;
  right: 4%;
  animation-delay: -4s;
}

.aiden-feature .chip.pulse .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: aidenPulseDot 2s ease-out infinite;
}

@keyframes aidenChipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (max-width: 980px) {
  .aiden-feature .aiden-grid {
    grid-template-columns: 1fr;
    gap: clamp(40px, 8vw, 64px);
  }
  .aiden-feature .aiden-stage {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 0;
  }
  .aiden-feature .aiden-card,
  .aiden-feature .aiden-card.tilt {
    transform: none;
    animation: none;
  }
  .aiden-feature .aiden-card .float-img { display: none; }
  .aiden-feature .chip--tl { top: -16px; left: 4%; }
  .aiden-feature .chip--tr { top: -12px; right: 4%; }
  .aiden-feature .chip--bl { bottom: -12px; left: 4%; }
  .aiden-feature .chip--br { bottom: -16px; right: 4%; }
  @keyframes aidenFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
  }
}

@media (max-width: 560px) {
  .aiden-feature .chip {
    font-size: 0.78rem;
    padding: 8px 12px;
  }
  .aiden-feature .chip strong { font-size: 0.72rem; padding: 3px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .aiden-feature .aiden-mesh .blob,
  .aiden-feature .aiden-card,
  .aiden-feature .aiden-card .float-img,
  .aiden-feature .chip,
  .aiden-feature .aiden-eyebrow .dot,
  .aiden-feature .chip.pulse .dot {
    animation: none !important;
  }
  .aiden-feature .aiden-card.tilt { transform: none; }
}

/* =========================================================
   Trainings Bento Grid + Modal
   ========================================================= */
.trainings-bento {
  position: relative;
  overflow: hidden;
  background: var(--color-canvas);
  isolation: isolate;
}

.trainings-bento .bento-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.trainings-bento .bento-bg .bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.trainings-bento .bento-bg .orb-a {
  top: -120px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: rgba(59, 130, 246, 0.45);
}

.trainings-bento .bento-bg .orb-b {
  bottom: -140px;
  right: -100px;
  width: 480px;
  height: 480px;
  background: rgba(20, 184, 166, 0.4);
}

.trainings-bento .container {
  position: relative;
  z-index: 1;
}

.trainings-bento .section-banner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.trainings-bento .section-banner .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trainings-bento .section-banner .title {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.trainings-bento .section-banner .description {
  color: var(--color-ink-2);
  font-size: clamp(1rem, 1.1vw, 1.075rem);
  line-height: 1.6;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: clamp(36px, 4.5vw, 56px);
}

.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  isolation: isolate;
  background: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 380ms var(--ease),
              box-shadow 380ms var(--ease),
              border-color 380ms var(--ease);
  min-height: 220px;
  outline: none;
}

.bento-card.bento-featured {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 460px;
}

.bento-card.bento-medium { grid-column: span 6; }
.bento-card.bento-small  { grid-column: span 4; }

.bento-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 700ms var(--ease), filter 380ms var(--ease);
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(15, 23, 42, 0.05) 0%,
    rgba(15, 23, 42, 0.35) 45%,
    rgba(15, 23, 42, 0.88) 100%);
  transition: background 380ms var(--ease);
}

.bento-card .overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: clamp(18px, 2.2vw, 28px);
  color: #fff;
}

.bento-card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.bento-card .meta .tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.bento-card .meta .badge {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(20, 184, 166, 0.35);
}

.bento-card .overlay > .title {
  margin: 0 0 8px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.bento-card.bento-featured .overlay > .title {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  line-height: 1.1;
}

.bento-card .overlay > .description {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 540px;
}

.bento-card.bento-small .overlay > .description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
}

.bento-card .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  width: fit-content;
  transition: background 220ms var(--ease), gap 220ms var(--ease), border-color 220ms var(--ease);
}

.bento-card .link .arrow {
  width: 18px;
  height: 18px;
  transition: transform 220ms var(--ease);
}

.bento-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  border-radius: inherit;
  outline-offset: -3px;
}

.bento-link:focus-visible {
  outline: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(30, 107, 241, 0.6);
}

.bento-card:has(.bento-link:hover) .link,
.bento-card:has(.bento-link:focus-visible) .link {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  gap: 12px;
}

.bento-card:has(.bento-link:hover) .link .arrow,
.bento-card:has(.bento-link:focus-visible) .link .arrow {
  transform: translateX(4px);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -12px rgba(30, 107, 241, 0.4),
              0 0 0 1px rgba(20, 184, 166, 0.4);
  border-color: transparent;
}

.bento-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

.bento-card:hover > img {
  transform: scale(1.07);
  filter: saturate(1.05);
}

.bento-card:hover::before {
  background: linear-gradient(180deg,
    rgba(15, 23, 42, 0.15) 0%,
    rgba(15, 23, 42, 0.55) 45%,
    rgba(15, 23, 42, 0.92) 100%);
}

.bento-card:hover .link {
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  border-color: transparent;
  gap: 12px;
}

.bento-card:hover .link .arrow {
  transform: translateX(4px);
}

@media (max-width: 1080px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .bento-card.bento-featured { grid-column: span 6; grid-row: span 2; min-height: 380px; }
  .bento-card.bento-medium   { grid-column: span 6; }
  .bento-card.bento-small    { grid-column: span 3; }
}

@media (max-width: 720px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card,
  .bento-card.bento-featured,
  .bento-card.bento-medium,
  .bento-card.bento-small {
    grid-column: span 1;
    grid-row: auto;
    min-height: 280px;
  }
  .bento-card.bento-featured { min-height: 340px; }
}

/* ----- Bento detail modal ----- */
.bento-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.bento-modal.is-open {
  display: flex;
  animation: bentoModalFade 240ms var(--ease) both;
}

.bento-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.bento-modal__panel {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.5);
  animation: bentoModalPop 320ms var(--ease) both;
}

.bento-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.bento-modal__close svg { width: 20px; height: 20px; }

.bento-modal__close:hover {
  background: #fff;
  transform: scale(1.05);
}

.bento-modal__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.bento-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, 0.25) 100%);
  pointer-events: none;
}

.bento-modal__body {
  padding: clamp(22px, 3vw, 32px);
}

.bento-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.bento-modal__meta .tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-modal__meta .badge {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #14b8a6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.bento-modal__title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.2vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.bento-modal__desc {
  margin: 0 0 22px;
  color: var(--color-ink-2);
  line-height: 1.65;
  font-size: 1rem;
}

.bento-modal__cta { width: fit-content; }

@keyframes bentoModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bentoModalPop {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .bento-card,
  .bento-card > img,
  .bento-card::before,
  .bento-card .link,
  .bento-card .link .arrow {
    transition: none !important;
  }
  .bento-card:hover { transform: none; }
  .bento-card:hover > img { transform: none; }
  .bento-modal.is-open,
  .bento-modal__panel { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
