:root {
  --white: #f5f5f5;
  --muted: #888;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(12, 12, 12, 0.72);
  --font: "Geologica", sans-serif;
  --serif: "Instrument Serif", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: #000;
  color: var(--white);
  font-family: var(--font);
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 62%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top,
.hero,
.strip,
.case {
  position: relative;
  z-index: 3;
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding: 22px 28px;
}

.lang {
  display: flex;
  gap: 4px;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6e6e6e;
  font: 600 12px/1 var(--font);
  letter-spacing: 0.16em;
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.socials {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}

.socials a:hover {
  opacity: 0.7;
}

.hero {
  position: fixed;
  left: 28px;
  bottom: 92px;
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lede {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #e4e4e4;
  max-width: 34em;
}

.strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}

.strip button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: 600 11px/1.2 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 6px;
  white-space: nowrap;
}

.strip button:hover,
.strip button:focus-visible {
  color: #fff;
}

.case {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}

.case[hidden] {
  display: none;
}

.case-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 72vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
  backdrop-filter: blur(16px);
}

.case-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -8px -8px 0 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.case-card h2 {
  margin: 0 28px 10px 0;
  font-size: 22px;
  letter-spacing: 0.03em;
}

.case-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  color: #cfcfcf;
}

.case-link:hover {
  color: #fff;
}

.case-lead {
  font-size: 14px;
  line-height: 1.5;
  color: #d8d8d8;
  margin-bottom: 12px;
}

.case-points {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #d2d2d2;
}

.case-points li {
  margin-bottom: 7px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-tags span {
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #c4c4c4;
}

@media (max-width: 820px) {
  .socials a:nth-child(3) {
    display: none;
  }

  .hero {
    left: 18px;
    right: 18px;
    bottom: 96px;
  }

  .strip {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 4px;
    padding: 0 12px 8px;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .top {
    padding: 16px 18px;
  }
}
