:root {
  --bg: #090909;
  --bg-soft: #0f0f0f;
  --panel: #131313;
  --panel-hover: #171717;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.23);
  --text: #f2f0e9;
  --text-soft: #aaa9a3;
  --accent: #c7ff45;
  --accent-soft: rgba(199, 255, 69, 0.14);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: #0a0a0a;
  transform: translateY(-160%);
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.12;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255, 255, 255, 0.08) 1px, transparent 2px, transparent 5px);
  background-size: 7px 7px;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(199, 255, 69, 0.055);
  filter: blur(70px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  transition: transform 0.2s ease;
}

.brand-mark img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand:hover .brand-mark {
  transform: scale(1.06);
}

nav {
  display: flex;
  gap: 32px;
}

nav a,
.site-footer a {
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: 64px;
  min-height: calc(100vh - 88px);
  padding: 80px 0 44px;
  align-items: center;
}

.hero::after {
  position: absolute;
  right: -25%;
  top: 0;
  z-index: -1;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(199, 255, 69, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 120px rgba(199, 255, 69, 0.015), 0 0 0 240px rgba(199, 255, 69, 0.01);
  content: "";
}

.hero-status {
  position: absolute;
  top: 24px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}

.eyebrow,
.section-label,
.card-kicker,
.card-number,
.card-status,
.timeline-year {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--text-soft);
  font-size: 11px;
}

h1 {
  max-width: 900px;
  margin-bottom: 32px;
  font-size: clamp(56px, 7.4vw, 110px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h1 span,
.manifesto h2 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 36px;
  color: var(--text-soft);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 190px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #090909;
}

.button-primary:hover {
  background: #d7ff79;
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-system {
  position: relative;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(13, 13, 13, 0.82);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  transform: rotate(2.5deg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 45px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #393939;
}

.terminal-bar span:last-of-type {
  background: var(--accent);
}

.terminal-bar p {
  margin: 0 0 0 auto;
  color: #6d6d6a;
  font-family: var(--mono);
  font-size: 10px;
}

.terminal-body {
  min-height: 360px;
  padding: 52px 34px;
  font-family: var(--mono);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.9;
}

.terminal-body p {
  margin-bottom: 2px;
  white-space: nowrap;
}

.muted {
  display: inline-block;
  width: 34px;
  color: #4a4a47;
  user-select: none;
}

.accent {
  color: var(--accent);
}

.caret {
  display: inline-block;
  width: 7px;
  height: 17px;
  margin-left: 5px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s steps(1) infinite;
}

.system-orbit {
  position: absolute;
  border: 1px solid rgba(199, 255, 69, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  right: -45px;
  bottom: -42px;
  width: 100px;
  height: 100px;
}

.orbit-two {
  right: -20px;
  bottom: -18px;
  width: 50px;
  height: 50px;
  background: var(--accent-soft);
}

.hero-meta {
  position: absolute;
  bottom: 25px;
  left: 0;
  display: flex;
  gap: 30px;
  color: #64645f;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.section {
  padding: 140px 0;
  border-top: 1px solid var(--line);
}

.section-label {
  display: grid;
  grid-template-columns: 110px 1fr;
  margin-bottom: 88px;
  color: #74746f;
  font-size: 10px;
}

.section-label p {
  margin: 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 100px;
  align-items: start;
  margin-bottom: 100px;
}

.manifesto h2,
.section-heading h2,
.principles h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.manifesto-copy {
  color: var(--text-soft);
  font-size: 18px;
}

.manifesto-copy p + p {
  margin-top: 32px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline article {
  position: relative;
  min-height: 270px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.timeline article:last-child {
  border-right: 0;
}

.timeline article::before {
  position: absolute;
  top: -4px;
  left: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63635f;
  content: "";
}

.timeline .timeline-now::before {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.timeline-year {
  margin-bottom: 56px;
  color: #777772;
  font-size: 10px;
}

.timeline h3 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 500;
}

.timeline article > p:last-child {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 100px;
  align-items: end;
  margin-bottom: 72px;
}

.section-heading > p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--text-soft);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.work-card {
  display: flex;
  min-height: 350px;
  padding: 28px;
  background: var(--bg-soft);
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.25s ease;
}

.work-card:hover {
  background: var(--panel-hover);
}

.work-card-featured {
  grid-column: 1 / -1;
  min-height: 440px;
  background:
    radial-gradient(circle at 84% 30%, rgba(199, 255, 69, 0.13), transparent 23%),
    var(--panel);
}

.work-card-featured > div:nth-child(2) {
  max-width: 760px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-number,
.card-status,
.card-kicker {
  font-size: 10px;
}

.card-number {
  color: #6d6d69;
}

.card-status {
  color: var(--accent);
}

.card-topline a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card-topline a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.card-kicker {
  margin-bottom: 13px;
  color: var(--accent);
}

.work-card h3 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.work-card p:not(.card-kicker) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--text-soft);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: #8b8b86;
  font-family: var(--mono);
  font-size: 9px;
}

.principles-intro {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  margin-bottom: 88px;
}

.principles-intro .eyebrow {
  padding-top: 15px;
}

.principle-list {
  border-top: 1px solid var(--line);
}

.principle {
  display: grid;
  grid-template-columns: 110px 1fr 0.9fr;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding 0.25s ease, background 0.25s ease;
}

.principle:hover {
  padding-inline: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.principle > span {
  color: #666661;
  font-family: var(--mono);
  font-size: 10px;
}

.principle h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 500;
}

.principle p {
  margin: 0;
  color: var(--text-soft);
}

.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  position: absolute;
  right: -110px;
  bottom: -230px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(199, 255, 69, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(199, 255, 69, 0.025), 0 0 0 160px rgba(199, 255, 69, 0.015);
  content: "";
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 100px;
  align-items: end;
}

.contact-side {
  max-width: 430px;
}

.contact-side p {
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  color: #696964;
  font-family: var(--mono);
  font-size: 10px;
}

.site-footer p {
  margin: 0;
}

.site-footer > a:last-child {
  justify-self: end;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  50% { opacity: 0.45; transform: scale(0.8); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 110px;
  }

  .hero-system {
    width: min(100%, 620px);
    transform: none;
  }

  .hero-meta {
    display: none;
  }

  .manifesto-grid,
  .section-heading,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .timeline article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 680px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    min-height: 72px;
  }

  .brand-name,
  nav a:not(:last-child) {
    display: none;
  }

  nav {
    gap: 0;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 70px;
  }

  .hero-status {
    top: 22px;
    max-width: 300px;
    line-height: 1.5;
  }

  h1 {
    font-size: clamp(50px, 16vw, 76px);
  }

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

  .terminal-body {
    min-height: 310px;
    padding: 38px 20px;
    overflow: hidden;
  }

  .system-orbit {
    display: none;
  }

  .section {
    padding: 96px 0;
  }

  .section-label {
    grid-template-columns: 48px 1fr;
    margin-bottom: 60px;
  }

  .manifesto-grid {
    gap: 40px;
    margin-bottom: 70px;
  }

  .manifesto-copy {
    font-size: 16px;
  }

  .timeline,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .timeline article,
  .timeline article:nth-child(2) {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline article:last-child {
    border-bottom: 0;
  }

  .timeline-year {
    margin-bottom: 36px;
  }

  .work-card-featured {
    grid-column: auto;
  }

  .work-card {
    min-height: 340px;
    padding: 22px;
  }

  .principle {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .principle p {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}
