:root {
  color-scheme: light;
  --ink: #246887;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
}

body {
  min-height: 100dvh;
  overflow: hidden;
  font-family: "coolvetica", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.page-shell {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  place-items: center;
}

.cover {
  position: relative;
  display: block;
  width: min(100vw, calc(100dvh * 1.7270363951));
  margin: 0;
  padding: 0;
  aspect-ratio: 1993 / 1154;
  overflow: hidden;
  color: var(--ink);
  border: 0;
  appearance: none;
  background: transparent;
  container-type: inline-size;
  cursor: pointer;
  font: inherit;
  isolation: isolate;
  text-align: left;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.cover:focus-visible {
  outline: max(2px, 0.15cqw) solid var(--ink);
  outline-offset: max(-4px, -0.3cqw);
}

.cover__background {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
}

.cover__background img {
  display: block;
  width: 100%;
  height: 100%;
}

.cover__ourframe,
.cover__fund-signature,
.cover__title,
.cover__mission,
.cover__monogram {
  position: absolute;
}

.cover__ourframe {
  top: 7.37%;
  left: 7.23%;
  width: 9.68%;
  height: auto;
}

.cover__fund-signature {
  top: 7.37%;
  right: 4.92%;
  display: flex;
  height: 3.03%;
  align-items: center;
  gap: 1.98cqw;
  white-space: nowrap;
}

.cover__fund-signature span {
  font-size: 1.17cqw;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1;
}

.cover__fund-signature img {
  display: block;
  width: 6.07cqw;
  height: auto;
}

.cover__title {
  top: 35.8%;
  left: 4.92%;
  margin: 0;
  font-size: 5.4cqw;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.92;
  white-space: nowrap;
}

.cover__mission {
  top: 28.5%;
  left: 74.04%;
  margin: 0;
  font-size: 2.26cqw;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
  white-space: nowrap;
}

.cover__monogram {
  top: 44.8%;
  left: 3.16%;
  display: block;
  width: 93.68%;
  height: auto;
  user-select: none;
}

.cover__monogram img {
  display: block;
  width: 100%;
  height: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contact-dialog {
  width: min(92vw, 660px);
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  border: 0;
  background: transparent;
}

.contact-dialog::backdrop {
  background: rgba(14, 57, 75, 0.62);
  backdrop-filter: blur(8px);
}

.contact-dialog__surface {
  position: relative;
  padding: clamp(34px, 5vw, 64px);
  overflow: hidden;
  background: #fbf8df;
  box-shadow: 0 30px 90px rgba(14, 57, 75, 0.35);
}

.contact-dialog__surface::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 10px;
  background: #67d9f0;
  content: "";
}

.contact-dialog__close {
  position: absolute;
  top: 20px;
  right: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  color: var(--ink);
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  place-items: center;
}

.contact-dialog__close:hover,
.contact-dialog__close:focus-visible {
  color: #fbf8df;
  background: var(--ink);
}

.contact-dialog__eyebrow {
  margin: 0 64px 24px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.contact-dialog h2 {
  margin: 0;
  font-size: clamp(54px, 8vw, 82px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.82;
}

.contact-dialog__intro {
  max-width: 430px;
  margin: 30px 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.18;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid rgba(36, 104, 135, 0.65);
  border-radius: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.55);
  font: 500 18px/1.2 "coolvetica", Arial, sans-serif;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}

.contact-form__submit {
  justify-self: start;
  min-width: 190px;
  padding: 14px 22px 15px;
  color: #fbf8df;
  border: 1px solid var(--ink);
  background: var(--ink);
  cursor: pointer;
  font: 700 19px/1 "coolvetica", Arial, sans-serif;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  color: var(--ink);
  background: #67d9f0;
}

.contact-dialog__email {
  display: inline-block;
  margin-top: 24px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  text-underline-offset: 4px;
}

@media (max-height: 760px) {
  .contact-dialog__surface {
    padding-block: 32px;
  }

  .contact-dialog h2 {
    font-size: 54px;
  }

  .contact-dialog__intro {
    margin-block: 20px;
  }

  .contact-form textarea {
    min-height: 90px;
  }
}

@media (max-width: 520px) {
  .contact-dialog {
    width: calc(100vw - 28px);
  }

  .contact-dialog__surface {
    padding: 34px 24px 28px;
  }

  .contact-dialog__close {
    top: 17px;
    right: 17px;
  }

  .contact-dialog h2 {
    font-size: 50px;
  }

  .contact-dialog__intro {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cover__background {
    animation: cover-fade 520ms ease-out both;
  }

  .cover__ourframe,
  .cover__fund-signature {
    animation: cover-fade 480ms 140ms ease-out both;
  }

  .cover__title,
  .cover__mission {
    animation: copy-arrive 620ms 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .cover__monogram {
    animation: monogram-arrive 720ms 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .contact-dialog[open] {
    animation: dialog-fade 180ms ease-out both;
  }

  .contact-dialog[open] .contact-dialog__surface {
    animation: dialog-arrive 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .contact-dialog[open]::backdrop {
    animation: backdrop-fade 180ms ease-out both;
  }
}

@keyframes cover-fade {
  from {
    opacity: 0;
  }
}

@keyframes copy-arrive {
  from {
    opacity: 0;
    transform: translateY(1.15cqw);
  }
}

@keyframes monogram-arrive {
  from {
    opacity: 0;
    transform: translateY(2.2cqw);
  }
}

@keyframes dialog-fade {
  from {
    opacity: 0;
  }
}

@keyframes dialog-arrive {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

@keyframes backdrop-fade {
  from {
    background: rgba(14, 57, 75, 0);
    backdrop-filter: blur(0);
  }
}
