/* The films carry each project's visual identity; this page stays quiet. */
:root {
  color-scheme: light;
  --showcase-paper: #fcfcfd;
  --showcase-ink: #22262d;
  --showcase-muted: #606872;
  --showcase-line: #e4e7eb;
  --showcase-link: #315b85;
  --showcase-gutter: 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--showcase-paper); color: var(--showcase-ink); font-size: 1.125rem; line-height: 1.8; -webkit-font-smoothing: antialiased; }
h1, h2, p, figure { margin: 0; }
main, section, header, figure { min-width: 0; }
a { color: var(--showcase-link); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:focus-visible, video:focus-visible { outline: 2px solid #315b85; outline-offset: 5px; }
a, video { -webkit-tap-highlight-color: #315b8526; }
img, svg, video { max-width: 100%; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10; padding: 10px 16px; background: #fff; border: 1px solid var(--showcase-line); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.showcase-nav, .showcase-main { width: calc(100% - var(--showcase-gutter) * 2); max-width: 1080px; margin-inline: auto; }
.showcase-nav { padding-block: 20px; font-size: .9375rem; }
.showcase-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--showcase-muted); text-decoration: none; }
.showcase-nav a:hover { color: var(--showcase-ink); text-decoration: underline; }
.showcase-main { padding-bottom: 88px; }
.showcase-heading { max-width: 72ch; margin: 20px 0 36px; }
.showcase-heading h1 { font-size: 2.5rem; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.showcase-heading p { max-width: 60ch; margin-top: 16px; color: var(--showcase-muted); font-size: 1.125rem; line-height: 1.75; text-wrap: pretty; }
.brief-demo { scroll-margin-top: 24px; }
.brief-demo-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--showcase-muted); }
.brief-demo-heading h2, .brief-demo-heading > span { font-size: .9375rem; line-height: 1.6; font-weight: 400; }
.brief-demo-heading > span { white-space: nowrap; }
.brief-demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #f1f3f5; border: 1px solid var(--showcase-line); border-radius: 8px; }
.brief-demo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 24px; margin-top: 10px; color: var(--showcase-muted); font-size: .9375rem; line-height: 1.7; }
.brief-demo figcaption a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.project-description { max-width: 72ch; margin-top: 64px; scroll-margin-top: 24px; }
.project-description h2, #architecture h2 { margin-bottom: 20px; font-size: 1.25rem; line-height: 1.5; font-weight: 600; }
.project-description p { overflow-wrap: anywhere; text-wrap: pretty; }
.project-description p + p { margin-top: 16px; }
#architecture { width: 100%; margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--showcase-line); scroll-margin-top: 24px; }
#architecture .architecture-stack { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 0; margin: -6px 0 22px; color: var(--showcase-muted); font-size: .9375rem; line-height: 1.8; }
.architecture-stack > span { margin-right: 16px; }
.architecture-stack-label { color: var(--showcase-ink); font-weight: 600; }
#architecture figure { width: 100%; }
#architecture svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
#architecture .architecture-desktop { display: block; }
#architecture .architecture-mobile { display: none !important; max-width: 420px; margin-inline: auto; }
.architecture-region rect { fill: #f2f4f6; stroke: #e5e9ee; stroke-width: 1; }
.architecture-region text { fill: #68737d; font-weight: 500; }
.architecture-node > rect { fill: #fff; stroke: #cfd6de; stroke-width: 1.2; }
.architecture-node.is-store > rect, .architecture-node.is-file > rect { fill: #f9fbfd; }
.architecture-node.is-optional > rect { stroke-dasharray: 5 4; }
.architecture-node-title { fill: #25313d; font-weight: 600; }
.architecture-node-tech { fill: var(--architecture-accent); font-weight: 600; }
.architecture-node-note { fill: #606b76; }
.architecture-data-mark { fill: none; stroke: #aebac6; stroke-width: 1.3; }
.architecture-link { fill: none; stroke: #7d8997; stroke-width: 1.5; stroke-linejoin: round; }
.architecture-link.is-optional { stroke-dasharray: 5 5; }
.architecture-edge-label rect { fill: var(--showcase-paper); stroke: #e9edf1; stroke-width: .7; }
.architecture-edge-label text { fill: #4d5d6b; }
#architecture .architecture-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; list-style: none; margin: 12px 0 0; padding: 22px 0 0; border-top: 1px solid var(--showcase-line); }
.architecture-principles li { min-width: 0; font-size: 1rem; line-height: 1.8; }
.architecture-principles strong { display: block; margin-bottom: 4px; font-weight: 600; color: var(--showcase-ink); }
.architecture-principles li > span { color: var(--showcase-muted); overflow-wrap: anywhere; text-wrap: pretty; }
@media (max-width: 640px) {
  :root { --showcase-gutter: 18px; }
  body { font-size: 1.0625rem; }
  .showcase-nav { padding-block: 12px; }
  .showcase-main { padding-bottom: 48px; }
  .showcase-heading { margin: 12px 0 28px; }
  .showcase-heading h1 { font-size: 1.875rem; line-height: 1.35; }
  .showcase-heading p { margin-top: 12px; font-size: 1.0625rem; }
  .brief-demo video { border-radius: 5px; }
  .brief-demo figcaption { gap: 0 16px; margin-top: 12px; }
  .project-description { margin-top: 40px; }
  .project-description h2, #architecture h2 { margin-bottom: 16px; font-size: 1.125rem; }
  #architecture { margin-top: 36px; padding-top: 28px; }
  #architecture .architecture-desktop { display: none !important; }
  #architecture .architecture-mobile { display: block !important; }
  #architecture .architecture-principles { grid-template-columns: 1fr; gap: 16px; padding-top: 18px; }
  #architecture .architecture-stack { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .showcase-nav, .skip-link, .brief-demo figcaption a { display: none; }
  body { background: #fff; }
  .showcase-main { width: 100%; padding: 0; }
  .project-description, #architecture { break-inside: avoid; }
}

@media (min-width: 641px) and (max-width: 900px) {
  #architecture .architecture-desktop { display: none !important; }
  #architecture .architecture-mobile { display: block !important; }
  #architecture .architecture-principles { grid-template-columns: 1fr; gap: 16px; padding-top: 18px; }
  #architecture .architecture-stack { margin-bottom: 16px; }
}
