/* Presentation only. Existing navigation, cursor, and experiment logic is unchanged. */
:root {
  --editorial-ink: #20251f;
  --editorial-green: #365d47;
  --editorial-paper: #f5f5f1;
  --editorial-rule: #d5dad2;
  --editorial-muted: #677066;
  --editorial-serif: Georgia, "Times New Roman", "Songti SC", serif;
}
body.bg-white { color: var(--editorial-ink); background: #fff; }
.portfolio-nav { background: var(--editorial-paper); border-bottom: 1px solid #343c33; box-shadow: none; }
.portfolio-nav-inner { max-width: 1320px; padding: 22px 36px; gap: 24px; }
.portfolio-brand { max-width: none; }
.portfolio-brand a { color: var(--editorial-ink); font-family: var(--editorial-serif); font-size: 25px; font-weight: 700; }
/* Keep lifted buttons and focus outlines inside the horizontal scroll viewport. */
.portfolio-nav-scroll { min-width: 0; padding: 6px 4px 8px; margin-block: -6px; }
.portfolio-nav-list { padding-left: 0; justify-content: flex-end; gap: 8px; }
.portfolio-nav-link { font-size: 13px; padding-inline: 10px; border-radius: 4px; color: #394139; }
.portfolio-nav-link:hover { background: #e9eee6; color: #20251f; }
.portfolio-nav-link.is-active { color: var(--editorial-green); }
.portfolio-nav-link.is-active::after { background: var(--editorial-green); }
.portfolio-nav-indicator { bottom: 10px; background: var(--editorial-green); box-shadow: none; }
.portfolio-nav-link.portfolio-nav-contact { border: 1px solid #77816e; border-radius: 24px; margin-left: 8px; padding-inline: 20px; transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease, transform 300ms cubic-bezier(.22,1,.36,1); }
.portfolio-nav-link.portfolio-nav-contact:hover, .portfolio-nav-link.portfolio-nav-contact:focus-visible { background: #e9eee6; border-color: var(--editorial-green); }
.portfolio-nav-link.portfolio-nav-contact:focus-visible { outline: 2px solid var(--editorial-green); outline-offset: 2px; }
.portfolio-nav-link.portfolio-nav-contact.is-active { background: var(--editorial-green); color: #f7faf4; border-color: var(--editorial-green); }
.portfolio-nav-indicator[hidden],
.portfolio-nav-contact.is-active::after,
.portfolio-nav-scroll:has(.portfolio-nav-contact.is-active) > .portfolio-nav-indicator { display: none; }
.editorial-kicker { margin: 0 0 20px; font-size: 11px !important; font-weight: 600; line-height: 1.6; color: var(--editorial-green) !important; text-align: left !important; text-transform: uppercase; hyphens: none; }
.editorial-home { background: var(--editorial-paper); border-bottom: 1px solid #343c33; }
.editorial-home-masthead { max-width: 1240px; margin: auto; padding: 34px 32px 0; display: flex; justify-content: space-between; gap: 20px; }
.editorial-home-masthead .editorial-kicker { margin: 0; }
.editorial-home-masthead a { font-size: 12px; color: var(--editorial-green); text-decoration: none; }
.editorial-home-masthead a span { margin-left: 10px; }
.editorial-home .portfolio-hero-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); max-width: 1240px; padding: 42px 32px 52px; gap: 80px; align-items: start; }
.editorial-home .portfolio-hero-profile-col, .editorial-home .portfolio-hero-content-col { width: 100%; max-width: none; padding: 0; }
.editorial-home .portfolio-profile-panel { width: 100%; max-width: none; margin: 0; transform: none; padding: 0; }
.editorial-home .portfolio-avatar-frame { width: 248px; height: 248px; margin: 0 auto 28px; background: white; border: 1px solid #bccdbb; box-shadow: 0 0 0 10px #e7ede2; }
.editorial-home .portfolio-display-name { font-family: var(--editorial-serif); font-size: 27px; color: #20251f; line-height: 1.35; }
.editorial-home .portfolio-display-subname { font-family: var(--editorial-serif); font-size: 23px; color: #365d47; margin-top: 8px; }
.editorial-home .portfolio-profile-panel > h2 { font-weight: 400; font-size: 14px; line-height: 1.7; color: #697367; margin-top: 10px; }
.editorial-home .portfolio-social-icons { margin: 26px auto 0; gap: 14px; padding: 0; }
.editorial-home .portfolio-social-button { width: 44px; height: 44px; background: transparent; border: 1px solid #cad5c5; color: #365d47; box-shadow: none; }
.editorial-home .portfolio-social-svg { width: 24px; height: 24px; }
.editorial-home .portfolio-social-button:hover { background: #e1e9dc; transform: translateY(-3px); }
.editorial-home .portfolio-hero-content-inner { margin: 0; width: 100%; max-width: none; }
.editorial-home .portfolio-biography-title { font-family: var(--editorial-serif); font-size: 64px; line-height: 1.05; font-weight: 400; color: var(--editorial-ink); margin: 0 0 25px; padding: 0; }
.editorial-home .portfolio-biography-copy { margin: 0; width: 100%; max-width: none; color: #444e45; font-size: 16px; line-height: 1.9; }
.editorial-home .portfolio-biography-copy p { margin-top: 0; margin-bottom: 20px; }
.editorial-deck { font-family: var(--editorial-serif); color: var(--editorial-green); font-size: 26px; font-style: italic; line-height: 1.4; margin: -12px 0 26px; }
.editorial-home-actions { display: flex; gap: 24px; align-items: center; margin: 28px 0 36px; flex-wrap: wrap; }
.editorial-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 12px 20px; border-radius: 6px; background: #20251f; color: white; font-size: 13px; text-decoration: none; transition: background 250ms, transform 350ms ease; }
.editorial-primary:hover { background: #365d47; transform: translateY(-2px); }
.editorial-text-link { color: #365d47; font-size: 13px; text-decoration: none; border-bottom: 1px solid #aebdac; padding-block: 5px; }
.editorial-home .portfolio-profile-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; padding: 30px 0 0; margin: 0; border-top: 1px solid #cdd6c7; }
.editorial-home .portfolio-interest-col, .editorial-home .portfolio-education-col { width: 100%; max-width: none; padding: 0; }
.editorial-home .portfolio-profile-grid h2 { font-family: var(--editorial-serif); font-size: 25px; font-weight: 400; margin: 0 0 18px; padding: 0; color: #293a2e; }
.editorial-home .portfolio-profile-grid li { font-size: 13px; line-height: 1.8; padding-block: 4px; }
.editorial-home .portfolio-education-col li + li { margin-top: 18px; }
.editorial-home .portfolio-education-col .text-gray-400 { color: #677962; margin-top: 4px; }
.editorial-home .portfolio-interest-col li::marker { color: #728b69; }
.portfolio-index-section { max-width: 1240px; padding: 64px 32px; }
body > .bg-gray-50 { background: white; }
.portfolio-index-summary { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; padding: 0; }
.portfolio-index-summary-copy, .portfolio-index-summary-list { width: 100%; max-width: none; justify-self: stretch; }
.portfolio-index-summary-copy .prose h2 { font-family: var(--editorial-serif); font-size: 36px; font-weight: 400; line-height: 1.2; color: #20251f; margin-top: 0; }
.portfolio-index-summary-copy .prose { font-size: 14px; line-height: 1.9; color: #697267; }
.portfolio-index-summary-copy .editorial-kicker { margin-bottom: 16px; }
.portfolio-index-summary-list > ul > li:last-child > a { color: #365d47; display: inline-block; padding: 10px 0; font-size: 24px; }
.portfolio-page-wrap, .blog-index-wrap, .blog-post-wrap, .editorial-contact { max-width: 1120px; margin: 0 auto; padding: 56px 36px 30px; }
.portfolio-page-wrap > .pt-8 { padding: 0; }
.portfolio-page-wrap > .pt-8 h1, .blog-index-heading h1, .editorial-contact h1 { color: #20251f; font-family: var(--editorial-serif); font-size: 58px; font-weight: 400; line-height: 1.15; margin: 0 0 25px; }
.portfolio-page-wrap > .mb-8 { margin-bottom: 32px; }
.portfolio-page-wrap > .prose { max-width: none; color: #424d43; font-size: 16px; line-height: 1.95; }
.portfolio-page-wrap > .prose > h2 { font-family: var(--editorial-serif); font-size: 34px; font-weight: 400; color: #365d47; border-top: 1px solid #cdd5c8; padding-top: 34px; margin: 44px 0 24px; }
.portfolio-page-wrap > .prose > h3 { font-family: var(--editorial-serif); font-size: 27px; line-height: 1.35; font-weight: 400; color: #263429; margin-top: 38px; }
.portfolio-page-wrap > .prose ul { padding-left: 24px; }
.portfolio-page-wrap > .prose li { padding-left: 6px; }
.portfolio-page-wrap > .prose li::marker { color: #91a386; }
.portfolio-page-wrap > .prose a, .blog-post-content a { color: #365d47; text-decoration-color: #a9baa1; text-underline-offset: 4px; }
.editorial-page-end { margin-top: 54px; padding-top: 22px; border-top: 1px solid #cdd5c8; display: flex; justify-content: space-between; gap: 20px; color: #788171; font-size: 11px; }
.editorial-page-end a { color: #365d47; text-decoration: none; }
body:has(.portfolio-page-wrap), body:has(.blog-index-wrap), body:has(.blog-post-wrap), body:has(.editorial-contact) { background: #fafbf8; }
.blog-index-heading { border-bottom: 1px solid #bac6b2; padding-bottom: 32px; margin-bottom: 8px; }
.blog-index-heading p:not(.editorial-kicker) { max-width: 750px; color: #64715d; font-size: 16px; line-height: 1.9; }
.blog-card { padding: 28px 0; border-bottom: 1px solid #d9dfd4; border-radius: 0; background: transparent; }
.blog-card-title { font-family: var(--editorial-serif); font-weight: 400; font-size: 29px; line-height: 1.25; color: #202b22; transition: color 220ms; }
.blog-card-main:hover .blog-card-title { color: #4d7050; }
.blog-card-description { color: #687263; font-size: 15px; line-height: 1.8; }
.blog-card-meta { font-size: 12px; color: #7d8774; }
.blog-author-name { font-weight: 500; color: #3f4e3d; }
.blog-author-avatar { border-color: #d4dfce; }
.blog-card-thumb { border-radius: 3px; background: #e9eee4; }
.blog-card-thumb img { transition: transform 550ms cubic-bezier(.22,1,.36,1); }
.blog-card-main:hover .blog-card-thumb img { transform: scale(1.025); }
.blog-action { color: #6f7c65; font-size: 12px; }
.blog-action:hover, .blog-action.is-active { color: #365d47; }
.editorial-back { display: inline-block; text-decoration: none; margin-bottom: 34px; }
.blog-post-header h1 { font-family: var(--editorial-serif); font-size: 48px; font-weight: 400; line-height: 1.2; color: #202b22; }
.blog-post-description { color: #65705e; font-size: 17px; line-height: 1.8; }
.blog-post-content { max-width: 760px; font-size: 17px; line-height: 1.95; color: #414d41; }
.blog-post-content h2, .blog-post-content h3 { font-family: var(--editorial-serif); font-weight: 400; color: #365d47; }
.blog-post-content h2 { font-size: 30px; line-height: 1.35; }
.blog-post-tldr { border-left: 2px solid #a6bb9b; background: #edf2e7; padding: 18px 22px; color: #51644a; }
.paper-figure { border-block: 1px solid #d8e0d1; padding: 26px 0; }
.paper-figure figcaption { color: #75816d; }
.editorial-contact { min-height: 65vh; }
.editorial-contact h1 .editorial-contact-period { color: var(--accent-primary); }
.editorial-contact-intro { font-family: var(--editorial-serif); font-size: 24px; color: #627458; margin-bottom: 44px; }
.editorial-contact-links { max-width: 720px; --contact-ease: cubic-bezier(.22,1,.36,1); --contact-surface-duration: 380ms; --contact-content-duration: 420ms; --contact-arrow-duration: 460ms; --contact-exit-duration: 340ms; --contact-content-delay: 50ms; --contact-arrow-delay: 80ms; }
.editorial-contact-link { display: flex; gap: 22px; align-items: center; padding: 22px 0; border-top: 1px solid var(--border-default); position: relative; isolation: isolate; text-decoration: none; color: var(--accent-primary); font-size: 22px; font-family: var(--editorial-serif); transition: color 340ms var(--contact-ease), border-color var(--contact-surface-duration) var(--contact-ease); }
.editorial-contact-link:last-child { border-bottom: 1px solid var(--border-default); }
.editorial-contact-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--surface-elevated); opacity: 0; pointer-events: none; transition: opacity var(--contact-surface-duration) var(--contact-ease); }
.editorial-contact-icon, .editorial-contact-label { display: inline-block; transform: translate3d(0,0,0); transition: transform var(--contact-exit-duration) var(--contact-ease), color 320ms var(--contact-ease); }
.editorial-contact-svg { width: 28px; height: 28px; display: block; }
.editorial-contact-arrow { display: inline-block; margin-left: auto; color: var(--text-muted); opacity: .75; transform: translate3d(0,0,0); transition: transform var(--contact-exit-duration) var(--contact-ease), opacity 300ms var(--contact-ease), color 300ms var(--contact-ease); }
.editorial-contact-link:is(:hover,:focus-visible) { color: var(--accent-hover); border-color: var(--accent-primary); }
.editorial-contact-link:is(:hover,:focus-visible)::before { opacity: 1; }
.editorial-contact-link:is(:hover,:focus-visible) :is(.editorial-contact-icon,.editorial-contact-label) { transform: translate3d(4px,0,0); transition-duration: var(--contact-content-duration), 320ms; transition-delay: var(--contact-content-delay), 0ms; }
.editorial-contact-link:is(:hover,:focus-visible) .editorial-contact-arrow { transform: translate3d(6px,-6px,0); opacity: 1; color: var(--accent-hover); transition-duration: var(--contact-arrow-duration), 320ms, 320ms; transition-delay: var(--contact-arrow-delay), 0ms, 0ms; }
.editorial-contact-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.tensorcat-lab { max-width: 1240px; background: white; }
body:has(.tensorcat-lab) { background: #f8faf6; }
.lab-heading h1 { font-family: var(--editorial-serif); font-weight: 400; font-size: 48px; color: #263d2b; }
.lab-eyebrow, .lab-model-note { color: #6d7e62; }
.lab-tabs { background: #e9eee4; }
.lab-toolbar { border-color: #d1dcc9; }
.lab-stage { background: #f8fafb; }
.lab-workspace-foot { border-bottom: 1px solid #cdd5c8; padding-bottom: 24px; }
body > footer.bg-white { background: var(--editorial-paper); border-top: 1px solid #cbd5c4; padding: 12px 0; }
body > footer > .bg-white { background: transparent; max-width: 1240px; color: #818b79; font-size: 12px; line-height: 1.8; padding-inline: 36px; }
@media (max-width: 1100px) {
  .portfolio-nav-inner { flex-wrap: wrap; gap: 10px; padding: 18px 28px 10px; }
  .portfolio-nav-scroll { flex-basis: 100%; width: 100%; }
  .portfolio-nav-list { justify-content: flex-start; }
  .editorial-home .portfolio-hero-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; }
  .editorial-home .portfolio-profile-grid { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-index-summary { grid-template-columns: 220px minmax(0, 1fr); gap: 38px; }
}
@media (max-width: 700px) {
  .portfolio-nav-inner { padding: 16px 20px 8px; }
  .portfolio-brand a { font-size: 23px; }
  .portfolio-nav-link { min-height: 44px; font-size: 13px; padding-inline: 8px; }
  .editorial-home-masthead { padding: 24px 22px 0; }
  .editorial-home-masthead a { display: none; }
  .editorial-home .portfolio-hero-layout { grid-template-columns: minmax(0, 1fr); padding: 30px 22px 36px; gap: 52px; }
  .editorial-home .portfolio-profile-panel { max-width: 350px; margin-inline: auto; }
  .editorial-home .portfolio-display-name { font-size: 27px; }
  .editorial-home .portfolio-social-icons { margin-top: 24px; }
  .editorial-home .portfolio-biography-title { font-size: 46px; margin-bottom: 22px; }
  .editorial-home .portfolio-biography-copy { font-size: 15px; }
  .editorial-home .portfolio-profile-grid { padding-top: 26px; }
  .editorial-home .portfolio-profile-grid li { font-size: 14px; }
  .editorial-home-actions { gap: 18px; }
  .portfolio-index-section { padding: 38px 22px; }
  .portfolio-index-summary { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .portfolio-index-summary-copy .prose { max-width: none; }
  .portfolio-page-wrap, .blog-index-wrap, .blog-post-wrap, .editorial-contact { padding: 34px 22px 24px; }
  .portfolio-page-wrap > .pt-8 h1, .blog-index-heading h1, .editorial-contact h1 { font-size: 40px; overflow-wrap: anywhere; }
  .portfolio-page-wrap > .prose { font-size: 15px; }
  .portfolio-page-wrap > .prose > h3 { font-size: 24px; }
  .blog-card-title { font-size: 25px; }
  .blog-post-header h1 { font-size: 34px; }
  .blog-post-content { font-size: 16px; }
  .editorial-page-end { flex-wrap: wrap; }
  .lab-heading h1 { font-size: 32px; }
  body > footer > .bg-white { padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-primary, .editorial-contact-links > a, .blog-card-thumb img { transition: none; }
  .editorial-contact-link::before, .editorial-contact-link :is(.editorial-contact-icon,.editorial-contact-label,.editorial-contact-arrow) { transition: none; }
  .editorial-contact-link:is(:hover,:focus-visible) :is(.editorial-contact-icon,.editorial-contact-label,.editorial-contact-arrow) { transform: none; }
}
