/* =========================================================
   justkeepgoin.com · brand system
   Pulled from the @keepgoinivan IG carousel system:
   warm ink, cream paper, terracotta, gold italic accent,
   serif headlines, mono kickers, "01 / 07" progress bar.
   ========================================================= */

:root {
  --ink: #1a1918;
  --ink-2: #211f1d;
  --ink-3: #2b2826;
  --cream: #f4efe6;
  --paper: #faf7f1;
  --terra: #b26a43;
  --terra-deep: #9a5634;
  --clay: #c98c68;
  --gold: #c9a46a;

  --on-dark: #f4efe6;
  --on-dark-muted: rgba(244, 239, 230, 0.64);
  --on-dark-faint: rgba(244, 239, 230, 0.14);
  --on-light: #1a1918;
  --on-light-muted: #6e655c;
  --on-light-faint: rgba(26, 25, 24, 0.12);

  --serif: "Newsreader", "Noto Serif TC", Georgia, serif;
  --serif-zh: "Noto Serif TC", "Newsreader", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--terra);
  color: var(--cream);
}

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

/* ---------- type ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.kicker .rule {
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.light .kicker {
  color: var(--terra);
}

.display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

.display em,
.h2 em,
.h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.light .display em,
.light .h2 em,
.light .h3 em {
  color: var(--terra);
}

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 5.6vw, 76px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 18px 0 0;
}

.h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  margin: 0;
}

.zh {
  font-family: var(--serif-zh);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--on-dark-muted);
  max-width: 60ch;
}

.light .lede {
  color: var(--on-light-muted);
}

/* ---------- section shells ---------- */

section {
  position: relative;
}

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

.light {
  background: var(--cream);
  color: var(--on-light);
}

.pad {
  padding: clamp(96px, 13vw, 168px) 0;
}

.sec-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

@media (min-width: 900px) {
  .sec-head.split {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
  }
}

/* ---------- grain + scroll progress ---------- */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 2%); }
}

.progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 95;
  background: transparent;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--terra), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.counter {
  position: fixed;
  right: var(--gutter);
  bottom: 18px;
  z-index: 95;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--clay);
  mix-blend-mode: difference;
  pointer-events: none;
}

/* ---------- floating pill nav ---------- */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(calc(100% - 32px), 980px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(26, 25, 24, 0.55);
  border: 1px solid rgba(244, 239, 230, 0.1);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform 0.5s var(--ease), background 0.3s;
}

.nav.hide {
  transform: translate(-50%, -140%);
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--on-dark);
}

.wordmark b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.wordmark small {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  margin-top: 4px;
  color: var(--on-dark-muted);
}

.nav ul {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav ul a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--on-dark-muted);
  transition: color 0.2s, background 0.2s;
}

.nav ul a:hover {
  color: var(--on-dark);
  background: rgba(244, 239, 230, 0.08);
}

@media (min-width: 820px) {
  .nav ul {
    display: flex;
  }
}

/* ---------- buttons ---------- */

.btn {
  --bg: var(--terra);
  --fg: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:hover {
  color: var(--ink);
}

.btn .arr {
  transition: transform 0.3s var(--ease);
}

.btn:hover .arr {
  transform: translateX(4px);
}

.btn.ghost {
  --bg: transparent;
  --fg: var(--on-dark);
  border-color: rgba(244, 239, 230, 0.25);
}

.light .btn.ghost {
  --fg: var(--on-light);
  border-color: rgba(26, 25, 24, 0.25);
}

.btn.sm {
  padding: 10px 16px;
  font-size: 14px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

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

.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.split .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 150ms);
}

.split.in .w > span {
  transform: none;
}

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 40px;
  overflow: hidden;
  background: var(--ink);
}

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.aurora i:nth-child(1) {
  width: 52vmax;
  height: 52vmax;
  left: -12vmax;
  top: -18vmax;
  background: radial-gradient(circle, rgba(178, 106, 67, 0.55), transparent 65%);
  animation: drift1 22s ease-in-out infinite alternate;
}

.aurora i:nth-child(2) {
  width: 44vmax;
  height: 44vmax;
  right: -14vmax;
  top: 10vmax;
  background: radial-gradient(circle, rgba(201, 164, 106, 0.38), transparent 65%);
  animation: drift2 26s ease-in-out infinite alternate;
}

.aurora i:nth-child(3) {
  width: 36vmax;
  height: 36vmax;
  left: 30vw;
  bottom: -20vmax;
  background: radial-gradient(circle, rgba(154, 86, 52, 0.45), transparent 65%);
  animation: drift3 30s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 14vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -18vh) scale(1.2); } }

.trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero .display {
  font-size: clamp(64px, 14.5vw, 216px);
  margin-top: 22px;
}

.hero-zh {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--on-dark-muted);
  margin: 20px 0 0;
}

.hero-row {
  display: grid;
  gap: 32px;
  margin-top: 36px;
}

@media (min-width: 900px) {
  .hero-row {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
  }
}

.hero-row p {
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 900px) {
  .cta-row {
    justify-content: flex-end;
  }
}

.stats {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--on-dark-faint);
}

@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 22px 16px 0 0;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  color: var(--cream);
}

.stat b sup {
  font-size: 0.5em;
  color: var(--gold);
  margin-left: 2px;
}

.stat span {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--on-dark-faint), transparent);
  overflow: hidden;
  z-index: 2;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--gold);
  animation: cue 2.2s var(--ease) infinite;
}

@keyframes cue { to { top: 110%; } }

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

.marquee {
  background: var(--terra);
  color: var(--cream);
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid rgba(0, 0, 0, 0.12);
}

.marquee .track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .track {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  white-space: nowrap;
  padding-right: 40px;
}

.marquee span em {
  font-style: italic;
  color: var(--ink);
}

.marquee span::after {
  content: "✦";
  font-size: 0.55em;
  vertical-align: middle;
  padding-left: 40px;
  color: var(--gold);
}

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

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

.bridge-grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
}

@media (min-width: 960px) {
  .bridge-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.story p {
  font-size: clamp(18px, 1.5vw, 20px);
  margin: 0 0 1.1em;
}

.story .zh {
  color: var(--on-light-muted);
}

.story a.inline {
  border-bottom: 1px solid var(--terra);
  color: var(--terra-deep);
  font-weight: 600;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--on-light-faint);
}

.timeline li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--on-light-faint);
}

.timeline .yr {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--terra);
  padding-top: 6px;
}

.timeline b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

.timeline span {
  color: var(--on-light-muted);
  font-size: 15px;
}

.pillars {
  margin-top: clamp(64px, 8vw, 112px);
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  background: var(--paper);
  border: 1px solid var(--on-light-faint);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(26, 25, 24, 0.25);
}

.pillar .n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--terra);
}

.pillar .h3 {
  margin: 18px 0 10px;
}

.pillar p {
  margin: 0;
  color: var(--on-light-muted);
  font-size: 15.5px;
}

/* ---------- journal ---------- */

.journal-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 980px) {
  .journal-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

.panel {
  background: var(--ink-2);
  border: 1px solid var(--on-dark-faint);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.panel-head .h3 em {
  color: var(--gold);
}

.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.heat {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr);
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.heat i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(244, 239, 230, 0.06);
  transform: scale(0.2);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
  transition-delay: calc(var(--k) * 4ms);
}

.heat.in i {
  transform: none;
  opacity: 1;
}

.heat i.l1 { background: rgba(178, 106, 67, 0.35); }
.heat i.l2 { background: rgba(178, 106, 67, 0.6); }
.heat i.l3 { background: var(--terra); }
.heat i.l4 { background: var(--gold); }
.heat i.today { outline: 1px solid var(--gold); outline-offset: 2px; }

.heat-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.heat-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  height: 220px;
  margin-top: 8px;
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.bar .v {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cream);
  margin-bottom: 8px;
}

.bar .col {
  width: 100%;
  background: var(--terra);
  border-radius: 6px 6px 2px 2px;
  height: 0;
  transition: height 1.2s var(--ease);
  transition-delay: calc(var(--k) * 120ms);
}

.bar .col.proj {
  background: repeating-linear-gradient(135deg, var(--terra) 0 6px, rgba(178, 106, 67, 0.45) 6px 12px);
}

.bar .m {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-top: 10px;
  color: var(--on-dark-muted);
}

.note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.note b {
  color: var(--cream);
  font-weight: 600;
}

.shelf {
  margin-top: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .shelf {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .shelf {
    grid-template-columns: repeat(4, 1fr);
  }
}

.book {
  position: relative;
  border-radius: 14px;
  padding: 22px 22px 22px 30px;
  background: var(--ink-3);
  border: 1px solid var(--on-dark-faint);
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}

.book::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--spine, var(--terra));
}

.book:hover {
  transform: translateY(-4px) rotate(-0.4deg);
}

.book .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.book h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  margin: 10px 0 4px;
}

.book .by {
  font-size: 13px;
  color: var(--on-dark-muted);
}

.book blockquote {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.4;
  color: var(--gold);
}

/* ---------- lab ---------- */

.lab {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .lab {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .lab {
    grid-template-columns: repeat(6, 1fr);
  }

  .lab .card:nth-child(1),
  .lab .card:nth-child(2) {
    grid-column: span 3;
  }

  .lab .card:nth-child(n + 3) {
    grid-column: span 2;
  }
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--on-light-faint);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.3s;
  transform-style: preserve-3d;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201, 164, 106, 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: rgba(178, 106, 67, 0.5);
}

.card.feature {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}

.card.feature .domain,
.card.feature p {
  color: var(--on-dark-muted);
}

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

.domain {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--on-light-muted);
}

.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip.live { color: #4f8a5b; }
.chip.live::before { animation: pulse 1.6s infinite; }
.chip.build { color: var(--terra); }
.chip.idea { color: var(--on-light-muted); }
.card.feature .chip.live { color: #8fcf9b; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; }
  50% { box-shadow: 0 0 0 4px transparent; }
}

.card .h3 {
  margin: auto 0 10px;
  padding-top: 40px;
  font-size: clamp(26px, 2.6vw, 34px);
}

.card p {
  margin: 0;
  color: var(--on-light-muted);
  font-size: 15.5px;
}

.card .go {
  margin-top: 22px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--terra-deep);
}

.card.feature .go {
  color: var(--gold);
}

.card .glyph {
  position: absolute;
  right: -10px;
  top: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 180px;
  line-height: 1;
  color: var(--terra);
  opacity: 0.08;
  pointer-events: none;
  transition: transform 0.8s var(--ease);
}

.card.feature .glyph {
  color: var(--gold);
  opacity: 0.14;
}

.card:hover .glyph {
  transform: translate(-12px, 8px) rotate(-6deg);
}

/* ---------- notes ---------- */

.notes {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--on-dark-faint);
}

.note-row {
  display: grid;
  gap: 10px 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--on-dark-faint);
  position: relative;
  transition: padding 0.5s var(--ease);
}

@media (min-width: 900px) {
  .note-row {
    grid-template-columns: 180px 1fr 220px;
    align-items: baseline;
  }

  .note-row:hover {
    padding-left: 16px;
  }
}

.note-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}

.note-row:hover::before {
  transform: scaleY(1);
}

.note-row .meta {
  color: var(--clay);
}

.note-row h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  margin: 0;
}

.note-row h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.note-row .take {
  margin: 10px 0 0;
  color: var(--on-dark-muted);
  font-size: 16px;
}

.note-row .links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .note-row .links {
    justify-content: flex-end;
  }
}

.pill-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--on-dark-faint);
  color: var(--on-dark-muted);
  transition: all 0.25s;
}

.pill-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- ikigai teaser ---------- */

.ikigai {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

@media (min-width: 960px) {
  .ikigai {
    grid-template-columns: 1fr 1fr;
  }
}

.venn {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1;
  overflow: visible;
}

.venn circle {
  mix-blend-mode: multiply;
  transition: transform 0.8s var(--ease), opacity 0.4s;
  transform-origin: 260px 260px;
}

.venn text {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ink);
}

.venn .center {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  letter-spacing: 0;
  text-transform: none;
  fill: var(--cream);
}

.venn .core {
  fill: var(--ink);
  transition: r 0.8s var(--ease);
}

.ikigai:hover .venn .core,
.venn:hover .core {
  r: 54;
}

.venn-wrap {
  position: relative;
}

.venn-wrap .spin {
  animation: spin 60s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes spin { to { transform: rotate(360deg); } }

.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 36px;
  display: grid;
  gap: 10px;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 17px;
}

.steps li b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--terra);
  letter-spacing: 0.1em;
}

/* ---------- CTA + footer ---------- */

.cta {
  text-align: center;
  padding: clamp(110px, 14vw, 180px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.cta .display {
  font-size: clamp(48px, 9vw, 132px);
}

.cta .lede {
  margin: 28px auto 40px;
}

.cta .cta-row {
  justify-content: center;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  overflow: hidden;
  padding-bottom: 56px;
}

.giant {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(72px, 21vw, 330px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--cream);
  white-space: nowrap;
  text-align: center;
  margin: 0;
  padding-top: 24px;
  user-select: none;
}

.giant em {
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
}

.giant .ch {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}

.giant.in .ch {
  transform: none;
  opacity: 1;
}

.foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--on-dark-faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot a:hover {
  color: var(--gold);
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .split .w > span,
  .heat i,
  .giant .ch {
    opacity: 1 !important;
    transform: none !important;
  }

  .grain,
  .trail {
    display: none;
  }
}

@media (max-width: 700px) {
  .counter {
    display: none;
  }
}

/* ---------- hero: bilingual lens reveal ---------- */

.hero {
  --lx: 60%;
  --ly: 45%;
  --lr: 0px;
}

.hero .display .w > span {
  background: linear-gradient(110deg, #f4efe6 0%, #ead9c2 28%, #c98c68 48%, #f4efe6 66%, #c9a46a 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow 9s ease-in-out infinite alternate;
}

.hero .display .w > span:has(em) {
  background-image: linear-gradient(110deg, #c9a46a, #e8c88f 40%, #b26a43 70%, #c9a46a);
}

.hero .display .w > span em {
  color: transparent;
}

@keyframes flow {
  to { background-position: 100% 0; }
}

.hero-cn {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 0 40px;
  background: var(--terra);
  color: var(--ink);
  pointer-events: none;
  -webkit-mask: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 97%, transparent 100%);
  mask: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 97%, transparent 100%);
}

.hero-cn .kicker,
.hero-cn .stat span {
  color: rgba(26, 25, 24, 0.75);
}

.hero-cn .display {
  font-family: var(--serif-zh);
  font-weight: 600;
  font-size: clamp(56px, 12vw, 180px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-top: 22px;
  color: var(--ink);
}

.hero-cn .display em {
  font-style: normal;
  color: var(--cream);
}

.hero-cn .hero-zh {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(26, 25, 24, 0.8);
}

.hero-cn .lede {
  color: rgba(26, 25, 24, 0.85);
}

.hero-cn .stats {
  border-top-color: rgba(26, 25, 24, 0.2);
}

.hero-cn .stat b {
  color: var(--ink);
}

.hero-cn .stat b sup {
  color: var(--cream);
}

.lens-ring {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: calc(var(--lr) * 2);
  height: calc(var(--lr) * 2);
  border: 1px solid rgba(201, 164, 106, 0.75);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(calc(var(--lpx) - var(--lr)), calc(var(--lpy) - var(--lr)));
}

.lens-hint {
  position: absolute;
  right: var(--gutter);
  top: 96px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.45);
}

@media (max-width: 700px) {
  .lens-hint {
    display: none;
  }
}

@media (pointer: fine) {
  .hero {
    cursor: none;
  }

  .hero a,
  .hero button {
    cursor: pointer;
  }
}

/* ---------- journal: 3D bookshelf ---------- */

.books {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 380px;
  perspective: 1400px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 20px 4px 18px;
  scrollbar-width: thin;
}

.bk {
  all: unset;
  position: relative;
  flex: 0 0 64px;
  height: 330px;
  border-radius: 6px 10px 10px 6px;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: rotateY(28deg);
  transform-origin: left center;
  transition: flex-basis 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
  box-shadow: 8px 14px 30px -18px rgba(0, 0, 0, 0.8);
}

.bk:hover,
.bk:focus-visible {
  transform: rotateY(14deg) translateY(-8px);
}

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

.bk.open {
  flex-basis: 280px;
  transform: rotateY(0deg) translateY(-12px);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
}

.bk-spine,
.bk-cover {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  transition: opacity 0.45s var(--ease);
}

.bk-spine {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.25)),
    var(--spine);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bk-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.bk-cover {
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 10px, transparent 10px),
    linear-gradient(160deg, color-mix(in srgb, var(--spine) 92%, #fff), var(--spine) 55%, color-mix(in srgb, var(--spine) 70%, #000));
  padding: 26px 22px 22px 30px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.bk.open .bk-spine {
  opacity: 0;
}

.bk.open .bk-cover {
  opacity: 1;
  transition-delay: 0.2s;
}

.bk-cover .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(26, 25, 24, 0.7);
}

.bk-t {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  margin-top: 14px;
}

.bk-cover .by {
  font-size: 13px;
  margin-top: 8px;
  color: rgba(26, 25, 24, 0.75);
}

.bk-q {
  margin-top: auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.3;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.books-hint {
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .bk {
    transform: none !important;
  }
}
