:root {
  color-scheme: dark;
  --ink: #1f1f33;
  --blue: #1b36ff;
  --aqua: #00fcf1;
  --snow: #eeeff2;
  --white: #ffffff;
  --muted: #aeb3ce;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--snow);
  background:
    radial-gradient(circle at 83% 14%, rgba(0, 252, 241, .18), transparent 24rem),
    radial-gradient(circle at 10% 88%, rgba(27, 54, 255, .25), transparent 26rem),
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(238, 239, 242, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 239, 242, .11) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--aqua); outline-offset: 5px; }

.site-shell {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 0 26px;
  display: flex;
  flex-direction: column;
}

.site-header { display: flex; justify-content: space-between; align-items: center; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 780;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand img { width: 52px; height: 52px; }

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: clamp(52px, 7vw, 82px);
}
.product-card {
  position: relative;
  isolation: isolate;
  min-height: 270px;
  padding: 26px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .25), 0 0 12px rgba(0, 252, 241, .1);
}
.product-card > * { position: relative; z-index: 1; }
.product-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, #1b36ff, #00fcf1, #55ed9b, #ffe15d, #ff5ca8, #9b6cff, #1b36ff);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rainbow-frame 4.5s ease-in-out infinite alternate;
  transition: inset .34s cubic-bezier(.22, 1, .36, 1), padding .34s cubic-bezier(.22, 1, .36, 1), opacity .24s ease;
}
.product-card:hover::after,
.product-card:focus-visible::after {
  inset: -7px;
  padding: 7px;
  opacity: .92;
}
@keyframes rainbow-frame { to { background-position: 220% 0; } }
.tools-card { --card-fill: linear-gradient(var(--snow), var(--snow)); background: var(--card-fill); color: var(--ink); }
.play-card { --card-fill: linear-gradient(135deg, #ffffff, #e5e9fb); background: var(--card-fill); color: var(--ink); }
.product-number { color: var(--blue); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.product-logo { display: block; width: min(100%, 315px); height: auto; align-self: flex-start; }
.tools-logo { width: min(100%, 310px); }
.play-logo { width: min(100%, 320px); }
.product-details {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.product-summary {
  max-width: 490px;
  color: #4f5368;
  font-size: .92rem;
  font-weight: 610;
  line-height: 1.5;
}
.product-arrow {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 760;
  line-height: 1;
}

.about {
  margin-top: clamp(54px, 8vw, 94px);
  padding: 22px 0;
  border-top: 1px solid rgba(238, 239, 242, .24);
  border-bottom: 1px solid rgba(238, 239, 242, .13);
  display: grid;
  grid-template-columns: minmax(130px, .32fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
}
.about-label {
  margin: 0;
  color: var(--aqua);
  font-size: .72rem;
  font-weight: 840;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.about-copy {
  max-width: 620px;
  margin: 0 0 13px;
  color: var(--snow);
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 560;
  letter-spacing: -.02em;
  line-height: 1.45;
}
.about-content { max-width: 720px; }

.past-projects { margin-top: clamp(54px, 8vw, 94px); }
.project-record { margin-top: 18px; border: 1px solid rgba(238, 239, 242, .24); }
.project-record summary {
  min-height: 92px;
  padding: 20px 22px;
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  transition: background .18s ease;
}
.project-record summary::-webkit-details-marker { display: none; }
.project-record summary:hover { background: rgba(238, 239, 242, .07); }
.project-number { color: var(--aqua); font-size: .75rem; font-weight: 850; letter-spacing: .13em; }
.project-name { color: var(--white); font-size: clamp(1.2rem, 3vw, 1.75rem); font-weight: 710; letter-spacing: -.04em; }
.project-name small { margin-left: 9px; color: var(--muted); font-size: .56em; font-weight: 680; letter-spacing: .01em; white-space: nowrap; }
.project-toggle { color: var(--muted); font-size: .78rem; font-weight: 720; white-space: nowrap; }
.project-toggle span { display: inline-block; margin-left: 7px; color: var(--aqua); font-size: 1.1rem; transition: transform .18s ease; }
.project-record[open] { border-color: var(--aqua); box-shadow: 0 18px 44px rgba(0, 0, 0, .2), 0 0 20px rgba(0, 252, 241, .1); }
.project-record[open] .project-toggle span { transform: rotate(45deg); }
.project-notes { padding: 0 22px 26px 102px; color: var(--snow); }
.project-notes p { max-width: 780px; margin: 0 0 12px; font-size: .96rem; font-weight: 520; line-height: 1.58; }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.project-links a { padding: 10px 12px; border: 1px solid rgba(238, 239, 242, .25); color: var(--snow); font-size: .78rem; font-weight: 730; text-decoration: none; }
.project-links a:hover { border-color: var(--aqua); color: var(--aqua); }
.project-links span { margin-left: 5px; }

.site-footer {
  margin-top: auto;
  padding-top: 72px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 620;
  text-align: right;
}

.error-page { min-height: 100vh; }
.error-shell {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 0 26px;
  display: flex;
  flex-direction: column;
}
.error-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: clamp(64px, 10vw, 120px) 0;
}
.error-content {
  padding: clamp(38px, 7vw, 72px) 0;
}
.error-label {
  margin: 0 0 20px;
  color: var(--aqua);
  font-size: .72rem;
  font-weight: 840;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.error-title {
  margin: 0;
  color: var(--snow);
  font-size: clamp(3.7rem, 11vw, 8.5rem);
  font-weight: 780;
  letter-spacing: -.075em;
  line-height: .9;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .rainbow-text {
    color: transparent;
    background: linear-gradient(90deg, #7690ff, #56e6df, #8dd9ae, #ddcb7e, #c99ec5, #7690ff);
    background-size: 220% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-text 6s ease-in-out infinite alternate;
  }
}
@keyframes rainbow-text { to { background-position: 220% 0; } }
.error-copy {
  max-width: 580px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 540;
  line-height: 1.55;
}
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 15px;
  border: 1px solid rgba(238, 239, 242, .3);
  color: var(--snow);
  font-size: .84rem;
  font-weight: 740;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.home-link:hover { border-color: var(--aqua); color: var(--aqua); transform: translateY(-2px); }
.home-link span { font-size: 1.05rem; }
.error-footer { padding-top: 28px; }

@media (max-width: 650px) {
  .site-shell { width: min(100% - 32px, 1120px); padding-top: 20px; }
  .products { grid-template-columns: 1fr; }
  .product-card { min-height: 225px; padding: 22px; }
  .about { grid-template-columns: 1fr; gap: 12px; }
  .project-record summary { min-height: 82px; padding: 17px; grid-template-columns: 46px 1fr auto; gap: 8px; }
  .project-toggle { font-size: .7rem; }
  .project-notes { padding: 0 17px 22px; }
  .site-footer { padding-top: 48px; }
  .error-shell { width: min(100% - 32px, 1120px); padding-top: 20px; }
  .error-main { padding: 44px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card { transition: none; }
  .product-card::after { transition: none; animation: none; }
  .rainbow-text { animation: none; }
}
