/* Colors and proportions follow the previous website's saved theme settings. */
:root {
  --primary: #117da4;
  --primary-dark: #0b5f7e;
  --sky: #4bc1ea;
  --footer: #23acdd;
  --text: #444;
  --line: #dfe7eb;
  --red: #d12d2d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: #fff; color: var(--text); font: 1rem/1.6 "Open Sans", "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
img { display: block; max-width: 100%; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, .slides:focus-visible { outline: 3px solid #f5a400; outline-offset: 2px; }
.wrap { width: 100%; max-width: 1230px; margin-inline: auto; padding-inline: 15px; }
.skip { position: absolute; top: -5rem; left: 1rem; z-index: 20; padding: .5rem 1rem; background: #fff; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { background: #f1f1f1; font-size: .8125rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .375rem; }
.topname { color: var(--primary); font-family: "Times New Roman", serif; font-size: .9375rem; }
.topinfo { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.topinfo a { color: #555; text-decoration: none; }

.header { position: sticky; top: 0; z-index: 10; background: #fff; box-shadow: 0 1px 6px rgb(0 0 0 / 14%); }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; }
.logo { padding-block: 6px; }
.logo img { width: auto; height: 84px; }
.header nav ul { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.header nav a { display: block; padding-block: .75rem; border-bottom: 3px solid transparent; color: var(--primary); font-size: .9375rem; font-weight: 700; text-decoration: none; }
.header nav a:hover, .header nav a[aria-current] { border-image: linear-gradient(to right, #008cb7 33%, #8cdcf2 33% 66%, #dce9f2 66%) 1; }
.menu-button { display: none; padding: .625rem 1rem; border: 1px solid var(--primary); border-radius: 4px; background: #fff; color: var(--primary); font: inherit; font-weight: 700; }

.slider { position: relative; background: #12313d; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; height: clamp(300px, 40vw, 620px); scroll-snap-align: start; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.caption { position: absolute; inset: auto 0 0; padding-block: 1rem; background: rgb(0 0 0 / 60%); color: #fff; }
.caption h2 { font-size: clamp(1.0625rem, 2.2vw, 1.5rem); text-transform: uppercase; }
.caption p { margin-top: .25rem; }
.arrow { position: absolute; top: 40%; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 50%); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.prev { left: 12px; }
.next { right: 12px; }

.ribbon { padding-block: 1.5rem 2.5rem; background: var(--sky); color: #06303f; }
.ribbon h2 { margin-bottom: 1.5rem; font-size: 1.375rem; text-transform: uppercase; }
.two { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
.two h3 { margin-bottom: .75rem; font-size: 1.25rem; }
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.button { padding: .625rem 1.25rem; border-radius: 4px; font-weight: 700; text-decoration: none; }
.light { background: #fff; color: var(--primary-dark); }
.red { background: var(--red); color: #fff; }

.section { padding-block: 2rem; }
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
.projects a { position: relative; grid-column: span 2; overflow: hidden; aspect-ratio: 3 / 2; color: #fff; }
.projects a:nth-child(-n+2) { grid-column: span 3; }
.projects img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.projects a:hover img { transform: scale(1.04); }
.projects span { position: absolute; inset: auto 0 0; padding: .875rem 1rem; background: rgb(0 0 0 / 62%); font-weight: 700; text-align: center; text-transform: uppercase; }

.stats { position: relative; overflow: hidden; background: #10222a; color: #fff; }
.stats > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .24; }
.stats .wrap { position: relative; padding-block: 2.5rem; }
.stats h2 { margin-bottom: 1.5rem; font-size: 1.375rem; }
.stats dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats dl div { display: flex; flex-direction: column-reverse; }
.stats dd { font-size: 2.25rem; font-weight: 700; line-height: 1.2; }
.stats dt { color: #8cdcf2; font-size: 1.125rem; font-weight: 700; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; border-bottom: 2px solid var(--line); }
.section-title h2 { margin-bottom: -2px; padding-bottom: .5rem; border-bottom: 2px solid var(--primary); color: var(--primary); font-size: 1.25rem; text-transform: uppercase; }
.section-title a { flex-shrink: 0; font-size: .875rem; }
.grid { display: grid; gap: 1.5rem; }
.four { grid-template-columns: repeat(4, 1fr); }
.three { grid-template-columns: repeat(3, 1fr); }
.card img, .photos img, .video img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { margin-top: .75rem; font-size: 1rem; }
.card time { color: #666; font-size: .8125rem; }
.photos { gap: .75rem; }
.photo-title { margin-block: 1.25rem .75rem; font-size: 1rem; }
.video { color: var(--text); text-decoration: none; }
.video strong, .video small { display: block; margin-top: .375rem; }
.video small { color: var(--primary); }
.video-img { position: relative; display: block; }
.play { position: absolute; inset: 0; width: 60px; height: 42px; margin: auto; border-radius: 10px; background: #c00; }
.play::after { position: absolute; top: 11px; left: 23px; border-block: 10px solid transparent; border-left: 17px solid #fff; content: ""; }

.page-title { background: var(--primary); color: #fff; }
.page-title .wrap { padding-block: 1.5rem; }
.page-title h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.prose { display: grid; justify-items: start; gap: 1rem; }
.prose > p, .notice, .contact { max-width: 48rem; }
.prose h2 { color: var(--primary); font-size: 1.25rem; }
.framed { border: 1px solid var(--line); }
.notice { display: grid; gap: .5rem; padding: 1.25rem; background: #fff1cf; }
.notice h2 { color: #5f3f00; }
.contact { display: grid; gap: .5rem; font-style: normal; overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 1.25rem 0; }
.tabs a { font-size: .9375rem; font-weight: 700; }

.footer { margin-top: 2rem; background: var(--footer); color: #06303f; font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-block: 2rem; }
.footer h2 { margin-bottom: .75rem; font-size: 1.125rem; text-transform: uppercase; }
.footer a { color: inherit; }
.foot-grid li a { display: inline-block; padding-block: .25rem; text-decoration: none; }
.foot-grid li a:hover { text-decoration: underline; }
.footer address { font-style: normal; line-height: 2; overflow-wrap: anywhere; }
.copyright { padding-block: .875rem; background: var(--primary); color: #fff; font-size: .875rem; }

@media (max-width: 850px) {
  .js .menu-button { display: block; }
  .js .header nav { display: none; flex-basis: 100%; padding-bottom: .75rem; }
  .js .header nav.open { display: block; }
  .header nav ul { gap: 0 1.25rem; }
  .js .header nav ul { display: block; }
  .logo img { height: 64px; }
  .two, .foot-grid { grid-template-columns: 1fr; }
  .four, .three, .stats dl { grid-template-columns: 1fr 1fr; }
  .projects a, .projects a:nth-child(-n+2) { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .four:not(.photos), .three { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .projects img { transition: none; }
}
