:root {
  --midnight: #051e38;
  --deep-blue: #0f3052;
  --blue: #25477c;
  --mist-blue: #3c6492;
  --gold: #efb252;
  --gold-deep: #aa7220;
  --gold-shadow: #885b16;
  --ivory: #ffdfa0;
  --soft-white: #fff7e8;
  --panel: rgba(5, 30, 56, 0.68);
  --line: rgba(255, 223, 160, 0.25);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--soft-white);
  background:
    radial-gradient(circle at 50% 8%, rgba(60, 100, 146, 0.34), transparent 30rem),
    radial-gradient(circle at 20% 30%, rgba(239, 178, 82, 0.14), transparent 22rem),
    radial-gradient(circle at 80% 56%, rgba(37, 71, 124, 0.28), transparent 28rem),
    linear-gradient(180deg, #020916 0%, var(--midnight) 46%, #020916 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 247, 232, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(239, 178, 82, 0.44) 0 1px, transparent 1.5px);
  background-position: 0 0, 42px 63px;
  background-size: 150px 150px, 230px 230px;
  opacity: 0.2;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
.portal-main,
.portal-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  text-decoration: none;
}

.brand-mark img,
.portal-emblem img {
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 223, 160, 0.34);
}

.brand-mark img {
  width: 40px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  border: 1px solid rgba(255, 223, 160, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  color: rgba(255, 247, 232, 0.78);
  font-size: 0.78rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ivory);
  border-color: rgba(255, 223, 160, 0.5);
  background: rgba(5, 30, 56, 0.52);
}

.portal-main {
  padding: 48px 0 72px;
}

.hero {
  min-height: 76vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-inner {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.portal-emblem {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 223, 160, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 223, 160, 0.12), rgba(5, 30, 56, 0.28) 68%, transparent 72%);
  box-shadow: 0 0 54px rgba(239, 178, 82, 0.2);
}

.portal-emblem img {
  width: 78px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(3.4rem, 16vw, 7.4rem);
  line-height: 0.88;
  text-shadow: 0 0 34px rgba(239, 178, 82, 0.32);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 9vw, 3.8rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

p,
li,
label {
  color: rgba(255, 247, 232, 0.78);
  line-height: 1.68;
}

.subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--soft-white);
  font-size: clamp(1.08rem, 3.8vw, 1.36rem);
}

.intro {
  max-width: 760px;
  margin: 0;
}

.pathways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: -8vh;
  padding-bottom: 64px;
}

.portal-card {
  position: relative;
  min-height: 500px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 160, 0.22);
  border-radius: 50%;
  padding: 56px 34px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 223, 160, 0.15), transparent 13rem),
    radial-gradient(circle, rgba(15, 48, 82, 0.72), rgba(5, 30, 56, 0.46) 58%, rgba(2, 9, 22, 0.22) 72%);
  box-shadow:
    inset 0 0 68px rgba(139, 213, 255, 0.08),
    0 24px 90px rgba(0, 0, 0, 0.26);
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 223, 160, 0.1);
  border-radius: inherit;
  animation: portalBreath 7s ease-in-out infinite;
}

.portal-card > * {
  position: relative;
  z-index: 1;
}

.portal-icon {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 223, 160, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--ivory), rgba(239, 178, 82, 0.38) 28%, rgba(60, 100, 146, 0.12) 62%, transparent 72%);
  box-shadow: 0 0 36px rgba(239, 178, 82, 0.24);
}

.portal-card p {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 223, 160, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ivory);
  background: rgba(15, 48, 82, 0.42);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--midnight);
  background: var(--ivory);
  border-color: var(--ivory);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(239, 178, 82, 0.16);
}

.sound-toggle {
  gap: 8px;
  margin-top: 6px;
}

.sound-toggle::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 223, 160, 0.42);
  box-shadow: 0 0 14px rgba(255, 223, 160, 0.42);
}

.sound-toggle.is-playing::before {
  background: var(--gold);
  box-shadow: 0 0 22px rgba(239, 178, 82, 0.8);
}

.content-section {
  display: grid;
  gap: 28px;
  padding: 42px 0;
}

.section-panel {
  border: 1px solid rgba(255, 223, 160, 0.18);
  border-radius: 12px;
  padding: clamp(22px, 5vw, 40px);
  background: rgba(5, 30, 56, 0.44);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

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

.simple-list {
  display: grid;
  gap: 10px;
  padding-left: 1.1rem;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 223, 160, 0.22);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--soft-white);
  background: rgba(2, 9, 22, 0.42);
}

textarea {
  min-height: 124px;
  resize: vertical;
}

input[type="checkbox"] {
  width: 18px;
  margin-top: 5px;
  accent-color: var(--gold);
}

.confirmation {
  display: none;
  border: 1px solid rgba(255, 223, 160, 0.24);
  border-radius: 10px;
  padding: 16px;
  color: var(--ivory);
  background: rgba(239, 178, 82, 0.12);
}

.confirmation.is-visible {
  display: block;
}

.conditional-block {
  display: none;
}

.conditional-block.is-visible {
  display: grid;
  gap: 16px;
}

.is-hidden {
  display: none !important;
}

.scope-note {
  border-left: 2px solid rgba(255, 223, 160, 0.38);
  padding-left: 16px;
  color: rgba(255, 247, 232, 0.72);
}

.portal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 36px 0 46px;
  border-top: 1px solid rgba(255, 223, 160, 0.14);
}

.portal-footer a {
  color: var(--ivory);
}

.portal-footer > div {
  max-width: 760px;
}

.notice-details {
  margin-top: 14px;
  color: rgba(255, 247, 232, 0.78);
}

.notice-details summary {
  width: fit-content;
  color: var(--ivory);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
}

.notice-copy {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 223, 160, 0.18);
  border-radius: 18px;
  background: rgba(5, 30, 56, 0.42);
}

.notice-copy p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.notice-link {
  width: fit-content;
  font-size: 0.9rem;
}

@keyframes portalBreath {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.02);
  }
}

@media (max-width: 980px) {
  .pathways,
  .two-column {
    grid-template-columns: 1fr;
  }

  .pathways {
    margin-top: 24px;
  }

  .portal-card {
    min-height: auto;
    border-radius: 18px;
    padding: 34px 24px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .portal-main,
  .portal-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a,
  .button {
    flex: 1 1 auto;
  }

  .hero {
    min-height: 66vh;
  }
}
