@font-face{font-family:Manrope;src:url('manrope.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap}
@font-face{font-family:'Instrument Serif';src:url('instrument-serif.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'Instrument Serif';src:url('instrument-serif-italic.woff2') format('woff2');font-style:italic;font-weight:400;font-display:swap}

:root {
  --ink: #142d24;
  --muted: #4d6055;
  --paper: #faf9f3;
  --white: #fffefa;
  --forest: #18382c;
  --forest-deep: #112a21;
  --lime: #d7e991;
  --line: #ced7cc;
  --shell: 86rem;
  --gutter: clamp(1.15rem, 4vw, 4rem);
  --body: Manrope, 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', Arial, sans-serif;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
  font: 500 100%/1.65 var(--body);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang^='zh'] { --display: 'Noto Serif TC', 'Songti TC', 'Noto Sans TC', 'Microsoft JhengHei', serif; }
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 18rem; }
h1,h2,h3,h4,p,figure,ol,ul,dl,dd { margin: 0; }
a { color: inherit; text-decoration-thickness: .065em; text-underline-offset: .26em; }
img, video { display: block; max-width: 100%; }
[id] { scroll-margin-top: 2rem; }
:focus-visible { outline: 3px solid #70a23e; outline-offset: 5px; border-radius: 2px; }
::selection { color: var(--forest-deep); background: var(--lime); }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--shell)); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 400; line-height: .99; letter-spacing: -.018em; }
:lang(zh-Hant-TW) .display { font-weight: 700; line-height: 1.19; letter-spacing: -.035em; }
.eyebrow { font-size: .875rem; font-weight: 750; line-height: 1.42; letter-spacing: .07em; }
:lang(zh-Hant-TW) .eyebrow { letter-spacing: .045em; }
.skip-link { position: fixed; z-index: 10; inset: .6rem auto auto .6rem; padding: .6rem 1rem; background: var(--lime); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 4.5rem; gap: 1rem; }
.site-brand { display: inline-flex; gap: .7rem; align-items: center; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.045em; font-size: 1.18rem; line-height: 1.15; white-space: nowrap; }
.brand-mark { position: relative; display: inline-block; flex: 0 0 1.28rem; width: 1.28rem; height: 1.16rem; }
.brand-mark::before, .brand-mark::after { position: absolute; content: ''; inset: 0; background: currentColor; }
.brand-mark::before { clip-path: polygon(0 3%, 23% 3%, 51% 71%, 45% 98%); }
.brand-mark::after { clip-path: polygon(79% 3%, 100% 3%, 58% 98%, 45% 98%); }
.site-nav { display: flex; gap: clamp(.7rem, 2.5vw, 2.25rem); align-items: center; flex-shrink: 0; }
.collection-link { font-size: .875rem; font-weight: 750; text-decoration: none; }
.collection-link:hover, .back-link:hover { text-decoration: underline; }
.language-links { display: flex; gap: .18rem; align-items: center; padding: .18rem; border: 1px solid var(--line); border-radius: 2rem; }
.language-links a { display: grid; place-items: center; min-width: 2.15rem; min-height: 2rem; border-radius: 1.9rem; padding: .15rem .42rem; font-weight: 800; font-size: .875rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.language-links a:hover { background: #e7eadf; }
.language-links [aria-current] { background: var(--forest); color: var(--white); }
.language-links [aria-current]:hover { background: var(--forest-deep); }
.site-footer { background: var(--forest-deep); color: var(--white); }
.footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 1.75rem; padding-block: 2.65rem; }
.site-footer .brand-mark { color: var(--lime); }
.footer-inner p { color: #ecf2e8; font-size: .9rem; }
.footer-inner p span { display: block; margin-top: .16rem; color: #b4cbbd; }

.action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; width: fit-content; padding: .65rem 1.2rem; border: 1px solid transparent; border-radius: 100vw; font-weight: 780; line-height: 1.35; text-decoration: none; color: var(--forest-deep); background: var(--lime); }
.action-link:hover { background: #e8f3b9; }
.action-outline { background: transparent; border-color: currentColor; }
.action-outline:hover { background: #e8eee2; }
.photo { min-width: 0; }
.photo img { width: 100%; height: auto; object-position: var(--photo-focus, 50% 50%); }
img[data-photo-tone="soft"] { filter: contrast(.97) brightness(1.075); }
img[data-photo-tone="shadow"] { filter: contrast(.94) brightness(1.18); }
img[data-photo-tone="cool-cast"] { filter: contrast(.96) brightness(1.12) saturate(.88) sepia(.08); }
.photo figcaption, .case-film > p { color: var(--muted); font-size: .875rem; line-height: 1.55; margin-top: .65rem; }

.work-card-link { display: block; text-decoration: none; height: 100%; border: 1px solid var(--line); background: var(--white); transition: border-color .22s ease, box-shadow .22s ease; }
.work-card-link:hover { border-color: #658272; box-shadow: 0 12px 22px #142d2412; }
.work-card-photo { aspect-ratio: 1.35; overflow: hidden; background: #e6ece0; }
.work-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.work-card-link:hover img { transform: scale(1.035); }
.work-card-copy { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .85rem; padding: clamp(.95rem, 2vw, 1.43rem); }
.work-card-copy h3 { font-size: clamp(1.02rem, 1.4vw, 1.25rem); font-weight: 800; line-height: 1.28; letter-spacing: -.027em; }
.work-card-copy p { color: var(--muted); font-size: .93rem; line-height: 1.52; margin-top: .38rem; }
.work-number { align-self: start; min-width: 1.8rem; font-variant-numeric: tabular-nums; font-size: .875rem; font-weight: 800; color: #526e5e; line-height: 1.5; }
.draft-home { padding-block: 6rem; }
.draft-home h1 { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 2.5rem; }
.draft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem,100%),1fr)); gap: 1.35rem; }

.case-page { --accent: #e6edd9; --accent-strong: #36513b; }
.case-page[data-theme='gold'] { --accent: #f0e4c8; --accent-strong: #60492a; }
.case-page[data-theme='blue'] { --accent: #dce9ee; --accent-strong: #2b5060; }
.case-page[data-theme='clay'] { --accent: #f2e0d4; --accent-strong: #694236; }
.case-page[data-theme='ink'] { --accent: #e3e9e5; --accent-strong: #294b3b; }
.case-page[data-theme='plum'] { --accent: #eee2e8; --accent-strong: #5b4054; }
.case-intro { padding-top: clamp(1.95rem, 5vw, 4.75rem); }
.case-hero { display: grid; gap: clamp(1.5rem, 4vw, 4.2rem); grid-template-columns: minmax(0,.87fr) minmax(0,1.2fr); align-items: center; }
.case-hero--reverse { grid-template-columns: minmax(0,1.22fr) minmax(0,.85fr); }
.case-hero--reverse .case-lead { grid-column: 2; grid-row: 1; }
.case-hero--reverse .case-hero-photo { grid-column: 1; grid-row: 1; }
.case-hero--full { grid-template-columns: 1fr; gap: 2rem; }
.case-hero--full .case-title-block { max-width: 66rem; }
.case-lead { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: start; }
.back-link { font-size: .9rem; font-weight: 800; text-decoration: none; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: clamp(1.2rem, 3.3vw, 3.2rem); padding-bottom: .18rem; }
.case-id { display: flex; gap: .55rem; align-items: center; color: var(--accent-strong); }
.case-id span { font-weight: 800; font-variant-numeric: tabular-nums; padding: .2rem .52rem; border-radius: 2rem; background: var(--accent); }
.case-title-block h1 { font-size: clamp(2.9rem, 6.35vw, 6.1rem); margin: .8rem 0 1rem; overflow-wrap: break-word; }
:lang(zh-Hant-TW) .case-title-block h1 { font-size: clamp(2.15rem, 4.7vw, 4.5rem); }
.case-deck { max-width: 36ch; color: var(--muted); font-size: clamp(1.04rem, 1.55vw, 1.26rem); line-height: 1.65; }
.case-hero--full .case-deck { max-width: 62ch; }
.case-hero-photo img { aspect-ratio: 1.32; object-fit: cover; background-color: var(--accent); }
.case-hero--full .case-hero-photo img { aspect-ratio: 2.1; }
.case-facts { margin-block: clamp(1.75rem,3.5vw,3.4rem) 0; padding: clamp(1.1rem, 2.5vw, 2.1rem); background: var(--accent); display: grid; grid-template-columns: repeat(auto-fit,minmax(min(16rem,100%),1fr)); gap: .95rem 2rem; }
.case-facts dt { font-size: .875rem; font-weight: 800; color: var(--accent-strong); letter-spacing: .02em; }
.case-facts dd { margin-top: .25rem; font-weight: 650; line-height: 1.5; }
.case-reader {
  position: sticky;
  z-index: 4;
  top: 0;
  margin-top: clamp(1.5rem, 3vw, 2.65rem);
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.case-reader-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.35rem;
  min-height: 3.65rem;
}
.case-reader-title { min-width: 0; font-size: .875rem; font-weight: 800; line-height: 1.3; }
.case-reader-links { display: flex; gap: clamp(.35rem, 2vw, 1.5rem); }
.case-reader-links a {
  display: grid;
  align-items: center;
  min-height: 2.72rem;
  padding: .3rem .53rem;
  border-radius: .2rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.25;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
}
.case-reader-links a:hover { background: #e8eee0; color: var(--ink); }
.case-reader-links a[aria-current] { background: var(--accent); color: var(--ink); }
.case-reader-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: .2rem;
  background: var(--accent-strong);
  transform-origin: left center;
  transform: scaleX(0);
}
.case-main :is(#design, #photos, #evidence, #sources) { scroll-margin-top: 4.9rem; }
.photo-open { position: relative; display: block; overflow: hidden; }
.photo-open:focus-visible { outline-offset: 3px; }
.photo-open img { transition: transform .4s cubic-bezier(.2,.65,.3,1); }
.photo-open-label {
  position: absolute;
  z-index: 2;
  right: .62rem;
  bottom: .62rem;
  padding: .42rem .64rem;
  border-radius: .22rem;
  color: var(--white);
  background: #152b23ee;
  font-size: .8125rem;
  font-weight: 750;
  line-height: 1.35;
}
.photo-open:hover .photo-open-label { background: var(--lime); color: var(--ink); }
.photo--inspectable .photo-open img { height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
.photo--inspectable[data-inspect-zone="left"] .photo-open::after,
.photo--inspectable[data-inspect-zone="right"] .photo-open::after {
  position: absolute;
  z-index: 1;
  inset-block: 4%;
  width: 47%;
  border: 2px solid #f2f6e3;
  border-radius: .16rem;
  box-shadow: 0 0 0 1px #355944, 0 0 0 80vmax #10281d57;
  pointer-events: none;
  content: '';
}
.photo--inspectable[data-inspect-zone="left"] .photo-open::after { left: 2%; }
.photo--inspectable[data-inspect-zone="right"] .photo-open::after { right: 2%; }
.photo-inspection { margin-top: .7rem; }
.photo-inspection-buttons { display: flex; flex-wrap: wrap; gap: .42rem; }
.photo-inspection-buttons button {
  min-height: 2.65rem;
  padding: .45rem .78rem;
  border: 1px solid #94a794;
  border-radius: 2rem;
  background: transparent;
  color: var(--ink);
  font: 750 .875rem/1.3 var(--body);
  cursor: pointer;
}
.photo-inspection-buttons button:hover { background: var(--accent); }
.photo-inspection-buttons button[aria-pressed="true"] { border-color: var(--forest); color: var(--white); background: var(--forest); }
.photo-inspection .photo-inspection-note { margin-top: .63rem; font-size: .9375rem; color: var(--ink); }
.photo-inspection-note:empty { margin: 0; }
@media (hover: hover) {
  .photo-open:hover img { transform: scale(1.025); }
}
.case-content { display: grid; gap: 0; padding-block: clamp(2.6rem,5.5vw,5.6rem); }
.chapter { display: grid; gap: 1.45rem; padding-block: clamp(1.7rem, 4.9vw, 4.2rem); border-bottom: 1px solid var(--line); }
.chapter:first-child { padding-top: 0; }
.chapter:last-child { border-bottom: 0; padding-bottom: 0; }
.chapter-copy { max-width: 66ch; }
.chapter .display, .case-gallery .display, .case-film .display { font-size: clamp(2.35rem, 4.55vw, 4.55rem); }
:lang(zh-Hant-TW) .chapter .display, :lang(zh-Hant-TW) .case-gallery .display, :lang(zh-Hant-TW) .case-film .display { font-size: clamp(1.8rem, 3vw, 3rem); }
.chapter p { margin-top: 1rem; font-size: clamp(1rem, 1.1vw, 1.1rem); color: var(--muted); }
.chapter-photo img { max-height: 34rem; object-fit: cover; }
.chapter--feature.chapter--image, .chapter--steps.chapter--image { grid-template-columns: minmax(0,.82fr) minmax(0,1.08fr); gap: clamp(1.5rem,5vw,5rem); align-items: center; }
.chapter--feature:nth-child(even) .chapter-photo { grid-column: 1; grid-row: 1; }
.chapter--feature:nth-child(even) .chapter-copy { grid-column: 2; grid-row: 1; }
.chapter--wide .chapter-photo img { width: 100%; aspect-ratio: 2.15; }
.step-list { list-style: none; counter-reset: action; padding: 0; margin-top: 1.1rem; }
.step-list li { counter-increment: action; position: relative; padding: .8rem 0 .8rem 2.65rem; border-top: 1px solid var(--line); color: var(--muted); }
.step-list li::before { position: absolute; left: .15rem; top: .84rem; content: counter(action, decimal-leading-zero); font-weight: 800; color: var(--accent-strong); font-size: .86rem; }
.case-gallery, .case-film { padding-top: clamp(2.25rem,4.5vw,4.7rem); }
.case-gallery > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(14rem,100%),1fr)); gap: clamp(.9rem,2vw,1.8rem); margin-top: 1.5rem; }
.case-gallery img { width: 100%; height: 100%; aspect-ratio: 1.32; object-fit: cover; }
.case-gallery .photo { display: flex; flex-direction: column; }
.case-film video { width: 100%; max-width: 56rem; margin-top: 1.5rem; background: var(--forest-deep); max-height: 75vh; }
.case-evidence { background: var(--forest); color: var(--white); }
.evidence-inner { padding-block: clamp(2.5rem,6vw,6rem); }
.evidence-inner > .display { font-size: clamp(2.75rem,6vw,5.35rem); margin-bottom: 1.65rem; }
:lang(zh-Hant-TW) .evidence-inner > .display { font-size: clamp(1.9rem,4.1vw,4rem); }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(15rem,100%),1fr)); gap: 1.75rem; }
.evidence-grid > div { border-top: 1px solid #799485; padding-top: 1rem; }
.evidence-grid h3 { font-size: 1.08rem; line-height: 1.4; font-weight: 800; }
.evidence-grid p { font-size: .99rem; margin-top: .5rem; color: #e1ede5; }
.evidence-next h3 { color: var(--lime); }
.case-sources { padding-top: 2.3rem; }
.case-sources h2 { color: var(--muted); font-size: .94rem; font-weight: 800; }
.case-sources ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; margin-top: .57rem; }
.case-sources li { font-size: .875rem; }
.case-sources a { text-wrap: pretty; }
.case-end { padding-block: clamp(2.9rem, 5.5vw, 5.5rem); }
.case-end > .display { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 1.35rem; }
:lang(zh-Hant-TW) .case-end > .display { font-size: clamp(1.7rem,3.2vw,2.8rem); }
.case-next-links { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit,minmax(min(16rem,100%),1fr)); margin-bottom: 1.35rem; }
.case-next-links a { border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.case-next-links a:hover { border-color: #6b8776; background: var(--white); }
.case-next-links a span { display: block; color: var(--muted); font-size: .875rem; margin-bottom: .3rem; font-weight: 750; }
.case-next-links a strong { display: block; font-size: clamp(1.03rem,1.7vw,1.35rem); line-height: 1.4; }
.case-next-card {
  display: grid;
  grid-template-columns: clamp(5.15rem, 13vw, 12rem) minmax(0, 1fr);
  gap: clamp(.8rem, 2.2vw, 1.7rem);
  align-items: center;
  padding: .7rem 1rem .7rem .7rem;
}
.case-next-photo { overflow: hidden; background: #e7eadf; }
.case-next-photo img { width: 100%; aspect-ratio: 1.42; object-fit: contain; transition: transform .36s ease; }
.case-next-card:hover .case-next-photo img { transform: scale(1.04); }

.photo-dialog-open { overflow: hidden; }
.photo-dialog {
  width: min(74rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid #afc5b67a;
  border-radius: .28rem;
  color: var(--white);
  background: #132820;
  box-shadow: 0 1.45rem 6rem #0c1816b3;
}
.photo-dialog::backdrop { background: #10211ee0; }
.photo-dialog-inner { padding: clamp(.75rem, 2.2vw, 1.65rem); }
.photo-dialog-header, .photo-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.05rem; }
.photo-dialog-header { margin-bottom: .65rem; }
.photo-dialog-header h2 { font-size: 1rem; font-weight: 800; }
.photo-dialog-image { display: grid; place-items: center; height: min(62dvh, 44rem); background: #0e1e18; }
.photo-dialog-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.photo-dialog-footer { min-height: 2.85rem; margin-top: .72rem; }
.photo-dialog-footer p { max-width: 57ch; color: #e5eee5; font-size: .9375rem; line-height: 1.52; }
.photo-dialog-controls { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.photo-dialog-controls span { white-space: nowrap; font-size: .875rem; font-variant-numeric: tabular-nums; }
.photo-dialog button {
  min-height: 2.7rem;
  padding: .5rem .75rem;
  border: 1px solid #a7c0ad;
  border-radius: .2rem;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font: 750 .875rem/1.3 var(--body);
}
.photo-dialog button:hover, .photo-dialog button:focus-visible { background: var(--lime); color: var(--ink); }
.photo-dialog button:disabled { opacity: .42; cursor: default; }

@media (max-width: 53rem) {
  .case-hero, .case-hero--reverse { grid-template-columns: 1fr; gap: 1.4rem; }
  .case-hero--reverse .case-lead, .case-hero--reverse .case-hero-photo { grid-column: auto; grid-row: auto; }
  .case-hero-photo img, .case-hero--full .case-hero-photo img { aspect-ratio: 1.43; }
  .case-title-block h1 { font-size: clamp(2.95rem, 10vw, 5.35rem); }
  :lang(zh-Hant-TW) .case-title-block h1 { font-size: clamp(2.05rem, 7.15vw, 3.8rem); }
  .case-deck { max-width: 54ch; }
  .chapter--feature.chapter--image, .chapter--steps.chapter--image { grid-template-columns: 1fr; }
  .chapter--feature:nth-child(even) .chapter-photo, .chapter--feature:nth-child(even) .chapter-copy { grid-column: auto; grid-row: auto; }
  .chapter--wide .chapter-photo img { aspect-ratio: 1.43; }
  .case-reader-title { display: none; }
  .case-reader-inner { min-height: 3.28rem; }
  .case-reader-links { width: 100%; justify-content: space-between; }
  .case-reader-links a { min-height: 2.64rem; padding-inline: .45rem; }
  .photo-dialog-footer { flex-wrap: wrap; }
}
@media (max-width: 35rem) {
  .header-inner { min-height: 4rem; gap: .5rem; }
  .site-brand { font-size: 1rem; gap: .5rem; }
  .site-nav { gap: .55rem; }
  .collection-link { font-size: .83rem; }
  .language-links { gap: .04rem; }
  .language-links a { font-size: .83rem; min-width: 1.8rem; min-height: 1.9rem; padding-inline: .28rem; }
  .footer-inner { flex-direction: column; gap: 1.15rem; padding-block: 2.1rem; }
  .case-gallery img { aspect-ratio: 1.35; }
  .photo-dialog-image { height: auto; }
  .photo-dialog-image img { height: auto; max-height: 54dvh; }
}
@media (max-width: 22rem) { .collection-link { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: .16s; }
  ::view-transition-new(root) { animation-duration: .24s; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
