:root {
  color-scheme: dark;
  --scroll-progress: 0;
  --ticker-shift: 0px;
  --scroll-parallax: 0px;
  --bg: #07110f;
  --surface: #0d1a17;
  --surface-2: #12231f;
  --text: #effaf5;
  --muted: #9ab2a8;
  --line: #244037;
  --accent: #4ee59a;
  --accent-dark: #062d1d;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(78, 229, 154, .11), transparent 27rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; }

.skip-link { background: var(--accent); color: var(--bg); font-weight: 800; left: 1rem; padding: .7rem 1rem; position: fixed; top: -5rem; transition: top .2s ease; z-index: 200; }
.skip-link:focus { top: 1rem; }

.scroll-progress { background: rgba(78, 229, 154, .12); height: 3px; inset: 0 0 auto; position: fixed; z-index: 100; }
.scroll-progress span { background: var(--accent); display: block; height: 100%; transform: scaleX(var(--scroll-progress)); transform-origin: left; will-change: transform; }

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 1.35rem 1.5rem;
}
.brand { align-items: center; display: flex; font-weight: 700; gap: .75rem; text-decoration: none; }
.brand-mark {
  align-items: center;
  background: var(--accent);
  color: var(--bg);
  display: inline-flex;
  font-size: .78rem;
  height: 2.15rem;
  justify-content: center;
  letter-spacing: .05em;
  width: 2.15rem;
}
nav { display: flex; gap: 2rem; }
nav a { color: var(--muted); font-size: .92rem; position: relative; text-decoration: none; }
nav a::after { background: var(--accent); bottom: -.35rem; content: ""; height: 1px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; width: 100%; }
nav a:hover, nav a:focus-visible { color: var(--accent); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }

main { overflow: hidden; }
.hero {
  align-items: center;
  display: grid;
  gap: 5rem;
  grid-template-columns: 1.15fr .85fr;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 680px;
  padding: 5rem 1.5rem 6rem;
}
.hero-copy > * { animation: rise-in .7s both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.availability-pill { align-items: center; border: 1px solid var(--line); color: #c8ddd4; display: inline-flex; font-size: .78rem; font-weight: 700; gap: .55rem; margin-bottom: 1.35rem; padding: .42rem .65rem; width: fit-content; }
.availability-pill span { animation: availability-pulse 2.4s ease-in-out infinite; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 0 rgba(78, 229, 154, .45); height: 7px; width: 7px; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .16em; margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); letter-spacing: -.065em; margin-bottom: 1.5rem; max-width: 800px; }
.hero-line { display: block; }
.outline-word { animation: outline-fill 1.15s 1.05s cubic-bezier(.2, .75, .25, 1) forwards; color: transparent; display: block; font-size: clamp(2.55rem, 7.4vw, 5.7rem); letter-spacing: -.055em; line-height: 1; -webkit-text-stroke: 1.5px rgba(239, 250, 245, .82); }
.hero-line-final { font-size: .72em; margin-top: .22em; }
h2 { font-size: clamp(2.25rem, 4vw, 4.2rem); letter-spacing: -.045em; margin-bottom: 1.25rem; }
h3 { font-size: 1.45rem; letter-spacing: -.02em; }
.hero-text, .section-heading > p:last-child, .cta > p { color: var(--muted); font-size: 1.12rem; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.button {
  border: 1px solid var(--line);
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  padding: .85rem 1.15rem;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.button:hover { transform: translateY(-2px); }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.button:focus-visible, a:focus-visible { outline: 3px solid rgba(78, 229, 154, .5); outline-offset: 3px; }

.motion-stage {
  --pointer-x: 0px;
  --pointer-y: 0px;
  animation: terminal-in .8s .15s both;
  background: #050b09;
  border: 1px solid var(--line);
  box-shadow: 22px 22px 0 rgba(78, 229, 154, .06);
  height: 430px;
  overflow: hidden;
  position: relative;
}
.stage-grid {
  background-image: linear-gradient(rgba(78, 229, 154, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 229, 154, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  position: absolute;
}
.motion-window { background: rgba(13, 26, 23, .96); border: 1px solid #315247; box-shadow: 0 24px 55px rgba(0, 0, 0, .34); position: absolute; transition: transform .18s ease-out; }
.window-back { animation: window-back-float 7s ease-in-out infinite; height: 210px; left: 8%; top: 8%; width: 75%; }
.window-main { animation: window-main-float 6s ease-in-out infinite; bottom: 12%; height: 245px; right: 6%; width: 82%; }
.window-bar { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: .38rem; height: 38px; padding: 0 .75rem; }
.window-bar > span { background: #49645a; border-radius: 50%; height: 6px; width: 6px; }
.window-bar b { color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: .62rem; font-weight: 500; margin-left: .35rem; }
.infra-lines { display: grid; gap: .62rem; padding: 1rem; }
.infra-lines i { animation: code-breathe 3.2s ease-in-out infinite; background: #1f3931; display: block; height: 7px; width: 82%; }
.infra-lines i:nth-child(2) { animation-delay: .18s; width: 54%; }
.infra-lines i:nth-child(3) { animation-delay: .36s; width: 70%; }
.infra-lines i:nth-child(4) { animation-delay: .54s; width: 42%; }
.cloud-row { bottom: .9rem; display: flex; gap: .45rem; left: 1rem; position: absolute; }
.cloud-row span, .cluster-row span { border: 1px solid #315247; color: #b6ccc3; font-family: monospace; font-size: .62rem; padding: .26rem .42rem; }
.release-body { padding: 1.25rem; }
.release-heading span { color: var(--accent); display: block; font-family: monospace; font-size: .62rem; letter-spacing: .11em; }
.release-heading strong { display: block; font-size: 1.45rem; letter-spacing: -.035em; margin-top: .3rem; }
.pipeline-row { color: var(--muted); display: flex; font-family: monospace; font-size: .6rem; justify-content: space-between; margin-top: 1.35rem; }
.pipeline-track { background: #1d332c; height: 5px; margin-top: .5rem; overflow: hidden; }
.pipeline-track i { animation: pipeline-run 3.4s cubic-bezier(.2, .7, .25, 1) infinite; background: var(--accent); display: block; height: 100%; transform-origin: left; }
.cluster-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.35rem; }
.motion-status { align-items: center; animation: status-float 4.6s ease-in-out infinite; background: var(--accent); bottom: 5%; box-shadow: 0 15px 35px rgba(0, 0, 0, .28); color: var(--bg); display: flex; gap: .75rem; left: 3%; padding: .72rem .9rem; position: absolute; }
.motion-status small, .motion-status strong { display: block; }
.motion-status small { font-family: monospace; font-size: .52rem; letter-spacing: .1em; }
.motion-status strong { font-size: .8rem; }
.status-dot { animation: signal-pulse 2.3s ease-in-out infinite; background: var(--bg); border-radius: 50%; height: 9px; width: 9px; }

.proof { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; max-width: var(--max); }
.proof div { border-right: 1px solid var(--line); padding: 1.6rem; }
.proof div:last-child { border-right: 0; }
.proof strong, .proof span { display: block; }
.proof strong { font-size: 1.25rem; }
.proof span { color: var(--muted); font-size: .85rem; margin-top: .15rem; }

.scroll-ticker { border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.15rem 0; white-space: nowrap; }
.ticker-track { color: rgba(239, 250, 245, .24); font-size: clamp(1.1rem, 2.5vw, 2rem); font-weight: 850; letter-spacing: .08em; transform: translateX(calc(-6% - var(--ticker-shift))); transition: transform .08s linear; width: max-content; will-change: transform; }

.section { margin: 0 auto; max-width: var(--max); padding: 8rem 1.5rem; }
.section-heading { margin-bottom: 3.25rem; max-width: 850px; }
.section-heading.compact { max-width: 720px; }
.project-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.project-card { background: var(--surface); border: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: auto 1fr; min-height: 410px; padding: 1.75rem; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.project-card:hover { border-color: rgba(78, 229, 154, .65); box-shadow: 0 20px 50px rgba(0, 0, 0, .2); transform: translateY(-5px); }
.project-card.featured { background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
.project-number { color: var(--accent); font-family: monospace; font-size: .78rem; }
.project-content { display: flex; flex-direction: column; }
.project-type { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-content > p:not(.project-type), .project-content li { color: var(--muted); }
.project-content ul { margin: .5rem 0 1.5rem; padding-left: 1.2rem; }
.project-content a { color: var(--accent); font-weight: 750; margin-top: auto; text-decoration: none; }
.project-content a:hover { text-decoration: underline; }
.project-content a span { display: inline-block; transition: transform .2s ease; }
.project-content a:hover span { transform: translate(3px, -3px); }

.delivery-showcase { padding-top: 3rem; }
.delivery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.delivery-card { background: var(--surface); border: 1px solid var(--line); margin: 0; overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.delivery-card:hover { border-color: rgba(78, 229, 154, .65); box-shadow: 0 24px 55px rgba(0, 0, 0, .28); transform: translateY(-6px); }
.delivery-image-wrap { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.delivery-card img { display: block; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2, .75, .25, 1); width: 100%; }
.delivery-card:hover img { transform: scale(1.035); }
.delivery-card figcaption { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem; }
.delivery-card figcaption strong { font-size: 1.08rem; }
.delivery-card figcaption span { color: var(--muted); font-size: .9rem; }

.capabilities { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.capability-grid > div { border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding: 2rem; }
.capability-grid span { color: var(--accent); font-family: monospace; font-size: .8rem; }
.capability-grid h3 { margin: 2rem 0 .75rem; }
.capability-grid p { color: var(--muted); margin: 0; }

.approach { align-items: start; display: grid; gap: 5rem; grid-template-columns: .9fr 1.1fr; }
.approach ol { list-style: none; margin: 0; padding: 0; }
.approach li { border-top: 1px solid var(--line); display: grid; gap: 1.2rem; grid-template-columns: 2.5rem 1fr; padding: 1.5rem 0; }
.approach li:last-child { border-bottom: 1px solid var(--line); }
.approach li > span { color: var(--accent); font-family: monospace; font-size: .8rem; }
.approach p { color: var(--muted); margin: .4rem 0 0; }

.contact { padding-top: 4rem; }
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.contact-grid > a { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 185px; padding: 1.5rem; text-decoration: none; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.contact-grid > a:hover { background: var(--surface-2); border-color: var(--accent); transform: translateY(-5px); }
.contact-label { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-grid strong { font-size: 1.25rem; margin-top: 1.25rem; }
.contact-value { color: var(--muted); font-size: .9rem; margin-top: auto; overflow-wrap: anywhere; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .75, .25, 1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .project-card.reveal:nth-child(odd) { transform: translateX(-72px) rotate(-.7deg); }
.js .project-card.reveal:nth-child(even) { transform: translateX(72px) rotate(.7deg); }
.js .project-card.reveal.is-visible { transform: translateX(0) rotate(0); }
.js .section-heading.reveal { transform: translateY(36px) scale(.97); }
.js .section-heading.reveal.is-visible { transform: translateY(0) scale(1); }
.project-grid .reveal:nth-child(2), .delivery-grid .reveal:nth-child(2), .capability-grid .reveal:nth-child(2), .contact-grid .reveal:nth-child(2) { transition-delay: .08s; }
.project-grid .reveal:nth-child(3), .delivery-grid .reveal:nth-child(3), .capability-grid .reveal:nth-child(3), .contact-grid .reveal:nth-child(3) { transition-delay: .16s; }
.project-grid .reveal:nth-child(4), .capability-grid .reveal:nth-child(4) { transition-delay: .24s; }

.cta { background: var(--accent-dark); border: 1px solid var(--accent); margin: 0 auto 7rem; max-width: calc(var(--max) - 3rem); padding: clamp(2rem, 6vw, 5rem); }
.cta h2 { max-width: 800px; }
.cta .button { margin-top: 1.4rem; }
footer { color: var(--muted); display: flex; font-size: .85rem; justify-content: space-between; margin: 0 auto; max-width: var(--max); padding: 2rem 1.5rem; }

@media (max-width: 820px) {
  nav { display: none; }
  .hero { gap: 3rem; grid-template-columns: 1fr; min-height: auto; padding-top: 4rem; }
  .motion-stage { margin-top: 1rem; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof div:nth-child(2) { border-right: 0; }
  .proof div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project-grid, .delivery-grid, .capability-grid, .approach, .contact-grid { grid-template-columns: 1fr; }
  .approach { gap: 2.5rem; }
}

@media (max-width: 520px) {
  .site-header { padding-inline: 1rem; }
  .brand { font-size: .9rem; }
  .hero, .section { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding-bottom: 4rem; }
  .motion-stage { height: 350px; }
  .window-back { left: 5%; width: 84%; }
  .window-main { bottom: 14%; right: 3%; width: 90%; }
  .motion-status { bottom: 4%; left: 2%; }
  .section { padding-bottom: 5rem; padding-top: 5rem; }
  .proof { margin-inline: 1rem; }
  .proof div { padding: 1.1rem; }
  .project-card { grid-template-columns: 1fr; min-height: auto; padding: 1.35rem; }
  .project-content a { margin-top: 1rem; }
  .capability-grid > div { border-right: 1px solid var(--line); }
  .cta { margin: 0 1rem 4rem; }
  footer { align-items: flex-start; flex-direction: column; gap: .4rem; padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
  .ticker-track { transform: none; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes terminal-in {
  from { opacity: 0; transform: translate(20px, 18px) scale(.98); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes signal-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .58; }
}

@keyframes window-back-float {
  0%, 100% { transform: translate(calc(0px - var(--pointer-x)), calc(0px - var(--pointer-y))); }
  50% { transform: translate(calc(-7px - var(--pointer-x)), calc(7px - var(--pointer-y))); }
}

@keyframes window-main-float {
  0%, 100% { transform: translate(var(--pointer-x), var(--pointer-y)); }
  50% { transform: translate(calc(var(--pointer-x) + 8px), calc(var(--pointer-y) - 8px)); }
}

@keyframes status-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes pipeline-run {
  0% { opacity: .35; transform: scaleX(.05); }
  65%, 90% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@keyframes code-breathe {
  0%, 100% { background: #1f3931; }
  50% { background: #315c4d; }
}

@keyframes outline-fill {
  from { color: transparent; letter-spacing: -.02em; -webkit-text-stroke-color: rgba(239, 250, 245, .82); }
  to { color: var(--text); letter-spacing: -.055em; -webkit-text-stroke-color: var(--text); }
}

@keyframes availability-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78, 229, 154, .42); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(78, 229, 154, 0); opacity: .78; }
}
