/* SpaceXSI Memphis — shared styles */

:root {
  --bg: #0a0a0a;
  --border: #1f2228;
  --primary: #ffffff;
  --foreground: #d5d9e2;
  --card: #1a1a1a;
  --steel: #36383a;
  --dawn: #ffd085;
  --breeze: #9cb8dd;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, Monaco, Consolas, monospace;
  --gutter: 16px;
  --block: 64px;
  --hatch: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJhIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBwYXR0ZXJuVHJhbnNmb3JtPSJyb3RhdGUoNDUpIj48cGF0aCBzdHJva2U9IiNmZmZmZmYiIGQ9Ik0xIDB2NSIvPjwvcGF0dGVybj48L2RlZnM+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNhKSIvPjwvc3ZnPg==");
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --block: 128px; } }
@media (min-width: 1024px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure, ul, hgroup { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid rgb(255 255 255 / 0.4);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 1280px) { .container { max-width: 1280px; } }
.ruled { border-inline: 1px solid var(--border); }
section { border-bottom: 1px solid var(--border); }
section section { border-bottom: 0; }
.block { padding-block: var(--block); }
.block > * + * { margin-top: var(--block); }
.block.flush > * + * { margin-top: 0; }
.block.pb-0 { padding-bottom: 0; }
.block.py-0 { padding-block: 0; }
.bleed { margin-inline: calc(-1 * var(--gutter)); }

.mono-tag {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.stack-20 > * + * { margin-top: 80px; }
.stack-6 > * + * { margin-top: 24px; }
.measure { max-width: 512px; text-wrap: balance; }
.push-right { margin-left: auto; }
.col-end { display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; height: 100%; }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 500; color: rgb(255 255 255 / 0.6); }

.display {
  max-width: 672px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
@media (min-width: 640px) { .display { font-size: 36px; line-height: 40px; } }
@media (min-width: 1024px) { .display { font-size: 48px; line-height: 1; } }

/* Section intro: optional eyebrow, heading, and a text column that moves right on desktop */
.intro > * + * { margin-top: 24px; }
.intro-row { display: flex; flex-direction: column; gap: 24px; }
.intro-aside { display: flex; flex-direction: column; gap: 24px; }
.intro-text { flex: 1; width: 100%; max-width: 448px; margin-top: 12px; text-wrap: balance; }
.intro-text.wide { max-width: 576px; }
.intro-text.mid { max-width: 512px; margin-top: 0; }
.intro-text > * + * { margin-top: 16px; }
.intro-text.mid > * + * { margin-top: 24px; }
@media (min-width: 1024px) {
  .intro-row { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .intro-aside { flex-direction: row; align-items: flex-end; gap: 48px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
}
@media (min-width: 1024px) { .nav { height: 80px; } }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.brand svg { width: 30px; height: 30px; }
.brand span { font-size: 22px; line-height: 1; white-space: nowrap; }
.brand b { font-weight: 600; }
@media (min-width: 640px) { .brand span { font-size: 26px; } .brand svg { width: 34px; height: 34px; } }
.nav-links {
  display: none;
  flex-grow: 1;
  justify-content: flex-end;
  gap: 16px;
  margin-left: 12px;
}
.nav-links a { display: block; padding: 6px 12px; white-space: nowrap; transition: opacity 150ms; }
.nav-links a:hover { opacity: 0.7; }
.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 3%, var(--card));
  cursor: pointer;
  transition: background-color 150ms;
}
.menu-btn:hover { background: color-mix(in srgb, var(--primary) 7%, var(--card)); }
@media (min-width: 1280px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
}
.mobile-menu { border-top: 1px solid var(--border); }
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { padding-block: 8px; }
.mobile-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu li:last-child a { border-bottom: 0; }
@media (min-width: 1280px) { .mobile-menu { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  padding: 10px 18px;
  border: 0;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 150ms, filter 150ms;
}
.btn svg { width: 16px; height: 16px; }
.btn-sm { gap: 8px; padding: 6px 14px; }
.btn-soft { background: color-mix(in srgb, var(--primary) 3%, var(--card)); color: var(--primary); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary) 7%, var(--card)); }
.btn-solid { background: var(--primary); color: var(--bg); }
.btn-solid:hover { filter: brightness(0.9); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Card grids ---------- */
.cards {
  display: grid;
  gap: 1px;
  margin-inline: calc(-1 * var(--gutter));
  border-top: 1px solid var(--border);
  background: var(--border);
}
.cards > * { background: var(--bg); }
@media (min-width: 640px) {
  .cards.sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.sm-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) { .cards.md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards.lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 40px 16px;
}
@media (min-width: 1024px) { .card { padding: 32px; } }
.card-icon { width: 40px; height: 40px; margin-bottom: 40px; }
.card-icon svg { width: 100%; height: 100%; }
@media (min-width: 640px) { .card-icon { margin-bottom: 64px; } }
.card-body { flex-grow: 1; max-width: 384px; text-wrap: balance; }
.card-body h3 { font-size: 20px; line-height: 28px; }
.card-body h3 + p, .card-body p + p { margin-top: 16px; }

/* Leadership: 3 + 2 layout that runs into the section's bottom border */
.cards.lead { margin-bottom: calc(-1 * var(--block)); }
@media (min-width: 768px) {
  .cards.lead { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards.lead > :nth-child(-n + 3) { grid-column: span 2; }
  .cards.lead > :nth-child(n + 4) { grid-column: span 3; }
}

/* ---------- Home: hero ---------- */
.hero {
  display: flex;
  align-items: flex-end;
  height: calc(100dvh - 10rem);
  min-height: 28rem;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  width: calc(100% + 2 * var(--gutter));
  height: 100%;
  margin-inline: calc(-1 * var(--gutter));
}
.rack-figure { position: absolute; inset: 0; overflow: hidden; perspective: 1200px; }
.hero-card {
  position: relative;
  grid-column: 1 / -1;
  padding: 48px 16px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: rgb(10 10 10 / 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-card h1 { font-size: 36px; line-height: 40px; text-wrap: balance; }
@media (min-width: 640px) { .hero-card { grid-column: 2 / span 2; padding: 80px 64px; } }
@media (min-width: 768px) { .hero-card h1 { font-size: 60px; line-height: 1; } }

/* Server-rack wall; units are generated in site.js */
.rack-wall {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  min-width: 100%;
  min-height: 100%;
  border-color: #fff;
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%) translateY(-50%) rotateY(30deg);
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, transparent 100%);
}
.rack-wall * { border: 0 solid; border-color: inherit; }
.rack-col { flex-shrink: 0; width: 224px; background: var(--bg); mix-blend-mode: multiply; }
.rack-col + .rack-col { border-left-width: 1px; }
.u { padding: 4px; }
.u + .u { border-top-width: 1px; }
.u.s { height: 32px; }
.u.l { height: 64px; }
.flex { display: flex; }
.row, .col { display: flex; height: 100%; }
.col { flex-direction: column; }
.g1 { gap: 4px; }
.g2 { gap: 8px; }
.f1 { flex: 1 1 0%; }
.gr1 { flex-grow: 1; }
.gr3 { flex-grow: 3; }
.no-shrink { flex-shrink: 0; }
.ac { align-items: center; }
.jc { justify-content: center; }
.jb { justify-content: space-between; }
.b { border-width: 1px; }
.dbl { border-width: 3px; border-style: double; }
.rl { border-radius: 8px; }
.rm { border-radius: 6px; }
.p1 { padding: 4px; }
.py1 { padding-block: 4px; }
.px1 { padding-inline: 4px; }
.p05 { padding: 2px; }
.hatch { background-image: var(--hatch); }
.ring { width: 6px; height: 6px; flex-shrink: 0; border-width: 1px; border-radius: 9999px; }
.dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 9999px; background: var(--foreground); }
.dot.lg { width: 10px; height: 10px; }

/* ---------- Home: latest update bar ---------- */
.latest-link { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px; }
.latest-copy { min-width: 0; }
.latest-copy > * + * { margin-top: 4px; }
.latest-tag { font-size: 12px; line-height: 16px; letter-spacing: 0.025em; }
.latest-title { font-size: 16px; line-height: 24px; text-wrap: balance; }
.latest-cta { flex-shrink: 0; text-underline-offset: 4px; }
.latest-link:hover .latest-cta { text-decoration: underline; }
@media (min-width: 640px) {
  .latest-link { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 24px; }
  .latest-title { font-size: 18px; line-height: 28px; }
}

/* ---------- Home: content ---------- */
.statement { font-size: 40px; line-height: 1; text-wrap: balance; }
@media (min-width: 640px) { .statement { font-size: 48px; } }
.clip { overflow: hidden; }
.two-col { display: grid; gap: 40px; height: 100%; }
@media (min-width: 768px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.priorities { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .priorities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .priorities .right { margin-left: auto; text-align: right; }
}

/* Proposal illustration */
.proposal { position: relative; width: 100%; min-height: 320px; user-select: none; }
.doc {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 448px;
  aspect-ratio: 3 / 4;
  padding: 12px;
  transform: translateX(-50%);
  border: 1px solid var(--steel);
  border-radius: 8px 8px 0 0;
  background: var(--card);
  color: rgb(255 255 255 / 0.5);
}
.doc-head { display: flex; align-items: center; height: 64px; border-bottom: 1px solid var(--steel); }
.doc-mark {
  display: grid;
  place-content: center;
  height: 100%;
  aspect-ratio: 1;
  border-right: 1px solid var(--steel);
  color: var(--steel);
}
.doc-mark svg { width: 40px; height: 40px; }
.doc-title { position: relative; display: flex; flex: 1 1 0%; align-items: center; height: 100%; padding-inline: 16px; }
.doc-title p {
  position: relative;
  width: fit-content;
  padding-inline: 4px;
  background: var(--card);
  color: var(--steel);
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
}
.hatch-fill { position: absolute; inset: 0; background-image: var(--hatch); opacity: 0.05; }
.doc-body { display: flex; width: 100%; height: 100%; }
.doc-margin { position: relative; flex: 0 0 63px; height: 100%; border-right: 1px solid var(--steel); }
.doc-lines {
  display: flex;
  flex-grow: 1;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 16px 12px;
  padding: 32px;
}
.doc-lines span { height: 12px; border-radius: 9999px; background: var(--steel); }
.doc-frame { position: absolute; inset: 12px; border: 1px solid var(--steel); border-radius: 4px; pointer-events: none; }
.pin { position: absolute; width: 40px; height: 40px; padding: 4px; border-radius: 9999px; }
.pin > div { display: grid; place-content: center; width: 100%; height: 100%; border-radius: 9999px; background: #fff; color: #000; }
.pin svg { width: 20px; height: 20px; }
.pin-power { top: 128px; left: 80px; background: var(--dawn); border-bottom-right-radius: 8px; }
.pin-water { top: 256px; right: -16px; background: var(--breeze); border-bottom-left-radius: 8px; }
.pin-brand { bottom: 256px; left: 128px; background: #000; border-bottom-right-radius: 8px; }

/* ---------- About: light-beam hero ---------- */
.beam-hero .block { position: relative; }
.beam-hero hgroup { position: relative; z-index: 1; max-width: 512px; }
.beam-hero hgroup > * + * { margin-top: 24px; }
.beam-hero h1 { font-size: 60px; line-height: 1; text-wrap: balance; }
.beam { position: absolute; inset: 0; display: none; margin: 0; overflow: hidden; pointer-events: none; }
@media (min-width: 1024px) { .beam { display: block; } }
.beam-inner { position: absolute; inset: 0; animation: beam-in 1.6s ease-out both; }
@keyframes beam-in { from { opacity: 0.05; } to { opacity: 1; } }
.ray {
  position: absolute;
  left: 50%;
  top: calc(50% - 1px);
  width: 120vw;
  height: 120vw;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 90deg at 55% 50%,
    rgb(248 247 245) 0deg, rgb(156 184 221) 4deg, rgb(81 100 132 / 0.9) 8deg,
    rgb(81 100 132 / 0.7) 10deg, rgb(81 100 132 / 0.5) 12deg, rgb(81 100 132 / 0.3) 18deg,
    rgb(81 100 132 / 0.1) 24deg, rgb(6 16 43 / 0.05) 45deg, rgb(6 16 43 / 0) 90deg,
    rgb(255 255 255 / 0) 360deg);
}
.ray.soft {
  filter: blur(16px);
  -webkit-mask-image: radial-gradient(circle at 60% 50%, transparent 0%, #fff 20%);
  mask-image: radial-gradient(circle at 60% 50%, transparent 0%, #fff 20%);
}
.ray.flip { transform: translate(-50%, -50%) scaleY(-1); }
@media (prefers-reduced-motion: reduce) { .beam-inner { animation: none; } }

/* Line drawing of the Colossus site */
.site-plan { margin-inline: calc(-1 * var(--gutter)); border-top: 1px solid var(--border); background: #0c0d0f; }
.site-plan svg { width: 100%; height: auto; }
.site-plan svg * { vector-effect: non-scaling-stroke; }
.site-plan text { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; fill: rgb(255 255 255 / 0.6); }
@media (max-width: 639px) { .site-plan text { display: none; } }

/* About: "Our People" — copy beside two contact cards on wide screens */
.people { display: grid; }
.people-copy { padding-block: 96px; }
.people .cards { border-top: 1px solid var(--border); }
@media (min-width: 1280px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .people .cards { margin-left: 0; border-top: 0; border-left: 1px solid var(--border); }
  .people .card { padding-block: 96px; }
}

/* ---------- Our Commitment ---------- */
.feature { padding-block: 80px; }
.feature.top { padding-bottom: 0; }
.feature > * + * { margin-top: 80px; }
.feature-copy { max-width: 512px; }
.feature-copy > * + * { margin-top: 24px; }
.feature-copy h2 { font-size: 30px; line-height: 36px; }

.timeline { position: relative; }
.timeline::before, .timeline::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 48px;
  pointer-events: none;
}
.timeline::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.timeline::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.tl-scroll { overflow-x: auto; scrollbar-width: none; }
.tl-scroll::-webkit-scrollbar { display: none; }
.tl-track { width: 1820px; }
.tl-labels, .tl-events { width: 1400px; margin-left: 24px; }
.tl-labels { display: flex; justify-content: space-between; }
.tl-label { position: relative; padding-bottom: 50px; font-size: 12px; line-height: 16px; white-space: pre; }
.tl-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 40px;
  background: var(--border);
}
.tl-line { border-bottom: 1px solid var(--border); }
.tl-events { position: relative; margin-top: -2px; height: 290px; }
.tl-event { position: absolute; top: 0; }
.tl-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -10px 0 0 -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.tl-dot span { width: 4px; height: 4px; border-radius: 9999px; background: #fff; }
.tl-event.open .tl-dot span { background: var(--dawn); }
.tl-pop {
  position: absolute;
  top: -10px;
  left: -10px;
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 320px;
  pointer-events: none;
}
.tl-event.open .tl-pop { display: flex; }
.tl-box { width: 24px; height: 24px; border: 1px solid var(--dawn); }
.tl-month { font-size: 12px; line-height: 16px; }

.cta-row { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) { .cta-row { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Updates ---------- */
.prose { max-width: 768px; margin-inline: auto; font-size: 18px; line-height: 1.625; text-wrap: pretty; }
.prose p + p { margin-top: 1.25em; }
.fineprint { max-width: 672px; font-size: 14px; line-height: 20px; text-wrap: balance; }
.fineprint a { text-underline-offset: 4px; }
.fineprint a:hover { text-decoration: underline; }

/* ---------- FAQ accordions (Info, Fact V. Fiction) ---------- */
.faq-group { display: grid; gap: 80px; }
.faq-group h2 { position: sticky; top: 80px; padding-top: 16px; font-size: 24px; line-height: 32px; text-wrap: balance; }
@media (min-width: 1024px) { .faq-group { grid-template-columns: 1fr 3fr; } }
.acc { border-bottom: 1px solid var(--border); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-item h3 { font-size: 16px; }
.acc-btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.acc-btn span { font-size: 16px; line-height: 24px; font-weight: 500; }
.acc-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: rgb(255 255 255 / 0.6);
  transition: transform 200ms;
}
.acc-item.open .acc-btn svg { transform: rotate(45deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 300ms ease, opacity 300ms ease;
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; opacity: 1; }
.acc-panel > div { overflow: hidden; }
.acc-body { max-width: 672px; padding: 0 44px 24px 0; font-size: 16px; line-height: 28px; }
.acc-body p + p { margin-top: 12px; }
.acc-body a { text-decoration: underline; }

/* ---------- Footer ---------- */
.back { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 16px; text-align: center; }
.back a { display: grid; place-items: center; padding: 8px; transition: opacity 150ms; }
.back a:hover { opacity: 0.7; }
.back svg { width: 18px; height: 18px; }
.back p { font-size: 12px; line-height: 16px; color: rgb(255 255 255 / 0.5); }

/* Line of text under the nav links (desktop only) */
.nav-main { display: flex; flex-grow: 1; flex-direction: column; align-items: flex-end; }
.nav-main .nav-links { flex-grow: 0; }
.nav-note {
  display: none;
  padding-inline: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.05em;
  color: rgb(255 255 255 / 0.6);
}
@media (min-width: 1280px) { .nav-note { display: block; } }