:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #181a20;
  --panel-strong: #20232b;
  --text: #f2f4f7;
  --muted: #a8b0bd;
  --line: #313642;
  --gold: #f0a71f;
  --gold-strong: #ffb72e;
  --teal: #2dd4bf;
  --green: #66d18f;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 260px),
    var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 18% 16%, rgba(240, 167, 31, 0.13), transparent 34%);
  pointer-events: none;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 17, 20, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 720;
}

.brand img {
  border-radius: 9px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

.support-link {
  color: var(--gold-strong);
  font-weight: 720;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100vh - 68px));
  overflow: hidden;
  padding: clamp(68px, 10vw, 124px) clamp(20px, 5vw, 72px) clamp(52px, 7vw, 86px);
}

.atlas-hero {
  background:
    linear-gradient(90deg, rgba(10, 10, 11, 0.18), rgba(10, 10, 11, 0.55) 44%, rgba(10, 10, 11, 0.84) 100%),
    linear-gradient(0deg, rgba(10, 10, 11, 0.64), rgba(10, 10, 11, 0.1) 42%, rgba(10, 10, 11, 0.62)),
    url("/assets/atlas-cover.png") left center / cover no-repeat;
}

.atlas-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-left: clamp(0px, 31vw, 620px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 10vw, 8.5rem);
  line-height: 0.95;
}

.lede {
  max-width: 680px;
  color: #d5d9e0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #16130c;
}

.button.primary:hover {
  background: var(--gold-strong);
}

.button.secondary {
  border: 1px solid var(--line);
  color: #e5e7eb;
}

.button.secondary:hover {
  border-color: #505767;
  background: rgba(255, 255, 255, 0.04);
}

.button.support {
  border: 1px solid rgba(240, 167, 31, 0.45);
  background: rgba(240, 167, 31, 0.12);
  color: var(--gold-strong);
}

.button.support:hover {
  border-color: var(--gold-strong);
  background: rgba(240, 167, 31, 0.18);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.intro-band > div {
  min-height: 132px;
  padding: 26px clamp(20px, 5vw, 72px);
  background: var(--panel);
}

.metric {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 760;
}

.intro-band p,
.section-heading p,
.project-card p,
footer {
  color: var(--muted);
  line-height: 1.55;
}

.projects-section {
  padding: clamp(54px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  min-height: 206px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.project-card:hover {
  border-color: #555d6f;
  background: var(--panel-strong);
}

.project-card h3 {
  margin: 18px 0 10px;
  font-size: 1.1rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

.pill {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--teal);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

footer a {
  color: #d5d9e0;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 140px);
  padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 72px);
}

.contact-panel,
.thread-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.contact-panel {
  padding: 18px;
}

.thread-panel {
  display: flex;
  min-height: 560px;
  flex-direction: column;
}

.thread-header,
.composer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.composer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.conversation-list,
.messages {
  display: grid;
  gap: 10px;
}

.conversation-button {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #12141a;
  color: var(--text);
  text-align: left;
}

.conversation-button.active,
.conversation-button:hover {
  border-color: #666f83;
  background: var(--panel-strong);
}

.messages {
  flex: 1;
  align-content: start;
  overflow: auto;
  padding: 18px;
}

.message {
  max-width: min(680px, 86%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #12141a;
}

.message.admin {
  justify-self: end;
  border-color: rgba(240, 167, 31, 0.36);
  background: rgba(240, 167, 31, 0.12);
}

.message-meta,
.contact-muted {
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1116;
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
}

.contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

.contact-status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
    background-position: 18% center;
  }

  .hero-copy {
    margin-left: 0;
    max-width: 100%;
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .contact-shell {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}
