/* Responsive UX refinements */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,svg,video{display:block;max-width:100%;height:auto}
button,a{touch-action:manipulation}
.hero>* ,.section>* ,.about-grid>* ,.section-heading>* ,.timeline-item>* ,.education-item>*{min-width:0}

/* Keep words intact across all devices */
body,h1,h2,h3,h4,h5,h6,p,span,a,strong,em,li,button{word-break:normal;overflow-wrap:normal;hyphens:none}
.hero h1,.section-heading h2,.contact h2,.bento-card h3,.timeline-item h3,.education-item h3,.mini-card h3{word-break:keep-all;overflow-wrap:normal;hyphens:none}
.hero-intro,.lead,.mini-card p,.bento-card p,.skill p,.timeline-item p,.education-item p,.contact p{word-break:normal;overflow-wrap:break-word;hyphens:none}
.button,.header-cta,.floating-contact,.hero-stats span,.eyebrow,.hero-kicker,.brand{white-space:normal;word-break:keep-all;overflow-wrap:normal;hyphens:none}
.button,.header-cta,.floating-contact{min-height:44px}
.hero{min-height:100svh}

@media (min-width:1600px){
  .site-header{width:min(1380px,calc(100% - 48px))}
  .hero,.section{padding-left:max(8vw,80px);padding-right:max(8vw,80px)}
  .hero-content{max-width:780px}
  .hero-intro{font-size:1.16rem}
  .section-heading{max-width:1500px;margin-left:auto;margin-right:auto}
  .about-grid,.bento,.skills-grid,.timeline,.education-list{max-width:1500px;margin-left:auto;margin-right:auto}
}

@media (max-width:1100px){
  .site-header nav{gap:16px}
  .hero{grid-template-columns:1fr 1fr;padding-top:130px}
  .hero h1{font-size:clamp(3.8rem,8vw,6.4rem)}
  .hero-stats strong{font-size:clamp(2rem,4.8vw,3.5rem)}
  .section{padding-top:100px;padding-bottom:100px}
  .section-heading{grid-template-columns:.35fr 1.65fr;gap:4vw}
}

@media (max-width:950px){
  .site-header{width:calc(100% - 24px)}
  .site-header nav{display:none}
  .hero{grid-template-columns:1fr;grid-template-rows:auto auto auto auto;padding-top:130px;gap:30px}
  .hero-kicker{grid-column:auto}
  .hero-content{margin-top:2rem;max-width:760px}
  .hero-stats{width:100%;margin-top:10px}
  .hero-signature{position:static;justify-self:start;margin-top:0}
  .scroll-cue{display:none}
  .section-heading,.about-grid{grid-template-columns:1fr}
  .section-heading{gap:20px}
  .about-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bento{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bento-card.large{grid-row:auto;min-height:360px}
  .skills-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .timeline{max-width:none}
  .education-item{grid-template-columns:120px minmax(0,1fr)}
  .education-item p{grid-column:2}
}

@media (max-width:720px){
  .site-header{top:10px;padding:10px 11px 10px 15px}
  .brand{font-size:.78rem;max-width:55vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .header-cta{font-size:.74rem;padding:9px 12px;white-space:nowrap}
  .hero{padding:112px 20px 40px;display:block}
  .hero-kicker{margin-bottom:42px;line-height:1.5}
  .hero h1{font-size:clamp(2.9rem,14vw,5rem);line-height:.9}
  .hero-intro{font-size:.98rem;line-height:1.65;margin:22px 0}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr}
  .hero-actions .button{width:100%;padding-left:14px;padding-right:14px}
  .hero-stats{margin-top:34px;grid-template-columns:1fr}
  .hero-stats div{display:flex;align-items:center;justify-content:space-between;gap:20px;border-right:0;border-bottom:1px solid rgba(23,23,23,.35);padding:16px 4px}
  .hero-stats div:last-child{border-bottom:0}
  .hero-stats strong{font-size:2.35rem}
  .hero-stats span{text-align:right;max-width:60%}
  .hero-signature{margin-top:24px;font-size:.78rem}
  .thread-icon{width:40px;height:40px}
  .section{padding:82px 20px}
  .section-number{top:24px;right:20px}
  .section-heading{margin-bottom:40px}
  .section-heading h2{font-size:clamp(2rem,9.5vw,3.8rem);line-height:1}
  .lead{font-size:clamp(1.35rem,6vw,2rem)}
  .about-cards,.bento,.skills-grid{grid-template-columns:1fr}
  .bento-card,.bento-card.large{min-height:280px}
  .bento-card.wide{grid-column:auto}
  .bento-card h3,.timeline-item h3,.education-item h3{font-size:clamp(1.45rem,7vw,2.35rem);line-height:1.08}
  .skill{min-height:230px}
  .skill p{margin-top:100px}
  .timeline-item{grid-template-columns:minmax(0,1fr) 34px;gap:10px;padding:30px 0}
  .timeline-item .year,.timeline-item div{grid-column:1}
  .timeline-arrow{grid-column:2;grid-row:1/3}
  .education-item{grid-template-columns:1fr;gap:8px;padding:24px 0}
  .education-item p{grid-column:auto;margin:4px 0 0}
  .contact{margin:0 7px 7px;padding:72px 20px;border-radius:24px}
  .contact h2{font-size:clamp(2.1rem,10vw,4.4rem);line-height:1}
  .contact-actions{display:grid;grid-template-columns:1fr}
  .contact-actions .button{width:100%}
  footer{flex-direction:column;gap:8px;padding:26px 20px 90px}
  .floating-contact{right:14px;bottom:14px;padding:9px}
  .floating-contact span{display:none}
  .floating-contact strong{width:38px;height:38px}
}

@media (max-width:420px){
  .brand-dot{display:none}
  .brand{font-size:.72rem;max-width:48vw}
  .header-cta{font-size:.69rem;padding:8px 10px}
  .hero{padding-left:16px;padding-right:16px}
  .hero-actions{grid-template-columns:1fr}
  .hero h1{font-size:clamp(2.6rem,14vw,4.15rem)}
  .hero-intro{font-size:.92rem}
  .section{padding-left:16px;padding-right:16px}
  .section-number{right:16px}
  .mini-card,.bento-card,.skill{padding-left:20px;padding-right:20px}
  .contact{padding-left:17px;padding-right:17px}
}

@media (max-width:340px){
  .site-header{width:calc(100% - 12px)}
  .brand{max-width:44vw}
  .header-cta{padding:7px 8px}
  .hero h1{font-size:2.35rem}
  .hero-kicker{font-size:.64rem;letter-spacing:.11em}
  .button{font-size:.76rem}
  .section-heading h2,.contact h2{font-size:1.95rem}
  .bento-card h3,.timeline-item h3,.education-item h3{font-size:1.4rem}
}

@media (max-height:650px) and (min-width:721px){
  .hero{min-height:auto;padding-top:120px;padding-bottom:42px}
  .hero h1{font-size:clamp(3.4rem,7vw,5.8rem)}
  .hero-intro{margin:18px 0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .reveal{opacity:1;transform:none}
}
