@font-face {
  font-family: Montserrat;
  src: url("assets/montserrat-latin.woff") format("woff");
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #606267;
  --hover: #393b40;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #dddddf; }
body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.background { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #dddddf; }
.poster, .background-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.background-video { opacity: 0; transition: opacity 600ms ease; }
.background-video.is-visible { opacity: 1; }

.prehome {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 24px;
}
.identity { text-align: center; transform: translateY(3.4vh); }
.logo { display: block; width: min(78vw, clamp(290px, 27.084vw, 1040px)); height: auto; margin-inline: auto; }
h1 {
  margin: clamp(32px, 2.785vw, 107px) 0 0;
  color: #66686b;
  font-size: clamp(17px, 1.354vw, 52px);
  line-height: 1.55;
  letter-spacing: .044em;
  font-weight: 300;
}

a { color: inherit; text-decoration: none; }
a[href], button { -webkit-tap-highlight-color: transparent; }
a[href]:hover, button:hover { color: var(--hover); }
a:focus-visible, button:focus-visible { outline: 2px solid #717379; outline-offset: 5px; border-radius: 3px; }

.contact-footer {
  position: fixed;
  z-index: 2;
  inset-inline: 24px;
  bottom: max(30px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  font-size: clamp(13px, .78vw, 19px);
  font-weight: 400;
  letter-spacing: .025em;
}
.email { display: inline-flex; align-items: center; min-height: 44px; transition: color 180ms; }
.email:hover { text-decoration: underline; text-underline-offset: 5px; }
.divider { height: 19px; width: 1px; background: #97999d; opacity: .55; }
.socials { display: flex; align-items: center; gap: 4px; }
.social-link { display: grid; place-items: center; width: 44px; height: 44px; transition: opacity 180ms; }
.social-link img { display: block; opacity: .72; transition: opacity 180ms; }
.social-link[href]:hover img { opacity: 1; }
.social-link[aria-disabled="true"] { cursor: default; }

.motion-toggle {
  position: fixed;
  z-index: 2;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #73757a;
  cursor: pointer;
}
[hidden] { display: none !important; }
.play-icon { display: none; }
.motion-toggle.is-paused .pause-icon { display: none; }
.motion-toggle.is-paused .play-icon { display: block; }

@media (max-width: 600px) {
  .prehome { padding: 110px 20px 170px; }
  .identity { transform: none; }
  .logo { width: min(80vw, 390px); }
  h1 { margin-top: 36px; font-size: clamp(15px, 4.2vw, 20px); letter-spacing: .035em; }
  .contact-footer { flex-direction: column; gap: 1px; bottom: max(22px, env(safe-area-inset-bottom)); font-size: 13px; }
  .divider { display: none; }
  .socials { gap: 12px; }
  .motion-toggle { bottom: auto; left: auto; top: max(16px, env(safe-area-inset-top)); right: 16px; }
}

@media (max-height: 480px) and (min-width: 601px) {
  .prehome { padding: 45px 24px 100px; }
  .identity { transform: none; }
  .logo { width: 270px; }
  h1 { margin-top: 22px; font-size: 17px; }
  .contact-footer, .motion-toggle { bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
