*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:16px;
  background:#fafafa;color:#1a1a2e;overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  opacity:0;animation:pageIn .6s ease .1s forwards;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

@keyframes pageIn{to{opacity:1}}

:root{
  --accent:#2563eb;
  --accent-light:rgba(37,99,235,.08);
  --text:#1a1a2e;
  --text-muted:#64748b;
  --bg:#fafafa;
  --card-bg:#fff;
  --radius:1.25rem;
  --radius-sm:.75rem;
}

/* ---- nav ---- */
nav{
  position:fixed;top:0;width:100%;z-index:100;
  padding:1.25rem 0;
  transition:background .4s,padding .4s,box-shadow .4s;
}
nav.scrolled{
  background:rgba(250,250,250,.82);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  padding:.75rem 0;
  box-shadow:0 1px 0 rgba(0,0,0,.04);
}
.nav-inner{
  max-width:80rem;margin:0 auto;padding:0 2rem;
  display:flex;align-items:center;justify-content:space-between;
}
.logo{display:flex;align-items:center;gap:.625rem}
.logo-mark{
  display:flex;align-items:center;justify-content:center;
  width:2.25rem;height:1.5rem;border-radius:.5rem;
  background:var(--accent);color:#fff;font-size:.8125rem;font-weight:700;
  letter-spacing:-.02em;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1);
}
.logo-mark:hover{transform:rotate(-8deg) scale(1.08)}
.online-dot{
  width:6px;height:6px;border-radius:50%;background:#22c55e;
  box-shadow:0 0 6px rgba(34,197,94,.5);
  animation:pulse 2.5s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}}
.nav-links{display:flex;gap:2.5rem;font-size:.875rem;font-weight:500}
.nav-links a{opacity:.65;transition:opacity .3s}
.nav-links a:hover{opacity:1}
.nav-links a[aria-current]{opacity:1}

/* ---- hero ---- */
.hero{
  min-height:100vh;display:flex;align-items:center;
  position:relative;overflow:hidden;
}
.hero::before{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(circle,rgba(0,0,0,.06) 1px,transparent 1px);
  background-size:24px 24px;
  pointer-events:none;
}
.hero-bg{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.hero-bg span{position:absolute;border-radius:50%;will-change:transform}
.hero-bg span:nth-child(1){
  width:32rem;height:32rem;background:linear-gradient(135deg,#2563eb,#1d4ed8);
  filter:blur(80px);opacity:.18;top:-10%;right:-5%;
  animation:drift1 18s ease-in-out infinite alternate;
}
.hero-bg span:nth-child(2){
  width:24rem;height:24rem;background:linear-gradient(135deg,#06b6d4,#0891b2);
  filter:blur(80px);opacity:.15;bottom:-8%;left:-5%;
  animation:drift2 22s ease-in-out infinite alternate;
}
@keyframes drift1{
  0%{transform:translate(0,0)}
  100%{transform:translate(-40px,30px)}
}
@keyframes drift2{
  0%{transform:translate(0,0)}
  100%{transform:translate(30px,-25px)}
}
.cursor-glow{
  position:fixed;width:400px;height:400px;border-radius:50%;
  background:radial-gradient(circle,rgba(37,99,235,.07) 0%,transparent 70%);
  pointer-events:none;z-index:0;
  transform:translate(-50%,-50%);
  transition:left .15s ease-out,top .15s ease-out;
  opacity:0;
}
.cursor-glow.active{opacity:1}
.hero-inner{
  max-width:80rem;margin:0 auto;padding:6rem 2rem 0;width:100%;position:relative;z-index:1;
}
.hero h1{
  font-size:clamp(2.75rem,7vw,5rem);
  font-weight:700;line-height:1.05;letter-spacing:-.035em;
  margin-bottom:1rem;
  opacity:0;animation:heroIn .8s cubic-bezier(.16,1,.3,1) .25s forwards;
}
.hero h1 em{
  font-style:normal;
  background:linear-gradient(135deg,#2563eb,#06b6d4,#8b5cf6);
  background-size:200% 100%;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:shimmer 4s ease-in-out infinite;
}
@keyframes shimmer{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
.hero-sub{
  font-size:clamp(1.05rem,1.5vw,1.25rem);
  color:var(--text-muted);line-height:1.7;max-width:32rem;
  min-height:2.2em;
  opacity:0;animation:heroIn .8s cubic-bezier(.16,1,.3,1) .5s forwards;
}
.hero-sub .cursor{
  display:inline-block;width:2px;height:1.2em;
  background:var(--accent);vertical-align:text-bottom;margin-left:2px;
  animation:blink .8s step-end infinite;
}
.hero-sub .ellipsis{
  font-style:normal;font-weight:400;color:var(--accent);
  display:none;
}
@keyframes blink{50%{opacity:0}}
@keyframes heroIn{
  from{opacity:0;transform:translateY(1.5rem)}
  to{opacity:1;transform:translateY(0)}
}

.hero-actions{
  display:flex;gap:1rem;margin-top:2.5rem;flex-wrap:wrap;
  opacity:0;animation:heroIn .8s cubic-bezier(.16,1,.3,1) .75s forwards;
}
.btn{
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.75rem 2rem;border-radius:var(--radius-sm);
  font-weight:600;font-size:.9375rem;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s,background .3s;
  cursor:pointer;border:none;position:relative;overflow:hidden;
}
.btn:active{transform:scale(.92)!important}
.btn-primary{
  background:var(--accent);color:#fff;box-shadow:0 4px 16px rgba(37,99,235,.25);
}
.btn-primary:hover{box-shadow:0 8px 32px rgba(37,99,235,.35);transform:translateY(-3px)}
.btn-ghost{background:transparent;color:var(--text);border:1px solid rgba(0,0,0,.08)}
.btn-ghost:hover{background:rgba(0,0,0,.03);transform:translateY(-3px)}
.hero-poem{
  margin-top:3rem;text-align:center;
  font-size:clamp(1rem,1.4vw,1.2rem);
  color:var(--text-muted);font-style:italic;
  letter-spacing:.02em;line-height:1.8;
  min-height:1.8em;
}
.daily-poem{
  margin-top:3rem;text-align:center;
  font-size:clamp(1.15rem,1.6vw,1.35rem);
  color:var(--text-muted);font-style:italic;
  letter-spacing:.02em;line-height:1.8;
  cursor:pointer;
  transition:opacity .3s;
}
.daily-poem:hover{opacity:.7}

/* ---- scroll indicator ---- */
.scroll-indicator{
  position:absolute;bottom:2.5rem;left:50%;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:.5rem;
  font-size:.75rem;color:var(--text-muted);letter-spacing:.08em;
  text-transform:uppercase;
  opacity:0;animation:heroIn .6s ease 1.8s forwards;
}
.scroll-indicator .mouse{
  width:1.25rem;height:2rem;border-radius:999px;
  border:2px solid var(--text-muted);position:relative;
}
.scroll-indicator .mouse::after{
  content:'';position:absolute;top:.35rem;left:50%;transform:translateX(-50%);
  width:3px;height:6px;border-radius:999px;background:var(--text-muted);
  animation:scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot{
  0%,100%{transform:translateX(-50%) translateY(0);opacity:1}
  50%{transform:translateX(-50%) translateY(10px);opacity:.3}
}

/* ---- sections ---- */
section{padding:clamp(4rem,8vw,8rem) 0}
.section-inner{max-width:80rem;margin:0 auto;padding:0 2rem}
.section-header{margin-bottom:3rem}
.section-title{
  font-size:clamp(1.75rem,3.5vw,2.75rem);
  font-weight:600;letter-spacing:-.025em;
}
.section-sub{
  font-size:1.05rem;color:var(--text-muted);
  max-width:28rem;line-height:1.7;margin-top:.75rem;
}

/* ---- about ---- */
#about{background:#fff}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:5rem;align-items:start}
.about-text{display:flex;flex-direction:column;min-height:28rem}
.about-text p{font-size:1.125rem;line-height:2;color:var(--text-muted);margin-bottom:1rem}
.about-quote{
  font-size:1.125rem;font-style:italic;
  border-left:3px solid var(--accent);padding-left:1.5rem;margin-top:1.5rem;
  color:var(--text);opacity:.65;line-height:2;
}
.about-typewriter{
  margin-top:auto;padding-top:2rem;
  font-size:1.25rem;font-style:italic;
  color:var(--text-muted);line-height:2;
  letter-spacing:.02em;
  min-height:1.8em;
}
.about-card{
  background:var(--card-bg);border-radius:var(--radius);
  padding:3rem;text-align:center;
  box-shadow:0 1px 3px rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.04);
  transition:transform .4s cubic-bezier(.34,1.56,.64,1),box-shadow .4s;
}
.about-card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 60px rgba(0,0,0,.06);
}
.about-card img{
  width:12rem;height:12rem;border-radius:1rem;object-fit:cover;
  margin:0 auto;box-shadow:0 12px 40px rgba(0,0,0,.06);
}
.about-card .role{color:var(--accent);margin-top:1.5rem;font-size:.9375rem}

/* ---- connect ---- */
#connect{background:#f5f8ff}
.connect-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:.75rem;
  margin-top:3rem;
  max-width:52rem;
  margin-left:auto;margin-right:auto;
}
.connect-card{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.75rem;
  padding:2rem 1rem;
  border-radius:var(--radius);
  background:var(--card-bg);
  border:1px solid rgba(0,0,0,.04);
  text-decoration:none;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s,border-color .3s;
}
.connect-card:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 48px rgba(37,99,235,.12);
  border-color:rgba(37,99,235,.2);
}
.connect-card .logo{
  width:3.5rem;height:3.5rem;border-radius:1rem;
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:var(--accent-light);
  transition:transform .3s cubic-bezier(.34,1.56,.64,1);
}
.connect-card:hover .logo{transform:scale(1.08)}
.connect-card .logo img{width:100%;height:100%;object-fit:cover}
.connect-card .name{
  font-weight:600;font-size:.9375rem;color:var(--text);
  text-align:center;
}
.connect-card .handle{
  font-size:.8125rem;color:var(--text-muted);
  text-align:center;margin-top:-.25rem;
}
.connect-card .arrow{
  font-size:.625rem;color:var(--text-muted);
  opacity:0;transform:translateY(-4px);
  transition:opacity .3s,transform .3s;
}
.connect-card:hover .arrow{opacity:.6;transform:translateY(0)}

/* ---- footer ---- */
footer{
  padding:3.5rem 2rem;text-align:center;font-size:.8125rem;
  color:var(--text-muted);border-top:1px solid rgba(0,0,0,.04);
  background:var(--card-bg);
}
footer p{margin-bottom:.5rem}

/* ---- back to top ---- */
.back-to-top{
  position:fixed;right:1.5rem;bottom:2rem;
  width:2.75rem;height:2.75rem;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--card-bg);border:1px solid rgba(0,0,0,.08);
  color:var(--text-muted);font-size:.875rem;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
  opacity:0;pointer-events:none;
  transform:translateY(8px);
  transition:opacity .3s,transform .3s,background .3s,color .3s,box-shadow .3s;
  z-index:90;
}
.back-to-top.visible{opacity:1;pointer-events:auto;transform:translateY(0)}
.back-to-top:hover{
  background:var(--accent);color:#fff;
  border-color:var(--accent);
  box-shadow:0 4px 20px rgba(37,99,235,.25);
}

/* ---- reveal ---- */
.reveal{
  opacity:0;transform:translateY(1.5rem);
  transition:opacity .65s cubic-bezier(.16,1,.3,1),transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible{opacity:1;transform:translateY(0)}
.reveal-d1{transition-delay:.1s}
.reveal-d2{transition-delay:.2s}
.reveal-d3{transition-delay:.32s}
.reveal-d4{transition-delay:.44s}

/* ---- responsive ---- */
@media(max-width:768px){
  .about-grid{grid-template-columns:1fr;gap:2rem}
  .nav-links{display:none}
  .connect-grid{grid-template-columns:repeat(2,1fr)}
  .hero::before{opacity:.4}
}
@media(max-width:480px){
  .connect-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  .reveal{opacity:1;transform:none}
  body{opacity:1}
}
