:root {
    /* Palettes - white default */
    --bg: #fcfcfb;
    --ink: #111111;
    --stone: #ececea;
    --whisper: #f5f5f3;
    --accent: #c47650;
    --muted: #7d7d78;

    /* Type stacks */
    --serif: "Instrument Serif", "Times New Roman", serif;
    --sans: "Geist", -apple-system, system-ui, sans-serif;
    --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  }

  [data-palette="white"] {
    --bg: #fcfcfb; --ink: #111111; --stone: #ececea; --whisper: #f5f5f3;
    --accent: #c47650; --muted: #7d7d78;
  }
  [data-palette="snow"] {
    --bg: #ffffff; --ink: #0a0a0a; --stone: #ededed; --whisper: #f7f7f7;
    --accent: #2f2f2f; --muted: #8a8a8a;
  }
  [data-palette="sage"] {
    --bg: #fbfcfa; --ink: #1a1a1a; --stone: #e6ebe2; --whisper: #f1f3ee;
    --accent: #6f8064; --muted: #7c7e78;
  }
  [data-palette="dusk"] {
    --bg: #fbfcfd; --ink: #15192a; --stone: #e2e6ec; --whisper: #eef0f4;
    --accent: #4f6388; --muted: #74798a;
  }

  [data-type="serif-only"] { --sans: "Instrument Serif", serif; }
  [data-type="sans-only"]  { --serif: "Geist", sans-serif; }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { overflow-x: hidden; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    overflow-x: clip;
    transition: background 0.8s ease, color 0.8s ease;
  }

  /* Cursor accent */
  .cursor-dot {
    position: fixed; top: 0; left: 0; width: 12px; height: 12px;
    border-radius: 50%; background: var(--accent);
    pointer-events: none; z-index: 9999;
    mix-blend-mode: multiply; opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease, width 0.3s ease, height 0.3s ease;
  }
  .cursor-dot.visible { opacity: 0.6; }
  .cursor-dot.grow { width: 64px; height: 64px; opacity: 0.4; }
  @media (max-width: 760px) { .cursor-dot { display: none; } }

  /* Top frame */
  .topframe {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 28px 40px; z-index: 100;
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
    mix-blend-mode: multiply;
  }
  .topframe a { color: inherit; text-decoration: none; }
  .topframe .mark { color: var(--ink); }
  .topframe .right { display: flex; gap: 32px; }
  .topframe .available::before {
    content: ""; display: inline-block; width: 6px; height: 6px;
    border-radius: 50%; background: var(--accent); margin-right: 8px;
    transform: translateY(-1px);
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: translateY(-1px) scale(1); }
    50% { opacity: 0.5; transform: translateY(-1px) scale(0.7); }
  }
  @media (max-width: 760px) {
    .topframe { padding: 20px; }
    .topframe .right .hide-sm { display: none; }
  }

  /* Section base */
  section { position: relative; padding: 0 40px; }
  @media (max-width: 760px) { section { padding: 0 20px; } }

  /* Reveal primitives */
  .reveal-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.15em; margin-bottom: -0.15em; }
  .reveal-mask > .inner {
    display: inline-block; transform: translateY(110%);
    transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .in-view .reveal-mask > .inner { transform: translateY(0); }
  .reveal-mask:nth-child(2) > .inner { transition-delay: 0.08s; }
  .reveal-mask:nth-child(3) > .inner { transition-delay: 0.16s; }
  .reveal-mask:nth-child(4) > .inner { transition-delay: 0.24s; }
  .reveal-mask:nth-child(5) > .inner { transition-delay: 0.32s; }

  .blur-up {
    opacity: 0; filter: blur(12px); transform: translateY(20px);
    transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s cubic-bezier(0.2,0.8,0.2,1);
  }
  .in-view .blur-up { opacity: 1; filter: blur(0); transform: translateY(0); }
  .blur-up.d1 { transition-delay: 0.1s; }
  .blur-up.d2 { transition-delay: 0.25s; }
  .blur-up.d3 { transition-delay: 0.4s; }
  .blur-up.d4 { transition-delay: 0.55s; }
  .blur-up.d5 { transition-delay: 0.7s; }

  /* Word-by-word */
  .words .w {
    display: inline-block; opacity: 0; filter: blur(8px);
    transform: translateY(0.4em);
    transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s cubic-bezier(0.2,0.8,0.2,1);
  }
  .in-view.words .w { opacity: 1; filter: blur(0); transform: translateY(0); }

  /* ======== HERO ======== */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 120px; padding-bottom: 80px;
    position: relative;
  }
  .hero .eyebrow {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 60px;
  }
  .hero h1 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(72px, 13vw, 220px);
    line-height: 0.92; letter-spacing: -0.02em;
    color: var(--ink);
  }
  .hero h1 .italic { font-style: italic; color: var(--accent); }
  .hero h1 .ampersand {
    font-style: italic; color: var(--accent); font-weight: 400;
    display: inline-block; transform: translateY(0.05em);
  }
  .hero .sub {
    margin-top: 60px;
    max-width: 540px;
    font-family: var(--sans); font-weight: 300;
    font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55;
    color: var(--muted);
  }
  .hero .sub em { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.1em; }

  .hero .scroll-cue {
    position: absolute; bottom: 40px; right: 40px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted);
    display: flex; align-items: center; gap: 12px;
  }
  .hero .scroll-cue::after {
    content: ""; width: 1px; height: 40px; background: currentColor;
    animation: scrollLine 2.4s ease-in-out infinite;
    transform-origin: top;
  }
  @keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  /* Floating ornament */
  .orbit {
    position: absolute; pointer-events: none;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 70%);
    opacity: 0.18; filter: blur(40px);
    animation: drift 18s ease-in-out infinite;
  }
  .orbit.a { top: 12%; right: 8%; }
  .orbit.b { bottom: 18%; left: -4%; width: 280px; height: 280px; opacity: 0.12; animation-delay: -6s; }
  @keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
  }

  /* ======== CURRENTLY (marquee) ======== */
  .now {
    padding-top: 100px; padding-bottom: 100px;
    position: relative;
  }
  .now .label {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--muted);
    margin-bottom: 30px;
    padding: 0 40px;
  }
  .marquee {
    overflow: hidden; white-space: nowrap; width: 100%;
    padding: 16px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .marquee-track {
    display: inline-flex; gap: 70px; align-items: center;
    animation: marquee 50s linear infinite;
    padding-left: 70px;
    will-change: transform;
  }
  .marquee-track.reverse { animation-direction: reverse; animation-duration: 65s; }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .marquee .item {
    font-family: var(--serif); font-size: clamp(36px, 5vw, 72px);
    font-weight: 400; line-height: 1; color: var(--ink);
    display: inline-flex; align-items: center; gap: 70px;
  }
  .marquee .item .star {
    width: 22px; height: 22px; color: var(--accent);
    display: inline-block;
  }
  .marquee .item .italic { font-style: italic; color: var(--accent); }
  @media (max-width: 760px) {
    .marquee-track { gap: 32px; padding-left: 32px; }
    .marquee .item { gap: 32px; }
    .marquee .item .star { width: 16px; height: 16px; }
  }

  /* ======== WORKS ======== */
  .works { padding-top: 200px; padding-bottom: 160px; }

  .section-title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(56px, 9vw, 140px);
    line-height: 0.95; letter-spacing: -0.02em;
    margin-bottom: 100px;
  }
  .section-title .italic { font-style: italic; color: var(--accent); }

  .works-list { display: flex; flex-direction: column; gap: 200px; }
  .work {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
    position: relative;
  }
  .work.flip { grid-template-columns: 1fr 1fr; }
  .work.flip .work-media { order: 2; }
  .work.flip .work-meta { order: 1; }
  .work.stacked {
    display: flex; flex-direction: column;
    align-items: flex-start;
    gap: 24px; max-width: 760px; margin: 0 auto;
    text-align: left;
  }
  .work.stacked > * { margin-left: 0; }
  .work.stacked .work-desc { margin-bottom: 0; }
  .work.stacked .work-title { width: 100%; }
  .work-pair {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: flex-start;
  }
  .work-pair .work.stacked { max-width: none; margin: 0; }
  @media (max-width: 900px) {
    .work, .work.flip { grid-template-columns: 1fr; gap: 30px; }
    .work.flip .work-media { order: 1; }
    .work.flip .work-meta { order: 2; }
    .work-pair { grid-template-columns: 1fr; gap: 80px; }
    .works-list { gap: 120px; }
    .works { padding-top: 120px; padding-bottom: 100px; }
  }

  .work-media {
    aspect-ratio: 4 / 5; position: relative; overflow: hidden;
    border-radius: 4px;
  }
  .work-media.has-image {
    aspect-ratio: 1376 / 1143;
    width: min(94%, 560px);
    margin: 0 auto;
    padding: clamp(18px, 3vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #efe9e0;
    border-radius: 20px;
    box-shadow:
      0 34px 70px -36px rgba(60,40,20,0.28),
      inset 0 0 0 1px rgba(60,40,20,0.06);
  }
  .work-media.has-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    mix-blend-mode: multiply;
  }
  .work.large .work-media { aspect-ratio: 3 / 4; }
  .work.large .work-media.has-image { aspect-ratio: 1376 / 1143; }
  .work.wide .work-media { aspect-ratio: 5 / 4; }
  @media (max-width: 900px) {
    .work-media.has-image {
      width: 100%;
      padding: clamp(6px, 2.4vw, 12px);
      border-radius: 16px;
    }
  }
  .work-media .ph {
    position: absolute; inset: 0;
    background: var(--whisper);
    display: flex; align-items: center; justify-content: center;
    transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: scale(1.08);
  }
  .in-view .work-media .ph { transform: scale(1); }
  .work-media .ph-label {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted);
    background: var(--bg); padding: 6px 12px; border-radius: 2px;
  }

  .work-meta { padding: 20px 0; }
  .work-index {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
    color: var(--muted); margin-bottom: 24px;
    display: flex; gap: 14px; align-items: center;
  }
  .work-index .dot {
    display: inline-block; width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent);
  }
  .work-title-group { margin-bottom: 28px; }
  .work-title-group .work-title { margin-bottom: 0; }
  .work-title-group .work-kicker { margin: 8px 0 0; }
  .work-kicker {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
    display: block;
  }
  .work-kicker .accent { color: var(--accent); }
  .work-title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1; letter-spacing: -0.02em; margin-bottom: 28px;
  }
  .work-title .italic { font-style: italic; color: var(--accent); }
  .work-desc {
    max-width: 460px;
    font-size: 17px; line-height: 1.55; color: var(--muted); margin-bottom: 36px;
    font-weight: 300;
  }
  .work-desc em { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.05em; }
  .work-tags { display: flex; flex-wrap: wrap; gap: 28px; }
  .work-tags span {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted);
  }
  .work-tags span em { color: var(--ink); font-style: normal; }

  .work-links {
    display: flex; flex-wrap: wrap; gap: 32px;
    margin-top: 28px;
  }
  .work-links .magnetic { margin-top: 0; }
  .magnetic {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink);
    text-decoration: none; margin-top: 28px;
    transition: color 0.3s ease;
  }
  .magnetic-inner {
    display: inline-flex; align-items: center; gap: inherit;
    transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
    will-change: transform;
  }
  .magnetic .arrow {
    display: inline-block; transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
  }
  .magnetic:hover .arrow { transform: translateX(8px) rotate(-15deg); }
  .magnetic:hover { color: var(--accent); }

  @media (max-width: 900px) {
    .work-meta { padding: 8px 0; }
    .work-title { margin-bottom: 16px; }
    .work-title-group { margin-bottom: 16px; }
    .work-desc { margin-bottom: 20px; }
    .magnetic { margin-top: 14px; }
    .work.stacked { gap: 14px; }
  }

  /* ======== ACADEMIC ======== */
  .academic { padding-top: 200px; padding-bottom: 80px; }
  .academic-grid {
    display: flex; flex-direction: column;
    gap: 100px;
    max-width: 1100px; margin: 100px auto 0;
  }
  .academic-card {
    display: flex; flex-direction: column; gap: 20px;
    opacity: 0; filter: blur(12px); transform: translateY(20px);
    transition: opacity 1.2s ease, filter 1.2s ease, transform 1.2s cubic-bezier(0.2,0.8,0.2,1);
  }
  .in-view.academic-card { opacity: 1; filter: blur(0); transform: translateY(0); }
  .academic-card:nth-child(1) { transition-delay: 0.1s; }
  .academic-card:nth-child(2) { transition-delay: 0.25s; }
  .academic-card:nth-child(3) { transition-delay: 0.4s; }
  .ac-year {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
  }
  .ac-year .accent { color: var(--accent); }
  .ac-degree {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05; letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 900px;
  }
  .ac-degree .italic { font-style: italic; color: var(--accent); }
  /* Intra-card timeline of achievements */
  .ac-timeline {
    --dot-size: 12px;
    --dot-gap: 20px;
    --spine-x: calc(var(--dot-size) / 2);
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    position: relative;
    max-width: 820px;
  }
  .ac-timeline::before {
    content: "";
    position: absolute;
    left: calc(var(--spine-x) - 0.5px);
    top: calc(8px + 0.55em + var(--dot-size) / 2);
    bottom: calc(8px + 0.55em + var(--dot-size) / 2);
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--stone));
    z-index: 0;
  }
  .ac-timeline li {
    display: flex;
    align-items: flex-start;
    gap: var(--dot-gap);
    padding: 8px 0;
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.5;
    color: var(--muted);
  }
  .ac-timeline .tl-dot {
    flex: 0 0 var(--dot-size);
    width: var(--dot-size);
    height: var(--dot-size);
    margin-top: 0.55em;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
    position: relative;
    z-index: 1;
  }
  .ac-timeline .tl-text { flex: 1; min-width: 0; }
  .ac-timeline em { font-style: italic; color: var(--accent); }
  @media (max-width: 900px) {
    .academic { padding-top: 120px; padding-bottom: 40px; }
    .academic-grid { gap: 70px; margin-top: 60px; }
    .ac-timeline { --dot-gap: 16px; }
  }

  /* ======== AWARDS ======== */
  .awards {
    padding-top: 200px; padding-bottom: 200px;
  }
  .awards-list {
    display: flex; flex-direction: column;
    max-width: 1200px; margin: 40px auto 0;
  }
  .award {
    display: grid; grid-template-columns: 180px 1fr;
    gap: 60px; align-items: baseline;
    padding: 40px 0;
    position: relative;
  }
  .award .year { line-height: 1.05; }
  .award::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: var(--stone); opacity: 0.6;
    transform: scaleX(0); transform-origin: left;
    transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .award:first-child::before { display: none; }
  .in-view.award::before { transform: scaleX(1); }
  .award .year {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(40px, 4.5vw, 68px);
    line-height: 1; letter-spacing: -0.02em;
    color: var(--ink);
  }
  .award .name {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.15; letter-spacing: -0.01em;
    color: var(--ink);
  }
  .award .name .italic { font-style: italic; color: var(--accent); }
  @media (max-width: 760px) {
    .awards { padding-top: 120px; padding-bottom: 120px; }
    .award { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  }

  /* Year odometer - large variant */
  .year-reel {
    display: inline-flex; flex-wrap: wrap;
    line-height: 1;
  }
  .year-reel .year-group { display: inline-flex; flex-wrap: nowrap; }
  .year-reel .year-sep { display: inline-block; white-space: pre; }
  .year-reel .digit { overflow: hidden; height: 1em; display: inline-block; }
  .year-reel .reel {
    display: flex; flex-direction: column;
    transition: transform 1.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .year-reel .reel span { display: block; height: 1em; line-height: 1; }

  /* ======== LEADERSHIP ======== */
  .leadership {
    padding-top: 180px; padding-bottom: 180px;
    background: var(--whisper);
    transition: background 0.8s ease;
    margin: 0 -40px;
  }
  @media (max-width: 760px) { .leadership { margin: 0 -20px; } }
  .leadership-inner { padding: 0 40px; max-width: 1400px; margin: 0 auto; }
  @media (max-width: 760px) { .leadership-inner { padding: 0 20px; } }
  .leadership .marquee {
    margin: 80px 0;
  }
  .leadership .marquee .item {
    font-size: clamp(42px, 6.5vw, 100px);
  }
  .cap-intro {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(30px, 3.5vw, 56px);
    line-height: 1.15; letter-spacing: -0.015em;
    max-width: 900px; margin: 40px 0 0;
    color: var(--muted);
  }
  .cap-intro .italic { font-style: italic; color: var(--accent); }

  .lead-list {
    display: flex; flex-direction: column;
    max-width: 1100px; margin-top: 40px;
  }
  .lead {
    display: grid; grid-template-columns: 1fr auto;
    gap: 40px; align-items: baseline;
    padding: 32px 0;
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(26px, 2.6vw, 40px);
    line-height: 1.2; letter-spacing: -0.01em;
  }
  .lead .role .italic { font-style: italic; color: var(--accent); }
  .lead .years {
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
  }
  @media (max-width: 900px) {
    .leadership .section-title { margin-bottom: 40px; }
    .lead-list { margin-top: 0; }
    .lead:first-child { padding-top: 16px; }
  }
  @media (max-width: 760px) {
    .leadership { padding-top: 120px; padding-bottom: 140px; }
    .lead { grid-template-columns: 1fr; gap: 4px; padding: 24px 0; }
    .lead:first-child { padding-top: 8px; }
  }

  /* ======== RECOGNITION ======== */
  .recognition {
    padding-top: 200px; padding-bottom: 200px;
  }
  .quotes { display: flex; flex-direction: column; gap: 140px; max-width: 1200px; margin: 80px auto 0; }
  .quote {
    display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
    align-items: start;
  }
  @media (max-width: 760px) { .quote { grid-template-columns: 1fr; gap: 20px; } .quotes { gap: 80px; } }
  .quote .source {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--muted);
    line-height: 1.7;
  }
  .quote .source em { color: var(--ink); font-style: normal; }
  .quote blockquote {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.25; letter-spacing: -0.01em;
    color: var(--ink);
  }
  .quote blockquote .italic { font-style: italic; color: var(--accent); }
  .quote blockquote::before {
    content: "“"; font-family: var(--serif); color: var(--accent);
    margin-right: 0.05em;
  }
  .quote blockquote::after {
    content: "”"; font-family: var(--serif); color: var(--accent);
  }

  /* ======== ABOUT ======== */
  .about {
    padding-top: 160px; padding-bottom: 160px;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start;
  }
  @media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; padding-top: 100px; padding-bottom: 120px; } }
  .about-left h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(48px, 6vw, 96px);
    line-height: 0.95; letter-spacing: -0.02em;
  }
  .about-left h2 .italic { font-style: italic; color: var(--accent); }
  .about-right {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.45; letter-spacing: -0.005em;
    color: var(--ink);
  }
  .about-right p + p { margin-top: 1.2em; }
  .about-right em { font-style: italic; color: var(--accent); }

  /* ======== CONTACT ======== */
  .contact {
    padding-top: 160px; padding-bottom: 80px;
    position: relative;
    min-height: 80vh;
    display: flex; flex-direction: column; justify-content: space-between;
  }
  .contact .pre {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 60px;
  }
  .contact h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(72px, 12vw, 200px);
    line-height: 0.92; letter-spacing: -0.02em;
  }
  .contact h2 .italic { font-style: italic; color: var(--accent); }
  .contact .email {
    margin-top: 60px;
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(28px, 3vw, 44px);
    color: var(--ink); text-decoration: none; display: inline-block;
    position: relative;
  }
  .contact .email::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 1px;
    background: currentColor; transform: scaleX(0.3); transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
  }
  .contact .email:hover::after { transform: scaleX(1); }
  .contact .email:hover { color: var(--accent); }
  .email-copied {
    position: absolute; left: 0; top: -22px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--accent);
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2,0.8,0.2,1);
    pointer-events: none;
  }
  .email.is-copied .email-copied { opacity: 1; transform: translateY(0); }

  .footer {
    margin-top: 120px;
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 40px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--muted);
  }
  .footer .col { display: flex; flex-direction: column; gap: 10px; line-height: 1.7; }
  .footer .col em { color: var(--ink); font-style: normal; }
  .footer a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
  .footer a:hover { color: var(--accent); }

  /* ======== TWEAKS PANEL ======== */
  #tweaks-panel {
    position: fixed; bottom: 24px; right: 24px; z-index: 9000;
    background: var(--bg); color: var(--ink);
    padding: 24px; min-width: 280px;
    font-family: var(--sans); font-size: 13px;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 8px;
    display: none;
  }
  #tweaks-panel.active { display: block; }
  #tweaks-panel .tp-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
  }
  #tweaks-panel .tp-title {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--muted);
  }
  #tweaks-panel .tp-close {
    background: none; border: none; cursor: pointer; font-size: 18px;
    color: var(--muted); line-height: 1; padding: 4px;
  }
  #tweaks-panel .tp-section { margin-bottom: 18px; }
  #tweaks-panel .tp-label {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
  }
  #tweaks-panel .swatches { display: flex; gap: 10px; }
  #tweaks-panel .swatch {
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, var(--s-bg) 0% 50%, var(--s-accent) 50% 100%);
    transition: transform 0.3s ease;
  }
  #tweaks-panel .swatch:hover { transform: scale(1.08); }
  #tweaks-panel .swatch.active::after {
    content: ""; position: absolute; inset: -5px; border-radius: 50%;
    border: 1px solid var(--ink);
  }
  #tweaks-panel .typebtn {
    display: inline-block; padding: 8px 14px; margin-right: 6px;
    border-radius: 4px; cursor: pointer;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--muted);
    background: var(--whisper); border: none;
  }
  #tweaks-panel .typebtn.active { background: var(--ink); color: var(--bg); }

  /* Progress bar */
  .progress {
    position: fixed; top: 0; left: 0; height: 1px; width: 0;
    background: var(--accent); z-index: 200; transition: width 0.1s linear;
  }

  /* sidenav removed per request */

  /* Soft scroll easing using transform on .parallax */
  .parallax { will-change: transform; }

/* Focused refinements to the original portfolio, retaining its type and motion. */
:root {
  --gutter: clamp(20px, 3.2vw, 56px);
  --accent-strong: #9a4f2c;
  --section-space: clamp(88px, 12svh, 130px);
  --heading-space: clamp(48px, 6.25svh, 72px);
  --list-space: clamp(88px, 12.5svh, 140px);
  --column-space: clamp(48px, 5.5vw, 80px);
  --entry-space: clamp(36px, 5.2svh, 56px);
}
html { scroll-padding-top: 90px; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 10000; padding: 12px 20px; background: var(--bg); color: var(--ink); }
.skip-link:focus { top: 20px; }
section { padding-inline: var(--gutter); }
.topframe { padding: 25px var(--gutter); align-items: center; gap: 24px; mix-blend-mode: normal; color: var(--ink); background: linear-gradient(180deg, #fcfcfbef, #fcfcfb70); transition: background .4s, box-shadow .4s; }
.topframe.scrolled { background: var(--bg); box-shadow: 0 1px 0 var(--stone); }
.topframe .mark { white-space: nowrap; }
.topframe .right { align-items: center; gap: 28px; }
.topframe .right a { padding-block: 6px; position: relative; }
.topframe .right a::after { content: ''; position: absolute; bottom: 1px; left: 0; right: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.topframe .right a:hover::after, .topframe .right a[aria-current="location"]::after { transform: scaleX(1); }
.hero { min-height: max(720px, 100svh); isolation: isolate; overflow: hidden; padding-top: 150px; padding-bottom: 100px; }
.hero-art { position: absolute; inset: 0 0 0 28%; z-index: -2; margin: 0; overflow: hidden; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; transform: translate3d(var(--cover-x, 0px), var(--cover-y, 0px), 0) scale(1.08); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 26%, #fcfcfbf2 40%, #fcfcfbd9 54%, #fcfcfba6 60%, #fcfcfb00 76%); }
.hero h1 { font-size: clamp(72px, 13vw, 220px); }
.hero h1 .inner { transition-delay: .12s; }
.hero h1 .italic { transition-delay: .26s; }
.hero .sub { margin-top: 36px; max-width: 460px; font-size: 19px; color: #45453f; }
.hero .sub em { color: var(--accent-strong); }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; min-width: 144px; padding: 12px 24px; border: 1px solid var(--accent-strong); border-radius: 3px; background: var(--accent-strong); color: #fff; text-decoration: none; font-family: var(--sans); font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; transition: color .25s, background .25s, border-color .25s, box-shadow .25s; }
.button.secondary { color: var(--ink); background: color-mix(in srgb, var(--bg) 78%, transparent); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.button:hover { background: var(--ink); border-color: var(--ink); box-shadow: 0 5px 16px -10px #0008; }
.button.secondary:hover { color: var(--accent-strong); background: var(--whisper); border-color: var(--accent); }
.button-label { display: inline-block; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.button.compact { min-width: 0; min-height: 42px; padding: 9px 18px; font-size: 13px; }
.hero .scroll-cue { bottom: 32px; right: var(--gutter); color: #fff; text-decoration: none; text-shadow: 0 1px 8px #0008; }
.section-heading { margin-bottom: var(--heading-space); }
.section-heading .section-title { margin-bottom: 0; font-size: clamp(60px, 9vw, 140px); }
.section-heading .reveal-mask { padding-left: .14em; margin-left: -.14em; }
.about, .experience, .works, .academic, .awards, .leadership, .recognition, .contact { padding-block: var(--section-space); }
.about { grid-template-columns: .7fr 1.3fr; gap: var(--column-space); }
.about .section-heading { margin-bottom: 0; }
.about-content { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 32px); font-weight: 400; line-height: 1.45; }
.about-content > div { margin-top: 1.2em; }
.about-content p + p { margin-top: 1.2em; }
.about-content em { color: var(--accent); }
.about-content a { color: var(--accent-strong); text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.about-content a:hover { color: var(--ink); }
.experience { background: linear-gradient(135deg, #f6eee7, var(--bg)); }
.experience-list { display: grid; gap: var(--entry-space); }
.experience-entry { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--column-space); align-items: start; }
.experience-entry + .experience-entry { border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); padding-top: var(--entry-space); }
.experience-entry > div { min-width: 0; }
.experience-entry h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.experience-entry .italic { color: var(--accent); font-style: italic; }
.entry-role { margin-top: 16px; font: 11px/1.7 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.entry-period { margin-top: 8px; font-size: 14px; color: var(--muted); }
.entry-description > p { max-width: 640px; font-size: 20px; line-height: 1.6; }
.entry-description > p + p { margin-top: 16px; }
.entry-description .button { margin-top: 22px; }
.placeholder-note, .entry-description .placeholder-note { font-size: 14px; color: var(--muted); margin-top: 18px; }
.works-list { gap: var(--list-space); }
.work, .work-pair { gap: var(--column-space); }
.work.flip .project-figure { order: 2; }
.work.flip .work-meta { order: 1; }
.project-figure { margin: 0; min-width: 0; }
.work-media.has-image { width: 100%; aspect-ratio: auto; min-height: 380px; border-radius: 16px; padding: 30px; transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s; }
.work-media.has-image img { height: auto; transform: scale(1.06); transition: transform 1.5s cubic-bezier(.2,.8,.2,1); }
.in-view .work-media.has-image img { transform: scale(1); }
.project-figure figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 20px; }
.work-kicker { margin: 18px 0 24px; font-size: 10px; line-height: 1.8; letter-spacing: .1em; }
.work-kicker .accent { color: var(--accent-strong); }
.work-desc { margin-bottom: 0; }
.work-title { margin-bottom: 0; }
.work.stacked.venture { width: 100%; max-width: none; padding: 36px; background: var(--whisper); border-top: 2px solid var(--accent); }
.work-pair .venture:nth-child(2) { background: #f6efe7; }
.work.stacked.venture .work-meta { padding: 0; }
.academic-grid { margin-top: 0; gap: var(--heading-space); }
.ac-degree { margin-top: 18px; }
.awards-list, .quotes, .lead-list { margin-top: 0; }
.award:first-child, .lead:first-child { padding-top: 0; }
.award:last-child, .lead:last-child { padding-bottom: 0; }
.leadership { margin: 0; background: #f5eee7; }
.quotes { gap: var(--list-space); }
.quote { column-gap: var(--column-space); }
.contact { min-height: 0; display: block; }
.contact .section-heading h2 { font-size: clamp(60px, 9vw, 140px); }
.contact-actions { display: flex; align-items: center; gap: 20px; width: fit-content; }
.contact .email { margin-top: 0; font-size: clamp(28px, 3.5vw, 50px); line-height: 1.2; padding-bottom: 5px; }
.copy-email { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 8px; color: var(--ink); border: 1px solid var(--stone); border-radius: 3px; background: transparent; cursor: pointer; transition: color .3s, border-color .3s; }
.copy-email svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.copy-email:hover { color: var(--accent-strong); border-color: var(--accent); }
.copy-email .copy-check { display: none; }
.copy-email.is-copied .copy-symbol { display: none; }
.copy-email.is-copied .copy-check { display: block; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.footer { margin-top: var(--heading-space); padding-top: 30px; border-top: 1px solid var(--stone); gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 24px; max-width: 700px; }
.footer-info { font-size: 10px; line-height: 1.8; }
.blur-up.in-view { opacity: 1; filter: none; transform: none; }
html:not(.motion-ready) .reveal-mask > .inner, html:not(.motion-ready) .blur-up, html:not(.motion-ready) .academic-card, html:not(.motion-ready) .words .w { opacity: 1; filter: none; transform: none; }
@media (max-width: 1100px) { .topframe .profile-link { display: none; } .about, .experience-entry, .work, .work-pair { gap: 48px; } }
@media (max-width: 900px) {
  :root { --section-space: 90px; --heading-space: 50px; --list-space: 90px; }
  .about { grid-template-columns: 1fr; gap: 44px; }
  .work, .work.flip { gap: 38px; }
  .work.flip .project-figure { order: 1; }
  .work.flip .work-meta { order: 2; }
  .work-media.has-image { min-height: 0; max-width: 640px; padding: 24px; }
  .project-figure figcaption { max-width: 640px; margin-inline: auto; }
  .work-title { font-size: clamp(42px, 7vw, 64px); }
  .work-kicker { margin-top: 14px; }
  .work-desc { max-width: 640px; }
  .work.stacked.venture { max-width: 100%; padding: 30px; }
  .experience-entry { grid-template-columns: 1fr 1.4fr; }
}
@media (max-width: 650px) {
  :root { --section-space: 76px; --heading-space: 38px; --entry-space: 32px; }
  html { scroll-padding-top: 75px; }
  .hero { min-height: max(740px, 100svh); padding-top: 120px; padding-bottom: 94px; display: flex; flex-direction: column; justify-content: center; }
  .hero::before { display: block; background: linear-gradient(180deg, #fcfcfbea 0%, #fcfcfbdb 28%, #fcfcfbaa 60%, #fcfcfb38 100%), linear-gradient(90deg, #fcfcfb55, transparent 85%); }
  .hero h1 { font-size: clamp(58px, 17.7vw, 115px); }
  .hero-content { width: 100%; position: relative; z-index: 1; }
  .hero .sub { margin-top: 26px; font-size: 17px; max-width: 330px; }
  .hero-actions { margin-top: 24px; gap: 12px; }
  .button { min-width: 128px; min-height: 46px; padding: 11px 18px; font-size: 13px; }
  .hero-art { position: absolute; inset: 0; z-index: -2; order: initial; width: 100%; height: 100%; margin: 0; }
  .hero-art img { object-position: 62% 50%; }
  .hero .scroll-cue { z-index: 1; bottom: 22px; font-size: 10px; }
  .hero .scroll-cue::after { height: 30px; }
  .section-heading .section-title, .contact .section-heading h2 { font-size: clamp(56px, 12.6vw, 82px); }
  .about { gap: 34px; }
  .about-content { font-size: 25px; }
  .experience-entry { grid-template-columns: 1fr; gap: 25px; }
  .entry-description > p { font-size: 18px; }
  .entry-description .placeholder-note { font-size: 14px; }
  .work-title { font-size: 46px; }
  .work-media.has-image { padding: 16px; border-radius: 12px; }
  .work-pair { gap: 30px; }
  .work.stacked.venture { padding: 26px; }
  .work.stacked.venture .work-title { font-size: clamp(36px, 10vw, 46px); }
  .academic-grid { gap: 54px; }
  .ac-degree { font-size: 38px; }
  .ac-year { letter-spacing: .1em; line-height: 1.8; }
  .award .year { font-size: 52px; }
  .award .name { font-size: 30px; }
  .lead { font-size: 30px; }
  .lead .years { font-size: 11px; }
  .quotes { gap: 65px; }
  .quote { gap: 18px; }
  .quote blockquote { font-size: 32px; }
  .quote .source { font-size: 10px; line-height: 1.8; }
  .contact-actions { gap: 12px; }
  .contact .email { font-size: clamp(23px, 6.5vw, 35px); }
  .copy-email { width: 34px; height: 34px; flex-basis: 34px; padding: 7px; }
  .copy-email svg { width: 16px; height: 16px; }
  .footer { margin-top: 60px; font-size: 9px; letter-spacing: .08em; }
  .footer-links { gap: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cursor-dot { display: none; }
  .reveal-mask > .inner, .blur-up, .academic-card, .words .w { opacity: 1; filter: none; transform: none; }
  .hero-art img, .work-media.has-image { transform: none; }
}
