:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.26);
  --glass: rgba(4, 18, 26, 0.88);
  --accent: #a9e7ee;
  --page-pad: clamp(20px, 4vw, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

html {
  background: #06141d;
  font-family: "Montserrat", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background: #06141d;
  font-size: 14px;
  font-weight: 300;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.video-layer,
.video-poster,
.video-shade {
  position: fixed;
  inset: 0;
}

.video-layer {
  z-index: 0;
  overflow: hidden;
  background: #06141d;
  pointer-events: none;
}

.video-player,
.video-layer iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  border: 0;
  transform: translate(-50%, -50%) scale(1.14);
  transform-origin: center;
  pointer-events: none;
}

.video-poster {
  z-index: 2;
  background: #06141d url("../images/video-poster.webp") center / cover no-repeat;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0s linear 0s;
}

.video-layer.is-playing .video-poster {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}

.video-shade {
  z-index: 3;
  background:
    radial-gradient(circle at center, transparent 20%, rgba(0, 8, 13, 0.18) 72%, rgba(0, 8, 13, 0.42) 100%),
    linear-gradient(rgba(1, 12, 18, 0.1), rgba(1, 12, 18, 0.22));
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 70px var(--page-pad) 86px;
  text-align: center;
}

.clock {
  width: min(54vh, 520px, 78vw);
  aspect-ratio: 1;
  margin-bottom: clamp(14px, 2.8vh, 28px);
}

.clock__face {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -0.5deg, rgba(255, 255, 255, 0.76) 0 1deg, transparent 1deg 30deg),
    radial-gradient(circle, rgba(5, 27, 35, 0.08) 56%, rgba(5, 27, 35, 0.36) 100%);
  box-shadow: inset 0 0 42px rgba(255, 255, 255, 0.06), 0 28px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(1px);
}

.clock__face::before {
  position: absolute;
  inset: 13px;
  border-radius: inherit;
  background: rgba(5, 24, 32, 0.12);
  content: "";
}

.clock__hand {
  position: absolute;
  z-index: 2;
  bottom: 50%;
  left: 50%;
  width: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.24);
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 100%;
}

.clock__hand--hour {
  height: 23%;
  width: 2px;
}

.clock__hand--minute {
  height: 34%;
}

.clock__hand--second {
  height: 38%;
  background: var(--accent);
}

.clock__pin {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #06141d;
  transform: translate(-50%, -50%);
}

.clock__copy {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.clock__copy h1 {
  margin: 0 0 clamp(78px, 17%, 112px);
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
}

.clock__copy p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.clock__copy strong {
  font-size: clamp(13px, 1.9vw, 24px);
  font-weight: 300;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

blockquote {
  max-width: 840px;
  margin: 0;
}

blockquote p {
  margin: 0 0 6px;
  font-size: clamp(13px, 1.35vw, 18px);
  line-height: 1.55;
}

blockquote cite {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav {
  position: fixed;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 20px;
  display: flex;
  gap: 10px;
}

.side-nav__button {
  width: 50px;
  height: 100%;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  cursor: pointer;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: background-color 0.25s ease, width 0.25s ease;
}

.side-nav__button:hover {
  width: 56px;
  background: rgba(255, 255, 255, 0.3);
}

.sound-button {
  position: fixed;
  z-index: 6;
  top: 22px;
  right: 24px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #fff;
  background: rgba(4, 20, 28, 0.25);
  cursor: pointer;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.sound-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.sound-button:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.18);
}

.sound-button__icon {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.sound-button__icon--playing,
.sound-button.is-audible .sound-button__icon--muted {
  display: none;
}

.sound-button.is-audible .sound-button__icon--playing {
  display: block;
}

.updates {
  position: fixed;
  z-index: 4;
  top: 28px;
  right: 92px;
  display: flex;
  width: min(330px, 28vw);
  min-height: 62px;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.updates__mark {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  place-items: center;
}

.updates__items {
  position: relative;
  min-height: 62px;
  flex: 1;
}

.updates__item {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  font-size: 11px;
  line-height: 1.55;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.updates__item.is-active {
  opacity: 1;
  transform: translateY(0);
}

.social-footer {
  position: fixed;
  z-index: 4;
  right: 20px;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.social-footer a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.social-footer a:hover {
  color: #fff;
  opacity: 0.7;
}

.panel {
  position: fixed;
  z-index: 20;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #fff;
  background: var(--glass);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-22px);
  backdrop-filter: blur(18px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}

.panel__inner {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100%;
  padding: clamp(72px, 10vh, 110px) clamp(28px, 8vw, 130px);
  place-items: center;
}

.panel__inner--contact {
  text-align: center;
}

.panel__close {
  position: fixed;
  z-index: 2;
  top: 50%;
  right: 18px;
  padding: 10px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-50%) rotate(90deg);
}

.panel__content {
  width: min(1080px, 100%);
  text-align: center;
}

.panel__content--narrow {
  width: min(440px, 100%);
}

.panel h2 {
  margin: 0 0 24px;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel h2:not(:first-child) {
  margin-top: clamp(48px, 7vh, 78px);
}

.panel p {
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.8;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 52px);
}

.services article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.services h3 {
  min-height: 48px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.55;
  text-transform: uppercase;
}

.services p {
  font-size: 13px;
  line-height: 1.75;
}

.email-link {
  color: #fff;
  text-underline-offset: 4px;
}

.contact-form {
  margin-top: 32px;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;
}

.contact-form label span {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  color: #fff;
  background: transparent;
  outline: 0;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.contact-form button {
  min-width: 180px;
  height: 50px;
  margin-top: 14px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-status {
  min-height: 24px;
  margin-top: 16px !important;
  font-size: 12px !important;
}

.noscript-message {
  position: fixed;
  z-index: 50;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px;
  color: #fff;
  background: #8b1e1e;
  text-align: center;
}

body.panel-open .page {
  pointer-events: none;
}

@media (max-width: 900px) {
  .video-player,
  .video-layer iframe {
    transform: translate(-50%, -50%) scale(1.38);
  }

  .updates {
    display: none;
  }

  .hero {
    padding-top: 92px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .services h3 {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .side-nav {
    top: max(10px, env(safe-area-inset-top));
    right: 76px;
    bottom: auto;
    left: 10px;
    gap: 8px;
  }

  .side-nav__button {
    width: auto;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(4, 20, 28, 0.22);
    font-size: 10px;
    writing-mode: initial;
    transform: none;
    backdrop-filter: blur(8px);
  }

  .side-nav__button:hover {
    width: auto;
  }

  .sound-button {
    top: max(10px, env(safe-area-inset-top));
    right: 14px;
    width: 42px;
    height: 42px;
  }

  .clock {
    width: min(76vw, 390px);
  }

  .clock__copy h1 {
    margin-bottom: 24%;
  }

  .social-footer {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .social-footer a {
    font-size: 9px;
  }

  .panel__inner {
    padding: 84px 30px 76px;
    place-items: start center;
  }

  .panel__close {
    top: auto;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    transform: none;
  }

  .panel p {
    text-align: left;
  }

  .panel__content--narrow p {
    text-align: center;
  }
}

@media (max-height: 700px) and (min-width: 701px) {
  .clock {
    width: min(58vh, 390px);
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 54px;
  }

  .social-footer {
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
