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

:root {
  color-scheme: dark;
  --bg: #0d0c0a;
  --panel: rgba(18, 17, 14, 0.72);
  --panel-strong: rgba(24, 22, 18, 0.88);
  --text: #ece2cd;
  --muted: #b6a991;
  --faint: rgba(236, 226, 205, 0.2);
  --line: rgba(193, 169, 129, 0.22);
  --line-strong: rgba(214, 186, 140, 0.36);
  --accent: #d2b07a;
  --accent-soft: rgba(210, 176, 122, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(152, 119, 73, 0.18), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(81, 101, 130, 0.16), transparent 28%),
    linear-gradient(180deg, #161412 0%, #0d0c0a 52%, #090908 100%);
  color: var(--text);
  font-family: var(--mono);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 95%);
  pointer-events: none;
  opacity: 0.28;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.grain,
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  opacity: 0.08;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.atmosphere-one {
  background: radial-gradient(circle at 16% 14%, rgba(198, 159, 98, 0.16), transparent 25%);
  animation: drift-one 18s ease-in-out infinite alternate;
}

.atmosphere-two {
  background: radial-gradient(circle at 78% 68%, rgba(72, 104, 145, 0.16), transparent 30%);
  animation: drift-two 24s ease-in-out infinite alternate;
}

.site-header,
main {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.brand-mark,
.brand-line,
.eyebrow,
.section-index,
.signal-label,
.closing-overline,
.card-index,
.language-button {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  font-size: 0.88rem;
  color: var(--text);
}

.brand-line,
.eyebrow,
.section-index,
.signal-label,
.closing-overline,
.card-index {
  font-size: 0.74rem;
  color: var(--muted);
}

.language-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.44);
}

.language-button {
  border: 0;
  padding: 0.65rem 0.95rem;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.language-button.active {
  background: rgba(210, 176, 122, 0.14);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(210, 176, 122, 0.18);
}

main {
  padding-bottom: 6rem;
}

section {
  position: relative;
  padding: 3.2rem 0;
}

.hero {
  padding-top: 7rem;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid,
.statement-grid,
.delegation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

h1,
h2,
h3,
.signal-body,
.statement-lead,
.delegation-lead,
.closing-text {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  max-width: 11ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
}

h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.hero-text,
.statement-notes p,
.manifesto-card p,
.delegation-point p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.96rem;
}

.hero-text {
  max-width: 42rem;
  margin-top: 1.6rem;
}

.signal-panel,
.manifesto-card,
.delegation-point,
.closing-frame {
  position: relative;
  background: linear-gradient(180deg, rgba(25, 23, 19, 0.9), rgba(16, 15, 12, 0.84));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.signal-panel::before,
.manifesto-card::before,
.delegation-point::before,
.closing-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.signal-panel {
  padding: 1.4rem 1.35rem 1.5rem;
  align-self: end;
}

.signal-body {
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  margin-top: 1.1rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
}

.statement-lead,
.delegation-lead {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  max-width: 15ch;
  text-wrap: balance;
}

.statement-notes,
.delegation-points {
  display: grid;
  gap: 1rem;
}

.statement-notes p {
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.manifesto-card {
  min-height: 18rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-index {
  color: var(--accent);
}

.delegation-point {
  padding: 1.25rem 1.25rem 1.4rem;
}

.delegation-point h3 {
  margin-bottom: 0.75rem;
}

.closing {
  padding-bottom: 2rem;
}

.closing-frame {
  padding: 2rem;
  min-height: 20rem;
  display: grid;
  align-content: space-between;
  background:
    linear-gradient(120deg, rgba(30, 27, 22, 0.96), rgba(12, 12, 12, 0.9)),
    radial-gradient(circle at top right, rgba(210, 176, 122, 0.12), transparent 40%);
}

.closing-text {
  max-width: 13ch;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift-one {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2%, 3%, 0) scale(1.08);
  }
}

@keyframes drift-two {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, -2%, 0) scale(1.06);
  }
}

@media (max-width: 960px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-grid,
  .statement-grid,
  .delegation-grid,
  .manifesto-grid {
    grid-template-columns: 1fr;
  }

  .signal-panel {
    align-self: auto;
  }

  .statement-lead,
  .delegation-lead,
  .closing-text {
    max-width: none;
  }
}

@media (max-width: 640px) {
  :root {
    --max-width: 100%;
  }

  .site-header,
  main {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .site-header {
    padding-top: 1rem;
  }

  section {
    padding: 2.2rem 0;
  }

  .hero {
    padding-top: 2.6rem;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.5rem);
  }

  .signal-body,
  .statement-lead,
  .delegation-lead,
  .closing-text {
    line-height: 1.02;
  }

  .closing-frame,
  .manifesto-card,
  .signal-panel,
  .delegation-point {
    padding: 1.1rem;
  }

  .language-switch {
    width: 100%;
  }

  .language-button {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
