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

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #1d1d1f;
}

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

sup {
  vertical-align: super;
}

/* Fade-in entrance animation */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fade-in 0.9s ease forwards;
}

/* Hero background image (desktop, fixed) */
.hero-bg-desktop {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-desktop .hero-img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  object-position: bottom right;
}

.hero-bg-mobile {
  width: 100%;
  display: flex;
  justify-content: center;
}

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

main {
  position: relative;
}

header, .hero, article {
  position: relative;
  z-index: 10;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

header {
  padding-top: 2rem;
}

.hero {
  padding-top: 2rem;
}

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

/* Logo */
.logo {
  position: relative;
  display: inline-block;
  cursor: default;
}

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

.logo-line {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #86868b;
}

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

.logo-short {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #86868b;
}

.logo:hover .logo-full {
  opacity: 0;
}

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

/* Hero heading */
.hero h1 {
  font-family: 'Geist Pixel', monospace;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.subtitle {
  margin-top: 1.5rem;
  color: #86868b;
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 28rem;
}

/* Body copy */
.intro, .closing {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro p, .closing p {
  margin: 0;
}

.emph {
  font-weight: 500;
  color: #1d1d1f;
}

.closing-line {
  font-weight: 500;
  color: #1d1d1f;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 2rem;
}

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

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

.diagram-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  color: #1d1d1f;
}

.orchestrator-svg {
  width: 100%;
  height: auto;
}

.orb-ring {
  opacity: 0;
  transition: opacity 1s ease 0.1s;
}

.spoke {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.node {
  opacity: 0;
  transform: scale(0);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.center-node {
  opacity: 0;
  transform: scale(0);
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.diagram-wrap.in-view .orb-ring,
.diagram-wrap.in-view .spoke,
.diagram-wrap.in-view .node,
.diagram-wrap.in-view .center-node {
  opacity: 1;
  transform: scale(1);
}

.diagram-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #86868b;
  opacity: 0;
  transition: opacity 0.8s ease 1.2s;
}

.diagram-wrap.in-view .diagram-tags {
  opacity: 1;
}

/* Timeline */
.workflow-block {
  margin: 3.5rem 0;
}

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

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

.timeline::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 ease-out;
}

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

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

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

.node-dot {
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #1d1d1f;
}

.node-dot .dot {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #1d1d1f;
}

.reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline.in-view .reveal {
  opacity: 1;
  transform: translateY(0);
}

.timeline li:nth-child(1) .reveal { transition-delay: 0.05s; }
.timeline li:nth-child(2) .reveal { transition-delay: 0.15s; }
.timeline li:nth-child(3) .reveal { transition-delay: 0.25s; }
.timeline li:nth-child(4) .reveal { transition-delay: 0.35s; }
.timeline li:nth-child(5) .reveal { transition-delay: 0.45s; }
.timeline li:nth-child(6) .reveal { transition-delay: 0.55s; }
.timeline li:nth-child(7) .reveal { transition-delay: 0.65s; }
.timeline li:nth-child(8) .reveal { transition-delay: 0.75s; }

.step-title {
  font-size: 15px;
  font-weight: 500;
  color: #1d1d1f;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 13px;
  color: #86868b;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

.footer-spacer {
  height: 11rem;
}

/* Footer */
footer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  pointer-events: none;
}

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

.footer-content {
  padding: 2.5rem 1.5rem 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.footer-tagline {
  pointer-events: auto;
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.contact-btn {
  pointer-events: auto;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #1d1d1f;
  color: #fff;
  font-size: 12px;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.contact-btn:hover {
  background: #000;
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .hero-bg-desktop {
    display: block;
  }

  .hero-bg-mobile {
    display: none;
  }

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

  header {
    padding-top: 4rem;
  }

  .hero {
    padding-top: 4rem;
  }

  article {
    padding-top: 7rem;
    font-size: 17px;
  }

  .logo-line {
    font-size: 11px;
  }

  .logo-short span {
    font-size: 11px;
  }

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

  .eyebrow {
    margin-bottom: 2.5rem;
  }

  .eyebrow-center {
    text-align: left;
  }

  .step-title {
    font-size: 16px;
  }

  .step-desc {
    font-size: 14px;
  }

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

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

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

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

  .footer-spacer {
    height: 12rem;
  }
}

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