:root {
  --bg: #08111b;
  --bg-secondary: #111c28;
  --card: #162433;
  --accent: #7fd8ff;
  --accent-secondary: #3ca6c9;
  --gold: #c9a86a;
  --text: #ececec;
  --muted: #afc1cf;
  --border: rgba(127, 216, 255, 0.15);
  --border-strong: rgba(127, 216, 255, 0.32);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --glow: 0 0 28px rgba(127, 216, 255, 0.18);
  --radius: 14px;
  --max-width: 1180px;
  --header-height: 76px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(60, 166, 201, 0.14), transparent 34rem),
    linear-gradient(180deg, #08111b 0%, #0a1520 42%, #08111b 100%);
  color: var(--text);
  font-family: Avenir, "Avenir Next", "Segoe UI", Corbel, system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  background: var(--accent);
  border-radius: 0 0 10px 10px;
  color: #06111b;
  font-weight: 700;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 0;
  transform: translateY(-120%);
  transition: transform 180ms ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(8, 17, 27, 0.76);
  border-bottom: 1px solid var(--border);
  left: 0;
  min-height: var(--header-height);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 220ms ease, box-shadow 220ms ease;
  z-index: 100;
}

.site-header.is-scrolled {
  background: rgba(8, 17, 27, 0.92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: calc(var(--max-width) + 2rem);
  min-height: var(--header-height);
  padding: 0 1rem;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  gap: 0.8rem;
  min-width: 0;
}

.brand-sigil {
  background:
    linear-gradient(145deg, rgba(127, 216, 255, 0.22), rgba(201, 168, 106, 0.18)),
    var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: var(--glow);
  display: block;
  flex: 0 0 auto;
  height: 2.45rem;
  object-fit: cover;
  width: 2.45rem;
}

.brand-name {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.nav-links a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(127, 216, 255, 0.07);
  border-color: var(--border);
  box-shadow: var(--glow);
  color: var(--text);
}

.nav-toggle {
  background: rgba(22, 36, 51, 0.86);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: none;
  height: 2.75rem;
  position: relative;
  width: 2.75rem;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  background: var(--text);
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 0.72rem;
  position: absolute;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 1.25rem;
}

.nav-toggle-line {
  top: 1.34rem;
}

.nav-toggle-line::before {
  left: 0;
  top: -0.42rem;
}

.nav-toggle-line::after {
  left: 0;
  top: 0.42rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::before {
  transform: translateY(0.42rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line::after {
  transform: translateY(-0.42rem) rotate(-45deg);
}

.section-bleed {
  position: relative;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 1rem;
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero,
.request-hero {
  align-items: center;
  display: flex;
  min-height: 78vh;
  overflow: hidden;
  padding: calc(var(--header-height) + 3rem) 0 5rem;
}

.hero {
  min-height: 88vh;
}

.hero-media {
  background-image: url("assets/abyssal-archive.png");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1.02);
}

.request-media {
  background-position: center top;
}

.hero-shade {
  background:
    radial-gradient(circle at 32% 44%, rgba(127, 216, 255, 0.08), transparent 24rem),
    linear-gradient(90deg, rgba(8, 17, 27, 0.92) 0%, rgba(8, 17, 27, 0.74) 42%, rgba(8, 17, 27, 0.32) 100%),
    linear-gradient(180deg, rgba(8, 17, 27, 0.35) 0%, rgba(8, 17, 27, 0.66) 74%, #08111b 100%);
  inset: 0;
  position: absolute;
}

.hero-inner,
.request-hero-inner {
  max-width: 760px;
}

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

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

h1,
h2,
h3 {
  color: var(--text);
  font-family: Optima, Candara, "Segoe UI", system-ui, sans-serif;
  font-weight: 650;
  line-height: 1.06;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.16rem;
  margin-bottom: 0.7rem;
}

p {
  color: var(--muted);
}

.hero-subtitle {
  color: var(--accent);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-description,
.request-hero-inner p {
  font-size: 1.08rem;
  max-width: 650px;
}

.hero-description strong {
  color: var(--text);
  display: block;
  font-size: 1.18em;
  margin-bottom: 0.45rem;
}

.hero-description span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 14px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.15rem;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 16px 42px rgba(60, 166, 201, 0.24);
  color: #06111b;
}

.button-primary:hover {
  box-shadow: 0 18px 56px rgba(127, 216, 255, 0.34);
}

.button-secondary {
  background: rgba(22, 36, 51, 0.72);
  border-color: var(--border-strong);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(22, 36, 51, 0.95);
  box-shadow: var(--glow);
}

.intro-band {
  background:
    linear-gradient(90deg, rgba(201, 168, 106, 0.08), transparent 32%),
    var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0;
}

.intro-grid {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.05fr 0.95fr;
}

.intro-grid h2 {
  font-size: clamp(1.8rem, 3.1vw, 3.15rem);
  margin-bottom: 0;
}

.intro-grid p:last-child {
  font-size: 1.02rem;
  margin-bottom: 0;
}

.content-section {
  padding: 7rem 0;
}

.split-layout {
  display: grid;
  gap: 4rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.section-copy {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-card,
.archive-card,
.request-form,
.request-note {
  background:
    linear-gradient(145deg, rgba(127, 216, 255, 0.055), transparent 48%),
    rgba(22, 36, 51, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 1.4rem;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.archive-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow);
  transform: translateY(-3px);
}

.feature-index {
  color: var(--gold);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.feature-card p,
.archive-card p {
  margin-bottom: 0;
}

.experience-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(127, 216, 255, 0.09), transparent 22rem),
    var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 2.6rem;
  max-width: 750px;
}

.archive-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.archive-card {
  min-height: 18rem;
  padding: 1.5rem;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.archive-icon {
  background:
    radial-gradient(circle at 35% 35%, var(--accent), transparent 32%),
    linear-gradient(145deg, rgba(127, 216, 255, 0.22), rgba(60, 166, 201, 0.1));
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  box-shadow: var(--glow);
  height: 3rem;
  margin-bottom: 1.4rem;
  width: 3rem;
}

.archive-icon-gold {
  background:
    radial-gradient(circle at 35% 35%, var(--gold), transparent 34%),
    linear-gradient(145deg, rgba(201, 168, 106, 0.22), rgba(127, 216, 255, 0.08));
}

.archive-icon-blue {
  background:
    radial-gradient(circle at 35% 35%, var(--accent-secondary), transparent 34%),
    linear-gradient(145deg, rgba(60, 166, 201, 0.3), rgba(201, 168, 106, 0.06));
}

.cta-section {
  background:
    linear-gradient(180deg, rgba(8, 17, 27, 0.1), rgba(8, 17, 27, 0.84)),
    radial-gradient(circle at 50% 0%, rgba(127, 216, 255, 0.12), transparent 28rem);
  padding: 7rem 0;
  text-align: center;
}

.cta-inner {
  max-width: 780px;
}

.cta-inner p {
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
}

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

.request-section {
  padding-top: 5rem;
}

.request-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(18rem, 0.42fr) minmax(0, 1fr);
}

.request-note,
.request-form {
  padding: 1.5rem;
}

.request-note {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.note-panel {
  background: rgba(8, 17, 27, 0.45);
  border: 1px solid rgba(201, 168, 106, 0.22);
  border-radius: 12px;
  margin-top: 1.4rem;
  padding: 1rem;
}

.note-kicker {
  color: var(--gold);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.note-panel p {
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-wide {
  grid-column: 1 / -1;
}

.field-group label {
  color: var(--text);
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.field-group label span {
  color: var(--accent);
}

input,
select,
textarea {
  background: rgba(8, 17, 27, 0.58);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  min-height: 3.05rem;
  padding: 0.82rem 0.9rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  width: 100%;
}

textarea {
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 1.38rem,
    calc(100% - 12px) 1.38rem;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 2.5rem;
}

input:hover,
select:hover,
textarea:hover,
input:focus,
select:focus,
textarea:focus {
  background: rgba(8, 17, 27, 0.72);
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}

.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error textarea {
  border-color: rgba(201, 168, 106, 0.72);
}

.field-error {
  color: #f0cf91;
  font-size: 0.84rem;
  margin: 0.38rem 0 0;
  min-height: 1.2rem;
}

.form-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.6rem;
  padding-top: 1.3rem;
}

.form-feedback {
  margin-bottom: 0;
}

.form-feedback.success {
  color: var(--accent);
}

.form-feedback.error {
  color: #f0cf91;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    background: rgba(8, 17, 27, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.25rem;
    left: 0;
    opacity: 0;
    padding: 0.75rem 1rem 1rem;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: var(--header-height);
    transform: translateY(-0.6rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
  }

  .hero,
  .request-hero {
    min-height: auto;
    padding-bottom: 3rem;
    padding-top: calc(var(--header-height) + 4rem);
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 17, 27, 0.94) 0%, rgba(8, 17, 27, 0.76) 100%),
      linear-gradient(180deg, rgba(8, 17, 27, 0.25) 0%, #08111b 100%);
  }

  .intro-grid,
  .split-layout,
  .request-layout {
    grid-template-columns: 1fr;
  }

  .section-copy,
  .request-note {
    position: static;
  }

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

  .archive-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 0.88rem;
  }

  .hero-actions,
  .form-footer,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .content-section,
  .cta-section {
    padding: 4.5rem 0;
  }

  .intro-band {
    padding: 3.5rem 0;
  }

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

  .request-form,
  .request-note {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
