:root {
  --paper: #f8f8f4;
  --ink: #211f24;
  --muted: #67636d;
  --violet: #7545ed;
  --lilac: #c9b2ff;
  --line: #d6d3cc;
  --display: "Arial", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --body: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#c7c5bd 0.85px, transparent 0.95px);
  background-size: 17px 17px;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.clean {
  background-image: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}
img {
  max-width: 100%;
  display: block;
}
button {
  touch-action: manipulation;
}
button,
nav a {
  -webkit-tap-highlight-color: transparent;
}
main:focus {
  outline: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 8px;
  padding: 12px;
  background: #fff;
  z-index: 80;
}
.skip:focus {
  top: 3px;
}
.mast {
  height: 66px;
  background: #fbfaf7;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 4;
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(20px, 4.1vw, 74px);
  gap: 12px;
}
.signature,
.mast nav,
.lang-switch,
.nav-side {
  display: flex;
  align-items: center;
}
.signature {
  gap: 12px;
  font-size: 19px;
}
.signature b {
  font-family: var(--display);
  letter-spacing: -1.1px;
  font-size: 24px;
}
.slash {
  color: #aaa;
  font-weight: 300;
}
.doc-name {
  font-size: 14px;
  color: var(--muted);
}
.monogram {
  height: 32px;
  width: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #bda2fc;
  font: 900 33px/0.8 Arial;
  padding-bottom: 6px;
  transform: rotate(-5deg);
  color: #241c2e;
}
.mast nav {
  gap: 4px;
}
.mast nav a {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
}
.mast nav a.active {
  background: #ece9e4;
  color: #201e23;
  font-weight: 600;
}
.nav-side {
  gap: clamp(8px, 2vw, 30px);
}
.lang-switch {
  gap: 2px;
  border: 1px solid #d5d2cc;
  border-radius: 99px;
  padding: 2px;
}
.lang-switch button {
  border: 0;
  background: none;
  padding: 5px 9px;
  min-height: 27px;
  border-radius: 20px;
  font: 600 12px/1.1 var(--body);
}
.lang-switch button[aria-pressed="true"] {
  color: white;
  background: var(--ink);
}
.wrap {
  width: calc(100% - clamp(40px, 10vw, 180px));
  max-width: 1320px;
  margin: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 470px;
  padding: 48px 3% 40px;
  gap: 12px;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.eyeline {
  font-size: 14px;
  letter-spacing: 0.09em;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.eyeline:before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(76px, 7.7vw, 125px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.086em;
  margin: 22px 0 26px;
}
.selection {
  display: inline-block;
  border: 1.5px solid #8757ee;
  color: #5733bd;
  background: #cdb6ff45;
  position: relative;
  transform: rotate(-4deg);
  padding: 0 0.11em 0.06em 0.035em;
  margin: 0 0.02em 0 0.07em;
  line-height: 0.91;
}
.handles i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 1.5px solid var(--violet);
}
.handles i:nth-child(1) {
  top: -5px;
  left: -5px;
}
.handles i:nth-child(2) {
  top: -5px;
  right: -5px;
}
.handles i:nth-child(3) {
  bottom: -5px;
  left: -5px;
}
.handles i:nth-child(4) {
  bottom: -5px;
  right: -5px;
}
.hero-note {
  font-size: clamp(16px, 1.34vw, 21px);
  line-height: 1.65;
  margin: 0;
  max-width: 26em;
}
.hero-sub {
  font-size: 14px;
  color: #635e69;
  display: block;
  margin-top: 6px;
}
.folder-area {
  height: 350px;
  display: grid;
  place-items: center;
  position: relative;
}
.folder-object {
  position: relative;
  width: min(100%, 405px);
  aspect-ratio: 1.43;
  display: block;
  transition: transform 0.25s;
  isolation: isolate;
}
.folder-object:hover {
  transform: translateY(-5px) rotate(-1deg);
}
.folder-back,
.pocket-edge,
.pocket,
.folder-thumb,
.folder-pin {
  position: absolute;
}
.folder-back {
  inset: 18% 8% 4% 4%;
  background: #9f7ae3;
  border: 2px solid #292130;
  border-radius: 13px;
  transform: rotate(-7deg);
}
.folder-back:before {
  content: "";
  display: block;
  background: #9f7ae3;
  border: 2px solid #292130;
  border-bottom: 0;
  width: 37%;
  height: 15%;
  position: absolute;
  left: -2px;
  top: -13%;
  border-radius: 10px 18px 0 0;
}
.folder-thumb {
  left: 19%;
  top: 6%;
  width: 33%;
  height: 77%;
  border: 5px solid #fff;
  border-radius: 9px;
  background: #f6f5f0;
  object-fit: cover;
  object-position: top;
  box-shadow:
    0 0 0 1px #292130,
    3px 5px 0 #31283b44;
  transform: rotate(-14deg);
}
.folder-thumb.second {
  left: 44%;
  top: 0;
  transform: rotate(4deg);
  height: 78%;
}
.pocket-edge,
.pocket {
  inset: 42% 8% 3% 4%;
  clip-path: polygon(
    0 7%,
    43% 7%,
    51% 0,
    98% 0,
    100% 4%,
    100% 93%,
    98% 100%,
    2% 100%,
    0 96%
  );
  transform: rotate(-7deg);
  background: #292130;
}
.pocket-edge {
  filter: drop-shadow(3px 5px 0 #30243d);
}
.pocket {
  inset: calc(42% + 2px) calc(8% + 2px) calc(3% + 2px) calc(4% + 2px);
  background: linear-gradient(120deg, #e0bcff 0%, #bd91f7 60%, #a87ce9 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 7% 8% 6%;
}
.pocket strong {
  font: 700 clamp(25px, 2.55vw, 40px) / 0.99 var(--display);
  letter-spacing: -0.073em;
  color: #31223f;
  text-align: left;
}
.folder-count {
  font:
    600 13px/1 ui-monospace,
    monospace;
  border: 1px solid #423452;
  border-radius: 5px;
  padding: 6px 7px;
}
.folder-pin {
  right: 14%;
  bottom: -2%;
  background: #dcf993;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 5px 11px;
  font: 600 14px/1.25 var(--body);
  transform: rotate(5deg);
}
.folder-pin:before {
  content: "";
  position: absolute;
  top: -23px;
  left: -13px;
  width: 24px;
  height: 28px;
  background: var(--ink);
  clip-path: polygon(4% 0, 96% 58%, 53% 62%, 37% 100%);
  transform: rotate(-5deg);
}
.work-block {
  scroll-margin-top: 35px;
  padding-bottom: 40px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #928d93;
  padding: 23px 0 19px;
  gap: 12px;
}
.section-title {
  display: flex;
  gap: 13px;
  align-items: baseline;
}
.section-title h2 {
  font-size: clamp(25px, 2.3vw, 35px);
  letter-spacing: -0.055em;
  margin: 0;
}
.section-title small {
  font:
    13px/1.2 ui-monospace,
    monospace;
  color: var(--muted);
}
.switch-view {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}
.switch-view button,
.tool {
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 5px;
}
.switch-view button {
  width: 32px;
  height: 28px;
}
.switch-view button[aria-pressed="true"] {
  background: #242126;
  color: white;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Project index: original marks are kept at their native proportions. */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px clamp(20px, 3.5vw, 58px);
  padding: 14px 8px 4px 0;
}
.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  background: #fff;
  color: #303d50;
  border: 1.5px solid #cbd5e0;
  border-radius: 15px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.project-card:hover,
.project-card:focus-visible {
  border-color: #9884bf;
  box-shadow: 0 4px 16px #241e3110;
}
.card-tag {
  position: absolute;
  z-index: 1;
  right: -9px;
  top: -14px;
  border: 1.5px solid #cbd5e0;
  background: white;
  border-radius: 20px 20px 20px 2px;
  color: #46566b;
  padding: 5px 12px;
  font: 600 13px/1.25 var(--body);
}
.cover-wrap {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  height: clamp(190px, 18vw, 285px);
}
.cover-wrap img {
  display: block;
  width: 61%;
  height: 38%;
  object-fit: contain;
}
.brand-transit .cover-wrap img {
  width: 50%;
  height: 48%;
}
.brand-jelly .cover-wrap img {
  width: 50%;
  height: 44%;
}
.brand-finance .cover-wrap img {
  width: auto;
  max-width: 56%;
  height: 44%;
}
.caption-row {
  margin-top: auto;
  border-top: 1px solid #d7dee6;
  padding: 15px 19px 16px;
}
.caption-row h3 {
  font-size: clamp(16px, 1.3vw, 20px);
  letter-spacing: -0.025em;
  line-height: 1.35;
  font-weight: 650;
  margin: 0;
}
.caption-row p {
  font-size: 14px;
  line-height: 1.5;
  margin: 5px 0 0;
  color: #627084;
}
.project-grid.list-mode {
  grid-template-columns: 1fr;
  gap: 12px;
}
.list-mode .project-card {
  flex-direction: row;
  align-items: center;
  min-height: 78px;
}
.list-mode .cover-wrap {
  width: 22%;
  max-width: 180px;
  height: 66px;
  flex-shrink: 0;
}
.list-mode .cover-wrap img {
  width: 70%;
  height: 65%;
}
.list-mode .caption-row {
  flex: 1;
  border: 0;
  border-left: 1px solid #d7dee6;
  margin: 0;
  padding: 8px 18px;
}
.list-mode .card-tag {
  position: static;
  order: 3;
  margin-right: 15px;
}
.dock {
  display: flex;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 3px;
  background: #28262b;
  border: 1px solid #151318;
  padding: 6px;
  border-radius: 13px;
  box-shadow: 0 5px 16px #1a151c33;
  z-index: 8;
}
.tool {
  width: 37px;
  height: 35px;
  color: #f6f5f4;
}
.tool.selected {
  background: #bc9bff;
  color: #251d30;
}
.tool:hover {
  background: #56505c;
  color: white;
}
.dock-line {
  display: block;
  height: 20px;
  width: 1px;
  background: #615d65;
  margin: 0 3px;
}
.tool-label {
  position: absolute;
  pointer-events: none;
  bottom: calc(100% + 7px);
  background: #211f24;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  padding: 5px 9px;
  opacity: 0;
  white-space: nowrap;
}
.tool:hover .tool-label,
.tool:focus-visible .tool-label {
  opacity: 1;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #595660;
  border-top: 1px solid var(--line);
  padding: 23px clamp(20px, 5vw, 90px) 88px;
  margin-top: 30px;
}
footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.about {
  padding: 72px 0 30px;
}
.about-top {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  align-items: center;
  gap: 60px;
  max-width: 1030px;
  margin: auto;
}
.about h1 {
  font: 700 clamp(60px, 7.6vw, 110px) / 1 var(--display);
  letter-spacing: -0.08em;
  margin: 14px 0 22px;
}
.about .about-intro {
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.75;
  max-width: 640px;
}
.portrait {
  padding: 9px 9px 17px;
  border: 1px solid #a7a09d;
  border-radius: 3px;
  background: #fff;
  transform: rotate(4deg);
  box-shadow: 5px 6px 0 #d3c1ec;
  margin: 0;
  max-width: 210px;
}
.portrait img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  object-position: top;
}
.timeline {
  max-width: 1030px;
  margin: 56px auto 0;
}
.timeline h2 {
  font-size: 26px;
  letter-spacing: -0.04em;
}
.timeline-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr 1fr;
  gap: 15px;
  align-items: start;
  border-top: 1px solid var(--line);
  background: #f8f8f4cc;
  padding: 17px 8px;
  line-height: 1.55;
}
.timeline-row small {
  font-size: 14px;
  color: var(--muted);
}
.timeline-row strong {
  font-weight: 600;
}
body.case-mode {
  background: #f0efed;
  background-image: none;
  color: #151516;
}
.case-mode .mast,
.case-mode .dock {
  display: none;
}
.case-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(14px, 1.5vw, 28px);
  font-size: 14px;
}
.case-nav > a,
.case-right {
  display: flex;
  gap: 7px;
  align-items: center;
}
.case-nav .icon {
  width: 16px;
}
.case-nav .role {
  position: absolute;
  left: 33.333%;
  font-size: 13px;
}
.case-right {
  gap: 19px;
}
.case-right > b {
  font-size: 14px;
  letter-spacing: -0.02em;
}
.case-nav .lang-switch {
  border: 0;
}
.case-nav .lang-switch button[aria-pressed="true"] {
  background: #dcdbd9;
  color: #141415;
}
.case-main {
  width: calc(100% - 80px);
  max-width: min(1216px, 76vw);
  margin: auto;
  padding-top: clamp(74px, 7.5vw, 146px);
}
.case-index {
  color: #62605e;
  font: 14px/1.3 var(--body);
  margin: 0 0 19px;
}
.case-main h1 {
  font: 570 clamp(64px, 7.3vw, 138px) / 1.06 var(--display);
  letter-spacing: -0.075em;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.case-lede {
  font-size: clamp(23px, 1.85vw, 35px);
  line-height: 1.45;
  letter-spacing: -0.035em;
  max-width: 22em;
  margin: 0;
}
.case-meta {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.5fr auto;
  gap: 20px;
  margin: clamp(46px, 4.3vw, 82px) 0 clamp(37px, 4.3vw, 80px);
  padding: 18px 0 0;
  border-top: 1px solid #d3d1ce;
}
.case-meta dt,
.case-meta dd {
  margin: 0;
}
@media (min-width: 621px) {
  .case-meta:has(.project-url) {
    grid-template-columns: 1.1fr 1fr 1.5fr auto auto;
  }
}
.case-meta dt {
  font-size: 13px;
  color: #66625f;
}
.case-meta dd {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}
.case-meta .jump {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.case-cover {
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 2vw, 30px);
}
.case-story {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: baseline;
  margin: clamp(42px, 6vw, 84px) 0;
}
.case-story h2,
.gallery h2 {
  font-size: clamp(25px, 2.5vw, 39px);
  letter-spacing: -0.055em;
  margin: 0;
}
.case-story p {
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.8;
  margin: 0 0 1em;
}
.gallery {
  scroll-margin-top: 22px;
}
.gallery h2 {
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc8c5;
}
.figure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px 20px;
  margin-top: 24px;
}
.figure-grid.boards {
  grid-template-columns: 1fr 1fr;
}
.figure-grid figure {
  margin: 0;
  min-width: 0;
}
.fig-btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid #00000010;
  background: #e6e4e0;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
}
.fig-btn img {
  width: 100%;
  aspect-ratio: 0.65;
  object-fit: cover;
  object-position: top;
}
.boards .fig-btn img {
  aspect-ratio: 1.45;
  object-fit: contain;
  background: #e5e4e1;
}
.figure-grid figcaption {
  font-size: 14px;
  color: #464247;
  padding: 10px 2px 0;
  line-height: 1.5;
}
.fig-icon {
  display: grid;
  place-items: center;
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid #c7c5c2;
  background: #fffc;
  border-radius: 50%;
  width: 31px;
  height: 31px;
}
.fig-icon .icon {
  width: 15px;
}
.chapter-index,
.study-chapter {
  scroll-margin-top: 20px;
}
.chapter-index {
  border-block: 1px solid #cbc9c6;
  padding: clamp(22px, 3vw, 38px) 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}
.chapter-index h2 {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -0.035em;
}
.chapter-index ol {
  margin: 0;
  padding-left: 1.8em;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 2.8em;
  list-style: decimal-leading-zero;
}
.chapter-index li::marker {
  font: 12px/1 var(--body);
  color: #746e69;
}
.chapter-index a {
  display: block;
  width: fit-content;
  padding: 4px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: #c8c3be;
  text-underline-offset: 4px;
}
.chapter-index a:hover {
  text-decoration-color: currentColor;
}
.study-chapter {
  margin: clamp(54px, 6.7vw, 104px) 0;
}
.study-chapter + .study-chapter {
  padding-top: clamp(38px, 5vw, 68px);
  border-top: 1px solid #d2d0cd;
}
.study-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(20px, 2.7vw, 38px);
}
.study-intro h2 {
  margin: 0;
  font-size: clamp(27px, 2.5vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}
.study-intro p {
  margin: 0;
  max-width: 65ch;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.75;
}
.study-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 22px;
  padding: 20px 0;
  margin: 0 0 24px;
  border-block: 1px solid #d4d1cc;
}
.study-notes dt {
  font-size: 14px;
  font-weight: 650;
}
.study-notes dd {
  margin: 7px 0 0;
  line-height: 1.65;
  font-size: 15px;
}
.study-figures {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px) clamp(10px, 1.7vw, 24px);
}
.study-figure {
  margin: 0;
  min-width: 0;
  grid-column: span 12;
}
.study-figure.pair {
  grid-column: span 6;
}
.study-figure.screen {
  grid-column: span 4;
}
.study-figures.phone-row {
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  max-width: calc(var(--columns) * 310px);
  margin-inline: auto;
}
.phone-row .study-figure.screen {
  grid-column: auto;
}
.study-figure .fig-btn {
  background: white;
  border-color: #27232114;
  border-radius: clamp(7px, 1vw, 14px);
}
.study-figure .fig-btn img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.study-figure.screen .fig-btn img {
  height: auto;
  aspect-ratio: 750 / 1624;
  object-fit: cover;
  object-position: top;
}
.study-figure figcaption {
  margin: 9px 2px 0;
  color: #4b4845;
  font-size: 14px;
  line-height: 1.5;
}
.study-figure button:hover .fig-icon {
  background: #fff;
}
@media (max-width: 700px) {
  .chapter-index,
  .study-intro {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .chapter-index ol {
    gap: 4px 1.8em;
  }
  .chapter-index a {
    font-size: 14px;
  }
  .study-figure.pair {
    grid-column: span 12;
  }
  .study-figure.screen {
    grid-column: span 6;
  }
  .study-figures.phone-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .study-figures.phone-row:has(figure:only-child) {
    grid-template-columns: 1fr;
    max-width: min(100%, 290px);
  }
  .study-figure figcaption {
    font-size: 13px;
  }
  .study-notes {
    gap: 14px;
  }
}
.next-case {
  display: block;
  margin: 65px 0 40px;
  border-top: 1px solid #ccc8c5;
  padding: 22px 0;
}
.next-case span {
  font-size: 14px;
  color: #5c575a;
}
.next-case strong {
  display: block;
  font-size: clamp(29px, 4vw, 58px);
  letter-spacing: -0.05em;
  margin-top: 6px;
}
.case-mode footer {
  padding-bottom: 25px;
  background: none;
}
dialog {
  border: none;
  padding: 0;
  width: min(1040px, 95vw);
  max-width: 95vw;
  max-height: 94dvh;
  background: #f4f3f1;
  border-radius: 15px;
  color: var(--ink);
}
dialog::backdrop {
  background: #1c1921bd;
}
.viewer {
  display: flex;
  flex-direction: column;
  height: 88dvh;
}
.viewer header,
.viewer-controls {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  gap: 9px;
  flex-shrink: 0;
}
.viewer header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.viewer button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 7px 12px;
  font-size: 14px;
}
.viewer #viewer-close {
  font-size: 24px;
  line-height: 1;
  border: 0;
  background: transparent;
}
.viewer-controls {
  border-top: 1px solid var(--line);
  justify-content: center;
}
.viewer-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}
#viewer-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #dfdeda;
  text-align: center;
}
#viewer-image {
  height: 100%;
  width: 100%;
  object-fit: contain;
  display: block;
}
#viewer-scroll.zoom #viewer-image {
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  display: inline-block;
}
.error {
  padding: 80px 0;
  min-height: 50vh;
}
@media (min-width: 1650px) {
  .hero {
    min-height: 530px;
  }
  .folder-area {
    height: 410px;
  }
  .folder-object {
    width: 455px;
  }
  .case-main {
    max-width: 1216px;
  }
}
@media (max-width: 850px) {
  .hero {
    padding: 34px 0 28px;
    min-height: 380px;
  }
  .folder-area {
    height: 280px;
  }
  .hero h1 {
    font-size: 74px;
  }
  .folder-object {
    width: 100%;
  }
  .project-grid {
    gap: 27px 16px;
  }
  .case-main {
    max-width: 100%;
    width: calc(100% - 56px);
  }
  .case-story {
    grid-template-columns: 1fr 1.7fr;
  }
  .pocket strong {
    font-size: 24px;
  }
}
@media (max-width: 620px) {
  .mast {
    height: 58px;
  }
  .mast-inner {
    padding: 0 15px;
  }
  .signature {
    gap: 7px;
  }
  .slash,
  .doc-name {
    display: none;
  }
  .signature b {
    font-size: 21px;
  }
  .monogram {
    width: 28px;
    height: 28px;
    font-size: 28px;
  }
  .mast nav a {
    padding: 6px 9px;
    font-size: 13px;
  }
  .nav-side {
    gap: 7px;
  }
  .lang-switch button {
    padding: 5px 6px;
  }
  .wrap {
    width: calc(100% - 36px);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 37px 7px 17px;
    min-height: 0;
  }
  .hero h1 {
    font-size: clamp(66px, 15vw, 89px);
    margin: 18px 0 19px;
  }
  .eyeline {
    font-size: 12px;
  }
  .hero-note {
    font-size: 16px;
  }
  .hero-sub {
    font-size: 13px;
  }
  .folder-area {
    height: 225px;
    margin-top: 6px;
  }
  .folder-object {
    width: 249px;
  }
  .folder-thumb {
    border-width: 3px;
  }
  .folder-pin {
    font-size: 11px;
  }
  .pocket strong {
    font-size: 24px;
  }
  .section-heading {
    padding: 16px 0 13px;
  }
  .section-title {
    gap: 8px;
  }
  .section-title small {
    font-size: 11px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .caption-row {
    padding: 10px 0 0;
  }
  .caption-row h3 {
    font-size: 22px;
  }
  .work-block {
    padding-bottom: 18px;
  }
  .dock {
    bottom: 13px;
  }
  .about {
    padding: 45px 0 15px;
  }
  .about-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .about h1 {
    margin-bottom: 12px;
  }
  .portrait {
    width: 135px;
    grid-row: 1;
    justify-self: end;
    margin-bottom: -30px;
  }
  .about .about-intro {
    font-size: 16px;
  }
  .timeline {
    margin-top: 32px;
  }
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 12px 2px;
  }
  .case-nav {
    padding: 11px 12px;
  }
  .case-nav .role {
    display: none;
  }
  .case-right {
    gap: 8px;
  }
  .case-main {
    width: calc(100% - 36px);
    padding-top: 57px;
  }
  .case-main h1 {
    font-size: clamp(52px, 13vw, 80px);
    margin-bottom: 17px;
  }
  .case-lede {
    font-size: 21px;
  }
  .case-meta {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
    margin: 33px 0 32px;
    padding-top: 14px;
  }
  .case-meta dd {
    margin-top: 6px;
  }
  .case-story {
    display: block;
    margin: 36px 0;
  }
  .case-story h2 {
    margin-bottom: 13px;
  }
  .case-story p {
    font-size: 16px;
  }
  .figure-grid,
  .figure-grid.boards {
    grid-template-columns: 1fr 1fr;
    gap: 19px 12px;
  }
  .figure-grid.boards {
    grid-template-columns: 1fr;
  }
  .figure-grid figcaption {
    font-size: 13px;
  }
  .viewer header {
    padding: 8px;
  }
  .viewer-controls {
    padding: 8px 4px;
    gap: 4px;
  }
  .viewer button {
    padding: 7px 9px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
@media (min-width: 1100px) {
  .case-main {
    width: 66.67%;
    max-width: 1216px;
  }
}
html[lang="zh-CN"] .greeting {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.58em;
  letter-spacing: -0.06em;
  line-height: 1.32;
  margin-bottom: 0.08em;
}
html[lang="zh-CN"] .pocket strong {
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.05em;
}
.figure-grid figcaption {
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  .project-grid:not(.list-mode) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 21px;
  }
  .brand-card .caption-row {
    padding: 12px 14px;
  }
}
@media (max-width: 620px) {
  .project-grid:not(.list-mode) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 15px;
    padding: 13px 5px 2px 0;
  }
  .cover-wrap {
    height: clamp(120px, 28vw, 181px);
  }
  .brand-card .caption-row {
    padding: 10px 11px 12px;
  }
  .brand-card .caption-row h3 {
    font-size: 15px;
  }
  .brand-card .caption-row p {
    font-size: 13px;
  }
  .card-tag {
    right: -5px;
    top: -11px;
    padding: 3px 8px;
    font-size: 12px;
  }
  .list-mode .card-tag {
    margin-right: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-card {
    transition: none;
  }
}
