/* Company pages (events, life-at-intigate, leadership) - built on styles.css + about.css.
   Design references: reference/events-design.webp, life-at-intigate-design.webp, leadership-design.webp. */

/* ---------- Sub-page hero ---------- */
.sub-hero .hero-inner { min-height: 520px; }
.sub-hero .hero-copy { padding: 52px 0 64px; width: 48%; }
.sub-hero h1 { font-size: 72px; margin-top: 24px; }
.sub-hero .lead { font-size: 20px; max-width: 460px; }
.sub-hero .hero-art { width: 56%; }
.sub-hero .hero-art img { object-position: 50% 50%; }
.sub-hero .hero-art::before { width: 16%; }
.events-hero .hero-art::before { width: 22%; }

/* ---------- Shared bits ---------- */
.split-head { display: grid; grid-template-columns: 1fr 36%; gap: 40px; align-items: end; margin-bottom: 30px; }
.split-head .section-lead { font-size: 17px; padding-bottom: 10px; }
.eyebrow-blue { color: var(--blue); }
.photo-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.photo-grid-2 { grid-template-columns: 1fr 1fr; }
.photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid img { width: 100%; border-radius: 6px; object-fit: cover; display: block; }
.photo-grid-2 > li > img, .photo-grid-2 .photo-open img, .photo-grid-2 > li > a > img { aspect-ratio: 655 / 472; }
.photo-grid-3 > li > a > img { aspect-ratio: 16 / 9; }
.photo-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; }
.photo-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0 6px; }
.photo-meta .eyebrow { margin-bottom: 6px; font-size: 11px; }
.photo-meta p { font-size: 16px; color: var(--muted); line-height: 1.5; }
.photo-meta h3 { font-size: 22px; margin-bottom: 4px; }
.photo-meta .round-link { flex: 0 0 auto; width: 44px; height: 44px; border-color: var(--blue-soft); }
.link-cards a { display: block; color: inherit; }
.link-cards a:hover h3 { color: var(--blue); }
.link-cards a:hover .round-link { background: var(--blue); color: #fff; border-color: var(--blue); }
.link-cards .text-link { display: inline-flex; margin-top: 12px; font-size: 15px; }
.explore { padding: 44px 0 48px; border-bottom: 1px solid var(--line); }
.explore .eyebrow + h2 { margin-bottom: 26px; }

/* ---------- Navy band with columns and artwork ---------- */
.band { background: var(--navy); color: #fff; overflow: hidden; }
.band-inner { position: relative; display: grid; grid-template-columns: 36% 1fr 26%; gap: 32px; min-height: 300px; padding-top: 48px; padding-bottom: 44px; align-items: center; }
.band .eyebrow { color: #c6cfe6; }
.band h2 { color: #fff; font-size: 44px; }
.band .section-lead { color: #c4cee4; font-size: 17px; }
.band-cols { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.band-cols li { padding: 0 20px; border-left: 1px solid rgba(255,255,255,.22); }
.band-icon { display: block; width: 44px; height: 44px; color: #8fb3ff; margin-bottom: 18px; }
.band-icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.band-cols h3 { font-size: 17px; margin-bottom: 8px; }
.band-cols p { font-size: 14px; line-height: 1.5; color: #b7c3e2; }
.band-art { position: absolute; top: 0; bottom: 0; right: 0; width: 26%; }
.band-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.band-art::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; background: linear-gradient(90deg, var(--navy), rgba(10,20,55,0)); z-index: 1; }
.band-wide-copy .band-inner { grid-template-columns: 1fr 1fr 24%; grid-template-areas: "copy copy art" "cols cols art"; row-gap: 28px; }
.band-wide-copy .band-copy { grid-area: copy; }
.band-wide-copy .band-cols-3 { grid-area: cols; }
.band-wide-copy .band-art { width: 28%; }
.band-photo .band-inner { grid-template-columns: 44% 1fr; min-height: 380px; }
.band-photo .band-art-wide { width: 50%; }
.band-photo .band-art-wide img { object-position: 50% 40%; }

/* ---------- Events ---------- */
.filter-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-inner { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.pill { padding: 12px 26px; border-radius: 999px; border: 1px solid #b5b9c6; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.events { padding: 44px 0 40px; }
.filter-empty { margin-top: 24px; color: var(--muted); }
.photo-dialog { border: 0; border-radius: 12px; padding: 0; background: #0a1437; max-width: min(1100px, 94vw); box-shadow: 0 30px 80px rgba(8,20,62,.5); }
.photo-dialog img { display: block; max-width: 94vw; max-height: 86vh; width: auto; height: auto; }
.photo-dialog .dialog-close { background: rgba(255,255,255,.9); border-radius: 50%; }
.photo-dialog::backdrop { background: rgba(8,20,62,.7); backdrop-filter: blur(4px); }

/* ---------- Life at Intigate ---------- */
.people { border-bottom: 1px solid var(--line); }
.people-inner { display: grid; grid-template-columns: 34% 1fr; gap: 40px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.people-copy .section-lead { font-size: 17px; max-width: 420px; }
.people-photo { width: 100%; height: 100%; max-height: 340px; object-fit: cover; border-radius: 8px; }
.perks { border-bottom: 1px solid var(--line); }
.perk-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.perk-row li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 24px 30px; border-left: 1px solid var(--line); }
.perk-row li:first-child { border-left: 0; }
.perk-icon { display: block; width: 52px; height: 52px; color: var(--blue-soft); margin-bottom: 14px; }
.perk-icon svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.perk-row h3 { font-size: 19px; margin-bottom: 8px; }
.perk-row p { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 230px; margin-bottom: 18px; }
.perk-row .round-link { margin-top: auto; }
.moments { border-bottom: 1px solid var(--line); }
.moments-inner { display: grid; grid-template-columns: 30% 1fr; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.moments-copy .section-lead { font-size: 17px; max-width: 360px; }
.moments-grid > li > img { aspect-ratio: 441 / 241; }
.life-values .values-inner { grid-template-columns: 31% 1fr; }
.value-list-icons li { grid-template-columns: 110px 60px 1fr; }
.value-icon { display: block; width: 48px; height: 48px; color: var(--blue-soft); }
.value-icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.value-list-icons h3 { font-size: 18px; margin-bottom: 4px; }
.careers-split { background: #f6f4ec; border-bottom: 1px solid var(--line); overflow: hidden; }
.careers-split-inner { display: grid; grid-template-columns: 1fr 44%; gap: 40px; align-items: center; min-height: 300px; }
.careers-art { margin-left: calc(-1 * var(--gutter)); height: 100%; min-height: 300px; }
.careers-art img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.careers-copy { padding: 40px 0; }
.careers-copy h2 { font-size: 44px; }
.careers-copy .section-lead { margin-bottom: 26px; }

/* ---------- Leadership ---------- */
.leaders { padding: 44px 0 40px; border-bottom: 1px solid var(--line); }
.leaders h2 { margin-bottom: 26px; }
.leader-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.leader-grid > li > img { aspect-ratio: 4 / 5; object-position: 50% 12%; }
.leader-grid .photo-meta { padding: 14px 0 4px; gap: 12px; }
.leader-grid .photo-meta h3 { font-size: 18px; }
.leader-grid .photo-meta p { font-size: 14px; }
.leader-grid .photo-meta .round-link { width: 38px; height: 38px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .sub-hero h1 { font-size: 60px; }
  .band h2 { font-size: 38px; }
  .band-inner { grid-template-columns: 38% 1fr; }
  .band-art { display: none; }
  .band-wide-copy .band-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "cols"; }
  .band-photo .band-inner { grid-template-columns: 1fr; }
  .band-photo .band-art-wide { display: block; position: relative; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); height: 300px; }
  .band-photo .band-art-wide::before { display: none; }
  .perk-row li { padding: 28px 16px 24px; }
  .careers-copy h2 { font-size: 36px; }
}

@media (max-width: 980px) {
  .sub-hero .hero-inner { display: block; min-height: 0; }
  .sub-hero .hero-copy { width: 100%; padding: 48px 0 24px; }
  .sub-hero .hero-art { position: relative; right: auto; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); height: 380px; }
  .sub-hero .hero-art::before { display: none; }
  .split-head { grid-template-columns: 1fr; gap: 12px; }
  .band-inner { grid-template-columns: 1fr; min-height: 0; }
  .band-cols { grid-template-columns: repeat(3, 1fr); }
  .band-cols li:first-child { border-left: 0; padding-left: 0; }
  .people-inner { grid-template-columns: 1fr; }
  .perk-row { grid-template-columns: 1fr 1fr; }
  .perk-row li:nth-child(3) { border-left: 0; }
  .moments-inner { grid-template-columns: 1fr; }
  .life-values .values-inner { grid-template-columns: 1fr; }
  .careers-split-inner { grid-template-columns: 1fr; gap: 0; }
  .careers-art { margin: 0 calc(-1 * var(--gutter)); min-height: 240px; height: 240px; }
  .photo-grid-3 { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .sub-hero h1 { font-size: 48px; }
  .sub-hero .hero-art { height: 260px; }
  .photo-grid-2 { grid-template-columns: 1fr; }
  .photo-meta h3 { font-size: 19px; }
  .band-cols { grid-template-columns: 1fr; gap: 20px; }
  .band-cols li { border-left: 0; padding: 0; }
  .band h2 { font-size: 32px; }
  .perk-row { grid-template-columns: 1fr; }
  .perk-row li { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .perk-row li:first-child { border-top: 0; }
  .value-list-icons li { grid-template-columns: 48px 1fr; }
  .value-list-icons .value-icon { display: none; }
  .careers-copy h2 { font-size: 32px; }
  .leader-grid { grid-template-columns: 1fr; }
  .leader-grid .photo-meta h3 { font-size: 20px; }
  .pill { padding: 10px 18px; font-size: 13px; }
}
