:root {
  color-scheme: dark;
  --bg: #05070b;
  --surface: #0b0f15;
  --line: rgba(255, 255, 255, .14);
  --muted: #98a1ad;
  --text: #f4f6f8;
  --accent: #8ad9ff;
  --warm: #ffd188;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 74% 10%, rgba(40, 128, 178, .14), transparent 26rem),
    radial-gradient(circle at 10% 48%, rgba(108, 75, 164, .08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .23;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 30%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 60% 75%, #fff 0 1px, transparent 1.5px);
  background-size: 330px 310px, 420px 390px, 520px 480px;
}

a { color: inherit; }

.page-shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.header-link,
.primary-link,
.site-footer a {
  text-decoration: none;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .18em;
}

.wordmark-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .7);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  font-size: 13px;
}

.header-link {
  color: var(--muted);
  font-size: 13px;
  transition: color .25s ease;
}

.header-link span { margin-left: 8px; }
.header-link:hover { color: #fff; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 680px;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: 74px 0 96px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #aab3bd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(46px, 6.4vw, 86px);
  font-weight: 670;
  letter-spacing: -.06em;
  line-height: .96;
}

h1 em {
  color: #8e99a7;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-text {
  max-width: 580px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 300px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: border-color .25s ease, color .25s ease;
}

.primary-link:hover { color: var(--accent); border-color: var(--accent); }

.primary-link span {
  font-size: 30px;
  font-weight: 400;
  line-height: .7;
}

.logo-stage {
  position: relative;
  display: grid;
  min-height: 490px;
  place-items: center;
}

.logo-orbit {
  position: absolute;
  width: min(95%, 450px);
  aspect-ratio: 1;
  border: 1px solid rgba(125, 214, 255, .2);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(47, 157, 207, .04), 0 0 80px rgba(47, 157, 207, .04);
}

.logo-orbit::before,
.logo-orbit::after {
  position: absolute;
  content: "";
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent);
}

.logo-orbit::before { width: 5px; height: 5px; top: 9%; left: 24%; }
.logo-orbit::after { width: 3px; height: 3px; right: 3%; bottom: 37%; }

.logo-card {
  position: relative;
  width: min(74%, 340px);
  aspect-ratio: 1;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(-2deg);
}

.logo-card::after {
  content: none;
}

.logo-card img {
  display: block;
  width: 200%;
  max-width: none;
  height: auto;
  transform: translate(-25%, -25%);
  filter: brightness(0) invert(1) drop-shadow(0 0 22px rgba(138, 217, 255, .16));
}

.coordinate {
  position: absolute;
  color: #66707c;
  font: 10px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
}

.coordinate-top { top: 6%; right: 4%; }
.coordinate-bottom { bottom: 5%; left: 5%; }

.projects { padding: 90px 0 100px; border-top: 1px solid var(--line); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -.055em;
  line-height: 1;
}

.section-heading > p {
  max-width: 420px;
  margin-bottom: 5px;
  color: var(--muted);
  line-height: 1.6;
}

.project-grid { display: grid; gap: 22px; }

.project-card {
  position: relative;
  display: block;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  background: var(--surface);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.project-card .project-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.65,.2,1), filter .8s ease;
}

.project-card--spacerift .project-art { object-position: 58% center; }
.project-card--ros .project-art { object-position: 55% center; }
.project-card--sunrise .project-art { object-position: center 52%; }

.project-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3, 5, 8, .95) 0%, rgba(3, 5, 8, .72) 38%, rgba(3, 5, 8, .12) 78%), linear-gradient(0deg, rgba(0, 0, 0, .3), transparent 50%);
  transition: background .5s ease;
}

.project-number {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 30px;
  color: rgba(255, 255, 255, .55);
  font: 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .2em;
}

.project-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(600px, 76%);
  min-height: 480px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: end;
  padding: clamp(30px, 5vw, 64px);
}

.project-status {
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #c9d0d7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.project-logo-slot {
  position: relative;
  display: block;
  width: min(100%, 600px);
  height: clamp(82px, 11vw, 122px);
  margin-bottom: 18px;
  overflow: hidden;
}

.project-logo {
  position: absolute;
  display: block;
  max-width: none;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, .42));
}

.project-logo-slot--spacerift .project-logo {
  top: 50%;
  left: 50%;
  width: 185%;
  transform: translate(-50%, -50%);
}

.project-logo-slot--ros .project-logo {
  top: 50%;
  left: 0;
  height: 170%;
  transform: translateY(-50%);
}

.project-logo-slot--sunrise .project-logo {
  top: 50%;
  left: 0;
  width: auto;
  height: 100%;
  transform: translateY(-50%);
}

.project-description {
  max-width: 560px;
  margin-bottom: 28px;
  color: #bdc5ce;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.6;
}

.project-action {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-action b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}

.project-card:hover .project-art { transform: scale(1.045); filter: saturate(1.12) contrast(1.04); }
.project-card:hover .project-action b { background: #fff; color: #05070b; transform: rotate(45deg); }
.project-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 112px;
  border-top: 1px solid var(--line);
  color: #707a85;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .14em;
}

.footer-line { height: 1px; flex: 1; background: var(--line); }
.site-footer a { transition: color .25s ease; }
.site-footer a:hover { color: #fff; }

@media (max-width: 820px) {
  .page-shell { width: min(calc(100% - 30px), var(--max)); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 70px 0 80px; }
  .logo-stage { min-height: 420px; order: -1; }
  .logo-card { width: min(64%, 300px); }
  .section-heading { align-items: start; flex-direction: column; }
  .project-card, .project-content { min-height: 540px; }
  .project-content { width: 100%; padding-top: 210px; }
  .project-shade { background: linear-gradient(0deg, rgba(3, 5, 8, .98) 0%, rgba(3, 5, 8, .76) 48%, rgba(3, 5, 8, .12) 100%); }
}

@media (max-width: 520px) {
  .site-header { min-height: 72px; }
  .wordmark { font-size: 10px; }
  .header-link { display: none; }
  .hero { padding-top: 42px; }
  .logo-stage { min-height: 330px; }
  .coordinate { display: none; }
  h1 { font-size: 45px; }
  .projects { padding: 70px 0; }
  .project-card, .project-content { min-height: 510px; }
  .project-content { padding: 220px 24px 28px; }
  .project-logo-slot { height: 88px; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; }
  .footer-line { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
