:root {
  color-scheme: dark;
  --bg: #030604;
  --bg-2: #07100b;
  --panel: rgba(12, 18, 14, 0.9);
  --panel-2: rgba(19, 25, 20, 0.92);
  --ink: #f5f7ee;
  --muted: #b7c0ad;
  --dim: rgba(245, 247, 238, 0.66);
  --line: rgba(245, 247, 238, 0.12);
  --line-strong: rgba(148, 213, 0, 0.36);
  --lime: #94d500;
  --lime-rgb: 148, 213, 0;
  --lime-deep: #6cad00;
  --amber: #d9ca76;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(90deg, rgba(var(--lime-rgb), 0.09), transparent 17rem),
    linear-gradient(270deg, rgba(138, 184, 200, 0.1), transparent 19rem),
    linear-gradient(180deg, #09110b 0%, var(--bg) 48%, #020302 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(245, 247, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 238, 0.038) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

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

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

.site-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand-link,
.site-nav,
.hero-actions,
.focus-strip,
.values-strip,
.contact-band,
.error-actions {
  display: flex;
  align-items: center;
}

.brand-link {
  min-width: 0;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 840;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #071006;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  box-shadow: 0 0 30px rgba(var(--lime-rgb), 0.3);
  font-size: 0.76rem;
  font-weight: 950;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: rgba(245, 247, 238, 0.72);
  font-size: 0.91rem;
  font-weight: 760;
}

.site-nav a {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--lime);
  transform: translateY(-1px);
}

.hero {
  min-height: calc(100svh - 84px);
  padding: 34px 0 66px;
  display: grid;
  align-content: center;
  gap: 28px;
}

.logo-slab {
  width: min(850px, 100%);
  margin: 0 auto;
}

.logo-slab img {
  width: 100%;
  max-height: 214px;
  object-fit: contain;
  background: #fbfbf7;
}

.hero-copy {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(245, 247, 238, 0.058), rgba(245, 247, 238, 0.024)),
    var(--panel);
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(3.2rem, 7.4vw, 5.55rem);
  line-height: 0.94;
  font-weight: 950;
}

h1 span {
  color: var(--lime);
}

h2 {
  max-width: 820px;
  font-size: clamp(2.3rem, 5vw, 3.1rem);
  line-height: 1;
  font-weight: 920;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.08;
  font-weight: 860;
}

.hero-text {
  max-width: 690px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.button {
  min-height: 50px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 860;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

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

.button-primary {
  color: #071006;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  box-shadow: 0 16px 38px rgba(var(--lime-rgb), 0.22);
}

.button-secondary {
  color: var(--ink);
  border-color: rgba(var(--lime-rgb), 0.32);
  background: rgba(245, 247, 238, 0.04);
}

.button-secondary:hover {
  border-color: rgba(var(--lime-rgb), 0.62);
}

.focus-strip {
  overflow: hidden;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.focus-strip span {
  flex: 1 1 220px;
  padding: 14px 20px;
  color: rgba(245, 247, 238, 0.78);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.focus-strip span + span {
  border-left: 1px solid var(--line);
}

.systems-section,
.values-section,
.origin-story {
  padding: 84px 0 96px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 56px;
  align-items: end;
}

.system-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.system-card {
  min-height: 268px;
  padding: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(245, 247, 238, 0.052), rgba(245, 247, 238, 0.024)),
    var(--panel-2);
}

.system-card span {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
}

.system-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.values-strip {
  margin-top: 42px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
}

.values-strip span {
  flex: 1 1 180px;
  padding: 20px;
  color: rgba(245, 247, 238, 0.82);
  font-weight: 850;
  text-align: center;
}

.values-strip span + span {
  border-left: 1px solid var(--line);
}

.contact-band {
  width: 100vw;
  margin: 0 0 72px 50%;
  padding: 52px max(20px, calc((100vw - var(--max-width)) / 2));
  transform: translateX(-50%);
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid rgba(var(--lime-rgb), 0.22);
  border-bottom: 1px solid rgba(var(--lime-rgb), 0.22);
  background:
    linear-gradient(90deg, rgba(var(--lime-rgb), 0.13), rgba(138, 184, 200, 0.08) 46%, transparent),
    #0b100c;
}

.contact-band h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  line-height: 1;
}

.contact-email {
  margin: 18px 0 0;
  color: rgba(245, 247, 238, 0.72);
  font-size: 1.02rem;
  font-weight: 720;
}

.contact-band .button {
  flex: 0 0 auto;
  min-width: 210px;
}

.origin-story {
  min-height: calc(100svh - 84px);
  display: grid;
  align-content: center;
  gap: 36px;
}

.story-kicker {
  display: grid;
  gap: 12px;
  padding-top: 10px;
  text-align: center;
}

.story-kicker .eyebrow {
  margin: 0;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: start;
}

.story-lead,
.story-body,
.timeline article,
.error-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(245, 247, 238, 0.055), rgba(245, 247, 238, 0.022)),
    var(--panel);
}

.story-lead {
  padding: 30px;
  border-color: var(--line-strong);
}

.story-lead p {
  margin: 0;
  color: var(--ink);
  font-size: 1.42rem;
  font-weight: 830;
  line-height: 1.18;
}

.story-body {
  padding: 34px;
}

.story-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.story-body p + p {
  margin-top: 20px;
}

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

.timeline article {
  min-height: 198px;
  padding: 24px;
  background-color: var(--panel-2);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.timeline strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.12;
}

.timeline p {
  margin: 14px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(245, 247, 238, 0.64);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
}

.site-footer a:hover {
  color: var(--lime);
}

.error-page {
  min-height: calc(100svh - 84px);
  padding: 54px 0 84px;
  display: grid;
  align-content: center;
  gap: 28px;
}

.error-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px;
  text-align: center;
}

.error-card h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.error-card p {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--muted);
}

.error-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .section-heading,
  .system-grid,
  .story-layout,
  .timeline {
    grid-template-columns: 1fr;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-band .button {
    width: 100%;
  }

  .story-lead p {
    font-size: 1.24rem;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .site-nav {
    width: 100%;
    gap: 14px 18px;
  }

  .hero {
    gap: 22px;
    padding: 20px 0 54px;
  }

  .logo-slab img {
    max-height: 132px;
  }

  .hero-copy,
  .system-card,
  .story-lead,
  .story-body,
  .timeline article,
  .error-card {
    padding: 22px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.74rem;
  }

  h1 {
    margin: 0;
    font-size: 2.62rem;
  }

  h2,
  .contact-band h2 {
    font-size: 2.05rem;
  }

  .hero-text {
    font-size: 1.02rem;
  }

  .hero-actions,
  .hero-actions .button,
  .error-actions,
  .error-actions .button {
    width: 100%;
  }

  .focus-strip span {
    flex-basis: 100%;
  }

  .focus-strip span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .systems-section,
  .values-section,
  .origin-story {
    padding: 58px 0 66px;
  }

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

  .system-card span,
  .timeline span {
    margin-bottom: 28px;
  }

  .values-strip span {
    flex-basis: 100%;
  }

  .values-strip span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-band {
    padding: 38px 14px;
  }

  .story-kicker {
    text-align: left;
  }

  .timeline article {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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