:root {
  --bg: #e7e7e7;
  --ink: #111215;
  --muted: #6b6e76;
  --line: rgba(17, 18, 21, .08);
  --tile-r: clamp(34px, 8.6vw, 68px);
  --page: 1080px;
  --gap: clamp(16px, 2.2vw, 28px);
  --gutter: clamp(18px, 4vw, 40px);
  --header: 76px;
  --font: "Instrument Sans", "Noto Serif SC", sans-serif;
  --font-display: Syne, "Noto Serif SC", sans-serif;
  --font-text: "Noto Serif SC", "Instrument Sans", serif;
  --spring: cubic-bezier(.22, 1.18, .36, 1);
  --spring-out: cubic-bezier(.32, .72, .22, 1);
  --dof: cubic-bezier(.18, .86, .22, 1);
  --squircle: url("/assets/squircle.svg");
  --glass: rgba(255, 255, 255, .42);
  --glass-edge: rgba(255, 255, 255, .62);
}
* { box-sizing: border-box; }
html {
  margin: 0;
  color-scheme: light;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.18) transparent;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: transparent;
  color: var(--ink);
  line-height: 1.55;
  font-optical-sizing: auto;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(255,255,255,.7), transparent 58%),
    linear-gradient(180deg, #ececec 0%, #e7e7e7 46%, #e2e2e2 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.glass-orb {
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.22));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -8px 16px rgba(255,255,255,.08),
    0 8px 24px rgba(30, 36, 50, .08);
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  padding: 10px var(--gutter);
  background: linear-gradient(180deg, rgba(230,231,236,.55), rgba(230,231,236,.12));
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
}
.brand img {
  height: 28px;
  width: auto;
}
.search-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: transform .5s var(--spring), box-shadow .5s var(--spring);
}
.search-btn:hover { transform: scale(1.06); }
.search-btn:active { transform: scale(.94); }
.search-btn svg { width: 18px; height: 18px; }

.gallery {
  width: min(720px, calc(100% - 2 * var(--gutter)));
  margin: 10px auto 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  perspective: 1400px;
}
.tile {
  position: relative;
  display: block;
  overflow: visible;
  background: transparent;
  isolation: isolate;
  transform-origin: center;
  will-change: transform, opacity;
}
.tile-clip {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  min-height: 140px;
  border-radius: var(--tile-r);
  overflow: hidden;
  background: #0b0c10;
  box-shadow:
    0 28px 50px rgba(30, 34, 42, .16),
    0 2px 6px rgba(30, 34, 42, .08);
}
@supports (corner-shape: squircle) {
  .tile-clip,
  .stage {
    corner-shape: squircle;
  }
}
@supports (corner-shape: superellipse(2)) {
  .tile-clip,
  .stage,
  .tile-spec,
  .tile-rim,
  .stage::after {
    corner-shape: superellipse(2);
  }
}
.tile canvas,
.tile .tile-fill {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  aspect-ratio: 1 / 1;
  image-rendering: auto;
}
.tile-spec,
.tile-rim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  corner-shape: inherit;
}
.tile-spec {
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 18%),
    rgba(255,255,255,.26),
    rgba(255,255,255,.04) 28%,
    transparent 52%
  );
  mix-blend-mode: soft-light;
  opacity: .38;
}
.tile-rim {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -18px 36px rgba(0,0,0,.18),
    inset 0 0 0 1px rgba(255,255,255,.2);
}
.tile--soon .tile-clip {
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), transparent 42%),
    #9aa56f;
  display: grid;
  place-items: center;
  color: rgba(48, 54, 28, .78);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  cursor: default;
  backdrop-filter: blur(8px) saturate(140%);
}
.tile--soon {
  cursor: default;
}

.tile-cap {
  display: block;
  margin-top: 12px;
  text-align: center;
  pointer-events: none;
}
.tile-cap strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .18em;
}
.tile-cap span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.tile--done .tile-cap strong::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 2px 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .42;
  vertical-align: middle;
}

.site-foot {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 12px var(--gutter) 56px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
}
.site-foot a {
  position: relative;
  padding: 8px 4px;
  transition: color .35s var(--spring);
}
.site-foot a::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--spring);
}
.site-foot a:hover { color: var(--ink); }
.site-foot a:hover::after { transform: scaleX(1); }

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  padding: 22px var(--gutter) 40px;
  background: rgba(236, 238, 243, .42);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  opacity: 0;
}
.search-layer.is-open {
  display: flex;
  animation: sheet-in .55s var(--spring) forwards;
}
.search-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 8px 6px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.22));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    0 18px 40px rgba(20, 24, 34, .08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.search-top input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  padding: 14px 0;
  letter-spacing: -.04em;
}
.search-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  opacity: .6;
  background: rgba(255,255,255,.35);
}
.search-close:hover { opacity: 1; }
.search-results {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  max-width: 720px;
}
.search-results a span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.03em;
}
.search-results .meta {
  font-family: var(--font-text);
}
.search-results a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .45s var(--spring), background .35s;
}
.search-results a:hover {
  transform: scale(1.015);
  background: rgba(255,255,255,.48);
}
.search-results .meta { color: var(--muted); font-size: 14px; }
.search-empty { color: var(--muted); padding: 20px 4px; }

.page {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 12px 0 64px;
}
.world-hero {
  padding: 18px 0 36px;
}
.world-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 104px);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: .86;
  animation: dof-copy 1.45s var(--dof) both;
}
.world-hero .zh {
  margin: 16px 0 0;
  font-family: var(--font-text);
  font-size: 17px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .02em;
  animation: dof-copy 1.5s var(--dof) .08s both;
}
.world-hero .pitch {
  margin: 22px 0 0;
  max-width: 34rem;
  font-family: var(--font-text);
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  animation: dof-copy 1.55s var(--dof) .14s both;
}
.enter {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  animation: dof-copy 1.55s var(--dof) .22s both;
  transition: transform .45s var(--spring);
}
.enter:hover { transform: scale(1.04); }
.enter:active { transform: scale(.96); }

.stage-wrap {
  filter: drop-shadow(0 28px 70px rgba(16, 18, 28, .22));
}
.stage {
  position: relative;
  border-radius: var(--tile-r);
  overflow: hidden;
  background: #07080c;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  animation: dof-stage 1.85s var(--dof) .12s both;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  corner-shape: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.12);
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.hud {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}
.hud > div {
  padding: 8px 12px;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.hud b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -.02em;
  text-transform: none;
  color: #fff;
  font-weight: 700;
}
.hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 12px;
  color: rgba(255,255,255,.72);
  pointer-events: none;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.world-copy {
  display: grid;
  gap: 48px;
  margin-top: 56px;
  max-width: 38rem;
}
.world-copy p {
  margin: 0;
  font-family: var(--font-text);
  font-size: 19px;
  line-height: 1.65;
  color: #2a2c32;
  animation: dof-copy 1.5s var(--dof) both;
}
.world-copy p:nth-child(1) { animation-delay: .48s; }
.world-copy p:nth-child(2) { animation-delay: .58s; }
.world-copy p:nth-child(3) { animation-delay: .68s; }
.byline {
  margin: 72px 0 0;
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-hero {
  min-height: calc(100dvh - var(--header) - 120px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8vh var(--gutter) 10vh;
}
.about-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(38px, 6.6vw, 72px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.05;
  animation: rise 1s var(--spring) .08s both;
}
.about-body {
  width: min(640px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto 80px;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.7;
}
.about-body p { margin: 0 0 1.1em; color: #333; }
.about-logo {
  width: 84px;
  margin: 0 auto 28px;
  animation: rise .8s var(--spring) both;
}

.contact-block {
  width: min(640px, calc(100% - 2 * var(--gutter)));
  margin: 8vh auto 80px;
}
.contact-block h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -.06em;
  animation: rise .8s var(--spring) both;
}
.contact-block h2 {
  margin: 32px 0 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.contact-block p {
  font-family: var(--font-text);
}
.contact-block a { border-bottom: 1px solid currentColor; }
.contact-block a:hover { opacity: .55; }

.legal {
  width: min(720px, calc(100% - 2 * var(--gutter)));
  margin: 4vh auto 80px;
}
.legal h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 56px);
  font-weight: 800;
  letter-spacing: -.035em;
}
.legal h2 { margin: 28px 0 8px; font-size: 18px; font-weight: 560; }
.legal p { color: #333; }
.legal .meta { color: var(--muted); font-size: 14px; }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.98); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes dof-copy {
  from {
    opacity: 0;
    filter: blur(16px);
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
@keyframes dof-stage {
  0% {
    opacity: 0;
    filter: blur(30px) saturate(.55);
    transform: translate3d(0, 52px, 0) scale(1.06);
  }
  42% {
    opacity: 1;
    filter: blur(11px) saturate(.84);
    transform: translate3d(0, 16px, 0) scale(1.02);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
@keyframes sheet-in {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stage { aspect-ratio: 1 / 1; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; width: min(420px, calc(100% - 2 * var(--gutter))); }
  .chrome { height: 68px; }
  .hud { font-size: 11px; }
  .brand, .search-btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .world-hero h1, .world-hero .zh, .world-hero .pitch, .enter, .stage, .stage-wrap, .world-copy p, .about-hero h1, .about-logo, .contact-block h1 {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .search-layer.is-open { animation: none; opacity: 1; }
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .chrome, .glass-orb, .search-layer, .search-top, .hud > div, .hint {
    background: rgba(236, 238, 243, .92);
  }
}

html.lab-nursery,
html.lab-page {
  background: #07060e;
  color-scheme: dark;
}
html.lab-nursery,
html.lab-nursery body,
html.lab-page,
html.lab-page body {
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
html.lab-nursery body,
html.lab-page body {
  background: #07060e;
  color: rgba(244, 247, 248, .88);
}
html.lab-nursery body::before,
html.lab-nursery body::after,
html.lab-page body::before,
html.lab-page body::after {
  display: none;
}
html.lab-nursery .site-foot,
html.lab-page .site-foot { display: none; }
html.lab-nursery .chrome,
html.lab-page .chrome {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
html.lab-nursery .chrome > *,
html.lab-page .chrome > * { pointer-events: auto; }
html.lab-nursery .hint,
html.lab-page .hint {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (max-width: 560px) {
  html.lab-nursery,
  html.lab-page { --header: 68px; }
}
