:root {
  color-scheme: dark;
  --ink: #f3f0e8;
  --muted: #a9aca8;
  --paper: #101215;
  --surface: #171a1e;
  --surface-raised: #1d2025;
  --line: #33373d;
  --lime: #b8e86f;
  --coral: #ff826c;
  --blue: #6bbfe5;
  --max-width: 1180px;
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(107, 191, 229, 0.08), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 0.35rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.site-header,
main,
footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  align-items: center;
  min-height: min(42rem, calc(88vh - 5rem));
  min-height: min(42rem, calc(88svh - 5rem));
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.55rem;
}

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

h1,
h2,
h3 {
  line-height: 1.04;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 10.5vw, 7.3rem);
  letter-spacing: -0.065em;
}

h1 em,
h2 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.intro {
  max-width: 39rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: var(--lime);
  color: #10150b;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: transparent;
  color: var(--lime);
  transform: translateY(-2px);
}

.hero-object {
  position: relative;
  display: none;
  place-items: center;
  aspect-ratio: 1;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-one {
  width: 90%;
  height: 90%;
}

.orbit-two {
  width: 64%;
  height: 64%;
  border-style: dashed;
}

.bobble {
  position: relative;
  display: grid;
  justify-items: center;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.35));
  animation: bobble 4s ease-in-out infinite;
  transform-origin: 50% 85%;
}

.bobble-face {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 8.5rem;
  height: 7.5rem;
  border: 3px solid var(--paper);
  border-radius: 48% 52% 46% 54%;
  background: var(--coral);
  transform: rotate(-4deg);
}

.bobble-face span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--paper);
}

.bobble-spring {
  width: 1.6rem;
  height: 3rem;
  background: repeating-linear-gradient(175deg, transparent 0 5px, var(--lime) 6px 9px);
}

.bobble-base {
  display: grid;
  place-items: center;
  width: 8rem;
  height: 4.5rem;
  border-radius: 50% 50% 18% 18%;
  background: var(--blue);
  color: var(--paper);
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.spark {
  position: absolute;
  color: var(--lime);
  font-size: 2rem;
}

.spark-one {
  top: 15%;
  right: 12%;
}

.spark-two {
  bottom: 16%;
  left: 12%;
  color: var(--coral);
}

.projects {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.about h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 6vw, 4.75rem);
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 24rem;
  color: var(--muted);
}

.project-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 32rem;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  content: "";
  pointer-events: none;
}

.project-card-featured {
  background: linear-gradient(145deg, rgba(184, 232, 111, 0.08), transparent 42%), var(--surface-raised);
}

.card-topline,
.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-number {
  color: #929692;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.status {
  padding: 0.28rem 0.65rem;
  border: 1px solid #454a51;
  border-radius: 999px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-live {
  border-color: rgba(184, 232, 111, 0.35);
  color: var(--lime);
}

.status-live span {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.25rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(184, 232, 111, 0.1);
}

.project-symbol {
  position: absolute;
  top: 4.5rem;
  right: -1rem;
  display: grid;
  width: 12rem;
  height: 12rem;
  opacity: 0.86;
  transform: rotate(7deg);
}

.compass {
  place-items: center;
  border: 1px solid rgba(184, 232, 111, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle, var(--surface-raised) 0 24%, rgba(184, 232, 111, 0.1) 25% 26%, transparent 27%);
}

.compass::before,
.compass::after {
  position: absolute;
  background: rgba(184, 232, 111, 0.28);
  content: "";
}

.compass::before {
  width: 100%;
  height: 1px;
}

.compass::after {
  width: 1px;
  height: 100%;
}

.compass span {
  position: absolute;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.compass span:nth-child(1) { top: 0.7rem; }
.compass span:nth-child(2) { right: 0.8rem; }
.compass span:nth-child(3) { bottom: 0.7rem; }
.compass span:nth-child(4) { left: 0.8rem; }
.compass strong { font-size: 2rem; }

.dice {
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(107, 191, 229, 0.38);
  border-radius: 2.5rem;
  background: rgba(107, 191, 229, 0.06);
}

.dice span {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--blue);
}

.dice span:nth-child(1) { grid-area: 1 / 1; }
.dice span:nth-child(2) { grid-area: 1 / 3; }
.dice span:nth-child(3) { grid-area: 2 / 2; }
.dice span:nth-child(4) { grid-area: 3 / 1; }
.dice span:nth-child(5) { grid-area: 3 / 3; }

.card-copy {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  margin-top: auto;
  padding-top: 13rem;
}

.project-type {
  margin-bottom: 0.55rem;
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card-soon .project-type {
  color: var(--blue);
}

.card-copy h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
}

.card-copy > p:last-child {
  color: var(--muted);
}

.card-link {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

a.card-link:hover {
  color: var(--lime);
}

.card-link-muted {
  color: #929692;
}

.shelf-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px dashed #3d4248;
  border-radius: var(--radius);
  color: var(--muted);
}

.shelf-note span {
  color: var(--coral);
  font-size: 1.5rem;
}

.shelf-note p {
  margin: 0;
  font-size: 0.9rem;
}

.shelf-note strong {
  color: var(--ink);
}

.about {
  padding-block: clamp(5rem, 11vw, 10rem);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.about-grid > div {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

@keyframes bobble {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-6px); }
}

@media (min-width: 48rem) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 4rem), var(--max-width));
  }

  nav {
    gap: 2rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
    gap: 2rem;
    min-height: min(43rem, calc(90vh - 5rem));
    min-height: min(43rem, calc(90svh - 5rem));
  }

  .hero-object {
    display: grid;
  }

  .section-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shelf-note {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    align-items: start;
  }
}

@media (min-width: 70rem) {
  .project-card {
    min-height: 38rem;
  }

  .project-symbol {
    width: 15rem;
    height: 15rem;
  }

  .card-copy {
    padding-top: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
