/* ---------------------------------------------------------------------
   EdonMe Studios — design tokens
--------------------------------------------------------------------- */
:root {
  --void: #0a090b;
  --ink: #0d0f0e;
  --panel: #111013;
  --panel-alt: #14131a;
  --border: #2a2430;
  --border-soft: rgba(241, 242, 233, 0.08);
  --text: #f1f2e9;
  --text-dim: rgba(241, 242, 233, 0.64);
  --text-dimmer: rgba(241, 242, 233, 0.42);
  --violet: #b993ff;
  --violet-deep: #6f4bb2;
  --violet-wash: rgba(185, 147, 255, 0.08);
  --violet-line: rgba(185, 147, 255, 0.22);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --max: 1240px;
  --max-narrow: 1060px;
  --max-form: 760px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--violet); color: var(--ink); }

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

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.06em;
}

p { margin: 0; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--max-narrow); }
.container--form { max-width: var(--max-form); }

.eyebrow {
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* dotted grid backdrop used on history-heavy sections */
.grid-bg {
  background-color: var(--void);
  background-image:
    linear-gradient(rgba(185, 147, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 147, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---------------------------------------------------------------------
   Header / nav
--------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: rgba(13, 15, 14, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; object-fit: contain; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a.navlink {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a.navlink:hover,
.nav-links a.navlink[aria-current="page"] { color: var(--violet); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn--solid { background: var(--violet); color: var(--ink); }
.btn--solid:hover { background: var(--text); transform: translateY(-1px); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn--on-violet { background: var(--ink); color: var(--violet); }
.btn--on-violet:hover { background: var(--text); color: var(--ink); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}
.menu-toggle svg { width: 24px; height: 24px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 0 18px;
}
.mobile-nav a { padding: 10px 0; font-size: 15px; color: var(--text-dim); }
.mobile-nav.is-open { display: flex; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-wordmark { right: -12%; width: min(68vw, 360px); opacity: .58; }
}

/* page header used on inner pages (not the homepage) */
.page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.page-header { border-bottom: 1px solid var(--border-soft); position: relative; }
.page-header .brand img { height: 32px; }
.back-home { color: var(--violet); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(137, 94, 201, 0.24), transparent 30%),
    linear-gradient(125deg, #0d0f0e 0%, #111017 55%, #18151f 100%);
}

.hero-wordmark {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: min(38vw, 480px);
  opacity: 0.9;
  filter: drop-shadow(0 0 34px rgba(185,147,255,0.32));
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  margin-left: max(24px, calc((100vw - var(--max)) / 2));
  margin-right: auto;
  padding-right: 42%;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(48px, 8.5vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}
.hero h1 .accent { color: var(--violet); }

.hero p.lede {
  max-width: 490px;
  margin-top: 34px;
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-actions .textlink {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-actions .textlink:hover { color: var(--violet); }
.handshake-icon { width: 17px; height: 17px; flex: 0 0 auto; color: currentColor; }

/* one orchestrated entrance for the hero, nothing else animates */
.hero-anim > * { opacity: 0; animation: rise 0.8s ease forwards; }
.hero-anim > *:nth-child(1) { animation-delay: 0.05s; }
.hero-anim > *:nth-child(2) { animation-delay: 0.18s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.3s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim > * { opacity: 1; animation: none; }
}

/* ---------------------------------------------------------------------
   Generic section rhythm
--------------------------------------------------------------------- */
.section { padding: 96px 0; }
@media (max-width: 760px) { .section { padding: 64px 0; } }
.section--alt { background: var(--panel-alt); }
.section--violet { background: var(--violet); color: var(--ink); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.055em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-grid h2 {
  .hero .container { margin-inline: auto; padding-right: 24px; }
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.05;
}
.about-grid p { margin-top: 30px; color: var(--text-dim); font-size: 18px; line-height: 1.8; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }
.stat { border-left: 1px solid var(--violet); padding-left: 16px; }
.stat b { display: block; color: var(--violet); font-size: 28px; font-weight: 900; }
.stat span { margin-top: 4px; display: block; color: var(--text-dimmer); font-size: 12px; letter-spacing: 0.06em; }

/* ---------------------------------------------------------------------
   Project cards
--------------------------------------------------------------------- */
.project-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}
@media (max-width: 760px) { .project-list { grid-template-columns: 1fr; } }

.project-eyebrow {
  color: var(--text-dimmer);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.project-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: var(--violet-line); transform: translateY(-3px); }
.project-icon {
  width: 68px; height: 68px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(241,242,233,0.05);
  flex-shrink: 0;
}
.project-icon--fallback {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dimmer);
  font-family: var(--font-display);
  font-size: 22px;
}
.project-body { min-width: 0; flex: 1; }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project-type { color: var(--violet); font-size: 12px; font-weight: 800; letter-spacing: 0.13em; }
.project-title { margin-top: 8px; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-desc {
  margin-top: 8px; color: var(--text-dim); font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-downloads { margin-top: 14px; color: var(--text-dimmer); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }

.state-msg { color: var(--text-dim); padding: 48px 0; text-align: center; }
.state-msg a { color: var(--violet); font-weight: 700; }

.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--violet);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   Team
--------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.team-card:hover { border-color: var(--violet-line); }
.team-card-top { display: flex; align-items: center; justify-content: space-between; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; background: var(--violet);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-weight: 900; font-size: 20px;
  font-family: var(--font-display);
}
.team-card h3 { margin-top: 28px; font-size: 20px; }
.team-card p { margin-top: 4px; color: var(--text-dimmer); font-size: 14px; }

/* ---------------------------------------------------------------------
   Timeline (About page)
--------------------------------------------------------------------- */
.timeline-period {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--violet); background: var(--violet-wash);
  border: 1px solid var(--violet-line); border-radius: 999px;
  padding: 6px 16px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
}
.timeline-group { margin-bottom: 56px; }
.timeline-group:last-child { margin-bottom: 0; }
.timeline-items {
  position: relative;
  margin-top: 32px;
  padding-left: 36px;
  border-left: 2px solid var(--border);
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -43px; top: 18px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  background: var(--void);
}
.timeline-item--next .timeline-dot { border-style: dashed; border-color: var(--border); }
.timeline-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.timeline-item--next .timeline-card { border-color: var(--border-soft); }
.timeline-card:hover { border-color: var(--violet); transform: translateX(4px); }
.timeline-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.timeline-card h3 { font-size: 17px; }
.timeline-tag {
  border: 1px solid currentColor; border-radius: 999px;
  padding: 4px 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--violet);
}
.timeline-item--next .timeline-tag { color: var(--text-dimmer); }
.timeline-card p { margin-top: 14px; color: var(--text-dim); font-size: 14px; line-height: 1.7; }

/* ---------------------------------------------------------------------
   Partner strip (Sparked Host)
--------------------------------------------------------------------- */
.partner-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 40px 0;
}
.partner-strip .eyebrow { display: block; margin-bottom: 20px; }
.partner-banner {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.partner-banner:hover { border-color: var(--violet-line); transform: translateY(-2px); }
.partner-banner img { width: 100%; height: auto; }

/* ---------------------------------------------------------------------
   Contact / CTA band
--------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid h2 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}
.contact-grid p { font-size: 18px; line-height: 1.6; }
.contact-grid .btn { margin-top: 28px; }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer { padding: 26px 0; background: var(--ink); }
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.site-footer small { color: var(--text-dimmer); font-size: 13px; }
.footer-branding { display: flex; align-items: center; gap: 14px; }
.footer-warden { width: 54px; height: 54px; object-fit: contain; opacity: .9; filter: drop-shadow(0 0 14px rgba(185,147,255,.2)); }
.about-creeper { width: min(100%, 180px); margin-top: 30px; opacity: .88; filter: drop-shadow(0 0 18px rgba(185,147,255,.2)); }
.social-links { display: flex; align-items: center; gap: 18px; color: var(--text-dimmer); }
.social-links a:hover { color: var(--violet); }
.social-links svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------
   Page intro (About / Projects / Team / Form)
--------------------------------------------------------------------- */
.page-intro { padding: 88px 0 56px; position: relative; }
.page-intro h1 {
  margin-top: 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 780px;
}
.page-intro .lede { margin-top: 22px; max-width: 540px; color: var(--text-dim); font-size: 17px; line-height: 1.7; }
.page-intro-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 360px;
  background: radial-gradient(ellipse, rgba(185,147,255,0.13), transparent 65%);
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   Form
--------------------------------------------------------------------- */
.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}
@media (max-width: 560px) { .form-card { padding: 24px; } }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: #19161b;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--violet); }
.field textarea { resize: vertical; }
.form-card .btn { width: 100%; justify-content: center; font-size: 15px; padding: 15px 20px; }
.form-note { margin-top: 16px; color: var(--text-dimmer); font-size: 13px; text-align: center; }

/* icon helper */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }
