:root {
  --bg: #14161A;
  --text: #D9DDE3;
  --muted: #8B9098;
  --line: #2A2E35;
  --teal: #18C3BB;
  --orange: #FF5A2F;
  --font: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--text); color: var(--bg); }

.site-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) 34px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 2.8vw, 2.6rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .9rem;
  font-weight: 680;
  letter-spacing: -.035em;
}
.brand img {
  display: block;
  width: 31px;
  height: 24px;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  font-size: .78rem;
  color: var(--muted);
}
.topnav a,
.github-link {
  position: relative;
  transition: color 160ms ease;
}
.topnav a::after,
.github-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.topnav a:hover,
.topnav a:focus-visible,
.github-link:hover,
.github-link:focus-visible { color: var(--text); }
.topnav a:hover::after,
.topnav a:focus-visible::after,
.github-link:hover::after,
.github-link:focus-visible::after { transform: scaleX(1); }

.github-link {
  justify-self: end;
  font-size: .72rem;
  color: var(--muted);
}

.main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.company-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 1.4rem;
  padding: clamp(1.1rem, 2.5vh, 1.8rem) clamp(1rem, 2.8vw, 2.6rem);
  border-bottom: 1px solid var(--line);
}
.company-note p,
.company-note h1 {
  margin: 0;
}
.company-note p {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .075em;
  text-transform: uppercase;
  white-space: nowrap;
}
.company-note h1 {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 520;
  letter-spacing: -.025em;
}

.product-bays {
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.bay {
  --accent: var(--text);
  position: relative;
  isolation: isolate;
  flex: 1 1 50%;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: clamp(1.35rem, 2.6vw, 2.5rem);
  overflow: hidden;
  border-right: 1px solid var(--line);
  transition: flex-basis 360ms cubic-bezier(.2,.8,.2,1), background-color 220ms ease;
}
.bay:last-child { border-right: 0; }
.bay--rabbit { --accent: var(--teal); }
.bay--quic { --accent: var(--orange); }

.bay::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 0;
  background: var(--accent);
  opacity: .055;
  transition: height 320ms cubic-bezier(.2,.8,.2,1);
}
.bay:hover::after,
.bay:focus-visible::after { height: 28%; }

.bay:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.product-bays:has(.bay:hover) .bay:hover,
.product-bays:has(.bay:focus-visible) .bay:focus-visible { flex-basis: 55%; }
.product-bays:has(.bay:hover) .bay:not(:hover),
.product-bays:has(.bay:focus-visible) .bay:not(:focus-visible) { flex-basis: 45%; }

.bay-orbit {
  position: absolute;
  z-index: -2;
  width: clamp(260px, 29vw, 520px);
  aspect-ratio: 1;
  border: clamp(26px, 3vw, 48px) solid var(--accent);
  border-radius: 50%;
  opacity: .14;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease;
  pointer-events: none;
}
.bay--rabbit .bay-orbit {
  left: clamp(-250px, -16vw, -130px);
  bottom: clamp(-250px, -17vw, -120px);
}
.bay--quic .bay-orbit {
  right: clamp(-260px, -17vw, -135px);
  top: clamp(-250px, -16vw, -120px);
}
.bay:hover .bay-orbit,
.bay:focus-visible .bay-orbit {
  transform: translate3d(12px, -8px, 0) scale(1.04);
  opacity: .22;
}
.bay--quic:hover .bay-orbit,
.bay--quic:focus-visible .bay-orbit {
  transform: translate3d(-12px, 8px, 0) scale(1.04);
}

.bay-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.bay-type {
  color: var(--accent);
  font-weight: 650;
}

.bay-body {
  align-self: center;
  display: grid;
  max-width: 560px;
}
.bay--quic .bay-body {
  justify-self: end;
  text-align: right;
}
.bay-name {
  color: var(--text);
  font-size: clamp(4.2rem, 7.5vw, 8.6rem);
  font-weight: 620;
  line-height: .82;
  letter-spacing: -.075em;
  white-space: nowrap;
}
.bay-description {
  margin-top: 1.2rem;
  color: var(--text);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.45;
}
.bay-tagline {
  margin-top: .35rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

.bay-action {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  width: max-content;
  color: var(--accent);
  font-size: .84rem;
  font-weight: 660;
}
.bay--quic .bay-action { justify-self: end; }
.bay-action b {
  font: inherit;
  transition: transform 180ms ease;
}
.bay:hover .bay-action b,
.bay:focus-visible .bay-action b { transform: translate(4px, -4px); }

.footerline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 2.8vw, 2.6rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .topnav { display: none; }
  .company-note {
    grid-template-columns: 1fr;
    gap: .4rem;
  }
  .product-bays {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .bay {
    min-height: 42svh;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .bay:last-child { border-bottom: 0; }
  .bay--quic .bay-body {
    justify-self: start;
    text-align: left;
  }
  .bay--quic .bay-action { justify-self: start; }
  .bay-name { font-size: clamp(3.8rem, 13vw, 7rem); }
  .bay-orbit { width: clamp(230px, 60vw, 400px); }
  .bay--rabbit .bay-orbit {
    left: -150px;
    bottom: -170px;
  }
  .bay--quic .bay-orbit {
    right: -160px;
    top: -170px;
  }
}

@media (max-width: 520px) {
  .site-shell { grid-template-rows: 60px auto 32px; }
  .brand img { width: 28px; height: 22px; }
  .brand span { font-size: .82rem; }
  .github-link,
  .footerline { font-size: .58rem; }
  .company-note { padding-inline: .9rem; }
  .bay {
    padding: 1.15rem .9rem 1.35rem;
    min-height: 390px;
  }
  .bay-topline { font-size: .63rem; }
  .bay-name {
    font-size: clamp(3.35rem, 16vw, 5.2rem);
    white-space: normal;
  }
  .bay-description { margin-top: 1rem; }
}

@media (hover: none) {
  .bay::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
