:root {
  --cobalt: #1F3BD1;
  --night: #0A1230;
  --paper: #F5F6FA;
  --onair: #FF4A3D;
  --mist: #9AA6CF;
  --line: #D9DDEC;
  --studio: #01133B;
  --gold: #E4A860;

  --bg: var(--paper);
  --text: var(--night);
  --muted: #4A5480;

  --font: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--night);
    --text: var(--paper);
    --muted: var(--mist);
    --line: #26305A;
  }
}
:root[data-theme="dark"] {
  --bg: var(--night);
  --text: var(--paper);
  --muted: var(--mist);
  --line: #26305A;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--onair);
  outline-offset: 3px;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: stretch;
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo__jt {
  background: var(--paper);
  color: var(--cobalt);
  padding: 0.12em 0.22em 0.08em;
}
.logo__name {
  background: var(--cobalt);
  color: var(--paper);
  padding: 0.12em 0.3em 0.08em;
  font-weight: 500;
}

/* ---------- Language switch ---------- */

.lang {
  display: flex;
  gap: 2px;
  font-size: 0.875rem;
  font-weight: 600;
}
.lang a, .lang span {
  padding: 0.35em 0.7em;
  text-decoration: none;
}
.lang [aria-current="true"] {
  background: var(--paper);
  color: var(--night);
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--paper);
  background: var(--studio);
  overflow: hidden;
}

/* Blurred copy of the visual fills the screen around the square artwork. */
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: url("hero-blur.jpg") center / cover no-repeat;
  filter: blur(90px) saturate(1.3);
  opacity: 0.45;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(1, 19, 59, 0) 35%, rgba(1, 19, 59, 0.85) 100%);
}

.hero__top {
  display: flex;
  justify-content: flex-end;
  padding: var(--gutter) var(--gutter) 0;
}
.hero__top .lang a { color: var(--paper); }

.hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px var(--gutter) 0;
}

.hero__title {
  margin: 0;
  line-height: 0;
  width: min(60svh, 100%);
}

.hero__visual {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  box-shadow: 0 30px 80px rgba(0, 6, 24, 0.6);
}

.lower-third {
  display: flex;
  flex-wrap: wrap;
  margin: clamp(20px, 3vw, 32px) 0 0;
  width: min(60svh, 100%);
  min-width: min(100%, 30rem);
  animation: wipe 900ms cubic-bezier(0.2, 0.7, 0.1, 1) 300ms both;
}
.lower-third__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: var(--gold);
  color: var(--night);
  padding: 0.7em 1em;
  font-weight: 700;
  font-stretch: 112%;
}
.lower-third__text {
  flex: 1 1 18rem;
  background: var(--paper);
  color: var(--night);
  padding: 0.7em 1em;
  font-weight: 500;
}

.dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--onair);
  box-shadow: 0 0 0 0 rgba(255, 74, 61, 0.6);
  animation: onair 1.8s ease-out infinite;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: clamp(28px, 5vw, 48px) var(--gutter) var(--gutter);
  font-size: 0.875rem;
  color: var(--mist);
}
.hero__foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hero__foot a { color: var(--paper); text-underline-offset: 3px; }

@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes onair {
  0%   { box-shadow: 0 0 0 0 rgba(255, 74, 61, 0.6); }
  70%  { box-shadow: 0 0 0 0.6em rgba(255, 74, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 74, 61, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .lower-third, .dot { animation: none; }
}

/* ---------- Legal pages ---------- */

.legal-head {
  background: var(--cobalt);
  color: var(--paper);
  padding: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.legal-head .logo { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.legal-head .lang a { color: var(--paper); }

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) 64px;
}
.legal h1 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
.legal .updated {
  color: var(--muted);
  margin: 0 0 2.5em;
}
.legal h2 {
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 2.2em 0 0.6em;
}
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 0.35em; }

.legal-foot {
  border-top: 1px solid var(--line);
  max-width: 44rem;
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.875rem;
  color: var(--muted);
}
.legal-foot a { text-underline-offset: 3px; }
