:root {
  --ink: #171713;
  --muted: #69695f;
  --paper: #f3f0e8;
  --paper-deep: #e8e4da;
  --line: rgba(23, 23, 19, 0.16);
  --lime: #c8ff46;
  --coral: #ff7657;
  --purple: #8067ff;
  --green: #1c8e5c;
  --red: #cc3d38;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.site-header {
  min-height: 88px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 22px/1 var(--font-display);
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 15px;
}
.brand-dot { color: var(--coral); }
nav { display: flex; gap: 8px; }
.nav-link {
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s ease;
}
.nav-link:hover, .nav-link.active { background: rgba(23,23,19,.07); }
.status-link { display: flex; align-items: center; gap: 8px; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(28,142,92,.12);
}
.hero {
  min-height: calc(100vh - 88px);
  padding: clamp(72px, 11vw, 150px) clamp(22px, 7vw, 112px) 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.eyebrow {
  margin: 0 0 24px;
  font: 500 11px/1.2 var(--font-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1, .status-hero h1 {
  margin: 0;
  max-width: 1100px;
  font: 600 clamp(52px, 8.7vw, 136px)/.9 var(--font-display);
  letter-spacing: -.065em;
}
em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--coral);
}
.hero-bottom {
  margin-top: clamp(44px, 8vw, 100px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.hero-bottom p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}
.round-link {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: .25s ease;
}
.round-link:hover { background: var(--ink); color: var(--paper); transform: translateY(4px); }
.round-link svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.orbit {
  position: absolute;
  border: 1px solid rgba(23,23,19,.09);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one { width: 500px; height: 500px; top: 8%; right: -250px; }
.orbit-two { width: 180px; height: 180px; top: 18%; right: 4%; }
.projects-section {
  padding: 110px clamp(22px, 5vw, 76px) 140px;
  background: var(--ink);
  color: var(--paper);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 60px;
}
.section-heading h2, .cta-section h2, .status-content h2 {
  margin: 0;
  font: 600 clamp(38px, 5vw, 68px)/1 var(--font-display);
  letter-spacing: -.045em;
}
.section-heading > p {
  margin: 0 0 8px;
  color: rgba(243,240,232,.55);
  font-size: 13px;
}
.section-heading > p span { color: var(--lime); font-family: var(--font-mono); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.project-card {
  grid-column: span 6;
  border: 1px solid rgba(243,240,232,.2);
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 700px;
}
.project-card:last-child { grid-column: 4 / span 6; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-index { font: 400 11px var(--font-mono); color: rgba(243,240,232,.45); }
.project-state {
  display: flex; align-items: center; gap: 8px;
  font: 400 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.project-state i { width: 6px; height: 6px; background: #a1a19a; border-radius: 50%; }
.project-state.up i { background: var(--lime); box-shadow: 0 0 10px rgba(200,255,70,.55); }
.project-state.down i { background: var(--coral); }
.project-visual {
  height: 360px;
  position: relative;
  overflow: hidden;
  color: var(--ink);
}
.starfight-visual { background: #c7ff46; }
.planet {
  width: 230px; height: 230px; border: 1px solid var(--ink); border-radius: 50%;
  position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%);
  background: radial-gradient(circle at 62% 31%, #e9ffb5 0 5%, transparent 6%), repeating-linear-gradient(14deg, transparent 0 16px, rgba(23,23,19,.1) 17px);
}
.ship { position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%) rotate(12deg); font-size: 48px; }
.star { position: absolute; font-size: 22px; }
.star-a { top: 14%; left: 14%; } .star-b { top: 17%; right: 18%; font-size: 40px; } .star-c { bottom: 16%; right: 13%; }
.starfight-visual > span { position: absolute; bottom: 15px; left: 17px; font: 500 10px var(--font-mono); letter-spacing: .15em; }
.metadraft-visual { background: #8067ff; }
.draft-panel { position: absolute; inset: 42px 45px; border: 1px solid rgba(255,255,255,.5); padding: 20px; }
.draft-line { display: block; height: 1px; width: 65%; background: rgba(255,255,255,.45); margin: 12px 0; }
.draft-line.long { width: 90%; }.draft-line.short { width: 40%; }
.draft-card {
  position: absolute; width: 80px; height: 105px; background: var(--paper); border: 1px solid var(--ink);
  display: grid; place-items: end start; padding: 10px; font: 500 10px var(--font-mono);
}
.draft-card.one { left: 21%; top: 35%; transform: rotate(-8deg); }
.draft-card.two { left: 43%; top: 42%; transform: rotate(5deg); background: var(--lime); }
.draft-card.three { right: 17%; top: 31%; transform: rotate(11deg); background: var(--coral); }
.meta-word { position: absolute; bottom: 5px; right: -5px; font: 700 76px/1 var(--font-display); color: rgba(255,255,255,.16); }
.zidk-visual { background: #ff7657; }
.zidk-symbol { position: absolute; left: 24px; top: 17px; font: 700 120px/1 var(--font-display); }
.zidk-visual p { position: absolute; bottom: 22px; right: 22px; margin: 0; text-align: right; font: 700 28px/.92 var(--font-display); letter-spacing: -.05em; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(23,23,19,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(23,23,19,.12) 1px, transparent 1px); background-size: 42px 42px; }
.card-content { padding: 30px 10px 8px; display: flex; flex: 1; flex-direction: column; }
.project-type { margin: 0 0 10px; color: rgba(243,240,232,.48); font: 400 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.card-content h3 { margin: 0 0 18px; font: 600 clamp(31px, 3.5vw, 48px)/1 var(--font-display); letter-spacing: -.04em; }
.card-content h3 sup { font: 400 9px var(--font-mono); color: var(--lime); letter-spacing: .1em; text-transform: uppercase; vertical-align: top; }
.card-content > p:not(.project-type) { margin: 0; color: rgba(243,240,232,.6); max-width: 460px; font-size: 13px; line-height: 1.7; }
.card-content a { margin-top: auto; padding-top: 30px; display: flex; justify-content: space-between; text-decoration: none; border-bottom: 1px solid rgba(243,240,232,.35); padding-bottom: 10px; font-size: 12px; transition: border-color .2s; }
.card-content a:hover { border-color: var(--lime); }
.cta-section { padding: 150px clamp(22px, 8vw, 130px); text-align: center; }
.cta-section h2 { font-size: clamp(44px, 7.5vw, 108px); }
.cta-section a { display: inline-flex; gap: 50px; margin-top: 55px; padding: 15px 0; border-bottom: 1px solid var(--ink); text-decoration: none; font-size: 13px; }

.status-page { min-height: 100vh; }
.status-hero { padding: 100px clamp(22px, 7vw, 112px) 70px; border-bottom: 1px solid var(--line); }
.status-hero h1 { font-size: clamp(48px, 7.6vw, 112px); }
.status-hero h1 span { color: var(--coral); }
.status-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.overall-badge { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px 17px; border: 1px solid var(--line); border-radius: 999px; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.overall-badge i { width: 8px; height: 8px; border-radius: 50%; background: #aaa; }
.overall-badge.operational i { background: var(--green); box-shadow: 0 0 0 5px rgba(28,142,92,.1); }
.overall-badge.degraded i, .overall-badge.outage i { background: var(--red); }
.status-intro { max-width: 620px; margin: 45px 0 55px; color: var(--muted); line-height: 1.7; }
.status-meta { display: flex; flex-wrap: wrap; gap: 15px 45px; color: var(--muted); font: 400 11px var(--font-mono); }
.status-meta strong { color: var(--ink); font-weight: 500; }
.status-content { padding: 70px clamp(22px, 7vw, 112px) 130px; }
.status-summary { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); margin-bottom: 90px; }
.status-summary article { padding: 28px; min-height: 175px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.status-summary article:last-child { border: 0; }
.status-summary span { font: 400 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.status-summary strong { font: 600 44px var(--font-display); margin: auto 0 5px; letter-spacing: -.04em; }
.status-summary small { color: var(--muted); font-size: 10px; }
.services-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.services-heading h2, .incidents-section h2 { font-size: 30px; }
#refresh-status { border: 1px solid var(--line); background: transparent; padding: 10px 14px; display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 11px; }
#refresh-status:hover { background: var(--paper-deep); }
#refresh-status svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#refresh-status.loading svg { animation: spin .8s linear infinite; }
.service-row { border-top: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: minmax(210px,1fr) minmax(240px,1.2fr) 100px 110px; gap: 25px; align-items: center; }
.service-info { display: flex; align-items: center; gap: 14px; }
.service-info > i { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.service-info > i.up { background: var(--green); box-shadow: 0 0 0 5px rgba(28,142,92,.1); }
.service-info strong { display: block; font-size: 13px; }
.service-info small { color: var(--muted); font-size: 10px; }
.history-bars { height: 31px; display: flex; align-items: stretch; gap: 3px; }
.history-bars i { flex: 1; min-width: 2px; border-radius: 1px; background: #d3d0c8; }
.history-bars i.up { background: #57b986; }
.history-bars i.degraded { background: #e3aa4c; }
.history-bars i.down { background: var(--red); }
.metric { text-align: right; }
.metric strong { font: 500 13px var(--font-mono); }
.metric small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.skeleton { height: 84px; border-top: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.incidents-section { margin-top: 100px; display: grid; grid-template-columns: 1fr 2fr; gap: 50px; border-top: 1px solid var(--line); padding-top: 55px; }
.incident { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; font-size: 12px; }
.incident p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.incident > span { font: 400 10px var(--font-mono); color: var(--muted); white-space: nowrap; }
.no-incidents { display: flex; align-items: center; gap: 13px; padding: 20px 0; font-size: 12px; }
.no-incidents i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(28,142,92,.12); color: var(--green); font-style: normal; }
.methodology { margin-top: 80px; max-width: 700px; color: var(--muted); font-size: 10px; line-height: 1.6; }
footer { padding: 40px clamp(22px, 5vw, 76px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 30px; }
footer p, footer > span { margin: 0; font-size: 10px; color: var(--muted); }
footer > span { text-align: right; }
.footer-brand { font-size: 17px; }
.footer-brand .brand-mark { width: 28px; height: 28px; font-size: 12px; }
.reveal { animation: reveal .8s both; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .project-card, .project-card:last-child { grid-column: span 12; }
  .status-title-row { align-items: flex-start; flex-direction: column; }
  .overall-badge { margin: 0; }
  .service-row { grid-template-columns: 1fr 1fr; }
  .history-bars { grid-column: 1 / -1; grid-row: 2; }
  .status-summary { grid-template-columns: 1fr; }
  .status-summary article { border-right: 0; border-bottom: 1px solid var(--line); min-height: 145px; }
}
@media (max-width: 600px) {
  .site-header { min-height: 72px; padding: 0 18px; }
  .brand { font-size: 18px; }.brand-mark { width: 30px; height: 30px; }
  .nav-link { padding: 9px 10px; font-size: 11px; }
  .hero { min-height: calc(100vh - 72px); padding-left: 22px; padding-right: 22px; }
  .hero h1 { font-size: clamp(46px, 15vw, 72px); }
  .hero-bottom { align-items: flex-start; }
  .round-link { width: 52px; height: 52px; flex-basis: 52px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .project-card { padding: 12px; min-height: 610px; }
  .project-visual { height: 300px; }
  .draft-card { width: 65px; height: 90px; }
  .status-hero { padding-top: 70px; }
  .status-meta { flex-direction: column; gap: 10px; }
  .service-row { grid-template-columns: 1fr auto; gap: 18px; }
  .history-bars { grid-column: 1 / -1; }
  .metric.latency { display: none; }
  .incidents-section { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  footer > span { text-align: left; }
}
