/* =========================================================================
   Leuchter.xyz: Global stylesheet
   Design system: editorial operator, off-white paper, deep ink, ink blue accent
   ========================================================================= */

/* ---------- 01 · Tokens ---------- */
:root {
  --paper: #F4F1EA;
  --paper-deep: #EDE8DC;
  --paper-deepest: #E5DFD0;
  --ink: #0F0F0F;
  --ink-soft: #2A2A2A;
  --ink-muted: #6B6B6B;
  --ink-faint: #A9A59A;
  --rule: #D8D4C9;
  --blue: #1E3A8A;
  --blue-bright: #2B4DC6;
  --blue-soft: #E5E9F4;

  --font-sans: 'Geist', -apple-system, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --pad-x: 40px;
  --pad-x-mobile: 20px;
  --max-content: 1480px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-sharp: cubic-bezier(0.7, 0, 0.3, 1);
}

/* ---------- 02 · Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  letter-spacing: -0.01em;
  overflow-x: hidden;
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- 03 · Paper grain ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0 0.1 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- 04 · Cursor halo ---------- */
.halo {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.06) 0%, rgba(30, 58, 138, 0) 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: transform 0.35s var(--ease);
  mix-blend-mode: multiply;
}

/* ---------- 05 · Navigation ---------- */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 100;
  mix-blend-mode: multiply;
}

.nav-logo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo .dot {
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-1px);
}

.nav-menu {
  display: flex;
  gap: 30px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-sharp);
}

.nav-menu a:hover { color: var(--blue); }
.nav-menu a:hover::after { transform: scaleX(1); }

.nav-menu a[aria-current="page"] { color: var(--blue); }
.nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
  height: 1px;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.lang-toggle {
  display: flex;
  gap: 4px;
  color: var(--ink-muted);
}

.lang-toggle a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.lang-toggle a.active { color: var(--ink); }
.lang-toggle a:not(.active):hover { color: var(--ink); }

.availability {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.pulse {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.3;
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0.5; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- 06 · Mobile menu trigger ---------- */
.nav-mobile-trigger {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  padding: 6px 0;
}

.nav-mobile-sheet {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 200;
  padding: 100px var(--pad-x-mobile) 40px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-mobile-sheet.open { display: flex; }

.nav-mobile-sheet .nav-menu-mobile {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.nav-mobile-sheet .nav-menu-mobile a {
  color: var(--ink);
  text-decoration: none;
}

.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: var(--pad-x-mobile);
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  padding: 6px 0;
}

/* ---------- 07 · Hero (shared pattern) ---------- */
.hero {
  min-height: 100vh;
  padding: 140px var(--pad-x) 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-top-marks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 80px;
}

.hero-top-marks .right { text-align: right; }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
  flex: 1;
}

.hero-body.single {
  grid-template-columns: 1fr;
}

.hero-body-text {
  max-width: 860px;
}

.hero-marker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}

.hero-marker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink-muted);
}

.hero-headline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(40px, 5.8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 1280px;
  color: var(--ink);
}

.hero-headline .word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(8px);
  animation: inkset 1.1s var(--ease) forwards;
}

@keyframes inkset {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-headline .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  letter-spacing: -0.01em;
  display: inline-block;
  position: relative;
}

.hero-headline .accent .breathe {
  display: inline-block;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { letter-spacing: -0.01em; }
  50%      { letter-spacing: 0.015em; }
}

.hero-subhead {
  font-size: 17px;
  line-height: 1.55;
  max-width: 560px;
  color: var(--ink-soft);
  margin-top: 48px;
  margin-left: 4px;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.4s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.65s forwards;
  flex-wrap: wrap;
}

/* ---------- 08 · CTAs ---------- */
.cta-primary {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 16px 28px 16px 30px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s ease, transform 0.15s ease;
  will-change: transform;
  text-decoration: none;
}

.cta-primary:hover { background: var(--blue); }

.cta-primary .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.cta-primary:hover .arrow { transform: translate(4px, -4px); }

.cta-secondary {
  font-size: 13.5px;
  color: var(--ink-muted);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-secondary::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--ink-muted);
  transform: scaleX(1);
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-secondary:hover { color: var(--ink); }
.cta-secondary:hover::after { background: var(--ink); }

/* ---------- 09 · Portrait frame ---------- */
.hero-body-portrait {
  position: relative;
  align-self: stretch;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 20px;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 0.6s forwards;
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 620px;
  background: var(--paper-deep);
  overflow: hidden;
}

.portrait-frame::before,
.portrait-frame::after,
.portrait-frame > .corner-tl,
.portrait-frame > .corner-br {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--ink);
  border-style: solid;
}

.portrait-frame::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.portrait-frame::after  { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.portrait-frame .corner-tl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.portrait-frame .corner-br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease);
}

.portrait-placeholder-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.8;
}

.portrait-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.portrait-caption .fig { color: var(--ink); }

/* ---------- 10 · Hero bottom strip & scroll indicator ---------- */
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  margin-top: 100px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.hero-bottom .center { text-align: center; }
.hero-bottom .right { text-align: right; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

.scroll-ind-line {
  width: 1px;
  height: 22px;
  background: var(--ink-muted);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.scroll-ind-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 40%;
  background: var(--blue);
  animation: scrollDown 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollDown {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

.clock {
  color: var(--ink);
  letter-spacing: 0.05em;
}

/* ---------- 11 · Section markers ---------- */
.section-marker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-marker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink-muted);
}

/* ---------- 12 · Services section (list style) ---------- */
.services-section {
  padding: 120px var(--pad-x) 140px;
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  position: relative;
}

.services-lead {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 980px;
  margin-bottom: 100px;
}

.services-lead .muted { color: var(--ink-faint); }
.services-lead .italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--blue);
}

.services-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 2fr auto;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 0.4s var(--ease), background 0.4s ease;
  cursor: pointer;
  position: relative;
  color: var(--ink);
  text-decoration: none;
}

.service-row:visited,
.service-row:active,
.service-row:focus {
  color: var(--ink);
  text-decoration: none;
}

.service-row:hover { padding-left: 12px; }

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  padding-top: 8px;
  letter-spacing: 0.05em;
}

.service-title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.service-title .plus {
  display: inline-block;
  color: var(--blue);
  margin-right: 2px;
  transition: transform 0.4s var(--ease);
}

.service-row:hover .plus { transform: rotate(45deg); }

.service-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 500px;
}

.service-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 10px;
  transition: transform 0.4s var(--ease), color 0.4s ease;
  white-space: nowrap;
}

.service-row:hover .service-arrow {
  color: var(--blue);
  transform: translateX(6px);
}

/* ---------- 13 · Selected work (home) ---------- */
.work-preview {
  padding: 120px var(--pad-x) 140px;
  border-top: 1px solid var(--rule);
}

.work-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.work-row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 0.4s var(--ease);
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}

.work-row:hover { padding-left: 12px; }

.work-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.work-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

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

.work-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-align: right;
}

.work-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  transition: transform 0.4s var(--ease), color 0.4s ease;
}

.work-row:hover .work-arrow {
  color: var(--blue);
  transform: translateX(6px);
}

/* ---------- 14 · Ventures section ---------- */
.ventures-section {
  padding: 120px var(--pad-x) 140px;
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
}

.ventures-lead {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 980px;
  margin-bottom: 100px;
}

.ventures-lead .muted { color: var(--ink-faint); }

.ventures-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.venture-card {
  background: var(--paper);
  padding: 44px 36px 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.4s ease;
  position: relative;
  min-height: 340px;
}

.venture-card:hover { background: var(--paper-deepest); }

.venture-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
}

.venture-name {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.venture-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.venture-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.venture-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.venture-link .arrow {
  transition: transform 0.3s var(--ease);
}

.venture-card:hover .venture-link .arrow { transform: translate(4px, -4px); }

/* ---------- 15 · Authority / Notes preview ---------- */
.authority-section {
  padding: 120px var(--pad-x) 140px;
  border-top: 1px solid var(--rule);
}

.authority-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 1100px;
  margin-bottom: 80px;
  color: var(--ink);
}

.authority-lead .ink-blue { color: var(--blue); }

.notes-preview-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}

.note-card {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s var(--ease);
}

.note-card:hover { transform: translateY(-4px); }

.note-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
}

.note-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.note-excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- 16 · Final CTA section ---------- */
.final-cta {
  padding: 160px var(--pad-x);
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  position: relative;
}

.final-cta-lead {
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 1200px;
  margin-bottom: 60px;
}

.final-cta-lead .italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--paper);
}

.final-cta-sub {
  font-size: 16px;
  line-height: 1.55;
  max-width: 560px;
  color: rgba(244, 241, 234, 0.7);
  margin-bottom: 48px;
}

.final-cta .cta-primary {
  background: var(--paper);
  color: var(--ink);
}

.final-cta .cta-primary:hover {
  background: var(--blue);
  color: var(--paper);
}

.final-cta .cta-secondary {
  color: rgba(244, 241, 234, 0.7);
}

.final-cta .cta-secondary::after { background: rgba(244, 241, 234, 0.4); }

.final-cta .cta-secondary:hover { color: var(--paper); }
.final-cta .cta-secondary:hover::after { background: var(--paper); }

/* ---------- 17 · Footer ---------- */
footer.site-footer {
  padding: 30px var(--pad-x);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

footer.site-footer .center { text-align: center; }
footer.site-footer .right { text-align: right; }

footer.site-footer a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.3s;
}

footer.site-footer a:hover { color: var(--blue); }

/* ---------- 18 · Simple page hero (for sub-pages) ---------- */
.page-hero {
  padding: 160px var(--pad-x) 100px;
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.page-hero-marker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.page-hero-marker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink-muted);
}

.page-hero-title {
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 48px;
  max-width: 1300px;
}

.page-hero-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--blue);
}

.page-hero-sub {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
  max-width: 720px;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

/* ---------- 19 · Service detail blocks (Services page) ---------- */
.service-detail {
  padding: 120px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.service-detail:nth-child(even) {
  background: var(--paper-deep);
}

.service-detail-header {
  position: sticky;
  top: 100px;
  align-self: start;
}

.service-detail-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.service-detail-name {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}

.service-detail-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--blue);
  margin-bottom: 32px;
}

.service-detail-body {
  display: grid;
  gap: 60px;
}

.service-block-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}

.service-block-body p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 640px;
}

.service-block-body ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.service-block-body li {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: baseline;
  gap: 4px;
}

.service-block-body li::before {
  content: '→';
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---------- 20 · How I work (three-step framework) ---------- */
.framework-section {
  padding: 120px var(--pad-x) 140px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
}

.framework-lead {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 980px;
  margin-bottom: 80px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.framework-step {
  padding: 40px 32px 32px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--paper);
  min-height: 320px;
}

.framework-step:last-child { border-right: none; }

.framework-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.framework-name {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.framework-name .italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--blue);
}

.framework-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- 21 · Work page (case study list) ---------- */
.case-grid {
  padding: 80px var(--pad-x) 120px;
}

.case-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.case-row {
  display: grid;
  grid-template-columns: 60px 2fr 1fr 1fr 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 0.4s var(--ease);
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}

.case-row:hover { padding-left: 12px; }

.case-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.case-title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.case-cell {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.case-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  transition: transform 0.4s var(--ease), color 0.4s ease;
}

.case-row:hover .case-arrow {
  color: var(--blue);
  transform: translateX(6px);
}

/* ---------- 22 · Ventures page ---------- */
.venture-detail {
  padding: 120px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.venture-detail:nth-child(even) { background: var(--paper-deep); }
.venture-detail:nth-child(even) .venture-visual { order: -1; }

.venture-detail-header .venture-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.venture-detail-name {
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.venture-detail-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.venture-detail-body {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 560px;
}

.venture-detail-body p { margin-bottom: 16px; }

.venture-detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.venture-fact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.venture-fact-value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.4;
}

.venture-visual {
  background: var(--paper-deepest);
  aspect-ratio: 4 / 5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  overflow: hidden;
}

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

.venture-visual-placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.8;
}

/* ---------- 23 · About page ---------- */
.about-section {
  padding: 120px var(--pad-x);
  border-bottom: 1px solid var(--rule);
}

.about-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 1100px;
  margin-bottom: 80px;
  color: var(--ink);
}

.about-lead .blue { color: var(--blue); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.about-meta-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-meta-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.about-meta-value {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
}

.about-body {
  max-width: 720px;
}

.about-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.about-body .blue { color: var(--blue); }

.about-body .italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--blue);
}

/* Client wall */
.client-wall {
  padding: 100px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
}

.client-wall-lead {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-wall-lead::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink-muted);
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.client-logo {
  background: var(--paper);
  padding: 40px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: background 0.3s;
}

.client-logo:hover { background: var(--paper-deepest); }

.client-logo img {
  max-width: 120px;
  max-height: 50px;
  width: auto;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s;
  filter: none;
}

.client-logo:hover img { opacity: 1; }

.client-logo-placeholder {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ---------- 24 · Notes page ---------- */
.notes-section {
  padding: 80px var(--pad-x) 140px;
}

.notes-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.notes-row {
  display: grid;
  grid-template-columns: 120px 2fr 1fr auto;
  gap: 40px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 0.4s var(--ease);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.notes-row:hover { padding-left: 12px; }

.notes-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.notes-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.notes-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  transition: transform 0.4s var(--ease), color 0.4s ease;
}

.notes-row:hover .notes-arrow {
  color: var(--blue);
  transform: translateX(6px);
}

/* ---------- 25 · Contact page ---------- */
.contact-section {
  padding: 100px var(--pad-x) 140px;
}

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

.contact-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  color: var(--ink);
  max-width: 540px;
}

.contact-intro .blue { color: var(--blue); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.contact-item:last-child { border-bottom: none; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.contact-value {
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color 0.3s;
}

a.contact-value:hover { color: var(--blue); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 10px;
  display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 14px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: border-color 0.3s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-bottom-color: var(--blue);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-sans);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%230F0F0F' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

.contact-form button.cta-primary {
  align-self: flex-start;
  margin-top: 12px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* ---------- 26 · Responsive ---------- */
@media (max-width: 1000px) {
  .service-detail,
  .about-grid,
  .contact-grid,
  .venture-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .venture-detail:nth-child(even) .venture-visual { order: 0; }

  .service-detail-header { position: static; }

  .notes-preview-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ventures-grid {
    grid-template-columns: 1fr;
  }

  .framework-grid {
    grid-template-columns: 1fr;
  }

  .framework-step {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 900px) {
  .hero-body {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-body-portrait {
    min-height: unset;
    max-width: 420px;
  }
  .case-row {
    grid-template-columns: 40px 1fr auto;
    gap: 20px;
  }
  .case-row .case-cell { display: none; }
  .work-row {
    grid-template-columns: 40px 1.5fr auto;
    gap: 20px;
  }
  .work-row .work-meta,
  .work-row .work-year { display: none; }
  .notes-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav.site-nav {
    padding: 16px var(--pad-x-mobile);
    grid-template-columns: auto auto;
  }
  .nav-menu { display: none; }
  .nav-right { display: none; }
  .nav-mobile-trigger { display: block; grid-column: 2; justify-self: end; }
  .hero { padding: 110px var(--pad-x-mobile) 60px; }
  .hero-top-marks { grid-template-columns: 1fr; gap: 8px; margin-bottom: 50px; }
  .hero-top-marks .right { text-align: left; }
  .hero-bottom { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .hero-bottom .center, .hero-bottom .right { text-align: left; justify-content: flex-start; }

  .services-section, .work-preview, .ventures-section, .authority-section { padding: 80px var(--pad-x-mobile); }
  .service-row { grid-template-columns: 40px 1fr; gap: 20px; padding: 24px 0; }
  .service-desc, .service-arrow { grid-column: 2; }

  .final-cta { padding: 100px var(--pad-x-mobile); }
  .page-hero { padding: 120px var(--pad-x-mobile) 60px; }
  .service-detail { padding: 80px var(--pad-x-mobile); }
  .about-section, .venture-detail, .client-wall, .notes-section, .contact-section, .framework-section {
    padding: 80px var(--pad-x-mobile);
  }

  footer.site-footer {
    padding: 30px var(--pad-x-mobile);
    grid-template-columns: 1fr;
    gap: 12px;
  }
  footer.site-footer .center, footer.site-footer .right { text-align: left; }
}

/* ---------- 27 · Article/essay detail pages (notes, case studies, 404) ---------- */

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px var(--pad-x) 120px;
}

.article-wrap.wide {
  max-width: 1000px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.article-meta a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.article-meta a:hover { color: var(--blue); }

.article-meta .sep {
  color: var(--ink-faint);
}

.article-title {
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--ink);
}

.article-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.article-deck {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  margin-bottom: 60px;
  max-width: 620px;
}

.article-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

.article-body p {
  margin-bottom: 1.4em;
}

.article-body h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 500;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
}

.article-body h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}

.article-body a:hover {
  text-decoration-color: var(--blue);
}

.article-body blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 2em 0;
  padding-left: 28px;
  border-left: 2px solid var(--blue);
  max-width: 620px;
}

.article-body ul, .article-body ol {
  margin: 1em 0 1.6em;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 0.6em;
}

.article-body strong {
  color: var(--ink);
  font-weight: 500;
}

.article-body .italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
}

.article-body .callout {
  background: var(--paper-deep);
  border-left: 2px solid var(--ink);
  padding: 28px 32px;
  margin: 2em 0;
  font-size: 17px;
  line-height: 1.55;
}

.article-body .callout .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 10px;
  display: block;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3em 0;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.3s;
}

.article-back:hover { color: var(--blue); }

.article-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.article-footer .byline {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  line-height: 1.6;
}

.article-footer .byline strong {
  color: var(--ink);
  font-weight: 500;
}

.article-footer .share {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.article-footer .share a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 14px;
}

.article-footer .share a:hover { color: var(--blue); }

/* Case study detail specifics */
.case-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.case-facts .fact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.case-facts .fact-value {
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* 404 page */
.fourohfour {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 100px var(--pad-x);
  max-width: 760px;
  margin: 0 auto;
}

.fourohfour-marker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.fourohfour-title {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--ink);
}

.fourohfour-title .italic {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: -0.025em;
}

.fourohfour-body {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 40px;
  letter-spacing: -0.005em;
}

/* Responsive for article pages */
@media (max-width: 700px) {
  .article-wrap {
    padding: 100px var(--pad-x-mobile) 80px;
  }
  .article-body { font-size: 17px; }
  .article-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-footer .share { text-align: left; }
  .case-facts {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .fourohfour { padding: 80px var(--pad-x-mobile); }
}

/* ---------- 28 · Nav scrolled state ---------- */
nav.site-nav {
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.3s var(--ease);
}

nav.site-nav.scrolled {
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 14px var(--pad-x);
  border-bottom: 1px solid rgba(216, 212, 201, 0.4);
}

nav.site-nav.scrolled .nav-logo,
nav.site-nav.scrolled .nav-menu a,
nav.site-nav.scrolled .nav-right {
  mix-blend-mode: normal;
}

/* Logo image fallback */
.nav-logo img {
  height: 22px;
  width: auto;
  display: block;
}

/* ---------- 29 · Cursor dot ---------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor-dot.hover {
  width: 24px;
  height: 24px;
  background: var(--blue);
  mix-blend-mode: normal;
  opacity: 0.5;
}

@media (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ---------- 30 · Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger using nth-child where applicable */
.work-list .reveal:nth-child(2) { transition-delay: 0.05s; }
.work-list .reveal:nth-child(3) { transition-delay: 0.1s; }
.work-list .reveal:nth-child(4) { transition-delay: 0.15s; }
.work-list .reveal:nth-child(5) { transition-delay: 0.2s; }

.notes-preview-list .reveal:nth-child(2) { transition-delay: 0.07s; }
.notes-preview-list .reveal:nth-child(3) { transition-delay: 0.14s; }

.ventures-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.ventures-grid .reveal:nth-child(3) { transition-delay: 0.14s; }

.framework-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.framework-grid .reveal:nth-child(3) { transition-delay: 0.14s; }

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

/* ---------- 31 · Books grid (for /books page) ---------- */
.books-section {
  padding: 60px var(--pad-x) 140px;
}

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

.book-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr 80px 40px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: padding-left 0.4s var(--ease);
}

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

.book-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--blue);
  transform: translateY(-50%);
  transition: width 0.4s var(--ease);
}

.book-row:hover::before {
  width: 8px;
}

.book-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.book-title {
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 400;
}

.book-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  line-height: 1.35;
}

.book-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-align: right;
}

.book-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-align: right;
  transition: color 0.3s, transform 0.3s var(--ease);
}

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

@media (max-width: 800px) {
  .book-row {
    grid-template-columns: 40px 1fr 60px;
    gap: 16px;
    padding: 22px 0;
  }
  .book-subtitle,
  .book-arrow { display: none; }
  .book-title { font-size: 17px; }
}

/* ---------- 32 · Contact page: email-only layout ---------- */
.contact-email-hero {
  padding: 60px var(--pad-x) 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.contact-info { min-width: 0; }

.contact-map {
  position: sticky;
  top: 120px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--rule);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.4s;
}

.contact-map:hover iframe { filter: none; }

.contact-email-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  margin-bottom: 60px;
  max-width: 640px;
}

.contact-email-block {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 60px;
}

.contact-email-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding-top: 8px;
}

.contact-email-value {
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1;
}

.contact-email-value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s;
}

.contact-email-value a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.contact-other-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.contact-other-value {
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.contact-other-value a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.contact-other-value a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-map {
    position: static;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  .contact-email-block,
  .contact-other-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .contact-email-hero { padding: 40px var(--pad-x-mobile) 80px; }
}

/* ---------- 33 · Legal page ---------- */
.legal-section {
  padding: 60px var(--pad-x) 140px;
  max-width: 1400px;
  margin: 0 auto;
}

.legal-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 100px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 120px;
}

.legal-toc-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}

.legal-toc nav { display: flex; flex-direction: column; }

.legal-toc a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s, padding-left 0.3s;
}

.legal-toc a:hover {
  color: var(--blue);
  padding-left: 6px;
}

.legal-toc-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.legal-block {
  padding: 0 0 80px;
  margin-bottom: 80px;
  border-bottom: 1px solid var(--rule);
}

.legal-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-block-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.legal-block-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 48px;
}

.legal-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin: 44px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.legal-block > .legal-sub:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-block p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 68ch;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  max-width: 68ch;
}

.legal-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--rule);
}

.legal-list li:last-child { border-bottom: none; }

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 1px;
  background: var(--ink-muted);
}

.legal-block strong {
  color: var(--ink);
  font-weight: 500;
}

.legal-block a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s, border-color 0.3s;
}

.legal-block a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.legal-block code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 2px 7px;
  border-radius: 2px;
  color: var(--ink);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 11.5px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.02em;
  color: var(--ink-muted) !important;
  margin-top: 48px !important;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 960px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .legal-toc {
    position: static;
  }
}

@media (max-width: 700px) {
  .legal-section {
    padding: 40px var(--pad-x-mobile) 80px;
  }
  .legal-block {
    padding-bottom: 56px;
    margin-bottom: 56px;
  }
}

/* ---------- 34 · Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  max-width: 860px;
  margin-left: auto;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 22px 26px;
}

.cookie-banner-text { min-width: 0; }

.cookie-banner-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.cookie-banner p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}

.cookie-banner a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s, border-color 0.3s;
}

.cookie-banner a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 11px 18px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  line-height: 1;
}

.cookie-btn-ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}

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

.cookie-btn-primary {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
}

.cookie-btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

@media (max-width: 700px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .cookie-banner-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 20px;
  }
  .cookie-banner-actions {
    justify-content: flex-end;
  }
}
