:root {
  --bg: #030711;
  --bg-deep: #07111f;
  --bg-mid: #0b1f36;
  --navy: #0f2945;
  --navy-soft: #173a5d;
  --gold: #caa053;
  --gold-soft: #e2c47a;
  --ivory: #ece7da;
  --text: #f3f4f6;
  --muted: #aeb7c2;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(28px, 4vw, 54px) 24px clamp(76px, 8vw, 110px);
  background:
    radial-gradient(circle at 18% 24%, rgba(202, 160, 83, .16), transparent 24%),
    radial-gradient(circle at 78% 20%, rgba(24, 61, 96, .28), transparent 30%),
    radial-gradient(circle at 50% 58%, rgba(18, 42, 70, .42), transparent 40%),
    linear-gradient(145deg, #02050b 0%, #061120 38%, #091a2f 63%, #03070e 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: .38;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, #000 12%, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 160px rgba(0,0,0,.58);
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  opacity: .18;
  z-index: -1;
  pointer-events: none;
}

.ambient-gold {
  width: 38vw;
  aspect-ratio: 1;
  left: -10vw;
  top: -14vw;
  background: rgba(209, 165, 79, .9);
}

.ambient-blue {
  width: 42vw;
  aspect-ratio: 1;
  right: -16vw;
  bottom: -14vw;
  background: rgba(31, 87, 132, .75);
}

.ambient-center {
  width: min(880px, 82vw);
  height: min(520px, 48vw);
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(11, 38, 64, .55) 0%, rgba(11, 38, 64, .15) 46%, transparent 74%);
  filter: blur(24px);
  opacity: .92;
}

.synapse-field {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  z-index: -1;
  opacity: .28;
  filter: drop-shadow(0 0 8px rgba(171, 208, 233, .12));
  transition: transform .35s ease-out;
}

.links path {
  fill: none;
  stroke: rgba(166, 193, 218, .24);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.nodes circle {
  fill: rgba(214, 177, 95, .76);
  stroke: rgba(245, 225, 178, .62);
  stroke-width: .85;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 5.8s ease-in-out infinite;
}

.nodes circle:nth-child(3n) { animation-delay: -1.4s; }
.nodes circle:nth-child(4n) { animation-delay: -3.2s; }
.nodes circle:nth-child(5n) { animation-delay: -.6s; }

@keyframes pulse {
  0%, 100% { opacity: .28; transform: scale(.88); }
  50% { opacity: .98; transform: scale(1.18); }
}

.content {
  position: relative;
  z-index: 2;
  width: min(1180px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo-wrap {
  position: relative;
  width: min(1080px, 94vw);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  padding: clamp(8px, 1vw, 12px) clamp(10px, 1.2vw, 14px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(5, 13, 22, .10), rgba(5, 13, 22, .02));
}

.logo-wrap::before {
  content: "";
  position: absolute;
  inset: 13% 8% 18%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 66% 48%, rgba(96, 131, 170, .30) 0%, rgba(42, 79, 116, .16) 34%, rgba(9, 28, 48, 0) 64%),
    radial-gradient(ellipse at 66% 48%, rgba(18, 45, 72, .18) 0%, rgba(9, 28, 48, 0) 72%),
    radial-gradient(circle at 20% 48%, rgba(202,160,83,.15) 0%, rgba(9, 28, 48, 0) 42%);
  filter: blur(28px);
  z-index: -1;
}


.logo {
  display: block;
  width: min(100%, 1040px);
  height: auto;
  max-height: 54vh;
  object-fit: contain;
  margin-inline: auto;
  filter:
    brightness(1.24)
    contrast(1.14)
    saturate(1.06)
    drop-shadow(0 22px 50px rgba(0, 0, 0, .42))
    drop-shadow(0 0 18px rgba(205, 164, 78, .12))
    drop-shadow(0 0 20px rgba(71, 116, 168, .18));
  user-select: none;
  -webkit-user-drag: none;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 56px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: .01em;
  text-wrap: balance;
  color: #cdc6ba;
  text-shadow: 0 8px 26px rgba(0,0,0,.45);
}

.latin {
  margin: clamp(16px, 1.8vw, 22px) 0 0;
  color: rgba(225, 196, 126, .86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(11px, 1.08vw, 16px);
  letter-spacing: .34em;
  text-transform: uppercase;
}

.internal-access {
  position: absolute;
  right: clamp(24px, 3vw, 42px);
  bottom: clamp(56px, 5.6vw, 78px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 16px 8px;
  border: 1px solid rgba(205, 166, 83, .42);
  border-radius: 999px;
  color: rgba(226, 196, 122, .82);
  background: rgba(5, 15, 28, .38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 10px 28px rgba(0,0,0,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .76;
  transition:
    color .2s ease,
    border-color .2s ease,
    background-color .2s ease,
    opacity .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.internal-access:hover,
.internal-access:focus-visible {
  color: rgba(243, 220, 162, .98);
  border-color: rgba(218, 180, 96, .72);
  background: rgba(10, 31, 53, .70);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

.internal-access:focus-visible {
  outline: 1px solid rgba(226, 196, 122, .68);
  outline-offset: 3px;
}

.site-note {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 2.4vw, 30px);
  transform: translateX(-50%);
  width: min(780px, calc(100% - 120px));
  margin: 0;
  z-index: 3;
  color: rgba(190, 199, 208, .56);
  font-size: clamp(10px, .86vw, 12px);
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.corner-mark {
  position: absolute;
  width: 90px;
  height: 90px;
  opacity: .34;
  pointer-events: none;
}

.corner-top {
  top: 24px;
  right: 26px;
  border-top: 1px solid rgba(218, 183, 103, .38);
  border-right: 1px solid rgba(218, 183, 103, .38);
}

.corner-bottom {
  left: 26px;
  bottom: 24px;
  border-left: 1px solid rgba(218, 183, 103, .26);
  border-bottom: 1px solid rgba(218, 183, 103, .26);
}

@media (max-width: 860px) {
  .hero { padding-inline: 18px; }
  .logo-wrap { width: min(920px, 98vw); margin-bottom: 14px; }
  .logo {
    max-height: 44vh;
    filter:
      brightness(1.31)
      contrast(1.15)
      saturate(1.06)
      drop-shadow(0 16px 34px rgba(0, 0, 0, .38))
      drop-shadow(0 0 16px rgba(205, 164, 78, .12))
      drop-shadow(0 0 18px rgba(71, 116, 168, .18));
  }
  h1 { font-size: clamp(27px, 5vw, 44px); }
  .latin { letter-spacing: .24em; }
  .synapse-field { opacity: .22; }
}

@media (max-width: 480px) {
  .hero { padding-top: 22px; padding-bottom: 74px; }
  .logo-wrap { width: 100%; padding-inline: 10px; }
  .logo { max-height: 34vh; }
  h1 { font-size: clamp(24px, 7vw, 34px); }
  .latin { font-size: 11px; letter-spacing: .18em; }
  .internal-access {
    left: 50%;
    right: auto;
    bottom: 48px;
    transform: translateX(-50%);
    min-height: 32px;
    padding: 8px 14px 7px;
    font-size: 9px;
  }
  .internal-access:hover,
  .internal-access:focus-visible {
    transform: translateX(-50%) translateY(-1px);
  }
  .site-note {
    width: calc(100% - 36px);
    bottom: 14px;
    font-size: 9px;
    letter-spacing: .03em;
    white-space: normal;
  }
  .corner-mark { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .nodes circle { animation: none; }
  .synapse-field { transition: none; }
}
