*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  background:#fff;color:#1d1d1f;font-family:-apple-system,BlinkMacSystemFont,'Inter','Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  overflow-x:hidden;}
img{max-width:100%;}
:root{--accent:#a3250f;}

.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:#1d1d1f;color:#fff;padding:12px 20px;
  border-radius:0 0 8px 0;font-size:14px;font-weight:500;text-decoration:none;}
.skip-link:focus{left:0;}

@keyframes cueBounce{0%,100%{transform:translateY(0);opacity:.45;}50%{transform:translateY(7px);opacity:.9;}}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  [data-cue]{animation:none !important;}
}
::selection{background:rgba(81,90,102,0.18);}

[data-reveal]{opacity:0;transform:translateY(16px);transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1);}
[data-reveal].is-visible{opacity:1;transform:none;}
@media (prefers-reduced-motion: reduce){
  [data-reveal]{opacity:1;transform:none;transition:none;}
}

nav{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;align-items:center;justify-content:space-between;
  padding:13px clamp(16px,4vw,42px);background:rgba(255,255,255,0);border-bottom:1px solid transparent;
  transition:background .35s ease,border-color .35s ease,backdrop-filter .35s ease;}
nav.scrolled{background:rgba(255,255,255,0.72);border-bottom-color:rgba(0,0,0,0.08);
  -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);}
.brand{font-size:15px;font-weight:600;letter-spacing:-0.015em;color:#1d1d1f;text-decoration:none;}
.navlinks{display:flex;gap:clamp(15px,3vw,32px);align-items:center;}
.navlink{font-size:13px;font-weight:500;letter-spacing:-0.01em;color:#1d1d1f;opacity:.6;text-decoration:none;
  padding-bottom:3px;border-bottom:1px solid transparent;transition:opacity .25s ease,border-color .25s ease,color .25s ease;}
.navlink.active{opacity:1;border-bottom-color:var(--accent);}

.hero{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  padding:120px clamp(20px,5vw,40px) 80px;position:relative;}
.hero-photo{display:block;width:124px;height:124px;margin-bottom:clamp(26px,4.5vh,40px);
  box-shadow:0 8px 30px rgba(0,0,0,0.10);border-radius:50%;object-fit:cover;}
.hero-eyebrow{font-size:13px;font-weight:500;letter-spacing:0.06em;text-transform:uppercase;color:#86868b;
  margin-bottom:clamp(20px,4vh,34px);}
.hero-title{margin:0;font-weight:600;letter-spacing:-0.045em;line-height:0.92;font-size:clamp(3.1rem,13vw,9.5rem);color:#1d1d1f;}
.hero-lead{max-width:600px;margin:clamp(28px,5vh,44px) auto 0;font-size:clamp(1.05rem,2.3vw,1.4rem);font-weight:400;
  line-height:1.5;color:#1d1d1f;opacity:.78;}
.hero-cue{position:absolute;bottom:34px;left:50%;margin-left:-12px;width:24px;height:24px;display:flex;
  align-items:center;justify-content:center;text-decoration:none;animation:cueBounce 2.6s ease-in-out infinite;}
.hero-cue span{display:block;width:11px;height:11px;border-right:1.5px solid #86868b;border-bottom:1.5px solid #86868b;
  transform:rotate(45deg);}

.hairline{max-width:1000px;margin:0 auto;height:1px;background:linear-gradient(90deg,transparent,rgba(0,0,0,0.13),transparent);}

.section{max-width:1000px;margin:0 auto;padding:clamp(80px,13vh,150px) clamp(20px,5vw,40px);}
.section--work{max-width:1100px;}
.section--contact{max-width:1000px;padding:clamp(90px,15vh,170px) clamp(20px,5vw,40px) clamp(70px,10vh,110px);text-align:center;}

.eyebrow{font-size:13px;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;color:var(--accent);}

.about-lead{margin:0 0 clamp(20px,3vh,30px);max-width:820px;font-size:clamp(1.4rem,3.4vw,2.15rem);font-weight:500;
  line-height:1.32;letter-spacing:-0.02em;color:#1d1d1f;}
.about-text{margin:0 0 clamp(16px,2.4vh,24px);max-width:720px;font-size:clamp(1.05rem,2.1vw,1.3rem);font-weight:400;
  line-height:1.6;color:#1d1d1f;opacity:.72;}
.about-text:last-child{margin-bottom:0;}

.section-title{margin:0;font-size:clamp(2rem,5vw,3.2rem);font-weight:600;letter-spacing:-0.03em;line-height:1.05;color:#1d1d1f;}

.skills-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:clamp(28px,4vw,56px);}
.skill-rule{height:1px;background:rgba(0,0,0,0.14);margin-bottom:22px;}
.skill-index{font-size:13px;font-weight:600;color:#86868b;margin-bottom:14px;}
.skill-title{margin:0 0 14px;font-size:clamp(1.3rem,2.4vw,1.6rem);font-weight:600;letter-spacing:-0.02em;color:#1d1d1f;}
.skill-desc{margin:0;font-size:1.0rem;line-height:1.6;color:#1d1d1f;opacity:.66;}

.work-sub{margin:14px 0 0;max-width:640px;font-size:1.05rem;line-height:1.6;color:#1d1d1f;opacity:.6;}
.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:clamp(20px,2.4vw,30px);}

.project-card{cursor:pointer;background:#f5f5f7;border:1px solid rgba(0,0,0,0.04);border-radius:20px;
  padding:clamp(26px,3vw,36px);display:flex;flex-direction:column;min-height:280px;
  transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s cubic-bezier(.16,1,.3,1),background .35s ease;}
.project-card:hover{transform:translateY(-3px);box-shadow:0 20px 50px rgba(0,0,0,0.10);background:#f0f0f3;}
.project-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
.project-category{font-size:12px;margin-bottom:20px;}
.project-title{margin:0 0 14px;font-size:clamp(1.25rem,2.1vw,1.5rem);font-weight:600;letter-spacing:-0.02em;line-height:1.18;color:#1d1d1f;}
.project-teaser{margin:0 0 26px;font-size:0.98rem;line-height:1.55;color:#1d1d1f;opacity:.64;}
.project-cta{margin-top:auto;display:flex;align-items:center;gap:7px;font-size:14px;font-weight:500;color:var(--accent);}

.contact-title{margin:0 auto clamp(36px,6vh,52px);max-width:640px;font-size:clamp(1.9rem,4.6vw,3rem);font-weight:600;
  letter-spacing:-0.03em;line-height:1.12;color:#1d1d1f;}
.contact-email{display:inline-block;font-size:clamp(1.4rem,3.5vw,2.1rem);font-weight:500;letter-spacing:-0.02em;
  color:#1d1d1f;text-decoration:none;border-bottom:1px solid rgba(0,0,0,0.18);padding-bottom:4px;
  transition:border-color .25s ease;}
.contact-email:hover{border-color:var(--accent);}
.contact-meta{margin-top:clamp(34px,5vh,46px);display:flex;gap:24px;align-items:center;justify-content:center;flex-wrap:wrap;}
.contact-phone{font-size:14px;font-weight:500;color:#1d1d1f;opacity:.6;}

.footer-link{font-size:14px;font-weight:500;color:#1d1d1f;opacity:.6;text-decoration:none;transition:opacity .25s ease;}
.footer-link:hover{opacity:1;}
.footer-dot{width:3px;height:3px;border-radius:50%;background:#c7c7cc;}

.site-footer{border-top:1px solid rgba(0,0,0,0.07);padding:26px clamp(20px,5vw,40px);text-align:center;}
.site-footer p{margin:0;font-size:12px;color:#86868b;}

.modal-overlay{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;
  padding:24px;background:rgba(0,0,0,0.28);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);}
.modal-overlay.open{display:flex;}
.modal-card{position:relative;background:#fff;border-radius:22px;max-width:640px;width:100%;max-height:86vh;
  overflow-y:auto;padding:clamp(30px,4.5vw,52px);box-shadow:0 30px 90px rgba(0,0,0,0.24);}
.modal-close{position:absolute;top:18px;right:18px;width:34px;height:34px;border:none;border-radius:50%;
  background:#f0f0f3;color:#6e6e73;font-size:19px;line-height:1;cursor:pointer;display:flex;align-items:center;
  justify-content:center;transition:background .2s ease;}
.modal-close:hover{background:#e5e5ea;}
.modal-category{font-size:12px;margin-bottom:14px;}
.modal-title{margin:0 0 30px;font-size:clamp(1.4rem,3.2vw,1.95rem);font-weight:600;letter-spacing:-0.025em;
  line-height:1.16;color:#1d1d1f;padding-right:30px;}
.modal-block{margin-bottom:26px;}
.modal-label{font-size:12px;font-weight:600;letter-spacing:0.03em;text-transform:uppercase;color:#86868b;margin-bottom:10px;}
.modal-block p{margin:0;font-size:1.0rem;line-height:1.62;color:#1d1d1f;opacity:.78;}
.modal-block p+p{margin-top:14px;}
.modal-block strong{font-weight:600;color:#1d1d1f;opacity:1;}
.modal-skills{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:32px;}
.modal-skill{font-size:13px;font-weight:500;color:#1d1d1f;background:#f0f0f3;border-radius:100px;padding:7px 14px;}
.modal-cta{display:inline-flex;align-items:center;gap:8px;background:#1d1d1f;color:#fff;text-decoration:none;
  font-size:14px;font-weight:500;padding:12px 22px;border-radius:100px;transition:opacity .2s ease;}
.modal-cta:hover{opacity:.85;}
