@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand-blue: #054379;
  --brand-light: #a6cddb;
  --navy: #062b50;
  --ink: #17344a;
  --cream: #f8f5ec;
  --sand: #eeeadf;
  --muted-ink: #445967;
  --muted-cream: #e1e8eb;
  --paper-rule: #d3d0c3;
  --dark-rule: #477499;
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(24px, 5.55vw, 104px);
  --ease-out: cubic-bezier(.2, .75, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 400 16px/1.6 var(--sans);
}
figure, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.wrap {
  width: min(calc(100% - 2 * var(--gutter)), 1376px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 12px auto auto 12px;
  transform: translateY(-160%);
  background: var(--cream);
  color: var(--ink);
  padding: 10px 16px;
}
.skip-link:focus { transform: translateY(0); }

.site-header, .hero, .contact, .site-footer {
  background: var(--brand-blue);
  color: var(--cream);
}

.site-header { border-bottom: 1px solid var(--dark-rule); }
.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-inner { min-height: 84px; gap: 20px; }
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  display: block;
  width: clamp(165px, 18vw, 222px);
  height: auto;
}

nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); }
nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted-cream);
  white-space: nowrap;
  transition: color 180ms ease;
}
nav a:hover, .footer-inner a:hover { color: var(--brand-light); }
nav .nav-contact {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding-inline: 15px;
  border: 1px solid #7eabc6;
  color: var(--cream);
  transition: background-color 180ms ease, border-color 180ms ease;
}
.nav-contact span, .link-icon { color: var(--brand-light); }
.nav-contact:hover, .nav-contact:focus-visible {
  background-color: rgb(166 205 219 / .12);
  border-color: var(--brand-light);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 40% 115%, #12558a 0%, transparent 63%),
    linear-gradient(125deg, var(--navy), var(--brand-blue));
}
.hero-inner {
  display: grid;
  align-items: center;
  min-height: clamp(550px, 46vw, 740px);
  padding-block: 64px 76px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 57%;
}
.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.45;
  text-transform: uppercase;
}
.hero-label { color: var(--brand-light); margin-bottom: 24px; }
.hero-label span { margin: 0 7px; }
h1, h2, .year { font-family: var(--serif); font-weight: 400; }
h1 {
  font-size: clamp(67px, 7.15vw, 120px);
  line-height: .93;
  letter-spacing: -.027em;
}
h1 span, h1 em { display: block; }
h1 em { color: var(--brand-light); }
.hero-intro {
  margin-top: 28px;
  max-width: 37ch;
  color: var(--muted-cream);
  font-size: clamp(16px, 1.27vw, 19px);
  line-height: 1.65;
}
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.link-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border: 1px solid rgb(166 205 219 / .6);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}
.story-link:hover .link-icon, .story-link:focus-visible .link-icon,
.email-link:hover .link-icon, .email-link:focus-visible .link-icon {
  color: var(--navy);
  background: var(--brand-light);
  border-color: var(--brand-light);
}
.hero-image {
  position: absolute;
  inset: 0 0 0 39%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(4 27 52 / .82), transparent 32%);
  pointer-events: none;
}
.hero-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: 59% center;
}

.section { padding-block: clamp(66px, 7.15vw, 111px); }
.section-intro { display: grid; grid-template-columns: 26% minmax(0, 1fr); }
.section-label {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 11px;
  padding-top: 12px;
  color: var(--muted-ink);
}
.section-label::before {
  content: "";
  width: 16px;
  height: 1px;
  background: #7eabc6;
}
h2 {
  font-size: clamp(49px, 5.15vw, 82px);
  letter-spacing: -.025em;
  line-height: 1;
}
.section-intro h2 + p {
  margin-top: 22px;
  color: var(--muted-ink);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
  max-width: 57ch;
}
.milestones {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: clamp(45px, 5vw, 72px) 0 0;
  --line-start: left center;
  --line-from: scaleX(0);
}
.milestones::before {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  height: 1px;
  background: linear-gradient(to right, #527e9d, #a6cddb);
  transform-origin: var(--line-start);
}
.milestones li {
  position: relative;
  padding: 34px clamp(14px, 3vw, 44px) 0 0;
}
.milestones li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--brand-blue);
  border-radius: 50%;
  background: var(--cream);
}
.year { font-size: clamp(53px, 5.4vw, 76px); line-height: .93; color: var(--brand-blue); margin-bottom: 15px; }
.milestones h3 { font-size: 16px; line-height: 1.4; font-weight: 700; margin-bottom: 7px; }
.milestones h3 + p { color: var(--muted-ink); font-size: 15px; max-width: 34ch; }

.companies { background: var(--sand); }
.company-list { margin-top: 30px; }
.company-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 17px;
  padding-block: 20px;
  border-top: 1px solid var(--paper-rule);
}
.company-list div:last-child { border-bottom: 1px solid var(--paper-rule); }
.company-list dt { font-size: clamp(17px, 1.6vw, 23px); line-height: 1.3; font-weight: 600; }
.company-list dt span { font-weight: 400; }
.company-list dd { color: var(--muted-ink); white-space: nowrap; font-size: 14px; }
.company-list dd span { margin-inline: 3px; }

.contact {
  padding-block: clamp(62px, 7vw, 105px);
  background: linear-gradient(122deg, var(--navy), var(--brand-blue) 72%, #12558a);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: end;
}
.contact .label { color: var(--brand-light); margin-bottom: 12px; }
.contact-details { padding-bottom: 3px; }
.contact-details p { color: var(--muted-cream); margin-bottom: 9px; }
.email-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 21px);
  font-size: clamp(21px, 2.35vw, 34px);
  line-height: 1.25;
  text-underline-offset: 6px;
  text-decoration-color: #7eabc6;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.email-link:hover { color: var(--brand-light); text-decoration-color: var(--brand-light); }
.site-footer { border-top: 1px solid var(--dark-rule); color: var(--muted-cream); font-size: 13px; }
.footer-inner { min-height: 68px; gap: 14px; }
.footer-inner a { text-decoration: none; }
.footer-inner a span { color: var(--brand-light); margin-left: 8px; }

@media (max-width: 1050px) {
  h1 { font-size: clamp(53px, 7.9vw, 82px); }
}
@media (max-width: 740px) {
  .header-inner { min-height: 76px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 53px 0; gap: 15px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(50px, 11vw, 78px); }
  .hero-image {
    position: relative;
    inset: auto;
    margin-inline: calc(-1 * var(--gutter));
    aspect-ratio: 1.48;
    mask-image: linear-gradient(180deg, transparent, #000 18%);
  }
  .hero-intro { margin-top: 20px; }
  .hero-label { margin-bottom: 17px; }
  .story-link { margin-top: 22px; }
  .section-intro { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .section-label { padding: 0; }
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .header-inner { flex-wrap: wrap; gap: 11px; padding-block: 17px 12px; }
  .brand { margin-right: auto; }
  nav { gap: clamp(8px, 2.5vw, 16px); justify-content: space-between; width: 100%; }
  nav a { display: inline-flex; align-items: center; min-height: 42px; }
  nav .nav-contact { padding-inline: 10px; gap: 7px; }
  .hero-inner { padding-top: 38px; }
  h1 { font-size: clamp(36px, 12.2vw, 60px); }
  .milestones {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    --line-start: center top;
    --line-from: scaleY(0);
  }
  .milestones::before {
    inset: 8px auto 0 5px;
    width: 1px;
    height: auto;
    background: linear-gradient(#527e9d, #a6cddb);
  }
  .milestones li { padding: 0 0 0 27px; }
  .milestones li::before { top: 7px; }
  .year { margin-bottom: 9px; }
  .company-list div { flex-direction: column; gap: 5px; }
  .email-link { font-size: clamp(17px, 5.4vw, 24px); }
  .email-link .link-icon { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-label, h1 span, h1 em, .hero-intro {
    animation: rise-in 740ms var(--ease-out) both;
  }
  .hero-label { animation-delay: 50ms; }
  h1 span { animation-delay: 120ms; }
  h1 em { animation-delay: 205ms; }
  .hero-intro { animation-delay: 285ms; }
  .story-link { animation: fade-in 620ms var(--ease-out) 345ms both; }
  .story-link:focus-visible { animation: none; }
  .hero-image { animation: open-photo 1100ms var(--ease-out) both; }

  [data-reveal].is-visible:not(.milestones, .contact-inner) {
    animation: rise-in 720ms var(--ease-out);
  }
  .contact-inner.is-visible:not(:has(:focus-visible)) {
    animation: fade-in 650ms var(--ease-out);
  }
  .milestones.is-visible::before {
    animation: draw-line 960ms var(--ease-out) both;
  }
  .milestones.is-visible li {
    animation: rise-in 650ms var(--ease-out) both;
  }
  .milestones.is-visible li:nth-child(2) { animation-delay: 110ms; }
  .milestones.is-visible li:nth-child(3) { animation-delay: 220ms; }

  .link-icon {
    transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease,
      transform 350ms var(--ease-out);
  }
  .story-link:is(:hover, :focus-visible) .link-icon { transform: translateY(3px); }
  .email-link:is(:hover, :focus-visible) .link-icon { transform: translate(3px, -3px); }
}

@media (min-width: 741px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-image img {
      top: -42px;
      height: calc(100% + 42px);
      animation: track-photo linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}

@keyframes rise-in {
  from { opacity: .15; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: .35; }
  to { opacity: 1; }
}

@keyframes open-photo {
  from { opacity: .35; clip-path: inset(0 0 0 10%); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes draw-line {
  from { transform: var(--line-from); }
  to { transform: none; }
}

@keyframes track-photo {
  from { transform: translateY(0); }
  to { transform: translateY(42px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
