@font-face {
  font-family: "Noto Serif SC";
  src: url("./motto-zh.woff2") format("woff2");
  font-weight: 650;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./motto-en.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
body { background: var(--paper); }
body::before { display: none; }
.wrap { width: min(1620px, calc(100% - clamp(36px, 9vw, 160px))); }
.showcase { --spread: minmax(0,.81fr) minmax(0,1.19fr); --gutter: clamp(32px,4.4vw,76px); }
.skip-link { position: absolute; left: 12px; top: 4px; z-index: 9; padding: 9px; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { position: fixed; z-index: 20; transform: none; }
.showcase-intro {
  display: grid; grid-template-columns: var(--spread); align-items: center; column-gap: var(--gutter);
  position: relative; padding-block: clamp(28px,3vw,52px) clamp(32px,3.5vw,60px);
  border-bottom: 1px solid var(--line);
}
.showcase-sculpture {
  --rim: clamp(3px,.36vw,6px);
  --edge: clamp(12px,1vw,18px);
  --sweep: clamp(30px,3.2vw,58px);
  --mount-top: #55553e;
  --mount-side: #383a29;
  --mount-base: #24251c;
  --rim-glint: #d9c69054;
  position: relative; isolation: isolate; width: 100%; min-width: 0; align-self: center; aspect-ratio: 1.67;
  border-radius: var(--edge) var(--edge) var(--edge) var(--sweep);
  background: linear-gradient(145deg,var(--mount-top),var(--mount-side) 44%,var(--mount-base) 76%,var(--mount-side));
  box-shadow: inset 0 0 0 1px var(--rim-glint), inset 0 -1px 0 #0003, 0 3px 5px -3px #100e0a38, 0 18px 36px -27px #12150e9c;
}
:root[data-theme="light"] .showcase-sculpture {
  --mount-top: #fff8e9;
  --mount-side: #e5d8bf;
  --mount-base: #cbb99a;
  --rim-glint: #7767412c;
}
.sculpture-stage {
  position: absolute; inset: var(--rim); overflow: hidden; isolation: isolate;
  border-radius: calc(var(--edge) - var(--rim)) calc(var(--edge) - var(--rim)) calc(var(--edge) - var(--rim)) calc(var(--sweep) - var(--rim));
  background-color: var(--mount-side);
}
.sculpture-stage img, .sculpture-layer { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sculpture-stage img { object-fit: cover; object-position: 50% 54%; }
.sculpture-layer { pointer-events: none; }
.sculpture-layer[hidden] { display: none; }
.sculpture-stage::after { content: ''; position: absolute; z-index: 2; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px #322c1d29; }
.showcase-sculpture .ambient-mist { width: 100%; }
.showcase-sculpture .mist-toggle:not([hidden]) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  inset: auto clamp(13px,1.45vw,24px) clamp(13px,1.45vw,24px) auto;
  min-height: 38px; height: auto; width: auto; padding: 6px 13px;
  color: var(--ink); background: color-mix(in srgb,var(--paper) 83%,transparent); backdrop-filter: blur(10px);
  border: 1px solid color-mix(in srgb,var(--ink) 27%,transparent); box-shadow: 0 2px 8px #16130816;
  transition: background-color .18s ease, border-color .18s ease;
}
.sculpture-toggle-label { font-size: 12px; font-weight: 600; line-height: 1.25; }
.showcase-sculpture .mist-toggle:is(:hover,:focus-visible) { background: var(--surface); border-color: var(--accent); }
@media (pointer: coarse) {
  .showcase-sculpture .mist-toggle:not([hidden]) { min-height: 44px; }
}
.intro-copy { min-width: 0; padding-block: 10px; }
.platform-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.platform-label::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.showcase-intro h1 { margin-top: clamp(17px,1.7vw,30px); font: 650 clamp(48px,5.65vw,94px)/1.07 "Noto Serif SC","Songti SC",SimSun,serif; letter-spacing: -.055em; }
.showcase-intro h1 span { display: block; width: max-content; }
.showcase-intro h1 span + span { padding-inline-start: .46em; color: var(--accent); }
.showcase-motto { margin-top: 12px; color: var(--muted); font: italic clamp(24px,2vw,35px)/1.15 "Instrument Serif",Georgia,serif; }
.showcase-summary { max-width: 29em; margin-top: clamp(18px,1.65vw,27px); color: var(--ink); font-size: clamp(15px,1.1vw,18px); line-height: 1.65; text-wrap: balance; }
.keep-phrase { white-space: nowrap; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.hero-actions a { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 43px; font-size: 14px; font-weight: 650; }
.showcase-link { padding: 9px 20px; background: var(--ink); color: var(--paper); border-radius: 999px; transition: transform .24s var(--ease),background-color .24s,box-shadow .24s; }
.showcase-link:hover { transform: translateY(-2px); background: var(--accent); box-shadow: 0 5px 16px #26180d20; }
.showcase-link:active { transform: translateY(0); }
.progress-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; }
.progress-link:hover { text-decoration-color: currentColor; }
.hero-actions span { transition: transform .2s var(--ease); }
.showcase-link:hover span { transform: translateY(2px); }
.progress-link:hover span { transform: translate(2px,-2px); }

.feature-section {
  display: grid;
  grid-template-columns: var(--spread);
  grid-template-rows: auto 1fr;
  grid-template-areas: "title media" "features media";
  align-items: start;
  gap: clamp(18px,1.7vw,29px) var(--gutter);
  padding-block: clamp(38px,4.2vw,72px);
  scroll-margin-top: 68px;
}
.feature-section > h2 { grid-area: title; }
.feature-section h2 { font-size: clamp(27px,2.65vw,44px); letter-spacing: -.052em; line-height: 1.22; }
.feature-grid { grid-area: features; min-width: 0; }
.feature-card { position: relative; isolation: isolate; padding: clamp(16px,1.35vw,23px) 10px; border-top: 1px solid var(--line); }
.feature-card:last-child { border-bottom: 1px solid var(--line); }
.feature-card::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 0; background: linear-gradient(90deg,color-mix(in srgb,var(--selected) 70%,transparent),transparent 96%); opacity: 0; transition: opacity .2s ease; }
.feature-card:has([aria-pressed="true"])::before,
.feature-card:focus-within::before { opacity: 1; }
.feature-card:has([aria-pressed="true"]) { box-shadow: inset 2px 0 0 var(--accent); }
.feature-card h3 { font-size: clamp(17px,1.4vw,23px); letter-spacing: -.035em; }
.feature-card p { margin-top: 7px; color: var(--muted); font-size: clamp(14px,1.02vw,16px); line-height: 1.7; }
.feature-card p { padding-inline-start: 38px; text-wrap: balance; }
.feature-card p + p { margin-top: 5px; font-size: clamp(13px,.96vw,15px); }
.feature-card p .ui-location { color: var(--accent); font-weight: 580; }
.feature-choice { display: flex; align-items: center; gap: 13px; width: 100%; padding: 0; text-align: left; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; }
.feature-icon { width: 25px; height: 25px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.feature-choice:not(:disabled)::before { content: ''; position: absolute; z-index: 1; inset: 0; }
.feature-choice:not(:disabled)::after { content: ''; width: 7px; height: 7px; margin: 0 4px 0 auto; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); opacity: .65; transition: transform .2s var(--ease); }
.feature-choice:is(:hover,:focus-visible,[aria-pressed="true"])::after { transform: translateX(3px) rotate(45deg); }
.feature-choice:is(:hover,:focus-visible,[aria-pressed="true"]):not(:disabled) { color: var(--accent); }
.workspace-gallery { grid-area: media; width: 100%; min-width: 0; justify-self: end; margin: 0; scroll-margin-block-start: 88px; }
.workspace-gallery figcaption, .gallery-dialog-bar { display: flex; align-items: center; gap: 12px; }
.workspace-gallery figcaption { justify-content: space-between; min-height: 44px; padding: 5px clamp(13px,1.3vw,20px); color: var(--muted); font-size: 13px; line-height: 1.5; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface); }
#gallery-caption { display: inline-flex; align-items: center; gap: 9px; }
#gallery-caption::before { content: ''; width: 12px; height: 8px; flex: none; border: 1px solid currentColor; border-radius: 2px; box-shadow: 0 4px 0 -2px currentColor; }
.gallery-hint { margin: 10px 2px 0; text-align: center; font-size: 12px; line-height: 1.55; color: var(--muted); }
.gallery-open { display: block; position: relative; width: 100%; overflow: hidden; padding: 0 clamp(9px,.9vw,14px) clamp(9px,.9vw,14px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--surface); box-shadow: 0 16px 30px -23px #17150f80; }
.gallery-open:not(:disabled) { cursor: zoom-in; }
.gallery-open:is(:hover,:focus-visible), .workspace-gallery:has(.gallery-open:is(:hover,:focus-visible)) figcaption { border-color: color-mix(in srgb,var(--accent) 55%,var(--line)); }
.gallery-crop { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.gallery-crop img { width: 100%; height: auto; transform-origin: 0 0; transform: translate(var(--view-x,0%),var(--view-y,0%)) scale(var(--view-scale,1)); }
.gallery-open-label { position: absolute; right: clamp(14px,1.9vw,28px); bottom: clamp(14px,1.9vw,28px); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 650; box-shadow: 0 2px 8px #17181420; }
.gallery-open:disabled .gallery-open-label { visibility: hidden; }
.gallery-action { flex: none; min-height: 32px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; }
.gallery-action:is(:hover,:focus-visible,[aria-pressed="true"]) { background: var(--selected); }
.gallery-dialog { width: min(1180px,calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--surface); }
.gallery-dialog::backdrop { background: #100f0dd9; }
.gallery-dialog-bar { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.gallery-dialog-bar h2 { flex: 1; font-size: clamp(13px,1.15vw,17px); line-height: 1.3; letter-spacing: 0; }
.gallery-scroll { overflow: auto; max-height: calc(100dvh - 96px); overscroll-behavior: contain; }
.gallery-scroll img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 96px); margin-inline: auto; cursor: zoom-in; }
.gallery-dialog[data-original] .gallery-scroll img { max-width: none; max-height: none; cursor: grab; }
.gallery-scroll[data-dragging] img { cursor: grabbing; }
@media (prefers-reduced-motion:no-preference) { .gallery-crop img { transition: transform .36s var(--ease); } }
.footer { flex-wrap: wrap; padding-block: 18px; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); }
.footer-brand img { border-radius: 7px; }
.icp-record { white-space: nowrap; }
@media (prefers-reduced-motion:no-preference) {
  .platform-label, .showcase-intro h1 span, .showcase-motto, .showcase-summary, .hero-actions { animation: arrive .55s var(--ease) backwards; }
  .showcase-intro h1 span { animation-delay: .04s; }
  .showcase-intro h1 span + span { animation-delay: .1s; }
  .showcase-motto { animation-delay: .15s; }
  .showcase-summary, .hero-actions { animation-delay: .19s; }
  .gallery-dialog[open] { animation: dialog-in .2s var(--ease); }
  .gallery-dialog[open]::backdrop { animation: curtain-in .18s ease-out; }
  .feature-card:has([aria-pressed="true"]) p { animation: ink-in .24s var(--ease); }
}
@keyframes arrive { from { opacity: .3; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: .4; transform: translateY(6px) scale(.993); } }
@keyframes curtain-in { from { opacity: 0; } }
@keyframes ink-in { from { opacity: .55; transform: translateX(-2px); } }
@media (max-width: 850px) {
  .showcase { --gutter: 24px; }
  .showcase-sculpture { aspect-ratio: 1.45; }
  .showcase-summary { margin-top: 12px; }
}
@media (max-width: 700px) {
  .feature-section { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "title" "features" "media"; gap: 10px; }
  .feature-grid:has(.feature-choice:not(:disabled)) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .feature-grid:has(.feature-choice:not(:disabled)) .feature-card { display: contents; }
  .feature-grid:has(.feature-choice:not(:disabled)) .feature-card::before { display: none; }
  .feature-grid:has(.feature-choice:not(:disabled)) h3 { grid-row: 1; }
  .feature-icon { width: 16px; height: 16px; }
  .feature-grid .feature-choice { gap: 4px; }
  .feature-card p { padding-inline-start: 0; text-wrap: pretty; }
  .feature-grid:has(.feature-choice:not(:disabled)) .feature-choice { min-height: 42px; justify-content: center; padding: 4px; text-align: center; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; }
  .feature-grid .feature-choice::before, .feature-grid .feature-choice::after { display: none; }
  .feature-grid:has(.feature-choice:not(:disabled)) .feature-choice[aria-pressed="true"] { color: var(--accent); background: var(--selected); border-color: color-mix(in srgb,var(--accent) 50%,var(--line)); }
  .feature-grid:has(.feature-choice:not(:disabled)) .feature-card p { display: none; grid-column: 1/-1; }
  .feature-grid:has(.feature-choice:not(:disabled)) .feature-card:has([aria-pressed="true"]) p { display: block; }
}
@media (max-width: 630px) {
  .showcase-intro { grid-template-columns: minmax(0,1fr); gap: 22px; padding-block: 24px 26px; }
  .intro-copy { padding-block: 0; }
  .showcase-intro h1 { font-size: clamp(29px,8.65vw,51px); margin-top: 12px; }
  .showcase-intro h1 span { display: inline; }
  .showcase-intro h1 span + span { display: inline-block; padding-inline-start: 0; }
  .showcase-sculpture { --edge: 12px; --sweep: 29px; aspect-ratio: 1.72; }
  .platform-label { font-size: 12px; }
  .showcase-motto { font-size: clamp(21px,5.3vw,28px); margin-top: 7px; }
  .showcase-summary { font-size: 14px; max-width: 23em; margin-top: 16px; }
  .hero-actions { gap: 18px; margin-top: 16px; }
  .hero-actions a { font-size: 13px; min-height: 40px; gap: 8px; }
}
@media (max-width: 470px) {
  .footer { justify-content: start; gap: 6px 16px; }
}
@media (max-width: 420px) {
  .feature-section, .workspace-gallery { scroll-margin-block-start: 92px; }
}
@media (max-width: 374px) {
  .feature-icon { width: 14px; height: 14px; }
}
