:root {
  --bg: #f4efe6;
  --bg-2: #ece6d8;
  --bg-3: #e2dac8;
  --ink: #1a1814;
  --ink-2: #3a352c;
  --ink-3: #6b6254;
  --ink-4: #6a6454;
  --line: #1a1814;
  --line-soft: #c4b89e;
  --accent: #e85d3a;
  --accent-2: #2b4c7e;
  --accent-3: #4a7c3a;
  --tan: #c4b08a;
  --cream: #faf6ec;
  --paper: #f9f4e8;

  --mono: "JetBrains Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; width: 100%; overflow: hidden; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  cursor: default;
}

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

/* ============ DESKTOP ============ */
.desktop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 20%, rgba(232,93,58,0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(43,76,126,0.05), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.menubar-right .pill { display: inline-flex; gap: 4px; align-items: center; }

/* ============ COMPONENTS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--ink);
  background: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 80ms;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translate(1px,1px); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: var(--accent); }
.btn.accent { background: var(--accent); color: var(--cream); border-color: var(--ink); }
.btn.sm { padding: 2px 6px; font-size: 10px; }
.btn.icon { width: 26px; height: 26px; padding: 0; justify-content: center; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px;
  border: 1px solid var(--ink);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pill.dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3);
}
.pill.accent { background: var(--accent); color: var(--cream); }
.pill.ink { background: var(--ink); color: var(--bg); }
.pill.outline { background: transparent; }

.input, .textarea, .select {
  border: 1px solid var(--ink);
  background: var(--cream);
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 11px;
  outline: none;
  width: 100%;
}
.input:focus { background: var(--paper); box-shadow: inset 2px 2px 0 var(--accent); }

.checkbox, .radio {
  width: 14px; height: 14px;
  border: 1px solid var(--ink);
  background: var(--cream);
  display: inline-grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox.on { background: var(--ink); }
.checkbox.on::after { content: '✓'; color: var(--bg); font-size: 10px; line-height: 1; font-family: var(--mono); font-weight: 700; }
.radio { border-radius: 50%; }
.radio.on::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.segmented {
  display: inline-flex;
  border: 1px solid var(--ink);
}
.segmented button {
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  border-right: 1px solid var(--ink);
  background: var(--cream);
}
.segmented button:last-child { border-right: none; }
.segmented button.on { background: var(--ink); color: var(--bg); }

.slider-track {
  height: 3px; background: var(--ink-4);
  position: relative; cursor: pointer;
  flex: 1;
}
.slider-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--accent); }
.slider-thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: var(--ink);
  border: 2px solid var(--cream);
  cursor: grab;
}
/* Native range input styled to match the old div slider (keyboard + touch). */
input.slider {
  -webkit-appearance: none; appearance: none;
  flex: 1; width: 100%; height: 16px; margin: 0; padding: 0;
  border: none; cursor: pointer;
  background: linear-gradient(to right, var(--accent) var(--slider-pct, 0%), var(--ink-4) var(--slider-pct, 0%)) no-repeat center / 100% 3px;
}
input.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px;
  background: var(--ink); border: 2px solid var(--cream);
  cursor: grab;
}
input.slider::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 0;
  background: var(--ink); border: 2px solid var(--cream);
  cursor: grab;
}
input.slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Visually-hidden native input that drives a styled checkbox/radio twin. */
.sr-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.sr-input:focus-visible + .checkbox, .sr-input:focus-visible + .radio { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ ACCORDION ============ */
.accordion-item { border-bottom: 1px solid var(--line-soft); }
.accordion-head {
  padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  font-family: var(--mono); font-size: 11px;
  font-weight: 500;
}
.accordion-head:hover { background: var(--bg-2); }
.accordion-chev { transition: transform 150ms; font-family: var(--mono); }
.accordion-item.open .accordion-chev { transform: rotate(90deg); }
.accordion-body { padding: 0 12px 12px; display: none; font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.accordion-item.open .accordion-body { display: block; }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.cmdk-group { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-4); padding: 6px 16px 2px; text-transform: uppercase; }

/* ============ CHART BITS ============ */
.sparkline { stroke: var(--ink); fill: none; stroke-width: 1.5; }
.sparkline-fill { fill: var(--accent); opacity: 0.15; }

/* ============ SCREEN READER ============ */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ FILE TREE ============ */
.tree { font-family: var(--mono); font-size: 11px; padding: 6px 0; }
.tree-children { padding-left: 14px; }

/* ============ MAP ============ */
.map-placeholder {
  background:
    radial-gradient(circle at 30% 40%, rgba(232,93,58,0.2), transparent 40%),
    linear-gradient(to bottom, #e5d9b8, #c4b08a);
  height: 100%; width: 100%;
  position: relative;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

/* ============ PHOTO PLACEHOLDER ============ */
.photo-ph {
  background:
    repeating-linear-gradient(45deg, var(--bg-3) 0 8px, var(--bg-2) 8px 16px);
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 9.5px;
  color: var(--ink-3);
  text-align: center; padding: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  aspect-ratio: 4/3;
}

/* ============ RICH ============ */
.richtext { font-size: 13px; line-height: 1.6; color: var(--ink-2); padding: 14px 18px; font-family: var(--sans); }
.richtext h1 { font-family: var(--serif); font-size: 38px; line-height: 1; font-weight: 400; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.02em; }
.richtext h1 em { color: var(--accent); }
.richtext .lede { font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--ink); margin: 10px 0 18px; font-style: italic; }
.richtext h2 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin: 20px 0 10px; font-weight: 600; border-bottom: 1px solid var(--line-soft); padding-bottom: 4px; }
.richtext p { margin-bottom: 10px; }
.richtext p + p { text-indent: 1.2em; }
.richtext a.inline { border-bottom: 1px solid var(--accent); color: var(--ink); padding-bottom: 1px; }
.richtext a.inline:hover { background: var(--accent); color: var(--cream); }
.richtext ul { padding-left: 18px; margin: 8px 0; }
.richtext li { margin-bottom: 4px; }
.richtext blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; margin: 12px 0; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.tiny { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
@keyframes blink { 50% { opacity: 0.3; } }

/* ============ CAROUSEL ============ */
.carousel { position: relative; overflow: hidden; border: 1px solid var(--ink); }
.carousel-track { display: flex; transition: transform 300ms ease; }
.carousel-slide { flex-shrink: 0; width: 100%; }
.carousel-dots { display: flex; justify-content: center; gap: 4px; padding: 6px 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.carousel-dot { width: 6px; height: 6px; border: 1px solid var(--ink); cursor: pointer; }
.carousel-dot.active { background: var(--ink); }

/* ============ PANEL (for resizable) ============ */
.panel-split { display: flex; height: 100%; }
.panel-resizer { width: 4px; background: var(--line-soft); cursor: col-resize; flex-shrink: 0; }
.panel-resizer:hover { background: var(--accent); }

/* ============ DIALPAD ============ */
.dialpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dialpad button {
  aspect-ratio: 1.4;
  border: 1px solid var(--ink);
  background: var(--cream);
  font-family: var(--mono); font-size: 14px; font-weight: 500;
}
.dialpad button:hover { background: var(--ink); color: var(--bg); }
.dialpad button:active { background: var(--accent); }

/* ============ DRAG INDICATOR ============ */
.drag-handle {
  width: 10px;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  cursor: grab;
  opacity: 0.3;
}
.drag-handle::before, .drag-handle::after {
  content: '⋮⋮'; font-size: 10px; letter-spacing: -2px; line-height: 0.5;
}

.focus-ring:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Dark mode */
body.dark {
  --bg: #1a1814;
  --bg-2: #242019;
  --bg-3: #2e2920;
  --ink: #f4efe6;
  --ink-2: #d9d2c2;
  --ink-3: #a19883;
  --ink-4: #9a9080;
  --line: #f4efe6;
  --line-soft: #3a352c;
  --paper: #1f1c17;
  --cream: #2a2620;
  --tan: #8a7a5c;
}

/* ============ MOBILE ============ */
/* Phones (portrait, and landscape phones) get a single-app, full-screen shell.
   The desktop window-manager metaphor is mouse-only and overflows a phone, so
   here windows fill the screen one at a time (z-index already tracks focus) and
   the dock becomes a scrollable app bar — every app stays reachable. */
@media (max-width: 760px), (orientation: landscape) and (max-height: 460px) {
  /* Decorative desktop furniture — hide on phones */
  .widget,
  .ticker-wrap { display: none !important; }

  /* Menubar → slim status bar: logo + clock only (all apps live in the dock) */
  .menubar-item { display: none; }
  .menubar-right .pill { display: none; }

  /* Windows fill the screen, one at a time. !important overrides the inline
     left/top/width/height React sets per window; z-index stays inline so the
     focused window remains on top. */
  .window {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 28px !important;
    bottom: calc(56px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
  .window-meta,
  .window-resize { display: none; }
  .window-titlebar::before { inset: 4px 16px 4px 60px; }

  /* Dock → full-width, horizontally scrollable app bar pinned to the bottom */
  .dock {
    left: 0; right: 0; bottom: 0;
    transform: none;
    border-radius: 0;
    border-left: none; border-right: none; border-bottom: none;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100vw;
  }
  .dock-item { width: 40px; height: 40px; flex: 0 0 auto; }
  .dock-item:hover { transform: none; }
  .dock-label { display: none; }
  .dock.hidden { transform: translateY(160%); }   /* dock isn't centered on mobile */

  /* Window content laid out for desktop widths — collapse to one column */
  .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
  .kanban { flex-direction: column; height: auto; }
  .kanban-col { min-height: 140px; }

  /* Overlays sized for the small viewport */
  .cmdk { width: 92vw; max-width: 92vw; }
  .cmdk-overlay { padding-top: 8vh; }
  .toast-stack { left: 8px; right: 8px; top: 34px; }
  .toast { min-width: 0; max-width: none; width: 100%; }
}

/* ============ REDUCED MOTION ============ */
/* Respect the OS "reduce motion" setting — kill the ticker, blink, toast
   slides, and transitions for users who ask for less animation. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
}
@keyframes breathe { 50% { opacity: 0.6; transform: scale(1.04); } }

/* ============================================================================
   LANDING PAGE ("The Profile") — professional default view.
   Built on the existing tokens. Three voices: serif=author, sans=reader,
   mono=record. Sharp 1px borders, solid (non-blur) shadows, rationed accent.
   ============================================================================ */
.lp {
  --lp-max: 1100px;
  --lp-shadow: rgba(26,24,20,0.16);
  --lp-shadow-strong: rgba(26,24,20,0.92);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.dark .lp { --lp-shadow: rgba(0,0,0,0.5); --lp-shadow-strong: rgba(244,239,230,0.22); }
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp button { font-family: inherit; }

/* skip link */
.lp-skip { position: absolute; left: -9999px; top: 0; z-index: 100; }
.lp-skip:focus { left: 8px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; font-family: var(--mono); font-size: 12px; }

/* reveal */
.lp-reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .lp-reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
  .lp-reveal.in { opacity: 1; transform: none; }
}

/* ---------- shared label / link idioms ---------- */
.lp-kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.lp-textlink { background: none; border: none; cursor: pointer; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-2); padding: 2px 0; border-bottom: 1px solid transparent; }
.lp-textlink:hover { color: var(--accent); border-bottom-color: var(--accent); }
.lp-dot { display: inline-block; width: 8px; height: 8px; background: var(--accent-3); margin-right: 7px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-3) 28%, transparent); border-radius: 0; vertical-align: middle; }

/* ---------- NAV ---------- */
.lp-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); transition: box-shadow .2s ease, border-color .2s ease; }
.lp-nav.scrolled { border-bottom-color: var(--ink); box-shadow: 0 3px 0 var(--lp-shadow); }
.lp-nav-inner { max-width: var(--lp-max); margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 18px; }
.lp-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.lp-brand-mono { font-family: var(--serif); font-style: italic; font-size: 1.25rem; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ink); }
.lp-brand-name { font-weight: 600; font-size: 0.95rem; }
.lp-nav-links { display: flex; gap: 4px; margin-left: auto; }
.lp-nav-link { background: none; border: none; cursor: pointer; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 6px 8px; border-bottom: 2px solid transparent; transition: color .15s; }
.lp-nav-link:hover { color: var(--ink); }
.lp-nav-link.active { color: var(--ink); border-bottom-color: var(--accent); }
.lp-nav-right { display: flex; align-items: center; gap: 10px; }
.lp-icon-btn { background: none; border: 1px solid transparent; cursor: pointer; font-size: 0.95rem; color: var(--ink-2); width: 30px; height: 30px; display: grid; place-items: center; }
.lp-icon-btn:hover { border-color: var(--line-soft); color: var(--ink); }
.lp-explore { background: none; border: 1px solid var(--accent); color: var(--accent); cursor: pointer; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; padding: 6px 10px; }
.lp-explore:hover { background: var(--accent); color: var(--cream); }
.lp-resume { text-decoration: none; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lp-menu-btn { display: none; font-size: 1.2rem; }
.lp-nav-sheet { display: none; }

/* ---------- layout / sections ---------- */
.lp main { display: block; }
.lp-section { max-width: var(--lp-max); margin: 0 auto; padding: 96px 24px 0; }
.lp-section:last-child { padding-bottom: 40px; }
.lp-section-lead { font-size: 1.0625rem; color: var(--ink-2); max-width: 62ch; margin: 0 0 28px; }

/* folio rule */
.lp-folio { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 12px; margin-bottom: 36px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.lp-folio-left b { color: var(--accent); font-weight: 700; }
.lp-folio-title { color: var(--ink); font-weight: 600; }
.lp-folio-note { color: var(--ink-4); }
.lp-folio-right { color: var(--ink-4); white-space: nowrap; }

/* ---------- HERO ---------- */
.lp-hero { max-width: var(--lp-max); margin: 0 auto; padding: 72px 24px 40px; display: grid; grid-template-columns: 7fr 4fr; gap: 48px; align-items: start; }
.lp-hero-text { min-width: 0; }
.lp-display { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.01em; margin: 18px 0 22px; color: var(--ink); }
.lp-display em { font-style: italic; color: var(--accent); }
.lp-standfirst { font-size: 1.22rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; margin: 0 0 26px; }
.lp-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lp-resume-pill { text-decoration: none; cursor: pointer; }

/* spec card (grafted) */
.lp-spec { border: 1px solid var(--ink); background: var(--cream); box-shadow: 4px 4px 0 var(--lp-shadow); padding: 16px; }
.lp-spec-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.lp-spec-name { font-weight: 600; font-size: 0.95rem; }
.lp-spec-role { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.lp-spec-list { margin: 0; }
.lp-spec-row { display: grid; grid-template-columns: 84px 1fr; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1px dotted var(--line-soft); }
.lp-spec-row:last-child { border-bottom: none; }
.lp-spec-row dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin: 0; }
.lp-spec-row dd { margin: 0; font-size: 0.84rem; color: var(--ink); }
.lp-spec-row dd.lp-live { color: var(--accent-3); font-weight: 500; }

/* ---------- METRICS BAND (single inverted moment) ---------- */
.lp-metrics { background: var(--ink); color: var(--paper); margin-top: 56px; }
.lp-metrics-inner { max-width: var(--lp-max); margin: 0 auto; padding: 34px 24px; display: flex; flex-wrap: wrap; gap: 24px 64px; }
.lp-metric { display: flex; flex-direction: column; gap: 2px; }
.lp-metric-n { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; color: var(--paper); }
.lp-metric-l { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }

/* ---------- CAPABILITIES ---------- */
.lp-caps { display: flex; flex-direction: column; }
.lp-cap { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line-soft); }
.lp-cap:first-child { border-top: none; }
.lp-cap-n { font-family: var(--mono); font-size: 2.4rem; line-height: 1; color: var(--line-soft); font-weight: 300; }
.lp-cap.lp-d-ai .lp-cap-n { color: var(--accent-2); }
.lp-cap.lp-d-plat .lp-cap-n { color: var(--accent-3); }
.lp-cap-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; margin: 0 0 6px; }
.lp-cap-blurb { font-size: 1.05rem; color: var(--ink-2); margin: 0 0 10px; font-style: italic; }
.lp-cap-bullets { margin: 0 0 14px; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.lp-cap-bullets li { font-size: 0.96rem; color: var(--ink-2); }
.lp-cap-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lp-jump { background: none; border: none; cursor: pointer; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--ink-3); white-space: nowrap; }
.lp-jump:hover { color: var(--accent); }

/* tags / pills */
.lp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-soft); color: var(--ink-3); }
.lp-d-ai .lp-tag { border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line-soft)); color: var(--accent-2); }
.lp-d-plat .lp-tag { border-color: color-mix(in srgb, var(--accent-3) 45%, var(--line-soft)); color: var(--accent-3); }
.lp-tag:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- EXPERIENCE ---------- */
.lp-timeline { display: flex; flex-direction: column; gap: 4px; }
.lp-role { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.lp-role.emph { background: linear-gradient(90deg, color-mix(in srgb, var(--cream) 80%, transparent), transparent 60%); }
.lp-role-years { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-3); padding-top: 5px; }
.lp-role-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 0 0 3px; display: flex; align-items: center; gap: 10px; }
.lp-role-title.sm { font-size: 1.18rem; }
.lp-now { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; background: var(--accent-3); color: var(--cream); padding: 2px 6px; vertical-align: middle; }
.lp-role-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); margin-bottom: 10px; }
.lp-role-impact { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.lp-role-impact li { font-size: 0.96rem; color: var(--ink-2); }
.lp-earlier { padding-top: 6px; }
.lp-earlier-body { display: flex; flex-direction: column; gap: 18px; padding: 6px 2px; }
.lp-earlier-role { display: grid; grid-template-columns: 150px 1fr; gap: 22px; }
.lp-side { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.lp-side-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }
.lp-side-items { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-side-items .pill { border-color: color-mix(in srgb, var(--accent-3) 40%, var(--line-soft)); }

/* ---------- WRITING ---------- */
.lp-lede { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--ink); background: var(--cream); box-shadow: 4px 4px 0 var(--lp-shadow); padding: 22px 24px; margin-bottom: 18px; transition: box-shadow .12s ease, transform .12s ease; }
.lp-lede:hover { box-shadow: 2px 2px 0 var(--lp-shadow); transform: translate(2px,2px); }
.lp-lede-kicker { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--accent-2); margin-bottom: 8px; }
.lp-lede-title { font-family: var(--serif); font-size: 1.85rem; font-weight: 400; line-height: 1.1; margin: 0 0 8px; }
.lp-lede-dek { font-size: 1.02rem; color: var(--ink-2); margin: 0 0 10px; max-width: 64ch; }
.lp-post-meta { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-4); }
.lp-post-tag { color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.lp-postlist { list-style: none; margin: 0; padding: 0; }
.lp-postrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--ink); padding: 14px 2px; border-top: 1px solid var(--line-soft); }
.lp-postrow-title { font-family: var(--serif); font-size: 1.28rem; border-bottom: 1px solid transparent; }
.lp-postrow:hover .lp-postrow-title { color: var(--accent); border-bottom-color: var(--accent); }
.lp-allposts { margin-top: 22px; }

/* ---------- SKILLS ---------- */
.lp-skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.lp-skillgroup-head { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.lp-skillgroup.lp-d-ai .lp-skillgroup-head { color: var(--accent-2); }
.lp-skillgroup.lp-d-plat .lp-skillgroup-head { color: var(--accent-3); }

/* ---------- ABOUT ---------- */
.lp-about { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; align-items: start; }
.lp-about-side { display: flex; flex-direction: column; gap: 18px; }
.lp-factstack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lp-factstack li { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); padding-left: 14px; position: relative; }
.lp-factstack li::before { content: "·"; position: absolute; left: 2px; color: var(--accent); }
.lp-about-lede { font-family: var(--serif); font-size: 1.5rem; line-height: 1.32; color: var(--ink); margin: 0 0 16px; }
.lp-about-p { font-size: 1.02rem; color: var(--ink-2); margin: 0 0 14px; }
.lp-pullquote { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--accent); border-left: 2px solid var(--accent); padding-left: 18px; margin: 22px 0; }

/* ---------- CONTACT ---------- */
.lp-contact { border: 1px solid var(--ink); background: var(--cream); box-shadow: 4px 4px 0 var(--lp-shadow); padding: 30px 30px 8px; }
.lp-contact-title { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; margin: 0 0 8px; }
.lp-contact-blurb { font-size: 1.02rem; color: var(--ink-2); max-width: 62ch; margin: 0 0 12px; }
.lp-availability { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-3); display: flex; align-items: center; margin-bottom: 18px; }
.lp-channels { display: flex; flex-direction: column; }
.lp-channel { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); padding: 16px 6px; border-top: 1px solid var(--line-soft); margin: 0 -30px; padding-left: 30px; padding-right: 30px; transition: background .12s, color .12s; }
.lp-channel:hover { background: var(--ink); color: var(--paper); }
.lp-channel-glyph { font-family: var(--mono); width: 30px; text-align: center; color: var(--accent); }
.lp-channel:hover .lp-channel-glyph { color: var(--paper); }
.lp-channel-label { font-family: var(--mono); font-size: 0.92rem; flex: 1; word-break: break-word; }
.lp-channel-hint { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); }
.lp-channel:hover .lp-channel-hint { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }

/* ---------- NEWSLETTER (Buttondown embed) ---------- */
.lp-news { margin: 0; }
/* standalone card (article foot, tool pages) — matches the contact/lede treatment */
.lp-news-card { border: 1px solid var(--ink); background: var(--cream); box-shadow: 4px 4px 0 var(--lp-shadow); padding: 26px 28px; margin: 40px 0 12px; }
/* in-card block (inside the contact card) — full-bleed rule like the channels */
.lp-news-incard { border-top: 1px solid var(--line-soft); margin: 8px -30px 0; padding: 24px 30px 16px; }
.lp-news-kicker { margin-bottom: 6px; }
.lp-news-heading { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.2; margin: 0 0 8px; }
.lp-news-blurb { font-size: 1rem; color: var(--ink-2); max-width: 60ch; margin: 0 0 16px; }
.lp-news-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.lp-news-input { flex: 1 1 220px; min-width: 0; font-size: 13px; padding: 9px 11px; }
.lp-news-btn { padding: 9px 18px; font-size: 12px; }
.lp-news-note { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em; color: var(--ink-4); margin: 12px 0 0; }
@media (max-width: 560px) { .lp-news-form { flex-direction: column; align-items: stretch; } .lp-news-btn { width: 100%; justify-content: center; }
}

/* ---------- COMMENTS (deploy/comments service, on feature/post-comments until deployed) ---------- */
/* Sits under the newsletter card at the foot of an article. Quieter than that
   card on purpose: the newsletter is an ask, this is a reply box. */
.lp-comments { border-top: 1px solid var(--ink); margin: 40px 0 0; padding: 26px 0 0; }
.lp-comments-kicker { margin-bottom: 6px; }
.lp-comments-blurb { font-size: 0.95rem; color: var(--ink-2); max-width: 60ch; margin: 0 0 20px; }
.lp-comments-status { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink-4); margin: 0 0 20px; }
.lp-comments-note { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em; color: var(--ink-4); margin: 12px 0 0; }

.lp-comments-list { list-style: none; margin: 0 0 24px; padding: 0; }
.lp-comment { border-left: 2px solid var(--line-soft); padding: 0 0 0 16px; margin: 0 0 20px; }
.lp-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.lp-comment-name { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink); }
.lp-comment-date { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--ink-4); }
/* Comment bodies are visitor-supplied: preserve their line breaks, and break
   long unbroken strings rather than letting one blow out the column. */
.lp-comment-body { font-size: 0.98rem; line-height: 1.6; color: var(--ink-2); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.lp-comment-form { margin: 0; }
.lp-comment-fields { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.lp-comment-input { flex: 1 1 220px; min-width: 0; font-size: 13px; padding: 9px 11px; }
.lp-comment-body-input { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 13px; line-height: 1.6; padding: 10px 11px; resize: vertical; }
.lp-comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
/* Match the newsletter's submit rather than the bare button default: this is
   the same kind of primary action, sitting a few rows below it, and the bare
   default lands at a 30px tap target. Its own class, like the newsletter's,
   so the critical-CSS inliner does not drag these rules onto the homepage
   (it keeps any rule whose text names a shell class, comments included). */
.lp-comment-btn { padding: 9px 18px; font-size: 12px; }
.lp-comment-result { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.03em; max-width: 46ch; }
.lp-comment-result.is-good { color: var(--ink-2); }
.lp-comment-result.is-bad { color: var(--accent-text); }
/* The honeypot. Kept out of the layout and off the tab order without
   display:none, which some form-fillers skip. */
.lp-comment-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) {
  /* Stacking the row turns flex-basis into a HEIGHT, so the 220px basis above
     would render a 220px-tall name field. Reset the basis with the direction. */
  .lp-comment-fields { flex-direction: column; }
  .lp-comment-fields .lp-comment-input { flex: 0 0 auto; }
  .lp-comment-btn { width: 100%; justify-content: center; }
}

/* ---------- FOOTER ---------- */
.lp-footer { max-width: var(--lp-max); margin: 64px auto 0; padding: 0 24px 40px; }
.lp-footer-rule { border-top: 1px solid var(--ink); }
.lp-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.lp-colophon { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--ink-4); }
.lp-footer-right { display: flex; align-items: center; gap: 16px; }

/* ---------- READER (#read/<slug>) ---------- */
.lp-reader { max-width: 720px; margin: 0 auto; padding: 40px 24px 0; }
.lp-reader-back { margin-bottom: 20px; }
.lp-reader-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; margin: 10px 0 10px; }
.lp-reader-dek { font-size: 1.18rem; color: var(--ink-2); font-style: italic; margin: 0 0 18px; }
.lp-reader-rule { border-top: 1px solid var(--ink); margin-bottom: 8px; }
.lp-reader-status { padding: 40px 0; color: var(--ink-3); font-family: var(--mono); font-size: 0.9rem; }
.lp-reader-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin: 36px 0 12px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* related writing (cluster links — prerendered + in-app) */
.lp-related { margin: 40px 0 8px; padding-top: 18px; border-top: 1px solid var(--ink); }
.lp-related-head { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.lp-related ul { list-style: none; margin: 0; padding: 0; }
.lp-related li { border-top: 1px solid var(--line-soft); }
.lp-related li:first-child { border-top: none; }
.lp-related a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; text-decoration: none; color: var(--ink); padding: 11px 2px; }
.lp-related-title { font-family: var(--serif); font-size: 1.12rem; border-bottom: 1px solid transparent; }
.lp-related a:hover .lp-related-title { color: var(--accent-text); border-bottom-color: var(--accent-text); }
.lp-related-meta { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.05em; }

/* in-article CTA (e.g. link to an interactive tool) */
.article-cta { margin: 1.6em 0; }
.article-cta a { display: inline-block; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--paper); background: var(--ink); text-decoration: none; padding: 11px 18px; border: 1px solid var(--ink); }
.article-cta a:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- LLM cost calculator (/tools/llm-cost-calculator/) ---------- */
.calc { max-width: 1000px; }
.calc-top { margin-bottom: 22px; }
.calc-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.06; margin: 8px 0 8px; }
.calc-dek { font-size: 1.12rem; color: var(--ink-2); font-style: italic; max-width: 60ch; margin: 0; }
.calc-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; margin-top: 8px; }
.calc-inputs, .calc-out { border: 1px solid var(--ink); background: var(--paper); padding: 18px; }
.calc-field { margin-bottom: 16px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.calc-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.calc-hint { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); text-align: right; }
.calc-rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.calc-rates .calc-field { margin-bottom: 0; }
.calc-num { display: flex; align-items: center; border: 1px solid var(--line); background: var(--cream); }
.calc-num input { width: 100%; border: 0; background: transparent; font-family: var(--mono); font-size: 0.9rem; color: var(--ink); padding: 8px 10px; -moz-appearance: textfield; }
.calc-num input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.calc-num-suffix { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); padding-right: 10px; }
.calc-headline { border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; margin-bottom: 14px; }
.calc-big { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 3.8rem); line-height: 1; color: var(--accent); }
.calc-per { font-family: var(--mono); font-size: 1rem; color: var(--ink-3); margin-left: 6px; }
.calc-sub { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); margin-top: 8px; }
.calc-saved { font-size: 0.92rem; color: var(--ink); background: color-mix(in srgb, var(--accent-3) 14%, transparent); border-left: 3px solid var(--accent-3); padding: 9px 12px; margin-bottom: 14px; }
.calc-spark { margin-bottom: 14px; }
.calc-spark-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 0 0 16px; }
.calc-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dotted var(--line-soft); padding-bottom: 5px; }
.calc-breakdown dt { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.calc-breakdown dd { font-family: var(--mono); font-size: 0.86rem; color: var(--ink); margin: 0; }
.calc-embed { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.calc-embed-code { display: block; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-3); margin-top: 8px; word-break: break-all; line-height: 1.5; }
.calc-note { font-size: 0.84rem; color: var(--ink-3); margin-top: 18px; max-width: 70ch; }
.calc-note a { color: var(--accent-text); }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; }
}

/* ---------- LLM reliability checklist (/tools/llm-reliability-checklist/) ---------- */
.lrc { max-width: 1000px; }
.lrc-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; margin-top: 10px; }
.lrc-cat { margin-bottom: 22px; }
.lrc-cat-head { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin: 0 0 10px; }
.lrc-item { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.lrc-item-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.lrc-item-row .checkbox { margin-top: 2px; flex: 0 0 auto; }
.lrc-item-label { flex: 1 1 auto; font-size: 0.98rem; line-height: 1.4; color: var(--ink); }
.lrc-item.on .lrc-item-label { color: var(--ink-3); }
.lrc-w { flex: 0 0 auto; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; border: 1px solid currentColor; align-self: center; }
.lrc-w-critical { color: var(--accent-text); }
.lrc-w-important { color: var(--accent-2); }
.lrc-w-nice { color: var(--ink-4); }
.lrc-why { margin: 4px 0 0 30px; font-size: 0.82rem; line-height: 1.45; color: var(--ink-3); }
.lrc-out { position: sticky; top: 84px; border: 1px solid var(--ink); background: var(--paper); padding: 16px; }
.lrc-score { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.lrc-grade { font-family: var(--serif); font-size: 3.2rem; line-height: 1; width: 52px; text-align: center; }
.lrc-grade[data-g="A"], .lrc-grade[data-g="B"] { color: var(--accent-3); }
.lrc-grade[data-g="C"] { color: var(--accent); }
.lrc-grade[data-g="D"], .lrc-grade[data-g="F"] { color: var(--accent-text); }
.lrc-pct { font-family: var(--serif); font-size: 1.8rem; line-height: 1; color: var(--ink); }
.lrc-pct span { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-3); }
.lrc-grade-label { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); margin-top: 4px; }
.lrc-out .progress { margin: 6px 0 10px; }
.lrc-crit { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); margin-bottom: 12px; }
.lrc-gaps { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.lrc-gaps-head { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-text); margin-bottom: 6px; }
.lrc-gaps ul { list-style: none; margin: 0; padding: 0; }
.lrc-gaps li { font-size: 0.82rem; color: var(--ink-2); padding: 3px 0 3px 14px; position: relative; }
.lrc-gaps li::before { content: "›"; position: absolute; left: 0; color: var(--accent-text); }
.lrc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 760px) { .lrc-grid { grid-template-columns: 1fr; } .lrc-out { position: static; }
}
@media print {
  .lp-nav, .lp-footer, .lp-skip, .lrc-actions, .calc-note, .lp-explore, .lp-icon-btn { display: none !important; }
  .lrc-grid { grid-template-columns: 1fr; } .lrc-out { position: static; border: 1px solid #000; }
  .lrc-why { color: #444; }
}

/* article body (shared) */
.article-body { font-size: 1.075rem; line-height: 1.72; color: var(--ink); }
.article-body h2 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.18; margin: 1.8em 0 0.5em; text-transform: none; letter-spacing: -0.01em; color: var(--ink); border-bottom: none; padding-bottom: 0; }
.article-body p { margin: 0 0 1.1em; }
.article-body p + p { text-indent: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.1em; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article-body blockquote { font-family: var(--serif); font-style: italic; font-size: 1.25rem; border-left: 2px solid var(--accent); padding-left: 18px; margin: 1.3em 0; color: var(--ink-2); }
.article-code { font-family: var(--mono); font-size: 0.82rem; line-height: 1.55; background: var(--bg-2); border: 1px solid var(--line-soft); padding: 12px 14px; overflow-x: auto; margin: 0 0 1.2em; white-space: pre; }

/* portrait */
.lp-portrait { object-fit: cover; border: 1px solid var(--ink); background: var(--tan); display: block; }
.lp-portrait-mono { display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 2rem; background: var(--accent); color: var(--cream); }
.lp-about-portrait { width: 120px; height: 120px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; gap: 28px; }
  .lp-spec { max-width: 420px; }
  .lp-about { grid-template-columns: 1fr; gap: 24px; }
  .lp-skills { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lp-nav-links { display: none; }
  .lp-explore, .lp-resume { display: none; }
  .lp-menu-btn { display: grid; }
  .lp-nav-sheet { display: flex; flex-direction: column; border-bottom: 1px solid var(--ink); background: var(--paper); padding: 8px 24px 16px; }
  .lp-sheet-link { background: none; border: none; text-align: left; font-family: var(--serif); font-size: 1.5rem; padding: 8px 0; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--line-soft); }
  .lp-section { padding-top: 72px; }
  .lp-hero { padding-top: 40px; }
  .lp-display { font-size: clamp(2.2rem, 9vw, 3rem); }
  .lp-cap { grid-template-columns: 1fr; gap: 6px; }
  .lp-cap-n { font-size: 1.4rem; }
  .lp-role, .lp-earlier-role { grid-template-columns: 1fr; gap: 6px; }
  .lp-role-years { padding-top: 0; }
  .lp-channel { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .lp-contact { padding: 22px 20px 6px; }
}

/* Landing mode unlocks document scrolling (the desktop app locks html/body). */
html.lp-mode, html.lp-mode body, html.lp-mode #root { height: auto; min-height: 100%; width: auto; overflow: visible; position: static; }
html.lp-mode { overflow-x: hidden; scroll-behavior: smooth; }
html.lp-mode body { user-select: text; cursor: auto; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html.lp-mode { scroll-behavior: auto; }
}

/* ---------- SELECTED WORK (case studies) ---------- */
.lp-case { padding: 4px 2px 14px; }
.lp-case-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); margin-bottom: 14px; }
.lp-case-block { margin-bottom: 14px; }
.lp-case-h { display: inline-block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.lp-case-block p { font-size: 0.98rem; color: var(--ink-2); margin: 0; }
.lp-case-block ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.lp-case-block li { font-size: 0.95rem; color: var(--ink-2); }
.lp-case .lp-tags { margin-top: 14px; }

/* ============ QA: accessibility (focus rings, contrast, semantic) ============ */
.lp { --accent-text: #c0431d; }
body.dark .lp { --accent-text: #f08a6a; --accent-2: #7ba6dc; --accent-3: #7cc267; }

/* visible keyboard focus (WCAG 2.4.7) */
.lp a:focus-visible, .lp button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-metrics a:focus-visible, .lp-metrics button:focus-visible { outline-color: var(--paper); }

/* Folio title is now an <h2>; keep the label styling */
.lp-folio h2.lp-folio-left { font: inherit; margin: 0; font-weight: inherit; }

/* Accordion head is now a <button> */
.accordion-head { width: 100%; text-align: left; }

/* accent text small enough to need 4.5:1 on the warm ground */
.lp-kicker, .lp-post-tag, .lp-case-h, .lp-channel-glyph, .lp-folio-left b,
.lp-factstack li::before { color: var(--accent-text); }
.lp-pullquote { color: var(--accent-text); border-left-color: var(--accent-text); }
.lp-explore { color: var(--accent-text); border-color: var(--accent-text); }
.lp-textlink:hover, .lp-jump:hover, .lp-brand:hover { color: var(--accent-text); }
.lp-textlink:hover { border-bottom-color: var(--accent-text); }
.lp-nav-link.active { color: var(--accent-text); border-bottom-color: var(--accent-text); }
.lp-postrow:hover .lp-postrow-title { color: var(--accent-text); border-bottom-color: var(--accent-text); }

/* ink-4 -> ink-3 where the text carries meaning */
.lp-post-meta, .lp-colophon, .lp-folio-note, .lp-folio-right,
.lp-spec-row dt, .lp-channel-hint, .lp-side-label { color: var(--ink-3); }