/* ================================================================
   KAVYA CHATURVEDI — PORTFOLIO v10
   Editorial Magazine · Warm Linen · Asymmetric Grid
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Warm linen palette */
  --linen:     #f2ece0;
  --linen-2:   #e9e1d2;
  --linen-3:   #dfd5c3;
  --paper:     #faf7f1;
  --paper-2:   #f5f0e6;
  --ink:       #1a1510;
  --ink-2:     #2c2418;
  --ink-3:     #3d3224;
  --muted:     #6b5f4e;
  --muted-2:   #9a8e7e;
  --muted-3:   #c4b9a8;
  --rule:      #d8cfc0;
  --rule-2:    #c5baa8;

  /* Terracotta accent */
  --terra:     #b85c2c;
  --terra-2:   #d06a34;
  --terra-bg:  rgba(184,92,44,0.08);
  --terra-line:rgba(184,92,44,0.22);

  /* Sage green — secondary accent */
  --sage:      #5a7a5e;
  --sage-bg:   rgba(90,122,94,0.08);
  --sage-line: rgba(90,122,94,0.22);

  /* Denim blue — tertiary */
  --denim:     #2c4a7c;
  --denim-bg:  rgba(44,74,124,0.07);
  --denim-line:rgba(44,74,124,0.2);

  --ff: 'DM Sans', sans-serif;
  --fh: 'Playfair Display', serif;
  --fm: 'DM Mono', monospace;
  --r: 8px; --r-lg: 14px; --r-xl: 20px;
  --ease: cubic-bezier(0.16,1,0.3,1);
  --nav-h: 60px;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  background:var(--linen);
  color:var(--ink);
  font-family:var(--ff);
  font-size:15px; line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  cursor:none;
}
a { text-decoration:none; color:inherit; }
img { display:block; max-width:100%; }
ul { list-style:none; }
button,input,textarea { font-family:var(--ff); }
::-webkit-scrollbar { width:3px; }
::-webkit-scrollbar-track { background:var(--linen); }
::-webkit-scrollbar-thumb { background:var(--muted-3); border-radius:2px; }
::selection { background:var(--terra-bg); color:var(--terra); }

/* ================================================================
   CUSTOM CURSOR — minimal dot + trailing circle
================================================================ */
#c1 { position:fixed; width:6px; height:6px; background:var(--ink); border-radius:50%; pointer-events:none; z-index:99999; transform:translate(-50%,-50%); transition:background .15s, width .18s, height .18s; will-change:left,top; }
#c2 { position:fixed; width:28px; height:28px; border:1.5px solid rgba(26,21,16,0.25); border-radius:50%; pointer-events:none; z-index:99998; transform:translate(-50%,-50%); transition:width .3s var(--ease), height .3s var(--ease), border-color .2s, opacity .2s; opacity:0.6; will-change:left,top; }
body.cl #c1 { background:var(--terra); width:9px; height:9px; }
body.cl #c2 { border-color:rgba(184,92,44,0.35); width:38px; height:38px; opacity:1; }
body.ct #c1 { background:var(--muted-2); width:4px; height:4px; }
body.cd #c1 { transform:translate(-50%,-50%) scale(0.7); background:var(--terra); }

/* ================================================================
   NAV — newspaper masthead style
================================================================ */
.nav {
  position:fixed; top:0; left:0; right:0; z-index:500;
  background:rgba(242,236,224,0.92);
  backdrop-filter:blur(20px) saturate(180%);
  border-bottom:2px solid var(--ink);
}
.nav__top {
  display:flex; align-items:center; justify-content:space-between;
  padding:0 5%;
  height:var(--nav-h);
}

/* Terminal logo */
.nav__logo {
  display:flex; align-items:center;
  cursor:none;
}
.nav__logo-terminal {
  background:var(--ink);
  border-radius:8px;
  padding:6px 13px 7px;
  display:flex; flex-direction:column; gap:2px;
  line-height:1;
}
.nav__logo-prompt {
  font-size:8.5px; font-weight:500;
  color:var(--terra); letter-spacing:0.08em;
  font-family:var(--fm);
}
.nav__logo-name {
  font-family:'Playfair Display', serif;
  font-size:16px; font-weight:700;
  color:var(--paper); letter-spacing:-0.02em;
  display:flex; align-items:center; gap:2px;
}
.nav__logo-cursor {
  display:inline-block; width:2px; height:12px;
  background:var(--terra); vertical-align:middle;
  animation:blink 1s steps(1) infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.nav__links {
  display:flex; align-items:center; gap:0.15rem;
}
.nav__link {
  font-size:0.78rem; font-weight:500;
  color:var(--muted); padding:0.38rem 0.75rem;
  border-radius:6px; transition:all .15s; cursor:none;
  letter-spacing:0.01em;
}
.nav__link:hover, .nav__link.active { color:var(--ink); background:var(--linen-2); }

.nav__actions { display:flex; align-items:center; gap:0.55rem; }

.nav__icon {
  width:34px; height:34px; border-radius:7px;
  background:var(--paper); border:1px solid var(--rule);
  display:flex; align-items:center; justify-content:center;
  color:var(--muted); font-size:1rem; transition:all .18s; cursor:none;
}
.nav__icon:hover { background:var(--linen-2); color:var(--ink); border-color:var(--rule-2); }

.nav__resume {
  height:34px; padding:0 1rem;
  background:var(--terra); color:var(--paper);
  border-radius:7px; font-size:0.78rem; font-weight:600;
  display:flex; align-items:center; gap:0.4rem;
  transition:all .18s; cursor:none; border:none;
  letter-spacing:0.02em;
}
.nav__resume:hover { background:var(--terra-2); transform:translateY(-1px); box-shadow:0 4px 16px rgba(184,92,44,0.3); }
.nav__resume .material-icons-round { font-size:0.9rem; }

.nav__hire {
  height:34px; padding:0 1rem;
  background:var(--ink); color:var(--paper);
  border-radius:7px; font-size:0.78rem; font-weight:600;
  display:flex; align-items:center; gap:0.4rem;
  transition:all .18s; cursor:none; border:none;
}
.nav__hire:hover { background:var(--ink-2); transform:translateY(-1px); }
.nav__hire .material-icons-round { font-size:0.9rem; }

/* ================================================================
   MOBILE
================================================================ */
.topbar {
  display:none; position:fixed; top:0; left:0; right:0; z-index:600;
  height:54px; background:rgba(242,236,224,0.95);
  backdrop-filter:blur(20px); border-bottom:2px solid var(--ink);
  align-items:center; justify-content:space-between; padding:0 1.1rem;
}
.mob-btn {
  display:none !important; width:34px; height:34px; border-radius:7px;
  background:var(--paper); border:1px solid var(--rule);
  align-items:center; justify-content:center; color:var(--muted); cursor:none;
}
.mobile-drawer {
  position:fixed; top:54px; left:0; right:0; bottom:0;
  background:rgba(242,236,224,0.98); backdrop-filter:blur(20px);
  z-index:500; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:0.25rem;
  transform:translateY(-100%); opacity:0;
  transition:transform .35s var(--ease), opacity .35s;
  pointer-events:none;
}
.mobile-drawer.open { transform:none; opacity:1; pointer-events:all; }
.mdlink {
  font-family:var(--fh); font-size:2rem; font-weight:700;
  color:var(--ink); padding:0.4rem 2rem; border-radius:10px;
  transition:all .15s; cursor:none; font-style:italic;
}
.mdlink:hover { background:var(--linen-2); color:var(--terra); }

/* ================================================================
   HERO — editorial front page
================================================================ */
#hero {
  padding-top:var(--nav-h);
  min-height:100vh;
  background:var(--paper);
  border-bottom:2px solid var(--ink);
  display:flex; flex-direction:column;
}

.hero-masthead {
  border-bottom:1px solid var(--rule);
  padding:1rem 5%;
  display:flex; align-items:center; justify-content:space-between;
}
.hero-masthead-date {
  font-family:var(--fm); font-size:0.65rem;
  color:var(--muted-2); letter-spacing:0.1em; text-transform:uppercase;
}
.hero-masthead-tag {
  font-family:var(--fm); font-size:0.65rem;
  color:var(--terra); letter-spacing:0.1em; text-transform:uppercase;
  display:flex; align-items:center; gap:0.4rem;
}
.hero-masthead-dot { width:5px; height:5px; border-radius:50%; background:var(--terra); animation:pulse 2.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.35;transform:scale(0.7)} }

/* Two-column editorial layout */
.hero-body {
  flex:1; display:grid;
  grid-template-columns:1fr 1fr;
  max-width:1400px; margin:0 auto; width:100%;
}

.hero-left {
  padding:3.5rem 5% 3rem;
  border-right:1px solid var(--rule);
  display:flex; flex-direction:column; justify-content:space-between;
}

.hero-kicker {
  font-family:var(--fm); font-size:0.7rem; font-weight:500;
  color:var(--terra); letter-spacing:0.14em; text-transform:uppercase;
  margin-bottom:1rem;
  display:flex; align-items:center; gap:0.5rem;
}
.hero-kicker::before { content:''; width:18px; height:1.5px; background:var(--terra); }

.hero-headline {
  font-family:var(--fh);
  font-size:clamp(3rem, 6vw, 5.5rem);
  font-weight:900; letter-spacing:-0.04em; line-height:0.92;
  color:var(--ink); margin-bottom:1.25rem;
}
.hero-headline .italic { font-style:italic; color:var(--terra); font-weight:400; }

.hero-role {
  font-family:var(--fm); font-size:0.8rem; color:var(--muted);
  margin-bottom:1.5rem;
  display:flex; align-items:center; gap:0.6rem; flex-wrap:wrap;
}
.typed-val { color:var(--ink-2); min-width:185px; display:inline-block; }
.cblink { display:inline-block; width:2px; height:0.85em; background:var(--terra); vertical-align:middle; animation:blink 1s steps(1) infinite; }

.hero-deck {
  font-size:1rem; color:var(--muted); line-height:1.82;
  max-width:480px; margin-bottom:2rem;
}
.hero-deck strong { color:var(--ink-2); font-weight:600; }

.hero-actions { display:flex; gap:0.65rem; flex-wrap:wrap; margin-bottom:2.5rem; }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; gap:0.4rem;
  font-family:var(--ff); font-weight:600; cursor:none;
  border-radius:7px; transition:all .18s var(--ease); white-space:nowrap; border:none;
}
.btn-primary {
  height:42px; padding:0 1.3rem; font-size:0.84rem;
  background:var(--ink); color:var(--paper);
}
.btn-primary:hover { background:var(--terra); transform:translateY(-1px); box-shadow:0 4px 18px rgba(184,92,44,0.28); }
.btn-secondary {
  height:42px; padding:0 1.2rem; font-size:0.84rem;
  background:transparent; color:var(--muted);
  border:1.5px solid var(--rule);
}
.btn-secondary:hover { border-color:var(--rule-2); color:var(--ink); background:var(--linen-2); transform:translateY(-1px); }
.btn-terra {
  height:42px; padding:0 1.3rem; font-size:0.84rem;
  background:var(--terra); color:var(--paper);
}
.btn-terra:hover { background:var(--terra-2); transform:translateY(-1px); box-shadow:0 4px 18px rgba(184,92,44,0.28); }

/* Stat strip */
.hero-stats {
  display:flex; gap:0;
  border:1.5px solid var(--ink); border-radius:var(--r-lg);
  overflow:hidden; background:var(--paper);
}
.hstat { flex:1; padding:1rem 1.1rem; border-right:1px solid var(--rule); transition:background .15s; }
.hstat:last-child { border-right:none; }
.hstat:hover { background:var(--linen-2); }
.hstat-val { font-family:var(--fh); font-size:1.7rem; font-weight:900; color:var(--ink); letter-spacing:-0.04em; line-height:1; }
.hstat-val sup { font-size:0.8rem; color:var(--terra); font-weight:500; }
.hstat-lbl { font-size:0.58rem; color:var(--muted-2); text-transform:uppercase; letter-spacing:0.1em; margin-top:0.2rem; }

/* Hero right — profile column */
.hero-right {
  padding:3.5rem 5% 3rem;
  display:flex; flex-direction:column; gap:2rem;
}

.hero-byline {
  display:flex; align-items:center; gap:1rem;
  padding-bottom:1.5rem; border-bottom:1px solid var(--rule);
}
.hero-avatar {
  width:64px; height:64px; border-radius:12px;
  background:var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--fh); font-size:1.5rem; font-weight:900;
  color:var(--paper); flex-shrink:0;
}
.hero-byline-name { font-family:var(--fh); font-size:1rem; font-weight:700; color:var(--ink); }
.hero-byline-role { font-size:0.72rem; color:var(--muted-2); margin-top:0.1rem; font-family:var(--fm); }
.hero-byline-status {
  display:inline-flex; align-items:center; gap:0.4rem;
  font-size:0.65rem; font-weight:600; color:var(--sage);
  background:var(--sage-bg); border:1px solid var(--sage-line);
  border-radius:100px; padding:0.2rem 0.7rem; margin-top:0.4rem;
}
.sdot { width:5px; height:5px; border-radius:50%; background:var(--sage); animation:pulse 2.5s infinite; }

.hero-info-grid { display:flex; flex-direction:column; gap:0; }
.hero-info-row {
  display:flex; align-items:center; gap:0.7rem;
  padding:0.6rem 0; border-bottom:1px solid var(--rule);
  font-size:0.8rem; color:var(--muted);
}
.hero-info-row:last-child { border-bottom:none; }
.hero-info-row .material-icons-round { font-size:0.9rem; color:var(--terra); flex-shrink:0; }

/* Social row */
.hero-social { display:flex; gap:0.5rem; flex-wrap:wrap; }
.soc-btn {
  display:flex; align-items:center; gap:0.4rem;
  height:32px; padding:0 0.85rem;
  background:var(--paper); border:1.5px solid var(--rule);
  border-radius:7px; font-size:0.7rem; font-weight:600;
  color:var(--muted); transition:all .15s; cursor:none;
  letter-spacing:0.03em;
}
.soc-btn:hover { background:var(--linen-2); color:var(--ink); border-color:var(--rule-2); }
.soc-btn i { font-size:0.95rem; }

/* ================================================================
   SECTION SHARED
================================================================ */
section { padding:5.5rem 5%; border-bottom:1px solid var(--rule); }
section:last-of-type { border-bottom:none; }
.sec-inner { max-width:1200px; margin:0 auto; }

.sec-rule { display:flex; align-items:center; gap:1rem; margin-bottom:1rem; }
.sec-rule-line { flex:1; height:2px; background:var(--ink); }
.sec-rule-label {
  font-family:var(--fm); font-size:0.62rem; font-weight:500;
  letter-spacing:0.18em; text-transform:uppercase; color:var(--ink);
  white-space:nowrap;
}
.sec-rule-line-thin { flex:1; height:1px; background:var(--rule); }

.sec-title {
  font-family:var(--fh); font-size:clamp(2rem,4vw,3rem);
  font-weight:900; letter-spacing:-0.03em; line-height:1.05; color:var(--ink);
}
.sec-title em { font-style:italic; font-weight:400; color:var(--terra); }
.sec-sub { font-size:0.9rem; color:var(--muted); max-width:460px; margin-top:0.6rem; line-height:1.8; }

/* ================================================================
   ABOUT — two column pull quote layout
================================================================ */
#about { background:var(--paper-2); }
.about-grid { display:grid; grid-template-columns:1fr 2fr; gap:5rem; align-items:start; }
.about-pullquote {
  font-family:var(--fh); font-size:2.2rem; font-weight:400;
  font-style:italic; line-height:1.3; color:var(--ink);
  border-left:4px solid var(--terra); padding-left:1.5rem;
  margin-top:1.5rem;
}
.about-body { font-size:0.97rem; color:var(--muted); line-height:1.9; margin-bottom:1.25rem; }
.about-body strong { color:var(--ink); font-weight:600; }
.chips { display:flex; flex-wrap:wrap; gap:0.4rem; margin-top:1.5rem; }
.chip {
  font-size:0.72rem; font-weight:500; color:var(--ink-3);
  background:var(--paper); border:1px solid var(--rule);
  border-radius:5px; padding:0.26rem 0.72rem; transition:all .15s; cursor:none;
}
.chip:hover { color:var(--terra); border-color:var(--terra-line); background:var(--terra-bg); }

/* ================================================================
   SKILLS — tabbed category, icon grid
================================================================ */
#skills { background:var(--linen); }
.skill-tabs-row {
  display:flex; align-items:center; justify-content:center;
  gap:0.4rem; flex-wrap:wrap; margin:2.5rem 0;
}
.stab {
  display:flex; align-items:center; gap:0.45rem;
  padding:0.45rem 1.1rem; border-radius:100px;
  font-size:0.8rem; font-weight:600; color:var(--muted);
  background:var(--paper); border:1.5px solid var(--rule);
  cursor:none; transition:all .2s var(--ease);
}
.stab .material-icons-round { font-size:0.9rem; }
.stab.active, .stab:hover { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.stab-arrow {
  width:34px; height:34px; border-radius:50%;
  background:var(--paper); border:1.5px solid var(--rule);
  display:flex; align-items:center; justify-content:center;
  cursor:none; color:var(--muted); transition:all .18s;
}
.stab-arrow:hover { background:var(--linen-2); color:var(--ink); border-color:var(--rule-2); }
.stab-arrow .material-icons-round { font-size:1.05rem; }
.skill-panel { display:none; }
.skill-panel.active { display:block; }
.skill-icons-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
  gap:1.1rem; max-width:620px; margin:0 auto;
}
.si-item {
  display:flex; flex-direction:column; align-items:center; gap:0.5rem;
  padding:1.1rem 0.5rem;
  background:var(--paper); border:1.5px solid var(--rule);
  border-radius:var(--r-lg); transition:all .22s var(--ease); cursor:none;
}
.si-item:hover { border-color:var(--terra-line); background:var(--terra-bg); transform:translateY(-3px); box-shadow:0 6px 20px rgba(24,20,16,0.08); }
.si-item i, .si-item .material-icons-round { font-size:28px; display:block; }
.si-item__lbl { font-size:0.62rem; font-weight:600; color:var(--muted); text-align:center; letter-spacing:0.03em; line-height:1.2; }

/* ================================================================
   PROJECTS — uniform card grid
================================================================ */
#projects { background:var(--paper); }
.proj-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1.25rem; margin-top:2.75rem;
}
.pcard {
  background:var(--paper-2); border:1.5px solid var(--rule);
  border-radius:var(--r-xl); overflow:hidden;
  display:flex; flex-direction:column;
  transition:all .25s var(--ease);
  box-shadow:0 1px 8px rgba(24,20,16,0.04);
}
.pcard:hover { border-color:var(--rule-2); box-shadow:0 10px 40px rgba(24,20,16,0.1); transform:translateY(-4px); }

.pcard__img { width:100%; height:200px; overflow:hidden; position:relative; border-bottom:1px solid var(--rule); flex-shrink:0; }
.pcard__img img { width:100%; height:100%; object-fit:cover; object-position:center top; transition:transform .55s var(--ease); }
.pcard:hover .pcard__img img { transform:scale(1.05); }
.pcard__img--logo { background:#f0ece4; display:flex; align-items:center; justify-content:center; padding:1.5rem; }
.pcard__img--logo img { width:auto; height:auto; max-height:90px; max-width:72%; object-fit:contain; }
.pcard--hack { background:var(--ink); border-color:var(--ink-2); }
.pcard--hack:hover { box-shadow:0 10px 40px rgba(24,20,16,0.22); }
.pcard__img--hack { background:rgba(255,255,255,0.04); border-bottom:1px solid rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; flex-direction:column; gap:0.2rem; padding:2rem; }
.hack-rank-big { font-family:var(--fh); font-size:4rem; font-weight:900; color:rgba(250,247,241,0.12); letter-spacing:-0.06em; line-height:1; }
.hack-place-lbl { font-family:var(--fm); font-size:0.58rem; letter-spacing:0.16em; text-transform:uppercase; color:rgba(250,247,241,0.3); }

.pcard__badge {
  position:absolute; top:0.85rem; left:0.85rem;
  display:flex; align-items:center; gap:0.4rem;
  background:rgba(250,247,241,0.88); backdrop-filter:blur(10px);
  border:1px solid var(--rule); border-radius:100px;
  padding:0.24rem 0.75rem; font-size:0.6rem; font-weight:700;
  color:var(--ink); letter-spacing:0.1em; text-transform:uppercase;
}
.live-dot { width:5px; height:5px; border-radius:50%; background:var(--sage); animation:pulse 2.5s infinite; }

.pcard__body { padding:1.4rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.pcard__num { font-family:var(--fm); font-size:0.62rem; font-weight:500; color:var(--muted-3); letter-spacing:0.08em; margin-bottom:0.45rem; }
.pcard__title { font-family:var(--fh); font-size:1.05rem; font-weight:700; color:var(--ink); line-height:1.2; margin-bottom:0.18rem; }
.pcard--hack .pcard__title { color:var(--paper); }
.pcard__period { font-family:var(--fm); font-size:0.58rem; color:var(--muted-2); letter-spacing:0.08em; margin-bottom:0.85rem; }
.pcard--hack .pcard__period { color:rgba(250,247,241,0.3); }
.pcard__stack { display:flex; flex-wrap:wrap; gap:0.35rem; margin-bottom:0.85rem; }
.ptag { font-size:0.62rem; font-weight:700; color:var(--terra); background:var(--terra-bg); border:1px solid var(--terra-line); border-radius:4px; padding:0.16rem 0.52rem; letter-spacing:0.04em; }
.pcard__desc { font-size:0.82rem; color:var(--muted); line-height:1.72; flex:1; margin-bottom:1.1rem; }
.pcard--hack .pcard__desc { color:rgba(250,247,241,0.4); }
.pcard__footer { display:flex; gap:0.45rem; flex-wrap:wrap; margin-top:auto; align-items:center; }

.lbtn { display:inline-flex; align-items:center; gap:0.32rem; height:28px; padding:0 0.8rem; background:var(--linen-2); border:1.5px solid var(--rule); border-radius:6px; font-size:0.65rem; font-weight:600; color:var(--muted); transition:all .15s; cursor:none; }
.lbtn:hover { background:var(--ink); color:var(--paper); border-color:var(--ink); }
.lbtn i, .lbtn .material-icons-round { font-size:0.8rem; }
.lbtn-dark { background:rgba(255,255,255,0.07); border-color:rgba(255,255,255,0.12); color:rgba(250,247,241,0.5); }
.lbtn-dark:hover { background:rgba(255,255,255,0.14); color:rgba(250,247,241,0.85); border-color:rgba(255,255,255,0.2); }
.live-bdg { display:inline-flex; align-items:center; gap:0.32rem; height:28px; padding:0 0.8rem; background:var(--sage-bg); border:1.5px solid var(--sage-line); border-radius:6px; font-size:0.65rem; font-weight:700; color:var(--sage); }
.wip-bdg { display:inline-flex; align-items:center; gap:0.32rem; height:28px; padding:0 0.8rem; background:var(--denim-bg); border:1.5px solid var(--denim-line); border-radius:6px; font-size:0.65rem; font-weight:700; color:var(--denim); }
.hack-bdg { display:inline-flex; align-items:center; gap:0.35rem; height:28px; padding:0 0.8rem; background:rgba(250,178,100,0.15); border:1.5px solid rgba(250,178,100,0.3); border-radius:6px; font-size:0.65rem; font-weight:700; color:#c8872a; }

/* ================================================================
   EDUCATION
================================================================ */
#education { background:var(--linen); }
.edu-list { border-top:2px solid var(--ink); margin-top:2.75rem; }
.edu-row { display:grid; grid-template-columns:100px 1fr auto; gap:3rem; align-items:center; padding:1.6rem 0.5rem; border-bottom:1px solid var(--rule); border-radius:var(--r); transition:all .2s var(--ease); }
.edu-row:hover { background:var(--paper-2); padding-left:1.25rem; padding-right:1.25rem; }
.edu-year { font-family:var(--fm); font-size:0.64rem; color:var(--muted-2); letter-spacing:0.07em; }
.edu-school { font-family:var(--fh); font-size:0.95rem; font-weight:700; color:var(--ink); margin-bottom:0.18rem; }
.edu-degree { font-size:0.8rem; color:var(--muted); }
.edu-score { font-family:var(--fh); font-size:1.5rem; font-weight:900; color:var(--sage); text-align:right; line-height:1; letter-spacing:-0.02em; }
.edu-score-lbl { font-size:0.56rem; color:var(--muted-2); text-align:right; text-transform:uppercase; letter-spacing:0.1em; }

/* ================================================================
   ACHIEVEMENTS
================================================================ */
#achievements { background:var(--paper); }
.ach-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; margin-top:2.75rem; }
.acard { background:var(--paper-2); border:1.5px solid var(--rule); border-radius:var(--r-xl); padding:1.6rem; transition:all .2s var(--ease); }
.acard:hover { border-color:var(--rule-2); box-shadow:0 6px 28px rgba(24,20,16,0.07); }
.acard-head { display:flex; align-items:center; gap:0.65rem; margin-bottom:1.1rem; }
.acard-icon { width:32px; height:32px; border-radius:8px; background:var(--terra-bg); border:1.5px solid var(--terra-line); display:flex; align-items:center; justify-content:center; color:var(--terra); flex-shrink:0; }
.acard-icon .material-icons-round { font-size:0.95rem; }
.acard-lbl { font-size:0.63rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase; color:var(--terra); }
.alist { display:flex; flex-direction:column; gap:0.7rem; }
.aitm { display:flex; gap:0.8rem; align-items:flex-start; }
.adot { width:6px; height:6px; border-radius:50%; flex-shrink:0; margin-top:0.54rem; background:var(--terra); }
.adot-g { background:var(--sage); }
.atxt { font-size:0.82rem; color:var(--muted); line-height:1.6; }
.atxt strong { color:var(--ink); font-weight:600; }
.atxt span { font-size:0.72rem; color:var(--muted-2); display:block; margin-top:0.06rem; }

/* ================================================================
   CONTACT
================================================================ */
#contact {
  background:var(--ink);
  border-top:2px solid var(--ink);
}
.contact-grid { display:grid; grid-template-columns:1fr 1.15fr; gap:5rem; align-items:start; }
.contact-hl { font-family:var(--fh); font-size:clamp(2.2rem,4.5vw,3.5rem); font-weight:900; letter-spacing:-0.04em; line-height:1; color:var(--paper); margin-bottom:1rem; }
.contact-hl em { font-style:italic; font-weight:400; color:rgba(184,92,44,0.85); }
.contact-desc { font-size:0.95rem; color:rgba(250,247,241,0.45); line-height:1.85; margin-bottom:1rem; }
.contact-open { display:inline-flex; align-items:center; gap:0.45rem; font-size:0.65rem; font-weight:600; color:var(--sage); background:var(--sage-bg); border:1px solid var(--sage-line); border-radius:100px; padding:0.28rem 0.85rem; margin-bottom:1.75rem; }
.clinks { display:flex; flex-direction:column; gap:0.6rem; }
.clink { display:flex; align-items:center; gap:0.9rem; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r); padding:0.85rem 1.1rem; transition:all .2s var(--ease); cursor:none; }
.clink:hover { background:rgba(255,255,255,0.09); border-color:rgba(255,255,255,0.14); transform:translateX(4px); }
.clink-icon { width:32px; height:32px; border-radius:8px; background:rgba(184,92,44,0.18); border:1px solid rgba(184,92,44,0.25); display:flex; align-items:center; justify-content:center; color:rgba(184,112,70,0.85); flex-shrink:0; }
.clink-icon .material-icons-round { font-size:0.9rem; }
.clink-lbl { font-size:0.58rem; color:rgba(250,247,241,0.3); letter-spacing:0.08em; text-transform:uppercase; }
.clink-val { font-size:0.82rem; color:rgba(250,247,241,0.82); font-weight:500; }

.form-card { background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:var(--r-xl); padding:2.2rem; }
.form-card-title { font-family:var(--fh); font-size:1.25rem; font-weight:700; color:var(--paper); margin-bottom:0.2rem; }
.form-card-sub { font-size:0.78rem; color:rgba(250,247,241,0.4); margin-bottom:1.6rem; line-height:1.6; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.85rem; margin-bottom:0.85rem; }
.ffield { display:flex; flex-direction:column; gap:0.35rem; }
.ffield.full { grid-column:1/3; }
.flabel { font-size:0.68rem; font-weight:600; color:rgba(250,247,241,0.5); letter-spacing:0.05em; }
.finput, .ftextarea { width:100%; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); border-radius:var(--r); padding:0.75rem 1rem; font-family:var(--ff); font-size:0.88rem; color:rgba(250,247,241,0.9); outline:none; transition:border-color .18s, box-shadow .18s; resize:none; cursor:none; }
.finput:focus, .ftextarea:focus { border-color:rgba(184,92,44,0.4); box-shadow:0 0 0 3px rgba(184,92,44,0.1); background:rgba(255,255,255,0.08); }
.finput::placeholder, .ftextarea::placeholder { color:rgba(250,247,241,0.2); }
.ftextarea { min-height:115px; }
.fsubmit { width:100%; height:44px; margin-top:0.85rem; background:var(--terra); color:var(--paper); border-radius:var(--r); font-size:0.88rem; font-weight:700; display:flex; align-items:center; justify-content:center; gap:0.5rem; transition:all .2s var(--ease); border:none; cursor:none; letter-spacing:0.02em; }
.fsubmit:hover { background:var(--terra-2); box-shadow:0 6px 22px rgba(184,92,44,0.4); transform:translateY(-1px); }
.fsubmit:disabled { opacity:0.6; pointer-events:none; }
.fsubmit .material-icons-round { font-size:1rem; }
.fstatus { margin-top:0.75rem; padding:0.65rem 0.9rem; border-radius:var(--r); font-size:0.78rem; font-weight:600; display:none; }
.fstatus.ok { background:var(--sage-bg); border:1px solid var(--sage-line); color:var(--sage); display:block; }
.fstatus.err { background:var(--terra-bg); border:1px solid var(--terra-line); color:var(--terra); display:block; }
.form-setup-note { font-size:0.64rem; color:rgba(250,247,241,0.25); margin-top:1rem; line-height:1.65; }
.form-setup-note a { color:rgba(184,92,44,0.65); }
.form-setup-note code { background:rgba(255,255,255,0.07); padding:0.08rem 0.3rem; border-radius:3px; font-size:0.6rem; }

/* ================================================================
   FAB + FOOTER
================================================================ */
.fab { position:fixed; bottom:2rem; right:2rem; z-index:800; width:48px; height:48px; border-radius:12px; background:var(--ink); color:var(--paper); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 18px rgba(24,20,16,0.2); transition:all .2s var(--ease); border:none; cursor:none; }
.fab:hover { background:var(--terra); transform:scale(1.08); box-shadow:0 8px 26px rgba(184,92,44,0.3); }
.fab .material-icons-round { font-size:1.2rem; }

.footer { padding:1.5rem 5%; border-top:1px solid rgba(255,255,255,0.07); display:flex; align-items:center; justify-content:space-between; font-size:0.7rem; color:rgba(250,247,241,0.25); letter-spacing:0.04em; background:var(--ink); }
.footer a { color:rgba(250,247,241,0.35); transition:color .15s; }
.footer a:hover { color:rgba(250,247,241,0.7); }

/* ================================================================
   REVEAL
================================================================ */
.reveal { opacity:0; transform:translateY(20px); transition:opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.d1{transition-delay:.07s} .d2{transition-delay:.14s} .d3{transition-delay:.21s} .d4{transition-delay:.28s}

/* ================================================================
   RESPONSIVE
================================================================ */
@media(max-width:1024px) {
  .proj-grid { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:900px) {
  .hero-body { grid-template-columns:1fr; }
  .hero-left { border-right:none; border-bottom:1px solid var(--rule); }
  .about-grid { grid-template-columns:1fr; gap:2rem; }
  .contact-grid { grid-template-columns:1fr; gap:2.5rem; }
  .ach-grid { grid-template-columns:1fr; }
  .nav__links { display:none; }
  .topbar { display:flex; }
  .mob-btn { display:flex !important; }
  section { padding:5rem 5%; }
}
@media(max-width:640px) {
  .proj-grid { grid-template-columns:1fr; }
  .hero-stats { grid-template-columns:repeat(2,1fr); flex-wrap:wrap; display:grid; }
  .edu-row { grid-template-columns:1fr; gap:0.5rem; }
  .footer { flex-direction:column; gap:0.4rem; text-align:center; }
  .form-grid { grid-template-columns:1fr; }
  .ffield.full { grid-column:1; }
}
