@font-face {
  font-family: 'Geist Pixel';
  src: url('fonts/GeistPixel-Square.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d1d1f;
  --muted: #86868b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- hero artwork ---------- */

.hero-desktop {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.hero-desktop img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  object-position: bottom right;
  image-rendering: pixelated;
  opacity: 0;
  animation: fade-in 1.2s ease 0.3s forwards;
}

.hero-mobile {
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fade-in 1.2s ease 0.3s forwards;
}

.hero-mobile img {
  width: 100%;
  height: auto;
  max-height: 45vh;
  object-fit: contain;
  image-rendering: pixelated;
}

/* ---------- layout ---------- */

main {
  position: relative;
  z-index: 10;
}

.site-header,
.hero-text,
article {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header { padding-top: 2rem; }
.hero-text { padding-top: 2rem; }
article { padding-top: 3.5rem; }

/* ---------- logo ---------- */

.logo {
  position: relative;
  display: inline-block;
  text-decoration: none;
  cursor: default;
  opacity: 0;
  animation: fade-in 0.8s ease forwards;
}

.logo-full { transition: opacity 0.5s ease; }
.logo:hover .logo-full { opacity: 0; }

.logo-line1,
.logo-line2 {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-line2 { color: rgba(134, 134, 139, 0.6); }

.logo-mc2 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.logo:hover .logo-mc2 { opacity: 1; }

.logo-mc2 span {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-mc2 sup { font-size: 8px; }

/* ---------- hero text ---------- */

h1 {
  margin: 0;
  font-family: 'Geist Pixel', 'Courier New', monospace;
  font-weight: 400;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  opacity: 0;
  animation: fade-in 1s ease 0.2s forwards;
}

.tagline {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 28rem;
  opacity: 0;
  animation: fade-in 0.8s ease 0.4s forwards;
}

/* ---------- article prose ---------- */

article {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(29, 29, 31, 0.85);
  font-weight: 300;
}

.prose > p { margin: 0; }
.prose > p + p { margin-top: 1.5rem; }

.intro {
  opacity: 0;
  animation: fade-in 0.8s ease 0.6s forwards;
}

.strong-open { color: var(--ink); }
.lead { font-weight: 500; }

.closing { padding-bottom: 1rem; }

.punchline {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- section labels ---------- */

.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 2rem;
}

.label-center { text-align: center; }

/* ---------- orchestrator diagram ---------- */

.diagram-block { margin: 3.5rem 0; }

.diagram {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.diagram-block.in .diagram {
  opacity: 1;
  transform: none;
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram .node circle {
  fill: #ffffff;
  stroke: var(--ink);
  stroke-width: 1.1;
}

.diagram .node circle.nd {
  fill: var(--ink);
  stroke: none;
}

.orc-label {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 500;
}

.diagram-legend {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
}

.diagram-legend span {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- timeline ---------- */

.timeline-block { margin: 3.5rem 0; }

.timeline {
  width: 100%;
  max-width: 28rem;
}

.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline ol::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(29, 29, 31, 0.2);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-block.in ol::before { transform: scaleY(1); }

.timeline li {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 1.75rem;
}

.timeline li:last-child { padding-bottom: 0; }

.tl-node {
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--ink);
}

.tl-dot {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-block.in .tl-dot { transform: scale(1); }
.timeline-block.in .tl-body { opacity: 1; transform: none; }

.timeline li:nth-child(2) .tl-dot,  .timeline li:nth-child(2) .tl-body  { transition-delay: 0.1s; }
.timeline li:nth-child(3) .tl-dot,  .timeline li:nth-child(3) .tl-body  { transition-delay: 0.22s; }
.timeline li:nth-child(4) .tl-dot,  .timeline li:nth-child(4) .tl-body  { transition-delay: 0.34s; }
.timeline li:nth-child(5) .tl-dot,  .timeline li:nth-child(5) .tl-body  { transition-delay: 0.46s; }
.timeline li:nth-child(6) .tl-dot,  .timeline li:nth-child(6) .tl-body  { transition-delay: 0.58s; }
.timeline li:nth-child(7) .tl-dot,  .timeline li:nth-child(7) .tl-body  { transition-delay: 0.7s; }
.timeline li:nth-child(8) .tl-dot,  .timeline li:nth-child(8) .tl-body  { transition-delay: 0.82s; }
.timeline li:nth-child(9) .tl-dot,  .timeline li:nth-child(9) .tl-body  { transition-delay: 0.94s; }

.tl-title {
  margin: 0 0 0.25rem;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.tl-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.625;
}

/* ---------- footer ---------- */

.footer-spacer { height: 11rem; }

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  pointer-events: none;
}

.footer-inner {
  background: linear-gradient(to top, #ffffff 60%, rgba(255, 255, 255, 0));
}

.footer-content {
  padding: 2.5rem 1.5rem 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  opacity: 0;
  animation: fade-in 0.9s ease 0.8s forwards;
}

.footer-tagline {
  pointer-events: auto;
  margin: 0;
  font-size: 12px;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.cta {
  pointer-events: auto;
  flex-shrink: 0;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cta:hover { opacity: 0.85; }

/* ---------- md breakpoint ---------- */

@media (min-width: 768px) {
  .hero-desktop { display: block; }
  .hero-mobile { display: none; }

  .site-header,
  .hero-text,
  article {
    padding-left: 4rem;
    padding-right: 4rem;
    max-width: 50%;
  }

  .site-header { padding-top: 4rem; }
  .hero-text { padding-top: 4rem; }
  article { padding-top: 7rem; }

  .logo-line1, .logo-line2, .logo-mc2 span { font-size: 11px; }

  h1 { font-size: clamp(2rem, 5vw, 4rem); }

  .tagline { margin-top: 2rem; font-size: 1.125rem; }

  article { font-size: 17px; }
  .prose > p + p { margin-top: 2rem; }

  .section-label { margin-bottom: 2.5rem; }
  .label-center { text-align: left; }

  .diagram-block, .timeline-block { margin: 5rem 0; }

  .diagram-legend span { font-size: 10px; }

  .tl-title { font-size: 16px; }
  .tl-desc { font-size: 14px; }

  .footer-spacer { height: 12rem; }

  .footer-inner { max-width: 50%; }

  .footer-content {
    padding: 2.5rem 4rem 2.5rem;
    gap: 1.5rem;
  }

  .footer-tagline { font-size: 15px; }

  .cta {
    padding: 0.625rem 1.25rem;
    font-size: 13px;
  }
}

/* ---------- lg breakpoint ---------- */

@media (min-width: 1024px) {
  .site-header,
  .hero-text,
  article {
    padding-left: 6rem;
    padding-right: 6rem;
  }

  .footer-content {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .logo, h1, .tagline, .intro, .hero-desktop img, .hero-mobile, .footer-content {
    animation: none;
    opacity: 1;
  }
  .diagram, .tl-body { transition: none; opacity: 1; transform: none; }
  .timeline ol::before { transition: none; transform: scaleY(1); }
  .tl-dot { transition: none; transform: scale(1); }
  html { scroll-behavior: auto; }
}
