:root {
  color-scheme: dark;
  --background: #090d17;
  --surface: #111827;
  --ink: #f5f7fe;
  --muted: #a5afc3;
  --accent: #9aabff;
  --button: #5369f8;
  --border: #222c42;
  --header-height: 72px;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #bac5ff; outline-offset: 5px; }
[id] { scroll-margin-top: calc(var(--header-height) + 20px); }
.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px;
  background: var(--ink);
  color: var(--background);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #090d17f5;
  border-bottom: 1px solid #222a3a;
  backdrop-filter: blur(14px);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  gap: 28px;
}
.brand { display: inline-flex; width: fit-content; }
.brand img {
  display: block;
  width: auto;
  height: 48px;
  border-radius: 4px;
}
.brand-colon { padding-inline: 1px; color: var(--accent); }
.navigation { display: flex; align-self: stretch; gap: 33px; }
.navigation a {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.navigation a:hover, .navigation a[aria-current] { color: var(--ink); }
.navigation a[aria-current]::after {
  position: absolute;
  height: 2px;
  background: #7f91ff;
  inset: auto 0 0;
  content: "";
}
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .18s, border-color .18s;
}
.button span { font-size: 18px; line-height: 1; }
.button-small {
  justify-self: end;
  min-height: 38px;
  padding-inline: 14px;
  border-color: #3c4c91;
  background: #192347;
  color: #d8dfff;
}
.button-small:hover { background: #29376a; }
.button-primary { background: var(--button); box-shadow: 0 5px 25px #344ad344; }
.button-primary:hover { background: #4259e9; }
.button-outline { background: #12172780; border-color: #46506b; }
.button-outline:hover { background: #282f48; border-color: #7684af; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #222d47;
  background: #10192d;
}
.hero-art, .hero::after { position: absolute; inset: 0; pointer-events: none; }
.hero-art {
  z-index: -2;
  background: url("erlc-media-cover.webp") center / cover no-repeat;
}
.hero::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, #090d18 0%, #090d18f3 16%, #090d18ca 36%, #090d1835 66%, #090d180d 100%),
    linear-gradient(0deg, #090d18e8, transparent 28%);
}
.hero-inner {
  position: relative;
  display: flex;
  min-height: 586px;
  align-items: center;
  padding-block: 65px 92px;
}
.hero-copy { max-width: 625px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .115em;
}
.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(53px, 6.1vw, 92px);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -.075em;
}
.hero-accent { color: #96a9ff; }
.hero-description {
  max-width: 455px;
  color: #bec7dc;
  font-size: 17px;
  line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.hero-credit {
  position: absolute;
  bottom: 24px;
  right: 0;
  color: #a1aac1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.hero-credit span { color: var(--accent); }

.section { padding-block: 72px; }
.section-head h2 {
  margin-block: 12px 14px;
  font-size: clamp(30px, 4vw, 51px);
  line-height: 1.18;
  letter-spacing: -.055em;
}
.section-head > p:last-of-type:not(.eyebrow) {
  max-width: 630px;
  color: var(--muted);
  line-height: 1.85;
}
.section-line { width: 18px; height: 2px; background: #8599ff; }
.heading-accent { color: var(--accent); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.feature, .route {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.feature { display: flex; flex-direction: column; align-items: flex-start; padding: 25px; }
.group-number { margin-top: auto; color: var(--accent); letter-spacing: .08em; }
.feature h3, .route h3 { font-size: 19px; }
.feature p, .route p, .security-note p {
  color: var(--muted);
  margin-block: 9px 16px;
  font-size: 14px;
  line-height: 1.8;
}
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #a7b6ff; font-size: 14px; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature .text-link { margin-top: auto; }

.guide { background: #0c121f; border-block: 1px solid var(--border); }
.guide-grid, .faq-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.routes { display: grid; gap: 12px; }
.route { padding: 20px 22px; }
.route p { margin-bottom: 0; }
.security-note { margin-top: 24px; border-left: 2px solid #7489ff; padding: 13px 16px; background: #141d36; border-radius: 0 8px 8px 0; }
.security-note h3 { font-size: 15px; }
.security-note p { margin-bottom: 0; }

.questions { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 15px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary span::before { content: "+"; color: var(--accent); font-size: 23px; font-weight: 400; }
details[open] > summary span::before { content: "−"; }
details p { margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }

.portfolio {
  border-bottom: 1px solid var(--border);
  background: #0c121f;
}
.collections {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.collection summary { padding-inline: 4px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0 4px 16px;
  list-style: none;
}
.work {
  display: block;
  overflow: hidden;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: zoom-in;
}
.work:hover { border-color: var(--accent); }
.work img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #080c15;
}
.work-viewer {
  width: min(1200px, 96vw);
  max-width: 96vw;
  max-height: 94dvh;
  padding: 12px;
  color: var(--ink);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.work-viewer::backdrop { background: #03050bed; }
.viewer-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.viewer-bar button { min-height: 42px; white-space: nowrap; cursor: pointer; }
.viewer-image { display: block; width: 100%; height: auto; max-height: 75dvh; object-fit: contain; }

.site-footer { border-top: 1px solid var(--border); padding-block: 29px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.site-footer p { margin-top: 8px; color: var(--muted); font-size: 12px; }

@media (max-width: 840px) {
  .wrap { width: calc(100% - 56px); }
  .header-inner { gap: 18px; }
  .navigation { gap: 20px; }
  .hero-inner { min-height: 0; padding-block: 28px 64px; }
  .hero-art {
    position: relative;
    aspect-ratio: 1280 / 611;
    background-size: contain;
  }
  .hero::after { content: none; }
  .feature-grid { gap: 12px; }
  .feature { padding: 18px; }
}

@media (max-width: 650px) {
  :root { --header-height: 62px; }
  .wrap { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-action { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
  }
  .menu-toggle span { width: 17px; height: 2px; border-radius: 2px; background: currentColor; }
  .navigation {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--background);
  }
  .menu-toggle[aria-expanded="true"] + .navigation { display: flex; }
  .navigation a { min-height: 46px; padding-inline: 10px; }
  .navigation a[aria-current]::after { inset: auto auto 8px 10px; width: 18px; }
  .hero h1 { font-size: clamp(41px, 10.8vw, 62px); }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 9px; }
  .button { padding-inline: 13px; }
  .hero-credit { right: auto; left: 0; bottom: 19px; font-size: 8px; }
  .section { padding-block: 50px; }
  .feature-grid, .guide-grid, .faq-grid { grid-template-columns: 1fr; gap: 14px; }
  .guide-grid { gap: 20px; }
  .footer-inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
