/* Mobile-first refinement: compact navigation, a readable hero, and touch-friendly cards. */
@media (max-width: 760px) {
  body { background-attachment: scroll; }
  body::before { width: 100vw; height: 100vw; right: -40vw; top: 18vh; bottom: auto; filter: blur(45px); }
  body::after { width: 82vw; height: 82vw; left: -40vw; top: 58vh; bottom: auto; filter: blur(42px); }

  .shell { padding-left: 18px; padding-right: 18px; }
  .nav { position: sticky; top: 8px; height: 58px; margin: 0 10px; padding: 0 12px; border-radius: 16px; }
  .monogram img { width: 30px; height: 30px; }
  .nav nav { display: flex; gap: 13px; margin-left: auto; margin-right: 12px; }
  .nav nav a { font-size: 11px; font-weight: 600; }
  .nav-contact { padding: 8px 9px; border-radius: 9px; font-size: 10px; white-space: nowrap; }
  .nav-contact span { display: none; }

  .intro { padding-top: 51px; }
  .overline { font-size: 9px; line-height: 1.5; letter-spacing: .05em; }
  .intro-title { display: block; margin-top: 19px; }
  .intro h1 { max-width: 355px; font-size: clamp(40px, 11.8vw, 51px); line-height: 1.02; letter-spacing: -.073em; }
  .intro-note { margin-top: 24px; padding: 14px 14px 14px 16px; border-left-width: 3px; border-radius: 0 12px 12px 0; }
  .intro-note p { font-size: 12px; line-height: 1.66; }
  .intro-bottom { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; padding: 10px; border-radius: 13px; }
  .intro-bottom span { width: auto; padding: 7px 9px; border: 1px solid rgba(94,111,160,.14); border-radius: 8px; background: rgba(255,255,255,.35); color: #35425f; font-size: 8px; text-align: left !important; }

  .work { padding-top: 64px; }
  .library-head { margin-bottom: 14px; padding: 20px 18px; border-radius: 18px; }
  .library-head h2 { margin-top: 10px; font-size: 28px; line-height: 1.14; letter-spacing: -.055em; }
  .library-head > p { margin-top: 13px; font-size: 11px; line-height: 1.55; }
  .project-library { gap: 13px; }
  .library-card { min-height: 0; border-radius: 18px; }
  .project-visual { height: 200px; padding: 7px; }
  .project-visual > a, .project-visual img, .project-symbol { border-radius: 11px; }
  .project-content { padding: 18px 17px 16px; }
  .project-index { font-size: 9px; }
  .library-card h3 { margin: 14px 0 8px; font-size: 23px; line-height: 1.08; }
  .project-content > p { font-size: 12px; line-height: 1.6; }
  .project-bottom { display: block; margin-top: 18px; padding-top: 16px; }
  .project-stack { gap: 4px; }
  .project-stack span { padding: 5px 6px; font-size: 8px; }
  .project-open { display: inline-block; margin-top: 14px; min-height: 34px; padding: 8px 10px; border-radius: 8px; background: rgba(49,71,216,.1); font-size: 10px; }

  .about-profile { padding: 68px 0; }
  .about-heading { display: block; padding-top: 16px; }
  .about-heading > p:last-child { margin-top: 9px; font-size: 11px; line-height: 1.55; }
  .about-layout { display: block; padding: 30px 0 34px; }
  .about-layout h2 { font-size: 31px; line-height: 1.15; letter-spacing: -.055em; }
  .about-copy { margin-top: 21px; }.about-copy p { font-size: 12px; line-height: 1.7; }
  .education-glass { padding: 17px; border-radius: 16px; }.education-glass h3 { font-size: 15px; line-height: 1.25; }.scholarship span { font-size: 22px; }.scholarship-proof { height: 112px; }
  .about-profile .expertise { margin-top: 12px; border-radius: 12px; }.about-profile .expertise span { padding: 12px; font-size: 9px; }

  .experience { padding-top: 68px; }
  .experience-heading h2 { font-size: 30px; line-height: 1.13; }.experience-heading > p { font-size: 12px; line-height: 1.6; }
  .experience-cards { gap: 10px; }.experience-card { gap: 13px; padding: 18px; border-radius: 15px; }.experience-period { align-items: center; }.experience-period p { font-size: 9px; }.experience-role h3 { font-size: 18px; }.company { font-size: 11px; }.experience-impact > p { font-size: 11px; line-height: 1.6; }.experience-impact span { font-size: 8px; }

  .contact { margin-top: 52px; margin-bottom: 28px; padding: 28px 20px 25px; border-radius: 18px; }
  .contact-profile img { width: 43px; height: 43px; }.contact-profile span { font-size: 10px; }
  .contact h2 { margin: 27px 0 25px; font-size: 39px; line-height: 1.06; letter-spacing: -.065em; }
  .contact-links .email-link { overflow-wrap: anywhere; font-size: 18px; line-height: 1.35; text-underline-offset: 5px; }
  .contact-links div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.contact-links div .social-link { justify-content: center; padding: 10px 7px; font-size: 10px; }
  footer { display: flex; gap: 7px; justify-content: space-between; margin: 0 10px 13px; padding: 12px; font-size: 8px; } footer span:nth-child(2) { display: none; }
}

@media (max-width: 370px) {
  .nav nav { gap: 9px; margin-right: 8px; }.nav nav a { font-size: 10px; }.nav-contact { padding: 7px; }.intro h1 { font-size: 39px; }
}
