
  /* ========================================
     v10 — Red-teamed. Person, not product.
     Sage accent. Editorial warmth.
     OKLCH. A11y-first.
     ======================================== */

  :root {
    /* Warm near-black, cream text, sage accent */
    --bg:            oklch(10% 0.006 80);
    --bg-warm:       oklch(12.5% 0.006 80);
    --bg-elevated:   oklch(16% 0.006 80);
    --border:        oklch(22% 0.006 80);
    --border-subtle: oklch(18% 0.005 80);
    --text:          oklch(90% 0.010 80);
    --text-secondary:oklch(68% 0.010 80);
    --text-tertiary: oklch(62% 0.010 80);
    --accent:        oklch(62% 0.07 160);       /* Sage/eucalyptus */
    --accent-subtle: oklch(62% 0.07 160 / 0.12);
    --accent-hover:  oklch(70% 0.07 160);
    --focus-ring:    oklch(62% 0.07 160 / 0.5);

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans:  'Outfit', system-ui, -apple-system, sans-serif;

    --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
    --sp-6: 1.5rem; --sp-8: 2rem; --sp-12: 3rem; --sp-16: 4rem; --sp-24: 6rem;
  }

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

  html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
  }

  p { line-height: 1.8; }

  ::selection {
    background: var(--accent-subtle);
    color: var(--accent);
  }

  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
  }
  a:focus:not(:focus-visible) { outline: none; }

  .skip-link {
    position: absolute;
    top: -100%;
    left: var(--sp-4);
    z-index: 200;
    padding: var(--sp-3) var(--sp-6);
    background: var(--accent);
    color: var(--bg);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
  }
  .skip-link:focus { top: 0; }

  /* Grain */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
  }

  /* Animations */
  @keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .anim { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; will-change: transform, opacity; }
  .d1 { animation-delay: 0.08s; }
  .d2 { animation-delay: 0.18s; }
  .d3 { animation-delay: 0.28s; }
  .d4 { animation-delay: 0.4s; }
  .d5 { animation-delay: 0.52s; }

  .reveal {
    opacity: 0; transform: translateY(32px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
  }
  .reveal.visible { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    .anim { animation: none; opacity: 1; transform: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
  }

  /* ========== LAYOUT ========== */
  .wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding-left: clamp(1.25rem, 5vw, 3rem);
    padding-right: clamp(1.25rem, 5vw, 3rem);
  }

  /* NAV */
  nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 1.25rem 0;
    transition: background 0.5s, backdrop-filter 0.5s;
  }
  nav.scrolled {
    background: oklch(10% 0.006 80 / 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  nav .wrap { display: flex; justify-content: space-between; align-items: center; }
  .wordmark {
    text-decoration: none;
    display: inline-flex; align-items: center;
  }
  .nav-logo {
    height: 16px; width: auto;
    filter: brightness(0) invert(0.9);
    transition: filter 0.3s;
  }
  .wordmark:hover .nav-logo {
    filter: brightness(0) invert(0.9) sepia(1) saturate(2) hue-rotate(100deg);
  }
  .nav-links { display: flex; gap: var(--sp-8); list-style: none; }
  .nav-links a {
    font-size: 0.8rem; font-weight: 400; letter-spacing: 0.03em;
    color: var(--text-tertiary); text-decoration: none; transition: color 0.3s;
    padding: var(--sp-2) var(--sp-1); min-height: 44px;
    display: inline-flex; align-items: center;
  }
  .nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
  .nav-links a::after {
    content: '';
    position: absolute; bottom: 6px; left: var(--sp-2); right: var(--sp-2);
    height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links a { position: relative; }
  .nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
  .nav-email {
    font-size: 0.78rem; font-weight: 400; color: var(--text-secondary);
    text-decoration: none; letter-spacing: 0.02em; transition: color 0.3s;
    padding: var(--sp-2) 0; min-height: 44px;
    display: inline-flex; align-items: center;
  }
  .nav-email:hover { color: var(--accent); }

  .nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    padding: var(--sp-2); min-width: 44px; min-height: 44px;
    align-items: center; justify-content: center; color: var(--text);
  }
  .nav-toggle svg { display: block; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

  @media (max-width: 640px) {
    .nav-toggle { display: inline-flex; }
    .nav-links, .nav-email { display: none; }
    .nav-links.open {
      display: flex; flex-direction: column; position: absolute;
      top: 100%; left: 0; right: 0;
      background: oklch(10% 0.006 80 / 0.96);
      backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      padding: var(--sp-6) clamp(1.25rem, 5vw, 3rem);
      gap: var(--sp-4); border-bottom: 1px solid var(--border);
    }
    .nav-email.open {
      display: inline-flex; position: absolute;
      top: calc(100% + 9rem); left: clamp(1.25rem, 5vw, 3rem);
    }
  }

  /* ========== HERO ========== */
  .hero { padding: 10rem 0 4rem; }
  .hero-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--sp-12);
    align-items: start;
  }
  .hero-content {
    min-width: 0;  /* Allow grid child to shrink below intrinsic content width */
  }
  .hero-photo {
    position: relative;
  }
  .hero-photo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.5s;
  }
  .hero-photo:hover img {
    filter: grayscale(0%) contrast(1);
  }
  @media (max-width: 800px) {
    .hero-layout {
      grid-template-columns: 1fr;
      gap: var(--sp-8);
    }
    .hero-photo {
      max-width: 220px;
      order: -1;
    }
  }

  .hero-intro {
    font-size: 0.78rem; font-weight: 400; letter-spacing: 0.08em;
    color: var(--text-tertiary); margin-bottom: var(--sp-8);
    text-transform: uppercase;
  }
  .hero-intro span {
    color: var(--text-secondary);
    font-weight: 500;
  }

  .hero h1 {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15;
    letter-spacing: -0.02em; color: var(--text);
    max-width: 640px; margin-bottom: var(--sp-8);
  }
  .hero h1 em {
    font-style: italic; font-weight: 300; color: var(--accent);
  }

  .hero-sub {
    font-size: 1.05rem; color: var(--text-secondary);
    max-width: 540px; margin-bottom: var(--sp-12); line-height: 1.85;
  }

  .hero-actions { margin-bottom: var(--sp-8); }
  .hero-actions a {
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--bg); background: var(--text);
    padding: 0.75rem 1.8rem; border-radius: 2px;
    min-height: 44px; display: inline-flex; align-items: center;
    position: relative; overflow: hidden;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .hero-actions a:hover {
    background: var(--accent); color: var(--bg);
  }

  .orgs {
    display: flex; gap: clamp(1.4rem, 2.5vw, 2rem);
    align-items: center; flex-wrap: nowrap;
    margin-top: var(--sp-12);
  }
  .orgs-label {
    font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-tertiary);
    opacity: 0.5; white-space: nowrap;
    flex-shrink: 0;
  }
  .org-logo {
    height: clamp(26px, 3.6vw, 36px); width: auto;
    opacity: 0.4;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
    flex-shrink: 0;
    object-fit: contain;
  }
  .org-logo:hover { opacity: 0.7; }
  /* Binance: 20% bigger than base */
  .org-logo--lg { height: clamp(42px, 5.8vw, 58px); }
  /* ESA: tall emblem, reduced 10% from previous */
  .org-logo--esa { height: clamp(34px, 4.9vw, 49px); }
  /* UCph: text+seal logo, moderate bump for legibility */
  .org-logo--ucph { height: clamp(36px, 4.9vw, 49px); }
  @media (max-width: 900px) {
    .orgs {
      flex-wrap: wrap;
      gap: 1.2rem;
    }
    .orgs-label {
      width: 100%;
      margin-bottom: 0.2rem;
    }
    .org-logo {
      height: 28px;
    }
    .org-logo--esa {
      height: 38px;
    }
    .org-logo--ucph {
      height: 38px;
    }
    
      height: 44px;
    }
  }

  /* Section divider — thin sage accent rule */
  .section-rule {
    border: none;
    height: 1px;
    max-width: 80px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
  }

  /* ========== PERSPECTIVE — how I think, not what I sold ========== */
  .perspective {
    padding: var(--sp-24) 0 5rem;
    background: var(--bg-warm);
    /* border-top removed */
    /* border-bottom removed */
  }
  .perspective-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--sp-16);
    align-items: start;
  }
  @media (max-width: 800px) {
    .perspective-layout { grid-template-columns: 1fr; gap: var(--sp-8); }
  }

  .perspective-header h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25;
    color: var(--text); margin-bottom: 1.2rem;
  }
  .perspective-header p {
    font-size: 0.88rem; color: var(--text-secondary); max-width: 260px;
  }

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

  .belief {
    padding: 1.6rem 0 1.6rem var(--sp-6);
    border-bottom: 1px solid var(--border-subtle);
    border-left: 2px solid transparent;
    transition: border-color 0.4s, padding-left 0.4s;
  }
  .belief:hover {
    border-left-color: var(--accent);
    padding-left: calc(var(--sp-6) + 4px);
  }
  .belief:first-child { padding-top: 0; }
  .belief:last-child { border-bottom: none; }

  .belief blockquote {
    font-family: var(--serif); font-weight: 400;
    font-size: 1.15rem; line-height: 1.5;
    color: var(--text); margin-bottom: 0.6rem;
    font-style: italic;
  }
  .belief blockquote em {
    font-style: normal;
    color: var(--accent);
  }
  .belief p {
    font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7;
    max-width: 520px;
  }

  /* ========== CAREER ========== */
  .career { padding: 5.5rem 0; }

  .career-layout {
    display: grid; grid-template-columns: 280px 1fr;
    gap: var(--sp-16); align-items: start;
  }
  @media (max-width: 800px) {
    .career-layout { grid-template-columns: 1fr; gap: var(--sp-8); }
  }

  .career-header h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25;
    color: var(--text); margin-bottom: 1.2rem;
  }
  .career-header p {
    font-size: 0.88rem; color: var(--text-secondary); max-width: 260px;
  }

  .timeline { display: flex; flex-direction: column; }
  .tl-entry {
    display: grid; grid-template-columns: 120px 1fr; gap: var(--sp-6);
    padding: 1.4rem 0; border-bottom: 1px solid var(--border-subtle);
    align-items: baseline;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .tl-entry:hover { transform: translateX(4px); }
  .tl-entry:first-child { padding-top: 0; }
  .tl-date {
    font-size: 0.75rem; font-weight: 400; color: var(--text-tertiary);
    letter-spacing: 0.02em; white-space: nowrap;
  }
  .tl-content h4 { font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 0.2rem; }
  .tl-content .tl-org { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 0.35rem; }
  .tl-content .tl-desc {
    font-size: 0.78rem; color: var(--text-tertiary); line-height: 1.65;
  }

  /* ========== CTA ========== */
  .cta {
    padding: 5rem 0 var(--sp-24);
    /* border-top removed */
  }
  .cta-layout {
    display: grid; grid-template-columns: 1.2fr 0.8fr;
    gap: var(--sp-16); align-items: end;
  }
  @media (max-width: 700px) {
    .cta-layout { grid-template-columns: 1fr; gap: var(--sp-8); }
  }
  .cta h2 {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2;
    color: var(--text); margin-bottom: var(--sp-4);
  }
  .cta-left p {
    font-size: 0.92rem; color: var(--text-secondary);
    max-width: 440px; line-height: 1.8;
  }
  .cta-right {
    display: flex; flex-direction: column; gap: var(--sp-4);
    align-items: flex-start;
  }
  .cta-right a {
    font-size: 0.82rem; font-weight: 400; text-decoration: none;
    color: var(--text-secondary); transition: color 0.3s;
    letter-spacing: 0.02em; min-height: 44px;
    display: inline-flex; align-items: center;
  }
  .cta-right a:hover { color: var(--accent); }
  .cta-right a.email-link {
    font-size: 1.1rem; font-weight: 400; color: var(--text);
    padding-bottom: 4px; position: relative; border-bottom: none;
    letter-spacing: 0.04em;
  }
  .cta-right a.email-link::after {
    content: '';
    position: absolute; bottom: 0; left: 0; width: 100%;
    height: 1px; background: var(--accent);
    transform: scaleX(0.3); transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
  }
  .cta-right a.email-link:hover { color: var(--accent); }
  .cta-right a.email-link:hover::after { transform: scaleX(1); }

  /* FOOTER */
  footer {
    padding: var(--sp-12) 0 var(--sp-8);
    /* border-top removed */
  }
  footer .wrap {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 0.75rem;
  }
  footer span, footer a {
    font-size: 0.7rem; color: var(--text-tertiary);
    text-decoration: none; letter-spacing: 0.03em;
  }
  footer a {
    min-height: 44px; display: inline-flex; align-items: center;
    padding: var(--sp-2) 0;
  }
  footer a:hover { color: var(--text-secondary); }
  .footer-links { display: flex; gap: var(--sp-6); }

  /* RESPONSIVE */
  @media (max-width: 480px) {
    .hero { padding-top: 7rem; }
    .hero h1 { font-size: 2.2rem; }
    .tl-entry { grid-template-columns: 1fr; gap: var(--sp-1); }
  }

  /* PRINT */
  @media print {
    body::after { display: none; }
    nav, .skip-link { display: none; }
    .hero { padding-top: 2rem; }
    .reveal { opacity: 1; transform: none; }
    .anim { animation: none; opacity: 1; transform: none; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.7em; color: #666; }
  }

  /* ========== SCENE BREAK — full-width atmospheric image ========== */
  .scene-break {
    margin: 0;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    overflow: hidden;
  }
  .scene-break-inner {
    position: relative;
    max-height: 320px;
    max-width: 1120px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
  }
  .scene-break-inner img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    filter: grayscale(30%) contrast(1.05) brightness(0.85);
    transition: filter 0.8s;
  }
  .scene-break:hover .scene-break-inner img {
    filter: grayscale(0%) contrast(1) brightness(0.9);
  }
  .scene-break-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      oklch(10% 0.006 80 / 0.6) 0%,
      oklch(10% 0.006 80 / 0.15) 40%,
      oklch(10% 0.006 80 / 0.15) 60%,
      oklch(10% 0.006 80 / 0.6) 100%
    );
    pointer-events: none;
  }
  .scene-break-caption {
    position: absolute;
    bottom: var(--sp-4);
    right: clamp(1.25rem, 5vw, 3rem);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: oklch(90% 0.01 80 / 0.5);
  }
  @media (max-width: 640px) {
    .scene-break-inner, .scene-break-inner img { height: 200px; }
  }
