@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --page: #ffffff;
  --ink: #14171c;
  --muted-ink: #5f6670;
  --glass-line: rgba(255, 255, 255, 0.72);
  --glass-line-strong: rgba(255, 255, 255, 0.92);
  --glass-shadow: rgba(18, 24, 35, 0.11);
  --glass-shadow-hover: rgba(18, 24, 35, 0.16);
  --button-width: clamp(132px, 12.5vw, 164px);
  --logo-width: min(70vw, 720px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
}

body {
  min-height: 100svh;
}

.site-shell {
  min-height: 100svh;
  background: var(--page);
}

.hero {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(32px, 8vh, 72px) clamp(20px, 5vw, 56px);
}

.logo-lockup {
  width: var(--logo-width);
  max-width: 100%;
  animation: logo-rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.wnd-video-logo {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 3;
  overflow: hidden;
  background: var(--page);
  isolation: isolate;
}

.wnd-video-logo::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 3;
  height: 3px;
  background: var(--page);
  content: "";
  pointer-events: none;
}

.wnd-video-fill,
.wnd-logo-cutout,
.wnd-fallback-text {
  position: absolute;
  inset: 0;
}

.wnd-video-fill {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wnd-logo-cutout {
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.wnd-fallback-text {
  display: grid;
  place-items: center;
  z-index: 0;
  background: linear-gradient(90deg, #151a22 0%, #3e4b55 62%, #71808b 100%);
  color: transparent;
  font-size: clamp(6.7rem, 18.7vw, 16.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.8;
  -webkit-background-clip: text;
  background-clip: text;
}

.creative-word {
  position: relative;
  z-index: 4;
  margin: clamp(4px, 0.8vw, 10px) 0 0;
  padding-left: clamp(7px, 1.1vw, 14px);
  color: var(--ink);
  font-size: clamp(0.7rem, 1.25vw, 0.95rem);
  font-weight: 400;
  letter-spacing: clamp(0.46rem, 1.28vw, 0.9rem);
  line-height: 1.2;
  text-align: center;
  animation: creative-track-in 900ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.button-panel {
  display: grid;
  gap: clamp(13px, 2.2vw, 18px);
  margin-top: clamp(28px, 4.2vw, 42px);
  animation: contact-fade-in 900ms 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.contact-actions,
.service-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vw, 14px);
  flex-wrap: wrap;
}

.top-contact-actions {
  margin-bottom: clamp(24px, 4vw, 38px);
  animation: contact-fade-in 900ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.glass-button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.26)),
    radial-gradient(circle at 24% 0%, rgba(132, 189, 255, 0.34), transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(174, 114, 255, 0.22), transparent 45%),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.88),
    inset 0 -10px 22px rgba(255, 255, 255, 0.2),
    0 12px 30px var(--glass-shadow);
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(0.72rem, 0.95vw, 0.86rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  appearance: none;
  cursor: pointer;
}

.glass-button::before {
  position: absolute;
  inset: 1px 1px auto;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent);
  content: "";
  pointer-events: none;
}

.glass-button:hover,
.glass-button:focus-visible {
  border-color: var(--glass-line-strong);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -12px 24px rgba(255, 255, 255, 0.24),
    0 16px 36px var(--glass-shadow-hover);
  color: #000000;
  transform: translateY(-2px);
}

.glass-button:focus-visible {
  outline: 2px solid rgba(75, 123, 190, 0.42);
  outline-offset: 4px;
}

.contact-button,
.service-button {
  width: var(--button-width);
  min-width: 0;
  padding: 0 clamp(12px, 1.4vw, 18px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes logo-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes creative-track-in {
  from {
    opacity: 0;
    letter-spacing: clamp(0.34rem, 0.9vw, 0.62rem);
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    letter-spacing: clamp(0.46rem, 1.28vw, 0.9rem);
    transform: translateY(0);
  }
}

@keyframes contact-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  :root {
    --logo-width: min(86vw, 430px);
  }

  .creative-word {
    font-size: clamp(0.62rem, 2.65vw, 0.76rem);
    letter-spacing: clamp(0.34rem, 2vw, 0.58rem);
  }

  .creative-word::before {
    position: absolute;
    top: -18px;
    left: 50%;
    z-index: -1;
    width: 100vw;
    height: 18px;
    background: var(--page);
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
  }

  .button-panel {
    gap: 12px;
    margin-top: 24px;
  }

  .top-contact-actions {
    margin-bottom: 24px;
  }

  .contact-actions,
  .service-actions {
    flex-direction: column;
    gap: 12px;
  }

  .glass-button {
    width: min(100%, 300px);
    min-height: 48px;
    padding: 0 18px;
    font-size: 0.72rem;
  }

  .contact-button {
    min-width: 0;
  }

  .service-button {
    min-width: 0;
  }
}

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