/* =========================================================
   李玟仪 · 运营作品集
   Editorial / minimal / responsive
   ========================================================= */

:root {
  --paper: #f4f1e9;
  --paper-deep: #eae5da;
  --card: #fbfaf5;
  --ink: #12140f;
  --ink-soft: #24271f;
  --body: #42453b;
  --muted: #6c6f63;
  --line: rgba(18, 20, 15, 0.16);
  --line-soft: rgba(18, 20, 15, 0.09);
  --line-strong: rgba(18, 20, 15, 0.42);
  --lime: #c9f56d;
  --lime-deep: #b8e94e;
  --rust: #d65b31;
  --max: 1340px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", "Arial", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, p, dl, dd, figure, blockquote {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.mobile-br {
  display: none;
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.page-gutter {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 78px;
  background: rgba(244, 241, 233, 0.84);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s, border-color 0.25s;
}

.site-header.is-scrolled {
  background: rgba(244, 241, 233, 0.96);
  border-color: var(--line);
}

.header-inner {
  height: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  display: grid;
  place-items: center;
}

.brand-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

.brand-mark span {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201, 245, 109, 0.34);
  border-radius: 50%;
}

.brand-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--muted);
}

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

.desktop-nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 8px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-contact {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}

.header-contact span {
  margin-left: 5px;
}

.header-contact:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
}

.menu-toggle-label {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.menu-toggle-lines {
  width: 15px;
  display: grid;
  gap: 4px;
}

.menu-toggle-lines i {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  padding: 112px var(--gutter) 32px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: menu-in 0.35s var(--ease);
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.mobile-menu nav {
  border-top: 1px solid var(--ink);
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(26px, 8vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.mobile-menu nav a span {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.mobile-menu-foot {
  display: grid;
  gap: 4px;
  padding-top: 28px;
  font-size: 13px;
}

.mobile-menu-foot a {
  width: max-content;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.mobile-menu-foot p {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: 136px;
  padding-bottom: 32px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -14vw;
  right: -12vw;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 245, 109, 0.58) 0%, rgba(201, 245, 109, 0.2) 42%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 165px;
  width: 100%;
  height: 1px;
  background: var(--line-soft);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 96px);
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(28px, 4vw, 46px);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(201, 245, 109, 0.28);
}

.hero-eyebrow {
  margin-bottom: 16px;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-style: italic;
  font-size: clamp(14px, 1.35vw, 18px);
  letter-spacing: 0.005em;
  color: var(--body);
}

.hero-title {
  font-size: clamp(58px, 9.3vw, 137px);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: -0.075em;
  color: var(--ink);
}

.hero-title > span {
  display: block;
  white-space: nowrap;
}

.hero-title-sub {
  display: block;
  margin-top: 0.18em;
  font-size: 0.4em;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-title .mark {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero-title .mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.035em;
  right: -0.055em;
  bottom: 0.08em;
  height: 0.27em;
  background: var(--lime);
  transform: skewX(-7deg);
}

.hero-lede {
  max-width: 600px;
  margin-top: clamp(24px, 3.5vw, 38px);
  font-size: clamp(14px, 1.2vw, 16.5px);
  line-height: 1.9;
  color: var(--body);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: clamp(26px, 3.8vw, 40px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1;
  transition: background 0.28s, color 0.28s, border-color 0.28s;
}

.btn span {
  font-size: 13px;
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.btn-lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.btn-outline-light {
  border-color: rgba(244, 241, 233, 0.36);
  color: var(--paper);
}

.btn-outline-light:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: color 0.25s, border-color 0.25s;
}

.text-link:hover {
  color: var(--rust);
  border-color: var(--rust);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 410px);
  padding-top: 22px;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fbfaf5;
  border: 1px solid var(--ink);
  border-radius: 50% 50% 2px 2px / 36% 36% 2px 2px;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(18, 20, 15, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  mix-blend-mode: multiply;
  filter: saturate(0.88) contrast(1.02);
}

.portrait-stamp {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  place-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-align: center;
  transform: rotate(8deg);
}

.floating-card {
  position: absolute;
  z-index: 3;
  min-width: 148px;
  padding: 13px 17px 14px;
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.floating-card strong {
  display: block;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.floating-card strong span {
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 2px;
}

.floating-card small {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.floating-card-a {
  top: 2%;
  left: clamp(-58px, -4vw, -24px);
  background: var(--lime);
}

.floating-card-b {
  right: clamp(-58px, -4vw, -24px);
  bottom: 18%;
  background: var(--card);
}

.portrait-caption {
  position: absolute;
  left: 0;
  bottom: -48px;
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(72px, 9vw, 116px);
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.hero-note {
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-note-right {
  text-align: right;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.hero-scroll i {
  position: relative;
  width: 54px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: scroll-line 2.4s var(--ease) infinite;
}

@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 13px 0;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  font-size: 10px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  font-size: 8px;
  color: var(--lime);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- section primitives ---------- */

.section {
  position: relative;
  padding-block: clamp(88px, 10.5vw, 150px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ink);
}

.section-heading h2 {
  max-width: 900px;
  font-size: clamp(42px, 5.8vw, 82px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.section-intro {
  max-width: 450px;
  margin-top: 24px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--body);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 90px);
}

.section-heading-row .section-intro {
  flex: none;
  width: min(100%, 390px);
  margin-top: 0;
  padding-bottom: 5px;
}

/* ---------- about ---------- */

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  margin-top: clamp(48px, 6vw, 78px);
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.about-copy {
  max-width: 700px;
}

.about-copy p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--body);
}

.about-copy .about-lead {
  margin-bottom: 28px;
  font-size: clamp(20px, 2.25vw, 28px);
  line-height: 1.65;
  letter-spacing: -0.028em;
  color: var(--ink);
}

.about-signature {
  margin-top: 34px;
  padding-left: 20px;
  border-left: 2px solid var(--lime-deep);
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink) !important;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 30px;
}

.about-tags span {
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--body);
}

.facts {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
  box-shadow: 11px 11px 0 rgba(18, 20, 15, 0.055);
}

.facts-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.facts dl > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.55;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  text-align: right;
  color: var(--ink-soft);
}

.facts dd a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.facts dd a:hover {
  border-color: var(--ink);
}

.facts-foot {
  margin-top: 17px;
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

/* ---------- skills ---------- */

.skills {
  background: var(--paper-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(42px, 5vw, 64px);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.skill-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 22px 24px 24px;
  background: rgba(251, 250, 245, 0.7);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.skill-card:hover {
  background: var(--card);
}

.skill-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.skill-en {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0.02em;
}

.skill-card h3 {
  margin-top: 38px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.skill-card > p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.skill-card ul {
  margin-top: 28px;
}

.skill-card li {
  position: relative;
  padding-left: 13px;
  margin-bottom: 9px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--body);
}

.skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  background: var(--lime-deep);
}

.skill-proof {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.skill-proof strong {
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--ink);
}

.skill-proof span {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toolbox {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4vw, 60px);
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.toolbox-label {
  flex: none;
  padding-top: 5px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.toolbox-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.toolbox-items span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--body);
  background: rgba(251, 250, 245, 0.42);
}

/* ---------- works intro ---------- */

.works-intro {
  padding-top: clamp(80px, 9vw, 128px);
  padding-bottom: 34px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.case-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(38px, 5vw, 58px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  transition: background 0.25s, color 0.25s;
}

.case-nav a span {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.case-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

.case-nav a:hover span {
  color: var(--lime);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(34px, 4vw, 52px);
}

.project-tile {
  display: flex;
  flex-direction: column;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project-tile:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(18, 20, 15, 0.08);
}

.project-tile-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  background: var(--paper-deep);
}

.project-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project-tile:hover .project-tile-media img {
  transform: scale(1.04);
}

.project-tile-body {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  padding: 11px 3px 4px;
}

.project-tile-index {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.project-tile h3 {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.project-tile p {
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--muted);
}

.project-tile-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 10px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.project-tile:hover .project-tile-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- case shared ---------- */

.case {
  position: relative;
  padding-block: clamp(76px, 9vw, 124px);
  border-top: 1px solid var(--line);
  background: var(--card);
}

.case-brand {
  background: var(--paper);
}

.case-maihe {
  background: var(--card);
}

.case-yuanmei {
  background: var(--paper);
}

.case-head {
  max-width: 1120px;
}

.case-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  margin-bottom: clamp(34px, 4vw, 50px);
  border-bottom: 1px solid var(--ink);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.case-label {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--lime);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.case-kicker {
  text-align: right;
  text-transform: uppercase;
}

.case-head h2 {
  max-width: 1100px;
  font-size: clamp(40px, 5.7vw, 84px);
  line-height: 0.99;
  font-weight: 600;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 27px;
}

.case-meta span {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.case-lead {
  max-width: 720px;
  margin-top: 24px;
  font-size: clamp(14px, 1.3vw, 16.5px);
  line-height: 1.9;
  color: var(--body);
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.025em;
  transition: background 0.25s, color 0.25s;
}

.link-pill:hover {
  background: var(--ink);
  color: var(--paper);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.metric-row > div {
  padding: 20px 16px 22px;
  border-right: 1px solid var(--line);
}

.metric-row > div:last-child {
  border-right: 0;
}

.metric-row strong {
  display: block;
  font-size: clamp(27px, 2.8vw, 39px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.metric-row strong span {
  font-size: 14px;
  letter-spacing: 0;
  margin-left: 1px;
}

.metric-row small {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.metric-row-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-block {
  margin-top: clamp(64px, 8vw, 104px);
}

.block-label {
  margin-bottom: 15px;
  font-size: 9px;
  letter-spacing: 0.17em;
  color: var(--muted);
}

.case-block h3,
.category-head h3,
.process-head h3 {
  font-size: clamp(29px, 3.7vw, 50px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.case-block > p,
.block-copy > p {
  max-width: 620px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--body);
}

.media-figure {
  position: relative;
  padding: 7px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.media-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}

.media-button img {
  width: 100%;
  height: auto;
  transition: transform 0.65s var(--ease);
}

.media-button:hover img {
  transform: scale(1.025);
}

.media-figure figcaption {
  padding: 9px 2px 2px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--muted);
}

.media-figure figcaption span {
  margin-right: 5px;
  color: var(--ink);
  font-weight: 600;
}

.mini-metrics {
  display: flex;
  flex-wrap: wrap;
  margin: 24px 0 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mini-metrics > div {
  padding: 10px 18px;
  border-right: 1px solid var(--line);
}

.mini-metrics > div:first-child {
  padding-left: 0;
}

.mini-metrics > div:last-child {
  border-right: 0;
}

.mini-metrics strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.mini-metrics span {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.03em;
  transition: color 0.25s, border-color 0.25s;
}

.link-arrow:hover {
  color: var(--rust);
  border-color: var(--rust);
}

/* ---------- case 01 ---------- */

.cold-start {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: clamp(48px, 8vw, 118px);
}

.phone-figure {
  justify-self: end;
  width: min(100%, 330px);
}

.hit-content .block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(36px, 6vw, 90px);
  margin-bottom: 32px;
}

.hit-content .block-head > p {
  width: min(100%, 420px);
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--body);
}

.visual-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.visual-row figure:nth-child(2) {
  margin-top: 50px;
}

.visual-row figure:nth-child(3) {
  margin-top: 22px;
}

.formula {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(9px, 1.9vw, 26px);
  margin-top: 44px;
  padding: 24px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(15px, 1.65vw, 22px);
  letter-spacing: -0.02em;
}

.formula i {
  font-style: normal;
  font-size: 13px;
  color: var(--lime);
}

.formula strong {
  padding: 3px 15px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: clamp(17px, 1.9vw, 25px);
  font-weight: 600;
}

.formula-note {
  margin-top: 11px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1px;
  margin-top: clamp(64px, 8vw, 104px);
  background: var(--line);
  border: 1px solid var(--line);
}

.split-grid .case-block {
  margin: 0;
  padding: 28px;
  background: var(--card);
}

.community-visuals {
  display: grid;
  grid-template-columns: 0.9fr 0.7fr;
  align-items: start;
  gap: 12px;
  margin-top: 26px;
}

.community-visuals .media-figure:nth-child(2) {
  margin-top: 38px;
}

.community-visuals .media-figure {
  max-width: 230px;
}

.sop-list {
  margin-top: 23px;
}

.sop-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.sop-list li > span {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 3px;
}

.sop-list strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.sop-list p {
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--muted);
}

.sop-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 20px;
}

.sop-images .media-figure {
  padding: 4px;
}

.sop-images .media-button img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
}

/* ---------- case 02 ---------- */

.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.brand-chips span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.doudou {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: clamp(42px, 7vw, 96px);
}

.doudou-copy h3 {
  margin-bottom: 0;
}

.doudou-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 7px;
}

.doudou-gallery .media-figure:nth-child(1) {
  margin-top: 45px;
}

.doudou-gallery .media-figure:nth-child(3) {
  margin-top: 80px;
}

.doudou-gallery figcaption {
  font-size: 8px;
}

.case-inline-note {
  margin: -2px 0 20px;
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
}

.case-inline-note strong {
  color: var(--ink);
  font-weight: 600;
}

.note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.note-links a {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9.5px;
  transition: background 0.25s, color 0.25s;
}

.note-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  margin-top: clamp(64px, 8vw, 104px);
  background: var(--ink);
  color: var(--paper);
}

.process-head {
  padding: 28px;
  border-right: 1px solid rgba(244, 241, 233, 0.16);
}

.process-head .block-label {
  color: #9fa393;
}

.process-head h3 {
  font-size: 30px;
  color: var(--paper);
}

.process-head > p:last-child {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #aeb1a4;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-list li {
  padding: 26px 18px;
  border-right: 1px solid rgba(244, 241, 233, 0.16);
}

.process-list li:last-child {
  border-right: 0;
}

.process-list span {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.process-list strong {
  display: block;
  margin: 13px 0 8px;
  font-size: 12.5px;
  font-weight: 500;
}

.process-list p {
  font-size: 10px;
  line-height: 1.75;
  color: #aeb1a4;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(60px, 7vw, 88px);
}

.brand-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
}

.brand-card-head h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.brand-card > p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--body);
}

.brand-card-gallery {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr;
  align-items: start;
  gap: 7px;
  margin: 22px 0;
}

.brand-card-gallery .media-figure:nth-child(2) {
  margin-top: 35px;
}

.brand-card-gallery-single {
  display: block;
  max-width: 300px;
}

.brand-card-gallery-single figcaption {
  display: none;
}

.brand-stats {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}

.brand-stats strong {
  margin-right: 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.card-note {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}

.case-pullquote {
  margin-top: clamp(60px, 8vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: clamp(22px, 3.1vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.035em;
  text-align: center;
}

/* ---------- case 03 ---------- */

.category-section,
.roi-section,
.system-section,
.direct-section,
.ad-section,
.ops-section {
  margin-top: clamp(64px, 8vw, 104px);
}

.category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(36px, 6vw, 86px);
  margin-bottom: 30px;
}

.category-head > p {
  width: min(100%, 410px);
  margin-bottom: 3px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--body);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--card);
  border-radius: 5px;
}

.category-media .media-button {
  background: var(--paper-deep);
}

.category-media img {
  width: 100%;
  aspect-ratio: 3.1 / 1;
  object-fit: cover;
  object-position: center;
}

.category-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 4px 4px;
}

.category-copy h4 {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.category-copy p {
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted);
}

.category-links {
  display: flex;
  flex: none;
  gap: 4px;
  padding-top: 2px;
}

.category-links a {
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  transition: background 0.25s, color 0.25s;
}

.category-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

.roi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.roi-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
  overflow: hidden;
}

.roi-media .media-button {
  height: 100%;
  background: var(--paper-deep);
}

.roi-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.roi-copy {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border-left: 1px solid var(--line);
}

.roi-label {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.roi-copy h4 {
  margin: 6px 0 15px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.roi-stats {
  border-top: 1px solid var(--line);
}

.roi-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.roi-stats dt {
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.roi-stats dd {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.roi-copy .link-arrow {
  margin-top: auto;
  padding-top: 14px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.system-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
}

.system-card .media-figure {
  padding: 0;
  border: 0;
}

.system-card .media-button img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.system-card > div:last-child {
  padding: 13px 4px 5px;
}

.system-card span {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.system-card h4 {
  margin: 6px 0;
  font-size: 14.5px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.system-card p {
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--muted);
}

.case-endnote {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}

.case-endnote strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- case 04 ---------- */

.direct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.direct-card {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
}

.direct-card .media-figure {
  padding: 0;
  border: 0;
}

.direct-card .media-button img {
  aspect-ratio: 1.45;
  object-fit: cover;
  object-position: top;
}

.direct-copy {
  padding: 15px 5px 6px;
}

.direct-copy > span {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.direct-copy h4 {
  margin: 5px 0 7px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.direct-copy p {
  max-width: 430px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}

.direct-copy .link-arrow {
  margin-top: 13px;
}

.ad-grid {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.6fr;
  align-items: stretch;
  gap: 14px;
}

.ad-grid .media-figure {
  display: flex;
  flex-direction: column;
}

.ad-grid .media-figure .media-button {
  flex: 1;
}

.ad-grid .media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  background: var(--ink);
  color: var(--paper);
}

.ad-number {
  font-size: clamp(48px, 5vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.065em;
  color: var(--lime);
  font-weight: 600;
}

.ad-number small {
  margin-left: 5px;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--paper);
  font-weight: 400;
}

.ad-copy > p:not(.ad-number) {
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.8;
  color: #c2c5b8;
}

.ad-copy ul {
  margin-top: 21px;
}

.ad-copy li {
  padding: 8px 0;
  border-top: 1px solid rgba(244, 241, 233, 0.17);
  font-size: 10px;
  color: #c2c5b8;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ops-card {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--card);
}

.ops-card .media-figure {
  padding: 0;
  border: 0;
}

.ops-card .media-button img {
  aspect-ratio: 1.24;
  object-fit: cover;
  object-position: top;
}

.ops-card h4 {
  margin: 13px 4px 5px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.ops-card p {
  margin: 0 4px 6px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- experience ---------- */

.experience {
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.experience-projects {
  background: var(--paper-deep);
}

.timeline {
  margin-top: clamp(42px, 5vw, 64px);
  border-top: 1px solid var(--ink);
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  padding-top: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.timeline-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 11px;
}

.timeline-title h3 {
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.timeline-title span {
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9px;
  color: var(--muted);
}

.timeline-main ul {
  margin-top: 13px;
}

.timeline-main li {
  position: relative;
  max-width: 760px;
  padding-left: 13px;
  margin-bottom: 6px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--body);
}

.timeline-main li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 4px;
  height: 4px;
  background: var(--lime-deep);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.timeline-tags span {
  padding: 4px 8px;
  background: var(--paper-deep);
  font-size: 8.5px;
  color: var(--muted);
}

.timeline-education {
  background: rgba(201, 245, 109, 0.14);
  margin-inline: calc(var(--gutter) * -0.5);
  padding-inline: calc(var(--gutter) * 0.5);
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  padding-top: clamp(84px, 10vw, 140px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: -18vw;
  right: -12vw;
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 245, 109, 0.17) 0%, transparent 67%);
  pointer-events: none;
}

.contact .section-label {
  color: #9da190;
}

.contact .section-label::before {
  background: var(--lime);
}

.contact-head {
  position: relative;
  z-index: 1;
}

.contact-head h2 {
  margin-top: 16px;
  font-size: clamp(54px, 8vw, 118px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.contact-head > p:last-child {
  max-width: 520px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.85;
  color: #b6b9ad;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: clamp(44px, 7vw, 100px);
  margin-top: clamp(48px, 6vw, 72px);
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 241, 233, 0.34);
  color: var(--lime);
  font-size: clamp(25px, 3.5vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.045em;
  word-break: break-all;
  transition: color 0.25s, border-color 0.25s;
}

.contact-email:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.contact-email span {
  font-size: 0.58em;
}

.contact-phone {
  display: block;
  width: max-content;
  margin-top: 16px;
  font-size: clamp(19px, 1.8vw, 25px);
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.contact-phone:hover {
  border-color: var(--paper);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.contact-note {
  margin-top: 20px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #898d80;
}

.social-cards {
  display: grid;
  gap: 10px;
}

.social-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid rgba(244, 241, 233, 0.18);
  background: rgba(244, 241, 233, 0.04);
  transition: background 0.3s, border-color 0.3s;
}

.social-card:hover {
  background: rgba(201, 245, 109, 0.09);
  border-color: rgba(201, 245, 109, 0.54);
}

.social-card img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  background: #fff;
  padding: 3px;
}

.social-card div > span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.13em;
  color: var(--lime);
}

.social-card strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.social-card p {
  margin-top: 3px;
  font-size: 9.5px;
  color: #b6b9ad;
}

.social-card em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 8.5px;
  color: #82867a;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(64px, 8vw, 100px);
  padding: 20px 0 24px;
  border-top: 1px solid rgba(244, 241, 233, 0.18);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #83877a;
}

.footer a {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.footer a:hover {
  border-color: var(--lime);
}

/* ---------- back to top ---------- */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 233, 0.3);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.25s, color 0.25s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  background: var(--lime);
  color: var(--ink);
}

/* ---------- lightbox ---------- */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(9, 11, 7, 0.97);
  color: var(--paper);
}

.lightbox::backdrop {
  background: rgba(9, 11, 7, 0.9);
  backdrop-filter: blur(6px);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #b7baad;
}

.lightbox-close {
  min-height: 44px;
  padding: 10px 0 10px 16px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.lightbox-close span {
  margin-left: 7px;
  color: var(--lime);
}

.lightbox-stage {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 0 14px 24px;
}

.lightbox-stage figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  max-height: calc(100dvh - 88px);
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(244, 241, 233, 0.22);
}

.lightbox-stage figcaption {
  max-width: 720px;
  font-size: 10.5px;
  line-height: 1.6;
  color: #b7baad;
  text-align: center;
}

.lightbox-prev,
.lightbox-next {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 241, 233, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .hero-title {
    font-size: clamp(58px, 8.9vw, 112px);
  }

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

  .skill-card {
    min-height: 380px;
  }

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

  .case-head h2 {
    font-size: clamp(40px, 5.5vw, 72px);
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .hero-title {
    font-size: clamp(56px, 12.5vw, 104px);
  }

  .hero-visual {
    justify-self: start;
    width: min(78%, 390px);
    margin-left: 4px;
  }

  .hero-bottom {
    margin-top: 70px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .facts {
    width: min(100%, 560px);
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row .section-intro {
    width: min(100%, 500px);
    margin-top: 22px;
  }

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

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

  .cold-start,
  .doudou {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .phone-figure {
    justify-self: start;
    width: min(100%, 320px);
  }

  .hit-content .block-head {
    display: block;
  }

  .hit-content .block-head > p {
    margin-top: 18px;
  }

  .visual-row {
    gap: 12px;
  }

  .split-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-head {
    border-right: 0;
    border-bottom: 1px solid rgba(244, 241, 233, 0.16);
  }

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

  .process-list li:nth-child(2) {
    border-right: 0;
  }

  .process-list li:nth-child(-n+2) {
    border-bottom: 1px solid rgba(244, 241, 233, 0.16);
  }

  .brand-grid,
  .roi-grid,
  .direct-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-head {
    display: block;
  }

  .category-head > p {
    margin-top: 18px;
  }

  .category-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .ad-copy {
    grid-column: 1 / -1;
  }

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

  .ops-card:last-child {
    grid-column: 1 / -1;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 18px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    height: 66px;
  }

  .brand-text {
    font-size: 14px;
  }

  .hero {
    padding-top: 102px;
  }

  .hero-kicker {
    margin-bottom: 30px;
    font-size: 8.5px;
  }

  .hero-eyebrow {
    font-size: 13px;
  }

  .hero-title {
    font-size: clamp(47px, 13.6vw, 72px);
    line-height: 1;
    letter-spacing: -0.07em;
  }

  .hero-title-sub {
    margin-top: 0.2em;
    font-size: 0.43em;
  }

  .hero-lede {
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 16px;
  }

  .btn {
    min-height: 45px;
    padding: 12px 18px;
    font-size: 11px;
  }

  .hero-visual {
    width: min(82%, 320px);
  }

  .floating-card {
    min-width: 124px;
    padding: 10px 13px 12px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .floating-card strong {
    font-size: 25px;
  }

  .floating-card small {
    font-size: 8px;
  }

  .floating-card-a {
    left: -18px;
  }

  .floating-card-b {
    right: -16px;
  }

  .portrait-stamp {
    right: 12px;
    bottom: 14px;
    width: 60px;
    height: 60px;
    font-size: 6.5px;
  }

  .portrait-caption {
    position: static;
    margin-top: 22px;
  }

  .hero-bottom {
    align-items: flex-start;
    margin-top: 56px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-note {
    font-size: 8px;
  }

  .marquee-track {
    gap: 21px;
    padding: 11px 0;
  }

  .marquee-track span {
    font-size: 9px;
  }

  .section {
    padding-block: 76px;
  }

  .section-label {
    margin-bottom: 18px;
    font-size: 8.5px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 10vw, 50px);
    letter-spacing: -0.06em;
  }

  .section-intro {
    font-size: 13px;
    line-height: 1.8;
  }

  .about-grid {
    margin-top: 36px;
    padding-top: 26px;
  }

  .about-copy .about-lead {
    font-size: 20px;
  }

  .about-copy p {
    font-size: 14px;
  }

  .facts {
    padding: 18px;
    box-shadow: 6px 6px 0 rgba(18, 20, 15, 0.06);
  }

  .facts dl > div {
    grid-template-columns: 72px minmax(0, 1fr);
    font-size: 11.5px;
  }

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

  .skill-card {
    min-height: 0;
    padding: 20px;
  }

  .skill-card h3 {
    margin-top: 28px;
  }

  .skill-proof {
    margin-top: 28px !important;
  }

  .toolbox {
    display: block;
  }

  .toolbox-items {
    margin-top: 12px;
  }

  .works-intro {
    padding-top: 68px;
    padding-bottom: 24px;
  }

  .case-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
  }

  .project-grid {
    gap: 8px;
    margin-top: 30px;
  }

  .project-tile {
    padding: 5px;
  }

  .project-tile-body {
    grid-template-columns: 18px minmax(0, 1fr) 22px;
    gap: 6px;
    padding: 9px 2px 3px;
  }

  .project-tile h3 {
    font-size: 14px;
  }

  .project-tile p {
    font-size: 8.5px;
  }

  .project-tile-arrow {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }

  .case-nav a {
    padding: 13px 11px;
    font-size: 11px;
  }

  .case {
    padding-block: 72px;
  }

  .case-top {
    display: block;
    margin-bottom: 28px;
    font-size: 8px;
  }

  .case-kicker {
    margin-top: 8px;
    text-align: left;
  }

  .case-head h2 {
    font-size: clamp(34px, 9.8vw, 50px);
    line-height: 1.01;
  }

  #case-yuanmei .case-head h2 {
    font-size: clamp(31px, 8.5vw, 44px);
  }

  .case-meta {
    margin-top: 20px;
  }

  .case-lead {
    margin-top: 18px;
    font-size: 13.5px;
    line-height: 1.85;
  }

  .case-links {
    margin-top: 20px;
  }

  .link-pill {
    padding: 7px 11px;
    font-size: 9.5px;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
  }

  .metric-row > div {
    padding: 15px 12px 17px;
    border-bottom: 1px solid var(--line);
  }

  .metric-row > div:nth-child(2n) {
    border-right: 0;
  }

  .metric-row > div:last-child {
    border-bottom: 0;
  }

  .metric-row > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .metric-row strong {
    font-size: 26px;
  }

  .metric-row small {
    font-size: 8px;
  }

  .metric-row-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-br {
    display: inline;
  }

  .case-block {
    margin-top: 60px;
  }

  .case-block h3,
  .category-head h3,
  .process-head h3 {
    font-size: clamp(26px, 7.8vw, 34px);
  }

  .case-block > p,
  .block-copy > p {
    font-size: 13px;
    line-height: 1.85;
  }

  .cold-start {
    gap: 28px;
  }

  .mini-metrics > div {
    padding: 9px 12px;
  }

  .mini-metrics strong {
    font-size: 17px;
  }

  .visual-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .visual-row figure:nth-child(2),
  .visual-row figure:nth-child(3) {
    margin-top: 0;
  }

  .visual-row .media-figure {
    width: min(100%, 370px);
  }

  .formula {
    gap: 7px;
    padding: 18px 12px;
    font-size: 13px;
  }

  .formula i {
    font-size: 10px;
  }

  .formula strong {
    padding: 2px 10px;
    font-size: 15px;
  }

  .formula-note {
    font-size: 9px;
  }

  .split-grid .case-block {
    padding: 20px;
  }

  .community-visuals {
    gap: 8px;
  }

  .community-visuals .media-figure {
    max-width: none;
  }

  .sop-images {
    gap: 4px;
  }

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

  .process-list li {
    border-right: 1px solid rgba(244, 241, 233, 0.16);
    border-bottom: 1px solid rgba(244, 241, 233, 0.16);
  }

  .process-list li:nth-child(2n) {
    border-right: 0;
  }

  .process-list li:nth-child(n+3) {
    border-bottom: 0;
  }

  .brand-grid {
    gap: 12px;
  }

  .brand-card {
    padding: 18px;
  }

  .brand-card-gallery {
    gap: 5px;
  }

  .case-pullquote {
    font-size: 23px;
  }

  .category-grid {
    border: 0;
    background: transparent;
    gap: 10px;
  }

  .category-card {
    border: 1px solid var(--line);
  }

  .category-copy {
    display: block;
  }

  .category-links {
    margin-top: 10px;
  }

  .category-links a {
    padding: 5px 8px;
  }

  .roi-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .roi-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .roi-media img {
    aspect-ratio: 1.5;
  }

  .roi-copy .link-arrow {
    margin-top: 16px;
  }

  .system-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .system-card .media-button img {
    aspect-ratio: 2.1 / 1;
  }

  .case-endnote {
    display: block;
  }

  .case-endnote p + p {
    margin-top: 7px;
  }

  .direct-grid {
    gap: 12px;
  }

  .ad-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-copy {
    grid-column: auto;
  }

  .ad-grid .media-figure img {
    aspect-ratio: 1.3;
  }

  .ops-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .ops-card:last-child {
    grid-column: auto;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 24px 0;
  }

  .timeline-date {
    padding-top: 0;
  }

  .timeline-main li {
    font-size: 12px;
  }

  .timeline-education {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .contact {
    padding-top: 76px;
  }

  .contact-head h2 {
    font-size: clamp(42px, 11.8vw, 64px);
  }

  .contact-grid {
    margin-top: 42px;
  }

  .contact-email {
    font-size: clamp(22px, 6.6vw, 32px);
    word-break: break-word;
  }

  .contact-phone {
    font-size: 20px;
  }

  .social-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .social-card img {
    width: 76px;
    height: 76px;
  }

  .footer {
    display: grid;
    gap: 7px;
    margin-top: 54px;
  }

  .lightbox-top {
    padding: 14px 16px;
  }

  .lightbox-stage {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 3px;
    padding: 0 8px 14px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .lightbox-stage img {
    max-height: calc(100dvh - 130px);
  }

  .lightbox-stage figcaption {
    font-size: 9.5px;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: 47px;
  }

  .hero-visual {
    width: 88%;
  }

  .floating-card-a {
    left: -12px;
  }

  .floating-card-b {
    right: -10px;
  }

  .metric-row strong {
    font-size: 23px;
  }

  .contact-email {
    font-size: 21px;
  }
}

/* ---------- motion / print ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}

@media print {
  .site-header,
  .mobile-menu,
  .back-to-top,
  .lightbox,
  .marquee,
  .hero-actions,
  .case-nav,
  .case-links {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    padding-top: 20px;
  }

  .section,
  .case {
    padding-block: 20px;
    break-inside: avoid;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
