/* ==========================================================================
   Baykal — brand tokens
   ========================================================================== */

:root {
  --ink: #170907;
  --gold: #d9a441;
  --gold-soft: #eccb8a;
  --cream: #f6ecdf;
  --cream-dim: rgba(246, 236, 223, 0.72);

  --font-display: "Pompiere", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --burgundy-deep: #2a1608;
  --line: rgba(217, 164, 65, 0.28);

  --gutter: clamp(20px, 6vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

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

/* ==========================================================================
   Top bar & Language Tumbler
   ========================================================================== */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 4, 3, 0.75), transparent);
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.topbar__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.topbar__mark-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-tumbler {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(23, 9, 7, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.lang-tumbler__btn {
  background: transparent;
  border: 0;
  color: var(--cream-dim);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 11px;
  min-width: 36px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  line-height: 1;
  text-align: center;
  user-select: none;
}

.lang-tumbler__btn:hover {
  color: #ffffff;
}

.lang-tumbler__btn.is-active {
  background: var(--gold);
  color: #170907;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(217, 164, 65, 0.3);
}

.topbar__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
}

.topbar__contact a {
  text-decoration: none;
  color: var(--cream-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.topbar__contact a:hover,
.topbar__contact a:focus-visible {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}

@media (max-width: 640px) {
  .topbar {
    padding: 14px var(--gutter);
  }
  .topbar__contact {
    display: none;
  }
  .lang-tumbler {
    padding: 2px;
    gap: 1px;
  }
  .lang-tumbler__btn {
    padding: 6px 8px;
    font-size: 0.68rem;
    min-width: 28px;
  }
}


/* ==========================================================================
   Hero — full-screen rotating video backdrop
   ========================================================================== */

.hero {
  position: relative;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.video-stage {
  position: absolute;
  inset: 0;
  background: var(--ink);
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  will-change: opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
}

.bg-video.is-active {
  opacity: 1;
}

.scene__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 4, 3, 0.5) 0%,
    rgba(10, 4, 3, 0.08) 26%,
    rgba(10, 4, 3, 0.22) 55%,
    rgba(10, 4, 3, 0.82) 100%
  );
}

.scene__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.hero__actions {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(340px, 84vw);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn--solid {
  background: var(--gold);
  color: var(--ink);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--gold-soft);
}

.btn--outline {
  border-color: rgba(246, 236, 223, 0.45);
  color: var(--cream);
  background: rgba(20, 10, 8, 0.28);
  backdrop-filter: blur(8px);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(217, 164, 65, 0.14);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  background: linear-gradient(160deg, var(--burgundy-deep), var(--ink));
  padding: 88px var(--gutter) 32px;
  overflow: hidden;
}

.footer__glow {
  position: absolute;
  width: 640px;
  height: 640px;
  left: 50%;
  top: -220px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(217, 164, 65, 0.14), transparent 65%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  justify-content: space-between;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.footer__brand {
  max-width: 340px;
}

.footer__brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer__brand-mark img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.footer__brand-desc {
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.footer__cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer__col h2 {
  font-size: 0.78rem;
  color: var(--gold-soft);
  font-weight: 700;
  margin: 0 0 16px;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  text-decoration: none;
  color: var(--cream-dim);
  font-size: 0.9rem;
  transition: color 0.25s var(--ease);
}

.footer__col a:hover,
.footer__col a:focus-visible {
  color: var(--gold-soft);
}

.footer__col p {
  color: var(--cream-dim);
  font-size: 0.9rem;
  max-width: 22ch;
  margin: 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  color: rgba(246, 236, 223, 0.45);
  font-size: 0.8rem;
}

.footer__bottom a {
  text-decoration: none;
  color: rgba(246, 236, 223, 0.45);
  transition: color 0.25s var(--ease);
}

.footer__bottom a:hover,
.footer__bottom a:focus-visible {
  color: var(--gold-soft);
}

.footer__legal-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 620px) {
  .footer__top {
    flex-direction: column;
    gap: 36px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Cookie consent
   ========================================================================== */

.cookie-bar {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 130%);
  width: min(680px, 92vw);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(23, 9, 7, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease);
}

.cookie-bar.is-shown {
  transform: translate(-50%, 0);
}

.cookie-bar__text {
  flex: 1 1 320px;
  font-size: 0.86rem;
  color: var(--cream-dim);
}

.cookie-bar__text a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar__actions {
  display: flex;
  gap: 10px;
}

.cookie-bar__actions .btn {
  padding: 10px 20px;
  font-size: 0.86rem;
}

/* On short phones a stacked banner covered the lowest hero button. */
@media (max-width: 480px) {
  .cookie-bar {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 14px;
    bottom: 10px;
    border-radius: 14px;
  }

  .cookie-bar__text {
    flex: 1 1 auto;
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0;
  }

  .cookie-bar__actions .btn {
    padding: 9px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Legal document pages
   ========================================================================== */

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(23, 9, 7, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.legal-topbar .topbar__mark-badge {
  width: 36px;
  height: 36px;
}

.legal-back {
  font-size: 0.86rem;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--gold-soft);
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px var(--gutter) 100px;
}

.legal__eyebrow {
  font-size: 0.82rem;
  color: var(--gold-soft);
  margin: 0 0 14px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 2.9rem);
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--cream);
}

.legal__updated {
  color: rgba(246, 236, 223, 0.5);
  font-size: 0.86rem;
  margin: 0 0 48px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-soft);
  margin: 44px 0 14px;
}

.legal p,
.legal li {
  color: var(--cream-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.legal p {
  margin: 0 0 16px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal strong {
  color: var(--cream);
}
