@font-face {
  font-family: "Neue Montreal";
  src: url("../fonts/NeueMontreal-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #fff;
  --dark: #1d1d1d;
  --pad-x: clamp(22px, 3vw, 46px);
  --pad-y: clamp(22px, 3vw, 36px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
html { background: var(--dark); }
body {
  color: var(--white);
  background: #999b9c;
  font-family: "Neue Montreal", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--dark);
  transition: transform .8s var(--ease);
}
.loader__greeting { display: flex; align-items: center; gap: 14px; }
.loader__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.loader__word {
  min-width: 7ch;
  font-size: clamp(34px, 4vw, 64px);
  line-height: .95;
  transition: opacity .16s ease, transform .16s ease;
}
.loader__word.is-changing { opacity: 0; transform: translateY(10px); }
body.is-ready .loader { transform: translateY(-100%); }

/* Splash */
.splash {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #999b9c 0%, #a0a1a3 35%, #a0a0a3 59%, #939597 70%, #939597 100%);
}

.topbar {
  position: absolute;
  z-index: 10;
  top: var(--pad-y);
  right: var(--pad-x);
  left: var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(16px, 1.45vw, 23px);
  line-height: 1;
}
.contact { position: relative; }
.contact::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.contact:hover::after { transform: scaleX(1); transform-origin: left; }

.portrait-wrap {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -1px;
  width: min(61vw, 980px);
  height: 96%;
  pointer-events: none;
}
.portrait {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%) scale(1.015);
  transform-origin: center bottom;
}

.role {
  position: absolute;
  z-index: 5;
  top: 36%;
  right: clamp(40px, 7vw, 118px);
  width: min(30vw, 420px);
  font-size: clamp(19px, 1.75vw, 29px);
  line-height: 1.15;
}
.role p { margin: 0; }
.role__arrow {
  display: block;
  width: clamp(19px, 1.5vw, 25px);
  height: auto;
  margin-bottom: clamp(42px, 5.5vh, 72px);
}

.countdown {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: clamp(112px, 13vh, 160px);
  width: max-content;
  max-width: calc(100vw - 44px);
  text-align: center;
}
.countdown__label {
  margin: 0 0 clamp(5px, .65vh, 9px);
  font-size: clamp(18px, 1.65vw, 27px);
  line-height: 1;
}
.countdown__time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(6px, .9vw, 13px);
  font-size: clamp(64px, 7.7vw, 124px);
  line-height: .86;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.countdown__time span { display: inline-flex; align-items: baseline; gap: .02em; }
.countdown__time strong { font: inherit; font-weight: 400; }
.countdown__time small { font: inherit; font-size: .48em; letter-spacing: -.04em; }
.countdown__time i { font: inherit; font-style: normal; }

/* Page reveal */
.reveal {
  opacity: 0;
  transition: opacity .75s var(--ease), transform .9s var(--ease);
}
.reveal--top { transform: translateY(-18px); }
.reveal--portrait { transform: translateX(-50%) translateY(36px); }
.reveal--role { transform: translateY(18px); }
.reveal--countdown { transform: translateX(-50%) translateY(20px); }
body.is-visible .reveal { opacity: 1; }
body.is-visible .reveal--top,
body.is-visible .reveal--role { transform: translateY(0); }
body.is-visible .reveal--portrait { transform: translateX(-50%) translateY(0); }
body.is-visible .reveal--countdown { transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .portrait-wrap { width: min(112vw, 760px); height: 82%; }
  .role { top: 19%; right: var(--pad-x); width: 42vw; font-size: clamp(15px, 2.9vw, 21px); }
  .role__arrow { width: 19px; margin-bottom: 22px; }
  .countdown { bottom: clamp(72px, 10vh, 110px); }
  .countdown__label { font-size: clamp(15px, 3.2vw, 20px); }
  .countdown__time { font-size: clamp(48px, 12.5vw, 82px); }
}

@media (max-width: 560px) {
  :root { --pad-x: 20px; --pad-y: 24px; }
  .topbar { font-size: 14px; }
  .brand span { display: none; }
  .loader__greeting { gap: 10px; }
  .loader__dot { width: 6px; height: 6px; }
  .loader__word { font-size: clamp(31px, 10vw, 44px); }
  .portrait-wrap { width: 145vw; height: 76%; }
  .role { top: 17%; right: 20px; width: 50vw; font-size: 14px; }
  .role__arrow { width: 17px; margin-bottom: 15px; }
  .countdown { bottom: 54px; width: calc(100% - 32px); }
  .countdown__label { margin-bottom: 8px; font-size: 14px; }
  .countdown__time { gap: 6px; font-size: clamp(42px, 14vw, 62px); letter-spacing: -.06em; }
}

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .reveal { opacity: 1; transform: none !important; transition: none; }
}
