:root {
  --editorial-midnight: #050713;
  --editorial-ink: #080b18;
  --editorial-panel: rgba(10, 14, 29, 0.84);
  --editorial-panel-strong: rgba(7, 10, 22, 0.94);
  --editorial-pearl: #f7f1e8;
  --editorial-mist: #aeb9ce;
  --editorial-cyan: #66e7ef;
  --editorial-amber: #edc98c;
  --editorial-line: rgba(174, 185, 206, 0.2);
  --editorial-line-strong: rgba(102, 231, 239, 0.34);
  --editorial-serif: "Fraunces", Georgia, serif;
}

body[data-bia-page="landing"],
body[data-bia-page="research"],
body[data-bia-page="research-capstone"],
body[data-bia-page="teaser-status"] {
  color: var(--editorial-pearl);
  background:
    radial-gradient(circle at 86% 8%, rgba(102, 231, 239, 0.075), transparent 30rem),
    radial-gradient(circle at 12% 32%, rgba(111, 82, 176, 0.09), transparent 34rem),
    linear-gradient(160deg, var(--editorial-midnight), var(--editorial-ink) 58%, #070d1a);
}

.landing-background {
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(102, 231, 239, 0.035) 7% 7.08%, transparent 7.08%),
    linear-gradient(180deg, transparent, rgba(3, 6, 15, 0.36));
}

.landing-background .orb1,
.landing-background .orb2,
.landing-background .orb3 {
  opacity: 0.1 !important;
  filter: blur(72px) saturate(0.68) !important;
}

.landing-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.landing-header {
  border-bottom: 1px solid var(--editorial-line);
}

.bia-wordmark,
.brand-copy h1 {
  color: var(--editorial-pearl);
  font-family: var(--editorial-serif);
  font-weight: 550;
  letter-spacing: -0.035em;
}

.landing-card,
.landing-mini-panel,
.landing-path-card,
.paper-library-card,
.paper,
.paper-wayfinding-card,
.paper-related-card,
.teaser-status-card {
  color: var(--editorial-pearl);
  border: 1px solid var(--editorial-line);
  background: var(--editorial-panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.landing-card,
.paper,
.teaser-status-card {
  border-radius: 12px;
}

.landing-mini-panel,
.landing-path-card,
.paper-library-card,
.paper-wayfinding-card,
.paper-related-card {
  border-radius: 8px;
}

.landing-card--stacked {
  background:
    linear-gradient(90deg, var(--editorial-cyan), var(--editorial-amber)) top left / 100% 2px no-repeat,
    var(--editorial-panel-strong);
}

.landing-title,
.landing-panel-title,
.landing-path-title,
.paper-library-title,
.paper h1,
.paper h2,
.paper h3,
.teaser-status-card h1 {
  color: var(--editorial-pearl);
  font-family: var(--editorial-serif);
  font-variation-settings: "SOFT" 55, "WONK" 0;
  letter-spacing: -0.035em;
}

.landing-kicker,
.landing-section-label,
.paper-kicker,
.paper-section-label,
.paper-library-type {
  color: var(--editorial-cyan);
  letter-spacing: 0.17em;
}

.landing-subtitle,
.landing-path-copy,
.landing-category-note,
.paper-library-copy,
.paper-library-note,
.paper-lede,
.paper p,
.paper li,
.meta,
.teaser-status-card p {
  color: var(--editorial-mist);
}

.landing-phonetic,
.landing-path-note,
.paper strong,
.paper em,
.paper-library-card--featured .paper-library-note {
  color: var(--editorial-amber);
}

.landing-mini-panel,
.landing-path-card,
.paper-wayfinding-card,
.paper-related-card {
  background: rgba(8, 12, 25, 0.72);
  box-shadow: none;
}

.landing-mini-panel:hover,
.landing-path-card:hover,
.paper-library-card:hover,
.paper-wayfinding-card:hover,
.paper-related-card:hover {
  border-color: var(--editorial-line-strong);
  transform: translateY(-2px);
}

.cta-link,
.teaser-action,
button[type="submit"] {
  border: 1px solid rgba(102, 231, 239, 0.42);
  background: rgba(8, 13, 27, 0.92);
  color: var(--editorial-pearl) !important;
  box-shadow: none;
}

.cta-link--primary,
.teaser-action--primary,
button[type="submit"] {
  border-color: rgba(237, 201, 140, 0.62);
  background: var(--editorial-pearl);
  color: var(--editorial-ink) !important;
}

body[data-bia-page="landing"] .contact-submit {
  border-color: rgba(237, 201, 140, 0.62) !important;
  background: var(--editorial-pearl) !important;
  color: var(--editorial-ink) !important;
  text-shadow: none;
}

body[data-bia-page="landing"] .contact-submit:hover,
body[data-bia-page="landing"] .contact-submit:focus-visible {
  border-color: var(--editorial-cyan) !important;
  color: var(--editorial-ink) !important;
}

.cta-link:hover,
.cta-link:focus-visible,
.teaser-action:hover,
.teaser-action:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible {
  border-color: var(--editorial-cyan);
  filter: brightness(1.06);
}

input,
textarea,
select {
  border: 1px solid var(--editorial-line) !important;
  background: rgba(5, 7, 19, 0.82) !important;
  color: var(--editorial-pearl) !important;
  box-shadow: none !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--editorial-cyan) !important;
  outline: 2px solid rgba(102, 231, 239, 0.16);
  outline-offset: 2px;
}

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

.paper-library-card {
  position: relative;
  overflow: hidden;
  background: rgba(8, 12, 25, 0.78);
  box-shadow: none;
}

.paper-library-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(var(--editorial-cyan), rgba(237, 201, 140, 0.7));
  opacity: 0.5;
}

.paper-library-card--featured {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 90% 5%, rgba(102, 231, 239, 0.08), transparent 18rem),
    rgba(8, 12, 25, 0.9);
}

.paper {
  background:
    linear-gradient(90deg, var(--editorial-cyan), var(--editorial-amber)) top left / 100% 2px no-repeat,
    var(--editorial-panel-strong);
}

.paper hr,
.paper-header,
.paper-footer,
.landing-footer {
  border-color: var(--editorial-line);
}

.abstract,
.paper blockquote,
.paper-callout,
.paper-definition {
  border-color: var(--editorial-line-strong);
  background: rgba(102, 231, 239, 0.035);
}

.teaser-status-shell {
  background: transparent;
}

.teaser-status-card {
  background:
    linear-gradient(90deg, var(--editorial-cyan), var(--editorial-amber)) top left / 100% 2px no-repeat,
    var(--editorial-panel-strong);
}

a {
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: var(--editorial-cyan);
}

@media (max-width: 760px) {
  .landing-shell {
    width: min(100% - 24px, 1180px);
  }

  .paper-library-grid {
    grid-template-columns: 1fr;
  }

  .paper-library-card--featured {
    grid-column: auto;
  }

  .landing-card,
  .paper,
  .teaser-status-card {
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-mini-panel,
  .landing-path-card,
  .paper-library-card,
  .paper-wayfinding-card,
  .paper-related-card,
  .cta-link,
  .teaser-action,
  button[type="submit"] {
    transition: none !important;
  }
}
