@media (min-width: 901px) {
  .hero-grid,
  .about-grid { grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr); gap: clamp(32px, 5vw, 64px); }
  .contact-grid { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); }
}

.timeline,
.card-grid,
.project-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.5vw, 28px); }

.resume-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2.5vw, 28px); }

.skills-panel { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.profile-card,
.geo-summary,
.skills-panel,
.timeline-card,
.ability-card,
.project-card,
.education-card { min-width: 0; }

@media (min-width: 761px) and (max-width: 1100px) {
  .container { width: min(calc(100% - 48px), 860px); }
  .section { padding: 70px 0; }
  .hero { padding: 52px 0 64px; }
  .hero h1 { font-size: 46px; }
  .section-header h2 { font-size: 34px; }
  .about-copy h3,
  .contact h2 { font-size: 34px; }
  .hero-stats { gap: 18px; }
  .timeline-card,
  .ability-card,
  .project-card { padding: 24px; }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  html,
  body { max-width: 100%; overflow-x: hidden; }
  body { background-size: 30px 30px; font-size: 15px; line-height: 1.72; }
  .container { width: min(calc(100vw - 32px), 640px); max-width: none; margin-inline: auto; }
  .site-header { height: var(--header-height); background: rgba(255, 255, 255, 0.76); }
  .brand { min-width: 0; gap: 8px; font-size: 17px; }
  .brand span:last-child { white-space: nowrap; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .menu-button { border-radius: 8px; touch-action: manipulation; }
  .menu-button:focus-visible,
  .nav-link:focus-visible,
  .btn:focus-visible,
  .project-card a:focus-visible { outline: 3px solid rgba(22, 138, 91, 0.28); outline-offset: 3px; }
  .nav-menu {
    inset: var(--header-height) 16px auto;
    max-height: calc(100dvh - var(--header-height) - 24px);
    padding: 12px;
    gap: 4px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(50, 58, 48, 0.13);
  }
  .nav-link {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: var(--text);
  }
  .nav-link.is-active { background: rgba(22, 138, 91, 0.1); }
  .hero { min-height: auto; padding: 30px 0 38px; }
  .hero-grid { align-items: start; gap: 22px; }
  .hero-copy,
  .profile-card,
  .geo-summary,
  .about-copy,
  .skills-panel,
  .timeline-card,
  .ability-card,
  .project-card,
  .education-card,
  .contact-grid { min-width: 0; max-width: 100%; }
  .eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 5px 9px;
    border: 1px solid rgba(22, 138, 91, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    line-height: 1.35;
  }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(26px, 7.4vw, 31px);
    line-height: 1.16;
    word-break: break-all;
    overflow-wrap: anywhere;
  }
  .hero h1::after { width: 78px; height: 4px; margin-top: 20px; }
  .hero-text { margin-top: 20px; font-size: 15px; line-height: 1.82; overflow-wrap: anywhere; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  .btn { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 7px; touch-action: manipulation; }
  .btn-primary { box-shadow: 0 14px 30px rgba(22, 138, 91, 0.22); }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
    padding-top: 0;
    border-top: 0;
  }
  .hero-stats div {
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.48);
  }
  .hero-stats strong { font-size: clamp(18px, 5vw, 21px); line-height: 1.12; white-space: nowrap; }
  .hero-stats span { margin-top: 5px; font-size: 12px; line-height: 1.35; }
  .hero-stats div:last-child { grid-column: 1 / -1; }
  .profile-card { padding: 18px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 48px rgba(50, 58, 48, 0.12); }
  .profile-top { align-items: center; gap: 14px; margin-bottom: 16px; }
  .avatar { width: 64px; height: 64px; border-radius: var(--radius); font-size: 30px; }
  .profile-name { font-size: 24px; }
  .profile-role { max-width: 230px; line-height: 1.55; }
  .signal-list { gap: 10px; }
  .signal-item { padding: 12px; border-left-width: 3px; border-radius: 7px; background: rgba(255, 255, 255, 0.48); }
  .profile-bars { gap: 12px; margin-top: 18px; }
  .profile-bars i { max-width: 100%; height: 7px; border-radius: 999px; }
  .section { padding: 46px 0; }
  .section-header { margin-bottom: 24px; text-align: left; }
  .section-header h2 { font-size: 26px; line-height: 1.2; }
  .section-header p { margin-top: 6px; font-size: 14px; }
  .section-header p::after { left: 0; bottom: -10px; width: 40px; height: 4px; transform: none; }
  .geo-summary,
  .education-card,
  .skills-panel,
  .timeline-card,
  .ability-card,
  .project-card { border-radius: var(--radius); box-shadow: 0 14px 38px rgba(50, 58, 48, 0.1); }
  .geo-summary,
  .education-card { margin-bottom: 20px; padding: 18px; line-height: 1.82; }
  .geo-summary strong { display: block; margin-bottom: 6px; }
  .about-grid,
  .timeline,
  .card-grid,
  .project-grid,
  .resume-list { gap: 14px; }
  .about-copy h3,
  .contact h2 { font-size: 24px; line-height: 1.28; }
  .about-copy p,
  .contact p { margin: 16px 0 22px; line-height: 1.82; }
  .skills-panel { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .skills-panel h4 { margin-bottom: 10px; font-size: 18px; }
  .skills-panel li { margin-top: 8px; line-height: 1.55; }
  .timeline,
  .card-grid,
  .project-grid,
  .resume-list { grid-template-columns: 1fr; }
  .timeline-card,
  .ability-card { padding: 18px; }
  .timeline-card { border-left: 4px solid rgba(22, 138, 91, 0.72); }
  .timeline-card span {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(22, 138, 91, 0.1);
    font-size: 13px;
    line-height: 1.4;
  }
  .timeline-card h3,
  .ability-card h3,
  .project-card h3 { margin: 10px 0; font-size: 18px; line-height: 1.35; }
  .timeline-card p,
  .ability-card p,
  .project-card p,
  .education-card p { font-size: 14.5px; line-height: 1.75; }
  .timeline-card:hover,
  .ability-card:hover,
  .project-card:hover { transform: none; }
  .line-icon { width: 36px; height: 36px; border-radius: var(--radius); }
  .project-card { padding: 0 0 18px; }
  .project-cover { min-height: 110px; font-size: 20px; }
  .project-card h3,
  .project-card p,
  .project-card a { margin-left: 18px; margin-right: 18px; }
  .project-card a { min-height: 44px; align-items: center; color: var(--primary); }
  .contact { padding: 46px 0; }
  .contact-grid { gap: 18px; text-align: left; }
  .footer { padding: 34px 0 22px; }
  .footer-grid { gap: 18px; padding-bottom: 24px; }
  .footer-grid > div { width: 100%; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .footer-grid > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .copyright { padding-top: 20px; text-align: left; font-size: 13px; }
}

@media (max-width: 390px) {
  .container { width: calc(100vw - 28px); }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 6px; }
  .hero-stats div { padding: 10px 6px; }
  .hero-stats strong { font-size: 18px; }
  .hero-stats span { font-size: 11.5px; }
  .profile-card { padding: 16px; }
  .avatar { width: 58px; height: 58px; font-size: 28px; }
}

@media (max-width: 340px) {
  .hero-actions,
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div:last-child { grid-column: auto; }
  .hero-stats div { display: flex; align-items: baseline; justify-content: space-between; padding: 11px 12px; }
}
