/* =========================================================
   LogicLeap Labs — labs.logic-leap.co.uk
   Palette locked from brand/visual-direction.md
   Accent = brand pink #EB0071 (matches logo + OG assets)
   ========================================================= */

:root {
  --ink:        #0B0B0E;
  --panel:      #101218;
  --panel-2:    #14171F;
  --paper:      #F7F6F3;
  --slate:      #9498A2;
  --slate-dim:  #6B6F78;
  --hairline:   #1B1D24;
  --accent:     #EB0071;
  --accent-dim: #B80059;
  --defect:     #F87171;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 48px);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle technical grid backdrop */
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
}
body::before {
  /* fade the grid out so it stays a whisper */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(11,11,14,0) 0%, rgba(11,11,14,0.82) 55%, var(--ink) 100%);
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

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

code, pre { font-family: var(--font-mono); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 11, 14, 0.72);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand img { display: block; height: 26px; width: auto; }
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  font-size: 15px;
  font-weight: 500;
}
.header-nav > a:not(.header-cta) { color: var(--slate); transition: color .15s ease; }
.header-nav > a:not(.header-cta):hover { color: var(--paper); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--paper);
  transition: border-color .15s ease, background .15s ease;
}
.header-cta:hover { border-color: var(--accent); background: rgba(235, 0, 113,0.08); }

/* ===== Hero ===== */
.hero { padding: clamp(64px, 12vw, 132px) 0 clamp(48px, 8vw, 88px); }
.hero-inner { max-width: 880px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
  margin-bottom: 28px;
}
.pass-pill {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(235, 0, 113, 0.1);
  border: 1px solid rgba(235, 0, 113, 0.35);
  padding: 3px 8px;
  border-radius: 5px;
}

.hero-title {
  font-size: clamp(44px, 8.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 28px;
}

.hero-sub {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.5;
  color: var(--slate);
  max-width: 640px;
  margin: 0 0 40px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #FF3D97; }
.btn-ghost { border-color: var(--hairline); color: var(--paper); }
.btn-ghost:hover { border-color: var(--slate); background: rgba(255,255,255,0.03); }

/* ===== Terminal ===== */
.terminal {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.8);
}
.hero-terminal { max-width: 720px; }

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--hairline);
}
.dots { display: inline-flex; gap: 7px; }
.dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #2a2e38; display: block;
}
.dots i:first-child { background: #3a3340; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-dim);
  letter-spacing: 0.03em;
}
.copy-btn {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 5px 11px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.copy-btn:hover { color: var(--paper); border-color: var(--slate-dim); }
.copy-btn.copied {
  color: var(--accent);
  border-color: rgba(235, 0, 113,0.5);
  background: rgba(235, 0, 113,0.08);
}

.terminal-body {
  margin: 0;
  padding: 20px 22px;
  font-size: 14.5px;
  line-height: 1.85;
  overflow-x: auto;
  white-space: pre;
}
.terminal-body code { color: var(--paper); }
.terminal-body .cmt { color: var(--slate-dim); }
.terminal-body .prompt { color: var(--accent); user-select: none; padding-right: 4px; }
.terminal-body .arg { color: var(--accent); }

/* ===== Why ===== */
.why {
  padding: clamp(40px, 7vw, 72px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.why-line {
  max-width: 920px;
  margin: 0;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.38;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.why-line em { font-style: italic; color: var(--paper); }
.why-line .accent { font-weight: 600; }

/* ===== Plugins ===== */
.plugins { padding: clamp(64px, 10vw, 112px) 0; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-title {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--slate);
  margin: 0;
  max-width: 560px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: stretch;
  max-width: 1180px;
  margin-inline: auto;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20,23,31,0.6) 0%, rgba(16,18,24,0.6) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(235, 0, 113,0.4); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}

.card-top { margin-bottom: 18px; }
.card-name {
  font-size: 14px;
  margin: 0 0 12px;
  font-weight: 600;
}
.mono-accent {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(235, 0, 113,0.08);
  border: 1px solid rgba(235, 0, 113,0.22);
  padding: 3px 9px;
  border-radius: 7px;
}
.card-tagline {
  font-size: 19px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--paper);
}
.card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
  margin: 0 0 22px;
  flex: 1 1 auto;
}
.card-body code {
  font-size: 12.5px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--hairline);
  padding: 1px 5px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.card-terminal { margin-top: auto; }
.terminal-bar.mini { padding: 9px 12px; }
.card-terminal .terminal-body {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.plugins-foot {
  margin: 44px 0 0;
  font-size: 15px;
  color: var(--slate);
  max-width: 760px;
}
.plugins-foot code {
  font-size: 13px;
  color: var(--paper);
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ===== Closing ===== */
.closing {
  padding: clamp(64px, 10vw, 104px) 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-title {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 16px;
}
.closing-sub {
  font-size: 18px;
  color: var(--slate);
  margin: 0 auto;
  max-width: 540px;
}
.closing .hero-actions { justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 40px;
  background: rgba(11,11,14,0.6);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { display: block; border-radius: 9px; }
.footer-name { margin: 0; font-weight: 700; font-size: 16px; }
.footer-tag { margin: 2px 0 0; font-size: 14px; color: var(--slate); }
.footer-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.footer-links a { color: var(--slate); transition: color .15s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-credit {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--slate-dim);
}
.footer-credit p { margin: 0; }

/* ===== Responsive ===== */
/* The plugins grid uses auto-fit + minmax(280px, 1fr), so it reflows
   3-up → 2-up → 1-up on its own as the viewport narrows. No column-count
   overrides needed; just tighten the gap on small screens. */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .card-grid { gap: 18px; }
  .header-nav { gap: 14px; font-size: 14px; }
  .header-nav a[href="#why"] { display: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .terminal-body { font-size: 13px; padding: 16px 16px; }
}

/* =========================================================
   Writing — index + article/prose typography
   Pink-accented to match the rest of the site. No green.
   ========================================================= */

/* ----- Writing index ----- */
.writing-head {
  padding: clamp(56px, 10vw, 104px) 0 clamp(24px, 4vw, 40px);
}
.writing-head .eyebrow { margin-bottom: 22px; }
.writing-title {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
}
.writing-intro {
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.5;
  color: var(--slate);
  max-width: 600px;
  margin: 0;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  max-width: 820px;
}
.post-list li { border-bottom: 1px solid var(--hairline); }
.post-link {
  display: block;
  padding: 30px 0;
  transition: opacity .15s ease;
}
.post-link:hover .post-title { color: var(--accent); }
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-dim);
  margin-bottom: 12px;
}
.post-kind {
  color: var(--accent);
  background: rgba(235, 0, 113, 0.08);
  border: 1px solid rgba(235, 0, 113, 0.22);
  padding: 2px 8px;
  border-radius: 6px;
}
.post-title {
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--paper);
  transition: color .15s ease;
}
.post-dek {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
  max-width: 640px;
}

.writing-section { padding: clamp(8px, 2vw, 24px) 0 clamp(64px, 10vw, 96px); }

/* ----- Article page ----- */
.article {
  padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 10vw, 96px);
}
.article-inner {
  max-width: 680px;
  margin: 0 auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 36px;
  transition: color .15s ease;
}
.back-link:hover { color: var(--accent); }
.back-link svg { display: block; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-dim);
  margin-bottom: 18px;
}
.article-meta .post-kind { text-transform: uppercase; }

.article-title {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 18px;
}
.article-dek {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.45;
  color: var(--slate);
  margin: 0 0 40px;
  font-weight: 400;
}

.prose { font-size: 18px; line-height: 1.72; color: #DEDCD6; }
.prose > * + * { margin-top: 1.25em; }
.prose p { margin: 0; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose em { font-style: italic; color: var(--paper); }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(235, 0, 113, 0.4);
  transition: text-decoration-color .15s ease;
}
.prose a:hover { text-decoration-color: var(--accent); }

.prose h2 {
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 2em 0 0;
  color: var(--paper);
}
.prose h2 + p { margin-top: 0.7em; }
.prose h3 {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  margin: 1.8em 0 0;
  letter-spacing: -0.01em;
}
.prose h3 + p { margin-top: 0.55em; }

.prose code {
  font-size: 0.86em;
  color: var(--paper);
  background: var(--panel);
  border: 1px solid var(--hairline);
  padding: 1px 6px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.prose ul, .prose ol { margin: 1.25em 0 0; padding-left: 1.3em; }
.prose li { margin: 0.5em 0; }
.prose li::marker { color: var(--accent); }

.prose blockquote {
  margin: 1.5em 0 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--paper);
  font-size: 1.05em;
  font-weight: 500;
}
.prose blockquote p { margin: 0; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.2em 0 0;
}

/* Principle list — punchy one-liners */
.principle {
  margin: 1.6em 0 0;
  padding-top: 1.6em;
  border-top: 1px solid var(--hairline);
}
.principle:first-of-type { border-top: 0; padding-top: 0; }
.principle-line {
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 10px;
}
.principle-line .accent { color: var(--accent); }
.principle p { margin: 0; color: var(--slate); font-size: 16.5px; line-height: 1.6; }

/* Article terminals reuse .terminal; pin spacing within prose */
.prose .terminal { margin-top: 1.35em; max-width: 100%; }

.article-foot {
  margin-top: clamp(48px, 8vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.article-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 620px) {
  .prose { font-size: 16.5px; }
  .header-nav a[href="writing/"],
  .header-nav a[href="../"] { display: inline; }
}

/* =========================================================
   ✦ PREMIUM REDESIGN LAYER (appended — wins via cascade)
   Geist type · brand pink #EB0071 · depth, grain, glow, spring.
   No green. Functionality untouched.
   ========================================================= */
:root {
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --accent-2:    #FF3D97;          /* lighter pink for gradients/hover */
  --accent-glow: rgba(235, 0, 113, 0.42);
  --shadow-tint: rgba(235, 0, 113, 0.30);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Type polish: weight, tracking, no orphans ---------- */
body { letter-spacing: -0.006em; font-feature-settings: "ss01", "cv01"; }
.hero-title { font-weight: 700; letter-spacing: -0.045em; text-wrap: balance; }
.hero-sub,
.why-line,
.section-desc,
.closing-sub { text-wrap: pretty; }
.section-title, .closing-title, .writing-title { letter-spacing: -0.04em; text-wrap: balance; font-weight: 700; }
.eyebrow, .post-meta, .article-meta, .terminal-title { letter-spacing: 0.08em; }

/* Hero accent: liquid-pink gradient instead of flat fill ---- */
.hero-title .accent {
  background: linear-gradient(106deg, var(--accent-2) 0%, var(--accent) 62%, #C8005F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Grain: kills the sterile flatness ------------------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Hero: ambient pink glow behind the headline -------- */
.hero { position: relative; overflow: clip; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: -180px;
  left: -8%;
  width: 760px;
  max-width: 90%;
  height: 560px;
  background: radial-gradient(50% 50% at 30% 40%, rgba(235, 0, 113, 0.18), transparent 72%);
  filter: blur(10px);
}

/* ---- Header: sharper glass + active page state ----------- */
.site-header { background: rgba(11, 11, 14, 0.6); border-bottom-color: rgba(255,255,255,0.06); }
.header-nav > a:not(.header-cta) { position: relative; }
.header-nav > a:not(.header-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1.5px; background: var(--accent); transition: right .22s var(--ease-spring);
}
.header-nav > a:not(.header-cta):hover::after { right: 0; }
.header-cta { transition: border-color .18s ease, background .18s ease, transform .12s ease; }
.header-cta:hover { transform: translateY(-1px); }

/* ---- Buttons: spring + tinted glow ---------------------- */
.btn { transition: transform .16s var(--ease-spring), background .18s ease, border-color .18s ease, box-shadow .2s ease; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 10px 26px -12px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--accent-glow); background: linear-gradient(180deg, #FF59A8, var(--accent-2)); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---- Terminals: tinted depth + edge light --------------- */
.terminal {
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 70px -36px rgba(0,0,0,0.9);
}
.copy-btn:active { transform: scale(0.94); }

/* ---- Pass pill + mono tags: subtle glow ----------------- */
.pass-pill { box-shadow: 0 0 0 1px rgba(235,0,113,0.12), 0 4px 16px -8px var(--shadow-tint); }

/* ---- Plugin cards: real surface + spotlight hover ------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(23,26,36,0.72) 0%, rgba(13,15,21,0.72) 100%);
  border-color: rgba(255,255,255,0.07);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.025) inset, 0 16px 38px -34px rgba(0,0,0,0.9);
  transition: border-color .25s ease, transform .28s var(--ease-spring), box-shadow .3s ease;
}
.card::before {                       /* cursor spotlight wash */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(140px 140px at var(--mx, 50%) var(--my, 0%), rgba(235,0,113,0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(235,0,113,0.30);
  transform: translateY(-4px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -32px rgba(235,0,113,0.28);
}
.card:hover::before { opacity: 1; }
.card-tagline { letter-spacing: -0.025em; }
.mono-accent { box-shadow: 0 0 0 1px rgba(235,0,113,0.06); }

/* ---- Why: bigger editorial presence --------------------- */
.why { background: radial-gradient(120% 140% at 100% 0%, rgba(235,0,113,0.04), transparent 60%); }
.why-line { font-weight: 480; }

/* ---- Writing index rows: hover lift --------------------- */
.post-link { transition: padding-left .2s var(--ease-spring), opacity .15s ease; }
.post-link:hover { padding-left: 8px; }

/* ---- Footer: hairline up-light -------------------------- */
.site-footer { background: linear-gradient(180deg, rgba(11,11,14,0) 0%, rgba(235,0,113,0.025) 100%); }

/* ---- Scroll-reveal (progressive; guarded; reduced-motion safe) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .card, .why-line, .section-head, .closing-inner {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
    @keyframes rise-in {
      from { opacity: 0; transform: translateY(26px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

