  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --accent: #09672e;
    --accent-light: rgba(9,103,46,0.1);
    --accent-border: rgba(9,103,46,0.28);
    --fg: #2a2724;
    --fg60: rgba(42,39,36,0.6);
    --fg40: rgba(42,39,36,0.4);
    --fg10: rgba(42,39,36,0.1);
    --bg: #FAFAF8;
    --white: #fff;
    --dark1: #3c3b39;
    --dark2: #2f2e2d;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.13);
  }
  html, body { margin: 0; padding: 0; width: 100%; min-height: 100%; background: var(--bg); }
  html { scroll-behavior: smooth; }
  body { font-family: var(--sans); background: var(--bg); color: var(--fg); overflow-x: hidden; }

  /* NAV — floating pill */
  nav { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 20px; background: rgba(255,255,255,0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.5); border-radius: 99px; box-shadow: 0 8px 32px rgba(0,0,0,0.08); transition: background 0.3s, box-shadow 0.3s; }
  nav.scrolled { background: rgba(255,255,255,0.88); box-shadow: 0 8px 40px rgba(0,0,0,0.12); }
  .nav-logo { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--fg); text-decoration: none; margin-right: 8px; }
  .nav-logo span { color: var(--accent); }
  .nav-links { display: flex; gap: 2px; }
  .nav-links a { padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--fg60); text-decoration: none; transition: color 0.2s, background 0.2s; position: relative; }
  .nav-links a.active { color: var(--accent); background: var(--accent-light); }
  .nav-links a.active::after { display: none; }
  .nav-links a:hover { color: var(--fg); background: var(--fg10); }
  .nav-cta { padding: 8px 20px; background: var(--fg); color: #fff; border-radius: 99px; font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity 0.2s, transform 0.15s; cursor: pointer; margin-left: 4px; }
  .nav-cta:hover { opacity: 0.85; transform: scale(1.03); }

  /* Custom cursor — subtle dot + ring */
  @media (hover: hover) and (pointer: fine) {
    html { cursor: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="none" stroke="rgba(42,39,36,0.35)" stroke-width="1.2"/><circle cx="10" cy="10" r="1.5" fill="rgba(42,39,36,0.6)"/></svg>') 10 10, auto; }
    a, button, .project-card, .nav-cta, .btn-primary, .btn-outline, .skill-tab, .view-all-btn, .social-btn, .contact-item { cursor: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="none" stroke="rgba(9,103,46,0.5)" stroke-width="1.2"/><circle cx="10" cy="10" r="1.5" fill="rgba(9,103,46,0.7)"/></svg>') 10 10, pointer; }
  }

  /* HERO */
  #hero { min-height: 100vh; display: flex; align-items: center; padding: 80px 40px 60px; background: var(--bg); }
  .hero-inner { max-width: 680px; }
  .hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px; background: var(--accent-light); color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 28px; opacity: 0; transform: translateY(16px); animation: fadeUp 0.6s 0.2s forwards; }
  .hero-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.5s infinite; }
  @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.85)} }
  h1.hero-title { font-family: var(--serif); font-size: clamp(52px, 8vw, 88px); line-height: 1.0; color: var(--fg); margin-bottom: 18px; letter-spacing: -0.02em; opacity: 0; transform: translateY(24px); animation: fadeUp 0.7s 0.35s forwards; }
  h1.hero-title span { color: var(--accent); }
  .hero-typed { font-size: clamp(20px, 3vw, 28px); color: var(--fg60); font-weight: 500; margin-bottom: 20px; min-height: 40px; opacity: 0; transform: translateY(16px); animation: fadeUp 0.6s 0.5s forwards; }
  .hero-typed .cursor { color: var(--accent); animation: blink 0.9s infinite; }
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
  .hero-desc { font-size: 17px; line-height: 1.7; color: #67615a; max-width: 500px; margin-bottom: 32px; opacity: 0; transform: translateY(16px); animation: fadeUp 0.6s 0.65s forwards; }
  .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; opacity: 0; transform: translateY(16px); animation: fadeUp 0.6s 0.8s forwards; }
  .btn-primary { padding: 12px 28px; background: var(--fg); color: #fff; border-radius: 99px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s; }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
  .btn-outline { padding: 12px 28px; border: 2px solid var(--fg10); border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--fg); cursor: pointer; background: transparent; transition: border-color 0.2s, color 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
  .hero-socials { display: flex; gap: 12px; opacity: 0; animation: fadeUp 0.6s 1s forwards; }
  .social-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--fg10); display: flex; align-items: center; justify-content: center; color: var(--fg60); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
  .social-btn:hover { border-color: var(--accent); color: var(--accent); }
  .scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--fg40); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0; animation: fadeIn 0.6s 1.5s forwards; cursor: pointer; border: none; background: none; }
  .scroll-arrow { animation: bounce 1.5s infinite ease-in-out; }
  @keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }
  @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
  @keyframes fadeIn { to { opacity: 1; } }

  /* SHARED */
  section { width: 100%; padding: 96px 40px; }
  .section-label { font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
  h2.section-title { font-family: var(--serif); font-size: clamp(36px, 5vw, 60px); font-weight: 700; color: var(--fg); margin-bottom: 48px; line-height: 1.1; }
  h2.section-title.light { color: #e7e4e1; }
  .container { width: 100%; max-width: 1100px; margin: 0 auto; min-width: 0; }

  /* 01 ABOUT (dark) */
  #about { background: var(--dark1); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .bio-text { font-size: 16px; line-height: 1.75; color: rgba(231,228,225,0.65); }
  .bio-text strong { color: #e7e4e1; font-weight: 600; }
  .bio-text p + p { margin-top: 16px; }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
  .tag { padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--accent); border: 2px solid rgba(9,103,46,0.4); background: rgba(9,103,46,0.12); }
  .interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .interest-card { padding: 28px 24px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1); box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
  .interest-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .interest-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(9,103,46,0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 10px; }
  .interest-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: #e7e4e1; margin-bottom: 4px; }
  .interest-desc { font-size: 13px; color: rgba(231,228,225,0.55); margin-top: 8px; line-height: 1.6; }
  .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
  .stat-card { text-align: center; padding: 24px 16px; border-radius: 18px; background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.1); box-shadow: var(--shadow); }
  .stat-value { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1; }
  .stat-value .acc { color: var(--accent); }
  .stat-value .dim { font-size: 20px; color: rgba(231,228,225,0.35); }
  .stat-label { font-size: 12px; color: rgba(231,228,225,0.55); margin-top: 6px; }

  /* 02 SKILLS (light) */
  #skills { background: var(--white); }
  .skill-tabs { display: flex; gap: 8px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--fg10); }
  .skill-tab { padding: 8px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--fg60); cursor: pointer; border: none; background: transparent; transition: background 0.2s, color 0.2s; }
  .skill-tab.active { background: var(--accent); color: #fff; }
  .skill-tab:hover:not(.active) { color: var(--fg); background: var(--fg10); }
  .skills-pills { display: flex; flex-wrap: wrap; gap: 12px; min-height: 60px; }
  .skill-pill { padding: 10px 22px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-light); border: 2px solid var(--accent-border); transition: border-color 0.2s, background 0.2s; opacity: 0; transform: translateX(-30px); display: inline-flex; align-items: center; justify-content: center; }
  .skill-pill.visible { animation: slideIn 0.5s forwards; }
  .skill-pill:hover { background: rgba(9,103,46,0.18); border-color: rgba(9,103,46,0.5); }
  @keyframes slideIn { to { opacity: 1; transform: translateX(0); } }
  .soft-skills-title { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--fg); margin: 48px 0 20px; }
  /* WORK EXPERIENCE */
  .work-timeline { position: relative; margin-bottom: 56px; }
  .work-timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--accent), rgba(9,103,46,0.1)); }
  .work-item { position: relative; padding-left: 64px; padding-bottom: 32px; }
  .work-item:last-child { padding-bottom: 0; }
  .work-icon { position: absolute; left: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 16px; z-index: 1; }
  .work-card { padding: 24px; border-radius: 18px; background: var(--fg10); border: 2px solid rgba(42,39,36,0.12); box-shadow: var(--shadow); }
  .work-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
  .work-role { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--fg); }
  .work-company { font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 2px; }
  .work-meta { text-align: right; flex-shrink: 0; }
  .work-period { font-size: 12px; color: var(--fg60); font-weight: 500; }
  .work-location { font-size: 12px; color: var(--fg40); margin-top: 2px; }
  .work-desc { font-size: 14px; color: var(--fg60); line-height: 1.7; margin-bottom: 14px; }
  .work-bullets { list-style: none; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
  .work-bullets li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--fg60); line-height: 1.55; }
  .work-bullet-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
  .work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .work-tag { padding: 3px 10px; border-radius: 7px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-light); border: 1px solid var(--accent-border); }
  .skills-section-title { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--fg); margin-bottom: 24px; }

  /* 03 PROJECTS (dark) */
  #projects { background: var(--dark1); padding-top: 20px; }
  .projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
  .view-all-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; border: none; background: none; transition: gap 0.2s; }
  .view-all-btn:hover { gap: 10px; }
  .projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .project-card { background: var(--white); border-radius: 18px; overflow: hidden; border: 2px solid rgba(255,255,255,0.08); box-shadow: 0 4px 20px rgba(0,0,0,0.1); cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; }
  .project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .project-img { height: 200px; position: relative; overflow: hidden; background: linear-gradient(135deg, #3a5a4a 0%, #2a3a30 100%); display: flex; align-items: center; justify-content: center; }
  .project-content { padding: 20px; }
  .project-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--fg); margin-bottom: 8px; line-height: 1.3; }
  .project-desc { font-size: 13px; color: var(--fg60); line-height: 1.6; margin-bottom: 14px; }
  .project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .project-tag { padding: 3px 8px; border-radius: 7px; font-size: 11px; color: var(--fg60); background: var(--fg10); border: 1px solid rgba(42,39,36,0.1); }
  .project-hint { font-size: 11px; color: var(--accent); font-weight: 600; margin-top: 10px; display: none; }
  .project-card:hover .project-hint { display: block; }

  /* MODAL */
  .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
  .modal-overlay.open { display: flex; }
  .modal { background: var(--white); border-radius: 24px; max-width: 1180px; width: min(1180px, calc(100vw - 48px)); margin: 0 auto; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 80px rgba(0,0,0,0.25); animation: modalIn 0.3s ease; }
  @keyframes modalIn { from { opacity:0; transform:scale(0.95) translateY(10px); } to { opacity:1; transform:none; } }
  .modal-img { width: 100%; height: auto; max-height: none; object-fit: contain; background: #ffffff; display: block; }
  .modal-body { padding: 28px; }
  .modal-cat { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
  .modal-cat-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .modal.modal-no-banner .modal-cat-row { padding-right: 42px; margin-top: -6px; }
  .modal-status-badge { padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
  .modal-status-badge.in-progress { background: rgba(120,90,0,0.12); color: #8a6200; border: 1.5px solid rgba(200,150,0,0.45); }
  .modal-status-badge.completed { background: rgba(9,103,46,0.1); color: var(--accent); border: 1.5px solid rgba(9,103,46,0.35); }
  .modal-title { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--fg); margin-bottom: 16px; }
  .modal-desc { font-size: 16px; color: var(--fg60); line-height: 1.75; margin-bottom: 24px; }
  .modal-section-title { font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
  .modal-text { font-size: 15px; color: var(--fg60); line-height: 1.75; margin-bottom: 24px; }
  .modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
  .modal-tag { padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--accent); background: var(--accent-light); border: 1.5px solid var(--accent-border); }
  .modal-links { display: flex; gap: 12px; }
  .modal-link { padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
  .modal-link.github { background: var(--fg); color: #fff; }
  .modal-link.demo { background: var(--accent-light); color: var(--accent); border: 1.5px solid var(--accent-border); }
  .modal-link:hover { opacity: 0.8; }
  .modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer; font-size: 18px; color: var(--fg60); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.12); padding: 0; line-height: 1; }
  .modal-wrapper { position: relative; }

  /* 04 EDUCATION (light) */
  #education { background: var(--bg); }
  .edu-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
  .timeline { position: relative; }
  .timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--accent), rgba(9,103,46,0.15)); }
  .edu-item { position: relative; padding-left: 64px; padding-bottom: 40px; }
  .edu-item:last-child { padding-bottom: 0; }
  .edu-icon { position: absolute; left: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 1; }
  .edu-card { padding: 24px; border-radius: 18px; background: var(--white); border: 2px solid var(--fg10); box-shadow: var(--shadow); }
  .edu-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
  .edu-degree { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--fg); }
  .edu-institution { font-size: 14px; color: var(--accent); margin-top: 2px; }
  .edu-meta { text-align: right; }
  .edu-period { font-size: 12px; color: var(--fg60); }
  .edu-gpa { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 2px; }
  .edu-desc { font-size: 14px; color: var(--fg60); line-height: 1.65; margin-bottom: 14px; }
  .edu-highlights { display: flex; flex-wrap: wrap; gap: 8px; }
  .edu-highlight { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; color: var(--fg60); background: var(--accent-light); border: 1px solid var(--accent-border); }
  .edu-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
  .coursework-card { padding: 24px; border-radius: 18px; background: var(--white); border: 2px solid var(--fg10); box-shadow: var(--shadow); position: sticky; top: 88px; }
  .coursework-title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--fg); margin-bottom: 18px; }
  .course-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--fg60); border-bottom: 1px solid var(--fg10); }
  .course-item:last-child { border-bottom: none; }
  .course-arrow { color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
  .grad-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--fg10); }
  .grad-label { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
  .grad-date { font-family: var(--serif); font-size: 26px; color: var(--accent); font-weight: 700; }
  .grad-sub { font-size: 12px; color: var(--fg40); margin-top: 4px; }

  /* 05 CONTACT (dark) */
  #contact { background: var(--dark2); }
  .contact-header { text-align: center; margin-bottom: 48px; }
  .contact-subtitle { font-size: 15px; color: rgba(231,228,225,0.6); max-width: 520px; margin: 0 auto; line-height: 1.7; }
  .contact-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 32px; max-width: 900px; margin: 0 auto; }
  .contact-grid > * { min-width: 0; }
  .contact-info { display: flex; flex-direction: column; gap: 12px; }
  .contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white); border-radius: 14px; border: 2px solid var(--fg10); box-shadow: var(--shadow); text-decoration: none; transition: transform 0.2s; }
  .contact-item:hover { transform: translateX(3px); }
  .contact-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
  .contact-label { font-size: 10px; color: var(--fg60); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
  .contact-val { font-size: 13px; font-weight: 600; color: var(--fg); }
  .contact-form { min-width: 0; overflow: hidden; background: var(--white); border-radius: 18px; border: 2px solid var(--fg10); box-shadow: var(--shadow); padding: 24px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-row > *, .form-group { min-width: 0; }
  .form-group { margin-bottom: 14px; }
  .form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form-label { display: block; font-size: 11px; font-weight: 700; color: var(--fg60); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
  .form-input, .form-textarea { display: block; width: 100%; max-width: 100%; padding: 11px 14px; border-radius: 12px; border: 2px solid var(--fg10); background: rgba(42,39,36,0.02); font-size: 13px; color: var(--fg); font-family: var(--sans); transition: border-color 0.2s; }
  .form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent); }
  .form-textarea { resize: vertical; min-height: 110px; }
  .form-feedback { display: none; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; border: 1.5px solid rgba(9,103,46,0.18); background: rgba(9,103,46,0.08); color: var(--accent); }
  .form-feedback.show { display: block; }
  .form-feedback.error { border-color: rgba(168,70,47,0.24); background: rgba(168,70,47,0.08); color: #8f3f2f; }
  .form-submit { width: 100%; padding: 12px; background: var(--fg); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; font-family: var(--sans); }
  .form-submit:hover { opacity: 0.85; }
  .form-submit:disabled { opacity: 0.7; cursor: progress; }
  .form-success { text-align: center; padding: 40px 20px; display: none; flex-direction: column; align-items: center; gap: 12px; }
  .form-success.show { display: flex; }
  .form-success-icon { font-size: 48px; }
  .form-success-title { font-family: var(--serif); font-size: 24px; color: var(--fg); }
  .form-success-text { font-size: 14px; color: var(--fg60); }

  /* FOOTER */
  footer { background: var(--white); border-top: 2px solid var(--fg10); padding: 36px 40px; }
  .footer-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; gap: 20px; flex-wrap: wrap; }
  .footer-logo { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--fg); }
  .footer-logo span { color: var(--accent); }
  .footer-copy { font-size: 12px; color: var(--fg40); }
  .footer-socials { display: flex; gap: 16px; }
  .footer-social { color: var(--fg40); text-decoration: none; font-size: 14px; transition: color 0.2s; }
  .footer-social:hover { color: var(--accent); }

  /* SCROLL REVEAL */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .reveal.revealed { opacity: 1; transform: none; }
  .reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .reveal-left.revealed { opacity: 1; transform: none; }
  .reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
  .reveal-right.revealed { opacity: 1; transform: none; }
  .delay-1 { transition-delay: 0.1s; }
  .delay-2 { transition-delay: 0.2s; }
  .delay-3 { transition-delay: 0.3s; }
  .delay-4 { transition-delay: 0.4s; }

  .nav-toggle { display: none; background: none; border: none; padding: 8px; }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--fg); margin: 4px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

  @media (max-width: 768px) {
    nav { top: 12px; padding: 8px 16px; gap: 0; width: auto; max-width: calc(100% - 24px); }
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: block; margin-left: 12px; }
    .nav-links.open { display: flex; position: fixed; top: 72px; left: 12px; right: 12px; flex-direction: column; background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); padding: 16px; gap: 4px; border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); border: 1px solid rgba(255,255,255,0.5); z-index: 99; }
    .nav-links.open a { padding: 12px 16px; font-size: 15px; border-radius: 12px; }
    section { padding: 72px 20px; }
    #hero { padding: 100px 20px 60px; }
    .about-grid, .projects-grid, .edu-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    footer { padding: 28px 20px; }
    .footer-inner { flex-direction: column; text-align: center; }
  }

  @media (max-width: 900px) {
    .contact-grid, .form-row { grid-template-columns: 1fr; }
  }


  /* Dark section accent overrides */

  /* ADAPTIVE CURSOR: light cursor on dark sections */
  html[data-cursor-dark] { cursor: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="none" stroke="rgba(255,255,255,0.55)" stroke-width="1.2"/><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.85)"/></svg>') 10 10, auto; }
  html[data-cursor-dark] a, html[data-cursor-dark] button, html[data-cursor-dark] .project-card,
  html[data-cursor-dark] .nav-cta, html[data-cursor-dark] .btn-primary, html[data-cursor-dark] .btn-outline,
  html[data-cursor-dark] .skill-tab, html[data-cursor-dark] .view-all-btn, html[data-cursor-dark] .social-btn,
  html[data-cursor-dark] .contact-item { cursor: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="none" stroke="rgba(9,103,46,0.7)" stroke-width="1.2"/><circle cx="10" cy="10" r="1.5" fill="rgba(9,103,46,0.9)"/></svg>') 10 10, pointer; }
  .dark-section { --accent: #3dba6f; --accent-light: rgba(61,186,111,0.15); --accent-border: rgba(61,186,111,0.45); }
  #about .section-label, #projects .section-label, #contact .section-label,
  #about .interest-title, #about .stat-value .acc,
  #projects .view-all-btn, #projects .project-hint,
  #contact .avail-label { color: #3dba6f; }
  #contact .contact-icon svg path { fill: #3dba6f; }
  #about .tag { color: #3dba6f; border-color: rgba(61,186,111,0.45); background: rgba(61,186,111,0.15); }
  #about .interest-icon { background: rgba(61,186,111,0.2); }
  #contact .avail-badge { background: rgba(61,186,111,0.1); border-color: rgba(61,186,111,0.3); }

  /* ── PDF MODAL ── */
  .pdf-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
  .pdf-overlay.open { display: flex; }
  .pdf-modal { background: var(--white); border-radius: 16px; width: 100%; max-width: 860px; height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.4); animation: modalIn 0.3s ease; }
  .pdf-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--fg10); flex-shrink: 0; }
  .pdf-modal-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--fg); }
  .pdf-modal-actions { display: flex; align-items: center; gap: 10px; }
  .pdf-download-btn { padding: 8px 18px; background: var(--accent); color: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.2s; }
  .pdf-download-btn:hover { opacity: 0.85; }
  .pdf-close-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--fg10); background: transparent; cursor: pointer; font-size: 16px; color: var(--fg60); display: flex; align-items: center; justify-content: center; transition: background 0.2s; padding: 0; line-height: 1; }
  .pdf-close-btn:hover { background: var(--fg10); }
  .pdf-viewer { flex: 1; width: 100%; border: none; }
  .report-viewer { overflow-y: auto; padding: 16px; background: #f0f0f0; }
  .report-page { width: 100%; display: block; margin: 0 0 2px; }

  .status-badge { position: absolute; bottom: 10px; right: 10px; padding: 5px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; backdrop-filter: blur(10px); box-shadow: 0 10px 24px rgba(0,0,0,0.16); }
  .status-badge.in-progress { background: rgba(255, 236, 184, 0.78); color: #7c5808; border: 1.5px solid rgba(124, 88, 8, 0.45); }
  .status-badge.completed { background: rgba(214, 242, 225, 0.78); color: #0a5634; border: 1.5px solid rgba(10, 86, 52, 0.42); }

  /* ── HOVER PREVIEW ── */
  .hover-preview {
    position: fixed; z-index: 9999;
    width: min(720px, 90vw);
    background: #fff; border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
    border: 1.5px solid rgba(42,39,36,0.08);
    padding: 0; overflow: hidden;
    opacity: 0;
    transform-origin: var(--origin-x, 50%) var(--origin-y, 50%);
    transform: scale(0.25);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .hover-preview.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
  .hover-preview-img {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, #3a5a4a, #2a3a30);
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; opacity: 0.8; position: relative;
  }
  .hover-preview-img.has-image { opacity: 1; }
  .hover-preview-img img { width: 100%; height: 100%; display: block; }
  .hover-preview-body { padding: 24px; }
  .hover-preview-cat { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
  .hover-preview-title { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--fg); margin-bottom: 10px; line-height: 1.25; }
  .hover-preview-desc { font-size: 14px; color: var(--fg60); line-height: 1.65; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hover-preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
  .hover-preview-tag { padding: 4px 10px; border-radius: 7px; font-size: 12px; color: var(--fg60); background: var(--fg10); border: 1px solid rgba(42,39,36,0.1); }
  .hover-preview-hint { font-size: 13px; color: var(--accent); font-weight: 600; text-align: center; padding: 12px 0 0; border-top: 1px solid var(--fg10); }
  .hover-preview-status { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
  .hover-preview-status.in-progress { background: rgba(120,90,0,0.12); color: #8a6200; border: 1.5px solid rgba(200,150,0,0.45); }
  .hover-preview-status.completed { background: rgba(9,103,46,0.1); color: var(--accent); border: 1.5px solid rgba(9,103,46,0.35); }

  .report-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
  .report-overlay.open { display: flex; }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 3D VIEWER MODAL */
.ibom-overlay { position: fixed; inset: 0; background: #fff; z-index: 350; display: none; flex-direction: column; }
.ibom-overlay.open { display: flex; }
.ibom-topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; background: rgba(12,12,20,0.97); border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0; }
.ibom-content { flex: 1; overflow: hidden; }
.ibom-content iframe { width: 100%; height: 100%; border: none; display: block; }
.viewer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 350; display: none; flex-direction: column; cursor: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="none" stroke="rgba(255,255,255,0.5)" stroke-width="1.2"/><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.8)"/></svg>') 10 10, auto; }
.viewer-overlay button, .viewer-overlay .viewer-btn, .viewer-overlay .viewer-close { cursor: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="7" fill="none" stroke="rgba(9,103,46,0.6)" stroke-width="1.2"/><circle cx="10" cy="10" r="1.5" fill="rgba(9,103,46,0.8)"/></svg>') 10 10, pointer; }
.viewer-overlay.open { display: flex; }
.viewer-topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: rgba(12,12,20,0.95); border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0; }
.viewer-topbar-left { display: flex; align-items: center; gap: 14px; }
.viewer-title { font-family: var(--serif); font-size: 15px; font-weight: 700; color: #fff; }
.viewer-sub { font-size: 12px; color: rgba(255,255,255,0.35); margin-left: 4px; }
.viewer-topbar-right { display: flex; align-items: center; gap: 8px; }
.viewer-btn { display: flex; align-items: center; gap: 5px; padding: 6px 13px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 500; cursor: pointer; font-family: var(--sans); transition: all 0.2s; }
.viewer-btn:hover { background: rgba(255,255,255,0.09); color: #fff; }
.viewer-btn.active { background: rgba(9,103,46,0.2); color: #3dba6f; border-color: rgba(9,103,46,0.35); }
.viewer-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); background: transparent; cursor: pointer; font-size: 16px; color: rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; transition: all 0.2s; padding: 0; line-height: 1; }
.viewer-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.viewer-canvas-wrap { flex: 1; position: relative; overflow: hidden; background: #0c0c14; }
.viewer-canvas-wrap canvas { display: block; width: 100%; height: 100%; }
.v3d-preview { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0c0c14; cursor: pointer; margin-top: 16px; border: 1.5px solid rgba(9,103,46,0.2); transition: border-color 0.3s, box-shadow 0.3s; }
.v3d-preview:hover { border-color: rgba(9,103,46,0.5); box-shadow: 0 4px 24px rgba(9,103,46,0.15); }
.v3d-preview canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.v3d-preview-label { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.v3d-preview-label svg { opacity: 0.6; }
.viewer-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 18px; padding: 9px 20px; border-radius: 99px; background: rgba(12,12,20,0.75); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.07); font-size: 11px; color: rgba(255,255,255,0.35); pointer-events: none; transition: opacity 0.5s; white-space: nowrap; }
.viewer-hint span { display: flex; align-items: center; gap: 5px; }
.viewer-hint kbd { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; padding: 1px 5px; font-size: 10px; font-family: var(--sans); }
.viewer-hint.hidden { opacity: 0; }
.viewer-stats { position: absolute; bottom: 16px; right: 16px; font-size: 10px; color: rgba(255,255,255,0.2); text-align: right; line-height: 1.7; }
