@font-face {
  font-family: "Hanken Grotesk";
  src: url("hanken.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16324a;
  --white: #ffffff;
  --mist: rgba(255, 255, 255, 0.82);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: "Hanken Grotesk", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--white); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 3px; }

.home {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

/* Palms in the wind, full screen */
.home > picture { display: contents; }
.top { grid-row: 1; } .words { grid-row: 2; } .foot { grid-row: 3; }
.poster, .film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.film { z-index: -2; opacity: 0; transition: opacity 1.6s var(--ease); }
.is-playing .film { opacity: 1; }

/* A low shade so the words read; the sky stays open */
.shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 50, 74, 0.25) 0%, rgba(22, 50, 74, 0) 22%, rgba(22, 50, 74, 0) 45%, rgba(22, 50, 74, 0.62) 100%);
}

.top {
  display: flex;
  justify-content: flex-end;
  padding: clamp(18px, 3vw, 32px) clamp(20px, 4vw, 56px);
}
.lang { display: flex; align-items: center; gap: 2px; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; }
.lang a {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--mist);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang a:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.lang a[aria-current="page"] { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }

.words {
  align-self: end;
  padding: 0 clamp(20px, 6vw, 96px) clamp(20px, 5vh, 56px);
  text-shadow: 0 1px 24px rgba(22, 50, 74, 0.35);
}
.mark {
  margin: 0;
  font-size: clamp(3rem, 1.2rem + 6.4vw, 8rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.045em;
}
.line {
  margin: clamp(12px, 2vh, 20px) 0 0;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--mist);
}
.soon {
  margin: clamp(18px, 3vh, 30px) 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(20px, 6vw, 96px) clamp(18px, 3vh, 32px);
  font-size: 0.8125rem;
  color: var(--mist);
}
.pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}
.pause:hover { border-color: rgba(255, 255, 255, 0.8); }
.pause svg { width: 12px; height: 12px; }
.pause .i-play { display: none; }
.is-still .pause .i-play { display: block; }
.is-still .pause .i-pause { display: none; }

@media (max-width: 600px) {
  .mark { font-weight: 400; letter-spacing: -0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  .film { transition: none; }
}
