@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded-VariableFont_wght.woff2") format("woff2"),
       url("fonts/Unbounded-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #27171E;
  --fg: #F5E9DC;
  --muted: #497D88;
  --radius: 141px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Unbounded", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100%;
  cursor: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fg);
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  will-change: transform;

}

@media (hover: none), (pointer: coarse) {
  html, body { cursor: auto; }
  .cursor { display: none; }
}

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header, footer {
  padding: clamp(16px, 2.4vw, 28px) clamp(20px, 3vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  z-index: 2;
}

header .mark {

  font-weight: 500;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5em;
  padding: clamp(10px, 4vw, 60px);
  overflow: hidden;
}



.lines {
  text-align: left;
  line-height: 1.35;
  font-size: clamp(18px, 3.6vw, 36px);
  font-weight: 200;
  user-select: none;
  will-change: contents;
  max-width: 36ch;
  margin: 0 auto;
}

.line {
  display: block;
}

.word {
  display: inline-block;
  white-space: nowrap;
}

.char {
  display: inline-block;
  font-variation-settings: "wght" 200;
  transition: font-variation-settings 10ms linear;
  min-width: 0.25em;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

.line a {
  color: inherit;
  border-bottom: 2px solid var(--muted);
  text-decoration: none;
}

.line a:hover {
  border-bottom: 4px solid var(--muted);
}

@media (max-width: 540px) {
  :root { --radius: 100px; }

  body {
    grid-template-rows: 1fr auto auto;
  }
  
  .lines {
    font-size: 20px;
  }

  .stage {
    grid-row: 1;
    justify-content: flex-start;
    padding: clamp(10px, 3vw, 60px);
    padding-top: 5vh;
  }

  footer {
    grid-row: 2;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.6em;
  }

  footer {
    grid-row: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .char { transition: none; }
}

::selection {
  background: transparent;
  color: var(--fg);
}

/* ─── Imprint & Privacy overlay ─────────────────────────────────── */

.legal-trigger {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: none;
  
}

.legal-trigger:hover {
  border-bottom-width: 4px;
}

@media (hover: none), (pointer: coarse) {
  .legal-trigger { cursor: pointer; }
}

.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 5vw;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.legal-overlay[hidden] { display: none; }

.legal-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  border: none;
  border-radius: 24px;
  padding: clamp(30px, 8vw, 84px);
}

@media (max-width: 540px) {
  .legal-overlay { padding: 0; }
  .legal-panel { border-radius: 0; }
}

.legal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 36px;
  line-height: 1;
  background: none;
  border: none;
  color: var(--fg);
  cursor: none;
  font-family: inherit;
}

@media (hover: none), (pointer: coarse) {
  .legal-close { cursor: pointer; }
}

.legal-tabs {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: 20px;
  padding-right: 40px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 60%, transparent);
}

.legal-tab {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: none;
  color: var(--muted);
  padding: 10px 0;
  margin-bottom: -1px;
  cursor: none;
  border-bottom: 2px solid transparent;
}

.legal-tab.is-active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

@media (hover: none), (pointer: coarse) {
  .legal-tab { cursor: pointer; }
}

.legal-content {
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

.legal-content::-webkit-scrollbar {
  width: 8px;
}

.legal-content::-webkit-scrollbar-track {
  background: transparent;
}

.legal-content::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}

.legal-content::-webkit-scrollbar-thumb:hover {
  background: var(--fg);
}

.legal-content p{
  max-width: 90%;
}

.legal-pane[hidden] { display: none; }

.legal-pane h2 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--fg);
}

.legal-pane h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 24px 0 10px;
  color: var(--fg);
}

.legal-pane p {
  margin: 0 0 14px;
}

.legal-pane ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal-pane li {
  margin-bottom: 4px;
}

.legal-pane a {
  color: var(--fg);
  border-bottom: 1px solid var(--muted);
}

body.legal-open { overflow: hidden; }
