:root {
  --ink: #12151c;
  --ink-dim: rgba(18, 21, 28, 0.68);
  --ink-faint: rgba(18, 21, 28, 0.40);
  --edge: 48px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  position: relative;
}

/* Home canvas — background video */
.home-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #ffffff;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  padding-top: calc(40px + env(safe-area-inset-top));
  padding-right: calc(var(--edge) + env(safe-area-inset-right));
  padding-bottom: 0;
  padding-left: calc(var(--edge) + env(safe-area-inset-left));
}

.brand-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Footer */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 0;
  padding-right: calc(var(--edge) + env(safe-area-inset-right));
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
  padding-left: calc(var(--edge) + env(safe-area-inset-left));
}

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

.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.25s ease;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s ease;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after {
  right: 0;
}

.nav-link:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.nav-divider {
  color: var(--ink-faint);
  font-size: 11px;
  transform: translateY(-1px);
}

.nav-link-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flag-pr {
  width: 1.5em;
  height: 1em;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(18, 21, 28, 0.14);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
  :root {
    --edge: 20px;
  }

  .site-header {
    padding-top: calc(24px + env(safe-area-inset-top));
  }

  .brand-name {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .footer-nav {
    gap: 8px;
  }

  .nav-link {
    font-size: 10px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .nav-divider {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link, .nav-link::after {
    transition: none;
  }
}

/* Mobile: full-screen, no-scroll layout. */
@media (max-width: 640px) {
  html, body {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .site-header,
  .site-footer {
    position: fixed;
  }
}
