@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Lexend Deca";
  src: url("fonts/lexend-deca-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #426c62;
}

.bridge-site {
  --ink: #0a0a0a;
  --paper: #f6f9fc;
  --water: #6ed6bc;
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: 100svh;
  padding: clamp(1.35rem, 3.4vw, 3.5rem) clamp(1.35rem, 4.5vw, 4.75rem);
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #426c62;
  color: var(--paper);
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.bridge-image {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  animation: settle 1.4s cubic-bezier(.16, 1, .3, 1) both;
}

.bridge-wash {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .52) 0%, rgba(10, 10, 10, .3) 44%, rgba(10, 10, 10, .58) 100%),
    radial-gradient(circle at 50% 53%, rgba(10, 10, 10, .18) 0%, rgba(10, 10, 10, 0) 57%);
}

.bridge-composition {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  transform: translateY(clamp(-3.5rem, -5vh, -2rem));
}

.bridge-header {
  display: flex;
  justify-content: center;
}

.bridge-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(.25rem, .45vw, .5rem);
}

.bridge-logo {
  display: block;
  width: clamp(5.25rem, 7.4vw, 7.25rem);
  height: clamp(5.25rem, 7.4vw, 7.25rem);
  flex: none;
  transform: translateY(.06rem);
}

.bridge-wordmark {
  font-family: "Lexend Deca", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.15vw, 2rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .95;
}

.bridge-statement {
  display: flex;
  width: min(90rem, 100%);
  margin: clamp(2.25rem, 5vh, 4rem) auto 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bridge-statement h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .92;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(10, 10, 10, .26);
}

.bridge-statement h1 span {
  color: var(--water);
}

.bridge-statement p {
  max-width: 38rem;
  margin: clamp(1.3rem, 2.5vh, 1.9rem) 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  text-shadow: 0 1px 18px rgba(10, 10, 10, .45);
}

.bridge-statement a {
  display: inline-flex;
  min-height: 3.4rem;
  margin-top: clamp(1.25rem, 2.5vh, 1.75rem);
  padding: .95rem 1.2rem 1rem 1.35rem;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 1px solid var(--paper);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(10, 10, 10, .18);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.bridge-statement a svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bridge-statement a:hover,
.bridge-statement a:focus-visible {
  border-color: var(--water);
  background: var(--water);
  outline: none;
  transform: translateY(-2px);
}

.bridge-footer {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: clamp(1.15rem, 2.6vh, 1.75rem);
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: rgba(246, 249, 252, .7);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(1.035);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .bridge-site {
    padding-inline: 1.25rem;
  }

  .bridge-composition {
    transform: translateY(-2.5vh);
  }

  .bridge-image {
    object-position: 48% 52%;
  }

  .bridge-wash {
    background: linear-gradient(180deg, rgba(10, 10, 10, .58) 0%, rgba(10, 10, 10, .36) 44%, rgba(10, 10, 10, .66) 100%);
  }

  .bridge-statement h1 {
    max-width: 11.5ch;
    font-size: clamp(3rem, 14vw, 5.2rem);
    line-height: .9;
  }

  .bridge-statement a {
    width: 100%;
  }

  .bridge-footer {
    flex-wrap: wrap;
    row-gap: .25rem;
  }
}

@media (max-height: 700px) and (min-width: 721px) {
  .bridge-composition {
    transform: translateY(-2.5vh);
  }

  .bridge-statement {
    margin-top: 1.5rem;
  }

  .bridge-statement h1 {
    font-size: clamp(3.5rem, 6.4vw, 6rem);
  }

  .bridge-statement p,
  .bridge-statement a {
    margin-top: .85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bridge-image {
    animation: none;
  }
}
