/* Design tokens — editorial light portfolio (serif headlines, warm paper, forest accent) */
:root {
  /* Color — luxury editorial paper (mock-adjacent) */
  --bg: #f6f1eb;
  --bg-agent: #ede8e1;
  --text: #171717;
  --text-muted: #6f6a63;
  --border: rgba(221, 212, 202, 0.85);
  --accent: #2d4a3e;
  --accent-hover: #3d5f4f;
  --accent-soft: rgba(45, 74, 62, 0.12);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

  /* Type — Newsreader (display), Inter (UI/body), IBM Plex Mono (agent) */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.65rem;
  --text-3xl: clamp(2rem, 5vw, 2.75rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --content-max: 44rem;
  --header-h: 3.5rem;
  --page-pad: var(--space-6);
  --touch-min: 44px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121110;
    --bg-agent: #1a1917;
    --text: #f2f0eb;
    --text-muted: #a9a59e;
    --border: rgba(242, 240, 235, 0.1);
    --accent: #8fbc9f;
    --accent-hover: #a8d4b3;
    --accent-soft: rgba(143, 188, 159, 0.15);
    --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121110;
  --bg-agent: #1a1917;
  --text: #f2f0eb;
  --text-muted: #a9a59e;
  --border: rgba(242, 240, 235, 0.1);
  --accent: #8fbc9f;
  --accent-hover: #a8d4b3;
  --accent-soft: rgba(143, 188, 159, 0.15);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

html[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  body[data-view="human"] main > * {
    animation: fade-in 0.35s ease-out both;
  }
  body[data-view="human"] main > *:nth-child(1) {
    animation-delay: 0.02s;
  }
  body[data-view="human"] main > *:nth-child(2) {
    animation-delay: 0.06s;
  }
  body[data-view="human"] main > *:nth-child(3) {
    animation-delay: 0.1s;
  }
  body[data-view="human"] main > *:nth-child(4) {
    animation-delay: 0.14s;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--text);
  color: var(--bg);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-4);
}

/* ——— Site shell ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  padding: var(--space-3) var(--page-pad);
  padding-top: max(var(--space-3), env(safe-area-inset-top));
  padding-left: max(var(--page-pad), env(safe-area-inset-left));
  padding-right: max(var(--page-pad), env(safe-area-inset-right));
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-width: 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.theme-toggle {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  min-height: var(--touch-min);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.2;
}

.theme-toggle:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.site-header__brand {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  min-width: 0;
}

.site-header__brand a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: var(--touch-min);
  padding: var(--space-2) 0;
}

.site-header__brand a:hover {
  color: var(--accent);
}

.site-header__nav {
  min-width: 0;
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.site-header__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: var(--space-1) 0 var(--space-2);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.site-header__links li {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.site-header__links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: var(--space-2) var(--space-3);
  border-radius: 6px;
}

.site-header__links a:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--text) 5%, transparent);
}

.site-header__links a.is-active {
  color: var(--text);
  font-weight: 500;
}

/* View toggle — Human | Agent */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
}

.view-toggle__btn {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  min-height: var(--touch-min);
  min-width: 4.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.2;
}

.view-toggle__btn:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

.view-toggle__btn[aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
}

.view-toggle__btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.view-toggle__btn + .view-toggle__btn {
  border-left: 1px solid var(--border);
}

main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-8) var(--page-pad) var(--space-12);
  padding-left: max(var(--page-pad), env(safe-area-inset-left));
  padding-right: max(var(--page-pad), env(safe-area-inset-right));
  padding-bottom: max(var(--space-12), env(safe-area-inset-bottom));
}

.section {
  padding-top: var(--space-10);
  margin-top: var(--space-10);
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}

h1 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 var(--space-4);
}

.lede {
  font-size: clamp(var(--text-base), 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 0 var(--space-8);
  max-width: 38rem;
}

.lede strong {
  font-weight: 600;
  color: var(--text);
}

.meta-line {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.meta-line a {
  color: var(--text-muted);
}

.meta-line a:hover {
  color: var(--accent);
}

.role-line {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}

.highlight-list {
  margin: var(--space-4) 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.highlight-list li {
  margin-bottom: var(--space-3);
}

.highlight-list li:last-child {
  margin-bottom: 0;
}

.highlight-list strong {
  font-weight: 600;
  color: var(--text);
}

.subsection-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  margin: var(--space-8) 0 var(--space-4);
}

.expertise-block {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.expertise-block strong {
  font-weight: 600;
  color: var(--text);
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0 var(--space-1);
  margin: 0 calc(-1 * var(--space-1));
}

h2 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-4);
}

.project-list,
.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-list li,
.experience-list li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.project-list li:first-child,
.experience-list li:first-child {
  padding-top: 0;
}

.project-list li:last-child,
.experience-list li:last-child {
  border-bottom: none;
}

.project-list h3,
.experience-list h3 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  font-optical-sizing: auto;
  margin: 0 0 var(--space-1);
}

.project-list p,
.experience-list p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* Progressive disclosure (<details>) */
.disclose {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.disclose:first-of-type {
  padding-top: 0;
}

.disclose:last-of-type {
  border-bottom: none;
}

.disclose > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  min-height: var(--touch-min);
  font-size: var(--text-sm);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.disclose > summary::-webkit-details-marker {
  display: none;
}

.disclose > summary::before {
  content: "+";
  flex-shrink: 0;
  width: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.3;
}

.disclose[open] > summary::before {
  content: "–";
}

.disclose > summary:hover::before {
  color: var(--accent);
}

.disclose__summary-main {
  flex: 1;
  min-width: 0;
}

.disclose__title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.disclose__meta {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 400;
  margin-top: var(--space-1);
}

/* 2–3 line preview when collapsed; full copy lives in .disclose__body */
.disclose__preview {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin: var(--space-3) 0 0;
  max-width: 38rem;
}

.disclose__preview p {
  margin: 0 0 var(--space-2);
}

.disclose__preview p:last-child {
  margin-bottom: 0;
}

details:not([open]) .disclose__expand-prompt {
  display: block;
}

details[open] .disclose__expand-prompt {
  display: none;
}

.disclose__expand-prompt {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent);
  margin-top: var(--space-3);
  letter-spacing: 0.02em;
}

.disclose__hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--accent);
  margin-top: var(--space-2);
  font-weight: 500;
}

.disclose__body {
  padding: var(--space-4) 0 var(--space-2) calc(1.25rem + var(--space-3));
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.disclose__body > p:first-child {
  margin-top: 0;
}

.disclose__body p {
  margin: 0 0 var(--space-3);
}

.disclose__body .detail-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin: var(--space-6) 0 var(--space-2);
}

.disclose__body .detail-label:first-child {
  margin-top: 0;
}

.disclose__body ul {
  margin: 0 0 var(--space-4);
  padding-left: 1.15rem;
}

.disclose__body li {
  margin-bottom: var(--space-2);
}

.disclose__body li:last-child {
  margin-bottom: 0;
}

.details-stack {
  margin-top: var(--space-6);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}

.details-stack > .disclose {
  border-bottom: 1px solid var(--border);
}

.details-stack > .disclose:last-child {
  border-bottom: none;
}

.hero .disclose {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0;
  margin-top: var(--space-6);
  background: color-mix(in srgb, var(--bg) 55%, #fff);
}

.hero .disclose > summary {
  padding: var(--space-3) var(--space-4);
}

.hero .disclose__body {
  padding: 0 var(--space-4) var(--space-4);
  padding-left: calc(var(--space-4) + 1.25rem + var(--space-3));
}

@media (max-width: 480px) {
  .hero .disclose__body,
  .venture-intro .disclose__body {
    padding-left: var(--space-4);
  }
}

.hero .disclose[open] > summary {
  border-bottom: 1px solid var(--border);
}

.venture-intro > .disclose {
  margin-top: var(--space-6);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0;
  background: color-mix(in srgb, var(--bg) 55%, #fff);
}

.venture-intro .disclose > summary {
  padding: var(--space-3) var(--space-4);
}

.venture-intro .disclose__body {
  padding: 0 var(--space-4) var(--space-4);
  padding-left: calc(var(--space-4) + 1.25rem + var(--space-3));
}

.venture-intro .disclose[open] > summary {
  border-bottom: 1px solid var(--border);
}

.disclose--nested {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: var(--space-4);
  padding: 0 !important;
}

.disclose--nested > summary {
  padding: var(--space-3) var(--space-4) !important;
}

.disclose--nested .disclose__body--nested {
  padding: 0 var(--space-4) var(--space-4) !important;
  padding-left: calc(var(--space-4) + 1.25rem + var(--space-3)) !important;
}

.disclose--nested[open] > summary {
  border-bottom: 1px solid var(--border);
}

.disclose--nested .disclose__expand-prompt {
  font-size: var(--text-xs);
}

.disclose__title--sm {
  font-size: var(--text-sm) !important;
}

.section-intro {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
  max-width: 40rem;
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -52px -24px -28px -24px;
  background: radial-gradient(
      ellipse 85% 65% at 12% 0%,
      var(--accent-soft),
      transparent 58%
    ),
    radial-gradient(
      ellipse 55% 45% at 92% 18%,
      color-mix(in srgb, var(--text) 3%, transparent),
      transparent 52%
    );
  pointer-events: none;
  z-index: -1;
}

.story-card {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
}

.story-card:last-of-type {
  border-bottom: none;
}

.story-card__title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 var(--space-1);
}

.story-card__meta {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 var(--space-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-card p {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.story-card strong {
  color: var(--text);
  font-weight: 600;
}

.trust-strip {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.trust-strip__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}

.trust-strip__line {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  color: var(--text);
  letter-spacing: 0.02em;
}

.trust-strip__line:last-child {
  margin-bottom: 0;
}

.trust-strip__line--muted {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.education-mit {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 var(--space-4);
  max-width: 40rem;
}

.education-mit p {
  margin: 0 0 var(--space-4);
}

.education-mit p:last-child {
  margin-bottom: 0;
}

.education-mit strong {
  font-weight: 600;
  color: var(--text);
}

.site-footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-8) var(--page-pad) var(--space-12);
  padding-left: max(var(--page-pad), env(safe-area-inset-left));
  padding-right: max(var(--page-pad), env(safe-area-inset-right));
  padding-bottom: max(var(--space-12), env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.site-footer a {
  color: var(--text-muted);
}

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

.site-footer__blurb {
  margin: 0 0 var(--space-4);
}

.site-footer__contact {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.site-footer__contact li {
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
}

.site-footer__agents {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
}

/* ——— Blog ——— */
.blog-post {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-6) var(--page-pad) var(--space-8);
  border-top: 1px solid var(--border);
}

.blog-post__date {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}

.blog-post__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-6);
}

.blog-post__body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 38rem;
}

.blog-post__body p {
  margin: 0 0 var(--space-4);
}

.blog-post__body p:last-child {
  margin-bottom: 0;
}

/* ——— Agent view ——— */
body[data-view="agent"] {
  background: var(--bg-agent);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

body[data-view="agent"] .site-header {
  font-family: var(--font-mono);
}

body[data-view="agent"] .site-header__brand,
body[data-view="agent"] .lux-brand {
  font-family: var(--font-mono);
}

body[data-view="agent"] .site-header__brand a,
body[data-view="agent"] .lux-brand {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
}

body[data-view="agent"] .view-toggle__btn {
  font-family: var(--font-mono);
}

body[data-view="human"] .agent-only {
  display: none !important;
}

body[data-view="agent"] .section:not(.agent-dashboard):not(.agent-content-map):not(.agent-parsed):not(.agent-raw) {
  display: none !important;
}

body[data-view="agent"] .site-header__nav,
body[data-view="agent"] .lux-nav {
  display: none;
}

body[data-view="agent"] .lux-page-card--site-header {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body[data-view="agent"] main {
  padding-top: var(--space-8);
}

body[data-view="agent"] .section {
  border-color: color-mix(in srgb, var(--text) 18%, transparent);
}

body[data-view="agent"] main > .section {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Agent status bar */
.agent-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}

.agent-status-bar__badge {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.agent-status-bar__meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.agent-status-bar__meta::before {
  content: "·";
  margin-right: var(--space-3);
}

.agent-status-bar__meta:empty {
  display: none;
}

/* Agent endpoint cards */
.agent-endpoints {
  display: grid;
  gap: var(--space-4);
}

.agent-ep {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}

.agent-ep__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.agent-ep__path {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

.agent-ep__mime {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: 2px var(--space-2);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.agent-ep p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
  line-height: 1.55;
}

.agent-ep p:last-child {
  margin-bottom: 0;
}

.agent-ep code {
  font-size: 0.85em;
  color: var(--text);
}

.agent-ep__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.agent-ep__actions a {
  font-size: var(--text-sm);
  font-weight: 500;
}

.agent-copy-btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px var(--space-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.agent-copy-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.agent-copy-btn.copied {
  color: var(--accent);
  border-color: var(--accent);
}

/* Agent note paragraphs */
.agent-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
  line-height: 1.55;
}

.agent-note code {
  font-size: 0.9em;
  color: var(--text);
}

/* Agent content map table */
.agent-table-wrap {
  overflow-x: auto;
}

.agent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-xs);
}

.agent-table th,
.agent-table td {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.agent-table th {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.agent-table td {
  color: var(--text-muted);
}

.agent-table td code {
  color: var(--text);
  font-size: 0.95em;
}

.agent-table tbody tr:last-child td {
  border-bottom: none;
}

/* Agent parsed profile cards */
.agent-card {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  margin-bottom: var(--space-4);
}

.agent-card:last-child {
  margin-bottom: 0;
}

.agent-card__title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}

.agent-card__dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-1) var(--space-4);
  margin: 0;
  font-size: var(--text-sm);
}

.agent-card__dl dt {
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.agent-card__dl dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.agent-card__dl dd a {
  word-break: break-all;
}

.agent-card__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: var(--space-4) 0 var(--space-2);
}

.agent-card__label:first-child {
  margin-top: 0;
}

.agent-card ul {
  margin: 0 0 var(--space-3);
  padding-left: 1.15rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.agent-card li {
  margin-bottom: var(--space-1);
}

.agent-card li:last-child {
  margin-bottom: 0;
}

.agent-card__block {
  padding-top: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.agent-card__block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.agent-card__subtitle {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 var(--space-2);
}

.agent-card__entry {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
}

.agent-card__entry:last-child {
  border-bottom: none;
}

.agent-card__entry-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.agent-card__entry-dates {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
}

.agent-card__entry-summary {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: var(--space-1) 0 0;
  line-height: 1.5;
}

.agent-loading {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* Agent raw JSON section */
.agent-raw__summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.agent-raw__summary::-webkit-details-marker {
  display: none;
}

.agent-raw__summary h2 {
  margin: 0;
  font-size: var(--text-xl);
}

.agent-raw__hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.agent-raw details[open] .agent-raw__hint {
  display: none;
}

.agent-raw__body {
  position: relative;
  margin-top: var(--space-3);
}

.agent-raw__body pre {
  margin: 0;
  padding: var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: var(--text-xs);
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 60vh;
  overflow-y: auto;
}

.agent-raw__body .agent-copy-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 1;
  background: var(--bg);
}

.agent-meta {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Small screens: agent cards stack cleanly */
@media (max-width: 480px) {
  .agent-card__dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .agent-card__dl dt {
    margin-top: var(--space-2);
    color: var(--text);
  }
  .agent-card__dl dd {
    color: var(--text-muted);
  }
}

/* ——— Tablet / desktop header (single row) ——— */
@media (min-width: 768px) {
  :root {
    --page-pad: var(--space-6);
  }

  .site-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }

  .site-header__top {
    flex-shrink: 0;
  }

  .site-header__brand a {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    min-height: 0;
    padding: 0;
  }

  .site-header__nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    min-width: 0;
  }

  .site-header__links {
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow-x: visible;
    padding: 0;
    gap: var(--space-4);
  }

  .site-header__links a {
    min-height: 0;
    padding: var(--space-2) 0;
    border-radius: 0;
  }

  .site-header__links a:hover {
    background: transparent;
  }

  .view-toggle__btn {
    min-height: 0;
    min-width: 0;
  }

  .theme-toggle {
    min-height: 0;
    padding: var(--space-2) var(--space-3);
  }

  main {
    padding-top: var(--space-12);
    padding-bottom: var(--space-16);
  }

  .hero__links a {
    min-height: 0;
    padding: 0;
    margin: 0;
  }

  .hero .disclose__body,
  .venture-intro .disclose__body {
    padding-left: calc(var(--space-4) + 1.25rem + var(--space-3));
  }
}

/* ——— Small phones ——— */
@media (max-width: 480px) {
  :root {
    --page-pad: var(--space-4);
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  h2 {
    font-size: var(--text-lg);
  }

  .section {
    padding-top: var(--space-6);
    margin-top: var(--space-6);
  }

  .disclose__body {
    padding-left: 1.75rem;
  }

  .disclose--nested .disclose__body--nested {
    padding-left: var(--space-3) !important;
  }

  .site-footer__contact {
    flex-direction: column;
    gap: 0;
  }
}

/* ——— Very narrow phones ——— */
@media (max-width: 360px) {
  .site-header__top {
    flex-wrap: wrap;
  }

  .view-toggle__btn {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-2);
  }

  .theme-toggle {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-2);
  }

  .site-header__brand {
    font-size: var(--text-xs);
  }
}

/* ——— Luxury editorial shell (human view) ——— */
:root {
  --lux-max: 1180px;
  --lux-line: #ddd4ca;
  --lux-line-strong: #cfc4b8;
  --lux-panel: #f8f4ef;
  --lux-soft: #fbf8f4;
  --lux-shadow: 0 8px 30px rgba(18, 18, 18, 0.05);
  --lux-radius: 22px;
  --lux-radius-sm: 14px;
  --lux-ink: #161616;
  --lux-ink-inverse: #f4efe8;
  /* Fluid page gutter + vertical rhythm (laptop ↔ phone) */
  --lux-pad-x: max(1rem, min(4.5vw, 1.75rem));
  --lux-pad-x-safe: max(var(--lux-pad-x), env(safe-area-inset-left));
  --lux-pad-x-safe-r: max(var(--lux-pad-x), env(safe-area-inset-right));
  --lux-y-hero: clamp(2rem, 6vw, 3.25rem);
  --lux-y-band: clamp(2.25rem, 5.5vw, 3.5rem);
  --lux-y-block: clamp(1.5rem, 3.5vw, 2.25rem);
  /* One type ramp: sans body / serif display */
  --lux-fs-display: clamp(1.7rem, 0.55rem + 3.8vw, 3rem);
  --lux-fs-section: clamp(1.35rem, 0.35rem + 2.4vw, 2.125rem);
  --lux-fs-card-title: clamp(1.2rem, 0.25rem + 1.6vw, 1.5rem);
  --lux-fs-list-title: clamp(1.08rem, 0.2rem + 1.35vw, 1.35rem);
  --lux-fs-lede: clamp(1rem, 0.2rem + 0.9vw, 1.0625rem);
  --lux-fs-body: clamp(0.9rem, 0.15rem + 0.75vw, 0.975rem);
  --lux-fs-ui: clamp(0.8125rem, 0.12rem + 0.65vw, 0.875rem);
  --lux-fs-eyebrow: clamp(0.75rem, 0.1rem + 0.55vw, 0.8125rem);
  --lux-fs-meta: clamp(0.8125rem, 0.1rem + 0.6vw, 0.9rem);
  --lux-fs-caption: clamp(0.6875rem, 0.08rem + 0.5vw, 0.75rem);
  --lux-fs-brand: clamp(1.35rem, 0.35rem + 2.2vw, 2rem);
  --lux-leading-tight: 1.08;
  --lux-leading-snug: 1.25;
  --lux-leading-body: 1.65;
  --lux-copy-max: min(100%, 38rem);
  --lux-rail-max: min(100%, 46rem);
  /* Shared horizontal inset for hero summary + project cards (one column) */
  --lux-card-inset: clamp(1rem, 2.5vw, 1.25rem);
}

html[data-theme="dark"] {
  --lux-line: rgba(242, 240, 235, 0.14);
  --lux-line-strong: rgba(242, 240, 235, 0.22);
  --lux-panel: #1a1917;
  --lux-soft: #141413;
  --lux-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --lux-ink: #f4efe8;
  --lux-ink-inverse: #171717;
}

body[data-view="human"] {
  background: linear-gradient(to bottom, #f8f4ef 0%, #f5efe8 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-theme="dark"] body[data-view="human"] {
  background: linear-gradient(to bottom, #141413 0%, #111110 100%);
}

body[data-view="human"] main {
  max-width: none;
  margin: 0;
  padding: 0 0 var(--space-12);
}

body[data-view="human"] main > .section {
  box-sizing: border-box;
  width: calc(min(100%, var(--lux-max)) - var(--lux-pad-x-safe) - var(--lux-pad-x-safe-r));
  margin: clamp(0.875rem, 2.5vw, 1.25rem) auto 0;
  padding: clamp(1rem, 2.5vw, 1.35rem) var(--lux-card-inset);
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-sm);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

body[data-view="human"] main > .section + .section {
  margin-top: clamp(0.875rem, 2.5vw, 1.25rem);
}

body[data-view="human"] main > .lux-shell {
  margin-bottom: 0;
}

html[data-theme="dark"] body[data-view="human"] main > .section {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* Let copy fill the full card width inside every elevated card. */
body[data-view="human"] main > .section .disclose__preview,
body[data-view="human"] main > .section .disclose__body,
body[data-view="human"] main > .section .section-intro,
body[data-view="human"] main > .section .education-mit,
body[data-view="human"] main > .section .lede,
body[data-view="human"] .lux-page-card .lux-section-header {
  max-width: none;
}

body[data-view="human"] header.site-header.lux-header {
  position: static;
  border-bottom: 1px solid var(--lux-line);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: max(0.5rem, env(safe-area-inset-top)) var(--lux-pad-x-safe) 0;
  padding-right: var(--lux-pad-x-safe-r);
  max-width: var(--lux-max);
  margin: 0 auto;
}

body[data-view="human"] .lux-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-bottom: clamp(1rem, 2.5vw, 1.625rem);
  border-bottom: 1px solid var(--lux-line);
}

body[data-view="human"] .lux-brand {
  font-family: var(--font-serif);
  font-size: var(--lux-fs-brand);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  text-decoration: none;
}

body[data-view="human"] .lux-brand:hover {
  color: var(--accent);
}

body[data-view="human"] .lux-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.125rem;
  font-size: var(--lux-fs-ui);
  line-height: var(--lux-leading-snug);
}

body[data-view="human"] .lux-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

body[data-view="human"] .lux-nav a:hover {
  color: var(--text);
}

body[data-view="human"] .lux-shell {
  width: min(100%, var(--lux-max));
  margin: 0 auto;
  padding: 0.75rem var(--lux-pad-x-safe) 0.5rem;
  padding-right: var(--lux-pad-x-safe-r);
  font-family: var(--font-sans);
  font-size: var(--lux-fs-body);
  line-height: var(--lux-leading-body);
}

/* Human view: dashboard grid — 1 column on phone, 3 columns on tablet+ */
body[data-view="human"] .lux-shell.lux-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.875rem, 2.5vw, 1.25rem);
  align-items: stretch;
}

@media (min-width: 768px) {
  body[data-view="human"] .lux-shell.lux-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.2vw, 1.35rem);
  }
}

body[data-view="human"] .lux-page-card {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body[data-view="human"] .lux-page-card--span-full {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  body[data-view="human"] .lux-page-card--span-2 {
    grid-column: span 2;
  }
}

body[data-view="human"] .lux-page-card--elevated {
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-sm);
  background: rgba(255, 255, 255, 0.55);
  padding: clamp(1rem, 2.5vw, 1.35rem) var(--lux-card-inset);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

html[data-theme="dark"] body[data-view="human"] .lux-page-card--elevated {
  background: rgba(255, 255, 255, 0.05);
}

body[data-view="human"] .lux-page-card--hero {
  padding: 0;
  overflow: clip;
}

body[data-view="human"] .lux-page-card--intro .lux-section-header {
  margin-bottom: 0;
}

body[data-view="human"] .lux-page-card .lux-section-header {
  max-width: none;
}

body[data-view="human"] .lux-page-card--site-header {
  padding: clamp(0.65rem, 1.8vw, 0.85rem) var(--lux-card-inset);
}

body[data-view="human"] .lux-page-card--tile {
  height: 100%;
  justify-content: flex-start;
  gap: 1rem;
}

body[data-view="human"] .lux-page-card__body {
  flex: 1 1 auto;
  min-height: 0;
}

body[data-view="human"] .lux-page-card--tile > .lux-btn {
  margin-top: auto;
  align-self: flex-start;
}

body[data-view="human"] .lux-page-card--stack {
  gap: 0;
  height: 100%;
}

@media (min-width: 768px) {
  body[data-view="human"] .lux-page-card--stack .lux-list-panel,
  body[data-view="human"] .lux-page-card--stack .lux-experience,
  body[data-view="human"] .lux-page-card--stack .lux-contact-shell {
    flex: 1 1 auto;
    min-height: 0;
  }
}

body[data-view="human"] .lux-page-card--stack .lux-contact-shell {
  border-top: none;
  padding-top: clamp(0.65rem, 2vw, 1rem);
}

body[data-view="human"] .lux-hero {
  padding: var(--lux-y-hero) var(--lux-card-inset) var(--lux-y-block);
}

body[data-view="human"] .lux-hero__grid {
  display: block;
}

body[data-view="human"] .lux-hero__copy {
  width: 100%;
  text-align: left;
}

body[data-view="human"] .lux-eyebrow {
  display: inline-block;
  margin-bottom: clamp(1rem, 2.5vw, 1.375rem);
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--lux-line-strong);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.45);
  font-size: var(--lux-fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

html[data-theme="dark"] body[data-view="human"] .lux-eyebrow {
  background: rgba(255, 255, 255, 0.06);
}

body[data-view="human"] .lux-hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--lux-fs-display);
  line-height: var(--lux-leading-tight);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}

body[data-view="human"] .lux-hero__lede {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font-size: var(--lux-fs-lede);
  line-height: var(--lux-leading-body);
  color: var(--text-muted);
}

body[data-view="human"] .lux-hero__lede strong {
  color: var(--text);
  font-weight: 600;
}

body[data-view="human"] .lux-hero__meta {
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  font-size: var(--lux-fs-meta);
  color: var(--text-muted);
  line-height: var(--lux-leading-snug);
}

body[data-view="human"] .lux-hero__meta a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body[data-view="human"] .lux-hero__meta a:hover {
  color: var(--accent);
}

body[data-view="human"] .lux-hero__actions {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.875rem;
}

body[data-view="human"] .lux-btn {
  padding: 0.75rem 1.125rem;
  border-radius: 12px;
  border: 1px solid var(--lux-line-strong);
  background: transparent;
  color: var(--text);
  font-size: var(--lux-fs-ui);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--touch-min);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body[data-view="human"] .lux-btn:hover {
  transform: translateY(-1px);
}

body[data-view="human"] .lux-btn--primary {
  background: var(--lux-ink);
  color: var(--lux-ink-inverse);
  border-color: var(--lux-ink);
  box-shadow: var(--lux-shadow);
}

html[data-theme="dark"] body[data-view="human"] .lux-btn--primary {
  box-shadow: var(--lux-shadow);
}

body[data-view="human"] .lux-hero__details.disclose {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--lux-line);
  border-radius: var(--lux-radius-sm);
  background: rgba(255, 255, 255, 0.35);
  /* Reset global .disclose padding / rule so inner copy lines up with hero */
  padding: 0;
  border-bottom: none;
  text-align: left;
}

html[data-theme="dark"] body[data-view="human"] .lux-hero__details.disclose {
  background: rgba(255, 255, 255, 0.04);
}

body[data-view="human"] .lux-hero__details.disclose[open] > summary {
  border-bottom: 1px solid var(--lux-line);
}

body[data-view="human"] .lux-hero__details.disclose > summary {
  padding: var(--lux-card-inset);
  gap: 0;
}

/* Drop the flex “+” column so title, preview, and body share one vertical margin */
body[data-view="human"] .lux-hero__details.disclose > summary::before {
  content: none;
}

body[data-view="human"] .lux-hero__details .disclose__title {
  font-family: var(--font-serif);
  font-size: var(--lux-fs-list-title);
  font-weight: 500;
  letter-spacing: -0.02em;
}

body[data-view="human"] .lux-hero__details .disclose__preview,
body[data-view="human"] .lux-hero__details .disclose__body {
  font-family: var(--font-sans);
  font-size: var(--lux-fs-body);
  line-height: var(--lux-leading-body);
}

body[data-view="human"] .lux-hero__details .disclose__expand-prompt {
  font-size: var(--lux-fs-ui);
}

body[data-view="human"] .lux-hero__details .disclose__preview {
  max-width: none;
}

body[data-view="human"] .lux-hero__details .disclose__body {
  padding: 0.75rem var(--lux-card-inset) calc(var(--lux-card-inset) + 0.125rem);
}

body[data-view="human"] .lux-section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.625rem);
  text-align: left;
  max-width: var(--lux-rail-max);
}

body[data-view="human"] .lux-section-title {
  font-family: var(--font-serif);
  font-size: var(--lux-fs-section);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
  line-height: var(--lux-leading-snug);
}

body[data-view="human"] .lux-section-title-link {
  color: inherit;
  text-decoration: none;
}

body[data-view="human"] .lux-section-title-link:hover {
  color: var(--accent);
}

body[data-view="human"] .lux-section-note {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--lux-fs-ui);
  line-height: var(--lux-leading-snug);
}

body[data-view="human"] .lux-section-note a {
  color: var(--text-muted);
}

body[data-view="human"] .lux-section-note a:hover {
  color: var(--accent);
}

body[data-view="human"] .lux-label {
  font-size: var(--lux-fs-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

body[data-view="human"] .lux-card-title {
  font-family: var(--font-serif);
  font-size: var(--lux-fs-card-title);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: var(--lux-leading-snug);
  margin: 0.35rem 0 0.25rem;
  color: inherit;
}

body[data-view="human"] .lux-card-desc {
  margin: 0;
  line-height: var(--lux-leading-body);
  color: var(--text-muted);
  max-width: none;
  font-size: var(--lux-fs-body);
}

/* Stack cards (insights / experience): shared header rhythm */
body[data-view="human"] .lux-page-card--stack .lux-section-header {
  min-height: clamp(3.5rem, 6vw, 4.25rem);
}

body[data-view="human"] .lux-list-panel {
  border-top: 1px solid var(--lux-line);
  padding-top: 0.75rem;
}

body[data-view="human"] .lux-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.25rem;
  padding: clamp(1.1rem, 2.5vw, 1.65rem) 0;
  border-bottom: 1px solid var(--lux-line);
  text-decoration: none;
  color: inherit;
  align-items: start;
}

body[data-view="human"] .lux-list-item:hover .lux-list-item__title {
  color: var(--accent);
}

body[data-view="human"] .lux-list-item__title {
  font-family: var(--font-serif);
  font-size: var(--lux-fs-list-title);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: var(--lux-leading-snug);
  color: var(--text);
}

body[data-view="human"] .lux-list-item__desc {
  margin: 0;
  color: var(--text-muted);
  line-height: var(--lux-leading-body);
  font-size: var(--lux-fs-body);
}

body[data-view="human"] .lux-list-item time,
body[data-view="human"] .lux-list-item__time {
  font-size: var(--lux-fs-ui);
  color: var(--text-muted);
  white-space: nowrap;
  align-self: start;
  padding-top: 0.15rem;
}

body[data-view="human"] .lux-experience {
  border-top: 1px solid var(--lux-line);
  padding-top: 0.75rem;
}

body[data-view="human"] .lux-xp-item {
  display: block;
  padding: clamp(1.1rem, 2.5vw, 1.5rem) 0;
  border-bottom: 1px solid var(--lux-line);
  text-decoration: none;
  color: inherit;
}

body[data-view="human"] .lux-xp-item:hover .lux-xp-name {
  color: var(--accent);
}

body[data-view="human"] .lux-xp-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

body[data-view="human"] .lux-xp-name {
  font-size: var(--lux-fs-lede);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  font-family: var(--font-sans);
}

body[data-view="human"] .lux-xp-meta {
  font-size: var(--lux-fs-ui);
  color: var(--text-muted);
  white-space: nowrap;
  font-family: var(--font-sans);
}

body[data-view="human"] .lux-xp-role {
  font-size: var(--lux-fs-body);
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-sans);
}

body[data-view="human"] .lux-xp-sub {
  font-size: var(--lux-fs-ui);
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: var(--lux-leading-body);
  font-family: var(--font-sans);
}

body[data-view="human"] .lux-contact-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  justify-content: flex-start;
  column-gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 1px solid var(--lux-line);
}

body[data-view="human"] .lux-contact-left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body[data-view="human"] .lux-pill {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--lux-line-strong);
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-muted);
  font-size: var(--lux-fs-ui);
  line-height: var(--lux-leading-snug);
  text-decoration: none;
}

html[data-theme="dark"] body[data-view="human"] .lux-pill {
  background: rgba(255, 255, 255, 0.06);
}

body[data-view="human"] .lux-pill:hover {
  color: var(--text);
  border-color: var(--accent);
}

body[data-view="human"] .lux-footer.site-footer {
  max-width: var(--lux-max);
  border-top-color: var(--lux-line);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  column-gap: clamp(1.5rem, 4vw, 2.5rem);
  row-gap: 0.75rem;
  font-size: var(--lux-fs-ui);
  line-height: var(--lux-leading-snug);
}

body[data-view="human"] .lux-footer.site-footer p {
  margin: 0;
}

body[data-view="agent"] .lux-shell {
  display: none !important;
}

@media (max-width: 720px) {
  body[data-view="human"] .lux-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    min-width: 0;
  }

  body[data-view="human"] .lux-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem 1rem;
    padding-bottom: 0.25rem;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: thin;
  }

  body[data-view="human"] .lux-nav a {
    flex: 0 0 auto;
    padding: 0.35rem 0.15rem;
  }

  body[data-view="human"] .lux-list-item {
    grid-template-columns: 1fr;
  }

  body[data-view="human"] .lux-list-item time,
  body[data-view="human"] .lux-list-item__time {
    margin-top: 8px;
    white-space: normal;
  }

  body[data-view="human"] .lux-xp-top {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-view="human"] .lux-contact-shell {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ——— Blog page (luxury shell) ——— */
body.blog-page {
  background: linear-gradient(to bottom, #f8f4ef 0%, #f5efe8 100%);
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-sans);
  font-size: var(--lux-fs-body);
  line-height: var(--lux-leading-body);
}

html[data-theme="dark"] body.blog-page {
  background: linear-gradient(to bottom, #141413 0%, #111110 100%);
}

body.blog-page .site-header {
  position: static;
  border-bottom: 1px solid var(--lux-line);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  max-width: var(--lux-max);
  margin: 0 auto;
  padding: max(0.5rem, env(safe-area-inset-top)) var(--lux-pad-x-safe) 0;
  padding-right: var(--lux-pad-x-safe-r);
}

body.blog-page .lux-blog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-bottom: clamp(1rem, 2.5vw, 1.375rem);
  border-bottom: 1px solid var(--lux-line);
}

body.blog-page .lux-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.125rem;
  font-size: var(--lux-fs-ui);
  line-height: var(--lux-leading-snug);
}

body.blog-page .lux-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

body.blog-page .lux-nav a:hover,
body.blog-page .lux-nav a.is-active {
  color: var(--text);
}

body.blog-page .lux-blog-brand {
  font-family: var(--font-serif);
  font-size: var(--lux-fs-brand);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  text-decoration: none;
}

body.blog-page .lux-blog-brand:hover {
  color: var(--accent);
}

body.blog-page main {
  max-width: var(--lux-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2rem) var(--lux-pad-x-safe-r)
    max(clamp(2.5rem, 6vw, 3rem), env(safe-area-inset-bottom)) var(--lux-pad-x-safe);
}

body.blog-page .blog-post {
  max-width: var(--lux-copy-max);
  margin-inline: 0;
  border-top: 1px solid var(--lux-line);
  padding: clamp(1rem, 2.5vw, 1.5rem) 0 clamp(2rem, 4vw, 2.5rem);
}

body.blog-page .blog-post:first-of-type {
  border-top: none;
  padding-top: 0;
}

body.blog-page .blog-post__date {
  font-size: var(--lux-fs-caption);
  letter-spacing: 0.1em;
}

body.blog-page .blog-post__title {
  font-family: var(--font-serif);
  font-size: var(--lux-fs-section);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: var(--lux-leading-snug);
}

body.blog-page .blog-post__body {
  font-size: var(--lux-fs-body);
  line-height: var(--lux-leading-body);
  max-width: none;
}

body.blog-page .section.hero {
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

body.blog-page .section.hero h1 {
  font-family: var(--font-serif);
  font-size: var(--lux-fs-section);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: var(--lux-leading-snug);
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
}

body.blog-page .section.hero .lede {
  font-size: var(--lux-fs-lede);
  line-height: var(--lux-leading-body);
  color: var(--text-muted);
  max-width: var(--lux-copy-max);
  margin: 0;
}

@media (max-width: 720px) {
  body.blog-page .lux-blog-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    min-width: 0;
  }

  body.blog-page .lux-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: thin;
  }

  body.blog-page .lux-nav a {
    flex: 0 0 auto;
    padding: 0.35rem 0.15rem;
  }
}
