:root {
  color-scheme: light;
  background: #EAF7FA;
  color: #075461;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3.5vw, 48px) clamp(22px, 4.5vw, 72px) 0;
}
.brand { display: inline-block; flex-shrink: 0; border-radius: 6px; }
.brand img {
  display: block;
  width: clamp(210px, 23vw, 290px);
  height: auto;
}
.brand:focus-visible, .site-nav a:focus-visible, .home-link:focus-visible {
  outline: 3px solid #075461;
  outline-offset: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.5vw, 36px);
}
.site-nav a {
  position: relative;
  z-index: 1;
  padding: 14px 0;
  color: #075461;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: #8bd8da66;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #087586; }

/* A little striped towel unrolls from beneath each link. */
.towel {
  --towel-color: #37adb9;
  position: absolute;
  top: calc(100% - 5px);
  left: calc(50% - 22px);
  width: 44px;
  height: 58px;
  border: 1px solid #07546122;
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(to bottom,
    var(--towel-color) 0 66%, #fff5df 66% 72%,
    var(--towel-color) 72% 79%, #fff5df 79% 85%,
    var(--towel-color) 85%);
  box-shadow: 2px 5px 8px #07546120;
  pointer-events: none;
  opacity: 0;
  transform: perspective(160px) rotateX(-12deg) scaleY(0.06);
  transform-origin: center top;
  transition: transform 340ms cubic-bezier(.2,.8,.25,1), opacity 180ms ease;
}
.towel::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -3px;
  height: 9px;
  border: 1px solid #07546133;
  border-radius: 50px;
  background: var(--towel-color);
  box-shadow: inset 0 3px 0 #ffffff55;
}
.site-nav a:nth-child(2) .towel { --towel-color: #f0aa7c; }
.site-nav a:nth-child(3) .towel { --towel-color: #75c7c3; }
.site-nav a:nth-child(4) .towel { --towel-color: #ffcb80; }
.site-nav a:hover .towel, .site-nav a:focus-visible .towel {
  opacity: 1;
  transform: perspective(160px) rotateX(0) scaleY(1);
}

.credits {
  max-width: 780px;
  margin-top: clamp(80px, 12vw, 160px);
}
.credits h1 {
  margin-top: 0;
  font-size: clamp(34px, 5.3vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.credits p { margin: 28px 0 36px; font-size: clamp(18px, 2.5vw, 25px); line-height: 1.5; }
.home-link { color: #075461; font-weight: 700; text-underline-offset: 5px; }
.credits .disclaimer {
  margin: 80px auto 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 18px; padding-bottom: 48px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .site-nav a { font-size: 14px; }
}

@media (max-width: 350px) {
  .site-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 20px; }
  .site-nav a { width: fit-content; }
}

@media (prefers-reduced-motion: reduce) {
  .towel { transition: none; }
}

main {
  width: min(1080px, calc(100% - 48px));
  margin: clamp(32px, 4.5vw, 64px) auto 0;
  padding-bottom: 48px;
  text-align: center;
}
.video-frame {
  overflow: hidden;
  border-radius: 14px;
  background: #8ed6dc;
  box-shadow: 0 16px 48px -24px #07546155;
}
video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #075461;
}
h1 {
  margin: clamp(24px, 3vw, 42px) 0 0;
  font-size: clamp(54px, 7.5vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

@media (max-width: 540px) {
  main { width: calc(100% - 32px); }
  .video-frame { border-radius: 9px; }
}
