@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/assets/barlow-condensed.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  font-family: Manrope, Arial, sans-serif;
  font-synthesis: none;
  color: #182e3d;
  background: #f4f7fa;
  --gutter: clamp(24px, 5vw, 96px);
  --content-width: 1560px;
  --blue: #184a70;
  --ink: #182e3d;
  --snow: #f4f7fa;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  /* Suppress vertical rubber-banding and the browser's pull-to-refresh gesture. */
  overscroll-behavior-y: none;
}
body,
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  display: block;
  flex-shrink: 0;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
p {
  line-height: 1.75;
  max-width: 58ch;
}
h1,
h2,
h3 {
  font-family: Barlow, "Arial Narrow", sans-serif;
  font-weight: 700;
}
h1,
h2 {
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.94;
}
h2 {
  font-size: clamp(64px, 7.5vw, 112px);
}
/* Backgrounds span the viewport. Every content row shares one container. */
.container {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--content-width);
  margin-inline: auto;
}
.section {
  padding-block: clamp(72px, 8vw, 128px);
}
section[id] {
  scroll-margin-top: 24px;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: white;
  color: var(--ink);
  padding: 14px 20px;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  color: white;
}
.header-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 72px;
  height: 64px;
  object-fit: contain;
  flex: none;
}
.brand > span {
  font-family: Barlow, "Arial Narrow", sans-serif;
  font-size: 1.75rem;
  line-height: 1;
}
.brand small {
  display: block;
  font-family: Manrope, Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 8px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
  font-size: 1rem;
}
.desktop-nav > a {
  padding-block: 15px;
}
.desktop-nav > a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.nav-contact {
  border: 1px solid #d8e6f09c;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 1rem;
  min-height: 48px;
  transition: background 0.2s;
}
.nav-contact:hover {
  background: #ffffff18;
}
.nav-contact svg,
.terrain-link svg,
.button svg,
.text-link svg {
  width: 22px;
  height: 22px;
}
.mobile-menu {
  display: none;
}
.hero {
  overflow: hidden;
  position: relative;
  background: #184a70;
  color: white;
  isolation: isolate;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 58%;
  z-index: -2;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, #143c673f, transparent 75%),
    linear-gradient(180deg, #173e6252, #184a701a 47%, #102b46ed);
}
.hero-inner {
  min-height: 740px;
  height: min(100svh, 1120px);
  padding-block: clamp(156px, 18vh, 200px) 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 70px;
}
.hero-title > p {
  font-size: 1rem;
  margin-bottom: 27px;
}
.hero h1 {
  font-size: min(clamp(98px, 12vw, 190px), max(44px, calc(28vh - 78px)));
  line-height: 0.89;
  max-width: 1200px;
}
.hero h1 > span {
  display: block;
}
.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}
.hero-bottom > p {
  font-size: 1.125rem;
  line-height: 1.55;
}
.terrain-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
  min-height: 50px;
  padding-block: 12px;
  border-bottom: 1px solid #d6e1ee80;
  font-size: 1rem;
}
.terrain-link:hover {
  border-color: white;
}
.opening-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 10vw, 160px);
  align-items: center;
}
.opening-copy {
  max-width: 560px;
}
.opening-copy .lead {
  font-size: clamp(23px, 2.25vw, 32px);
  line-height: 1.45;
  margin-bottom: 28px;
  letter-spacing: -0.025em;
}
.opening-copy p + p {
  margin-top: 20px;
}
.opening-copy p:not(.lead) {
  font-size: 1rem;
}
/* Supporting copy uses the existing content width and section rhythm. */
.copy-process {
  margin-top: 64px;
}
.copy-process > h3 {
  font-size: clamp(30px, 3vw, 44px);
  margin-bottom: 28px;
}
.copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.copy-grid > li,
.copy-grid > div {
  border-top: 1px solid #647e9166;
  padding-top: 24px;
}
.copy-grid h4,
.copy-grid dt {
  font: 700 20px/1.4 Manrope, sans-serif;
  margin: 0 0 16px;
}
.copy-grid p,
.copy-grid dd {
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
}
.copy-principle {
  margin-top: 40px;
  font-size: 1.125rem;
}
.copy-situations {
  background: #edf1f4;
}
.copy-situation-list {
  padding-left: 20px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}
.copy-situation-list li + li {
  margin-top: 16px;
}
.copy-inline-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.copy-career {
  margin: 30px 0;
}
.copy-career > div {
  border-top: 1px solid #647e9166;
  padding-block: 16px;
}
.copy-career dt {
  font-weight: 700;
  margin-bottom: 6px;
}
.copy-career dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}
.copy-faq .opening-grid {
  align-items: start;
}
.copy-questions {
  min-width: 0;
}
.copy-questions details {
  border-top: 1px solid #647e9166;
}
.copy-questions details:last-child {
  border-bottom: 1px solid #647e9166;
}
.copy-questions summary {
  padding: 24px 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}
.copy-questions details > p {
  padding: 0 4px 24px;
  font-size: 1rem;
}
@media (max-width: 850px) {
  .copy-grid {
    grid-template-columns: 1fr;
  }
}
.engagements {
  background: #e4ebf0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 64px;
}
.section-heading > p {
  font-size: 1rem;
  padding-bottom: 5px;
}
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
}
.engagement {
  border-top: 1px solid #647e91;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.engagement-symbol {
  width: 45px;
  height: 45px;
  fill: none;
  stroke: #41667f;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 27px;
}
.engagement h3 {
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.engagement p {
  font-size: 1rem;
  margin-bottom: 35px;
}
.text-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding: 12px 0;
  border-bottom: 1px solid #647e91;
  text-align: left;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 48px;
}
.text-link:hover {
  color: #1b5d8b;
  border-color: #1b5d8b;
}
.about {
  background: #d1dce6;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(64px, 8vw, 128px);
  align-items: center;
}
.portrait-frame {
  max-width: 620px;
}
.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 600/608;
  object-fit: cover;
}
.portrait-frame figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 17px;
}
.portrait-frame figcaption > span {
  color: #476072;
}
.about-copy h2 {
  font-size: clamp(58px, 6vw, 88px);
  margin: 25px 0 35px;
}
.about-copy > p {
  font-size: 1rem;
  max-width: 500px;
}
.about-copy > p + p {
  margin-top: 22px;
}
.about-copy .section-intro {
  font-size: 1rem;
}
.contact {
  background: var(--blue);
  color: var(--snow);
}
.contact-intro {
  font-size: 1rem;
  margin-bottom: 40px;
}
.contact-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}
.contact h2 {
  font-size: clamp(120px, 16vw, 240px);
  line-height: 0.86;
}
.contact-action {
  margin-bottom: 5px;
}
.contact-action > p {
  font-size: 1rem;
  margin-bottom: 27px;
  color: #d7e4ef;
}
.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 17px 25px;
  background: var(--snow);
  color: var(--blue);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s;
}
.button:hover {
  background: #dbe9f4;
}
.site-footer {
  background: #123a58;
  color: #d8e6f0;
  padding-block: 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}
.footer-brand img {
  width: 176px;
  height: auto;
}
.footer-inner > a:last-child {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 44px;
}
.footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.contact-dialog {
  position: fixed;
  inset: 0;
  width: min(530px, calc(100% - 40px));
  max-height: calc(100svh - 40px);
  overflow: auto;
  padding: 46px;
  border: 0;
  color: var(--ink);
  background: var(--snow);
  box-shadow: 0 20px 90px #0004;
}
.contact-dialog::backdrop {
  background: #102d47bb;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 44px;
  height: 44px;
  font-size: 44px;
  line-height: 1;
}
.contact-dialog h2 {
  font-size: 64px;
  margin-bottom: 28px;
}
.contact-dialog > p {
  font-size: 1rem;
}
.credits-list { display: grid; gap: 24px; }
.credits-list h3 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 8px; }
.credits-list p { font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.credits-list p + p { margin-top: 8px; }
.credits-list a { text-decoration: underline; text-underline-offset: 3px; }
.credits-list a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.contact-dialog.music-dialog { width: min(960px, calc(100% - 32px)); padding: 40px 32px 32px; }
.contact-dialog.music-dialog h2 { font-size: clamp(36px, 5vw, 52px); margin: 0 28px 28px 0; }
.music-tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.music-track { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #102d47; box-shadow: 0 2px 8px #102d4714; }
.music-track img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.music-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff80; border-radius: 50%; background: #102d47cc; color: #fff; box-shadow: 0 2px 12px #0003; transition: transform 220ms ease, background 220ms ease; }
.music-play svg { width: 18px; height: 18px; margin-left: 2px; }
.music-track:hover img { transform: scale(1.035); }
.music-track:hover .music-play, .music-track:focus-visible .music-play { transform: scale(1.08); background: #102d47; }
.music-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (max-width: 600px) {
  .contact-dialog.music-dialog { padding: 44px 16px 20px; }
  .contact-dialog.music-dialog h2 { margin: 0 0 24px; }
  .music-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .music-play { width: 36px; height: 36px; }
  .music-play svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .music-track img, .music-play { transition: none; }
  .music-track:hover img, .music-track:hover .music-play, .music-track:focus-visible .music-play { transform: none; }
}
html:has(.contact-dialog[open]) {
  overflow: hidden;
}
.contact-links {
  display: grid;
}
.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.contact-links strong {
  display: block;
  font-family: Barlow, sans-serif;
  font-size: 1.75rem;
  line-height: 1.2;
}
.contact-links small {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.contact-links a:hover {
  color: var(--blue);
}
.contact-links a:focus-visible,
.dialog-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.contact-dialog .dialog-note {
  font-size: 1rem;
  color: #506578;
  margin: 22px 0;
}
.contact-dialog .button {
  background: var(--blue);
  color: white;
}
@media (min-width: 1800px) {
  .hero-image {
    object-position: center 55%;
  }
}
@media (max-width: 1100px) {
  .brand-mark {
    width: 64px;
    height: 57px;
  }
  .desktop-nav {
    gap: 20px;
    font-size: 1rem;
  }
  .nav-contact {
    gap: 16px;
    padding-inline: 16px;
  }
  .brand > span {
    font-size: 1.5625rem;
  }
  .opening-grid {
    gap: 65px;
  }
  .about-grid {
    gap: 60px;
  }
  .about-copy h2 {
    font-size: 65px;
  }
  .engagement-grid {
    gap: 32px;
  }
}
@media (max-width: 850px) {
  .header-inner {
    min-height: 100px;
  }
  .desktop-nav {
    gap: 24px;
  }
  .desktop-nav > a:nth-child(2) {
    display: none;
  }
  .brand {
    gap: 10px;
  }
  .brand-mark {
    width: 56px;
    height: 50px;
  }
  .brand > span {
    font-size: 1.4375rem;
  }
  .nav-contact {
    gap: 12px;
    font-size: 1rem;
    padding-inline: 12px;
  }
  .hero h1 {
    font-size: min(12.2vw, max(44px, calc(28vh - 78px)));
  }
  .opening-grid {
    gap: 45px;
  }
  h2 {
    font-size: 65px;
  }
  .opening-copy .lead {
    font-size: 1.4375rem;
  }
  .opening-copy p:not(.lead) {
    font-size: 1rem;
  }
  .engagement-grid {
    gap: 25px;
  }
  .engagement h3 {
    font-size: 34px;
  }
  .engagement p {
    font-size: 1rem;
  }
  .text-link {
    font-size: 1rem;
    gap: 10px;
  }
  .about-grid {
    gap: 40px;
  }
  .about-copy h2 {
    font-size: 57px;
  }
  .about-copy > p {
    font-size: 1rem;
  }
  .contact-action > p {
    font-size: 1rem;
  }
  .contact h2 {
    font-size: 130px;
  }
  .contact-row {
    gap: 40px;
  }
  .button {
    gap: 25px;
    padding-inline: 20px;
    font-size: 1rem;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 24px;
  }
  .section {
    padding-block: 72px;
  }
  .header-inner {
    min-height: 96px;
    position: relative;
    gap: 20px;
  }
  .brand > span {
    font-size: 1.5rem;
  }
  .brand small {
    font-size: 1rem;
    margin-top: 6px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    list-style: none;
    cursor: pointer;
    font-size: 1rem;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu summary > span {
    font-size: 1.4375rem;
    transition: transform 0.2s;
  }
  .mobile-menu[open] summary > span {
    transform: rotate(45deg);
  }
  .mobile-menu nav {
    position: absolute;
    top: 83px;
    right: 0;
    width: min(310px, 100%);
    padding: 13px 22px;
    background: #123a58;
    box-shadow: 0 15px 30px #0a223f40;
  }
  .mobile-menu nav > a,
  .mobile-menu nav > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    text-align: left;
    padding: 15px 0;
    min-height: 48px;
    border-bottom: 1px solid #d6e4f02b;
    font-size: 1rem;
  }
  .mobile-menu nav > button {
    border: 0;
  }
  .mobile-menu nav svg {
    width: 20px;
    height: 20px;
  }
  .hero-inner {
    height: min(94svh, 930px);
    min-height: 720px;
    padding-top: 149px;
    padding-bottom: 34px;
    gap: 75px;
  }
  .hero-image {
    object-position: 59% center;
  }
  .hero-title > p {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .hero h1 {
    font-size: min(clamp(76px, 20.5vw, 120px), max(42px, calc(22vh - 56px)));
    max-width: 490px;
    line-height: 0.91;
  }
  .hero-bottom {
    gap: 24px;
    align-items: end;
  }
  .hero-bottom > p {
    font-size: 1rem;
    line-height: 1.6;
  }
  .terrain-link {
    font-size: 1rem;
    gap: 18px;
    min-width: 127px;
    padding-block: 12px;
  }
  .terrain-link svg {
    width: 20px;
    height: 20px;
  }
  h2 {
    font-size: clamp(62px, 14vw, 80px);
  }
  .opening-grid {
    display: block;
  }
  .opening-copy {
    margin-top: 35px;
  }
  .copy-questions {
    margin-top: 35px;
  }
  .opening-copy .lead {
    font-size: 1.5rem;
    max-width: 29ch;
  }
  .opening-copy p:not(.lead) {
    font-size: 1rem;
  }
  .section-heading {
    display: block;
    margin-bottom: 40px;
  }
  .section-heading > p {
    font-size: 1rem;
    margin-top: 27px;
  }
  .engagement-grid {
    display: block;
  }
  .engagement {
    padding: 28px 0 35px;
    display: grid;
    grid-template-columns: 1fr 50px;
    gap: 0 20px;
  }
  .engagement:last-child {
    padding-bottom: 0;
  }
  .engagement-symbol {
    grid-column: 2;
    grid-row: 1;
    width: 40px;
    height: 40px;
    margin-top: 5px;
    margin-bottom: 0;
  }
  .engagement h3 {
    grid-column: 1;
    grid-row: 1;
    font-size: 39px;
    margin-bottom: 21px;
  }
  .engagement p {
    grid-column: 1/-1;
    margin-bottom: 18px;
    font-size: 1rem;
    max-width: 48ch;
  }
  .text-link {
    grid-column: 1/-1;
    font-size: 1rem;
    margin-top: 0;
  }
  .about-grid {
    display: block;
  }
  .portrait-frame {
    max-width: 490px;
  }
  .portrait-frame figcaption {
    font-size: 1rem;
    gap: 5px 12px;
  }
  .about-copy {
    margin-top: 47px;
  }
  .about-copy h2 {
    font-size: clamp(58px, 13vw, 76px);
    margin-top: 22px;
    margin-bottom: 28px;
  }
  .about-copy > p {
    font-size: 1rem;
  }
  .contact-intro {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  .contact-row {
    display: block;
  }
  .contact h2 {
    font-size: clamp(110px, 27vw, 168px);
  }
  .contact-action {
    margin-top: 38px;
    margin-bottom: 0;
  }
  .contact-action > p {
    font-size: 1rem;
    margin-bottom: 23px;
  }
  .contact-action > p br {
    display: none;
  }
  .button {
    min-height: 56px;
    font-size: 1rem;
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    font-size: 1rem;
  }
  .footer-inner > span {
    grid-column: 1;
    grid-row: 2;
    font-size: 1rem;
  }
  .footer-brand img {
    width: 136px;
  }
  .footer-inner > a:last-child {
    grid-column: 2;
    grid-row: 1/3;
    font-size: 1rem;
    gap: 9px;
  }
  .contact-dialog {
    padding: 44px 28px 30px;
  }
  .contact-dialog h2 {
    font-size: 58px;
  }
}
@media (max-width: 370px) {
  .brand > span {
    font-size: 1.375rem;
  }
  .brand-mark {
    width: 48px;
    height: 43px;
  }
  .brand {
    gap: 8px;
  }
  .mobile-menu summary {
    gap: 9px;
  }
  .hero-title > p {
    font-size: 1rem;
  }
  .hero h1 {
    font-size: min(74px, max(42px, calc(22vh - 56px)));
  }
  .hero-bottom {
    display: block;
  }
  .hero-bottom > p {
    font-size: 1rem;
  }
  .terrain-link {
    margin-top: 21px;
    max-width: 170px;
  }
  .hero-inner {
    min-height: 770px;
  }
  .about-copy h2 {
    font-size: 54px;
  }
  .contact h2 {
    font-size: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

/* The approved frame has two hard ceilings. Crop foreground within it. */
.hero-inner {
  min-height: 0;
  height: min(1000px, 100vh);
  max-height: min(1000px, 100vh);
  padding-top: max(calc(var(--site-header-height, 132px) + 16px), min(18vh, 200px));
  padding-bottom: clamp(16px, 4.4vh, 44px);
  gap: clamp(16px, 7vh, 70px);
}
.hero-title,
.hero-bottom {
  flex-shrink: 0;
}
@media (max-height: 600px) {
  .hero-inner {
    gap: 16px;
    padding-bottom: 16px;
  }
  .hero-title > p {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  .hero-bottom {
    display: flex;
    gap: 20px;
  }
  .hero-bottom > p {
    font-size: 1rem;
    line-height: 1.5;
  }
  .terrain-link {
    margin-top: 0;
    min-width: 0;
    min-height: 44px;
    font-size: 1rem;
    gap: 16px;
  }
}
@media (min-width: 641px) and (max-height: 500px) {
  .hero h1 > span {
    display: inline;
  }
  .hero h1 > span + span::before {
    content: " ";
  }
}
.hero-person { display: flex; justify-content: flex-end; }
/* A restrained halo separates the portrait without washing out the landscape. */
.hero:has(.hero-portrait)::before {
  content: "";
  position: absolute;
  left: var(--portrait-x, 78%);
  top: var(--portrait-y, 42%);
  width: calc(var(--portrait-size, 200px) * 1.96);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle closest-side,
    rgb(255 255 255 / 15%) 51.02%,
    rgb(255 255 255 / 6%) 70.61%,
    rgb(255 255 255 / 1.5%) 87.76%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.hero:has(.hero-portrait) .hero-title,
.hero:has(.hero-portrait) .hero-bottom {
  position: relative;
  z-index: 2;
}
.hero-portrait {
  position: absolute;
  left: var(--portrait-x, 78%);
  top: var(--portrait-y, 42%);
  transform: translate(-50%, -50%);
  display: block;
  width: var(--portrait-size, 200px);
  aspect-ratio: 1;
  border: 8px solid white;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 32px #10283f30;
  z-index: 3;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Match the approved LinkedIn head-and-shoulders crop. */
  object-position: center top;
  transform: translateX(2%) scale(1.2);
  transform-origin: 50% 22%;
}
.hero-portrait:focus-visible {
  outline: 3px solid white;
  outline-offset: 6px;
}
@media (max-width: 1099px) {
  .hero-portrait { border-width: 6px; }
  .hero:has(.hero-portrait)::before {
    background: radial-gradient(circle closest-side,
      rgb(255 255 255 / 50%) 51.02%,
      rgb(255 255 255 / 20%) 70.61%,
      rgb(255 255 255 / 5%) 87.76%,
      transparent 100%);
  }
}
.hero-image {
  inset: auto;
  left: var(--image-left, 0px);
  top: var(--image-top, 520px);
  width: var(--image-width, 100%);
  height: var(--image-height, auto);
  max-width: none;
  transform: none;
  object-position: center top;
}
.hero-sky {
  position: absolute;
  inset: 0 0 auto;
  height: max(0px, calc(var(--image-top, 520px) + 2px));
  background: #2186c5 var(--sky-colors, none) var(--image-left, 0px) top /
    var(--image-width, 100%) 100% no-repeat;
}
@media (max-width: 640px) {
  .mobile-menu summary {
    width: 44px;
    height: 44px;
    justify-content: center;
    gap: 0;
  }
  .hamburger {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }
  .hamburger path {
    transform-origin: center;
    transition:
      transform 0.2s,
      opacity 0.2s;
  }
  .mobile-menu[open] .hamburger-top {
    transform: rotate(45deg) translateY(6px);
  }
  .mobile-menu[open] .hamburger-middle {
    opacity: 0;
  }
  .mobile-menu[open] .hamburger-bottom {
    transform: rotate(-45deg) translateY(-6px);
  }
}

/* A bounded landscape joins color-matched atmosphere on ultrawide screens. */
.hero-scene {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--scene-left, max(0px, calc(50% - 960px)));
  width: var(--scene-width, min(100%, 1920px));
  overflow: hidden;
  z-index: -2;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 var(--left-scene-fade, 0px),
    #000 calc(100% - var(--right-scene-fade, 0px)),
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 var(--left-scene-fade, 0px),
    #000 calc(100% - var(--right-scene-fade, 0px)),
    transparent
  );
}
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  background: #2186c5;
}
.hero-ambient:before,
.hero-ambient:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-position: left var(--image-top, 520px);
  background-size: 256px var(--image-height, 100%);
  background-repeat: repeat-x;
}
.hero-ambient:before {
  left: 0;
  background-color: var(--left-sky, #5ca7d5);
  background-image: var(--left-atmosphere, none);
}
.hero-ambient:after {
  right: 0;
  background-color: var(--right-sky, #1683c8);
  background-image: var(--right-atmosphere, none);
}

/* The homepage biography now pairs its heading with text, without a second portrait. */
.about-text-only { align-items: start; }
.about-text-only .about-copy { margin-top: 0; }
.about-text-only .about-copy > p { max-width: 60ch; }

@media (max-width: 1099px) {
  .hero:has(.hero-portrait) .hero-inner {
    padding-top: var(--mobile-hero-title-top, calc(var(--site-header-height) + 16px));
    gap: 0;
  }
}

/* Mobile home fills the visible browser window; its only content is title and portrait. */
@media (max-width: 1099px) {
  .hero-home, .hero-home .hero-inner {
    height: var(--accessible-hero-height, var(--mobile-viewport-height, 100vh));
    max-height: none;
  }
  .hero-home .hero-inner { padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
  .hero-home .hero-bottom { display: none; }
  .hero-home .hero-title > p { font-size: 1rem; line-height: 1.5; }
}
/* Keep keyboard focus visible even in browsers without :focus-visible. */
@supports not selector(:focus-visible) {
  a:focus, button:focus, summary:focus { outline: 3px solid currentColor; outline-offset: 3px; }
}
@media (max-width: 359px) {
  .hero h1 { font-size: min(22vw, max(42px, calc(22vh - 56px))); }
  .contact h2 { font-size: min(100px, 30vw); }
}

/* Reflow long words when readers enlarge text or increase letter spacing. */
main :where(h1, h2, h3, p, dd, dt, a), .site-footer :where(p, a) { overflow-wrap: anywhere; }

/* Shared modal motion keeps both the sheet and backdrop in step. */
dialog[open] { animation: modal-enter 260ms cubic-bezier(.22,1,.36,1) both; }
dialog[open]::backdrop { animation: backdrop-enter 260ms ease both; }
dialog[open].is-closing { animation: modal-exit 180ms ease both; pointer-events: none; }
dialog[open].is-closing::backdrop { animation: backdrop-exit 180ms ease both; }
@keyframes modal-enter { from { opacity: 0; transform: translateY(16px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes modal-exit { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-exit { to { opacity: 0; } }
#engagements .engagement { border-top: 0; }
@media (max-width: 1099px) {
  .hero .hero-title { text-align: center; width: 100%; }
  .hero h1 { font-size: min(15vw, max(36px, calc(22vh - 56px))); max-width: none; margin-inline: auto; }
  .hero h1 > span { display: block; white-space: nowrap; }
  .hero h1 > span + span::before { content: none; }
  .hero .hero-title > p { margin-inline: auto; }
  .hero .hero-bottom { justify-content: center; text-align: center; }
}
