/* ─────────────────────────────────────────────────────────────────
   Sober阿铭 · 个人主页
   编辑/学者 + 精密工业 + 一抹墨色
   ───────────────────────────────────────────────────────────────── */

:root, [data-theme="warm"] {
  --bg: #f7f3eb;
  --bg-sunk: #efe9dd;
  --bg-card: #fbf8f1;
  --ink: #1a1814;
  --ink-2: #3a352e;
  --mute: #8a8478;
  --mute-2: #b3ac9e;
  --rule: #d9d2c2;
  --rule-soft: #e8e1d1;
  --accent: #a8431f;
  --accent-soft: rgba(168, 67, 31, 0.10);
  --grain: rgba(26, 24, 20, 0.025);
}

[data-theme="night"] {
  --bg: #0f0f10;
  --bg-sunk: #18181a;
  --bg-card: #18181a;
  --ink: #e8e6e1;
  --ink-2: #c8c5be;
  --mute: #8c8a83;
  --mute-2: #5a5853;
  --rule: #2a2a2d;
  --rule-soft: #1f1f22;
  --accent: #d4a574;
  --accent-soft: rgba(212, 165, 116, 0.10);
  --grain: rgba(232, 230, 225, 0.020);
}

[data-theme="vermilion"] {
  --bg: #fafaf7;
  --bg-sunk: #f1f0eb;
  --bg-card: #ffffff;
  --ink: #1c1c1c;
  --ink-2: #36363a;
  --mute: #5a6670;
  --mute-2: #98a0a9;
  --rule: #d7d8d3;
  --rule-soft: #e7e7e2;
  --accent: #c8462c;
  --accent-soft: rgba(200, 70, 44, 0.10);
  --grain: rgba(28, 28, 28, 0.022);
}

/* Type */
:root {
  --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STZhongsong", serif;
  --sans:  "Source Han Sans SC", "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Cormorant Garamond", "Source Han Serif SC", "Noto Serif SC", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "palt";
  letter-spacing: 0.005em;
  background-image:
    radial-gradient(circle at 1px 1px, var(--grain) 1px, transparent 0);
  background-size: 3px 3px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Selection */
::selection { background: var(--accent); color: var(--bg); }

/* Container */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 920px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
}

/* Headings */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.display { font-family: var(--display); font-weight: 500; }

/* Section header pattern */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; padding: 0 0 32px; border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}
.sec-head .sec-tag {
  font-family: var(--display); font-style: italic; font-size: 18px;
  color: var(--accent); letter-spacing: 0.04em;
}
.sec-head .sec-tag::before { content: "§ "; opacity: 0.6; }
.sec-head h2 {
  font-size: clamp(36px, 4.2vw, 56px); line-height: 1.05;
  flex: 1; max-width: 720px;
}
.sec-head .sec-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mute);
}

/* Section spacing */
section.sec { padding: 120px 0; border-bottom: 1px solid var(--rule); }
section.sec:last-of-type { border-bottom: 0; }
@media (max-width: 720px) {
  section.sec { padding: 80px 0; }
  .sec-head { flex-direction: column; gap: 12px; padding-bottom: 24px; margin-bottom: 36px; }
  .sec-head h2 { font-size: 34px; }
}

/* Fade-in observer state */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ────── NAV ────── */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; align-items: center; gap: 4px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  border: 0.5px solid var(--rule);
  box-shadow: 0 8px 30px -16px rgba(0,0,0,0.18);
  transition: top .3s ease;
}
.nav .brand {
  font-family: var(--serif); font-weight: 600; font-size: 15px;
  padding-right: 12px; border-right: 1px solid var(--rule);
  margin-right: 4px; display: flex; align-items: center; gap: 8px;
}
.nav .brand .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  display: inline-block;
}
.nav a.link {
  font-size: 13px; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); transition: all .2s;
  font-feature-settings: "kern";
  white-space: nowrap;
}
.nav .brand { white-space: nowrap; }
.nav a.link:hover { background: var(--accent-soft); color: var(--accent); }
.nav a.link.active { color: var(--accent); }
.nav .cta {
  background: var(--ink); color: var(--bg);
  padding: 9px 16px; border-radius: 999px; font-size: 13px;
  border: 0; font-weight: 500; margin-left: 6px;
}
.nav .cta:hover { background: var(--accent); color: var(--bg); }
@media (max-width: 820px) {
  .nav { top: 12px; padding: 6px 6px 6px 14px; }
  .nav .brand { font-size: 13px; padding-right: 8px; }
  .nav a.link { display: none; }
  .nav .cta { padding: 8px 14px; font-size: 12px; }
}

/* ────── HERO ────── */
.hero { position: relative; padding: 200px 0 60px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
  align-items: end;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  width: fit-content;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 36px;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}
.hero-eyebrow:hover {
  color: var(--accent);
  transform: translateX(4px);
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  position: relative;
  flex: 0 0 auto;
}
.hero-eyebrow .pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--accent); animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(48px, 7vw, 96px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 32px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal; color: var(--accent);
  font-family: var(--display); font-weight: 500;
}
.hero-sub {
  font-size: 17px; color: var(--ink-2); max-width: 540px;
  line-height: 1.7; margin: 0 0 40px;
}
.hero-sub .role {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border: 0.5px solid var(--rule);
  border-radius: 4px; font-size: 13px; color: var(--ink-2);
  margin-right: 8px; background: var(--bg-card);
}
.hero-sub .role::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin: 0 0 48px; max-width: 600px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero-stat {
  padding: 22px 24px 22px 0;
  border-right: 1px solid var(--rule);
}
.hero-stat:last-child { border-right: 0; padding-right: 0; }
.hero-stat .num {
  font-family: var(--display); font-weight: 500;
  font-size: 38px; line-height: 1; color: var(--ink);
  display: flex; align-items: baseline; gap: 4px;
  font-feature-settings: "lnum", "tnum";
}
.hero-stat .num .unit {
  font-family: var(--serif); font-size: 18px; color: var(--accent);
  font-weight: 500;
}
.hero-stat .lbl {
  font-size: 12px; color: var(--mute); margin-top: 8px;
  letter-spacing: 0.02em;
}

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 4px; font-size: 14px;
  font-weight: 500; border: 0; transition: all .2s ease;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-card); }
.btn .arr { font-family: var(--mono); transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }

/* Hero portrait */
.hero-portrait {
  position: relative; aspect-ratio: 4/5;
  border-radius: 2px; overflow: hidden;
  background: var(--bg-card); border: 0.5px solid var(--rule);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.3);
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.04) saturate(0.9);
  transition: transform .8s ease;
}
.hero-portrait:hover img { transform: scale(1.02); }
.hero-portrait .caption {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  color: white; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-portrait .caption .corner { display: flex; gap: 6px; }
.hero-portrait .caption .corner i {
  width: 8px; height: 8px; border: 1px solid currentColor; display: block;
}
.hero-portrait .frame-marks { position: absolute; inset: 8px; pointer-events: none; }
.hero-portrait .frame-marks::before,
.hero-portrait .frame-marks::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 1px solid rgba(255,255,255,0.7);
}
.hero-portrait .frame-marks::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hero-portrait .frame-marks::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* Scroll hint */
.scroll-hint {
  position: absolute; left: 40px; bottom: 36px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--mute); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .line {
  width: 1px; height: 40px; background: var(--rule);
  position: relative; overflow: hidden;
}
.scroll-hint .line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%;
  height: 30%; background: var(--ink);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}

/* ────── HOME 预览墙 ────── */
.preview-wall { padding: 100px 0 120px; background: var(--bg-sunk); border-top: 1px solid var(--rule); }
.pw-header {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 12px;
}
.pw-title {
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15; margin-bottom: 56px; max-width: 720px;
}

/* Latest essays + Now grid */
.pw-row {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px;
  padding-bottom: 80px; margin-bottom: 80px;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 880px) { .pw-row { grid-template-columns: 1fr; gap: 36px; } }
.pw-row h3 { font-size: 20px; margin-bottom: 24px; font-weight: 600; }
.pw-row h3 .pin {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  font-weight: normal; margin-left: 8px;
}

.essay-mini {
  padding: 22px 0; border-bottom: 1px solid var(--rule-soft);
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px;
  align-items: baseline; cursor: pointer; transition: all .25s;
}
.essay-mini:hover { padding-left: 8px; }
.essay-mini:last-child { border-bottom: 0; }
.essay-mini .num {
  font-family: var(--mono); font-size: 12px; color: var(--mute);
  letter-spacing: 0.06em;
}
.essay-mini .meta {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  white-space: nowrap;
}
.essay-mini .ttl { font-family: var(--serif); font-size: 19px; line-height: 1.4; color: var(--ink); }
.essay-mini .ttl .tag {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  color: var(--accent); border: 0.5px solid var(--accent);
  padding: 1px 5px; margin-right: 8px; border-radius: 2px;
  vertical-align: middle; letter-spacing: 0.04em;
}

/* Now (working on) */
.now-list { display: flex; flex-direction: column; gap: 18px; }
.now-item {
  padding: 18px; background: var(--bg-card);
  border: 0.5px solid var(--rule); border-radius: 4px;
  position: relative;
}
.now-item .status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  color: var(--accent); margin-bottom: 8px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.now-item .status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.now-item .ttl { font-family: var(--serif); font-size: 17px; line-height: 1.35; margin-bottom: 6px; }
.now-item .desc { font-size: 13px; color: var(--mute); line-height: 1.6; }

/* Service cards row */
.svc-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 80px;
}
@media (max-width: 960px) { .svc-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .svc-strip { grid-template-columns: 1fr; } }
.svc-card {
  padding: 26px 22px; background: var(--bg-card);
  border: 0.5px solid var(--rule); border-radius: 4px;
  position: relative; cursor: pointer; transition: all .3s;
  overflow: hidden;
}
.svc-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -25px rgba(0,0,0,0.2);
}
.svc-card .num {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.1em; margin-bottom: 18px;
}
.svc-card .ttl { font-family: var(--serif); font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.svc-card .price {
  font-family: var(--display); font-size: 22px; color: var(--accent);
  font-weight: 500; margin-bottom: 14px;
}
.svc-card .desc { font-size: 12.5px; color: var(--mute); line-height: 1.6; }
.svc-card .arr {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--mono); color: var(--mute);
  transition: all .25s;
}
.svc-card:hover .arr { color: var(--accent); transform: translate(3px, -3px); }

/* Client logo strip */
.client-strip {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px 36px;
  padding: 32px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.client-strip .lbl {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding-right: 24px; border-right: 1px solid var(--rule);
}
.client-strip .item {
  font-family: var(--serif); font-size: 15px; color: var(--ink-2);
  font-style: italic;
}
.client-strip .item .dot { display: inline-block; width: 4px; height: 4px; background: var(--mute-2); border-radius: 50%; margin: 0 4px 2px 0; vertical-align: middle; }

/* ────── ABOUT ────── */
.about-intro {
  font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.3; max-width: 880px; margin-bottom: 80px;
  font-weight: 500; letter-spacing: -0.005em;
  text-wrap: balance;
}
.about-intro em {
  font-style: normal; color: var(--accent);
  font-family: var(--display);
}
.about-intro .drop {
  float: left; font-family: var(--display); font-size: 4.5em;
  line-height: 0.9; padding: 6px 14px 0 0; color: var(--accent);
  font-weight: 500;
}

.about-profile {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 270px;
  gap: 36px;
  align-items: start;
  padding: 44px 0 58px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 74px;
}
.about-aside {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}
.about-aside span {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(168, 67, 31, .34);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  background: rgba(255, 253, 247, .48);
}
.about-copy {
  max-width: 850px;
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.62;
  color: var(--ink);
  letter-spacing: 0;
}
.about-copy p {
  margin: 0 0 18px;
}
.about-copy em {
  font-style: normal;
  color: var(--accent);
  font-family: var(--display);
}
.about-copy .about-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  font-size: .78em;
  color: var(--mute);
}
.about-facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.about-facts div {
  padding: 17px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.about-facts div:last-child {
  border-bottom: 0;
}
.about-facts b {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  font-weight: 500;
}
.about-facts span {
  display: block;
  margin-top: 8px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.5;
}

/* Timeline */
.tl-wrap {
  margin: 80px 0; position: relative;
}
.tl-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
}
.tl-head h3 { font-family: var(--serif); font-size: 22px; }
.tl-head .hint {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tl-rail {
  position: relative;
  overflow: visible;
  padding-bottom: 0;
}
.tl-track {
  display: grid;
  gap: 18px;
  position: relative;
  padding: 8px 0 8px 36px;
  max-width: 940px;
}
.tl-track::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}
.tl-node {
  width: auto;
  padding: 24px 28px;
  position: relative;
  cursor: pointer;
  transition: background .25s, border-color .25s;
  border: 1px solid var(--rule-soft);
  background: rgba(251, 248, 241, .58);
  border-radius: 8px;
}
.tl-node::before {
  content: ""; position: absolute; left: -35px; top: 30px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--mute);
  transition: all .25s;
}
.tl-node.open,
.tl-node:hover {
  border-color: rgba(168,67,31,.28);
  background: var(--bg-card);
}
.tl-node.open::before { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }
.tl-node .year {
  font-family: var(--display); font-size: 34px; font-weight: 500;
  color: var(--ink); margin-bottom: 6px; line-height: 1;
}
.tl-node .stage {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}
.tl-node .summary {
  margin-top: 0;
  font-family: var(--serif); font-size: 17px; line-height: 1.4;
  color: var(--ink-2);
}
.tl-node-detail {
  margin-top: 16px;
  max-height: 0; overflow: hidden;
  transition: max-height .5s ease, opacity .3s;
  opacity: 0;
}
.tl-node.open .tl-node-detail { max-height: 600px; opacity: 1; }
.tl-node-detail .row {
  padding: 12px 0; border-top: 1px solid var(--rule-soft);
  font-size: 13px; line-height: 1.6;
}
.tl-node-detail .row .lbl {
  font-family: var(--mono); font-size: 10px; color: var(--mute);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.tl-node-detail .row .then {
  display: inline-block; padding: 1px 6px; font-family: var(--mono); font-size: 10px;
  background: var(--rule-soft); color: var(--mute); margin-right: 6px; border-radius: 2px;
}
.tl-node-detail .row .now-tag {
  display: inline-block; padding: 1px 6px; font-family: var(--mono); font-size: 10px;
  background: var(--accent); color: var(--bg); margin-right: 6px; border-radius: 2px;
}

/* Values list */
.values { margin-top: 100px; }
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) { .values-grid { grid-template-columns: 1fr; } }
.value-row {
  padding: 28px 30px 28px 0; border-bottom: 1px solid var(--rule-soft);
  cursor: pointer; transition: background .25s;
  display: grid; grid-template-columns: 60px 1fr; gap: 18px;
  align-items: start;
}
.value-row:nth-child(2n) { padding-left: 30px; padding-right: 0; border-left: 1px solid var(--rule-soft); }
@media (max-width: 720px) {
  .value-row:nth-child(2n) { padding-left: 0; border-left: 0; }
}
.value-row:hover { background: var(--accent-soft); }
.value-row .idx {
  font-family: var(--display); font-size: 28px; color: var(--accent);
  font-weight: 500; line-height: 1;
}
.value-row .ttl { font-family: var(--serif); font-size: 19px; line-height: 1.35; }
.value-row .exp {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s, opacity .3s, margin .3s;
  font-size: 13.5px; color: var(--mute); line-height: 1.7; margin-top: 0;
}
.value-row.open .exp { max-height: 240px; opacity: 1; margin-top: 10px; }

/* ────── THINKING ────── */
.think-tabs {
  display: flex; gap: 4px; padding: 6px; background: var(--bg-sunk);
  border-radius: 999px; margin-bottom: 60px; width: fit-content;
  border: 0.5px solid var(--rule);
}
.think-tabs button {
  background: transparent; border: 0; padding: 10px 22px;
  font-size: 13px; color: var(--mute); border-radius: 999px;
  transition: all .25s; font-family: var(--sans);
}
.think-tabs button.active { background: var(--ink); color: var(--bg); }
.think-tabs button:hover:not(.active) { color: var(--ink); }
.think-tabs button .count {
  font-family: var(--mono); font-size: 10px; color: inherit;
  opacity: 0.6; margin-left: 6px;
}

/* Essays */
.essay-list { display: flex; flex-direction: column; }
.essay-row {
  display: grid; grid-template-columns: 50px 1fr auto;
  gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--rule-soft);
  align-items: baseline; cursor: pointer; transition: all .3s;
}
.essay-row:hover { padding-left: 14px; }
.essay-row:hover .ttl { color: var(--accent); }
.essay-row .num {
  font-family: var(--mono); font-size: 12px; color: var(--mute);
}
.essay-row .body { display: flex; flex-direction: column; gap: 8px; }
.essay-row .body .tags { display: flex; gap: 8px; }
.essay-row .body .tag {
  font-family: var(--mono); font-size: 10px; padding: 2px 7px;
  border: 0.5px solid var(--accent); color: var(--accent);
  border-radius: 2px; letter-spacing: 0.06em;
}
.essay-row .ttl { font-family: var(--serif); font-size: 22px; line-height: 1.3; transition: color .2s; }
.essay-row .sub { font-size: 13.5px; color: var(--mute); line-height: 1.6; max-width: 720px; }
.essay-row .meta {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  text-align: right; white-space: nowrap;
}
.essay-row .meta .reads { color: var(--accent); }

/* Insights */
.insights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 960px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .insights-grid { grid-template-columns: 1fr; } }
.insight {
  padding: 26px 24px; background: var(--bg-card);
  border: 0.5px solid var(--rule); border-radius: 4px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: all .25s;
  min-height: 240px;
}
.insight:hover { border-color: var(--ink); transform: translateY(-2px); }
.insight .topic {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.06em;
}
.insight .quote {
  font-family: var(--serif); font-size: 17px; line-height: 1.55;
  color: var(--ink); flex: 1; font-weight: 500;
}
.insight .closer {
  font-family: var(--serif); font-style: italic; color: var(--ink-2);
  font-size: 14px; line-height: 1.5;
}
.insight .foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--rule-soft);
  font-family: var(--mono); font-size: 10px; color: var(--mute);
  letter-spacing: 0.04em;
}
.insight .copy-btn {
  background: transparent; border: 0; color: var(--mute); cursor: pointer;
  font-family: var(--mono); font-size: 10px; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.insight .copy-btn:hover { color: var(--accent); }
.insight.copied .copy-btn { color: var(--accent); }

.insight-filters {
  display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap;
  align-items: center;
}
.insight-filters .pill {
  padding: 6px 14px; border-radius: 999px; font-size: 12px;
  border: 0.5px solid var(--rule); background: transparent; color: var(--ink-2);
}
.insight-filters .pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.insight-filters .lbl {
  font-family: var(--mono); font-size: 10px; color: var(--mute);
  letter-spacing: 0.1em; text-transform: uppercase; margin-right: 8px;
}

/* Mental Models — tree */
.mm-canvas {
  position: relative; background: var(--bg-card);
  border: 0.5px solid var(--rule); border-radius: 4px;
  padding: 40px 30px; min-height: 580px; overflow: hidden;
}
.mm-canvas .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5; pointer-events: none;
}
.mm-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mm-svg path { stroke: var(--mute-2); stroke-width: 1.2; fill: none; transition: stroke .25s; }
.mm-svg path.active { stroke: var(--accent); stroke-width: 1.6; }

.mm-node {
  position: absolute; transform: translate(-50%, -50%);
  text-align: center; cursor: pointer; transition: all .25s;
}
.mm-node-inner {
  padding: 10px 16px; background: var(--bg);
  border: 1px solid var(--ink); border-radius: 4px;
  font-family: var(--serif); font-size: 14px; line-height: 1.2;
  font-weight: 500; white-space: nowrap;
  transition: all .25s;
}
.mm-node.root .mm-node-inner {
  background: var(--ink); color: var(--bg);
  padding: 14px 24px; font-size: 16px; font-weight: 600;
}
.mm-node.l1 .mm-node-inner { background: var(--bg-card); }
.mm-node.l2 .mm-node-inner {
  font-size: 12px; padding: 8px 12px;
  border: 0.5px solid var(--rule); color: var(--ink-2);
  background: var(--bg);
}
.mm-node:hover .mm-node-inner { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.mm-node.active .mm-node-inner { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.mm-node.root.active .mm-node-inner { background: var(--accent); }

.mm-detail {
  position: absolute; right: 30px; top: 40px;
  width: 320px; padding: 22px;
  background: var(--bg); border: 0.5px solid var(--ink);
  border-radius: 4px; z-index: 5;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.15);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: all .3s;
}
.mm-detail.show { opacity: 1; transform: none; pointer-events: auto; }
.mm-detail .topic {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
}
.mm-detail h4 { font-family: var(--serif); font-size: 19px; margin-bottom: 12px; line-height: 1.3; }
.mm-detail p { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 0 0 12px; }
.mm-detail ul { padding-left: 18px; margin: 8px 0 0; font-size: 12.5px; color: var(--mute); line-height: 1.75; }

@media (max-width: 880px) {
  .mm-canvas { padding: 20px; min-height: 760px; }
  .mm-detail { position: relative; right: auto; top: auto; width: 100%; margin-top: 20px; }
}

/* Reading */
.reading-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
}
@media (max-width: 720px) { .reading-grid { grid-template-columns: 1fr; gap: 30px; } }
.reading-col h4 {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px;
}
.reading-list { display: flex; flex-direction: column; gap: 0; }
.reading-item {
  padding: 14px 0; border-bottom: 1px solid var(--rule-soft);
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  align-items: baseline;
}
.reading-item .ttl { font-family: var(--serif); font-size: 16px; }
.reading-item .by { font-size: 12px; color: var(--mute); margin-top: 2px; }
.reading-item .status-chip {
  font-family: var(--mono); font-size: 10px; padding: 2px 7px;
  border-radius: 2px; letter-spacing: 0.06em;
}
.reading-item .status-chip.now { background: var(--accent); color: var(--bg); }
.reading-item .status-chip.rec { border: 0.5px solid var(--rule); color: var(--mute); }

/* ────── SERVICES ────── */
.svc-pyramid {
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  margin: 0 auto; max-width: 1000px;
}
.svc-tier {
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 24px;
  padding: 22px 28px; border: 0.5px solid var(--rule);
  border-radius: 4px; cursor: pointer; background: var(--bg-card);
  transition: all .3s ease;
  position: relative;
}
.svc-tier:hover { border-color: var(--ink); transform: translateX(4px); }
.svc-tier.open { border-color: var(--accent); border-width: 1px; }
.svc-tier .tier-mark {
  font-family: var(--display); font-size: 24px; color: var(--mute);
  font-weight: 500; min-width: 32px;
}
.svc-tier.open .tier-mark { color: var(--accent); }
.svc-tier .name {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.svc-tier .name .sub {
  font-size: 13px; color: var(--mute); font-family: var(--sans);
  font-weight: normal;
}
.svc-tier .price {
  font-family: var(--display); font-size: 22px; color: var(--accent);
  font-weight: 500; white-space: nowrap; font-feature-settings: "lnum";
}
.svc-tier .dur {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  text-align: right; min-width: 90px;
}
.svc-tier .chev {
  font-family: var(--mono); transition: transform .3s; color: var(--mute);
}
.svc-tier.open .chev { transform: rotate(90deg); color: var(--accent); }

/* Widths for visual pyramid */
.svc-pyramid .t-1 { width: 100%; max-width: 1000px; align-self: center; }
.svc-pyramid .t-2 { width: 93%; align-self: center; }
.svc-pyramid .t-3 { width: 86%; align-self: center; }
.svc-pyramid .t-4 { width: 79%; align-self: center; }
.svc-pyramid .t-5 { width: 72%; align-self: center; }
.svc-pyramid .t-6 { width: 65%; align-self: center; }
.svc-pyramid .t-7 { width: 58%; align-self: center; }
@media (max-width: 720px) {
  .svc-pyramid .svc-tier { width: 100% !important; }
  .svc-tier { grid-template-columns: auto 1fr; gap: 12px; padding: 18px; }
  .svc-tier .price, .svc-tier .dur, .svc-tier .chev { grid-column: span 1; }
  .svc-tier .name { grid-column: span 2; }
}

.svc-detail {
  grid-column: 1 / -1; max-height: 0; overflow: hidden;
  transition: max-height .5s ease, opacity .3s, margin .3s;
  opacity: 0; margin-top: 0;
}
.svc-tier.open .svc-detail { max-height: 1200px; opacity: 1; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
.svc-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
@media (max-width: 720px) { .svc-detail-grid { grid-template-columns: 1fr; } }
.svc-detail-col .lbl {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.svc-detail-col ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.svc-detail-col ul.no-bullets { padding-left: 0; list-style: none; }
.svc-detail-col ul.no-bullets li { padding: 6px 0; border-bottom: 1px solid var(--rule-soft); }
.svc-detail-col ul.no-bullets li:last-child { border-bottom: 0; }
.svc-detail-col p { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); margin: 0 0 14px; }
.svc-detail-col .x { color: var(--mute); font-style: italic; }
.svc-detail .case-strip {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule-soft);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.svc-detail .case-strip .case-pill {
  padding: 8px 14px; border: 0.5px solid var(--rule);
  border-radius: 999px; font-size: 12px;
}
.svc-detail .book-btn {
  margin-top: 24px;
}

/* ────── WORKS ────── */
.works-filters {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  margin-bottom: 36px;
}
.works-filters .group {
  display: flex; gap: 6px; align-items: center;
}
.works-filters .group .lbl {
  font-family: var(--mono); font-size: 10px; color: var(--mute);
  letter-spacing: 0.1em; text-transform: uppercase; margin-right: 4px;
}
.works-filters .pill {
  padding: 5px 12px; border-radius: 2px; font-size: 12px;
  border: 0.5px solid var(--rule); background: transparent;
  color: var(--ink-2);
}
.works-filters .pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.works-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
@media (max-width: 720px) { .works-list { grid-template-columns: 1fr; } }
.work-card {
  padding: 32px; background: var(--bg-card);
  border: 0.5px solid var(--rule); border-radius: 4px;
  cursor: pointer; transition: all .3s;
  display: flex; flex-direction: column; min-height: 320px;
  position: relative; overflow: hidden;
}
.work-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.work-card:hover { border-color: var(--ink); }
.work-card:hover::before { transform: scaleX(1); }
.work-card .indus {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px;
  display: flex; gap: 10px; align-items: center;
}
.work-card .indus .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.work-card .indus .svc-tag { color: var(--mute); border: 0; padding: 0; }
.work-card .who { font-family: var(--serif); font-size: 21px; line-height: 1.35; margin-bottom: 12px; }
.work-card .problem { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: auto; }
.work-card .results {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 24px;
  padding-top: 20px; border-top: 1px solid var(--rule-soft);
}
.work-card .results .r { }
.work-card .results .r .v {
  font-family: var(--display); font-size: 24px; color: var(--ink);
  font-weight: 500; line-height: 1; font-feature-settings: "lnum";
}
.work-card .results .r .v .u { font-family: var(--serif); font-size: 14px; color: var(--accent); margin-left: 2px; }
.work-card .results .r .l { font-size: 11px; color: var(--mute); margin-top: 6px; }

/* Work detail panel (overlay) */
.work-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  display: flex; justify-content: flex-end;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.work-overlay.show { opacity: 1; pointer-events: auto; }
.work-overlay .panel {
  width: min(720px, 100%); height: 100vh; background: var(--bg);
  overflow-y: auto; padding: 60px 56px;
  transform: translateX(40px); transition: transform .35s cubic-bezier(.3,.7,.2,1);
}
.work-overlay.show .panel { transform: none; }
@media (max-width: 720px) { .work-overlay .panel { padding: 36px 24px; } }
.work-overlay .close {
  position: sticky; top: 0; float: right; background: var(--bg-card);
  border: 0.5px solid var(--rule); width: 36px; height: 36px;
  border-radius: 50%; font-size: 18px;
}
.work-overlay h3 {
  font-family: var(--serif); font-size: 32px; line-height: 1.2;
  margin: 0 0 8px; max-width: 580px;
}
.work-overlay .hero-meta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.06em; margin-bottom: 32px;
}
.work-overlay .hero-meta .ind { color: var(--accent); }
.work-overlay .res-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; margin-bottom: 40px;
  background: var(--bg-sunk); padding: 24px; border-radius: 4px;
}
.work-overlay .res-strip .r .v {
  font-family: var(--display); font-size: 32px; color: var(--ink); font-weight: 500;
}
.work-overlay .res-strip .r .v .u { font-family: var(--serif); font-size: 16px; color: var(--accent); }
.work-overlay .res-strip .r .l { font-size: 11px; color: var(--mute); margin-top: 4px; }
.work-overlay .sec-block { padding: 28px 0; border-top: 1px solid var(--rule); }
.work-overlay .sec-block .lbl {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}
.work-overlay .sec-block h4 { font-family: var(--serif); font-size: 21px; margin: 0 0 14px; line-height: 1.35; }
.work-overlay .sec-block p { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); margin: 0 0 12px; }
.work-overlay .sec-block .pull {
  font-family: var(--serif); font-size: 19px; line-height: 1.5;
  color: var(--accent); font-style: italic;
  border-left: 2px solid var(--accent); padding-left: 18px;
  margin: 18px 0;
}

/* ────── CONTACT ────── */
.contact-hero {
  text-align: center; padding: 80px 0;
}
.contact-hero h2 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1; margin-bottom: 24px; max-width: 800px; margin-left: auto; margin-right: auto;
  font-weight: 500;
}
.contact-hero h2 em { font-style: normal; color: var(--accent); font-family: var(--display); }
.contact-hero p { font-size: 16px; color: var(--mute); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.contact-tiers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 60px;
}
@media (max-width: 720px) { .contact-tiers { grid-template-columns: 1fr; } }
.tier {
  padding: 32px 28px; background: var(--bg-card);
  border: 0.5px solid var(--rule); border-radius: 4px;
  text-align: left; cursor: pointer; transition: all .3s;
  position: relative;
}
.tier:hover { border-color: var(--ink); transform: translateY(-3px); }
.tier .w {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  letter-spacing: 0.14em; margin-bottom: 14px;
}
.tier .w::before { content: "["; opacity: 0.5; margin-right: 3px; }
.tier .w::after { content: "]"; opacity: 0.5; margin-left: 3px; }
.tier h3 { font-family: var(--serif); font-size: 21px; line-height: 1.35; margin-bottom: 10px; }
.tier p { font-size: 13px; color: var(--mute); line-height: 1.65; margin: 0 0 22px; }
.tier .lead {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--ink);
}
.tier.featured {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.tier.featured h3, .tier.featured .lead { color: var(--bg); }
.tier.featured p { color: rgba(255,255,255,0.6); }
.tier.featured .w { color: var(--accent); }

/* Smart floating CTA */
.smart-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  border: 0; cursor: pointer;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.4);
  transform: translateY(10px); opacity: 0;
  transition: all .4s cubic-bezier(.3,.8,.2,1);
  font-family: var(--sans); font-size: 13px;
  max-width: 320px;
}
.smart-cta.show { transform: none; opacity: 1; }
.smart-cta .dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}
.smart-cta:hover { background: var(--accent); }
.smart-cta:hover .dot { background: var(--bg); box-shadow: 0 0 0 4px rgba(255,255,255,0.2); }

/* Form modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 300;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s; padding: 20px;
}
.modal-bg.show { opacity: 1; pointer-events: auto; }
.modal {
  width: min(620px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--bg); padding: 48px 48px 40px;
  border-radius: 4px; border: 0.5px solid var(--rule);
  position: relative;
  transform: translateY(20px); transition: transform .3s;
}
.modal-bg.show .modal { transform: none; }
@media (max-width: 720px) { .modal { padding: 36px 24px; } }
.modal .close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: 0; font-size: 22px;
  color: var(--mute); width: 32px; height: 32px;
}
.modal .close:hover { color: var(--accent); }
.modal h3 { font-family: var(--serif); font-size: 28px; margin: 0 0 8px; }
.modal .lead { color: var(--mute); font-size: 14px; line-height: 1.7; margin-bottom: 28px; }
.modal .field { margin-bottom: 22px; }
.modal .field .lbl {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--ink);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px;
}
.modal .field .lbl .num { color: var(--accent); }
.modal .field .hint {
  font-family: var(--sans); font-size: 11.5px; color: var(--mute);
  text-transform: none; letter-spacing: 0;
  margin-left: auto;
}
.modal input[type="text"], .modal input[type="email"], .modal textarea, .modal select {
  width: 100%; padding: 12px 14px; font-family: var(--sans);
  font-size: 14px; border: 0.5px solid var(--rule);
  background: var(--bg-card); color: var(--ink); border-radius: 3px;
  resize: vertical; outline: none;
  transition: border-color .2s;
}
.modal input:focus, .modal textarea:focus, .modal select:focus { border-color: var(--accent); }
.modal textarea { min-height: 92px; line-height: 1.6; }
.modal .radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.modal .radio {
  padding: 9px 14px; border: 0.5px solid var(--rule);
  border-radius: 999px; font-size: 13px; cursor: pointer;
  background: var(--bg-card); transition: all .2s;
}
.modal .radio.on { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.modal .submit {
  width: 100%; margin-top: 8px; padding: 16px; font-size: 14px; font-weight: 500;
  background: var(--accent); color: var(--bg); border: 0; border-radius: 3px;
}
.modal .submit:hover { background: var(--ink); }
.modal .gate {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 14px 16px; background: var(--accent-soft); border-radius: 3px;
  font-size: 12px; color: var(--ink-2); line-height: 1.6; margin-bottom: 24px;
}
.modal .gate i { color: var(--accent); font-style: normal; font-weight: 600; }

/* Footer */
.footer {
  padding: 60px 0 40px; border-top: 1px solid var(--rule);
  background: var(--bg-sunk);
  font-size: 12px; color: var(--mute);
}
.footer-grid {
  display: grid; grid-template-columns: minmax(220px, 1.1fr) 180px minmax(360px, 1.5fr); gap: 44px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer h5 {
  font-family: var(--mono); font-size: 10px; color: var(--mute);
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .brand {
  font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 8px;
}
.footer-follow {
  min-width: 0;
}
.follow-intro {
  max-width: 520px;
  margin: 0 0 16px;
  line-height: 1.7;
}
.follow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.follow-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--rule);
  background: rgba(255,253,247,.5);
  color: var(--mute);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.follow-card:hover {
  border-color: rgba(168,67,31,.45);
  background: rgba(168,67,31,.06);
  transform: translateY(-2px);
}
.follow-media {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-soft);
  background: var(--bg);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
  padding: 8px;
}
.follow-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.follow-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.follow-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.follow-copy span {
  line-height: 1.55;
}
.footer .colophon {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 32px; border-top: 1px solid var(--rule); gap: 20px; flex-wrap: wrap;
}
.footer .colophon .made { font-family: var(--mono); font-size: 11px; }

/* Counter — auto rolls in via JS */
.count[data-target] { transition: none; }

/* ────────────────────────────────────────────────────────────────
   INTERACTION FX
   ──────────────────────────────────────────────────────────────── */

/* 1 · top scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform-origin: left center; transform: scaleX(0);
  z-index: 999; pointer-events: none;
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* 2 · cursor ink dot */
.cursor-dot, .cursor-trail {
  position: fixed; top: 0; left: 0; pointer-events: none;
  z-index: 9999; border-radius: 50%;
  mix-blend-mode: multiply;
  transition: width .25s cubic-bezier(.3,.7,.4,1), height .25s cubic-bezier(.3,.7,.4,1), background-color .25s, opacity .2s;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--ink);
  margin: -3px 0 0 -3px;
}
.cursor-trail {
  width: 28px; height: 28px;
  background: transparent;
  border: 1px solid var(--ink);
  opacity: 0.35;
  margin: -14px 0 0 -14px;
  mix-blend-mode: normal;
}
.cursor-dot.hot {
  width: 4px; height: 4px; background: var(--accent);
  margin: -2px 0 0 -2px;
}
.cursor-trail.hot {
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-color: var(--accent); opacity: 0.55;
  border-width: 1px;
}
[data-theme="night"] .cursor-dot { mix-blend-mode: screen; }
[data-theme="night"] .cursor-trail { border-color: var(--ink); }

/* 3 · tilt cards need will-change */
.work-card, .svc-card {
  transition: transform .25s cubic-bezier(.3,.7,.2,1), border-color .25s, box-shadow .25s;
  transform-style: preserve-3d;
  will-change: transform;
}
.work-card:hover, .svc-card:hover { box-shadow: 0 30px 60px -28px rgba(0,0,0,0.28); }

/* 4 · magnetic buttons — JS sets transform, smooth easing */
.btn-primary, .nav .cta, .smart-cta {
  will-change: transform;
}

/* 5 · theme switch reveal */
.theme-reveal {
  position: fixed; inset: 0; pointer-events: none; z-index: 998;
  background: radial-gradient(circle at var(--x) var(--y),
    var(--bg) 0%, var(--bg) 1%, transparent 60%);
  opacity: 0; transition: opacity .4s ease;
}
.theme-reveal.on {
  animation: theme-wipe .8s cubic-bezier(.3,.7,.2,1) forwards;
}
@keyframes theme-wipe {
  0%   { clip-path: circle(0% at var(--x) var(--y)); opacity: 1; }
  60%  { clip-path: circle(140% at var(--x) var(--y)); opacity: 1; }
  100% { clip-path: circle(140% at var(--x) var(--y)); opacity: 0; }
}

/* 6 · mental model — initial stroke state set by JS */
.mm-svg path {
  transition: stroke .25s, stroke-dashoffset .7s cubic-bezier(.3,.8,.2,1);
}

/* ── Section anchors get extra reveal flair ── */
.sec-tag { position: relative; display: inline-block; }
.sec-tag::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--accent); opacity: 0.4;
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.3,.7,.2,1);
}
.reveal.in .sec-tag::after { transform: scaleX(1); }

/* ── Polish: ink underline on links inside content ── */
.essay-row .ttl, .pw-title em, .insight .closer {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size .35s cubic-bezier(.3,.7,.2,1);
}
.essay-row:hover .ttl {
  background-size: 100% 1px;
}

/* ── Reduce-motion respect ── */
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-trail, .scroll-progress, .theme-reveal { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ────────────────────────────────────────────────────────────────
   NEW HELPERS · STAGGER / COUNTER DISPLAY / TIMELINE PROGRESS
   ──────────────────────────────────────────────────────────────── */

.stagger-host > * { opacity: 0; transform: translateY(10px); }
.stagger-host > *.stagger-in {
  animation: stagger-fade .7s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--stagger-delay, 0ms);
}
@keyframes stagger-fade {
  to { opacity: 1; transform: translateY(0); }
}

/* The Counter's string-display variant fades+slides in */
.count-display {
  font-family: var(--display); font-weight: 500;
  display: inline-block;
  opacity: 0; transform: translateY(8px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  font-size: 0.78em;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-feature-settings: "lnum", "tnum";
}
.count-display.in { opacity: 1; transform: none; }

/* SectionIndex tag — slot-roll variant */
.sec-tag .sec-tag-num {
  display: inline-block; min-width: 2.6ch;
  font-variant-numeric: tabular-nums;
}
.sec-tag .sec-tag-label { opacity: 0.85; }

/* Timeline rail progress indicator */
.tl-progress {
  position: relative; margin: 0 0 16px;
  height: 1px; background: var(--rule);
  max-width: 240px;
}
.tl-progress span {
  position: absolute; left: 0; top: -1px;
  width: 100%; height: 3px;
  background: var(--accent);
  transform-origin: left center; transform: scaleX(0);
  transition: transform .15s linear;
}

@media (max-width: 980px) {
  .about-profile {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
  }
  .about-facts {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Preview wall row title — replaces brittle inline style */
.pw-row-title {
  font-size: 20px; font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--serif);
}
.pw-row-title .pin {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  font-weight: normal;
}

/* Section index numbers ticker style — overrides default sec-tag look in sec-head */
.sec-head .sec-tag {
  font-feature-settings: "lnum", "tnum";
}

/* ────────────────────────────────────────────────────────────────
   MOBILE / RESPONSIVE POLISH
   ──────────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  /* Nav: keep links but tighten on tablet */
  .nav a.link { padding: 7px 10px; font-size: 12.5px; }
}

@media (max-width: 720px) {
  /* Reduce wrap padding more on phones */
  .wrap, .wrap-narrow { padding: 0 18px; }

  /* Hero */
  .hero { padding: 140px 0 40px; }
  .hero-eyebrow { flex-wrap: wrap; gap: 8px; font-size: 10px; }
  .hero-title { font-size: clamp(40px, 11vw, 56px); margin-bottom: 24px; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; }
  .hero-sub .role { display: inline-flex; margin-bottom: 6px; }
  .hero-stats {
    grid-template-columns: 1fr; gap: 0;
    margin: 24px 0 36px;
  }
  .hero-stat {
    border-right: 0 !important;
    border-bottom: 1px solid var(--rule-soft);
    padding: 18px 0 !important;
    display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px;
  }
  .hero-stat:last-child { border-bottom: 0; }
  .hero-stat .num { font-size: 30px; }
  .hero-stat .lbl { margin-top: 0; text-align: right; }
  .hero-cta-row .btn { flex: 1; justify-content: center; padding: 13px 18px; }

  .hero-portrait { max-width: 320px; margin: 0 auto; }
  .scroll-hint { display: none; }

  /* PREVIEW WALL */
  .preview-wall { padding: 70px 0 80px; }
  .pw-title { font-size: 24px !important; line-height: 1.4 !important; }
  .essay-mini {
    grid-template-columns: auto 1fr; gap: 12px;
  }
  .essay-mini .meta {
    grid-column: 2; text-align: left; white-space: normal; font-size: 10.5px;
    margin-top: 4px;
  }
  .essay-mini .ttl .tag { display: inline-block; margin-bottom: 4px; }

  /* Service strip on mobile becomes 1-col with more breathing */
  .svc-strip { grid-template-columns: 1fr !important; gap: 12px; }

  /* Client strip on mobile: stack with full width chips */
  .client-strip {
    flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 24px 0;
  }
  .client-strip .lbl {
    border-right: 0; padding-right: 0; padding-bottom: 8px;
    border-bottom: 1px solid var(--rule-soft); width: 100%;
  }

  /* THINKING */
  .think-tabs {
    width: 100%; overflow-x: auto;
    flex-wrap: nowrap; padding: 4px; gap: 2px;
    scrollbar-width: none;
  }
  .think-tabs::-webkit-scrollbar { display: none; }
  .think-tabs button {
    flex-shrink: 0; padding: 9px 14px; font-size: 12px;
  }
  .think-tabs button .count { display: none; }

  .insight-filters {
    overflow-x: auto; flex-wrap: nowrap;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .insight-filters::-webkit-scrollbar { display: none; }
  .insight-filters .pill { flex-shrink: 0; }
  .insight-filters .lbl { flex-shrink: 0; }

  .essay-row {
    grid-template-columns: 36px 1fr; gap: 14px; padding: 20px 0;
  }
  .essay-row:hover { padding-left: 0; }
  .essay-row .meta {
    grid-column: 2; text-align: left; white-space: normal;
    font-size: 10.5px; margin-top: 4px;
  }

  .reading-grid { gap: 32px; }

  /* SERVICES — pyramid on mobile loses width tapering, becomes vertical stack */
  .svc-pyramid { gap: 10px; }
  .svc-tier {
    width: 100% !important;
    grid-template-columns: auto 1fr auto;
    gap: 10px; padding: 16px;
  }
  .svc-tier .tier-mark { font-size: 18px; min-width: 22px; }
  .svc-tier .name { font-size: 16px; gap: 6px; }
  .svc-tier .name .sub { font-size: 11px; display: block; width: 100%; margin-top: 2px; }
  .svc-tier .price { grid-column: 2 / -1; font-size: 18px; }
  .svc-tier .dur, .svc-tier .chev { display: none; }
  .svc-tier.open .chev { display: none; }
  .svc-detail .case-strip { padding-top: 16px; gap: 8px; }
  .svc-detail .case-strip .case-pill { padding: 6px 10px; font-size: 11px; }

  /* WORKS — filters scroll horizontally */
  .works-filters { gap: 12px; }
  .works-filters .group {
    overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none; padding-bottom: 4px;
    width: 100%;
  }
  .works-filters .group::-webkit-scrollbar { display: none; }
  .works-filters .pill { flex-shrink: 0; }
  .works-filters .group .lbl { flex-shrink: 0; }
  .work-card { padding: 24px; min-height: 0; }
  .work-card .who { font-size: 18px; }
  .work-card .results { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .work-card .results .v { font-size: 20px; }

  /* WORKS overlay: full-bleed on mobile */
  .work-overlay { background: var(--bg); }
  .work-overlay .panel { width: 100%; padding: 60px 22px 40px; }
  .work-overlay .res-strip { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .work-overlay h3 { font-size: 24px; }

  /* CONTACT tiers stack with proper rhythm */
  .contact-tiers { gap: 12px; margin-top: 36px; }
  .tier { padding: 26px 22px; }
  .tier h3 { font-size: 18px; }

  /* Smart CTA: smaller on mobile */
  .smart-cta {
    bottom: 16px; right: 16px;
    padding: 10px 14px 10px 14px;
    font-size: 12px;
    max-width: calc(100vw - 32px);
  }

  /* Modal */
  .modal { padding: 32px 20px 28px; }
  .modal h3 { font-size: 22px; }
  .modal .gate { font-size: 11.5px; padding: 12px; }
  .modal .field { margin-bottom: 18px; }

  /* Timeline */
  .tl-rail {
    margin: 0;
    padding: 0;
    scroll-snap-type: none;
  }
  .tl-track {
    padding-left: 28px;
  }
  .tl-node {
    width: auto;
    padding: 20px;
    scroll-snap-align: none;
  }
  .tl-node::before {
    left: -29px;
    top: 26px;
  }
  .tl-node .year { font-size: 28px; }
  .tl-node.open .tl-node-detail { max-height: 700px; }

  /* Values grid */
  .value-row { padding: 22px 0 !important; }
  .value-row .idx { font-size: 22px; }
  .value-row .ttl { font-size: 16px; }

  /* Footer */
  .footer-grid { gap: 24px; }
  .follow-grid { grid-template-columns: 1fr; }
  .follow-card { grid-template-columns: 78px minmax(0, 1fr); }
  .footer .brand { font-size: 18px; }
  .footer .colophon { font-size: 11px; flex-direction: column; gap: 6px; }

  /* Section heads on mobile */
  .sec-head { padding-bottom: 20px; margin-bottom: 28px; }
  .sec-head h2 { font-size: 28px; }

  /* About intro */
  .about-intro { font-size: 22px !important; line-height: 1.45; }
  .about-intro .drop { font-size: 3.6em; padding: 4px 10px 0 0; }
  .about-profile {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0 42px;
  }
  .about-aside {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .about-copy {
    font-size: 21px;
    line-height: 1.58;
  }
  .about-facts {
    grid-template-columns: 1fr;
  }

  /* Mental Model on mobile: vertical stack, no canvas pos */
  .mm-canvas { min-height: 0; padding: 16px; }
  .mm-canvas .grid-bg, .mm-canvas .mm-svg { display: none; }
  .mm-node {
    position: relative !important; transform: none !important;
    left: auto !important; top: auto !important;
    display: inline-block; margin: 4px;
  }
  .mm-detail {
    position: relative; right: auto; top: auto; width: 100%; margin-top: 20px;
    opacity: 1; transform: none; pointer-events: auto;
  }
}

/* Mobile-specific: cursor effects hidden on touch (already handled in component too) */
@media (pointer: coarse) {
  .cursor-dot, .cursor-trail { display: none !important; }
}
