:root {
    --bg: #000;
    --fg: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.55);
    --border: rgba(255,255,255,0.22);
    --link: rgba(255,255,255,0.92);
  }
  
  body.light {
    --bg: #fff;
    --fg: rgba(0,0,0,0.92);
    --muted: rgba(0,0,0,0.55);
    --border: rgba(0,0,0,0.18);
    --link: rgba(0,0,0,0.92);
  }
  
  body {
    margin: 0;
    padding: 48px 64px;
    font-family: "EB Garamond", serif;
    background: var(--bg);
    color: var(--fg);
  }
  
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .brand {
    font-size: 38px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    outline: none;
  }
  
  .brand:hover {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  
  .nav.desktop {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  
  .navlink {
    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    padding: 0;
  }
  
  .navlink:hover { color: var(--fg); }
  
  .iconBtn {
    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
  }
  
  .iconBtn:hover { color: var(--fg); }
  
  .mobileIcons { display: none; }
  
  /* IMPORTANT: mobile menu hidden by default */
  .mobileMenu {
    display: none;
  }
  
  /* Layout */
  .content {
    margin-top: 90px;
    max-width: 900px;
  }
  
  .page { display: none; }
  .page.active { display: block; }
  
  p {
    font-size: 22px;
    line-height: 1.85;
    margin-bottom: 28px;
  }
  
  .homeIntro {
    max-width: 720px;
  }
  
  .eyebrow {
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px 0;
  }
  
  .lead {
    font-size: 30px;
    line-height: 1.4;
    margin: 0 0 18px 0;
  }
  
  .homeStack p { margin: 0 0 16px 0; }
  
  .homeContact {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 18px;
    color: var(--muted);
  }
  
  .reveal {
    opacity: 0;
    transform: translateY(6px);
    animation: revealUp 0.7s ease forwards;
  }
  
  .reveal:nth-of-type(1) { animation-delay: 0.05s; }
  .reveal:nth-of-type(2) { animation-delay: 0.12s; }
  .reveal:nth-of-type(3) { animation-delay: 0.19s; }
  .reveal:nth-of-type(4) { animation-delay: 0.26s; }
  .reveal:nth-of-type(5) { animation-delay: 0.33s; }
  
  @keyframes revealUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Links - keep white/black always, no purple/blue */
  a.textLink,
  a.textLink:visited,
  a.textLink:hover,
  a.textLink:active {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: var(--muted);
  }
  
  a.textLink:hover {
    text-decoration-color: var(--fg);
  }
  
  /* Timeline */
  .timelineRow {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 60px;
    font-size: 18px;
    margin-bottom: 14px;
  }
  
  .timelineRow .date { opacity: 0.6; }
  
  /* Typewriter caret vibe */
  .typewriter::after {
    content: " |";
    opacity: 0.7;
  }
  
  /* Cards list like essays */
  .card {
    margin-bottom: 44px;
    cursor: pointer;
  }
  
  .card:hover h2 { color: var(--fg); }
  .card:hover p { color: var(--fg); }
  
  .revealCard {
    opacity: 0;
    transform: translateY(8px);
  }
  
  .revealCard.isVisible {
    animation: cardFadeUp 0.5s ease forwards;
  }
  
  .cardHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  
  .cardHeader h2 { margin: 0; }
  
  .card h2 {
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 10px 0;
  }
  
  .cardHeader + p { margin-top: 10px; }
  
  .card p {
    margin: 0;
    color: var(--muted);
    font-size: 20px;
  }
  
  @keyframes cardFadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .cardGithub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--muted);
    text-decoration: none;
  }
  
  .cardGithub:hover { color: var(--fg); }
  
  .cardGithub svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
  }
  
  /* Detail */
  .backRow { margin-bottom: 24px; }
  .backBtn { color: var(--muted); }
  .backBtn:hover { color: var(--fg); }
  
  .detailTitle {
    font-size: 30px;
    margin: 0 0 12px 0;
    font-weight: 400;
  }
  
  .detailMeta {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 24px;
  }
  
  .detailGithub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--muted);
    text-decoration: none;
    vertical-align: text-bottom;
  }
  
  .detailGithub:hover { color: var(--fg); }
  
  .detailGithub svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
  }
  
  .detailBody {
    font-size: 21px;
    line-height: 1.85;
  }
  
  /* Artworks */
  .sectionTitle {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 22px;
    letter-spacing: 0.2px;
  }
  
  .page .sectionTitle {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  
  #experienceList,
  #projectList {
    margin-top: 10px;
  }
  
  .artGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(720px, 92vw);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .feedCard {
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 92%, var(--fg) 8%);
    width: 100%;
    max-width: 700px;
    transition: transform 0.18s ease, border-color 0.18s ease;
  }
  
  .feedCard:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--border) 70%, var(--fg) 30%);
  }
  
  .feedImageBtn {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: block;
    width: 100%;
  }
  
  .feedImageBtn img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .feedFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
  }
  
  .feedCaption {
    font-size: 14px;
    color: var(--muted);
  }
  
  .likeBtn {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: var(--muted);
  }
  
  .likeBtn.isLiked { color: #e64553; }
  
  .artModal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
  }
  
  .artModal.open { display: flex; }
  
  .artModalBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
  }
  
  .artModalContent {
    position: relative;
    width: min(960px, 92vw);
    max-height: 86vh;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 16px;
    display: grid;
    gap: 12px;
  }
  
  .artModalContent img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
  }
  
  .artModalTitle {
    font-size: 14px;
    color: var(--muted);
  }
  
  .artModalClose {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--fg);
    width: 32px;
    height: 32px;
    cursor: pointer;
  }
  
  .resumeModal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30;
  }
  
  .resumeModal.open { display: flex; }
  
  .resumeBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
  }
  
  .resumeContent {
    position: relative;
    width: min(860px, 92vw);
    height: min(78vh, 900px);
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-rows: auto 1fr;
  }
  
  .resumeContent.expanded {
    width: min(1080px, 96vw);
    height: min(88vh, 1200px);
  }
  
  .resumeHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    letter-spacing: 0.3px;
    color: var(--muted);
  }
  
  .resumeActions {
    display: flex;
    gap: 8px;
  }
  
  .resumeBtn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    padding: 6px 12px;
    font-size: 12px;
    letter-spacing: 0.2px;
  }
  
  #resumeFrame {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg);
  }
  
  /* Footer */
  .footer {
    position: fixed;
    bottom: 20px;
    left: 64px;
    right: 64px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
  }
  
  .footerRight { display: flex; gap: 16px; }
  
  .footerLink,
  .footerLink:visited,
  .footerLink:hover,
  .footerLink:active {
    color: var(--muted);
    text-decoration: none;
  }
  
  .footerLink:hover { color: var(--fg); }
  
  .footerIconLink {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .footerIcon {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
  }
  
  /* Mobile */
  @media (max-width: 820px) {
    body { padding: 28px 22px; }
  
    .nav.desktop { display: none; }
    .mobileIcons { display: flex; gap: 16px; }
  
    .footer { left: 22px; right: 22px; }
  
    .artGrid {
      width: min(720px, 92vw);
      left: 50%;
      transform: translateX(-50%);
    }
  
    .mobileMenu.open {
      display: block;
      position: static;
      padding: 16px 0 8px 0;
      background: var(--bg);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      margin-top: 12px;
    }
    
    .content { transition: margin-top 0.2s ease; }
    body.menuOpen .content {
      margin-top: calc(90px + var(--menu-offset, 0px));
    }
  
    .menuItems { display: flex; flex-direction: column; gap: 18px; }
  
    .menuLink {
      background: none;
      border: none;
      color: var(--muted);
      font: inherit;
      font-size: 20px;
      text-align: left;
      padding: 0;
      cursor: pointer;
    }
    
    body.menuOpen .content { margin-top: 40px; }
  
    .menuLink:hover { color: var(--fg); }
  }
  
