:root {
  --bg: #071419;
  --bg-deep: #0d2229;
  --panel: rgba(9, 26, 32, 0.72);
  --panel-strong: rgba(13, 34, 41, 0.88);
  --line: rgba(180, 226, 214, 0.18);
  --text: #f2f7f2;
  --muted: #a6c0ba;
  --accent: #ffb36b;
  --accent-soft: #ffd7b0;
  --signal: #7be2c3;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(123, 226, 195, 0.14), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 179, 107, 0.18), transparent 24%),
    linear-gradient(135deg, var(--bg) 0%, #091a20 48%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 90%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  margin-bottom: 48px;
}

.brand {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 179, 107, 0.55);
  background: rgba(255, 179, 107, 0.08);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: end;
}

.hero-copy,
.hero-panel,
.card,
.interest-board,
.manifesto {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
}

.eyebrow,
.panel-label,
.manifesto-label,
.card-index {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal);
}

h1,
h2,
.manifesto-text {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(3.4rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  max-width: 8ch;
}

h1 span {
  color: var(--accent);
}

.lead {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--accent-soft);
}

.body-copy {
  max-width: 38rem;
  margin: 18px 0 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--muted);
}

.inline-link {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 179, 107, 0.4);
  text-underline-offset: 0.18em;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--accent);
  text-decoration-color: rgba(255, 179, 107, 0.9);
  outline: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  background: var(--accent);
  color: #112127;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 179, 107, 0.28);
  outline: none;
}

.status-line {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.rotating-word {
  display: inline-block;
  min-width: 12ch;
  color: var(--signal);
  font-weight: 700;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.rotating-word.is-switching {
  opacity: 0.2;
  transform: translateY(4px);
}

.hero-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 179, 107, 0.08), transparent 34%),
    var(--panel-strong);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.panel-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.panel-row span {
  color: var(--muted);
}

.panel-row strong {
  text-align: right;
  max-width: 26ch;
  overflow-wrap: anywhere;
  color: var(--text);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  border-radius: var(--radius-md);
  padding: 26px;
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 179, 107, 0.34);
}

.card-highlight {
  transform: translateY(18px);
  background:
    radial-gradient(circle at top right, rgba(123, 226, 195, 0.14), transparent 40%),
    var(--panel);
}

.card h2 {
  margin: 18px 0 12px;
  font-size: 1.7rem;
}

.card p:last-child {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.interest-board {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 24px;
  margin-top: 36px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(123, 226, 195, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 179, 107, 0.08), transparent 45%),
    var(--panel);
}

.interest-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.interest-text {
  margin: 0;
  max-width: 24rem;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--muted);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.interest-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.interest-link:hover,
.interest-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 179, 107, 0.4);
  background: rgba(255, 179, 107, 0.06);
  outline: none;
}

.interest-link strong {
  font-size: 1.1rem;
  color: var(--text);
}

.interest-link span {
  line-height: 1.6;
  color: var(--muted);
}

.manifesto {
  margin-top: 72px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 179, 107, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(123, 226, 195, 0.08), transparent 70%),
    var(--panel);
}

.manifesto-text {
  max-width: 18ch;
  margin: 18px 0 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.manifesto-note {
  max-width: 42rem;
  margin: 20px 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.site-footer {
  margin-top: 34px;
  padding: 12px 4px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 1, 0.3, 1);
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .interest-board,
  .interest-grid {
    grid-template-columns: 1fr;
  }

  .card-highlight {
    transform: none;
  }

  .manifesto-text {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 1160px);
    padding-top: 20px;
  }

  .site-header,
  .site-footer,
  .panel-row,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-row strong {
    text-align: left;
    max-width: none;
  }

  h1 {
    max-width: none;
  }

  .rotating-word {
    min-width: auto;
  }
}

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

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

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