:root {
    --ink: #0a0a0a;
    --paper: #f8f7f4;
    --stone: #6b6b6b;
    --rule: #d4d1cb;
    --highlight: #c4350a;
    --card-bg: #ffffff;
    --muted-bg: #f2f1ed;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* neural network background canvas */
  .neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.32;
    background: #fafafa;
  }


  .logo {
    font-family: 'Newsreader', serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--ink);
    text-decoration: none;
  }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }

  .nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--stone);
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.2s;
  }

  .nav-links a:hover, .nav-links a.active { color: var(--ink); }

  /* ── SHARED ── */
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
  }

  .section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--highlight) !important;
    margin-bottom: 20px;
  }

  .divider {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
  }

  .divider hr {
    border: none;
    height: 1px;
    background: var(--rule);
  }

  /* ── PAGE HERO ── */
  .page-hero {
    padding: 160px 0 0;
  }

  /* Research page: confine neural canvas to hero only */
  body.research-page .page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-bottom: 56px;
  }

  body.research-page .page-hero .neural-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  body.research-page .page-hero > *:not(canvas) {
    position: relative;
    z-index: 1;
  }

  /* Research page: let approach-section blobs extend beyond container */
  body.research-page .about-section {
    overflow: visible;
  }

  body.research-page .about-section .ambient-balls {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    overflow: visible;
  }

  .page-hero .label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--highlight) !important;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
  }

  .mission-sidebar .section-label {
    color: var(--highlight) !important;
  }

  .page-hero h1 {
    font-family: 'Newsreader', serif;
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.5px;
    max-width: 680px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.1s forwards;
  }

  .page-hero .hero-sub {
    margin-top: 28px;
    max-width: 580px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--stone);
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.2s forwards;
  }

  .hero-rule {
    width: 48px;
    height: 1px;
    background: var(--rule);
    margin-top: 48px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.3s forwards;
  }

  /* ── MISSION ── */
  .mission-section {
    padding: 80px 0;
  }

  .mission-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    margin-top: 0;
  }

  .mission-sidebar .section-label {
    position: sticky;
    top: 100px;
  }

  .mission-body p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--stone);
    font-weight: 300;
    margin-bottom: 24px;
    max-width: 600px;
  }

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

  /* ── WHAT WE PRODUCE ── */
  .outputs-section {
    padding: 80px 0;
  }

  .outputs-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
  }

  .outputs-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }

  .output-card {
    background: var(--card-bg);
    padding: 36px 32px;
    transition: background 0.25s;
  }

  .output-card:hover { background: var(--muted-bg); }

  .output-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
    color: var(--ink);
  }

  .output-card h3 {
    font-family: 'Newsreader', serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.2px;
    margin-bottom: 10px;
  }

  .output-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--stone);
    font-weight: 300;
  }

  /* ── TEAM ── */
  .team-section {
    padding: 80px 0;
  }

  .team-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
  }

  .team-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .team-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    cursor: pointer;
    padding: 20px;
    margin: -20px;
    transition: background 0.2s ease;
  }

  .team-card:hover {
    background: rgba(196, 53, 10, 0.04);
  }

  .team-card:focus-visible {
    outline: 1px solid var(--highlight);
    outline-offset: 6px;
  }

  .team-card:hover .team-info h3 {
    color: var(--highlight);
  }

  .team-photo {
    width: 100px;
    height: 120px;
    background: var(--muted-bg);
    border: 1px solid var(--rule);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  .team-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    display: block;
  }

  .team-photo .initials {
    font-family: 'Newsreader', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--rule);
    letter-spacing: -0.5px;
  }

  .team-info h3 {
    font-family: 'Newsreader', serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
    transition: color 0.2s ease;
  }

  .team-role {
    font-size: 13px;
    color: var(--highlight);
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-bottom: 12px;
  }

  .team-bio {
    font-size: 14px;
    line-height: 1.7;
    color: var(--stone);
    font-weight: 300;
  }

  .click-hint {
    margin-top: 14px;
    font-size: 12px;
    color: var(--rule);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
  }

  .team-card:hover .click-hint {
    color: var(--highlight);
  }

  .profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
  }

  .profile-overlay.open {
    pointer-events: all;
  }

  .profile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.3);
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(2px);
  }

  .profile-overlay.open .profile-backdrop {
    opacity: 1;
  }

  .profile-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(560px, 100vw);
    height: 100%;
    background: var(--paper);
    border-left: 1px solid var(--rule);
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .profile-overlay.open .profile-panel {
    transform: translateX(0);
  }

  .profile-panel-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--stone);
    padding: 8px;
    transition: color 0.2s;
    line-height: 1;
    z-index: 3;
  }

  .profile-panel-close:hover {
    color: var(--ink);
  }

  .profile-panel-header {
    padding: 40px 48px 28px;
    border-bottom: 1px solid var(--rule);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 2;
  }

  .profile-panel-photo {
    width: 72px;
    height: 88px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--muted-bg);
  }

  .profile-panel-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    display: block;
  }

  .profile-panel-meta {
    flex: 1;
  }

  .profile-panel-meta h2 {
    font-family: 'Newsreader', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.4px;
    margin-bottom: 3px;
    color: var(--ink);
  }

  .profile-panel-role {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--highlight);
    margin-bottom: 12px;
  }

  .profile-panel-links {
    display: flex;
    gap: 12px;
  }

  .profile-panel-links a {
    font-size: 13px;
    color: var(--stone);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: color 0.2s, border-color 0.2s;
    padding-bottom: 1px;
  }

  .profile-panel-links a:hover {
    color: var(--ink);
    border-color: var(--ink);
  }

  .profile-panel-body {
    padding: 36px 48px 60px;
    flex: 1;
  }

  .profile-bio {
    font-size: 15px;
    line-height: 1.85;
    color: var(--stone);
    font-weight: 300;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--rule);
  }

  .profile-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--highlight);
    margin-bottom: 20px;
  }

  .profile-works {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-bottom: 36px;
  }

  .profile-works-intro {
    font-size: 14px;
    line-height: 1.7;
    color: var(--stone);
    margin: 0 0 16px;
    font-weight: 300;
  }

  .profile-work-group {
    background: #f7f9fb;
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--highlight);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }

  .profile-work-item {
    background: var(--card-bg);
    padding: 20px 24px;
    transition: background 0.2s;
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .profile-work-item:hover {
    background: var(--muted-bg);
  }

  .profile-work-item.is-link {
    cursor: pointer;
  }

  .profile-work-outlet {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 5px;
  }

  .profile-work-title {
    font-family: 'Newsreader', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.2px;
    margin-bottom: 5px;
    line-height: 1.4;
  }

  .profile-work-desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--stone);
    font-weight: 300;
  }

  .profile-work-link-hint {
    margin-top: 9px;
    font-size: 12px;
    color: var(--highlight);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .profile-work-item.is-link:hover .profile-work-link-hint {
    opacity: 1;
  }

  .profile-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .profile-skill-tag {
    font-size: 12px;
    padding: 5px 13px;
    border: 1px solid var(--rule);
    color: var(--stone);
    background: #fff;
    letter-spacing: 0.2px;
  }

  .team-contact {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
  }

  .team-contact a {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
  }

  .team-contact a:hover {
    opacity: 0.7;
  }

  .contact-sep {
    color: var(--rule);
  }

  .team-links {
    margin-top: 14px;
    display: flex;
    gap: 16px;
  }

  .team-links a {
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s;
    font-weight: 400;
  }

  .team-links a:hover { border-color: var(--ink); }

  /* ── METHODOLOGY ── */
  .method-section {
    padding: 80px 0;
  }

  .method-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
  }

  .method-body p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--stone);
    font-weight: 300;
    margin-bottom: 24px;
    max-width: 600px;
  }

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

  .principles {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 600px;
  }

  .principle {
    padding: 24px;
    border: 1px solid var(--rule);
    background: var(--card-bg);
  }

  .principle h4 {
    font-family: 'Newsreader', serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
  }

  .principle p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--stone);
    font-weight: 300;
    margin-bottom: 0;
  }

  /* ── CONTACT ── */
  .contact-section {
    padding: 80px 0 120px;
  }

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

  .contact-body p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--stone);
    font-weight: 300;
    max-width: 520px;
    margin-bottom: 28px;
  }

  .contact-email {
    font-family: 'Newsreader', serif;
    font-size: 24px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.2s;
    letter-spacing: -0.3px;
  }

  .contact-email:hover { border-color: var(--ink); }

  .contact-social {
    margin-top: 32px;
    display: flex;
    gap: 20px;
  }

  .contact-social a {
    font-size: 14px;
    color: var(--stone);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 400;
  }

  .contact-social a:hover { color: var(--ink); }

  /* ── FOOTER ── */

  .footer-left { font-size: 13px; color: var(--stone); }

  .footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
  }

  .footer-links a {
    font-size: 13px;
    color: var(--stone);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-links a:hover { color: var(--ink); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

  /* ── RESPONSIVE ── */
  @media (max-width: 1024px) {
    .mission-grid, .outputs-grid, .team-grid, .method-grid, .contact-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    .mission-sidebar .section-label { position: static; }
    .outputs-cards { grid-template-columns: 1fr; }
    .principles { grid-template-columns: 1fr; }
  }

  @media (max-width: 900px) {
    .container, nav .nav-inner, .divider, footer {
      padding-left: 24px;
      padding-right: 24px;
    }
    .page-hero { padding-top: 120px; }
    .team-cards { grid-template-columns: 1fr; }
  }

  @media (max-width: 600px) {
    .container, nav .nav-inner, .divider, footer {
      padding-left: 20px;
      padding-right: 20px;
    }
    .nav-links { gap: 20px; }
    .team-card { flex-direction: column; gap: 16px; }
    .team-photo { width: 80px; height: 96px; }
    .profile-panel-header { padding: 28px 24px 24px; }
    .profile-panel-body { padding: 28px 24px 48px; }
    footer { flex-direction: column; gap: 12px; }
  }
]