@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Space+Mono:wght@400;700&display=swap");

:root {
  color-scheme: dark;
  --home-poem: Didot, "Bodoni 72", "Bodoni MT", Georgia, serif;
  --home-signal: "Space Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --home-note: "EB Garamond", Garamond, Georgia, serif;
}

html {
  background: #050505;
  scroll-snap-type: y proximity;
}

.home-minimal {
  margin: 0;
  color: #fff;
  background: #050505;
  font-family: var(--home-signal);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.home-minimal main {
  max-width: none;
}

.home-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: max(16px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 16px max(18px, env(safe-area-inset-left));
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.home-wordmark {
  font-family: var(--home-signal);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-header-line {
  display: contents;
}

.home-header a {
  color: inherit;
  text-underline-offset: 0.25em;
  pointer-events: auto;
}

.home-menu {
  justify-content: flex-end;
  margin: 0;
}

.home-menu-toggle {
  display: none;
}

.home-monolith,
.home-cast {
  position: relative;
  min-height: 100svh;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
}

.home-monolith {
  display: grid;
  place-items: center;
  padding: clamp(68px, 9vw, 104px) clamp(12px, 4vw, 48px) clamp(16px, 3vw, 40px);
  background: #000;
}

.home-monolith img {
  display: block;
  width: 100%;
  height: calc(100svh - clamp(84px, 12vw, 144px));
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.home-monolith-note {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: clamp(18px, 3vw, 40px);
  left: clamp(18px, 4vw, 48px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 60px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.home-monolith-copy {
  display: grid;
  gap: 10px;
}

.home-current-day {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--home-signal);
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-current-day strong {
  color: #fff;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.home-monolith-statement {
  margin: 0;
  font-family: var(--home-poem);
  font-size: clamp(1.25rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.home-monolith-statement em {
  font-weight: 400;
}

.home-monolith-note dl {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  margin: 0;
  text-align: right;
}

.home-monolith-note dt {
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--home-signal);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-monolith-note dd {
  margin: 5px 0 0;
  font-family: var(--home-signal);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.home-portals {
  display: grid;
  min-height: 100svh;
  margin: 0;
  padding: clamp(72px, 10vw, 140px) clamp(18px, 6vw, 88px);
  place-items: center;
  background: #050505;
  scroll-snap-align: start;
}

.home-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 24px);
  width: min(100%, 1100px);
  margin: 0;
}

.home-portal {
  --portal-x: 0px;
  --portal-y: 0px;
  --portal-image-x: 0px;
  --portal-image-y: 0px;
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(220px, 34vw, 440px);
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(18px, 3vw, 32px);
  color: #fff;
  background: #050505;
  border: 1px solid transparent;
  font-family: var(--home-signal);
  font-size: clamp(0.82rem, 1.5vw, 1.08rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translate3d(var(--portal-x), var(--portal-y), 0);
  transition: border-color 220ms ease;
  will-change: transform;
}

.home-portal::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.28) 28%, transparent 58%),
    radial-gradient(
      ellipse 76% 74% at 50% 48%,
      transparent 30%,
      rgba(0, 0, 0, 0.22) 50%,
      rgba(5, 5, 5, 0.88) 82%,
      #050505 100%
    );
  pointer-events: none;
}

.home-portal img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  filter: grayscale(0.24) saturate(0.78) contrast(1.08);
  -webkit-mask-image: radial-gradient(ellipse 80% 78% at 50% 48%, #000 28%, rgba(0, 0, 0, 0.76) 54%, transparent 94%);
  mask-image: radial-gradient(ellipse 80% 78% at 50% 48%, #000 28%, rgba(0, 0, 0, 0.76) 54%, transparent 94%);
  scale: 1;
  transform: translate3d(var(--portal-image-x), var(--portal-image-y), 0);
  transition: filter 360ms ease, scale 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.home-portal span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 12px #000, 0 1px 3px #000;
}

.home-portal:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.62);
  outline-offset: 5px;
}

.home-portal:hover img,
.home-portal:focus-visible img {
  filter: grayscale(0.04) saturate(0.98) contrast(1.1) brightness(1.04);
  scale: 1.025;
}

.home-cast {
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #111;
}

.home-cast-video,
.home-cast-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

.home-cast-video {
  object-fit: cover;
}

.home-cast-shade {
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.65)),
    rgba(0, 0, 0, 0.16);
}

.home-updates {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - 40px), 760px);
  padding: clamp(28px, 6vw, 64px);
  color: #fff;
  background: transparent;
  border: 0;
}

.home-updates::before {
  position: absolute;
  z-index: -1;
  inset: -180px -130px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(
    ellipse 88% 90% at 50% 50%,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.21) 20%,
    rgba(0, 0, 0, 0.135) 40%,
    rgba(0, 0, 0, 0.07) 59%,
    rgba(0, 0, 0, 0.025) 77%,
    transparent 100%
  );
  filter: blur(36px);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  -webkit-mask-image: radial-gradient(
    ellipse 92% 94% at 50% 50%,
    #000 0%,
    rgba(0, 0, 0, 0.86) 16%,
    rgba(0, 0, 0, 0.62) 36%,
    rgba(0, 0, 0, 0.38) 56%,
    rgba(0, 0, 0, 0.18) 73%,
    rgba(0, 0, 0, 0.055) 88%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 92% 94% at 50% 50%,
    #000 0%,
    rgba(0, 0, 0, 0.86) 16%,
    rgba(0, 0, 0, 0.62) 36%,
    rgba(0, 0, 0, 0.38) 56%,
    rgba(0, 0, 0, 0.18) 73%,
    rgba(0, 0, 0, 0.055) 88%,
    transparent 100%
  );
  pointer-events: none;
}

.home-updates-copy {
  max-width: none;
  margin: 0 0 12px;
  font-family: var(--home-poem);
  font-size: clamp(2.35rem, 5.4vw, 4.75rem);
  font-style: normal;
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.home-updates-note {
  max-width: 34ch;
  margin: 0 0 clamp(34px, 5vw, 50px);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--home-note);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

.newsletter-form,
.newsletter-form-row {
  margin: 0;
}

.newsletter-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  transition: border-color 180ms ease;
}

.newsletter-form-row:focus-within {
  border-color: rgba(255, 255, 255, 0.76);
}

.newsletter-form input,
.newsletter-form button {
  min-height: 52px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-family: var(--home-signal);
  font-weight: 300;
}

.newsletter-form input {
  width: 100%;
  padding: 10px 0;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.newsletter-form button {
  padding: 10px 0 10px 24px;
  font-family: var(--home-signal);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.newsletter-form button:disabled {
  opacity: 0.65;
}

.form-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  font-size: 0.75rem;
}

.form-status.is-error {
  color: #ffd3d3;
}

.home-footer {
  position: absolute;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.68rem;
  font-family: var(--home-signal);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.home-footer a {
  color: inherit;
  text-underline-offset: 0.25em;
}

.home-minimal .form-toast {
  color: #050505;
}

@media (max-width: 700px) {
  .home-header {
    display: block;
    padding: max(14px, env(safe-area-inset-top)) 14px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  }

  .home-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 14px;
  }

  .home-menu-toggle {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 2px 4px 4px;
    color: inherit;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.075), transparent 68%);
    border: 0;
    font: inherit;
    font-family: var(--home-signal);
    letter-spacing: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.28);
    text-transform: uppercase;
    pointer-events: auto;
  }

  .home-menu-toggle:hover,
  .home-menu-toggle:focus-visible {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.42);
  }

  .home-header.menu-ready .home-menu {
    display: none;
  }

  .home-header.menu-ready.is-menu-open .home-menu {
    display: flex;
  }

  .home-menu {
    position: relative;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 8px 18px 20px;
    color: #fff;
    background: rgba(5, 5, 5, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px);
    pointer-events: auto;
  }

  .home-menu > a {
    display: block;
    padding: 14px 0 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--home-signal);
    font-size: clamp(1.15rem, 5.2vw, 1.6rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .home-menu > a:last-child {
    border-bottom: 0;
  }

  .home-monolith {
    padding-top: 68px;
  }

  .home-monolith img {
    height: calc(100svh - 154px);
    transform: translateY(-84px);
  }

  .home-monolith-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-top: 80px;
  }

  .home-monolith-statement {
    font-size: clamp(1.25rem, 6.5vw, 1.8rem);
  }

  .home-monolith-note dl {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .home-monolith-note dd {
    font-size: 1.22rem;
  }

  .home-portals {
    min-height: 100svh;
    padding: 84px 14px 40px;
  }

  .home-portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .home-portal {
    min-height: 170px;
    padding: 16px;
    font-size: 0.7rem;
  }

  .home-portal img {
    -webkit-mask-image: radial-gradient(ellipse 92% 90% at 50% 48%, #000 44%, rgba(0, 0, 0, 0.86) 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 92% 90% at 50% 48%, #000 44%, rgba(0, 0, 0, 0.86) 72%, transparent 100%);
  }

  .home-portal-shop {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .home-portal-shop img {
    object-position: center 45%;
  }

  .home-portal-archive img {
    object-position: center 42%;
  }

  .home-updates {
    width: calc(100% - 24px);
    padding: 28px 20px;
  }

  .home-updates-copy {
    margin-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-portal,
  .home-portal img {
    transform: none;
    transition: none;
  }
}
