@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --line-width: 1.5px;
  --font-site: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: var(--font-site);
  --ink: #f7f5ef;
  --blue: #061923;
  --accent: #fc6c1b;
  --accent-on-light: #d45614;
  --content: min(1220px, calc(100% - 64px));
  --button-motion: 350ms;
  --button-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

svg {
  stroke-width: var(--line-width);
}

.accent-square {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.12em;
  border-radius: 0;
  background: var(--accent);
  vertical-align: baseline;
  flex: none;
}

html,
body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  background: var(--blue);
}

body {
  color: var(--ink);
  font-family: var(--font-site);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.screen {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
}

.video-stage {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--blue);
  cursor: pointer;
  isolation: isolate;
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
}

.video-stage:disabled {
  cursor: default;
}

.video-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
}

.video-poster {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-stage.video-started .video-poster {
  display: none;
}

.video-vignette {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 15, 21, 0.5), transparent 30%, transparent 63%, rgba(3, 15, 21, 0.54));
  pointer-events: none;
}

.stage-prompt {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: max(72px, calc(52px + env(safe-area-inset-bottom)));
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(247, 245, 239, 0.68);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease, transform var(--button-motion) var(--button-ease);
}

.stage-prompt img {
  width: clamp(30px, 2.8vw, 38px);
  height: clamp(30px, 2.8vw, 38px);
  flex: none;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.68;
}

.video-stage.has-prompt .stage-prompt {
  opacity: 1;
  animation: prompt-pulse 2.4s ease-in-out infinite;
}

.video-stage:is(:hover, :focus-visible):not(:disabled) .stage-prompt {
  transform: translateY(-4px) scale(1.025);
}

.video-stage:active:not(:disabled) .stage-prompt {
  transform: scale(0.96);
  transition-duration: 120ms;
}

@keyframes prompt-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.final-actions {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: max(72px, calc(52px + env(safe-area-inset-bottom)));
  left: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  pointer-events: none;
}

.final-actions.is-visible {
  pointer-events: auto;
}

/* Staggered rise adapted from transitions.dev/transitions/texts-reveal. */
.final-action-slot {
  display: block;
  opacity: 0;
  transform: translateY(34px) scale(0.94);
  filter: blur(3px);
  transition:
    opacity 560ms var(--button-ease),
    transform 560ms var(--button-ease),
    filter 560ms var(--button-ease);
}

.final-action-slot + .final-action-slot {
  transition-delay: 100ms;
}

.final-actions.is-visible .final-action-slot {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.final-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 214px;
  min-height: 58px;
  padding: 15px 25px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #0b0b0b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  opacity: 1;
  white-space: nowrap;
  transition: transform var(--button-motion) var(--button-ease), background-color 180ms ease, box-shadow 180ms ease;
}

.final-action:not(:disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.final-action:not(:disabled):active {
  transform: scale(0.96);
}

.final-action:disabled {
  cursor: default;
}

.final-action-light {
  background: #fff;
}

.final-action-light:not(:disabled):hover {
  background: #f7f5ef;
}

.final-action-accent {
  border-color: rgba(255, 190, 150, 0.5);
  background: #fc6c1b;
}

.final-action-accent:not(:disabled):hover {
  background: #ff8a4c;
}

.site-header {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(24px, 4vw, 58px);
  width: var(--content);
  height: 95px;
  margin: 0 auto;
  background: transparent;
  pointer-events: none;
}

.hero-title {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.hero-title svg {
  display: block;
  width: 100%;
  height: 100%;
}

.title-lit {
  opacity: 0;
}

.title-mark {
  opacity: 0.02;
}

.menu-toggle {
  display: none;
}

.menu-toggle,
.menu-close {
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 48px;
  border: 1px solid rgba(247, 245, 239, 0.2);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(6, 25, 35, 0.65);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background-color 180ms ease, border-color 180ms ease, transform var(--button-motion) var(--button-ease);
}

.menu-toggle {
  gap: 12px;
  padding: 0 16px;
  font-size: 14px;
}

.menu-toggle svg {
  color: var(--accent);
}

.menu-toggle svg path,
.menu-close svg {
  transition: transform var(--button-motion) var(--button-ease);
}

.menu-close {
  display: inline-flex;
  width: 48px;
  padding: 0;
}

.menu-toggle:hover,
.menu-close:hover {
  background: #123342;
  border-color: rgba(247, 245, 239, 0.42);
  transform: translateY(-2px);
}

.menu-toggle:is(:hover, :focus-visible) .menu-line-top {
  transform: translateY(-2px);
}

.menu-toggle:is(:hover, :focus-visible) .menu-line-bottom {
  transform: translateY(2px);
}

.menu-close:is(:hover, :focus-visible) svg {
  transform: rotate(90deg);
}

.menu-toggle:active,
.menu-close:active {
  transform: scale(0.96);
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  border: 0;
  color: var(--ink);
  background: rgba(6, 25, 35, 0.98);
  overscroll-behavior: contain;
}

.mobile-menu[open] {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu::backdrop {
  background: rgba(0, 9, 15, 0.64);
  backdrop-filter: blur(8px);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
}

.mobile-menu-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px;
  margin: -6px;
  overscroll-behavior: contain;
}

.mobile-nav {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding-block: 8px;
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.25;
}

.mobile-nav a span {
  color: var(--accent);
  font-size: 18px;
}

.mobile-nav a:hover {
  color: var(--accent);
}

.mobile-actions {
  display: grid;
  gap: 16px;
  margin-top: auto;
}

.mobile-actions .phone-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 18px;
}

.mobile-actions .contact-link {
  justify-content: center;
  min-height: 54px;
  padding: 16px 22px;
  font-size: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .mobile-menu[open] {
    animation: menu-enter 220ms cubic-bezier(0.2, 0, 0, 1);
  }

  @keyframes menu-enter {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
  }
}

/* Keep the entire word above the roof when the video is cropped to portrait. */
@media (max-aspect-ratio: 1/1) {
  .hero-title {
    top: clamp(72px, 8svh, 96px);
    bottom: auto;
    aspect-ratio: 3344 / 1880;
  }
}

.brand,
.site-nav,
.header-actions {
  pointer-events: auto;
}

.screen .site-header .header-email { display: grid; place-items: center; width: 44px; height: 44px; }
.screen .site-header .header-email svg { display: block; width: 24px; height: 24px; }
.screen .site-header .header-actions .contact-link { min-width: 160px; justify-content: center; }

.brand {
  display: block;
  width: 195px;
  height: 51px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 195px;
  height: auto;
  margin-top: -25px;
}

.site-nav {
  display: flex;
  gap: clamp(15px, 2vw, 27px);
  align-items: center;
  justify-self: center;
  color: rgba(247, 245, 239, 0.82);
  font-size: 15.6px;
  white-space: nowrap;
}

.site-nav a {
  transition-property: color, opacity;
  transition-duration: 180ms;
  transition-timing-function: ease;
}

.site-nav a:hover {
  color: #fff;
}

.header-actions {
  display: inline-flex;
  gap: 21px;
  align-items: center;
  white-space: nowrap;
}

.phone-link {
  color: rgba(247, 245, 239, 0.9);
  font-size: 16.8px;
  font-variant-numeric: tabular-nums;
  transition-property: color, opacity;
  transition-duration: 180ms;
  transition-timing-function: ease;
}

.phone-link:hover {
  color: var(--accent);
}

.contact-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 16px 20px 16px 22px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--accent);
  box-shadow:
    0 0 0 1px rgba(252, 108, 27, 0.68),
    0 0 26px rgba(252, 108, 27, 0.38),
    0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 700;
  transition: transform var(--button-motion) var(--button-ease), background-color 180ms ease, box-shadow 180ms ease;
}

.contact-link:hover {
  background: #ff8a4c;
  box-shadow:
    0 0 0 1px rgba(255, 138, 76, 0.8),
    0 0 34px rgba(252, 108, 27, 0.56),
    0 11px 30px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.contact-link:active {
  transform: scale(0.96);
}

.contact-link span {
  /* Arrow shift adapted from transitions.dev/transitions/learn-more-hover. */
  display: inline-block;
  font-size: 14px;
  transition: transform var(--button-motion) var(--button-ease);
}

.contact-link:is(:hover, :focus-visible) span {
  transform: translate(3px, -3px);
}

@media (max-width: 1200px) {
  .site-header {
    column-gap: 22px;
  }

  .site-nav {
    gap: 16px;
    font-size: 14.4px;
  }

  .header-actions {
    gap: 14px;
  }

  .phone-link {
    font-size: 14.4px;
  }

  .contact-link {
    padding: 14px 16px 14px 18px;
    font-size: 12px;
  }
}

@media (max-width: 1080px) {
  :root {
    --content: calc(100% - 40px);
  }

  .screen {
    min-height: 0;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
    width: auto;
    height: 88px;
    inset: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) auto max(20px, env(safe-area-inset-left));
  }

  .site-header .site-nav,
  .site-header .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  :root {
    --content: calc(100% - 32px);
  }

  .site-header {
    height: 80px;
    padding-top: 0;
    column-gap: 12px;
    inset-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .brand {
    width: 168px;
    height: 41px;
  }

  .brand-logo {
    width: 168px;
    margin-top: -22px;
  }

  .mobile-menu {
    width: 100%;
    padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
  }

  .contact-link {
    padding: 12px 14px 12px 16px;
    font-size: 11px;
  }

  .final-actions {
    right: 16px;
    bottom: max(28px, calc(16px + env(safe-area-inset-bottom)));
    left: 16px;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
  }

  .final-action,
  .final-action-slot {
    width: 100%;
  }

  .final-action {
    min-height: 52px;
    font-size: 15px;
  }

}

@media (max-height: 700px) {
  .mobile-menu[open] { gap: 20px; }
  .mobile-menu-body { gap: 20px; }
  .mobile-nav a { min-height: 44px; padding-block: 6px; font-size: 22px; }
}

@media (max-height: 500px) and (max-width: 1080px) {
  .site-header { height: 64px; }
  .brand { width: 150px; height: 40px; }
  .brand-logo { width: 150px; margin-top: -19px; }
  .mobile-menu { padding-top: max(12px, env(safe-area-inset-top)); }
  .mobile-menu[open] { gap: 16px; }
  .mobile-menu-body { gap: 20px; }
  .mobile-nav a { min-height: 44px; font-size: 22px; }
}

@media (max-height: 500px) and (min-width: 500px) and (max-width: 1080px) {
  .mobile-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .mobile-nav a { font-size: 18px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media (min-width: 1081px) and (max-width: 1340px) {
  .site-header { display:flex; justify-content:space-between; }
  .site-header .site-nav, .site-header .header-actions { display:none; }
  .site-header .menu-toggle { display:inline-flex; margin-left:auto; }
}
