: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.7);
  --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;
  backface-visibility: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, -50%, 0) scale(1.16);
  transform-origin: center;
  pointer-events: none;
  will-change: transform;
}

.video-layer.is-playing .video-player,
.video-layer.is-playing iframe {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}

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

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

.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: 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);
  -webkit-backdrop-filter: blur(1px);
}

.clock__face::before {
  position: absolute;
  z-index: 1;
  inset: 1.5%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.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 {
  bottom: 45%;
  height: 35%;
  width: 4px;
  background: rgba(255, 255, 255, 0.96);
  transform-origin: 50% 85.714%;
}

.clock__hand--minute {
  bottom: 45%;
  height: 46%;
  width: 2px;
  transform-origin: 50% 89.13%;
}

.clock__hand--second {
  bottom: 45%;
  height: 50%;
  background: var(--accent);
  transform-origin: 50% 90%;
}

.clock__pin {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 3.5%;
  height: 3.5%;
  border: 0;
  border-radius: 50%;
  background: #fff;
  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.08em;
}

.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.04em;
}

.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);
}

.mobile-menu-button,
.mobile-menu,
.mobile-menu-backdrop {
  display: none;
}

.sound-button {
  position: fixed;
  z-index: 6;
  top: 200px;
  right: 161px;
  display: block;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent url("../images/volume_control.png") 0 bottom no-repeat;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.sound-button:not(:disabled):hover {
  opacity: 0.76;
}

.sound-button.is-audible {
  background-position: 0 -51px;
}

.sound-button.is-audible:not(:disabled):hover {
  background-position: 0 0;
}

.updates {
  position: fixed;
  z-index: 4;
  top: 50px;
  right: 0;
  display: block;
  box-sizing: border-box;
  width: 290px;
  min-width: 290px;
  min-height: 106px;
  padding-left: 20px;
  color: #fff;
}

.updates__icon {
  position: absolute;
  top: 16px;
  left: 0;
  width: 22px;
  height: 18px;
  object-fit: contain;
}

.updates__items {
  position: relative;
  width: 190px;
  min-height: 90px;
  margin: 16px 19px;
}

.updates__item {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 15px;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.updates__item span {
  color: #fff;
  font-weight: 700;
}

.updates__item small {
  display: block;
  margin-top: 13px;
  color: #fff;
  font-size: 12px;
  line-height: 15px;
}

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

.social-footer {
  position: fixed;
  z-index: 4;
  right: 0;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 0;
  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(10px);
  -webkit-backdrop-filter: blur(10px);
  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;
}

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

.contact-form .form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.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;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 1px 0 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 (min-width: 901px) and (max-width: 1366px) {
  .updates {
    top: 25px;
    right: -7px;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .updates__items {
    margin-left: 9px;
  }
}

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

  .updates {
    display: none;
  }

  .sound-button {
    top: 22px;
    right: 24px;
  }

  .hero {
    padding-top: 92px;
  }

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

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

@media (max-width: 700px) {
  .side-nav {
    display: none;
  }

  .mobile-menu-button {
    position: fixed;
    z-index: 19;
    top: max(12px, env(safe-area-inset-top));
    right: 14px;
    display: flex;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: rgba(4, 20, 28, 0.34);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-menu-button span {
    display: block;
    width: 22px;
    height: 1px;
    border-radius: 999px;
    background: #fff;
    transform-origin: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .mobile-menu-open .mobile-menu-button span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-open .mobile-menu-button span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 16;
    inset: 0;
    display: block;
    background: rgba(0, 8, 13, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0s linear 0.32s;
  }

  .mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.32s ease, visibility 0s;
  }

  .mobile-menu {
    position: fixed;
    z-index: 18;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(82vw, 320px);
    padding: calc(88px + env(safe-area-inset-top)) 34px 40px;
    background: rgba(4, 18, 26, 0.7);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.26);
    flex-direction: column;
    transform: translate3d(105%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.36s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-menu-open .mobile-menu {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }

  .mobile-menu__title {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .mobile-menu button {
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-align: left;
    text-transform: uppercase;
  }

  .sound-button {
    top: max(12px, env(safe-area-inset-top));
    right: 68px;
    width: 40px;
    height: 40px;
  }

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

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

  .social-footer {
    right: 0;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 0;
    padding: 0 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: max(12px, env(safe-area-inset-top));
    right: 14px;
    bottom: auto;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(4, 20, 28, 0.5);
    font-size: 9px;
    letter-spacing: 0.08em;
    place-items: center;
    transform: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .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;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
