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

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  background: #67d9f0;
}

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

.page-shell {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
}

.cover {
  --frame: 35px;
  --monogram-height: calc(28.26cqw - 19.78px);
  position: relative;
  display: block;
  width: 100vw;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #67d9f0;
  container-type: inline-size;
  isolation: isolate;
  text-align: left;
}

.cover__contact-hit {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

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

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

.cover__background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover__ourframe-link,
.cover__fund-signature,
.cover__mobile-tuff,
.cover__visuals {
  position: absolute;
  z-index: 1;
}

.cover__visuals {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 85px,
    rgba(0, 0, 0, 0.35) 110px,
    #000 160px,
    #000 100%
  );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    transparent 85px,
    rgba(0, 0, 0, 0.35) 110px,
    #000 160px,
    #000 100%
  );
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.cover__copy-group {
  display: contents;
}

.cover__title,
.cover__mission,
.cover__monogram {
  position: absolute;
}

.cover__ourframe-link {
  z-index: 3;
  top: var(--frame);
  left: var(--frame);
  display: block;
  width: 120px;
  color: inherit;
  line-height: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.cover__ourframe-link:focus-visible {
  outline: max(2px, 0.15cqw) solid var(--ink);
  outline-offset: max(3px, 0.25cqw);
}

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

.cover__fund-signature {
  top: var(--frame);
  right: var(--frame);
  display: flex;
  height: 26px;
  align-items: center;
  gap: 28px;
  pointer-events: none;
  white-space: nowrap;
}

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

.cover__fund-signature img {
  display: block;
  width: 76px;
  height: auto;
}

.cover__mobile-tuff {
  display: none;
}

.cover__title {
  bottom: calc(var(--frame) + var(--monogram-height) + 2.09cqw);
  left: var(--frame);
  width: calc(51.77cqw - 36.24px);
  margin: 0;
  font-size: calc(5.965cqw - 4.18px);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.92;
  pointer-events: none;
  white-space: nowrap;
}

.cover__title-art {
  display: none;
}

.cover__mission {
  right: auto;
  bottom: calc(var(--frame) + var(--monogram-height) + 2.09cqw);
  left: calc(76.65cqw - 18.66px);
  margin: 0;
  font-size: 2.51cqw;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
  pointer-events: none;
  white-space: nowrap;
}

.cover__monogram {
  right: var(--frame);
  bottom: var(--frame);
  left: var(--frame);
  display: block;
  width: auto;
  height: auto;
  pointer-events: none;
  user-select: none;
}

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

.contact-dialog {
  width: min(92vw, 660px);
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  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;
  box-sizing: border-box;
  max-height: calc(100dvh - 28px);
  padding: clamp(34px, 5vw, 64px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(36, 104, 135, 0.55) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  background: #fbf8df;
  box-shadow: 0 30px 90px rgba(14, 57, 75, 0.35);
}

.contact-dialog__surface::-webkit-scrollbar {
  width: 8px;
}

.contact-dialog__surface::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(36, 104, 135, 0.55);
  background-clip: content-box;
}

.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-width: 700px) {
  .cover {
    --mobile-monogram-height: calc(100dvh - 70px);
    --mobile-monogram-width: calc(28.26dvh - 19.78px);
  }

  .cover__visuals {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cover__fund-signature {
    display: none;
  }

  .cover__ourframe-link {
    width: min(29vw, 150px);
  }

  .cover__mobile-tuff {
    z-index: 3;
    bottom: var(--frame);
    left: var(--frame);
    display: block;
    width: min(20vw, 94px);
    height: auto;
    pointer-events: none;
  }

  .cover__copy-group {
    position: absolute;
    z-index: 2;
    top: 32.4dvh;
    left: 6.57vw;
    display: flex;
    width: 55.76vw;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(16px, 2.6dvh, 50px);
    pointer-events: none;
  }

  .cover__title {
    position: static;
    width: 100%;
    font-size: clamp(52px, 15.5vw, 78px);
    letter-spacing: -0.045em;
    line-height: 0.78;
    white-space: normal;
  }

  .cover__title-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .cover__title-copy > span {
    display: block;
  }

  .cover__title-art {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
  }

  .cover__mission {
    position: static;
    width: 48vw;
    font-size: clamp(17px, 4.8vw, 24px);
    line-height: 1.02;
  }

  .cover__monogram {
    z-index: 1;
    top: calc(100dvh - var(--frame));
    right: auto;
    bottom: auto;
    left: calc(100vw - var(--frame) - var(--mobile-monogram-width));
    width: var(--mobile-monogram-height);
    animation: none !important;
    transform: rotate(-90deg);
    transform-origin: top left;
  }
}

@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-link,
  .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);
  }
}
