/* =========================================================
   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;
}


.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;
}

.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 52px;
  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: 220px;
  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: var(--spine);
}

.bk-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0 3%, rgba(255, 255, 255, 0.18) 3.5%, transparent 9%);
  pointer-events: none;
}

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

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

.bk.dk .bk-spine span {
  color: var(--cream);
}

.bk.cjk .bk-spine span {
  font-family: "Noto Serif TC", var(--serif);
  text-orientation: upright;
  transform: none;
  letter-spacing: 0.12em;
  font-size: 17px;
}

.bk-cap {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-height: 34px;
}

.bk-cap .meta {
  color: var(--clay);
}

.bk-cap b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
}

.bk-cap .by {
  color: var(--on-dark-muted);
  font-size: 14.5px;
}

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

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

/* ---------- hero v2: light, tech-forward, video scrub ---------- */

.hero2 {
  position: relative;
  /* matches the clip's own backdrop so the figure floats on the page */
  background: #f1ede1;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.h2-video {
  order: 2;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  pointer-events: none;
}

.h2-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.h2-body {
  order: 1;
  position: relative;
  z-index: 2;
}

.h2-main {
  padding-top: 120px;
  padding-bottom: 32px;
  max-width: var(--max);
}

.h2-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(52px, 8.4vw, 112px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 22px 0 28px;
  min-height: 2.1em;
  white-space: pre-wrap;
  max-width: 11ch;
}

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

.h2-title .zhl {
  font-family: var(--serif-zh);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.8em;
}

.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 4px;
  background: var(--terra);
  vertical-align: -0.1em;
  animation: blink 1s step-end infinite;
}

.tw-cursor.done {
  display: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.h2-lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: #5e564e;
  max-width: 40ch;
  margin: 0;
}

.h2-zh {
  margin: 12px 0 0;
  color: var(--on-light-muted);
  font-size: 17px;
}

.h2-pick {
  margin-top: 44px;
  max-width: 560px;
}

.h2-q {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.h2-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--on-light-muted);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font: 500 15px var(--sans);
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(26, 25, 24, 0.12);
  background: #fffdf9;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s;
}

.pill:hover {
  background: #efe7da;
}

.pill:active {
  transform: scale(0.96);
}

.pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 8px 20px -10px rgba(26, 25, 24, 0.5);
}

.pill .tick {
  display: inline-block;
  color: var(--gold);
  animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pop {
  from { transform: scale(0) rotate(-30deg); }
  to { transform: none; }
}

.pick-status {
  margin-top: 18px;
  min-height: 64px;
}

.pick-empty {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  opacity: 0.5;
}

.pick-ready {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 14px 20px;
  border-radius: 18px;
  background: #fffdf9;
  border: 1px solid rgba(26, 25, 24, 0.1);
  font-size: 15px;
  animation: grow 0.5s var(--ease);
}

.pick-ready a {
  font: 600 12px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-deep);
  white-space: nowrap;
}

@keyframes grow {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.h2-in {
  opacity: 0;
  transform: translateY(20px);
  animation: dropIn 0.7s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes dropIn {
  to { opacity: 1; transform: none; }
}

@media (min-width: 1024px) {
  .hero2 {
    min-height: 100svh;
    display: block;
  }

  .h2-video {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    aspect-ratio: auto;
    z-index: 0;
  }

  .h2-video video {
    /* show the whole clip; its cream backdrop melts into the page */
    object-fit: contain;
    object-position: right center;
    /* feather the clip's edges so no rectangle shows */
    -webkit-mask: radial-gradient(ellipse 46% 40% at 72% 50%, #000 62%, transparent 100%);
    mask: radial-gradient(ellipse 46% 40% at 72% 50%, #000 62%, transparent 100%);
  }

  .h2-body {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }

  .h2-main {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  /* keep text readable over the figure */
  .h2-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f1ede1 30%, rgba(241, 237, 225, 0.75) 48%, transparent 66%);
    z-index: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .h2-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- hero v3: X-ray scan reveal ---------- */

.hx {
  --x: -999px;
  --y: -999px;
  --r: 240px;
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #b5582a;
  color: #fff;
  font-family: var(--mono);
}

.hx-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
}

.hx-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 70% center;
}

.hx-base {
  z-index: 1;
  background-image: url("assets/hero-base.jpg");
  animation: kenBurns 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hx-xray {
  z-index: 2;
  background-image: url("assets/hero-xray.jpg");
  animation: kenBurns 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, #000 40%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.4) 75%, rgba(0, 0, 0, 0.12) 88%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 0%, #000 40%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.4) 75%, rgba(0, 0, 0, 0.12) 88%, transparent 100%);
}

@media (max-width: 760px) {
  .hx-base { background-image: url("assets/hero-base-m.jpg"); background-position: 72% center; }
  .hx-xray { background-image: url("assets/hero-xray-m.jpg"); background-position: 72% center; }
}

@keyframes kenBurns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.hx-ring {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: calc(var(--r) * 1.1);
  height: calc(var(--r) * 1.1);
  border-radius: 50%;
  border: 1px solid rgba(63, 208, 224, 0.45);
  box-shadow: 0 0 40px rgba(63, 208, 224, 0.15) inset;
  transform: translate(calc(var(--x) - var(--r) * 0.55), calc(var(--y) - var(--r) * 0.55));
  pointer-events: none;
}

.hx-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(60, 22, 6, 0.45), transparent 45%), linear-gradient(0deg, rgba(26, 12, 4, 0.55), transparent 50%);
}

@media (max-width: 760px) {
  .hx-shade {
    background: linear-gradient(0deg, rgba(26, 12, 4, 0.82) 0%, rgba(26, 12, 4, 0.55) 45%, transparent 70%);
  }
}

.hx-arcs {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  display: none;
}

@media (min-width: 640px) {
  .hx-arcs { display: block; }
}

.hx-arcs .arc-line {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: arcDraw 1.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: var(--d);
}

.hx-arcs .arc-dot {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--d);
}

.hx-arcs .arc-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulseRing 2.8s ease-in-out infinite;
  animation-delay: var(--d);
}

.hx-arcs .arc-text {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
  animation-delay: var(--d);
}

@keyframes arcDraw { to { stroke-dashoffset: 0; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: 0.35; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.hx-text {
  position: absolute;
  z-index: 5;
  left: clamp(20px, 4vw, 56px);
  bottom: clamp(48px, 9vh, 96px);
  max-width: min(520px, 88vw);
}

.hx-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 18px;
}

.hx-eyebrow i {
  font-style: normal;
  font-family: var(--serif-zh);
  letter-spacing: 0.2em;
}

.hx-title {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
}

.hx-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #3fd0e0;
}

.hx-zh {
  font-family: var(--serif-zh);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.12em;
  margin: 10px 0 0;
}

.hx-lede {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 20px 0 28px;
  max-width: 46ch;
}

.hx-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hx-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 14px var(--mono);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease);
}

.hx-btn:hover { transform: scale(1.04); }
.hx-btn:active { transform: scale(0.95); }

.hx-btn.ghost {
  background: rgba(26, 25, 24, 0.35);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.hx-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.hx-btn:hover .hx-shine { transform: translateX(100%); }

.hx-hint {
  position: absolute;
  z-index: 5;
  right: clamp(20px, 4vw, 56px);
  bottom: 22px;
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hx-rise {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  animation: hxRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes hxRise { to { opacity: 1; transform: none; filter: none; } }

@media (pointer: fine) {
  .hx { cursor: crosshair; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-base, .hx-xray, .hx-rise, .hx-arcs * { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; stroke-dashoffset: 0 !important; }
}

/* ---------- lab: card media ---------- */

.card-media {
  margin: -28px -28px 22px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--on-light-faint);
  background: #e9e2d6;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease);
}

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

.card-media.pink {
  background: #f4d3e2;
}

/* ---------- notes: thumbnails ---------- */

.note-thumb {
  display: block;
  width: 96px;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--on-dark-faint);
  align-self: center;
}

.note-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.note-row:hover .note-thumb img {
  transform: scale(1.06);
}

@media (min-width: 900px) {
  .note-row {
    grid-template-columns: 104px 170px 1fr 220px;
  }

  .note-thumb {
    width: 104px;
  }
}

/* ---------- icons ---------- */

.ico {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -2px;
  margin-right: 7px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
}

/* ---------- waitlist ---------- */

.waitlist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.waitlist input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  color: var(--on-dark);
  background: rgba(244, 239, 230, 0.06);
  border: 1px solid var(--on-dark-faint);
  border-radius: 999px;
  padding: 14px 20px;
}

.waitlist input[type="email"]::placeholder {
  color: var(--on-dark-muted);
}

.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
}

.waitlist .hp {
  position: absolute;
  left: -9999px;
}

.waitlist-note {
  margin: 14px auto 0;
  font-size: 13.5px;
  color: var(--on-dark-muted);
}

.waitlist-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- lab: ikigai illustration + button ---------- */

.card-venn {
  width: min(78%, 340px);
  margin: 8px auto 4px;
  display: block;
  overflow: visible;
}

.card-venn .spin {
  transform-origin: 160px 120px;
  animation: vennSpin 36s linear infinite;
  mix-blend-mode: screen;
}

.card-venn circle:not(.core) {
  opacity: 0.55;
}

.card-venn .core {
  fill: var(--cream);
}

.card-venn text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  fill: var(--ink);
}

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

.card.feature .go-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--terra);
  color: var(--cream);
  font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}

.card.feature:hover .go-btn {
  background: var(--clay);
  transform: translateX(4px);
}

/* ---------- journal: still learning ---------- */

.learn {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}

.learn-k {
  color: var(--clay);
  margin-right: 6px;
}

.learn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--on-dark-faint);
  border-radius: 14px;
  background: var(--ink-2);
}

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

.learn-item span {
  font-size: 13px;
  color: var(--on-dark-muted);
}

.learn-badge {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  flex: none;
}

.learn-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(63, 208, 224, 0.12);
  color: #3fd0e0 !important;
  font-size: 16px !important;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .card-venn .spin { animation: none; }
}

/* ---------- ikigai teaser: bloom ---------- */

.ikt {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #120f0d;
  color: var(--cream);
}

.ikt .bloom-media {
  position: absolute;
  inset: -20px;
  will-change: transform;
  transform: scale(1.06);
}

.ikt .bloom-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 35%;
}

.ikt .petals {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ikt-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.85) 0%, rgba(18, 15, 13, 0.45) 36%, rgba(18, 15, 13, 0) 62%),
    linear-gradient(0deg, rgba(18, 15, 13, 0.6), rgba(18, 15, 13, 0) 40%);
}

.ikt-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: clamp(90px, 10vw, 140px);
  padding-bottom: clamp(90px, 10vw, 140px);
}

.glass {
  background: linear-gradient(140deg, rgba(244, 239, 230, 0.16), rgba(244, 239, 230, 0.05));
  border: 1px solid rgba(244, 239, 230, 0.22);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ikt-card {
  max-width: 560px;
  border-radius: 26px;
  padding: clamp(24px, 3.4vw, 40px);
}

.ikt-card .kicker {
  color: #9fe6ee;
}

.ikt-card .h2 {
  margin-top: 14px;
  color: var(--cream);
}

.ikt-card .h2 em {
  color: #f0c9a8;
}

.ikt-card .lede {
  margin-top: 18px;
  color: rgba(244, 239, 230, 0.86);
}

.ikt-card .steps {
  margin: 22px 0 28px;
}

.ikt-card .steps li {
  color: var(--cream);
}

.ikt-card .steps li b {
  color: #f0c9a8;
}

@media (max-width: 760px) {
  .ikt {
    display: block;
    min-height: 0;
  }

  .ikt .bloom-media {
    inset: 0 0 auto 0;
    height: 62vh;
    transform: none !important;
    -webkit-mask-image: linear-gradient(#000 60%, transparent);
    mask-image: linear-gradient(#000 60%, transparent);
  }

  .ikt .bloom-media img {
    object-position: 50% 20%;
  }

  .ikt-shade {
    background: linear-gradient(0deg, #120f0d 0%, #120f0d 40%, rgba(18, 15, 13, 0.35) 55%, rgba(18, 15, 13, 0) 70%);
  }

  .ikt-inner {
    padding-top: 44vh;
    padding-bottom: 72px;
  }

  .ikt-card {
    background: linear-gradient(140deg, rgba(30, 25, 22, 0.72), rgba(30, 25, 22, 0.55));
  }
}

/* ---------- 生き甲斐 ---------- */

.jp-v,
.jp-inline,
[lang="ja"] {
  font-family: "Noto Serif JP", "Noto Serif TC", var(--serif);
}

.jp-v {
  position: absolute;
  top: clamp(22px, 3vw, 36px);
  right: clamp(18px, 2.4vw, 30px);
  writing-mode: vertical-rl;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #f0c9a8;
  opacity: 0.9;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.ikt-card {
  position: relative;
  padding-right: clamp(70px, 8vw, 96px);
}

.jp-inline {
  font-size: 0.55em;
  font-weight: 500;
  color: var(--gold);
  margin-left: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- ikigai icon tiles ---------- */

.ik-tile {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px -14px rgba(0, 0, 0, 0.7);
  flex: none;
}

.ik-tile svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ik-tile em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ik-tile em:empty {
  display: none;
}

.t-love { background: linear-gradient(150deg, #f4b3a2, #d8735f); }
.t-good { background: linear-gradient(150deg, #e2c487, #b88d4d); }
.t-need { background: linear-gradient(150deg, #6fdde9, #2a9fb0); }
.t-val { background: linear-gradient(150deg, #cf8a63, #9a5532); }

.ik-tile.t-sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.ik-tile.t-sm svg {
  width: 17px;
  height: 17px;
}

.ik-steps li {
  align-items: center;
}

.ikt-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2vw, 24px);
  color: #9fe6ee;
  margin: 8px 0 0;
}
