/* ============================================================
   Eleanor Cheung — Personal Index
   Architectural editorial / Swiss grid / warm white & charcoal
   ============================================================ */

:root {
  --paper: #f8f5ef;
  --paper-deep: #f1ece3;
  --ink: #1b1a17;
  --ink-soft: #45423b;
  --stone: #736c60;
  --sand: #ded4c3;
  --line: rgba(27, 26, 23, 0.16);
  --line-strong: rgba(27, 26, 23, 0.55);

  --serif: "Palatino Linotype", Palatino, "Sitka Display", "Book Antiqua",
    Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --sans: "Helvetica Neue", Helvetica, Inter, "Segoe UI", Arial,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  --zh: "Songti SC", "SimSun", "Palatino Linotype", serif;

  --shell: 1460px;
  --gutter: clamp(20px, 4.6vw, 68px);
  --grid-gap: clamp(12px, 1.9vw, 30px);
  --sect: clamp(48px, 6.5vw, 96px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(13.5px, 0.25vw + 12.6px, 14.5px);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* very light paper grain — keeps large white areas from feeling flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.28;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.16'/></svg>");
  mix-blend-mode: multiply;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 200;
}
.skip:focus {
  left: 12px;
  top: 12px;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: clamp(24px, 3vw, 48px);
}

.col-3 { grid-column-end: span 3; }
.col-4 { grid-column-end: span 4; }
.col-5 { grid-column-end: span 5; }
.col-6 { grid-column-end: span 6; }
.col-7 { grid-column-end: span 7; }
.col-8 { grid-column-end: span 8; }
.start-5 { grid-column-start: 5; }
.start-7 { grid-column-start: 7; }
.start-9 { grid-column-start: 9; }
.start-10 { grid-column-start: 10; }

/* ------------------------------------------------------------
   Type
   ------------------------------------------------------------ */
.label {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.h-display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h-page {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: 0.03em;
}

.h-section {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.35vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.lead {
  margin: 0;
  font-size: clamp(0.95rem, 0.35vw + 0.82rem, 1.05rem);
  line-height: 1.72;
  letter-spacing: 0;
  color: var(--ink-soft);
  max-width: 22em;
}

.prose p {
  margin: 0 0 1.1em;
  max-width: 30em;
  color: var(--ink-soft);
}
.prose p:last-child {
  margin-bottom: 0;
}

.mono-num {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(120%) blur(14px);
  -webkit-backdrop-filter: saturate(120%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.site-head.is-solid {
  border-bottom-color: var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: clamp(58px, 5.4vw, 74px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand .brand-zh {
  font-family: var(--zh);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--stone);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}

.nav a {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ------------------------------------------------------------
   Home — hero
   ------------------------------------------------------------ */
.hero {
  padding-top: clamp(24px, 3.4vw, 50px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: clamp(20px, 3vw, 38px);
}

.hero-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.24em;
}

.name-zh {
  font-family: var(--zh);
  font-size: clamp(0.8rem, 0.7vw + 0.55rem, 1.05rem);
  letter-spacing: 0.3em;
  color: var(--stone);
  align-self: flex-end;
  padding-bottom: 0.6em;
}

.hero-body {
  margin-top: clamp(16px, 2.4vw, 34px);
  align-items: start;
}

.hero-role {
  margin: clamp(20px, 2.6vw, 34px) 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  max-width: 40ch;
}

.kw-group + .kw-group {
  margin-top: 26px;
}
.kw-group .label {
  margin-bottom: 12px;
}
.kw-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kw-list li {
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 3px 0;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 70px);
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.hero-foot .cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-foot .cue::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--stone);
  display: inline-block;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section {
  padding-top: var(--sect);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 14px;
  align-items: baseline;
  padding-bottom: clamp(26px, 3.4vw, 48px);
}
.section-head .head-label {
  grid-column: 1 / span 3;
}
.section-head .head-main {
  grid-column: 5 / span 8;
}
.section-head .head-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-head .head-main p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ------------------------------------------------------------
   Domain cards
   ------------------------------------------------------------ */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 2.6vw, 44px);
  border-top: 1px solid var(--line-strong);
  padding-top: 0;
}

.domain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 34px) 0 clamp(10px, 1.4vw, 18px);
  border-bottom: 1px solid var(--line);
  transition: color 0.4s var(--ease);
}
.domain-card + .domain-card {
  border-left: 0;
}

.domain-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.domain-card .card-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}

.domain-card .card-blurb {
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: 34ch;
  margin: 0;
}

.domain-card .card-enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.35s var(--ease);
}
.domain-card .card-enter .arw {
  transition: transform 0.45s var(--ease);
}
.domain-card:hover .card-enter {
  color: var(--ink);
}
.domain-card:hover .card-enter .arw {
  transform: translateX(6px);
}
.domain-card .card-rule {
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.domain-card:hover .card-rule {
  transform: scaleX(1);
}

/* ------------------------------------------------------------
   Facts / definition list
   ------------------------------------------------------------ */
.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) 1.4fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 2px;
}
.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact-list {
  border-top: 1px solid var(--line-strong);
}
.contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(14px, 1.7vw, 22px) 0;
  border-bottom: 1px solid var(--line);
}
.contact-row .c-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  flex: 0 0 auto;
  width: 6em;
}
.contact-row .c-value {
  flex: 1 1 auto;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.2;
  text-align: right;
  word-break: break-word;
  transition: color 0.3s var(--ease);
}
a.contact-row:hover .c-value {
  color: var(--stone);
}
.contact-empty {
  margin: 0;
  padding: clamp(20px, 3vw, 34px) 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.4;
  max-width: 46ch;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Page head (domain pages)
   ------------------------------------------------------------ */
.page-head {
  padding-top: clamp(26px, 3.4vw, 52px);
  padding-bottom: clamp(34px, 4.4vw, 64px);
}
.page-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: clamp(18px, 2.6vw, 36px);
}
.page-head .h-page {
  margin-bottom: clamp(24px, 3.4vw, 46px);
}
.page-standfirst {
  margin: 0;
  max-width: 34em;
  font-size: clamp(0.9rem, 0.3vw + 0.8rem, 0.98rem);
  line-height: 1.56;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.3s var(--ease);
}
.back-link .arw {
  transition: transform 0.4s var(--ease);
}
.back-link:hover {
  color: var(--ink);
}
.back-link:hover .arw {
  transform: translateX(-4px);
}

/* ------------------------------------------------------------
   Image plate
   ------------------------------------------------------------ */
.plate {
  margin: 0;
  padding-inline: var(--gutter);
  max-width: var(--shell);
  margin-inline: auto;
}
.plate-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 16 / 9;
}
.plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(0.98) brightness(1.01);
  transform: scale(1.02);
  transition: transform 1.6s var(--ease);
}
.plate:hover .plate-frame img {
  transform: scale(1.045);
}
.plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Rule lists (capabilities / themes / outreach)
   ------------------------------------------------------------ */
.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.rule-list > li {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(12px, 2vw, 34px);
  align-items: baseline;
  padding: clamp(15px, 1.9vw, 24px) 0;
  border-bottom: 1px solid var(--line);
}
.rule-list .r-name {
  font-family: var(--serif);
  font-size: clamp(0.92rem, 0.5vw + 0.78rem, 1rem);
  line-height: 1.32;
}
.rule-list .r-note {
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: 46ch;
  margin: 0;
}
.rule-list.rule-list--2col > li {
  grid-template-columns: 3.4em minmax(0, 1.3fr) minmax(0, 1fr);
}

/* simple two-column lists */
.cols-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px clamp(20px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.cols-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
}
.block-head .h-section {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
}

/* ------------------------------------------------------------
   Project rows
   ------------------------------------------------------------ */
.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.project-list li {
  display: grid;
  grid-template-columns: 5em minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 30px);
  align-items: baseline;
  padding: clamp(14px, 1.8vw, 22px) 0;
  border-bottom: 1px solid var(--line);
}
.project-list .p-year {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--stone);
  font-variant-numeric: tabular-nums;
}
.project-list .p-title {
  font-family: var(--serif);
  font-size: 0.95rem;
}
.project-list .p-meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Empty state
   ------------------------------------------------------------ */
.empty {
  padding: clamp(22px, 3vw, 34px) 0 clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  max-width: 58ch;
}
.empty p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.1vw, 1.16rem);
  line-height: 1.62;
  color: var(--ink-soft);
}
.empty .empty-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ------------------------------------------------------------
   Gallery
   ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2.2vw, 30px);
}
.gallery figure {
  margin: 0;
}
.gallery .g-frame {
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.98);
  transition: transform 1.4s var(--ease);
}
.gallery figure:hover img {
  transform: scale(1.035);
}
.gallery figcaption {
  margin-top: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ------------------------------------------------------------
   Notes list / project block / next link
   ------------------------------------------------------------ */
.tools-col .label {
  margin-bottom: 14px;
}

.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.notes-list li {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 8px 0 8px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.notes-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--stone);
}

.project-block {
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(18px, 2.2vw, 26px);
  padding-bottom: clamp(18px, 2.2vw, 26px);
  border-bottom: 1px solid var(--line);
  max-width: 64ch;
}
.project-block .h-section {
  margin: 14px 0 12px;
}
.project-text {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}

.section-foot-link {
  margin: clamp(18px, 2.4vw, 30px) 0 0;
}
.section-foot-link a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.section-foot-link a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.next-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(14px, 1.8vw, 20px);
}
.next-link .next-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.35s var(--ease);
}
.next-link:hover .next-title {
  color: var(--stone);
}

/* ------------------------------------------------------------
   Status pill
   ------------------------------------------------------------ */
.status {
  display: inline-block;
  padding: 3px 10px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-foot {
  margin-top: var(--sect);
  border-top: 1px solid var(--line-strong);
  padding-block: clamp(28px, 4vw, 52px) clamp(34px, 5vw, 60px);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  align-items: start;
}
.foot-name {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.foot-note {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--stone);
  max-width: 30ch;
}
.foot-col-label {
  margin-bottom: 12px;
}
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.foot-links a,
.foot-links span {
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.foot-links a:hover {
  color: var(--ink);
}
.foot-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: clamp(28px, 4vw, 50px);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* 全站不设页脚，用底部留白收尾 */
main {
  padding-bottom: clamp(64px, 10vw, 140px);
}

/* ------------------------------------------------------------
   Reveal
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .hero .col-6 { grid-column-end: span 7; }
  .hero .col-4.start-9 { grid-column: 9 / span 4; }
}

@media (max-width: 900px) {
  .nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .nav a {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
  .foot-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .grid {
    row-gap: 30px;
  }
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .start-5,
  .start-7,
  .start-9 {
    grid-column: 1 / -1;
  }
  .hero-meta {
    padding-bottom: 18px;
  }
  .hero-body {
    margin-top: 26px;
  }
  .name-zh {
    padding-bottom: 0.45em;
  }
  .hero-foot {
    margin-top: 34px;
  }
  .plate {
    padding-inline: var(--gutter);
  }
  .plate-frame {
    aspect-ratio: 4 / 3;
  }
  .rule-list > li,
  .rule-list.rule-list--2col > li {
    grid-template-columns: 2.4em minmax(0, 1fr);
    row-gap: 6px;
  }
  .rule-list .r-note {
    grid-column: 2;
  }
  .project-list li {
    grid-template-columns: 4em minmax(0, 1fr);
    row-gap: 4px;
  }
  .project-list .p-meta {
    grid-column: 2;
  }
  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .contact-row .c-label {
    width: auto;
  }
  .contact-row .c-value {
    text-align: left;
  }
  .domain-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .domain-card {
    border-bottom: 1px solid var(--line);
  }
  .domain-card .card-blurb {
    max-width: 44ch;
  }
}

@media (max-width: 420px) {
  .brand .brand-zh {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .plate-frame img,
  .gallery img,
  .domain-card .card-rule,
  .nav a::after {
    transition: none;
  }
}

/* ------------------------------------------------------------
   Chinese editorial additions
   ------------------------------------------------------------ */
[hidden] {
  display: none !important;
}

.section-lead {
  margin: 16px 0 clamp(28px, 4vw, 44px);
  max-width: 32em;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line-strong);
}
.note-item {
  padding: clamp(18px, 2.2vw, 26px) 0;
  border-bottom: 1px solid var(--line);
}
.note-name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.note-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.78;
  max-width: 28em;
}

.skill-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-meta {
  margin-top: 18px;
}
.meta-row {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.meta-row .mono-num {
  flex: 0 0 auto;
}
.meta-text {
  font-size: 0.72rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.form-block {
  margin-top: clamp(36px, 5vw, 64px);
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px) clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(20px, 2.6vw, 30px);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--stone);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(27, 26, 23, 0.26);
  border-radius: 0;
  padding: 11px 0;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.7;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 6px;
}
.btn {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 30px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: background 0.35s var(--ease);
}
.btn:hover {
  background: #3b3831;
}
.form-note {
  font-size: 0.72rem;
  color: var(--stone);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .note-grid,
  .contact-form,
  .skill-list {
    grid-template-columns: 1fr;
  }
  .h-page {
    font-size: clamp(1.6rem, 7.2vw, 2rem);
  }
  .section-lead {
    margin-bottom: 24px;
  }
  .meta-row {
    padding: 6px 0;
  }
}
.contact-row .c-value {
  min-width: 0;
}
@media (max-width: 1080px) {
  .hero .col-4.start-9 {
    grid-column: 9 / span 4;
  }
}
@media (max-width: 900px) {
  .section-head .head-label,
  .section-head .head-main {
    grid-column: 1 / -1;
  }
}
/* small refinements */
.contact-meta .mono-num {
  display: none;
}
.form-block {
  margin-bottom: clamp(8px, 2vw, 24px);
}
@media (max-width: 760px) {
  .hero .col-6,
  .hero .col-4.start-9 {
    grid-column: 1 / -1;
  }
  body {
    font-size: 15px;
  }
  .h-display {
    font-size: clamp(2.05rem, 9vw, 2.6rem);
  }
  .h-page {
    font-size: clamp(1.6rem, 7.2vw, 2rem);
  }
  .field input,
  .field textarea {
    padding: 12px 0;
  }
  .field label {
    font-size: 0.74rem;
  }
  .btn {
    padding: 15px 30px;
    min-height: 46px;
  }
  .hero-role {
    letter-spacing: 0.08em;
  }
}
/* ------------------------------------------------------------
   Bilingual type layer
   ------------------------------------------------------------ */
.en-inline {
  color: var(--stone);
  font-size: 0.92em;
  letter-spacing: 0.02em;
  margin-left: 0.45em;
}
.label-en {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.h-page-en {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.h-section-en {
  margin: 6px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.page-standfirst-en {
  margin: 10px 0 0;
  max-width: 36em;
  font-family: var(--serif);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--stone);
}
.lead-en {
  margin: 8px 0 0;
  max-width: 28em;
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--stone);
}
.hero-role-en {
  margin: 5px 0 0;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  text-transform: uppercase;
}
.card-title-en {
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.group-en {
  display: block;
  margin: -4px 0 8px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.r-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.r-en {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--stone);
}
.section-note {
  margin: 10px 0 0;
  max-width: 34em;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.tool-list li {
  font-size: 0.8rem;
}
.page-head {
  padding-bottom: clamp(24px, 3vw, 40px);
}
.foot-grid { row-gap: 0; }

