/* ISL Experience: presentation over the existing content and brand tokens. */
::selection { background: var(--blue); color: var(--white); }
input, textarea { caret-color: var(--blue); }
html { scrollbar-color: var(--blue) var(--tint); }
.area, .cert-number, .cert-page-number { font-variant-numeric: tabular-nums; }

/* Hero layout and copy stay intact; approved foreground layering is defined below. */
.process-story { padding-top: 0; background: var(--white); position: relative; }
.process-story-intro { display: grid; gap: 24px; padding-bottom: 35px; }
.process-story-intro h2 { max-width: 12ch; margin: 0; font-size: clamp(36px, 3.3vw, 54px); line-height: 1.02; letter-spacing: -.04em; }
.process-story-intro > p { max-width: 60ch; margin: 0 0 5px; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.process-story-track { position: relative; }
.process-story-stage { display: grid; grid-template-columns: 1.7fr 1fr; align-items: center; gap: 6%; padding-block: 75px 110px; width: 100%; max-width: none; padding-inline: max(5vw, calc((100vw - 1280px)/2)); }
.process-visual { position: relative; aspect-ratio: 1.75; min-width: 0; background: transparent; }
.process-fallback { position: absolute; width: 78%; height: auto; left: 11%; top: 50%; transform: translateY(-50%); }
.process-canvas { position: absolute; inset: -12vh 0 0; pointer-events: none; }
.process-canvas canvas { display: block; width: 100%; height: 100%; }
.process-visual.has-webgl .process-fallback { visibility: hidden; }
/* Homepage fallback is opt-in: never flash it while the scene is loading. */
.home .process-story .process-fallback { visibility: hidden; }
.home .process-story .process-visual.is-static .process-fallback { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .home .process-story .process-fallback { visibility: visible; } }
.process-story-copy { display: grid; gap: 26px; min-width: 0; position: relative; z-index: 1; }
.process-step h3 { margin: 0 0 9px; font-size: clamp(25px, 2.35vw, 36px); letter-spacing: -.03em; color: var(--blue); }
.process-step p { margin: 0; max-width: 38ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.process-step .text-link { margin-top: 15px; border-bottom: 0; }
.process-story.is-spatial .process-story-track { min-height: 170vh; min-height: 170dvh; }
.process-story.is-spatial .process-story-stage { position: sticky; top: 90px; min-height: calc(100dvh - 90px); padding-block: 35px; }
.process-story.is-spatial .process-step h3 { color: var(--muted); transition: color 180ms ease; }
.process-story.is-spatial .process-step.is-current h3 { color: var(--blue); }

.experience-heading { padding-block: clamp(44px, 6vw, 90px) 50px; }
.experience-heading h1 { max-width: 1050px; color: var(--blue); margin-bottom: 23px; font-size: clamp(45px, 6.5vw, 94px); line-height: 1.02; letter-spacing: -.04em; }
.experience-lead { max-width: 52ch; color: var(--muted); margin: 0; font-size: clamp(19px, 2vw, 27px); line-height: 1.45; }
.experience-cover { position: relative; overflow: hidden; aspect-ratio: 2.65; margin-block: 0; border-radius: var(--radius); background: var(--tint); }
.experience-cover img { width: 100%; height: 100%; object-fit: cover; }
.experience-editorial { padding-block: 30px 60px; }
.experience-chapter { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: clamp(45px, 6vw, 90px); }
.chapter-copy { width: min(100%, 760px); margin-inline: auto; }
.chapter-copy h2, .chapter-copy h2:not(:first-child) { border: 0; margin-top: 0; padding-top: 0; font-size: clamp(28px, 3vw, 43px); line-height: 1.13; letter-spacing: -.03em; }
.chapter-copy h2 + h2 { margin-top: 24px; }
.chapter-copy p { max-width: 70ch; font-size: 18px; line-height: 1.75; }
.chapter-copy > p:first-child, .chapter-copy .industry-content__lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.55; }
.chapter-copy .industry-content__body h2, .chapter-copy .industry-content__footer h2 { margin-top: 48px; }
.chapter-copy .industry-content p br { display: none; }
.chapter-copy :is(table, iframe, video, img, input, select, textarea) { max-width: 100%; }
.chapter-copy :is(p, li, a, td, th) { overflow-wrap: anywhere; }
.chapter-with-media { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.chapter-media { position: sticky; top: 120px; margin: 0; aspect-ratio: 1.15; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; }
.quality-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 47%, #ffffff80 50%, transparent 53%); transform: translateX(-100%); }

/* Existing hub links and headings keep their IDs and destinations. */
.has-child-pages .page-heading { text-align: left; padding-block: 0 40px; }
.has-child-pages .page-heading h1 { max-width: 1050px; margin-inline: 0; letter-spacing: -.04em; }
.has-child-pages .page-heading .eyebrow, .page-child-heading .eyebrow, .page-child-index { display: none; }
.page-child-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 24px; }
.page-child-card { grid-column: span 6; min-height: 380px; border: 0; border-radius: var(--radius); }
.page-child-card:first-child { grid-column: span 7; min-height: 460px; }
.page-child-card:nth-child(2) { grid-column: span 5; min-height: 460px; }
.page-child-card:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 360px; }
.page-child-copy { padding: clamp(24px, 3vw, 42px); }
.page-child-copy h3 { font-size: clamp(29px, 3.2vw, 46px); letter-spacing: -.03em; max-width: 18ch; }
.page-child-copy p { max-width: 47ch; line-height: 1.55; }
.page-child-image::after { background: linear-gradient(180deg, #004b8300 0%, #003c69b0 42%, #002b4ce8 100%); }

/* Rhythm across existing special templates, news, search and legal pages. */
.locations, .services, .career, .career-potential, .career-paths, .career-openings { padding-block: clamp(70px, 8vw, 120px); }
.services > h2 { max-width: 14ch; font-size: clamp(44px, 5.5vw, 78px); }
.intro-content { max-width: 850px; }
.intro-content h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; margin-bottom: 24px; }
.intro-content p { max-width: 68ch; }
.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 45px 0; }
.service-card { min-height: 330px; border-radius: var(--radius); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.service-card::before { inset: 0; height: 100%; aspect-ratio: auto; }
.service-card h3 { position: absolute; inset: auto 0 0; margin: 28px; font-size: clamp(30px, 3vw, 44px); color: var(--white); }
.section-heading { grid-template-columns: 1fr; gap: 18px; }
.section-heading > p { max-width: 55ch; }
.entity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(35px, 5vw, 70px); }
.location-entry { display: flex; flex-direction: column; align-items: stretch; padding: 0 0 35px; gap: 25px; border: 0; }
.location-entry > img, .location-entry > figure { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; margin: 0; border-radius: var(--radius); overflow: hidden; }
.location-entry > figure img { width: 100%; height: 100%; object-fit: cover; }
.location-entry h3 { font-size: clamp(27px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.03em; }
.location-entry p { max-width: 60ch; font-size: 16px; }
.company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.company-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.career-hero h1 { max-width: 1100px; letter-spacing: -.04em; }
.career-hero-image { border-radius: var(--radius); }
.career-path-grid { gap: 25px; }
.path-card { border: 0; padding: 30px; border-radius: var(--radius); }
.path-card:nth-child(2) { background: var(--blue); color: white; }
.path-card:nth-child(2) :is(h3, p, a) { color: white; }
.career-values { padding-block: clamp(75px, 8vw, 120px); }
.cert-page-hero h1 { max-width: 13ch; font-size: clamp(50px, 7vw, 94px); letter-spacing: -.04em; }
.cert-page-hero-grid { min-height: 540px; }
.cert-page-card, .cert-page-award { border-radius: var(--radius); }
.contact-hero h1 { letter-spacing: -.04em; }
.contact-choice { border: 0; min-height: 260px; border-radius: var(--radius); }
.contact-choice-kicker { display: none; }
.contact-choice h2 { margin-top: 15px; }
.contact-direct-grid { gap: clamp(25px, 4vw, 55px); }
.page-heading h1, .news-index-hero h1, .single-news-hero h1 { letter-spacing: -.04em; }
.page-end-cta-inner { padding-block: 70px; }
.page-end-cta h2 { letter-spacing: -.04em; font-size: clamp(34px, 4.5vw, 62px); }
.news-card { border: 0; box-shadow: none; background: var(--tint); border-radius: var(--radius); }
.modern-prose { overflow-wrap: anywhere; }
.modern-prose table { display: block; overflow-x: auto; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    [data-picture-depth] img { animation: isl-picture-depth linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .quality-scan { animation: isl-quality-scan linear both; animation-timeline: view(); animation-range: entry 15% exit 75%; }
    @keyframes isl-picture-depth { from { transform: scale(1.06); } to { transform: scale(1); } }
    @keyframes isl-quality-scan { to { transform: translateX(100%); } }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .chapter-media img { transition: transform 600ms var(--ease-out); }
  .chapter-media:hover img { transform: scale(1.035); }
}
@media (max-width: 1150px) {
  .process-story-stage { grid-template-columns: 1.3fr 1fr; gap: 5%; }
  .process-story-intro { gap: 5%; }
  .process-step h3 { font-size: 25px; }
  .process-step p { font-size: 14px; }
  .page-child-card:first-child, .page-child-card:nth-child(2) { grid-column: span 6; min-height: 400px; }
  .chapter-with-media { gap: 35px; }
}
@media (max-width: 700px) {
  .process-story { padding-top: 65px; }
  .process-story-intro, .process-story-stage { display: block; }
  .process-story-intro h2 { font-size: clamp(37px, 10vw, 53px); max-width: 13ch; margin-bottom: 22px; }
  .process-story-intro > p { font-size: 17px; }
  .process-story-stage { padding-block: 10px 65px; }
  .process-visual { aspect-ratio: 1.8; margin-bottom: 35px; }
  .process-story-copy { gap: 28px; }
  .process-step h3 { font-size: 28px; }
  .process-step p { font-size: 16px; max-width: none; }
  .process-story.is-spatial .process-story-track { min-height: 0; }
  .process-story.is-spatial .process-story-stage { position: static; min-height: 0; padding-block: 10px 65px; }
  .experience-heading { padding-block: 38px; }
  .experience-heading h1 { font-size: clamp(37px, 10vw, 57px); }
  .experience-lead { font-size: 20px; }
  .experience-cover { aspect-ratio: 1.6; border-radius: 18px; }
  .experience-editorial { padding-block: 5px 30px; }
  .experience-chapter { display: block; padding-block: 38px; }
  .chapter-media { position: static; margin: 0 0 35px; aspect-ratio: 1.5; }
  .chapter-copy p { font-size: 17px; }
  .chapter-copy h2 { font-size: 29px; }
  .page-child-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-child-card, .page-child-card:first-child, .page-child-card:nth-child(2), .page-child-card:last-child:nth-child(odd) { grid-column: auto; min-height: 370px; }
  .page-child-copy h3 { font-size: 34px; }
  .service-grid, .entity-list, .company-grid { grid-template-columns: minmax(0, 1fr); }
  .company-card:last-child:nth-child(odd) { grid-column: auto; }
  .service-card { min-height: 290px; }
  .location-entry { gap: 22px; padding-bottom: 10px; }
  .location-entry h3 { font-size: 30px; }
  .career-path-grid { grid-template-columns: minmax(0, 1fr); }
  .cert-page-hero h1 { font-size: clamp(43px, 12vw, 66px); }
  .contact-hero h1 { font-size: clamp(39px, 10.5vw, 57px); }
  .contact-choice { min-height: 240px; }
  .page-end-cta-inner { padding-block: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .process-story.is-spatial .process-story-track { min-height: 0; }
  .process-story.is-spatial .process-story-stage { position: static; min-height: 0; padding-block: 60px; }
  [data-picture-depth] img, .quality-scan { animation: none; transform: none; }
  .quality-scan { display: none; }
  .process-step h3 { transition: none; }
}

@media (max-width: 700px) {
  .process-story { padding-top: 0; }
  .process-story-stage { padding-top: 60px; }
  .process-canvas { inset: 0 0 auto; height: 350px; }
  .process-visual { min-height: 230px; }
}

@media (min-width: 701px) {
 .process-story-intro { gap: 12px; padding-bottom: 12px; }
 .process-story-intro h2 { max-width: none; font-size: clamp(30px, 2.7vw, 44px); }
 .process-story-intro > p { font-size: 16px; line-height: 1.5; }
 .process-story-copy { gap: 18px; }
 .process-step h3 { font-size: clamp(23px, 2vw, 29px); }
 .process-step p { font-size: 14px; line-height: 1.5; }
 .process-story-stage { grid-template-columns: 1.5fr 1fr; }
}

@media (max-width: 700px) { .process-visual { width: 100%; } }

/* Document-level WebGL surface: never clipped by a content section. */
.process-canvas.is-global { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; visibility: hidden; pointer-events: none; }
.process-canvas.is-global.is-onstage { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .process-canvas.is-global { display: none; } }

.process-story.is-spatial .process-story-copy { transition: opacity var(--duration-ui) var(--ease-out), transform var(--duration-ui) var(--ease-out); }
.process-story.is-spatial.is-arriving .process-story-copy { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .process-story .process-story-copy { opacity: 1; transform: none; transition: none; } }

/* Homepage scene keeps one foreground layer throughout the animation. */
section.hero { z-index: 45; }
.process-canvas.is-global { opacity: 0; transition: opacity 220ms var(--ease-out); }
.process-canvas.is-global.is-onstage { opacity: 1; }

/* Native document scrolling on phones avoids fixed-canvas position chasing. */
.process-canvas.is-global.is-document { position: absolute; inset: auto 0 auto; top: var(--process-top, 0px); height: 100vh; height: 100svh; }

/* One logo hands off between its reserved navbar slot and the scene. */
.site-header .brand { --logo-source-scale: 1.32; --logo-source-offset: 3; }
.site-header.is-logo-away .brand img { opacity: 0; }
.home .site-header.is-logo-waiting::before { opacity: 0; }
.home .site-header.is-logo-waiting .brand img { filter: brightness(0) invert(1); transform: translateY(calc(var(--logo-source-offset) * 1px)) scale(var(--logo-source-scale)); }
.home .site-header.is-logo-waiting nav, .home .site-header.is-logo-waiting .submenu-toggle, .home .site-header.is-logo-waiting .menu-toggle { color: white; }
.home .site-header.is-logo-waiting .header-contact { background: white; color: var(--blue); }
.home .site-header.is-logo-waiting .sub-menu, .home .site-header.is-logo-waiting .children { color: var(--blue); }
.process-canvas.is-nav-story { transition: none; }
.process-canvas.is-global.is-nav-story { z-index: 55; }
.process-canvas.is-global.is-document.is-nav-story { height: calc(100vh + var(--process-flight-space, 240px)); height: calc(100svh + var(--process-flight-space, 240px)); }
.process-story.has-nav-story.is-spatial .process-story-track { min-height: calc(100vh + 80px); min-height: calc(100svh + 80px); }
.process-story.has-nav-story.is-mobile-story .process-story-stage { padding-block: 24px 40px; }
.process-story.has-nav-story.is-mobile-story .process-visual { height: clamp(180px, 55vw, 240px); min-height: 0; margin-bottom: 16px; aspect-ratio: auto; }
@media (max-width: 1150px) { .home .site-header.is-logo-waiting #navigation { color: var(--blue); } }
@media (max-width: 700px) { .site-header .brand { --logo-source-scale: 1.12; --logo-source-offset: 2; } }
