:root {
  --bg: #F8F5FF;
  --bg-dim: #F0EAFE;
  --paper: #FFFFFF;

  --ink: #14151A;
  --muted: #6C6E76;
  --faint: #9B9C9F;

  --accent: #5B4FE8;
  --accent-deep: #4A3FCC;
  --accent-soft: #ECEAFB;

  --coral: #F2603B;
  --coral-soft: #FCE6DE;

  --line: #E1DFD5;

  --display: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 4%, rgba(242, 96, 59, 0.18), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(91, 79, 232, 0.22), transparent 34rem),
    linear-gradient(145deg, #fff8ef 0%, #f8f5ff 48%, #eef7ff 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1080px, 90vw);
  margin: auto;
}

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

/* ---------- TYPE HELPERS ---------- */

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow.muted { color: var(--muted); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
}

strong, b { font-weight: 700; }

/* ---------- BACKGROUND TEXTURE ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

/* ---------- HEADER ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 245, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.brand-title {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  background: linear-gradient(100deg, var(--accent-deep), #8b43d7 52%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  display: block;
  padding-left: 2px;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-subtitle strong {
  color: var(--coral);
  font-size: 10px;
}

.brand-logo {
  width: 36px;
  height: 44px;
  border-radius: 7px;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes subscription-logo-glow {
  0% { filter: none; transform: scale(1); }
  30% { filter: drop-shadow(0 0 8px rgba(91, 79, 232, 0.8)) drop-shadow(0 0 18px rgba(242, 96, 59, 0.55)); transform: scale(1.12); }
  65% { filter: drop-shadow(0 0 12px rgba(91, 79, 232, 0.65)); transform: scale(1.06); }
  100% { filter: none; transform: scale(1); }
}

.subscription-celebration .brand-logo {
  animation: subscription-logo-glow 2.1s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .subscription-celebration .brand-logo {
    animation: none;
    filter: drop-shadow(0 0 10px rgba(91, 79, 232, 0.65));
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
}

.header-nav a { color: var(--muted); }
.header-nav a:hover { color: var(--ink); }

.header-nav a.cta {
  color: var(--paper);
  background: var(--ink);
  padding: 9px 16px;
  border-radius: 100px;
}

.header-nav a.cta:hover { background: var(--accent-deep); }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  padding: 100px 0 70px;
  overflow: hidden;
}

.animated-brain {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-visual.is-rotatable {
  cursor: grab;
  touch-action: none;
  user-select: none;
  will-change: rotate;
}

.hero-visual.is-rotatable:active { cursor: grabbing; }

.hero-visual.is-rotatable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 18px;
}

.entry-page .container { position: relative; }

.entry-brain {
  position: absolute;
  top: 80px;
  right: 0;
  width: min(28vw, 320px);
}

.brain-puzzle-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.brain-puzzle {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  touch-action: none;
  border-radius: 16px;
  background: transparent;
}

.puzzle-ghost {
  fill: none;
  stroke: #b9c6cb;
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  transition: opacity 180ms ease;
}

.puzzle-divider {
  stroke: #d8d3c6;
  stroke-width: 1;
}

.puzzle-piece { cursor: grab; }
.puzzle-piece.is-dragging { cursor: grabbing; }
.puzzle-piece.is-placed { cursor: default; }

.puzzle-piece path {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
  opacity: 0.98;
  filter:
    drop-shadow(0 0 4px currentColor)
    drop-shadow(0 0 10px color-mix(in srgb, currentColor 65%, transparent));
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.puzzle-piece.is-placed path {
  stroke-width: 1.5;
  opacity: 1;
  filter:
    drop-shadow(0 0 5px currentColor)
    drop-shadow(0 0 13px color-mix(in srgb, currentColor 80%, transparent));
}

.puzzle-piece text {
  display: none;
  fill: #fff;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.puzzle-piece.is-placed text { display: block; }

.puzzle-complete-mark {
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}

.complete-brain-outline {
  fill: rgba(16, 42, 58, 0.08);
  stroke: #102a3a;
  stroke-width: 4;
  filter: drop-shadow(0 0 10px rgba(42, 161, 152, 0.75));
}

.complete-brain-fold {
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 2;
  stroke-linecap: round;
}

.brain-signals path {
  fill: none;
  stroke: #6fe3c9;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px #2aa198);
}

.brain-signals circle {
  fill: #eaf6f4;
  stroke: #2aa198;
  stroke-width: 2;
  filter: drop-shadow(0 0 6px #6fe3c9);
  transform-box: fill-box;
  transform-origin: center;
}

.brain-puzzle-host.is-complete .puzzle-complete-mark {
  opacity: 1;
  animation: completed-brain-glow 1.8s ease-in-out infinite;
}

.brain-puzzle-host.is-complete .puzzle-piece path {
  animation: completed-piece-signal 1.8s ease-in-out infinite alternate;
}

.brain-puzzle-host.is-complete .puzzle-piece:nth-of-type(2n) path {
  animation-delay: -0.9s;
}

.brain-puzzle-host.is-complete .brain-signals path {
  animation: completed-signal-travel 1.2s linear infinite;
}

.brain-puzzle-host.is-complete .brain-signals circle {
  animation: completed-node-pulse 1s ease-in-out infinite alternate;
}

.brain-puzzle-host.is-complete .brain-signals circle:nth-child(2n) {
  animation-delay: -0.5s;
}

@keyframes completed-brain-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

@keyframes completed-signal-travel {
  to { stroke-dashoffset: -56; }
}

@keyframes completed-node-pulse {
  from { opacity: 0.55; transform: scale(0.75); }
  to { opacity: 1; transform: scale(1.35); }
}

@keyframes completed-piece-signal {
  from { filter: drop-shadow(0 0 5px currentColor); }
  to { filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 18px currentColor); }
}

@media (prefers-reduced-motion: reduce) {
  .brain-puzzle-host.is-complete .puzzle-complete-mark,
  .brain-puzzle-host.is-complete .puzzle-piece path,
  .brain-puzzle-host.is-complete .brain-signals path,
  .brain-puzzle-host.is-complete .brain-signals circle {
    animation: none;
  }
}

.brain-puzzle-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.brain-puzzle-status {
  color: var(--muted);
  font-size: 13px;
}

.brain-puzzle-reset {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.brain-puzzle-reset:hover { border-color: var(--accent); }

.brain-puzzle-background {
  position: absolute;
  inset: -70px -40px -70px 34%;
  z-index: 0;
  width: auto;
  max-width: none;
  opacity: 0.14;
  pointer-events: none;
  filter: saturate(0.85);
}

.hero-grid > div:first-child {
  position: relative;
  z-index: 1;
}

.brain-puzzle-background .brain-puzzle {
  height: 100%;
  background: transparent;
}

.brain-puzzle-background .puzzle-ghost,
.brain-puzzle-background .puzzle-divider,
.brain-puzzle-background .brain-puzzle-controls {
  display: none;
}

.entry-brain.brain-puzzle-background {
  top: 35px;
  right: -80px;
  bottom: auto;
  left: auto;
  z-index: 0;
  width: min(38vw, 430px);
  height: 450px;
  opacity: 0.09;
}

.entry-page .container > :not(.entry-brain) {
  position: relative;
  z-index: 1;
}

.brain-connections {
  fill: none;
  stroke: #1f3b4d;
  stroke-width: 1.4;
  opacity: 0.35;
}

.brain-pulses line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 18 100;
  path-length: 100;
  animation: brain-travel 3s ease-in-out infinite;
}

.brain-pulses line:nth-child(4n + 2) { stroke: #2aa198; animation-delay: -0.8s; }
.brain-pulses line:nth-child(4n + 3) { stroke: #e8a33d; animation-delay: -1.6s; }
.brain-pulses line:nth-child(4n) { stroke: #6fe3c9; animation-delay: -2.3s; }

.brain-nodes circle {
  animation: brain-breathe 3.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.brain-nodes circle:nth-child(3n + 2) { animation-delay: -1.1s; }
.brain-nodes circle:nth-child(3n) { animation-delay: -2.2s; }

@keyframes brain-travel {
  0% { stroke-dashoffset: 0; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { stroke-dashoffset: -118; opacity: 0; }
}

@keyframes brain-breathe {
  0%, 100% { transform: scale(0.82); opacity: 0.75; }
  50% { transform: scale(1.25); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .brain-pulses line,
  .brain-nodes circle { animation: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  margin: 18px 0 22px;
}

.hero h1 .accent-word {
  color: var(--accent);
  font-style: italic;
}

.hero-lede {
  max-width: 46ch;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual {
  aspect-ratio: 1 / 1;
  position: relative;
}

/* ---------- TOC (numbered index) ---------- */

.toc {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.toc-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.toc-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.toc-row:hover { background: var(--paper); }

.toc-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.toc-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
}

.toc-desc {
  color: var(--muted);
  font-size: 14px;
  display: none;
}

.toc-arrow {
  font-size: 18px;
  color: var(--faint);
  transition: transform 0.15s ease, color 0.15s ease;
}

.toc-row:hover .toc-arrow { color: var(--accent); transform: translateX(4px); }

.mobile-section-guide {
  display: none;
}

.mobile-swipe-hint {
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.mobile-section-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px max(5vw, 18px) 18px;
  margin-inline: min(-5vw, -18px);
  scroll-padding-inline: max(5vw, 18px);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-section-slider::-webkit-scrollbar {
  display: none;
}

.mobile-section-card {
  flex: 0 0 min(82vw, 330px);
  min-height: 260px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 20px;
  background: linear-gradient(145deg, var(--paper), color-mix(in srgb, var(--accent-soft) 65%, var(--paper)));
  box-shadow: 0 15px 38px rgba(74, 63, 204, 0.08);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.mobile-section-num {
  color: var(--accent);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.mobile-section-card h3 {
  margin: 18px 0 10px;
  font-size: 25px;
  line-height: 1.15;
}

.mobile-section-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.mobile-section-card a {
  margin-top: auto;
  color: var(--accent);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- SECTIONS ---------- */

.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 14px;
}

.section-head .num {
  font-family: var(--display);
  font-size: 15px;
  color: var(--accent);
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-tag {
  color: var(--muted);
  max-width: 56ch;
  font-size: 16px;
  margin: 14px 0 46px;
}

/* card */

.card {
  background: var(--paper);
  border-radius: 16px;
  padding: 40px;
}

/* tag pill */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12.5px;
  font-weight: 600;
}

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

.section-content-after-tags {
  margin-top: 34px;
}

/* two column layout */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* research focus list */

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.focus-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.focus-item:first-child { padding-top: 0; }
.focus-item:last-child { border-bottom: none; }

.focus-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 8px;
}

.focus-item h4 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.focus-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* project cards */

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.project-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card h3 {
  font-size: 20px;
}

.project-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  flex-grow: 1;
}

/* thinking / daily teaser cards */

.thinking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.thinking-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 28px;
  display: block;
}

.thinking-date {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.thinking-card h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin: 12px 0 10px;
  line-height: 1.3;
}

.thinking-card p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* about section */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--display);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

.about-copy p {
  font-size: 17px;
  color: var(--ink);
  max-width: 60ch;
}

.about-copy p.dim { color: var(--muted); font-size: 15px; }

.values-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.values-row {
  display: flex;
  gap: 14px;
  font-size: 14.5px;
}

.values-row strong {
  font-family: var(--display);
  font-weight: 600;
  min-width: 130px;
  color: var(--ink);
}

.values-row span { color: var(--muted); }

/* ---------- FOOTER ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 50px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links a:hover { color: var(--accent); }

.visitor-count {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.visitor-count strong {
  color: var(--accent);
  font-family: var(--display);
  font-size: 15px;
}

/* ---------- SUBSCRIBE ---------- */

.subscribe-section {
  padding: 0 0 72px;
}

.subscribe-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: 22px;
  background: linear-gradient(135deg, var(--paper), var(--accent-soft));
}

.subscribe-card h2 {
  margin: 10px 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.subscribe-card > div > p:last-child {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
}

.subscribe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.subscribe-form input[type="email"] {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.subscribe-form .btn {
  border: 0;
  cursor: pointer;
}

.subscribe-form .btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.subscribe-status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.subscription-thank-you {
  grid-column: 1 / -1;
  display: none;
  margin-top: 8px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 88%, var(--accent-soft));
  box-shadow: 0 16px 38px rgba(74, 63, 204, 0.08);
}

.subscription-thank-you.is-visible {
  display: block;
  animation: subscription-note-in 420ms ease-out both;
}

.subscription-thank-you h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.subscription-thank-you p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.subscription-thank-you p:last-child {
  margin-bottom: 0;
}

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

.subscribe-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

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

/* ---------- DAILY / JOURNAL LIST ---------- */

.daily-hero {
  padding: 80px 0 50px;
}

.daily-list {
  display: flex;
  flex-direction: column;
}

.daily-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  padding: 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.daily-row:first-child { border-radius: 16px 16px 0 0; }
.daily-row:last-child { border-radius: 0 0 16px 16px; border-bottom: none; }

.daily-row:hover { background: #FCFCFA; }

.daily-date {
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 2px;
}

.daily-row h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.daily-row p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty-state {
  background: var(--paper);
  border-radius: 16px;
  padding: 50px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- ENTRY PAGE ---------- */

.entry-page { padding: 60px 0 110px; }

.entry-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 40px;
}

.entry-back:hover { color: var(--accent); }

.entry-page h1 {
  font-size: clamp(32px, 4.5vw, 50px);
  max-width: 20ch;
  margin: 16px 0 40px;
  line-height: 1.12;
}

.entry-body {
  max-width: 680px;
  font-size: 18px;
  color: var(--ink);
}

.entry-body p { margin: 0 0 24px; }
.entry-body p:last-child { margin-bottom: 0; }

.entry-bullets {
  margin: 30px 0 0;
  padding-left: 1.4em;
}

.entry-bullets li {
  margin-bottom: 18px;
  padding-left: 0.35em;
}

.entry-bullets li::marker {
  color: var(--coral);
}

.entry-image {
  display: block;
  width: 100%;
  max-height: 760px;
  margin: 0 0 32px;
  border-radius: 16px;
  object-fit: cover;
}

.entry-body::first-letter {
  font-family: var(--display);
  font-size: 3.2em;
  line-height: 0.8;
  float: left;
  padding-right: 0.08em;
  color: var(--accent);
}

.entry-footer {
  max-width: 680px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.entry-reaction {
  max-width: 680px;
  margin-top: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.entry-like-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 13px/1 var(--body);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.entry-like-button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.entry-like-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  outline-offset: 2px;
}

.entry-like-button.is-liked {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  color: var(--accent-deep);
}

.entry-like-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.entry-like-count {
  min-width: 1.6em;
  padding-left: 9px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.entry-like-icon {
  font-size: 18px;
  filter: grayscale(1);
  transition: filter 160ms ease, transform 160ms ease;
}

.entry-like-button.is-liked .entry-like-icon {
  filter: none;
  transform: scale(1.08);
}

.entry-like-note {
  color: var(--muted);
  font-size: 13px;
}

.entry-feedback {
  max-width: 680px;
  margin-top: 48px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.entry-feedback h2 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 4vw, 32px);
}

.entry-feedback > p:not(.eyebrow) {
  margin: 0 0 22px;
  color: var(--muted);
}

.entry-feedback-form {
  display: grid;
  gap: 10px;
}

.entry-feedback-form label {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
}

.entry-feedback-form input,
.entry-feedback-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.entry-feedback-form textarea { resize: vertical; }

.entry-feedback-form input:focus,
.entry-feedback-form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

.entry-feedback-form .btn {
  justify-self: start;
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

/* ---------- MOBILE ---------- */

@media (max-width: 860px) {
  .hero-grid, .split, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 260px; margin: auto; }
  .entry-brain {
    position: relative;
    top: auto;
    right: auto;
    width: 220px;
    margin: 0 auto 32px;
  }
  .project-grid { grid-template-columns: 1fr; }
  .thinking-grid { grid-template-columns: 1fr; }
  .header-nav { gap: 16px; }
  .header-nav .section-link { display: none; }
  .daily-row { grid-template-columns: 1fr; gap: 8px; }
  .toc { padding: 54px 0; }
  .toc-list { display: none; }
  .mobile-section-guide { display: block; }
  .subscribe-card { grid-template-columns: 1fr; gap: 28px; }
  .brand-title { font-size: 25px; }
  .brand-logo { width: 30px; height: 37px; }
  .brand-subtitle { font-size: 7px; }
}
