:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.34);
  --surface: #111111;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--surface);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  border-radius: 0.2rem;
  background: #ffffff;
  color: #111111;
  font-weight: 700;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #131313;
}

.hero-media,
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  animation: hero-reveal 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.05) 34%, rgba(0, 0, 0, 0.16) 62%, rgba(0, 0, 0, 0.68) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 35%, transparent 65%, rgba(0, 0, 0, 0.2));
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
}

.site-header {
  z-index: 2;
  padding-top: max(1.6rem, env(safe-area-inset-top));
  animation: content-reveal 700ms 120ms ease-out both;
}

.brand {
  display: inline-flex;
  border-radius: 0.15rem;
}

.brand img {
  width: clamp(10.8rem, 18vw, 13.4rem);
  height: auto;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.language {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 50%;
}

.language img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.language.current {
  border-color: rgba(255, 255, 255, 0.86);
}

.language.unavailable {
  opacity: 0.38;
  filter: grayscale(0.8);
  cursor: not-allowed;
}

.hero-content {
  display: grid;
  width: min(100%, 90rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  place-items: center;
}

.hero-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 6vw, 6.5rem);
  width: 100%;
  animation: content-reveal 900ms 220ms ease-out both;
}

.hero-link {
  position: relative;
  display: inline-grid;
  min-width: max-content;
  padding: 0.65rem 0.15rem 1.2rem;
  place-items: center;
  color: var(--ink);
  font-size: clamp(1.55rem, 3.15vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  cursor: not-allowed;
}

.hero-link::after {
  position: absolute;
  right: 0;
  bottom: 0.65rem;
  left: 0;
  height: 1px;
  transform: scaleX(0.2);
  background: var(--line);
  content: "";
  transition: transform 220ms ease, background-color 220ms ease;
}

.hero-link small {
  position: absolute;
  top: calc(100% - 0.35rem);
  left: 50%;
  width: max-content;
  transform: translate(-50%, 0.35rem);
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-link:hover::after,
.hero-link:focus-visible::after {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.78);
}

.hero-link:hover small,
.hero-link:focus-visible small {
  transform: translate(-50%, 0);
  opacity: 1;
}

.site-footer {
  z-index: 2;
  align-items: flex-end;
  padding-bottom: max(1.6rem, env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  animation: content-reveal 700ms 340ms ease-out both;
}

.socials {
  position: relative;
}

.socials summary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  list-style: none;
  cursor: pointer;
  text-transform: uppercase;
}

.socials summary::-webkit-details-marker {
  display: none;
}

.socials summary::before {
  display: inline-block;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle at 29% 65%, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle at 71% 65%, #fff 0 2px, transparent 2.5px),
    linear-gradient(29deg, transparent 43%, #fff 44% 47%, transparent 48%) 0 0 / 50% 100%,
    linear-gradient(-29deg, transparent 43%, #fff 44% 47%, transparent 48%) 100% 0 / 50% 100%;
  background-repeat: no-repeat;
  content: "";
}

.socials[open] summary::before {
  background:
    linear-gradient(45deg, transparent 48%, #fff 49% 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, #fff 49% 51%, transparent 52%);
}

.socials ul {
  position: absolute;
  bottom: calc(100% + 0.8rem);
  left: 0;
  display: grid;
  gap: 0.25rem;
  min-width: 9.5rem;
  padding: 0.65rem;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 11, 11, 0.88);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.28);
  list-style: none;
  backdrop-filter: blur(0.8rem);
}

.socials a {
  display: block;
  padding: 0.35rem 0.45rem;
  text-decoration: none;
}

.socials a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.copyright {
  margin: 0 0 0.75rem;
  text-align: right;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 0.3rem;
}

@keyframes hero-reveal {
  from {
    transform: scale(1.035);
    opacity: 0.42;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes content-reveal {
  from {
    transform: translateY(0.6rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: max(1.25rem, env(safe-area-inset-top));
  }

  .hero-media img {
    object-position: 58% 50%;
  }

  .hero-navigation {
    flex-direction: column;
    gap: clamp(1.1rem, 3vh, 2rem);
  }

  .hero-link {
    font-size: clamp(1.75rem, 8.3vw, 2.5rem);
  }

  .hero-link small {
    position: static;
    margin-top: 0.65rem;
    transform: none;
    opacity: 0.72;
  }

  .hero-link:hover small,
  .hero-link:focus-visible small {
    transform: none;
  }

  .site-footer {
    align-items: flex-end;
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
  }

  .copyright {
    max-width: 12rem;
    margin-bottom: 0.45rem;
  }
}

@media (max-width: 420px) {
  .site-header,
  .site-footer {
    gap: 0.75rem;
  }

  .brand img {
    width: 9.8rem;
  }

  .language {
    width: 1.5rem;
    height: 1.5rem;
  }

  .socials summary {
    font-size: 0;
  }

  .copyright {
    font-size: 0.62rem;
  }
}

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

@media (forced-colors: active) {
  .hero-shade {
    background: rgba(0, 0, 0, 0.72);
  }
}

.error-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: 2rem;
  place-items: center;
  background:
    radial-gradient(circle at 50% 25%, #292929 0%, #111111 48%, #080808 100%);
}

.error-card {
  width: min(100%, 34rem);
  text-align: center;
}

.error-card .brand {
  justify-content: center;
  margin-bottom: clamp(3rem, 10vh, 7rem);
}

.error-code {
  margin: 0;
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(6rem, 27vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.72;
}

.error-card h1 {
  margin: 1.8rem 0 0.6rem;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 400;
}

.error-card > p:not(.error-code) {
  margin: 0 auto 2rem;
  color: var(--muted);
}

.home-link {
  display: inline-block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
