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

    :root {
      --bg: #F7F5F0;
      --surface: #EDEAE3;
      --ink: #1A1916;
      --ink-muted: #6B6860;
      --accent: #2F6F4E;
      --accent-dim: #24583E;
      --copper: #A6672F;
      --accent-light: #E8E5DE;
      --border: rgba(26,25,22,0.12);
      --mono: 'DM Mono', monospace;
      --serif: 'DM Serif Display', serif;
      --sans: 'DM Sans', sans-serif;
    }

    html { scroll-behavior: smooth; }

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

    /* ── NAV ── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; justify-content: space-between; align-items: center;
      padding: 1.2rem 3rem;
      background: rgba(237,234,227,0.88);
      backdrop-filter: blur(8px);
      border-bottom: 0.5px solid var(--border);
      box-shadow: 0 4px 20px rgba(26,25,22,0.05);
    }
    .nav-logo {
      font-family: var(--mono);
      font-size: 13px;
      font-weight: 500;
      letter-spacing: 0.05em;
      color: var(--ink);
      text-decoration: none;
    }
    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a {
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 400;
      letter-spacing: 0.08em;
      color: var(--ink-muted);
      text-decoration: none;
      text-transform: uppercase;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--ink); }
    .nav-links a.active { color: var(--accent); }

    /* ── SECTIONS ── */
    section { padding: 7rem 3rem; max-width: 900px; margin: 0 auto; }

    /* ── HERO ── */
    #hero {
      min-height: 100vh;
      display: flex; flex-direction: column; justify-content: center;
      padding-top: 8rem;
      animation: fadeUp 0.9s ease both;
      background-image: radial-gradient(circle, rgba(47,111,78,0.12) 1px, transparent 1px);
      background-size: 26px 26px;
    }
    .hero-label {
      font-family: var(--mono);
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink-muted);
      margin-bottom: 1.5rem;
    }
    .hero-label span {
      display: inline-block;
      width: 28px; height: 1px;
      background: var(--accent);
      vertical-align: middle;
      margin-right: 10px;
    }
    h1 {
      font-family: var(--serif);
      font-size: clamp(3rem, 8vw, 5.5rem);
      line-height: 1.08;
      font-weight: 400;
      letter-spacing: -0.01em;
      margin-bottom: 1.5rem;
    }
    .hero-sub {
      font-size: 17px;
      color: var(--ink-muted);
      max-width: 460px;
      line-height: 1.7;
      margin-bottom: 3rem;
    }
    .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
    .btn {
      display: inline-block;
      padding: 0.65rem 1.4rem;
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-decoration: none;
      border-radius: 2px;
      transition: all 0.2s;
      cursor: pointer;
      border: none;
    }
    .btn-primary {
      background: var(--accent);
      color: var(--bg);
    }
    .btn-primary:hover { background: var(--accent-dim); }
    .btn-outline {
      background: transparent;
      color: var(--ink);
      border: 0.5px solid var(--border);
    }
    .btn-outline:hover { background: var(--surface); border-color: var(--accent); }

    .hero-scroll {
      position: absolute;
      bottom: 2.5rem; left: 3rem;
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.1em;
      color: var(--ink-muted);
      text-transform: uppercase;
      display: flex; align-items: center; gap: 8px;
      animation: fadeUp 1.2s ease 0.4s both;
    }
    .scroll-line {
      width: 1px; height: 40px;
      background: var(--ink-muted);
      animation: growDown 1.5s ease 1s both;
    }

    /* ── ABOUT ── */
    #about { border-top: 0.5px solid var(--border); }
    .section-label {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink-muted);
      margin-bottom: 2.5rem;
    }
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: start;
    }
    h2 {
      font-family: var(--serif);
      font-size: clamp(2rem, 4vw, 2.8rem);
      font-weight: 400;
      line-height: 1.15;
      margin-bottom: 1.2rem;
    }
    .about-text { font-size: 15px; color: var(--ink-muted); }
    .about-text p + p { margin-top: 1rem; }
    .skills-list { display: flex; flex-direction: column; gap: 12px; }
    .skill-row {
      display: flex; justify-content: space-between; align-items: center;
      padding-bottom: 12px;
      border-bottom: 0.5px solid var(--border);
    }
    .skill-name {
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.05em;
    }
    .skill-tag {
      font-family: var(--mono);
      font-size: 10px;
      padding: 3px 8px;
      border: 0.5px solid var(--border);
      border-radius: 2px;
      color: var(--ink-muted);
      background: var(--surface);
    }

    /* ── PROJECTS ── */
    #projects { border-top: 0.5px solid var(--border); }
    .projects-header {
      display: flex; justify-content: space-between; align-items: flex-end;
      margin-bottom: 3rem;
    }
    .projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .project-card {
      background: var(--bg);
      border: 0.5px solid var(--border);
      border-radius: 6px;
      padding: 1.8rem 1.9rem;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 1rem;
      align-items: start;
      transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
      text-decoration: none;
      color: inherit;
      cursor: pointer;
    }
    .project-card:hover {
      background: var(--surface);
      border-color: var(--accent);
      box-shadow: 0 6px 20px rgba(26,25,22,0.07);
      transform: translateY(-2px);
    }
    .project-card:hover .ptag { color: var(--accent); border-color: var(--accent); }
    .project-card:hover .project-arrow { color: var(--accent); }
    @media (max-width: 640px) {
      .projects-grid { grid-template-columns: 1fr; }
    }
    .project-num {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--ink-muted);
      margin-bottom: 0.4rem;
    }
    .project-name {
      font-family: var(--serif);
      font-size: 1.3rem;
      font-weight: 400;
      margin-bottom: 0.4rem;
    }
    .project-desc {
      font-size: 13px;
      color: var(--ink-muted);
      max-width: 480px;
    }
    .project-tags { display: flex; gap: 6px; margin-top: 0.8rem; flex-wrap: wrap; }
    .ptag {
      font-family: var(--mono);
      font-size: 10px;
      padding: 2px 7px;
      border: 0.5px solid var(--border);
      border-radius: 2px;
      color: var(--ink-muted);
    }
    .project-arrow {
      font-size: 18px;
      color: var(--ink-muted);
      transition: transform 0.2s;
      margin-top: 4px;
    }
    .project-card:hover .project-arrow { transform: translate(3px, -3px); }

    /* ── CONTACT ── */
    #contact { border-top: 0.5px solid var(--border); text-align: center; padding-bottom: 8rem; }
    #contact h2 { margin-bottom: 1rem; }
    #contact p { color: var(--ink-muted); font-size: 15px; margin-bottom: 2.5rem; }
    .contact-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
    .contact-link {
      font-family: var(--mono);
      font-size: 12px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--ink-muted);
      text-decoration: none;
      border-bottom: 0.5px solid var(--border);
      padding-bottom: 2px;
      transition: color 0.2s, border-color 0.2s;
    }
    .contact-link:hover { color: var(--ink); border-color: var(--accent); }

    /* ── FOOTER ── */
    footer {
      text-align: center;
      padding: 2rem;
      font-family: var(--mono);
      font-size: 11px;
      color: var(--ink-muted);
      border-top: 0.5px solid var(--border);
      letter-spacing: 0.05em;
    }

    /* ── SCROLL REVEAL ── */
    .reveal {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                  transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .reveal.is-visible { opacity: 1; transform: translateY(0); }
    /* higher-specificity overrides so each card type keeps its own hover transition too */
    .project-card.reveal, .game-card.reveal, .shot-card.reveal, .skill-card.reveal {
      transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                  transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
                  background 0.2s, border-color 0.2s, box-shadow 0.2s;
    }
    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1; transform: none; transition: none; }
    }

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

    /* ── RESPONSIVE ── */
    @media (max-width: 640px) {
      nav { padding: 1rem 1.5rem; }
      .nav-links { gap: 1.2rem; }
      section { padding: 5rem 1.5rem; }
      .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .projects-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
      .hero-scroll { display: none; }
    }
    /* ── NAV: active state + vertical alignment (resume-only additions) ── */
    .nav-links { align-items: center; }
    .nav-links a.active { color: var(--accent); }

    /* ── PAGE WRAPPER ── */
    .page {
      max-width: 1180px;
      margin: 0 auto;
      padding: 9rem 3rem 6rem;
      animation: fadeUp 0.9s ease both;
    }

    /* ── RESUME HEADER ── */
    .resume-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      padding-bottom: 3rem;
      border-bottom: 0.5px solid var(--border);
      margin-bottom: 3rem;
      gap: 2rem;
    }
    .resume-header-left {}
    .resume-page-label {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ink-muted);
      margin-bottom: 1rem;
    }
    .resume-name {
      font-family: var(--serif);
      font-size: clamp(2.2rem, 5vw, 3.5rem);
      font-weight: 400;
      line-height: 1.08;
      margin-bottom: 1rem;
    }
    .resume-tagline {
      font-size: 14px;
      color: var(--ink-muted);
      max-width: 420px;
      line-height: 1.7;
    }
    .resume-header-right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 1.2rem;
      flex-shrink: 0;
    }
    .contact-info {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.35rem;
    }
    .contact-info a, .contact-info span {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--ink-muted);
      text-decoration: none;
      letter-spacing: 0.04em;
      transition: color 0.2s;
    }
    .contact-info a:hover { color: var(--ink); }
    .print-btn {
      display: inline-block;
      padding: 0.55rem 1.2rem;
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-decoration: none;
      border-radius: 2px;
      cursor: pointer;
      background: transparent;
      color: var(--ink-muted);
      border: 0.5px solid var(--border);
      transition: all 0.2s;
    }
    .print-btn:hover { background: var(--surface); color: var(--ink); }

    /* ── RESUME BODY GRID ── */
    .resume-body {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 0 5rem;
      align-items: start;
    }

    /* ── SECTIONS ── */
    .resume-section {
      margin-bottom: 3rem;
    }

    /* ── ENTRY (education, internship, achievement) ── */
    .entry { margin-bottom: 1.8rem; }
    .entry:last-child { margin-bottom: 0; }
    .entry-title {
      font-family: var(--serif);
      font-size: 1.1rem;
      font-weight: 400;
      margin-bottom: 0.15rem;
    }
    .entry-meta {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.06em;
      color: var(--ink-muted);
      text-transform: uppercase;
      margin-bottom: 0.5rem;
    }
    .entry-desc {
      font-size: 13.5px;
      color: var(--ink-muted);
      line-height: 1.65;
    }

    /* ── TAGS / SKILLS ── */
    .skills-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }
    .skill-pill {
      font-family: var(--mono);
      font-size: 10px;
      padding: 4px 10px;
      border: 0.5px solid var(--border);
      border-radius: 2px;
      color: var(--ink-muted);
      background: var(--surface);
      letter-spacing: 0.04em;
    }

    /* ── VOLUNTEERING ── */
    .vol-stat {
      font-family: var(--serif);
      font-size: 2rem;
      line-height: 1;
      margin-bottom: 0.3rem;
      color: var(--accent);
    }
    .vol-label {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ink-muted);
      margin-bottom: 0.8rem;
    }
    .vol-orgs {
      font-size: 13px;
      color: var(--ink-muted);
      line-height: 1.7;
    }

    /* ── SIDEBAR ── */
    .resume-sidebar {
      border-left: 0.5px solid var(--border);
      padding-left: 2.5rem;
    }

    /* ── PRINT ── */
    @media print {
      nav, .print-btn { display: none !important; }
      body { background: #fff; }
      .page { padding: 2rem; max-width: 100%; }
      .resume-body { grid-template-columns: 1fr 220px; gap: 0 2.5rem; }
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 700px) {
      .page { padding: 7rem 1.5rem 4rem; }
      .resume-header { flex-direction: column; }
      .resume-header-right { align-items: flex-start; }
      .contact-info { align-items: flex-start; }
      .resume-body { grid-template-columns: 1fr; }
      .resume-sidebar { border-left: none; border-top: 0.5px solid var(--border); padding-left: 0; padding-top: 2rem; margin-top: 1rem; }
    }