/* ============================================================
   Shared styles for inner pages (news, company, career, contact)
   Built on the same design tokens as styles.css / index.html
   ============================================================ */

.subpage-main {
  padding-top: 184px;
  /* Same soft blue wash as the index hero, fading into the white page */
  background:
    linear-gradient(
      180deg,
      #dfe6ff 0%,
      #e7f2ff 31%,
      #eff9ff 52%,
      #ffffff 76%,
      #ffffff 100%
    )
    no-repeat top / 100% 640px;
}

/* ---------- Page hero / intro ---------- */

.page-hero {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 16px 0 8px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.page-hero .page-lead {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.page-hero .page-lead + .page-lead {
  margin-top: 16px;
}

/* ---------- Sections ---------- */

.subpage-section {
  padding: 72px 0 0;
}

.subpage-section:last-of-type {
  padding-bottom: 84px;
}

.subpage-section-head {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.subpage-section-head h2 {
  margin-bottom: 14px;
}

.subpage-section-head p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Card grids ---------- */

.sub-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sub-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sub-grid.cols-2-centered {
  grid-template-columns: repeat(2, minmax(280px, 400px));
  justify-content: center;
}

.sub-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sub-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition:
    transform var(--dur-med) var(--ease-smooth),
    box-shadow var(--dur-med) var(--ease-smooth),
    border-color var(--dur-med) var(--ease-soft);
}

.sub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 164, 249, 0.55);
  box-shadow: var(--shadow);
}

.sub-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.sub-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---------- Pill buttons (compact version of index buttons) ---------- */

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(19, 126, 228, 0.26);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition:
    background var(--dur-med) var(--ease-soft),
    color var(--dur-med) var(--ease-soft),
    border-color var(--dur-med) var(--ease-soft),
    box-shadow var(--dur-med) var(--ease-smooth);
}

.pill-button:hover,
.pill-button:focus-visible {
  background: #3f93e8;
}

.pill-button.ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

.pill-button.ghost:hover,
.pill-button.ghost:focus-visible {
  background: rgba(232, 237, 245, 0.72);
}

.pill-button.ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.pill-button.ghost-light:hover,
.pill-button.ghost-light:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.pill-button.on-white {
  border-color: rgba(8, 20, 47, 0.12);
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(8, 20, 47, 0.22);
}

.pill-button.on-white:hover,
.pill-button.on-white:focus-visible {
  background: #eef5fe;
}

/* ---------- Transition strip into the blue footer ---------- */

.footer-fade {
  height: 150px;
  background: linear-gradient(180deg, #ffffff 0%, #5dacf9 100%);
}

/* ============================================================
   News page
   ============================================================ */

.news-grid {
  margin-top: 8px;
}

.news-card {
  position: relative;
  text-align: left;
}

.news-card-media {
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(8, 20, 47, 0.08);
  border-radius: 10px;
  background: var(--paper-soft);
}

.news-card-media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.news-date {
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.news-excerpt {
  margin-top: auto;
  padding-top: 14px;
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

a.news-card-link {
  display: block;
  height: 100%;
}

.partner-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 44px;
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
}

.partner-band img {
  width: auto;
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
}

.feature-kicker {
  text-align: center;
  margin-bottom: 28px;
}

.feature-kicker h2 {
  margin-bottom: 4px;
}

.feature-kicker .kicker-sub {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.news-feature {
  position: relative;
  width: min(100% - 32px, var(--container));
  min-height: 420px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #08142f 0%, #137ee4 100%);
}

.news-feature video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-feature-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 47, 0.38);
}

.news-feature-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 420px;
  padding: 48px 24px;
  text-align: center;
}

.news-feature-content h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -0.04em;
}

/* ============================================================
   Career page
   ============================================================ */

.career-hero {
  position: relative;
  width: min(100% - 40px, 1296px);
  min-height: min(78vh, 720px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 40px;
  background: var(--ink);
}

.career-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.career-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 47, 0.66), rgba(19, 126, 228, 0.5));
}

.career-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(78vh, 720px);
  padding: 72px 24px;
  text-align: center;
  color: #ffffff;
}

.career-hero-brand {
  width: 72px;
  height: auto;
  margin: 0 auto 26px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.career-hero-content h1 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.career-hero-content p {
  max-width: 760px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  line-height: 1.7;
}

.career-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: rgba(76, 164, 249, 0.12);
  color: var(--blue-deep);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.sub-card.centered {
  align-items: center;
  text-align: center;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
  margin-bottom: 44px;
}

.stat-number {
  display: block;
  color: var(--blue-deep);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.stat-label {
  color: var(--muted);
  font-size: 1rem;
}

.career-image-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-soft);
}

.career-image-panel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.role-card {
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.role-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.role-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--violet), var(--blue-deep));
}

.role-meta {
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.process-card h3 {
  font-size: 1.2rem;
}

.career-cta {
  padding: 56px 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, #08142f 0%, #137ee4 100%);
  box-shadow: var(--shadow);
  text-align: center;
}

.career-cta h2 {
  margin-bottom: 14px;
  color: #ffffff;
}

.career-cta p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Modal (vanilla, matches index styling) ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 20, 47, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.site-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 61;
  width: min(92vw, 540px);
  max-height: 88vh;
  overflow-y: auto;
  transform: translate(-50%, -48%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.site-modal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.site-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.site-modal-head h3 {
  margin: 0;
  font-size: 1.3rem;
}

.site-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(8, 20, 47, 0.06);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.site-modal-close:hover {
  background: rgba(8, 20, 47, 0.12);
}

.site-modal-form {
  display: grid;
  gap: 16px;
  padding: 24px 26px 28px;
}

.site-modal-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-modal-form input,
.site-modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-modal-form input:focus,
.site-modal-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(76, 164, 249, 0.16);
}

.site-modal-form .pill-button {
  justify-self: start;
}

/* ============================================================
   Company page
   ============================================================ */

.company-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.prologue-card h2 {
  margin-bottom: 8px;
}

.prologue-card .prologue-sub {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1rem;
}

.prologue-card p:not(.prologue-sub) {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
}

.prologue-card p + p {
  margin-top: 18px;
}

.logo-box {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: rgba(76, 164, 249, 0.12);
  box-shadow: 0 0 60px rgba(76, 164, 249, 0.28);
}

.logo-wrap img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.logo-box p {
  max-width: 300px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.person-card {
  padding: 20px 20px 26px;
}

.person-media {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(8, 20, 47, 0.08);
  border-radius: 12px;
  background: var(--paper-soft);
}

.person-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transition: transform 0.45s var(--ease-smooth);
}

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

/* For tight headshots that a cover-crop would clip: show the full photo,
   letterboxed on white to match the photo's own background. */
.person-media img.fit-contain {
  object-fit: contain;
  background: #ffffff;
}

.person-card h3 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.person-role {
  margin-bottom: 12px;
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.person-bio {
  flex: 1;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    background var(--dur-med) var(--ease-soft),
    border-color var(--dur-med) var(--ease-soft),
    color var(--dur-med) var(--ease-soft);
}

.linkedin-btn:hover,
.linkedin-btn:focus-visible {
  border-color: var(--blue);
  color: var(--blue-deep);
  background: rgba(76, 164, 249, 0.08);
}

.linkedin-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ============================================================
   Contact page
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  width: min(100% - 32px, var(--container));
  margin: 48px auto 0;
}

.contact-card {
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.contact-card > h2 {
  margin-bottom: 10px;
}

.contact-card .contact-intro {
  margin-bottom: 26px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  transition:
    transform var(--dur-med) var(--ease-smooth),
    border-color var(--dur-med) var(--ease-soft),
    box-shadow var(--dur-med) var(--ease-smooth);
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 164, 249, 0.55);
  box-shadow: var(--shadow);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(76, 164, 249, 0.12);
  color: var(--blue-deep);
}

.icon-badge svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.contact-item p,
.contact-item a {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.contact-item a:hover {
  color: var(--blue-deep);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.contact-image-card {
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.contact-image-shell {
  position: relative;
  min-height: max(100%, 420px);
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #dfe6ff 0%, #e7f2ff 45%, #eff9ff 100%);
}

.contact-image-shell img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.contact-image-card:hover .contact-image-shell img {
  transform: scale(1.03);
}

.contact-image-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px rgba(8, 20, 47, 0.1);
}

.contact-image-overlay h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.contact-image-overlay p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .sub-grid,
  .sub-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sub-grid.cols-2-centered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-split {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-image-shell img {
    min-height: 420px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .subpage-main {
    padding-top: 120px;
    background-size: 100% 460px;
  }
}

@media (max-width: 680px) {
  .sub-grid,
  .sub-grid.cols-2,
  .sub-grid.cols-2-centered,
  .sub-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .subpage-section {
    padding-top: 56px;
  }

  .sub-card {
    padding: 24px 20px;
  }

  .career-hero {
    width: calc(100% - 24px);
    border-radius: 28px;
  }

  .career-hero-buttons .pill-button {
    width: 100%;
  }

  .news-feature {
    border-radius: 20px;
  }

  .partner-band {
    gap: 18px 28px;
    padding: 28px 20px;
  }

  .person-media img {
    height: 280px;
  }

  .contact-card {
    padding: 26px 20px;
  }

  .contact-item {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .icon-badge {
    width: 48px;
    height: 48px;
  }

  .contact-image-shell img {
    min-height: 360px;
  }

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

  .career-image-panel img {
    height: 260px;
  }

  .career-cta {
    padding: 40px 24px;
  }

  .footer-fade {
    height: 110px;
  }
}

/* ============================================================
   Artistic layer — ambience, motion, and editorial accents
   ============================================================ */

/* ---------- Ambient color field behind the content ---------- */

.page-ambience {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.amb-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.5;
  animation: amb-drift 18s ease-in-out infinite alternate;
}

.amb-glow.a {
  width: 440px;
  height: 440px;
  left: -140px;
  top: 14%;
  background: rgba(76, 164, 249, 0.17);
}

.amb-glow.b {
  width: 400px;
  height: 400px;
  right: -140px;
  top: 38%;
  background: rgba(38, 212, 223, 0.13);
  animation-delay: -6s;
}

.amb-glow.c {
  width: 460px;
  height: 460px;
  left: 32%;
  bottom: -180px;
  background: rgba(166, 109, 247, 0.11);
  animation-delay: -12s;
}

@keyframes amb-drift {
  to {
    transform: translate3d(46px, -34px, 0) scale(1.08);
  }
}

.subpage-main,
.subpage .footer-fade,
.subpage .site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Entrances ---------- */

.page-hero h1,
.page-hero .eyebrow,
.career-hero-content h1 {
  animation: hero-rise 0.9s var(--ease-smooth) both;
}

.page-hero .eyebrow {
  animation-duration: 0.7s;
}

.page-hero .page-lead {
  animation: hero-rise 0.9s var(--ease-smooth) 0.15s both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

.reveal-pending {
  opacity: 0;
  transform: translateY(26px);
}

.reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s var(--ease-smooth),
    transform 0.7s var(--ease-smooth);
  transition-delay: calc(var(--reveal-index, 0) * 80ms);
}

/* ---------- Section flourishes ---------- */

.subpage-section-head::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 24px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(76, 164, 249, 0.85), transparent);
}

/* ---------- News: editorial grid ---------- */

@media (min-width: 681px) {
  .news-grid > :first-child {
    grid-column: span 2;
  }

  .news-grid > :first-child .news-card-media img {
    height: 280px;
  }

  .news-grid > :first-child h3 {
    font-size: 1.6rem;
  }
}

.news-date::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 8px;
  border-radius: 2px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.news-card-media img {
  transition: transform 0.6s var(--ease-smooth);
}

.sub-card:hover .news-card-media img {
  transform: scale(1.05);
}

.partner-band img {
  filter: grayscale(1);
  opacity: 0.66;
  transition: filter 0.35s var(--ease-soft), opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-smooth);
}

.partner-band img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
}

.news-feature {
  box-shadow: 0 34px 90px rgba(19, 126, 228, 0.28);
}

/* ---------- Company: monogram & portraits ---------- */

.prologue-card {
  position: relative;
  overflow: hidden;
}

.prologue-card::after {
  content: "अ";
  position: absolute;
  right: -14px;
  bottom: -70px;
  font-size: 260px;
  line-height: 1;
  color: rgba(76, 164, 249, 0.07);
  pointer-events: none;
  user-select: none;
}

.logo-wrap {
  animation: logo-breathe 5s ease-in-out infinite alternate;
}

@keyframes logo-breathe {
  from {
    box-shadow: 0 0 44px rgba(76, 164, 249, 0.24);
  }
  to {
    box-shadow: 0 0 96px rgba(76, 164, 249, 0.5);
  }
}

/* ---------- Career: color-coded details ---------- */

.stat-number {
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue-deep);
}

.career-hero {
  box-shadow: 0 40px 110px rgba(8, 20, 47, 0.3);
}

.process-card h3 {
  color: var(--blue-deep);
}

/* ---------- Contact: color-coded icon badges ---------- */

.contact-item:nth-child(2) .icon-badge {
  background: rgba(38, 212, 223, 0.16);
  color: #0f98a4;
}

.contact-item:nth-child(3) .icon-badge {
  background: rgba(166, 109, 247, 0.14);
  color: #7a3fe0;
}

/* ---------- Motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  .amb-glow,
  .logo-wrap {
    animation: none;
  }

  .page-hero h1,
  .page-hero .eyebrow,
  .career-hero-content h1 {
    animation: none;
  }

  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   TANDEN page (aitanden.html)
   ============================================================ */

.tanden-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding-top: 16px;
}

.tanden-hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
  animation: hero-rise 0.9s var(--ease-smooth) both;
}

.tanden-sub {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.15rem;
  animation: hero-rise 0.9s var(--ease-smooth) 0.15s both;
}

.tanden-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tanden-mock {
  padding: 20px;
}

.tanden-mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 650;
}

.tanden-mock-head img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tanden-screen {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(8, 20, 47, 0.08);
  background: var(--paper-soft);
}

.tanden-screen video {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* ---------- Flywheel (restyled to the design system) ---------- */

.flywheel-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 700px;
  padding: 20px 0;
  --spin-speed: 35s;
}

.flywheel-container {
  position: relative;
  width: 750px;
  height: 750px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.rotating-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(76, 164, 249, 0.4);
  animation: spin-right var(--spin-speed) linear infinite;
}

.spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  background-color: rgba(8, 20, 47, 0.1);
  z-index: 2;
  transform-origin: 0% 50%;
}

.flywheel-container:hover .rotating-ring,
.flywheel-container:hover .flywheel-item,
.flywheel-container:hover .spoke-layer {
  animation-play-state: paused;
}

.center-hub {
  position: absolute;
  z-index: 10;
  width: 160px;
  height: 160px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  color: var(--blue-deep);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  box-shadow: 0 0 60px rgba(76, 164, 249, 0.35);
  border: 4px solid var(--blue);
}

.flywheel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 110px;
  margin-left: -90px;
  margin-top: -65px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-bottom: 3px solid var(--cyan);
  border-radius: 50%;
  box-shadow: var(--card-shadow, 0 10px 40px rgba(14, 62, 113, 0.12));
  z-index: 7;
  animation: spin-left var(--spin-speed) linear infinite;
}

.item-1 { z-index: 1; }
.item-2 { z-index: 2; }
.item-3 { z-index: 3; }
.item-4 { z-index: 4; }
.item-5 { z-index: 5; }
.item-6 { z-index: 6; }

.item-pos-1 { transform: rotate(0deg) translate(250px) rotate(0deg); }
.item-pos-2 { transform: rotate(60deg) translate(250px) rotate(-60deg); }
.item-pos-3 { transform: rotate(120deg) translate(250px) rotate(-120deg); }
.item-pos-4 { transform: rotate(180deg) translate(250px) rotate(-180deg); }
.item-pos-5 { transform: rotate(240deg) translate(250px) rotate(-240deg); }
.item-pos-6 { transform: rotate(300deg) translate(250px) rotate(-300deg); }

@keyframes spin-right { 100% { transform: rotate(360deg); } }
@keyframes spin-left { 100% { transform: rotate(-360deg); } }

/* ---------- Partner marquee ---------- */

.tanden-slider-shell {
  padding: 36px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
}

.tanden-slider-title {
  margin-bottom: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.tanden-slider {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  max-width: 92%;
  margin: 0 auto;
  padding: 12px 0;
}

.tanden-slider::before,
.tanden-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tanden-slider::before {
  left: 0;
  background: linear-gradient(to right, #f7fbff, transparent);
}

.tanden-slider::after {
  right: 0;
  background: linear-gradient(to left, #f7fbff, transparent);
}

.tanden-slider-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: tanden-scroll 24s linear infinite;
  width: max-content;
}

.tanden-slider img {
  width: 110px;
  height: 52px;
  object-fit: contain;
  opacity: 0.68;
  filter: grayscale(1);
  transition: opacity 0.35s var(--ease-soft), filter 0.35s var(--ease-soft);
}

.tanden-slider img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes tanden-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- FAQ accordion ---------- */

.tanden-accordion {
  max-width: 820px;
}

.acc-item {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  transition: border-color var(--dur-med) var(--ease-soft), box-shadow var(--dur-med) var(--ease-smooth);
}

.acc-item:hover {
  border-color: rgba(76, 164, 249, 0.55);
  box-shadow: 0 10px 30px rgba(14, 62, 113, 0.08);
}

.acc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 650;
}

.acc-header span {
  flex: 0 0 auto;
  color: var(--blue-deep);
  font-size: 1.2rem;
  font-weight: 400;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--ink-soft);
  transition: max-height 0.3s ease, padding 0.3s ease;
  will-change: max-height;
}

.acc-body.open {
  padding: 0 20px 18px;
  max-height: 600px;
}

.acc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.acc-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.acc-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ---------- Reviews ---------- */

.tanden-review p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.tanden-review strong {
  color: var(--blue-deep);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .tanden-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .flywheel-section {
    min-height: 540px;
  }

  .flywheel-container {
    transform: scale(0.72);
  }
}

@media (max-width: 650px) {
  .flywheel-section {
    min-height: 440px;
  }

  .flywheel-container {
    transform: scale(0.52);
  }

  .tanden-hero-buttons .pill-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotating-ring,
  .flywheel-item,
  .tanden-slider-track {
    animation: none;
  }

  .tanden-hero-copy h1,
  .tanden-sub {
    animation: none;
  }
}

/* ============================================================
   TANDEN Academy page (Education.html)
   ============================================================ */

.edu-hero {
  max-width: 880px;
  padding-top: 16px;
}

.edu-hero .eyebrow {
  animation: hero-rise 0.7s var(--ease-smooth) both;
}

.edu-badge-strip {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 0.82rem;
  animation: hero-rise 0.8s var(--ease-smooth) 0.05s both;
}

.edu-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  animation: hero-rise 0.9s var(--ease-smooth) 0.1s both;
}

.edu-lead {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  animation: hero-rise 0.9s var(--ease-smooth) 0.18s both;
}

.edu-lead strong {
  color: var(--ink);
  font-weight: 650;
}

.edu-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  animation: hero-rise 0.9s var(--ease-smooth) 0.24s both;
}

.edu-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.edu-anchor-nav a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  transition: color var(--dur-med) var(--ease-soft), border-color var(--dur-med) var(--ease-soft), background var(--dur-med) var(--ease-soft);
}

.edu-anchor-nav a:hover {
  color: var(--blue-deep);
  border-color: rgba(76, 164, 249, 0.55);
  background: rgba(76, 164, 249, 0.08);
}

.edu-status-card {
  margin-bottom: 30px;
}

.edu-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.edu-status-title {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
}

.edu-chip {
  flex: 0 0 auto;
  padding: 4px 12px;
  border: 1px solid rgba(76, 164, 249, 0.4);
  border-radius: 999px;
  background: rgba(76, 164, 249, 0.1);
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 700;
}

.edu-audience-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.edu-pills {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.edu-pills span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
}

/* Lists inside cards */

.edu-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.edu-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.edu-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.edu-tile h3 {
  font-size: 1.08rem;
}

.edu-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Big framing panels (Governance, Programs) */

.edu-panel {
  display: block;
  padding: 40px clamp(20px, 4vw, 44px);
  background: var(--paper-soft);
}

.edu-panel:hover {
  transform: none;
  box-shadow: var(--card-shadow, 0 10px 40px rgba(14, 62, 113, 0.08));
}

.edu-panel .sub-card {
  background: #ffffff;
}

/* Track cards */

.edu-track-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}

.edu-track-head .feature-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin: 0;
}

.edu-track-head .feature-icon svg {
  width: 22px;
  height: 22px;
}

.edu-track-head h3 {
  margin-bottom: 6px;
}

/* Program cards */

.edu-program-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.edu-program-head h3 {
  margin-bottom: 4px;
}

.edu-meta {
  color: var(--blue-deep);
  font-size: 0.84rem;
  font-weight: 650;
  margin-bottom: 10px;
}

.edu-badge {
  flex: 0 0 auto;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
}

.edu-badge.light {
  background: rgba(76, 164, 249, 0.1);
  color: var(--blue-deep);
  border: 1px solid rgba(76, 164, 249, 0.4);
}

/* Partner CTA reuses .career-cta gradient */

.edu-cta {
  margin-top: 36px;
}

/* Contact section */

.edu-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.edu-contact-head {
  text-align: left;
  margin-bottom: 24px;
}

.edu-contact-head::after {
  margin-left: 0;
}

.edu-form {
  display: grid;
  gap: 16px;
}

.edu-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.edu-form input,
.edu-form select,
.edu-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edu-form input:focus,
.edu-form select:focus,
.edu-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(76, 164, 249, 0.16);
}

.edu-form .pill-button {
  justify-self: start;
}

.edu-form .edu-note {
  margin-top: 0;
}

/* Responsive */

@media (max-width: 1024px) {
  .edu-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .edu-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .edu-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edu-hero-buttons .pill-button {
    width: 100%;
  }

  .edu-panel {
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edu-hero .eyebrow,
  .edu-badge-strip,
  .edu-hero h1,
  .edu-lead,
  .edu-hero-buttons {
    animation: none;
  }
}
