/* Careers is a single scrubbed journey. Every narrative section becomes a
   frosted frame over the same workday environment once JS is available. */
.careers-immersive-page {
  --careers-ink: #071b34;
  --careers-blue: #075886;
  --careers-cyan: #64d5e8;
  background: #f8fbfd;
  color: var(--careers-ink);
}

.careers-poster,
.careers-video,
.careers-field { position: fixed; inset: 0; pointer-events: none; }
.careers-poster {
  z-index: 0;
  background: url('../img/video/careers-master-v2-blue-white.png') center / cover no-repeat;
  filter: saturate(.82) contrast(1.04);
}
.careers-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(.82) contrast(1.04);
  transition: opacity .4s ease;
}
.careers-video.is-ready { opacity: 1; }
@media (min-width: 901px) {
  .careers-poster { display: none; }
  body.careers-video-fallback .careers-poster { display: block; }
}
.careers-field {
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.84) 32%, rgba(255,255,255,.34) 66%, rgba(255,255,255,.1)), linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%, rgba(6,35,73,.16));
}

.careers-journey { position: relative; z-index: 3; min-height: 100svh; }
.careers-journey__stage { min-height: 100svh; }
.careers-hero { min-height: 100svh; display: flex; align-items: center; padding: 140px 0 72px; }
.careers-hero__content { width: min(650px, calc(100% - 48px)); margin-left: max(24px, calc((100vw - 1180px) / 2 + 24px)); }
.careers-immersive-page .eyebrow { margin: 0; color: var(--careers-blue); font-size: .67rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.careers-hero h1 { max-width: 12ch; margin: 18px 0; color: var(--careers-ink); font-size: clamp(2.8rem, 4.9vw, 5.4rem); font-weight: 900; letter-spacing: -.07em; line-height: .92; }
.careers-hero__lead { max-width: 45ch; margin: 0 0 28px; color: #2f4f67; font-size: clamp(1rem, 1.25vw, 1.14rem); line-height: 1.55; }
.careers-hero__jump { color: var(--careers-blue); font-weight: 800; }

/* The scene is glass from first paint. Overlay mode may reposition it, but it
   must never swap an opaque white fallback for translucent material mid-frame. */
.careers-intro, .careers-why, .careers-roles, .careers-hire, .careers-cta { position: relative; padding: 88px 0; background: transparent; }
.careers-intro__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(32px, 6vw, 88px); max-width: 1080px; margin: 0 auto; align-items: center; padding: clamp(28px, 4vw, 56px); border: 1px solid rgba(255,255,255,.58); background: linear-gradient(135deg, rgba(255,255,255,.48), rgba(240,249,255,.26)); box-shadow: 0 24px 68px rgba(8,42,77,.16), inset 0 1px rgba(255,255,255,.68); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); }
.careers-intro__copy h2, .careers-section__title { max-width: 16ch; margin: 14px 0 20px; color: var(--careers-ink); font-size: clamp(2rem, 3.2vw, 3.35rem); font-weight: 900; letter-spacing: -.055em; line-height: .98; }
.careers-intro__copy p { max-width: 57ch; color: #46617a; line-height: 1.62; }
.careers-intro__mobile-copy { display: none; }
.careers-glance, .careers-why__item, .career-role { position: relative; overflow: visible; }
.career-role { padding: 0; }
.careers-glance > *:not(.glass-card__housing):not(.glass-card__depth),
.careers-why__item > *:not(.glass-card__housing):not(.glass-card__depth),
.career-role > *:not(.glass-card__housing):not(.glass-card__depth) { position: relative; z-index: 2; }
.careers-glance { padding: 34px 38px; }
.careers-glance h3 { margin: 0 0 20px; font-size: 1.12rem; }
.careers-glance dl { display: grid; gap: 16px; margin: 0; }
.careers-glance dt { color: var(--careers-blue); font-size: 2rem; font-weight: 900; line-height: 1; }
.careers-glance dd { margin: 3px 0 0; color: #506587; font-size: .88rem; }
.careers-glance__link { display: inline-block; margin-top: 22px; color: var(--careers-blue) !important; }
.careers-why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.careers-why__item { padding: 28px 30px; }
.careers-why__item svg { width: 38px; height: 38px; margin-bottom: 26px; fill: none; stroke: var(--careers-blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.careers-why__item h3 { margin: 0 0 10px; font-size: 1.1rem; }
.careers-why__item p { margin: 0; color: #506587; font-size: .9rem; line-height: 1.5; }
.careers-roles .container { max-width: 980px; }
.careers-roles__head { margin-bottom: 28px; }
.careers-roles__head p { margin: 0; color: #506587; }
.careers-roles__stack { display: grid; gap: 14px; }
.career-role__heading { margin: 0; }
.career-role__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 23px 30px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.career-role__title { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -.025em; }
.career-role__meta { display: block; margin: 5px 0 11px; color: #6a819a; font-size: .8rem; font-weight: 600; }
.career-role__meta i { color: var(--careers-cyan); font-style: normal; }
.career-role__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.career-role__tag { padding: 4px 10px; border-radius: 999px; background: rgba(7,88,134,.08); color: var(--careers-blue); font-size: .68rem; font-weight: 800; }
.career-role__action { display: inline-flex; align-items: center; gap: 8px; color: var(--careers-blue); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.career-role__action svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s ease; }
.career-role.is-open .career-role__action svg { transform: rotate(90deg); }
.career-role__panel { overflow: hidden; }
.career-role__panel.is-animating { transition: height .34s cubic-bezier(.22,1,.36,1); }
.career-role__panel-inner { padding: 0 30px 28px; }
.career-role__panel-inner p { max-width: 65ch; margin: 0 0 13px; color: #46617a; font-size: .92rem; line-height: 1.58; }
.careers-apply { display: inline-block; margin-top: 5px; padding: 12px 22px; border-radius: 4px; background: linear-gradient(90deg, var(--careers-blue), #1683ac); color: #fff; font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.careers-hire__band, .careers-cta__band { max-width: 1080px; margin: 0 auto; padding: 46px 52px; }
.careers-hire__band { background: linear-gradient(135deg, rgba(6,35,73,.7), rgba(7,88,134,.58)); color: #fff; backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); }
.careers-hire__intro { max-width: 44ch; margin-bottom: 34px; }
.careers-hire__band .eyebrow { color: #a8e6ef; }
body.careers-immersive-page .careers-hire__intro h2,
body.careers-immersive-page .hire-step h3 { color: #fff !important; }
.careers-hire__intro h2 { margin: 12px 0; font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.careers-hire__intro p, .hire-step p { color: #deedf4; }
.careers-hire__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.hire-step__num { display: block; margin-bottom: 11px; color: #a8e6ef; font-weight: 900; font-size: 1.35rem; }
.hire-step h3 { margin: 0 0 8px; font-size: 1rem; }
.hire-step p { margin: 0; font-size: .84rem; line-height: 1.5; }
.careers-cta__band { display: flex; align-items: center; justify-content: space-between; gap: 26px; border: 1px solid rgba(255,255,255,.46); background: linear-gradient(135deg, rgba(6,35,73,.58), rgba(7,88,134,.44)); color: #fff; backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); }
.careers-cta__band h2 { margin: 0 0 8px; font-size: clamp(1.75rem, 2.6vw, 2.5rem); letter-spacing: -.045em; }
.careers-cta__band p { margin: 0; color: #e2f0f5; }
body.careers-immersive-page .careers-cta__band h2 { color: #fff !important; text-shadow: 0 1px 16px rgba(3,18,38,.3); }
body.careers-immersive-page .careers-cta__band .btn { border-color: #64d5e8; color: #fff !important; }

/* Literal light-mode port of the shared housing + depth component. These
   remain two physical layers; every Careers card uses the same clipped shell,
   translucent material, animated edge, and hover depth as the other routes. */
.careers-immersive-page .glass-card__housing { background-color: rgba(255,255,255,.55); box-shadow: 0 26px 60px rgba(6,23,44,.14), inset 0 1px rgba(255,255,255,.7); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.careers-immersive-page .glass-card__depth { background: linear-gradient(145deg, rgba(255,255,255,.66), rgba(255,255,255,.52)); box-shadow: 0 18px 44px rgba(6,23,44,.12), inset 0 1px rgba(255,255,255,.6), inset 0 0 0 1px rgba(7,88,134,.08); backdrop-filter: blur(26px) saturate(1.35); -webkit-backdrop-filter: blur(26px) saturate(1.35); }
.careers-immersive-page .glass-card__depth::before { background: conic-gradient(from calc(var(--careers-progress, .3) * 1turn), transparent 0 78%, rgba(7,88,134,.06) 83%, rgba(7,88,134,.55) 88%, rgba(58,174,201,.18) 93%, transparent 100%); }
body.careers-overlay-ready .careers-glance:hover .glass-card__housing,
body.careers-overlay-ready .careers-why__item:hover .glass-card__housing,
body.careers-overlay-ready .career-role:hover .glass-card__housing { background-color: rgba(255,255,255,.66); box-shadow: 0 34px 82px rgba(6,23,44,.2), inset 0 1px rgba(255,255,255,.76); }
body.careers-overlay-ready .careers-glance:hover .glass-card__depth,
body.careers-overlay-ready .careers-why__item:hover .glass-card__depth,
body.careers-overlay-ready .career-role:hover .glass-card__depth { box-shadow: 0 30px 75px rgba(6,23,44,.18), 0 0 56px rgba(58,139,214,.1), inset 0 0 0 1px rgba(255,255,255,.62); }

/* Scrub composition: the static document becomes one long timeline and each
   section is a fixed, accessible overlay frame. */
body.careers-overlay-ready .careers-journey { min-height: 560svh; }
body.careers-overlay-ready .careers-journey__stage { min-height: 100svh; }
body.careers-overlay-ready .careers-intro,
body.careers-overlay-ready .careers-why,
body.careers-overlay-ready .careers-roles,
body.careers-overlay-ready .careers-hire,
body.careers-overlay-ready .careers-cta {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: max(104px, 12vh) 0 52px;
  overflow: auto;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .38s ease, visibility 0s linear .38s;
  background: transparent;
}
body.careers-overlay-ready .careers-intro.is-active,
body.careers-overlay-ready .careers-why.is-active,
body.careers-overlay-ready .careers-roles.is-active,
body.careers-overlay-ready .careers-hire.is-active,
body.careers-overlay-ready .careers-cta.is-active { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
body.careers-overlay-ready .careers-journey__stage .is-reveal-prepared { will-change: opacity, transform; }
body.careers-overlay-ready .careers-journey__stage .is-reveal-prepared .glass-card__housing,
body.careers-overlay-ready .careers-journey__stage .is-reveal-prepared .glass-card__depth { will-change: backdrop-filter; }
/* secondary.css prepares generic glass cards as scroll-reveal targets. In a
   pinned Careers frame the panel state is the reveal contract instead. */
body.careers-overlay-ready .is-active .glass-card { opacity: 1; transform: none; }
body.careers-overlay-ready .careers-intro > .container, body.careers-overlay-ready .careers-why > .container, body.careers-overlay-ready .careers-roles > .container, body.careers-overlay-ready .careers-hire > .container, body.careers-overlay-ready .careers-cta > .container { width: min(1080px, calc(100% - 48px)); margin: auto; }
body.careers-overlay-ready .careers-intro__grid { padding: clamp(28px, 4vw, 56px); border: 1px solid rgba(255,255,255,.58); background: linear-gradient(135deg, rgba(255,255,255,.48), rgba(240,249,255,.26)); box-shadow: 0 24px 68px rgba(8,42,77,.16), inset 0 1px rgba(255,255,255,.68); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); }
body.careers-overlay-ready .careers-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(42px, 4vw, 68px); }
body.careers-overlay-ready .careers-why__item { min-height: 218px; padding: 28px 30px; opacity: 0; transition: opacity .38s ease; }
body.careers-overlay-ready .careers-why.is-active .careers-why__item { opacity: 1; }
body.careers-overlay-ready .careers-why.is-active .careers-why__item:nth-child(2) { transition-delay: 90ms; }
body.careers-overlay-ready .careers-why.is-active .careers-why__item:nth-child(3) { transition-delay: 180ms; }
body.careers-overlay-ready .careers-why.is-active .careers-why__item:nth-child(4) { transition-delay: 270ms; }
body.careers-overlay-ready .careers-why__item svg { margin-bottom: 20px; }
body.careers-overlay-ready .careers-roles > .container { width: min(920px, calc(100% - 48px)); }
body.careers-overlay-ready .careers-roles__stack { gap: clamp(72px, 5vw, 92px); }
body.careers-overlay-ready .career-role { opacity: 0; transition: opacity .38s ease; }
body.careers-overlay-ready .careers-roles.is-active .career-role { opacity: 1; }
body.careers-overlay-ready .careers-roles.is-active .career-role:nth-child(2) { transition-delay: 110ms; }
body.careers-overlay-ready .careers-roles.is-active .career-role:nth-child(3) { transition-delay: 220ms; }

body.careers-overlay-ready .careers-hire__band { border: 1px solid rgba(255,255,255,.42); box-shadow: 0 24px 68px rgba(4,25,52,.26); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); }
body.careers-overlay-ready .careers-cta__band { width: min(760px, 100%); margin: auto; padding: 50px 56px; border-radius: 6px; box-shadow: 0 24px 68px rgba(4,25,52,.26); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); }

@media (max-width: 820px) {
  body.careers-overlay-ready .careers-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.careers-overlay-ready .careers-why__item { min-height: 205px; }
  .careers-hire__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .careers-poster { background-position: 60% center; }
  .careers-video { object-position: 60% center; }
  .careers-hero { align-items: flex-end; padding: 126px 0 72px; }
  .careers-hero__content { width: 56%; margin: 0 0 38px 24px; }
  .careers-hero h1 { font-size: clamp(2.4rem, 10vw, 3rem); }
  .careers-hero__lead { max-width: 27ch; margin-bottom: 22px; font-size: .95rem; line-height: 1.45; }
  .careers-intro__grid, .careers-why__grid { grid-template-columns: 1fr; }
  .careers-intro { padding: 84px 0 32px; }
  .careers-intro__grid { gap: 12px; padding: 24px 22px; }
  .careers-intro__copy h2 { max-width: 13ch; margin: 10px 0 14px; font-size: clamp(1.8rem, 7.5vw, 2.25rem); }
  .careers-intro__copy p { margin: 0; font-size: .9rem; line-height: 1.45; }
  .careers-intro__desktop-copy { display: none; }
  .careers-intro__mobile-copy { display: inline; }
  .careers-glance { padding: 18px 16px; }
  .careers-glance h3 { margin: 0 0 12px; font-size: .92rem; }
  .careers-glance dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .careers-glance dt { font-size: 1.55rem; }
  .careers-glance dd { margin-top: 3px; font-size: .62rem; line-height: 1.22; }
  .careers-glance__link { display: none; }
  .career-role__head { align-items: flex-start; padding: 20px; }
  .career-role__action { font-size: 0; }
  .career-role__panel-inner { padding: 0 20px 22px; }
  .careers-cta__band { flex-direction: column; align-items: flex-start; }
  body.careers-overlay-ready .careers-intro, body.careers-overlay-ready .careers-why, body.careers-overlay-ready .careers-roles, body.careers-overlay-ready .careers-hire, body.careers-overlay-ready .careers-cta { align-items: start; padding-top: 94px; padding-bottom: 28px; }
  body.careers-overlay-ready .careers-intro__grid { gap: 20px; padding: 28px 24px; }
  body.careers-overlay-ready .careers-why__grid { grid-template-columns: 1fr; }
  body.careers-overlay-ready .careers-why__item { min-height: 0; padding: 19px 22px; }
  body.careers-overlay-ready .careers-why__item svg { display: none; }
  body.careers-overlay-ready .careers-hire__band, body.careers-overlay-ready .careers-cta__band { padding: 32px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .careers-video, .career-role__action svg, body.careers-overlay-ready .careers-intro, body.careers-overlay-ready .careers-why, body.careers-overlay-ready .careers-roles, body.careers-overlay-ready .careers-hire, body.careers-overlay-ready .careers-cta { transition: none; }
}
