.interior-header {
  isolation: isolate;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.interior-header .interior-layout {
  display: grid;
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  padding-block: clamp(54px, 7vw, 104px);
}

.interior-layout:has(.interior-steps),
.interior-header-screen .interior-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.interior-copy {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.interior-copy h1 {
  margin: 12px 0 20px;
  font-size: clamp(2.4rem, 5.5vw, 5.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
}

.interior-kicker {
  margin: 0;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.interior-lede {
  max-width: 54ch;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
}

.interior-meta {
  margin: 14px 0 0;
  font-size: .875rem;
}

.interior-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 25px;
}

.interior-actions .button {
  transition: none;
}

.interior-actions .button:hover {
  transform: none;
}

.interior-actions .text-link {
  min-height: 44px;
}

.interior-header-cinematic {
  overflow: hidden;
  --accent: #b6d5ff;
  --muted: #e1ebfa;
  --line: #4f6889;
  color: var(--soft-white);
  --interior-art-scrim: linear-gradient(90deg, #0b1526 0%, #0b1526ee 25%, #0b15267a 63%, #0b152612 100%);
  --interior-caption-bg: #0b1526ee;
  background: var(--midnight-navy);
}

html[data-theme="light"] .interior-header-cinematic {
  --accent: var(--agency-blue);
  --muted: #41546c;
  --line: #a9bcd3;
  --interior-art-scrim: linear-gradient(90deg, #f3f6fb 0%, #f3f6fb 24%, #f3f6fbe8 40%, #f3f6fb40 68%, #f3f6fb00 100%);
  --interior-caption-bg: #f3f6fb;
  color: var(--midnight-navy);
  background: var(--soft-white);
}

.interior-header-cinematic:not(.interior-header-screen) .interior-layout {
  min-height: 465px;
}

.interior-header-cinematic:not(.interior-header-screen) .interior-copy {
  max-width: min(65%, 700px);
}

.interior-header-cinematic .button.primary {
  border-color: #7196cf;
}

.interior-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 77%;
  margin: 0;
}

.interior-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.interior-art::after {
  position: absolute;
  inset: 0;
  content: '';
  background: var(--interior-art-scrim);
}

.interior-art figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(14px, 3vw, 44px);
  bottom: 13px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--interior-caption-bg);
  color: inherit;
  font-size: .8125rem;
}

.interior-header-screen {
  background: radial-gradient(ellipse at 83% 38%, #19365b, var(--midnight-navy) 72%);
}

html[data-theme="light"] .interior-header-screen {
  background: radial-gradient(ellipse at 83% 38%, #dbe7f6, var(--soft-white) 76%);
}

.interior-screen {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--midnight-navy);
  box-shadow: 0 16px 42px #050a145c;
}

html[data-theme="light"] .interior-screen {
  background: var(--surface);
  box-shadow: 0 16px 42px #0a3d9121;
}

.interior-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.interior-screen figcaption {
  padding: 8px 14px;
  color: var(--muted);
  font-size: .875rem;
}

.interior-header-blueprint {
  background-color: var(--surface2);
  background-image: linear-gradient(to right, color-mix(in srgb, var(--line) 52%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 52%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
}

.interior-header-blueprint .interior-lede {
  color: var(--text);
}

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

.interior-header-blueprint .interior-steps {
  padding: 6px clamp(16px, 3vw, 30px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--impact-orange);
  border-radius: 9px;
  background: var(--surface);
}

.interior-steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.interior-header-blueprint .interior-steps li:last-child {
  border-bottom: 0;
}

.interior-steps li > span {
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.interior-steps small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .9375rem;
}

.interior-header-structure {
  background: linear-gradient(120deg, var(--surface) 46%, var(--surface2));
}

.interior-header-structure .interior-copy {
  border-left: 3px solid var(--impact-orange);
  padding-left: clamp(15px, 2vw, 28px);
}

.interior-header-structure .interior-steps {
  border-top: 3px solid var(--accent);
}

.interior-gallery-controls {
  padding-block: 24px 0;
}

@media (max-width: 760px) {
  .interior-header .interior-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .interior-header-cinematic:not(.interior-header-screen) .interior-layout {
    min-height: 0;
    padding-bottom: 0;
  }

  .interior-header-cinematic:not(.interior-header-screen) .interior-copy {
    max-width: 100%;
  }

  .interior-art {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
  }

  .interior-art::after {
    content: none;
  }

  .interior-screen,
  .interior-steps {
    width: 100%;
    max-width: 540px;
  }
}
