@font-face {
  font-family: Newsreader;
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-vi.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-ru.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Noto Sans Thai";
  src: url("../fonts/noto-sans-thai.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  --paper: #f4f0e6;
  --paper-2: #e7e0d2;
  --paper-3: #f7f4ee;
  --ink: #1a2420;
  --soft: #3c4b44;
  --line: #d5cec0;
  --rule-strong: #7a7264;
  --shoot: #e4ff57;
  --shoot-deep: #d4ef40;
  --copper: #7d3b28;
  --header: calc(4.25rem + env(safe-area-inset-top, 0px));
  --tools-sticky: 0px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 999px;
  --fs-h2: clamp(2.4rem, 4vw, 3.6rem);
  --fs-h3: clamp(1.75rem, 3vw, 2.8rem);
  --fs-small: 0.92rem;
  --serif: Newsreader, "Noto Sans", "Noto Sans Thai", "Songti SC", "Noto Serif SC", serif;
  --sans: Outfit, "Noto Sans", "Noto Sans Thai", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--soft) var(--paper);
}

html.lang-pending body { visibility: hidden; }

[hidden] { display: none !important; }

#range, #works, #inquiry, #top { scroll-margin-top: calc(var(--header) + var(--tools-sticky)); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

html[lang="zh-CN"] body {
  line-height: 1.75;
  letter-spacing: 0.01em;
}

html[lang="th"] body,
html[lang="vi"] body {
  line-height: 1.7;
}

html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] .sku-name,
html[lang="vi"] h1,
html[lang="vi"] h2,
html[lang="vi"] h3,
html[lang="vi"] .sku-name {
  line-height: 1.35;
  letter-spacing: 0;
}

html[lang="ru"] h1,
html[lang="ru"] h2,
html[lang="ru"] h3,
html[lang="ru"] .sku-name {
  line-height: 1.15;
  letter-spacing: 0;
}

html[lang="th"] .eyebrow,
html[lang="vi"] .eyebrow {
  letter-spacing: 0.02em;
  text-transform: none;
}

::selection { background: var(--shoot); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, p { text-wrap: pretty; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .sku-name {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  letter-spacing: 0;
  line-height: 1.2;
}

html[lang="zh-CN"] .hero h1 {
  font-size: clamp(3rem, 5.6vw, 5.2rem);
  max-width: none;
}

html[lang="zh-CN"] .mark strong,
html[lang="zh-CN"] .nav a,
html[lang="zh-CN"] .filter,
html[lang="zh-CN"] .scene,
html[lang="zh-CN"] button,
html[lang="zh-CN"] .deck,
html[lang="zh-CN"] .hero-sub {
  letter-spacing: 0;
}

.hero-sub {
  margin: -0.55rem 0 1.1rem;
  color: var(--soft);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[lang="zh-CN"] .hero-sub {
  letter-spacing: 0.02em;
  text-transform: none;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 40;
}

.skip:focus { top: 0.6rem; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding:
    env(safe-area-inset-top, 0px)
    calc(var(--gutter) + env(safe-area-inset-right, 0px))
    0
    calc(var(--gutter) + env(safe-area-inset-left, 0px));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -18px rgb(26 36 32 / 40%);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.mark:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.mark svg { width: 2rem; height: 2rem; flex: none; }

.mark strong {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.mark small {
  display: block;
  margin-top: 0.15rem;
  color: var(--soft);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--soft);
  position: relative;
  padding: 0.2rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.15rem;
  height: 1px;
  background: currentColor;
  transition: right 0.4s var(--ease);
}

.nav a:hover,
.nav a[aria-current="true"] { color: var(--ink); }

.nav a:hover::after,
.nav a[aria-current="true"]::after { right: 0; }

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  color: var(--ink);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.lang:hover { border-color: var(--ink); }
.lang:active { transform: translateY(1px); }

.lang-menu { position: relative; }

.lang-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  min-width: 13.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px -18px rgb(26 36 32 / 45%);
}

.lang-list button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--soft);
}

.lang-list button[aria-current="true"] {
  color: var(--ink);
  font-weight: 500;
}

.lang-list button:hover { color: var(--ink); }

.menu-btn {
  display: none;
  min-height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.menu-btn:hover { border-color: var(--ink); }
.menu-btn:active { transform: translateY(1px); }

.hero {
  display: grid;
  grid-template-columns: minmax(18rem, 0.86fr) 1.2fr;
  min-height: calc(100svh - var(--header));
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh var(--gutter);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3.5rem, 6.4vw, 6rem);
  max-width: 8ch;
}

.hero h1 .rise {
  display: block;
  animation: rise 1.05s var(--ease) both;
}

.hero h1 .rise + .rise { animation-delay: 0.08s; }

@keyframes rise {
  from { clip-path: inset(110% 0 -10% 0); }
  to { clip-path: inset(0); }
}

.deck {
  margin: 0;
  max-width: 28rem;
  font-size: 1.2rem;
  line-height: 1.45;
}

.hero-go {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: var(--radius);
  width: fit-content;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}

.hero-go::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.hero-go:hover { background: var(--soft); }
.hero-go:hover::after { transform: translateX(3px); }
.hero-go:active { transform: translateY(1px); }

.hero-go:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.hero-note {
  margin: 2.5rem 0 0;
  max-width: 28rem;
  color: var(--soft);
  font-size: var(--fs-small);
}

.hero-photo {
  margin: 0;
  position: relative;
  min-height: 28rem;
  background: var(--paper-2);
  overflow: hidden;
  --wipe: 50%;
  cursor: col-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.hero-photo img,
.hero-layer {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hero-layer-weedy {
  z-index: 0;
}

.hero-layer-clean {
  z-index: 1;
  /* Left of wipe = clean; right of wipe = weedy. Drag L→R reveals more clean. */
  clip-path: inset(0 calc(100% - var(--wipe)) 0 0);
}

.hero-wipe-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--wipe);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgb(26 36 32 / 28%);
  pointer-events: none;
}

.hero-wipe-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgb(26 36 32 / 28%);
  transform: translate(-50%, -50%);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

html[lang="zh-CN"] .eyebrow {
  letter-spacing: 0.03em;
  text-transform: none;
}

.essay {
  display: grid;
  grid-template-columns: minmax(0, 40rem) minmax(16rem, 1fr);
  gap: 3rem 6vw;
  padding: var(--section-y) var(--gutter);
  border-top: 2px solid var(--ink);
}

.essay h2 {
  margin: 0 0 1.35rem;
  font-size: var(--fs-h2);
  max-width: 14ch;
}

.essay p {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--ink);
}

.essay p:last-child { margin-bottom: 0; }

.facts {
  margin: 0;
  padding: 1rem 1.15rem 0.25rem;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
}

.facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  margin: 0;
  color: var(--soft);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[lang="zh-CN"] .facts dt {
  letter-spacing: 0.04em;
  text-transform: none;
}

.facts dd { margin: 0; }

.range {
  padding: var(--section-y) var(--gutter);
  border-top: 2px solid var(--ink);
}

.range-head h2 {
  margin: 0 0 1rem;
  font-size: var(--fs-h2);
}

.lede {
  margin: 0;
  max-width: 42rem;
  color: var(--soft);
}

.tools {
  position: sticky;
  top: var(--header);
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
  padding: 0.85rem 0;
  background: color-mix(in srgb, var(--paper) 92%, var(--paper-2));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-bottom-color 0.25s var(--ease);
}

.tools.is-stuck {
  box-shadow: 0 8px 20px -16px rgb(26 36 32 / 35%);
  border-bottom-color: var(--rule-strong);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  order: 1;
}

.filter {
  position: relative;
  min-height: 44px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 0.6rem 0;
  color: var(--soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-bottom-color 0.2s var(--ease);
}

.filter[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 500;
}

.filter:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
  flex: 1 1 100%;
  order: 3;
}

.scene {
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.scene[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper-3);
  font-weight: 500;
}

.scene:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sku-badge {
  display: inline-block;
  margin: 0.4rem 0 0.1rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

html[lang="zh-CN"] .sku-badge {
  letter-spacing: 0;
}

.search { display: grid; gap: 0.3rem; order: 2; }

.search span { color: var(--soft); font-size: 0.875rem; }

.search input {
  width: min(22rem, 80vw);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.4rem 0;
  caret-color: var(--ink);
}

.search input::placeholder { color: var(--soft); }

.search input:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-bottom: 2px solid var(--ink);
}

.count {
  margin: 0.85rem 0 0;
  color: var(--soft);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}

.list { margin-top: 0.25rem; }

.sku {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1.25fr) minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 1rem 1.4rem;
  align-items: center;
  padding: 1rem 1.4rem 1rem 0;
  min-height: 44px;
  scroll-margin-top: calc(var(--header) + var(--tools-sticky) + 0.5rem);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-bottom-color 0.2s var(--ease),
    padding-left 0.25s var(--ease),
    box-shadow 0.2s var(--ease);
}

.sku::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--soft);
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  transition: color 0.2s var(--ease);
}

.sku[aria-expanded="true"] {
  background: var(--paper-3);
  border-bottom-color: var(--ink);
  padding-left: 0.35rem;
  box-shadow: inset 3px 0 0 var(--ink);
}

.sku[aria-expanded="true"]::after {
  content: "\2212";
  color: var(--ink);
}

.sku:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sku-shot {
  width: 4.75rem;
  height: 4.75rem;
  background: var(--paper-3);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.sku-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.sku-name {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sku-zh {
  display: block;
  margin-top: 0.35rem;
  color: var(--soft);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.sku-form,
.sku-where {
  min-width: 0;
  line-height: 1.35;
}

.sku-form { color: var(--ink); }

.sku-where { color: var(--soft); font-size: 0.95rem; }

.mono {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.3fr);
  gap: 2rem 3.5rem;
  padding: 1.5rem 0 2.75rem;
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: calc(var(--header) + var(--tools-sticky) + 0.5rem);
}

.mono figure {
  margin: 0;
  background: var(--paper-3);
  border: 1px solid var(--line);
  align-self: start;
}

.mono img {
  width: 100%;
  height: auto;
  max-height: 32rem;
  object-fit: contain;
}

.mono h3 {
  margin: 0 0 0.4rem;
  font-size: var(--fs-h3);
}

.mono .sub {
  margin: 0 0 1.4rem;
  color: var(--soft);
}

.mono .what,
.mono .how {
  margin: 0 0 1rem;
  max-width: 62ch;
}

.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1.25rem;
  font-variant-numeric: tabular-nums;
}

.spec th,
.spec td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.8rem 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}

.spec th {
  width: 28%;
  color: var(--soft);
  padding-right: 1rem;
}

.note {
  margin: 0 0 1.25rem;
  max-width: 62ch;
  color: var(--copper);
}

.ask {
  color: var(--ink);
  text-underline-offset: 0.28em;
  transition: opacity 0.2s var(--ease);
}

.ask:hover { opacity: 0.72; }

.empty {
  margin: 2rem 0;
  max-width: 36rem;
}

.empty button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.8rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}

.empty button:hover { opacity: 0.72; }

.works {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-top: 2px solid var(--ink);
}

.works-copy { padding: var(--section-y) var(--gutter); }

.works h2 {
  margin: 0 0 1.35rem;
  font-size: var(--fs-h2);
  max-width: 12ch;
}

.works p { margin: 0 0 1rem; max-width: 38rem; }

.works figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  min-height: 100%;
}

.works img {
  width: 100%;
  flex: 1;
  min-height: 22rem;
  object-fit: cover;
  object-position: center 40%;
}

.works figcaption {
  margin: 0;
  padding: 0.75rem var(--gutter) 1.1rem;
  max-width: 38rem;
  color: var(--soft);
  font-size: 0.95rem;
}

.inquiry {
  padding: var(--section-y) var(--gutter);
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
}

.inquiry > .eyebrow,
.inquiry > .lede {
  color: var(--ink);
}

.inquiry h2 {
  margin: 0 0 1rem;
  font-size: var(--fs-h2);
}

.form {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 2rem;
  max-width: 52rem;
  padding: 1.5rem 1.5rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line);
}

.field { display: grid; gap: 0.4rem; }

.field.wide { grid-column: 1 / -1; }

.field span { color: var(--soft); font-size: var(--fs-small); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.55rem 0;
  caret-color: var(--ink);
}

.field textarea { min-height: 8rem; resize: vertical; }

.err {
  min-height: 1.2em;
  margin: 0;
  color: var(--copper);
  font-size: 0.875rem;
}

.submit {
  justify-self: start;
  min-height: 44px;
  background: var(--shoot);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.submit:hover { background: var(--shoot-deep); }

.submit:active { transform: translateY(1px); }

.submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.done { max-width: 40rem; margin-top: 2rem; }

#done-title { scroll-margin-top: calc(var(--header) + var(--tools-sticky) + 0.75rem); }

.done h3 {
  margin: 0 0 0.8rem;
  font-size: var(--fs-h3);
}

.brief {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.98rem;
}

.done-actions { display: flex; gap: 1.25rem; align-items: center; }

.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  transition: opacity 0.2s var(--ease);
}

.ghost:hover { opacity: 0.72; }

footer {
  padding:
    2.5rem
    calc(var(--gutter) + env(safe-area-inset-right, 0px))
    calc(3rem + env(safe-area-inset-bottom, 0px))
    calc(var(--gutter) + env(safe-area-inset-left, 0px));
  background: var(--ink);
  color: var(--paper-2);
  border-top: 0;
}

footer p { margin: 0 0 0.7rem; max-width: 46rem; font-size: var(--fs-small); }

footer a {
  color: var(--shoot);
  transition: opacity 0.2s var(--ease);
}

footer a:hover { opacity: 0.8; }

@media (hover: hover) {
  .sku:hover {
    background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  }

  .sku:hover .sku-name {
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }

  .sku:hover::after { color: var(--ink); }

  .sku:hover .sku-shot { border-color: var(--rule-strong); }

  .sku:hover .sku-shot img { transform: scale(1.04); }

  .filter:hover { color: var(--ink); }
}

@media (max-width: 980px) {
  .hero,
  .essay,
  .works,
  .mono,
  .form { grid-template-columns: 1fr; }

  .hero { min-height: 0; }
  .hero-copy { padding: 2.5rem var(--gutter) 3rem; }
  .hero-note { margin-top: 1.5rem; }
  .hero-photo {
    min-height: 0;
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .hero-photo img,
  .hero-layer {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .works img {
    min-height: 0;
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 70svh;
    object-fit: cover;
    flex: none;
  }

  .facts { margin-top: 2rem; }
}

@media (max-width: 760px) {
  :root { --section-y: clamp(2.25rem, 8vw, 6.5rem); }

  .menu-btn { display: inline-flex; align-items: center; }

  .nav {
    display: flex;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding:
      0.8rem
      calc(var(--gutter) + env(safe-area-inset-right, 0px))
      1.1rem
      calc(var(--gutter) + env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 24px -18px rgb(26 36 32 / 40%);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.4rem);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav a { padding: 0.55rem 0; font-size: 1.25rem; }

  .lang-menu { width: 100%; }
  .lang-list {
    position: static;
    min-width: 0;
    margin-top: 0.2rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .lang-list button { padding: 0.45rem 0; font-size: 1.05rem; }

  .tools {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filters {
    flex-wrap: wrap;
    min-width: 0;
  }

  .scenes {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    box-sizing: border-box;
    width: calc(100% + 2 * var(--gutter));
    min-width: 0;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 0 calc(var(--gutter) + 1rem) 0 var(--gutter);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 1rem), transparent);
  }

  .scenes::-webkit-scrollbar { display: none; }

  .scene {
    flex: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .search input { width: 100%; }

  .sku {
    grid-template-columns: 3.6rem minmax(0, 1fr);
    grid-template-areas:
      "shot name"
      "shot form"
      "shot where";
  }

  .sku::after {
    top: 1.15rem;
    transform: none;
  }

  .sku-shot { width: 3.6rem; height: 3.6rem; grid-area: shot; }
  .sku > span:not([class]) {
    min-width: 0;
    padding-right: 1.75rem;
  }
  .sku-name {
    grid-area: name;
    font-size: 1.35rem;
    line-height: 1.2;
    overflow-wrap: break-word;
  }
  .sku-zh { overflow-wrap: break-word; }
  .sku-form { grid-area: form; min-width: 0; padding-right: 1.75rem; }
  .sku-where { grid-area: where; min-width: 0; padding-right: 1.75rem; }

  .mono figure {
    max-width: min(16rem, 72%);
    width: 100%;
    justify-self: center;
  }
  .mono img { max-height: 18rem; }

  .spec th { width: 38%; }
  .spec th,
  .spec td { padding-right: 0.6rem; }
  .spec td { overflow-wrap: anywhere; }

  .facts div { grid-template-columns: 1fr; gap: 0.2rem; }

  .submit { justify-self: stretch; }
  .done-actions { flex-wrap: wrap; }

  .hero h1 { font-size: clamp(3.2rem, 16vw, 4.6rem); }
}

/* 320×568 English deck is longer than the Chinese one. Keep the 16/9 photo. */
@media (max-width: 760px) and (max-height: 640px) and (orientation: portrait) {
  .hero-copy { padding-top: 1rem; padding-bottom: 1.5rem; }
  .hero h1 { margin-bottom: 0.55rem; }
  .hero-go { margin-top: 0.75rem; }
  .deck { font-size: 1.0625rem; line-height: 1.35; }
}

/* Short landscape phones and short windows: photo back on the right. */
@media (max-width: 980px) and (max-height: 700px) and (orientation: landscape) {
  .hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.2fr);
    min-height: calc(100svh - var(--header));
  }

  .hero-copy {
    min-width: 0;
    padding:
      1.25rem
      1.25rem
      1.25rem
      calc(1.25rem + env(safe-area-inset-left, 0px));
  }

  .hero h1,
  html[lang="zh-CN"] .hero h1 {
    font-size: clamp(2rem, 8vh, 3rem);
    margin-bottom: 0.75rem;
  }

  .hero-go { margin-top: 1rem; }

  .hero-photo {
    order: 0;
    aspect-ratio: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
  }
}

@media (max-height: 700px) {
  .tools { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .sku:hover .sku-shot img,
  .hero-go:hover::after {
    transform: none;
  }
}

@media print {
  header, .tools, .skip, .hero-go, .submit, .done-actions, .menu-btn { display: none; }
  .hero { min-height: 0; }
  .hero-layer-weedy,
  .hero-wipe-line { display: none; }
  .hero-layer-clean {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    clip-path: none !important;
  }
  .works img { position: relative; inset: auto; height: auto; }
  .mono { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; }
  body { background: white; color: #000; }
  footer {
    background: transparent;
    color: #000;
    border-top: 1px solid #000;
  }
  footer a { color: inherit; text-decoration: underline; }
}
