@font-face {
  font-family: StudioGrid;
  src: url(assets/studio-grid.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
.accounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 clamp(36px, 6vh, 84px);
  padding-block: clamp(24px, 3vw, 48px);
  border-block: 1px solid var(--rule);
  scroll-margin-top: clamp(80px, 18svh, 178px);
}
.account {
  display: grid;
  grid-template-columns: clamp(82px, 8.75vw, 156px) 1fr;
  align-items: center;
  gap: clamp(10px, 1.35vw, 28px);
}
.account + .account {
  border-inline-start: 1px solid #cccac3;
  padding-inline-start: clamp(14px, 2.3vw, 48px);
}
.account-symbol {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}
.account-symbol img { display: block; width: 100%; height: auto; }
.scan, .scan-large { mix-blend-mode: multiply; }
.scan { cursor: zoom-in; }
.github-symbol img { width: 71%; }
.account-info h3 {
  font-size: clamp(22px, 1.85vw, 36px);
  letter-spacing: -.04em;
  line-height: 1.18;
}
.account-info p {
  margin: 7px 0 13px;
  color: #575752;
  font: 400 15px/1.4 StudioGrid, monospace;
  letter-spacing: .025em;
}
.account-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-block: 4px;
  font-size: clamp(13px, .96vw, 17px);
  color: #494946;
}
.account-link span { transition: transform .18s ease; }
.account-link:hover span, .account-link:focus-visible span { transform: translate(2px, -2px); }
.filing { text-decoration: underline; text-underline-offset: .24em; }
.scan-dialog {
  width: min(88vw, 420px, 80svh);
  max-height: 92svh;
  padding: 20px;
  margin: auto;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
}
.scan-dialog::backdrop { background: rgb(25 25 22 / .52); }
.scan-bar { display: flex; align-items: center; justify-content: space-between; }
.scan-bar h3 { font-size: 19px; }
.scan-bar button {
  width: 40px; height: 40px;
  border: 0; background: transparent; color: inherit; font: 24px/1 StudioGrid, sans-serif; cursor: pointer;
}
.scan-large { display: block; width: 100%; margin-block: 12px 4px; }
@media (max-width: 650px) {
  .accounts { grid-template-columns: 1fr; padding-block: 0; scroll-margin-top: 80px; }
  .account { grid-template-columns: 88px 1fr; gap: 18px; padding: 10px 0; }
  .account + .account { border-inline-start: 0; border-top: 1px solid #cccac3; padding-inline-start: 0; }
  .account-info p { margin-block: 5px 7px; }
}

:root {
  --paper: #f5f3ef; --ink: #181818; --muted: #60605d; --rule: #bebeb5;
  --red: #d7492e;
  color: var(--ink); background: var(--paper); scroll-behavior: smooth;
  font-family: StudioGrid, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { font-size: 15px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid #b94f32; outline-offset: 4px; }
.rail { width: min(88%, 1480px); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 12px; background: white; padding: 10px; z-index: 10; }
.skip:focus { top: 10px; }
header {
  position: fixed; inset: 0 0 auto; z-index: 5;
  background: var(--paper); border-bottom: 1px solid transparent;
  transition: background-color .35s, color .35s, border-color .35s;
}
header.scrolled { border-color: #dedcd7; }
.topbar, .identity, nav, .cover-foot, .cover-foot > div { display: flex; align-items: center; }
.topbar { height: 64px; justify-content: space-between; }
.identity { gap: 10px; }
.identity img { width: 28px; height: 28px; filter: grayscale(1); }
.identity b { font-size: 15px; letter-spacing: .02em; opacity: var(--signature, 1); }
nav, .cover-foot > div { gap: clamp(16px, 2.4vw, 36px); }
nav a, .cover-foot a { font-size: 13px; padding-block: 10px; }
nav a:hover, .cover-foot a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.cover {
  position: relative; display: grid; align-items: center;
  padding-block: clamp(84px, 8vw, 115px) clamp(28px, 3.4vw, 54px);
}
.cover-copy { min-width: 0; }
.wordmark { width: min(35vw, 525px); aspect-ratio: 169/52; position: relative; }
.wordmark img { height: 100%; position: absolute; top: 0; display: block; }
.shi { left: 0; width: 33.7278%; }.zuo { left: 34.3195%; width: 31.9527%; }.she { left: 66.8639%; width: 33.1361%; }
.origin { position: absolute; left: 42.8%; top: 106%; width: 10.05%; height: 4px; background: var(--red); }
.wordmark img, .type-motion { image-rendering: pixelated; }
.type-motion { position: absolute; inset: -11.5385% 0; width: 100%; height: 123.077%; visibility: hidden; pointer-events: none; }
.wordmark.playing img { visibility: hidden; }
.wordmark.playing .type-motion { visibility: visible; }
.motto { margin-top: clamp(38px, 6svh, 58px); font-size: clamp(16px, 1.45vw, 22px); line-height: 1.5; letter-spacing: .035em; }
.cover-foot { position: absolute; bottom: 0; inset-inline: 0; min-height: 68px; border-top: 1px solid var(--rule); justify-content: space-between; }
.browse span { color: #bc3b29; display: inline-block; margin-left: 4px; }
.works { background: var(--paper); color: var(--ink); padding-block: 0 clamp(36px, 4vw, 64px); scroll-margin-top: 62px; }
.works-grid { display: grid; gap: clamp(20px, 2vw, 32px); }
.index {
  display: grid; grid-template-columns: minmax(90px, .4fr) 3fr; gap: 20px; align-items: center;
  border-block: 1px solid var(--rule);
}
.tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.index h2, .about-block h2, .contact h2 { font-size: 14px; font-weight: 550; line-height: 1.4; letter-spacing: .085em; }
.index h2 { color: var(--muted); }
.tabs button {
  display: flex; align-items: center; gap: 12px; position: relative; min-width: 0;
  text-align: left; padding: 14px 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.tabs button::after {
  content: ""; position: absolute; inset: auto 12px -1px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.tabs button[aria-selected=true]::after { transform: scaleX(1); }
.tabs button:hover { background: #ebe9e3; }
.product-logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.tabs strong { display: block; font-size: clamp(18px, 1.55vw, 24px); letter-spacing: -.04em; line-height: 1.25; font-weight: 560; }
.tabs small { display: block; font-size: 12px; font-weight: 400; margin-top: 2px; line-height: 1.4; color: var(--muted); }
.destination { position: absolute; inset: auto auto -3px 12px; width: 6px; height: 6px; }
.tabs [aria-selected=true] .destination { background: var(--red); }
.stage {
  position: relative; overflow: hidden; aspect-ratio: 8/5; background: #eeede9;
}
.stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pixel-wipe { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.product-page {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 3vw, 48px);
}
.project-text h3 { font-size: clamp(20px, 1.65vw, 26px); line-height: 1.45; font-weight: 540; margin-bottom: 12px; }
.project-text p { color: #484845; }
.project-text p + p { margin-top: 8px; }
.project-link { display: inline-block; font-size: 14px; margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid var(--rule); }
.project-link span { display: inline-block; margin-left: 8px; transition: transform .2s; }
.project-link:hover span { transform: translate(2px,-2px); }
.exhibit + .exhibit { margin-top: 50px; }
.motion .exhibit { margin-top: 0; }
.marker { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; display: none; }
.marker i { display: block; height: 100%; background: repeating-linear-gradient(90deg,var(--red) 0 7px, transparent 7px calc(7px + var(--gap, 4px))); transform-origin: left center; }
.motion .marker { display: block; }
.motion .origin, .motion .tabs .destination { background: transparent; }
.closing { scroll-margin-top: 64px; }
.about-block { border-top: 1px solid var(--rule); padding-block: clamp(28px, 3.6vw, 56px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); align-items: start; gap: 5%; }
.about-block h2 { color: var(--muted); }
.about-rule {
  flex: none;
  width: 48px;
  height: 3px;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px);
}
@media (prefers-reduced-motion: no-preference) {
  .about-rule.waiting { clip-path: inset(0 100% 0 0); }
}
.about-intro h3 { font-size: clamp(22px, 1.95vw, 30px); font-weight: 570; line-height: 1.25; letter-spacing: -.045em; margin: 14px 0 0; }
.about-copy p { max-width: 46em; color: #424740; font-size: 15px; line-height: 1.95; }
.about-copy p + p { margin-top: 10px; }
.contact { border-top: 1px solid var(--rule); padding-block: 22px; display: flex; align-items: baseline; gap: 5%; scroll-margin-top: 80px; }
.contact a { font-size: clamp(20px, 2vw, 31px); font-weight: 540; letter-spacing: -.035em; }
.contact a:hover { text-decoration: underline; text-underline-offset: .22em; }
.contact span { margin-left: auto; font-size: 13px; color: var(--muted); }
.accounts { padding-block: 16px; margin-bottom: 17px; }
.account-info h3 { font-size: clamp(18px, 1.5vw, 24px); }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap: 9px; padding-bottom: 22px; color: var(--muted); font-size: 13px; }
footer .filing { justify-self: center; color: #41463f; }
footer a:last-child { justify-self: end; }
@media (max-width: 760px) {
  .rail { width: 89%; }
  .topbar { height: 55px; }
  .wordmark { width: min(50vw, 260px); }

  .motto { font-size: 16px; }
  .cover { padding: 82px 0 36px; }
  .works { padding-block: 0 28px; scroll-margin-top: 54px; }
  .works-grid { gap: 16px; }
  .index { grid-template-columns: 1fr; gap: 8px; padding-top: 12px; }
  .tabs { gap: 6px; }
  .tabs button { flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 3px 10px; }
  .tabs button::after { inset-inline: 3px; }
  .tabs small { font-size: 12px; }
  .product-logo { width: 32px; height: 32px; }
  .destination { left: 3px; }

  .product-page { grid-template-columns: 1fr; gap: 14px; }
  .about-block { grid-template-columns: 1fr; gap: 12px; padding-block: 24px; }
  .about-intro h3 { margin-top: 8px; }
  .contact { flex-wrap: wrap; gap: 8px 18px; padding-block: 20px; }
  .contact span { width: 100%; }
  .accounts { padding-block: 0; }
  footer { grid-template-columns: 1fr 1fr; }
  footer .filing { grid-column: 1/-1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::after { transition: none !important; }
}

.hero-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 5%; padding-inline: 2%; }
.motto { font-size: 18px; margin-top: 36px; line-height: 1.65; }
.plotter { width: min(100%, 432px, 54svh); position: relative; justify-self: center; }
.plotter canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.plotter button {
  position: absolute; right: 2%; bottom: 2%; cursor: pointer; border: 0;
  width: 40px; height: 40px; background: transparent; color: #7a7973;
}
.plotter button:hover, .plotter button:focus-visible { color: var(--ink); }
.plotter button span { display: inline-block; width: 8px; height: 8px; border-inline: 2px solid currentColor; }
.plotter button.paused span {
  width: 8px; height: 10px; border: 0; background: currentColor;
  clip-path: polygon(0 0,25% 0,25% 20%,50% 20%,50% 30%,75% 30%,75% 40%,100% 40%,100% 60%,75% 60%,75% 70%,50% 70%,50% 80%,25% 80%,25% 100%,0 100%);
}
.index h2, .about-block h2, .contact h2 { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.index h2::before, .about-block h2::before, .contact h2::before {
  content: ""; width: 12px; height: 12px; background: currentColor; flex: none;
}
.index h2::before { clip-path: polygon(0 0,42% 0,42% 42%,58% 42%,58% 0,100% 0,100% 42%,58% 42%,58% 58%,100% 58%,100% 100%,58% 100%,58% 58%,42% 58%,42% 100%,0 100%,0 58%,42% 58%,42% 42%,0 42%); }
.about-block h2::before { clip-path: polygon(0 0,100% 0,100% 25%,0 25%,0 41.67%,75% 41.67%,75% 66.67%,0 66.67%,0 83.33%,50% 83.33%,50% 100%,0 100%); }
.contact h2::before { clip-path: polygon(0 8%,100% 8%,100% 84%,42% 84%,42% 100%,18% 100%,18% 84%,0 84%,0 25%,18% 25%,18% 66%,82% 66%,82% 25%,0 25%); }
nav a:hover, .cover-foot a:hover, footer a:hover { text-decoration-style: dotted; }
.cover-foot, .about-block, .contact { border-top: 0; background: repeating-linear-gradient(to right,#a3a19a 0 2px,transparent 2px 5px) left top / 100% 1px no-repeat; }
.account-info h3, .tabs strong, .project-text h3, .about-intro h3, .contact a { letter-spacing: 0; }
.stage { clip-path: polygon(0 4px,4px 4px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 4px) calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 4px),0 calc(100% - 4px)); }
.project-text p, .about-copy p { font-size: 16px; line-height: 1.8; }
.project-link span, .account-link span, .browse span {
  display: inline-block; width: 10px; height: 10px; font-size: 0; background: currentColor;
  clip-path: polygon(0 0,100% 0,100% 100%,80% 100%,80% 40%,60% 40%,60% 60%,40% 60%,40% 80%,20% 80%,20% 100%,0 100%,0 80%,20% 80%,20% 60%,40% 60%,40% 40%,60% 40%,60% 20%,0 20%);
}
.browse span { clip-path: polygon(40% 0,60% 0,60% 65%,80% 65%,80% 45%,100% 45%,100% 65%,80% 65%,80% 82%,60% 82%,60% 100%,40% 100%,40% 82%,20% 82%,20% 65%,0 65%,0 45%,20% 45%,20% 65%,40% 65%); }
@media (max-width: 760px) {
  .hero-layout { padding: 0; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2%; }
  .plotter { width: 100%; align-self: center; }
  .wordmark { max-width: 100%; }
  .motto span { display: block; }
  .motto { max-width: 13em; font-size: 15px; line-height: 1.8; margin-top: 25px; }
  .plotter button { right: -5px; bottom: -18px; }
  .tabs strong { font-size: 18px; }
  .cover-foot > div { gap: 10px; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .product-page { grid-template-columns: 1fr 1.05fr; gap: 22px; }
  .project-text p { font-size: 15px; line-height: 1.75; }
}
@media (min-width: 651px) and (max-width: 900px) {
  .account { grid-template-columns: 72px 1fr; gap: 8px; }
  .account + .account { padding-inline-start: 12px; }
}

.exhibit { min-width: 0; touch-action: pan-y pinch-zoom; }
.page-controls:not([hidden]) {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 10px;
}
.page-status { font-size: 14px; color: var(--muted); }

.carousel-shell { position: relative; }
.page-viewport { overflow: clip; }
.motion .page-track { display: grid; }
.motion .product-page { grid-area: 1/1; min-width: 0; align-self: center; }
.motion .product-page[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.carousel-shell > button {
  display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 48px; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); background: transparent; font: 22px/1 StudioGrid, sans-serif;
}
.motion .carousel-shell > button { display: grid; place-items: center; }
.carousel-shell > button::before {
  content: ""; position: absolute; inset: 6px 3px; z-index: -1;
  background: var(--paper); border: 1px solid var(--rule);
}
.carousel-shell > button:hover, .carousel-shell > button:focus-visible { color: var(--paper); }
.carousel-shell > button:hover::before, .carousel-shell > button:focus-visible::before { background: var(--ink); }
.carousel-shell > [data-step="-1"] { right: calc(100% + 4px); }
.carousel-shell > [data-step="1"] { left: calc(100% + 4px); }
@media(max-width:900px) {
  .carousel-shell { padding-inline: 16px; }
  .carousel-shell > [data-step="-1"] { right: calc(100% - 18px); }
  .carousel-shell > [data-step="1"] { left: calc(100% - 18px); }
}
@media(max-width:760px) {
  .carousel-shell { padding-inline: 0; container-type: inline-size; }
  .product-page .stage { margin-inline: 24px; }
  .carousel-shell > button { top: calc(31.25cqw - 15px); }
  .carousel-shell > [data-step="-1"] { right: auto; left: -4vw; }
  .carousel-shell > [data-step="1"] { left: auto; right: -4vw; }
  .page-controls:not([hidden]) { margin-bottom: 8px; }
  .motion .product-page { align-self: start; }
}

/* Portrait product artefacts sit directly beside their accompanying story. */
.product-page.single-view {
  width: 100%;
  padding-inline: max(0px, calc((100% - 990px)/2));
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4.5vw, 70px);
}
.single-view .stage {
  width: auto;
  max-width: 100%;
  height: clamp(288px, 29vw, 402px);
  justify-self: center;
  clip-path: none;
  margin-inline: 0;
}
.postcard .stage {
  aspect-ratio: 3 / 4;
  background: #faf9f5;
  box-shadow: 0 0 0 1px #211c1617, 1px 2px 4px #302e2310, 3px 7px 13px #302e2310;
}
.inspector .stage {
  aspect-ratio: 732 / 792;
  background: #101223;
  border-radius: 4px;
  box-shadow: 0 1px 4px #10112120;
}
@media(max-width:760px) {
  .product-page.single-view { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .single-view .stage { height: clamp(218px,65vw,310px); margin-top: 5px; }
}

/* Keep a short selection cue while the red mark is still under the wordmark. */
@media (prefers-reduced-motion: no-preference) {
  .motion .tabs button[aria-selected=true]::after {
    transform: none;
    width: calc(12px + (100% - 36px) * var(--underline, 0));
    transition: none;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .motion .tabs button[aria-selected=true]::after {
    width: calc(12px + (100% - 18px) * var(--underline, 0));
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion .marker { display: none; }
  .motion .origin, .motion .tabs [aria-selected=true] .destination { background: var(--red); }
}
