:root {
  color-scheme: dark;
  --pointer-x: 0;
  --pointer-y: 0;
  --bg: #070707;
  --paper: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --line: rgba(244, 241, 234, 0.94);
  --line-soft: rgba(244, 241, 234, 0.2);
  --red: #ff2b2b;
  --amber: #d8a34e;
  --green: #8ba68a;
  --frame-width: min(88vw, 1180px);
  --corner: clamp(58px, 9vw, 116px);
  --corner-line: clamp(7px, 0.9vw, 11px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(216, 163, 78, 0.12), transparent 28rem),
    radial-gradient(circle at 84% 88%, rgba(139, 166, 138, 0.1), transparent 26rem),
    var(--bg);
  color: var(--paper);
  font-family:
    "termina", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 50%, transparent 50%) 0 0 / 100% 4px,
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.38) 100%);
  mix-blend-mode: screen;
  opacity: 0.18;
}

a {
  color: inherit;
  text-decoration-color: rgba(244, 241, 234, 0.35);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: currentColor;
}

.site-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.4vh, 38px);
  padding: clamp(18px, 3vw, 42px);
}

.language-switcher {
  position: fixed;
  top: clamp(14px, 2vw, 26px);
  right: clamp(14px, 2vw, 28px);
  z-index: 20;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  border: 2px solid var(--paper);
  background: var(--paper);
  color: var(--bg);
}

.language-button {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--bg);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
}

.language-button.is-active {
  background: var(--bg);
  color: var(--paper);
}

.camera-field {
  position: relative;
  display: grid;
  width: var(--frame-width);
  max-height: 68svh;
  aspect-ratio: 16 / 9;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.camera-field::before,
.camera-field::after {
  position: absolute;
  inset: clamp(14px, 1.8vw, 28px);
  z-index: 3;
  pointer-events: none;
  content: "";
}

.camera-field::before {
  border: 2px solid rgba(244, 241, 234, 0.12);
}

.camera-field::after {
  background:
    linear-gradient(to right, transparent 0 49.86%, rgba(244, 241, 234, 0.08) 49.86% 50.14%, transparent 50.14%),
    linear-gradient(to bottom, transparent 0 49.78%, rgba(244, 241, 234, 0.06) 49.78% 50.22%, transparent 50.22%);
  opacity: 0.6;
}

.image-carousel,
.image-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.image-carousel {
  background: #050505;
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  filter: saturate(0.78) contrast(1.1) brightness(0.78);
  transition:
    opacity 1800ms ease,
    transform 9000ms ease;
}

.carousel-image.is-active {
  opacity: 1;
  transform: scale(1.16);
}

.image-plane {
  z-index: 1;
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.54)),
    radial-gradient(circle at 50% 45%, transparent 0 32%, rgba(0, 0, 0, 0.3) 72%, rgba(0, 0, 0, 0.74) 100%);
  opacity: 0.78;
  transform: scale(1.04) translate3d(
    calc(var(--pointer-x) * -8px),
    calc(var(--pointer-y) * -8px),
    0
  );
  animation: slow-drift 18s ease-in-out infinite alternate;
}

.image-plane::before {
  position: absolute;
  inset: -18%;
  content: "";
  background:
    conic-gradient(from 18deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.13) 32deg, transparent 64deg),
    linear-gradient(90deg, rgba(255, 43, 43, 0.09), transparent 22%, rgba(139, 166, 138, 0.08));
  mix-blend-mode: overlay;
  opacity: 0.3;
  animation: lens-sweep 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.image-plane::after {
  position: absolute;
  inset: -22%;
  content: "";
  background:
    radial-gradient(circle at 26% 36%, rgba(244, 241, 234, 0.24), transparent 18%),
    radial-gradient(circle at 76% 58%, rgba(255, 43, 43, 0.16), transparent 16%),
    linear-gradient(118deg, transparent 0 36%, rgba(244, 241, 234, 0.14) 42%, transparent 49% 100%);
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0.3;
  animation: signal-drift 13s ease-in-out infinite alternate;
}

.image-texture {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 43, 43, 0.1), transparent 14%, transparent 86%, rgba(139, 166, 138, 0.1)),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 255, 255, 0.024) 8px 9px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.66;
  transform: translate3d(
    calc(var(--pointer-x) * 6px),
    calc(var(--pointer-y) * 6px),
    0
  );
  animation: scan-roll 1.8s linear infinite;
}

.frame-corners {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: var(--corner);
  height: var(--corner);
}

.corner::before,
.corner::after {
  position: absolute;
  content: "";
  background: var(--line);
  box-shadow:
    0 0 24px rgba(244, 241, 234, 0.32),
    0 0 2px rgba(244, 241, 234, 0.8);
}

.corner::before {
  width: 100%;
  height: var(--corner-line);
}

.corner::after {
  width: var(--corner-line);
  height: 100%;
}

.corner-tl {
  top: 0;
  left: 0;
}

.corner-tr {
  top: 0;
  right: 0;
  transform: rotate(90deg);
}

.corner-bl {
  bottom: 0;
  left: 0;
  transform: rotate(-90deg);
}

.corner-br {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.recording-badge {
  position: absolute;
  top: clamp(20px, 2.6vw, 42px);
  right: clamp(20px, 2.6vw, 42px);
  z-index: 6;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: clamp(12px, 1.5vw, 18px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--paper);
  font-size: clamp(1.1rem, 2.35vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(0, 0, 0, 0.82),
    0 0 20px rgba(255, 43, 43, 0.44);
  text-transform: uppercase;
}

.recording-dot {
  width: clamp(20px, 2.45vw, 30px);
  height: clamp(20px, 2.45vw, 30px);
  border-radius: 999px;
  background: var(--red);
  box-shadow:
    0 0 0 0 rgba(255, 43, 43, 0.92),
    0 0 18px rgba(255, 43, 43, 0.86);
  animation: live-pulse 0.95s ease-out infinite;
}

.brand-lockup {
  position: relative;
  z-index: 6;
  display: grid;
  width: min(32%, 260px);
  place-items: center;
  transform: translateY(1%);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 18px 46px rgba(0, 0, 0, 0.82));
}

.brand-lockup h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.statement {
  width: min(760px, 88vw);
  text-align: center;
}

.statement p {
  margin: 0;
  color: rgba(244, 241, 234, 0.86);
  font-size: clamp(0.94rem, 1.32vw, 1.18rem);
  font-weight: 500;
  line-height: 1.55;
}

.site-footer {
  display: grid;
  width: min(980px, 88vw);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: clamp(0.66rem, 0.84vw, 0.78rem);
  line-height: 1.5;
  text-align: left;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.contact-card {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.contact-card strong {
  color: rgba(244, 241, 234, 0.9);
  font-size: 0.92em;
  font-weight: 500;
}

.contact-card a {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.company-address {
  margin: 0;
  font-style: normal;
  text-align: left;
  white-space: nowrap;
}

@keyframes slow-drift {
  0% {
    transform: scale(1.04) translate3d(
      calc(-0.7% + (var(--pointer-x) * -8px)),
      calc(-0.5% + (var(--pointer-y) * -8px)),
      0
    );
  }

  100% {
    transform: scale(1.09) translate3d(
      calc(0.9% + (var(--pointer-x) * -8px)),
      calc(0.6% + (var(--pointer-y) * -8px)),
      0
    );
  }
}

@keyframes lens-sweep {
  0%,
  28% {
    transform: translateX(-28%) rotate(0deg);
    opacity: 0.16;
  }

  48% {
    opacity: 0.52;
  }

  76%,
  100% {
    transform: translateX(28%) rotate(9deg);
    opacity: 0.18;
  }
}

@keyframes signal-drift {
  0% {
    transform: translate3d(-8%, -3%, 0) rotate(-4deg) scale(1);
    opacity: 0.18;
  }

  42% {
    opacity: 0.42;
  }

  100% {
    transform: translate3d(9%, 4%, 0) rotate(5deg) scale(1.08);
    opacity: 0.3;
  }
}

@keyframes scan-roll {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 0 0, 18px 0, 0 18px;
  }
}

@keyframes live-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 43, 43, 0.92),
      0 0 22px rgba(255, 43, 43, 0.92);
    opacity: 1;
    transform: scale(1);
  }

  70% {
    box-shadow:
      0 0 0 18px rgba(255, 43, 43, 0),
      0 0 34px rgba(255, 43, 43, 0.42);
    opacity: 0.48;
    transform: scale(0.82);
  }

  100% {
    box-shadow:
      0 0 0 0 rgba(255, 43, 43, 0),
      0 0 18px rgba(255, 43, 43, 0.7);
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  :root {
    --frame-width: min(94vw, 680px);
    --corner: clamp(42px, 16vw, 68px);
    --corner-line: clamp(5px, 1.6vw, 7px);
  }

  .site-shell {
    justify-content: center;
    gap: 22px;
    padding: 52px 18px 18px;
  }

  .camera-field {
    max-height: none;
  }

  .brand-lockup {
    width: min(40%, 180px);
  }

  .recording-badge {
    min-height: 34px;
    gap: 9px;
  }

  .recording-dot {
    width: 15px;
    height: 15px;
  }

  .site-footer {
    width: min(94vw, 520px);
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .contact-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-card {
    justify-items: center;
  }

  .company-address {
    text-align: center;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
