:root {
  --bg-top: #121218;
  --bg-bottom: #020204;
  --panel: rgba(11, 11, 15, 0.94);
  --panel-border: rgba(185, 178, 190, 0.24);
  --text-main: #f3f2f5;
  --text-soft: #b2acb7;
  --accent: #8a2e46;
  --accent-soft: rgba(138, 46, 70, 0.3);
  --shadow: rgba(0, 0, 0, 0.62);
  --panel-glow: rgba(138, 46, 70, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Verdana, Geneva, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(150, 56, 80, 0.18), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(92, 103, 134, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.02) 0 10px,
      transparent 10px 20px
    );
  background-size: 100% 3px, auto;
  opacity: 0.14;
}

body::after {
  background:
    radial-gradient(circle at 15% 20%, rgba(138, 46, 70, 0.26), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(78, 88, 118, 0.18), transparent 26%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.page-shell {
  width: min(100%, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  place-items: center;
}

.panel {
  width: min(100%, 760px);
  position: relative;
  padding: 32px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0 2px,
      transparent 2px 4px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 14%),
    linear-gradient(180deg, rgba(39, 27, 35, 0.52), rgba(11, 11, 15, 0.98) 28%);
  box-shadow:
    0 24px 60px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  pointer-events: none;
}

.splash-panel {
  text-align: center;
}

.hub-panel {
  --panel-glow: rgba(138, 46, 70, 0.26);
}

.hub-panel::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px;
  height: 120px;
  border-radius: 999px;
  background: var(--panel-glow);
  filter: blur(44px);
  opacity: 0.85;
  pointer-events: none;
}

.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d16d87;
  text-shadow: 0 0 12px rgba(209, 109, 135, 0.14);
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: italic;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.page-hub h1,
.page-placeholder h1 {
  font-size: clamp(2rem, 7vw, 3.6rem);
}

.lede,
.body-copy {
  max-width: 44rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.lede {
  margin: 24px auto 0;
  font-size: 1rem;
  font-style: italic;
}

.body-copy {
  margin: 18px 0 0;
  font-size: 0.98rem;
}

.splash-panel .body-copy {
  margin-left: auto;
  margin-right: auto;
}

.action-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-button,
.project-button,
.text-link {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.nav-button,
.project-button {
  text-decoration: none;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 0.95rem 1.4rem;
  border: 1px solid rgba(170, 160, 176, 0.24);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(124, 39, 60, 0.88), rgba(46, 18, 28, 0.98));
  color: var(--text-main);
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 0.86rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

.secondary-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(64, 58, 77, 0.88), rgba(20, 18, 26, 0.98));
}

.text-link {
  color: #cac2cd;
  text-decoration: underline;
  text-decoration-color: rgba(202, 194, 205, 0.32);
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

.project-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.project-button {
  position: relative;
  display: block;
  padding: 1rem 1.2rem 1rem 1.4rem;
  border: 1px solid rgba(170, 160, 176, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(37, 33, 44, 0.96), rgba(11, 11, 15, 0.99));
  color: var(--text-main);
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 420ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

.project-button::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 48%);
  border-radius: 6px;
  pointer-events: none;
}

.nav-button:hover,
.nav-button:focus-visible,
.project-button:hover,
.project-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 32px rgba(0, 0, 0, 0.38);
  border-color: rgba(209, 109, 135, 0.42);
  color: #ffffff;
}

.text-link:hover,
.text-link:focus-visible {
  color: #ffffff;
}

.nav-button:focus-visible,
.project-button:focus-visible,
.text-link:focus-visible {
  outline: 2px solid #d16d87;
  outline-offset: 4px;
}

.placeholder-panel {
  text-align: center;
}

.is-ready .splash-panel,
.is-ready .placeholder-panel,
.is-ready .hub-panel {
  animation: panel-in 520ms ease;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .page-shell {
    padding: 24px 14px;
  }

  .panel {
    padding: 24px;
    border-radius: 8px;
  }

  .panel::before {
    inset: 10px;
    border-radius: 4px;
  }

  .panel-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .text-link {
    white-space: normal;
  }

  .nav-button,
  .project-button {
    width: 100%;
  }
}
