:root {
      --ink:       #1a1a18;
      --ink-soft:  #4a4a44;
      --ink-muted: #8a8a80;
      --paper:     #f5f3ee;
      --paper-2:   #ede9e0;
      --accent:    #c8521a;
      --accent-dim:#e8834a;
      --line:      rgba(26,26,24,.12);
      --serif: 'DM Serif Display', Georgia, serif;
      --sans:  'DM Sans', sans-serif;
      --mono:  'DM Mono', monospace;
    }

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

    html { scroll-behavior: smooth; }

    body {
      background: var(--paper);
      color: var(--ink);
      font-family: var(--sans);
      font-size: 16px;
      line-height: 1.7;
      font-weight: 300;
      overflow-x: hidden;
    }

    /* ── NOISE TEXTURE OVERLAY ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 1000;
      opacity: .03;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    /* ── HEADER / NAV ── */
    header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 clamp(1.5rem, 5vw, 4rem);
      height: 64px;
      background: rgba(245,243,238,.88);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
    }

    .nav-logo {
      font-family: var(--serif);
      font-size: 1.1rem;
      letter-spacing: .02em;
      color: var(--ink);
      text-decoration: none;
    }

    .nav-logo span { color: var(--accent); }

    nav { display: flex; gap: 2.5rem; align-items: center; }

    nav a {
      font-size: .8rem;
      font-weight: 400;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--ink-soft);
      text-decoration: none;
      position: relative;
      transition: color .2s;
    }

    nav a::after {
      content: '';
      position: absolute;
      bottom: -3px; left: 0;
      width: 0; height: 1px;
      background: var(--accent);
      transition: width .3s ease;
    }

    nav a:hover { color: var(--accent); }
    nav a:hover::after { width: 100%; }

    /* ── HERO ── */
    .hero {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      padding-top: 64px;
    }

    .hero-left {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
      border-right: 1px solid var(--line);
    }

    .hero-eyebrow {
      font-family: var(--mono);
      font-size: .72rem;
      font-weight: 300;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1.5rem;
      opacity: 0;
      animation: fadeUp .6s ease forwards;
    }

    .hero-name {
      font-family: var(--serif);
      font-size: clamp(3.5rem, 7vw, 6rem);
      line-height: 1.0;
      letter-spacing: -.02em;
      color: var(--ink);
      opacity: 0;
      animation: fadeUp .6s .1s ease forwards;
    }

    .hero-name em {
      display: block;
      font-style: italic;
      color: var(--accent);
    }

    .hero-subtitle {
      font-family: var(--serif);
      font-size: clamp(1rem, 2vw, 1.3rem);
      font-style: italic;
      color: var(--ink-soft);
      margin-top: 1rem;
      opacity: 0;
      animation: fadeUp .6s .2s ease forwards;
    }

    .hero-divider {
      width: 40px; height: 2px;
      background: var(--accent);
      margin: 2rem 0;
      opacity: 0;
      animation: fadeUp .6s .3s ease forwards;
    }

    .hero-bio {
      font-size: 1rem;
      line-height: 1.85;
      color: var(--ink-soft);
      max-width: 520px;
      opacity: 0;
      animation: fadeUp .6s .4s ease forwards;
    }

    .hero-links {
      display: flex;
      gap: 1rem;
      margin-top: 2.5rem;
      opacity: 0;
      animation: fadeUp .6s .5s ease forwards;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .6rem 1.4rem;
      border-radius: 2px;
      font-size: .78rem;
      font-weight: 500;
      letter-spacing: .1em;
      text-transform: uppercase;
      text-decoration: none;
      transition: all .2s;
      cursor: pointer;
    }

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

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

    .btn-outline {
      background: transparent;
      color: var(--ink);
      border: 1px solid var(--ink);
    }

    .btn-outline:hover {
      background: var(--ink);
      color: var(--paper);
    }

    .hero-right {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
      background: var(--paper-2);
    }

    /* ── STAT CARDS ── */
    .stats-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
      margin-bottom: 2.5rem;
      opacity: 0;
      animation: fadeUp .6s .6s ease forwards;
    }

    .stat-card {
      background: var(--paper-2);
      padding: 1.5rem;
      transition: background .2s;
    }

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

    .stat-number {
      font-family: var(--serif);
      font-size: 2.4rem;
      color: var(--ink);
      line-height: 1;
    }

    .stat-number span { color: var(--accent); }

    .stat-label {
      font-size: .72rem;
      font-weight: 400;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--ink-muted);
      margin-top: .3rem;
    }

    .contact-block {
      opacity: 0;
      animation: fadeUp .6s .7s ease forwards;
    }

    .contact-block h3 {
      font-family: var(--mono);
      font-size: .7rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: .8rem;
    }

    .contact-block p {
      font-size: .9rem;
      color: var(--ink-soft);
    }

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

    .contact-block a:hover {
      color: var(--accent);
      border-color: var(--accent);
    }

    /* ── SECTION SHARED ── */
    section {
      padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem);
    }

    .section-header {
      display: flex;
      align-items: baseline;
      gap: 1.5rem;
      margin-bottom: 3rem;
    }

    .section-num {
      font-family: var(--mono);
      font-size: .7rem;
      color: var(--accent);
      letter-spacing: .1em;
    }

    .section-title {
      font-family: var(--serif);
      font-size: clamp(1.8rem, 4vw, 2.8rem);
      line-height: 1.1;
      color: var(--ink);
    }

    .section-title em { font-style: italic; color: var(--accent); }

    /* ── RESEARCH SECTION ── */
    #research {
      background: var(--paper-2);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .research-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
    }

    .research-card {
      background: var(--paper-2);
      padding: 2rem;
      position: relative;
      overflow: hidden;
      transition: background .25s;
    }

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

    .research-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 3px; height: 0;
      background: var(--accent);
      transition: height .3s ease;
    }

    .research-card:hover::before { height: 100%; }

    .rc-icon {
      font-size: 1.6rem;
      margin-bottom: 1rem;
    }

    .rc-title {
      font-family: var(--serif);
      font-size: 1.15rem;
      margin-bottom: .6rem;
      color: var(--ink);
    }

    .rc-desc {
      font-size: .88rem;
      color: var(--ink-soft);
      line-height: 1.75;
    }

    .rc-tags {
      display: flex;
      flex-wrap: wrap;
      gap: .4rem;
      margin-top: 1rem;
    }

    .rc-tag {
      font-family: var(--mono);
      font-size: .65rem;
      letter-spacing: .08em;
      padding: .25rem .6rem;
      background: var(--paper);
      border: 1px solid var(--line);
      color: var(--ink-soft);
      border-radius: 2px;
    }

    /* ── PUBLICATIONS SECTION ── */
    #publications {
      max-width: 900px;
      margin: 0 auto;
    }

    #publications section {
      padding-left: 0;
      padding-right: 0;
    }

    .pub-list { display: flex; flex-direction: column; gap: 0; }

    .pub-item {
      padding: 1.8rem 0;
      border-bottom: 1px solid var(--line);
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 1.5rem;
      transition: opacity .2s;
    }

    .pub-item:first-child { border-top: 1px solid var(--line); }

    .pub-year {
      font-family: var(--mono);
      font-size: .72rem;
      color: var(--ink-muted);
      letter-spacing: .08em;
      padding-top: .25rem;
    }

    .pub-content {}

    .pub-title {
      font-family: var(--serif);
      font-size: 1.0rem;
      line-height: 1.45;
      color: var(--ink);
      margin-bottom: .35rem;
    }

    .pub-authors {
      font-size: .82rem;
      color: var(--ink-soft);
      margin-bottom: .25rem;
    }

    .pub-authors strong {
      color: var(--ink);
      font-weight: 500;
    }

    .pub-venue {
      font-size: .78rem;
      font-style: italic;
      color: var(--ink-muted);
    }

    .pub-link {
      display: inline-flex;
      align-items: center;
      gap: .3rem;
      margin-top: .6rem;
      font-size: .72rem;
      font-weight: 500;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--accent);
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: border-color .2s;
    }

    .pub-link:hover { border-color: var(--accent-dim); }

    /* ── SKILLS SECTION ── */
    #skills {
      background: var(--ink);
      color: var(--paper);
    }

    #skills .section-title { color: var(--paper); }
    #skills .section-title em { color: var(--accent-dim); }
    #skills .section-num { color: var(--accent-dim); }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
    }

    .skill-group h4 {
      font-family: var(--mono);
      font-size: .68rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--accent-dim);
      margin-bottom: 1rem;
      padding-bottom: .5rem;
      border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .skill-group ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: .45rem;
    }

    .skill-group li {
      font-size: .88rem;
      color: rgba(245,243,238,.7);
      display: flex;
      align-items: center;
      gap: .5rem;
    }

    .skill-group li::before {
      content: '';
      width: 4px; height: 4px;
      border-radius: 50%;
      background: var(--accent);
      flex-shrink: 0;
    }

    /* ── FOOTER ── */
    footer {
      border-top: 1px solid var(--line);
      padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    .footer-name {
      font-family: var(--serif);
      font-size: .95rem;
      color: var(--ink);
    }

    .footer-note {
      font-size: .75rem;
      color: var(--ink-muted);
    }

    /* ── SCROLL REVEAL ── */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity .7s ease, transform .7s ease;
    }

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

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

    /* ── HORIZONTAL MARQUEE ── */
    .marquee-strip {
      overflow: hidden;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      padding: .8rem 0;
      background: var(--accent);
    }

    .marquee-inner {
      display: flex;
      white-space: nowrap;
      animation: marquee 20s linear infinite;
    }

    .marquee-inner span {
      font-family: var(--mono);
      font-size: .68rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: rgba(245,243,238,.85);
      padding: 0 3rem;
    }

    @keyframes marquee {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      .hero {
        grid-template-columns: 1fr;
        min-height: auto;
      }
      .hero-left { border-right: none; border-bottom: 1px solid var(--line); }
      .stats-grid { grid-template-columns: 1fr 1fr; }
      nav { gap: 1.5rem; }
      footer { flex-direction: column; text-align: center; }
    }

    @media (max-width: 480px) {
      nav a { display: none; }
      .hero-links { flex-direction: column; }
    }