:root {
  color-scheme: dark;
  --paper: #f4f1eb;
  --muted: rgba(236, 232, 224, 0.68);
  --amber: #d5a269;
  --black: #030201;
}

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

* {
  box-sizing: border-box;
}

body {
  overflow: hidden;
}

::selection {
  color: #120b05;
  background: #e2b27a;
}

@keyframes scl-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scl-film-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.scl-shell {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: var(--black);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

.scl-shell::before,
.scl-shell::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.scl-shell::before {
  background: linear-gradient(90deg, rgba(3, 2, 1, 0.78) 0%, rgba(3, 2, 1, 0.5) 29%, rgba(3, 2, 1, 0.08) 52%, transparent 72%);
}

.scl-shell::after {
  background: radial-gradient(ellipse 92% 86% at 70% 52%, transparent 45%, rgba(0, 0, 0, 0.42) 100%);
  box-shadow: inset 0 0 11vw rgba(0, 0, 0, 0.28);
}

.scl-film {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  background: var(--black) url("./assets/embodied-signal-poster.jpg") center / cover no-repeat;
  animation: scl-film-reveal 1.4s cubic-bezier(.2, .7, .2, 1) 0.08s forwards;
  pointer-events: none;
}

.scl-film-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.scl-static-frame .scl-film-video {
  display: none;
}

.scl-topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(26px, 3.4vw, 52px) clamp(24px, 4.2vw, 68px);
  animation: scl-reveal 1s cubic-bezier(.16, 1, .3, 1) 0.05s both;
}

.scl-brand,
.scl-status,
.scl-footer {
  font-size: clamp(9px, 0.74vw, 12px);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.scl-brand {
  color: var(--paper);
  text-decoration: none;
  transition: opacity 180ms ease;
}

.scl-brand:hover {
  opacity: 0.7;
}

.scl-brand:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.75);
  outline-offset: 7px;
}

.scl-status {
  color: rgba(244, 241, 235, 0.65);
}

.scl-hero {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding: clamp(96px, 9vw, 142px) clamp(24px, 4.2vw, 68px) clamp(92px, 9vw, 132px);
  pointer-events: none;
}

.scl-content {
  width: min(58vw, 860px);
  translate: 0 3.2vh;
  animation: scl-reveal 1.25s cubic-bezier(.16, 1, .3, 1) 0.22s both;
}

.scl-title {
  margin: 0;
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(86px, 9.5vw, 158px);
  font-weight: 500;
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.045em;
}

.scl-title span {
  color: var(--amber);
}

.scl-lead {
  max-width: 35ch;
  margin: clamp(25px, 2.2vw, 36px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.22vw, 18px);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: -0.005em;
}

.scl-footer {
  position: absolute;
  bottom: clamp(28px, 3.6vw, 54px);
  left: clamp(24px, 4.2vw, 68px);
  z-index: 5;
  display: flex;
  gap: 16px;
  align-items: center;
  color: rgba(213, 162, 105, 0.82);
  font-size: clamp(8px, 0.58vw, 10px);
  letter-spacing: 0.2em;
  animation: scl-reveal 1s cubic-bezier(.16, 1, .3, 1) 0.62s both;
}

.scl-footer-rule {
  width: clamp(24px, 2.2vw, 36px);
  height: 1px;
  background: rgba(213, 162, 105, 0.8);
}

@media (max-width: 900px) {
  .scl-shell::before {
    background: linear-gradient(0deg, rgba(3, 2, 1, 0.97) 0%, rgba(3, 2, 1, 0.68) 38%, rgba(3, 2, 1, 0.14) 67%, transparent 83%);
  }

  .scl-film,
  .scl-film-video {
    object-position: 67% 34%;
    background-position: 67% 34%;
  }

  .scl-hero {
    align-items: flex-end;
    padding-bottom: 116px;
  }

  .scl-content {
    width: min(100%, 620px);
    translate: none;
  }

  .scl-title {
    font-size: clamp(66px, 12.8vw, 96px);
  }

  .scl-lead {
    max-width: 41ch;
  }
}

@media (max-width: 560px) {
  .scl-topbar {
    padding-top: max(24px, env(safe-area-inset-top));
  }

  .scl-brand {
    max-width: 15ch;
    line-height: 1.35;
  }

  .scl-status {
    align-self: flex-start;
    margin-top: 3px;
  }

  .scl-film,
  .scl-film-video {
    object-position: 70% 25%;
    background-position: 70% 25%;
  }

  .scl-hero {
    padding-bottom: max(112px, calc(92px + env(safe-area-inset-bottom)));
  }

  .scl-title {
    font-size: clamp(58px, 15.5vw, 74px);
  }

  .scl-lead {
    max-width: 36ch;
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.62;
  }

  .scl-footer {
    bottom: max(28px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .scl-film,
  .scl-topbar,
  .scl-content,
  .scl-footer {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .scl-film-video {
    display: none;
  }
}
