/* =========================================================
   Wardah Zia Abbasi — Portfolio
   Deep-space navy, dot grid, glowing horizon, pixel accents.
========================================================= */

:root{
  --bg:            #05080f;
  --bg-alt:        #070c17;

  --surface:       rgba(255,255,255,.028);
  --surface-2:     rgba(255,255,255,.05);
  --border:        rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.18);

  --blue:          #3b82f6;
  --blue-bright:   #7cb2ff;
  --blue-pale:     #c9dfff;
  --blue-deep:     #1d4ed8;
  --blue-dim:      rgba(59,130,246,.14);
  --blue-glow:     rgba(59,130,246,.42);

  --text:          #e9edf5;
  --text-muted:    #97a3b6;
  --text-faint:    #626d80;

  --display: 'Sora', system-ui, sans-serif;
  --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel:   'Pixelify Sans', 'JetBrains Mono', monospace;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;

  --wrap: 1140px;
  --pad:  32px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
ul,ol,dl{ margin:0; padding:0; list-style:none; }
dd{ margin:0; }
img,svg{ max-width:100%; display:block; }
h1,h2,h3,h4{ margin:0; font-weight:500; letter-spacing:-.025em; line-height:1.2; }
p{ margin:0; }

::selection{ background:var(--blue); color:#04070d; }
:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; border-radius:4px; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 var(--pad); }
.muted{ color:var(--text-muted); }
.sm{ font-size:14px; }

/* ---------- ambient backdrop ---------- */
.dot-grid{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:radial-gradient(rgba(120,160,230,.16) 1px, transparent 1px);
  background-size:22px 22px;
  mask-image:radial-gradient(ellipse 90% 70% at 50% 22%, #000 20%, transparent 78%);
  -webkit-mask-image:radial-gradient(ellipse 90% 70% at 50% 22%, #000 20%, transparent 78%);
  animation:gridDrift 22s ease-in-out infinite;
}
@keyframes gridDrift{ 0%,100%{ background-position:0 0; } 50%{ background-position:22px 22px; } }

.page-glow{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(820px 500px at 50% -10%, rgba(59,130,246,.20), transparent 72%),
    radial-gradient(600px 400px at 12% 18%, rgba(59,130,246,.07), transparent 72%);
}

/* =================== NAV =================== */
.nav{
  position:sticky; top:0; z-index:200;
  background:rgba(5,8,15,.72);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease, background .3s ease;
  animation:navDrop .8s cubic-bezier(.22,1,.36,1) both;
}
.nav.stuck{ border-bottom-color:var(--border); background:rgba(5,8,15,.9); }
@keyframes navDrop{ from{ opacity:0; transform:translateY(-100%); } to{ opacity:1; transform:none; } }

.nav-inner{
  max-width:1320px; margin:0 auto; padding:0 var(--pad);
  height:72px; display:flex; align-items:center; gap:24px;
}

/* six-dot brand mark */
.brand-dots{
  display:grid; grid-template-columns:repeat(2,5px); gap:4px;
  transition:transform .4s cubic-bezier(.22,1,.36,1);
}
.brand-dots i{
  width:5px; height:5px; border-radius:50%; background:var(--text);
  animation:dotPulse 2.6s ease-in-out infinite;
}
.brand-dots i:nth-child(2){ animation-delay:.15s; }
.brand-dots i:nth-child(3){ animation-delay:.3s; }
.brand-dots i:nth-child(4){ animation-delay:.45s; }
.brand-dots i:nth-child(5){ animation-delay:.6s; }
.brand-dots i:nth-child(6){ animation-delay:.75s; }
@keyframes dotPulse{ 0%,100%{ opacity:.45; } 50%{ opacity:1; } }
.brand:hover .brand-dots{ transform:rotate(90deg); }

.nav-mid{ margin:0 auto; }
.nav-links{ display:flex; gap:6px; align-items:center; }
.nav-links a{
  font-family:var(--mono); font-size:11.5px; font-weight:500;
  letter-spacing:.14em; text-transform:uppercase; color:var(--text-muted);
  padding:9px 15px; border-radius:var(--r-sm); position:relative;
  transition:color .2s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:15px; right:15px; bottom:4px; height:1px;
  background:var(--blue); transform:scaleX(0); transform-origin:left;
  transition:transform .3s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover{ color:var(--text); }
.nav-links a:hover::after, .nav-links a.active::after{ transform:scaleX(1); }
.nav-links a.active{ color:var(--text); }

.nav-toggle{ display:none; }

/* =================== PILL BUTTONS =================== */
.pill{
  font-family:var(--mono); font-size:11.5px; font-weight:500;
  letter-spacing:.14em; text-transform:uppercase;
  padding:12px 24px; border-radius:100px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid transparent; position:relative; overflow:hidden;
  transition:transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space:nowrap;
}
.pill::after{
  content:""; position:absolute; top:0; left:-120%; width:55%; height:100%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent);
  transition:left .65s ease;
}
.pill:hover::after{ left:150%; }
.pill:active{ transform:scale(.97); }

.pill-solid{
  background:linear-gradient(180deg, var(--blue), var(--blue-deep));
  color:#fff; box-shadow:0 6px 26px rgba(59,130,246,.36), inset 0 1px 0 rgba(255,255,255,.3);
}
.pill-solid:hover{ box-shadow:0 10px 38px rgba(59,130,246,.55), inset 0 1px 0 rgba(255,255,255,.42); }

.pill-outline{
  border-color:var(--border-strong); color:var(--text); background:rgba(255,255,255,.03);
}
.pill-outline:hover{ border-color:var(--blue); background:rgba(59,130,246,.12); box-shadow:0 0 26px rgba(59,130,246,.22); }

.pill-block{ width:100%; padding:15px 24px; }

/* =================== HERO =================== */
.hero{
  position:relative; z-index:1;
  padding:96px 0 0;
  text-align:center; overflow:hidden;
  min-height:calc(100vh - 72px);
  display:flex; flex-direction:column;
}
.hero-copy{
  position:relative; z-index:3;
  max-width:960px; margin:0 auto; padding:0 var(--pad);
}

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:10.5px; font-weight:500;
  letter-spacing:.2em; text-transform:uppercase; color:var(--text-muted);
  margin-bottom:24px;
  animation:fadeUp .9s cubic-bezier(.22,1,.36,1) .05s both;
}
.eyebrow i{
  width:7px; height:7px; border-radius:50%;
  border:1px solid var(--blue-bright); box-shadow:0 0 10px var(--blue-glow);
}

.display{
  font-family:var(--display);
  font-size:clamp(38px, 7vw, 82px);
  font-weight:300; letter-spacing:-.03em; line-height:1.08;
  margin-bottom:26px;
}
.display .line{ display:block; }
.display .w{ display:inline-block; }
/* per-word entrance */
.display .w, .display .h-icon{
  opacity:0; transform:translateY(28px);
  animation:wordUp .9s cubic-bezier(.22,1,.36,1) both;
}
.display .l1 .w:nth-child(1){ animation-delay:.15s; }
.display .l1 .h-icon{ animation-delay:.3s; }
.display .l1 .w:nth-child(3){ animation-delay:.45s; }
.display .l2 .w{ animation-delay:.6s; }
@keyframes wordUp{ to{ opacity:1; transform:none; } }

.display .pixel{
  font-family:var(--pixel); font-weight:600;
  background:linear-gradient(180deg, #fff, var(--blue-pale) 55%, var(--blue-bright));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow:0 0 40px rgba(124,178,255,.35);
  animation:wordUp .9s cubic-bezier(.22,1,.36,1) both, pixelFlicker 6s steps(1,end) 2s infinite;
}
@keyframes pixelFlicker{
  0%,96%,100%{ opacity:1; }
  97%{ opacity:.55; }
  98%{ opacity:1; }
  99%{ opacity:.7; }
}

/* inline icon badge inside the heading */
.h-icon{
  display:inline-grid; place-items:center; vertical-align:middle;
  width:.94em; height:.94em; margin:0 .12em -.06em;
  border-radius:.24em; color:var(--blue-bright);
  background:linear-gradient(160deg, rgba(59,130,246,.32), rgba(14,30,66,.85));
  border:1px solid rgba(124,178,255,.42);
  box-shadow:0 0 32px rgba(59,130,246,.4), inset 0 1px 0 rgba(255,255,255,.22);
  animation:wordUp .9s cubic-bezier(.22,1,.36,1) both, iconFloat 4.5s ease-in-out 1.2s infinite;
}
.h-icon svg{ width:58%; height:58%; }
@keyframes iconFloat{ 0%,100%{ transform:translateY(0) rotate(0deg); } 50%{ transform:translateY(-7px) rotate(-4deg); } }

.hero-sub{
  max-width:600px; margin:0 auto 38px;
  font-size:16.5px; color:var(--text-muted);
  animation:fadeUp .9s cubic-bezier(.22,1,.36,1) .75s both;
}
.hero-actions{
  display:flex; gap:14px; justify-content:center; flex-wrap:wrap;
  animation:fadeUp .9s cubic-bezier(.22,1,.36,1) .9s both;
}
@keyframes fadeUp{ from{ opacity:0; transform:translateY(22px); } to{ opacity:1; transform:none; } }

/* ---------- globe + board ---------- */
.hero-visual{
  position:relative; z-index:1;
  margin-top:64px; flex:1;
  min-height:340px;
}

/* radiating filament burst behind the hero */
.burst{
  position:absolute; inset:0; width:100%; height:100%;
  z-index:0; pointer-events:none;
  opacity:0; animation:burstIn 2s ease .3s forwards;
  mask-image:linear-gradient(to bottom, #000 62%, transparent 96%);
  -webkit-mask-image:linear-gradient(to bottom, #000 62%, transparent 96%);
}
@keyframes burstIn{ to{ opacity:1; } }

/* the analytics board */
.board{
  position:relative; z-index:4;
  width:min(760px, 92vw); margin:0 auto;
  background:linear-gradient(180deg, rgba(16,26,48,.94), rgba(8,14,28,.96));
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px 14px 0 0;
  box-shadow:0 -10px 90px rgba(59,130,246,.30), 0 30px 90px rgba(0,0,0,.6);
  backdrop-filter:blur(12px);
  overflow:hidden;
  transform-style:preserve-3d;
  /* `backwards`, not `both`: holding the end state would out-rank the
     inline transform the cursor parallax sets once the intro finishes. */
  animation:boardIn 1.4s cubic-bezier(.22,1,.36,1) .8s backwards;
}
@keyframes boardIn{
  from{ opacity:0; transform:translateY(90px) rotateX(14deg) scale(.94); }
  to{ opacity:1; transform:translateY(0) rotateX(0) scale(1); }
}

.board-bar{
  display:flex; align-items:center; gap:16px;
  padding:12px 16px; border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.028);
}
.tl{ display:flex; gap:7px; }
.tl i{ width:11px; height:11px; border-radius:50%; display:block; }
.tl .r{ background:#ff5f57; } .tl .y{ background:#febc2e; } .tl .g{ background:#28c840; }
.board-tab{
  font-size:12.5px; color:var(--text-muted);
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08);
  border-radius:7px; padding:5px 12px; display:inline-flex; align-items:center; gap:12px;
}
.board-tab b{ font-weight:400; opacity:.5; }

.board-body{ display:grid; grid-template-columns:1.25fr .95fr; gap:20px; padding:22px; }

/* chart */
.legend{ display:flex; gap:20px; font-size:11.5px; color:var(--text-muted); margin-bottom:18px; }
.legend span{ display:inline-flex; align-items:center; gap:7px; }
.sw{ width:11px; height:11px; border-radius:3px; display:block; }
.sw1{ background:var(--blue-bright); }
.sw2{ background:var(--blue-deep); }

.plot{
  display:grid; grid-template-columns:auto 1fr;
  grid-template-areas:"y bars" ". x";
  gap:8px 12px; height:210px;
}
.y-axis{
  grid-area:y; display:flex; flex-direction:column; justify-content:space-between;
  font-family:var(--mono); font-size:10.5px; color:var(--text-faint);
}
.bars{
  grid-area:bars; display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
  align-items:end; border-bottom:1px solid rgba(255,255,255,.08);
  background-image:repeating-linear-gradient(to top, rgba(255,255,255,.05) 0 1px, transparent 1px 25%);
}
.grp{ display:flex; align-items:flex-end; justify-content:center; gap:5px; height:100%; }
.grp i{
  width:17px; border-radius:3px 3px 0 0; display:block;
  height:0; transition:height 1.1s cubic-bezier(.22,1,.36,1);
}
.board.charted .grp i{ height:var(--h); }
.grp .b1{ background:linear-gradient(180deg, var(--blue-bright), var(--blue)); }
.grp .b2{ background:linear-gradient(180deg, var(--blue), var(--blue-deep)); }
.grp:nth-child(1) i{ transition-delay:.05s; }
.grp:nth-child(2) i{ transition-delay:.15s; }
.grp:nth-child(3) i{ transition-delay:.25s; }
.grp:nth-child(4) i{ transition-delay:.35s; }
.x-axis{
  grid-area:x; display:grid; grid-template-columns:repeat(4,1fr);
  font-family:var(--mono); font-size:10.5px; color:var(--text-faint); text-align:center;
}

/* findings panel */
.board-side{
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07);
  border-radius:10px; padding:16px 16px 18px;
}
.side-title{ font-size:12.5px; color:var(--text-muted); margin-bottom:14px; }
.side-lines{ display:flex; flex-direction:column; gap:13px; }
.side-lines li{
  font-family:var(--mono); font-size:10.5px; line-height:1.55; color:var(--text-faint);
  opacity:0; transform:translateX(-6px);
}
.board.typed .side-lines li{ animation:lineIn .5s ease forwards; }
.board.typed .side-lines li:nth-child(1){ animation-delay:.1s; }
.board.typed .side-lines li:nth-child(2){ animation-delay:.35s; }
.board.typed .side-lines li:nth-child(3){ animation-delay:.6s; }
.board.typed .side-lines li:nth-child(4){ animation-delay:.85s; }
.board.typed .side-lines li:nth-child(5){ animation-delay:1.1s; }
@keyframes lineIn{ to{ opacity:1; transform:none; } }

/* =================== MARQUEE =================== */
.marquee{
  position:relative; z-index:5;
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  background:rgba(255,255,255,.02); overflow:hidden; padding:16px 0;
}
.marquee-track{ display:flex; gap:52px; width:max-content; animation:marq 38s linear infinite; }
.marquee-track span{
  font-family:var(--mono); font-size:11.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--text-faint); display:flex; align-items:center; gap:52px; white-space:nowrap;
}
.marquee-track span::after{ content:"◆"; font-size:7px; color:var(--blue); }
@keyframes marq{ to{ transform:translateX(-50%); } }
.marquee:hover .marquee-track{ animation-play-state:paused; }

/* =================== SECTIONS =================== */
.section{ position:relative; z-index:1; padding:110px 0; }
.section-alt{ background:var(--bg-alt); border-block:1px solid var(--border); }

.section-head{ margin-bottom:56px; }
.kicker{
  display:inline-block; font-family:var(--mono); font-size:11px;
  letter-spacing:.18em; text-transform:uppercase; color:var(--blue);
  margin-bottom:14px;
}
.section-head h2{
  font-family:var(--display); font-weight:300;
  font-size:clamp(28px, 3.8vw, 44px); letter-spacing:-.03em;
}

/* =================== CARDS =================== */
.card{
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); position:relative; overflow:hidden;
  transition:border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.card.pad{ padding:28px; }
/* cursor-tracked sheen */
.card::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:0;
  background:radial-gradient(280px circle at var(--mx,50%) var(--my,50%), rgba(124,178,255,.13), transparent 68%);
  transition:opacity .35s ease;
}
.card:hover::before{ opacity:1; }
.card:hover{ border-color:var(--border-strong); box-shadow:0 20px 60px rgba(0,0,0,.5); }

.card-num{
  position:absolute; top:20px; right:22px;
  font-family:var(--mono); font-size:11px; color:var(--text-faint); opacity:.6;
}

/* =================== ABOUT =================== */
.about-grid{ display:grid; grid-template-columns:1.15fr .85fr; gap:60px; align-items:start; }
.about-copy p + p{ margin-top:16px; }
.about-copy p{ color:var(--text-muted); font-size:16px; }
.about-copy strong{ color:var(--text); font-weight:600; }
.lede-sm{ font-size:18px; color:var(--text) !important; margin-bottom:18px; }

.metrics{
  display:grid; grid-template-columns:repeat(3,auto); gap:44px;
  justify-content:start; margin-top:40px; padding-top:32px; border-top:1px solid var(--border);
}
.metrics dt{
  font-family:var(--display); font-size:32px; font-weight:400;
  letter-spacing:-.03em; line-height:1; margin-bottom:8px; color:var(--text);
}
.metrics dd{ font-size:13px; color:var(--text-faint); }

.about-side{ display:flex; flex-direction:column; gap:18px; }
.cat-card{ padding:26px 26px 20px; text-align:center; }
#cat{ width:100%; max-width:220px; margin:0 auto; overflow:visible; }
.cat-shape{ fill:var(--blue-dim); stroke:var(--blue); stroke-width:1.6; stroke-linejoin:round; }
.cat-eye{ fill:var(--bg); stroke:var(--blue); stroke-width:1.4; }
.cat-pupil{ fill:var(--blue-bright); transition:transform .18s ease-out; }
.cat-nose{ fill:var(--blue-bright); }
.cat-line{ fill:none; stroke:var(--blue); stroke-width:10; stroke-linecap:round; }
.cat-whisk line{ stroke:var(--blue); stroke-width:1.3; opacity:.5; stroke-linecap:round; }
.cat-cap{ margin-top:16px; font-size:13px; color:var(--text-faint); }
.cat-body{ animation:breathe 4.2s ease-in-out infinite; transform-origin:110px 120px; }
@keyframes breathe{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.018); } }
.cat-tail-g{ animation:swish 3.4s ease-in-out infinite; }
@keyframes swish{ 0%,100%{ transform:rotate(0deg); } 50%{ transform:rotate(-7deg); } }
.blink{ animation:blinkEye 5s ease-in-out infinite; }
@keyframes blinkEye{ 0%,93%,100%{ transform:scaleY(1); } 96%{ transform:scaleY(.1); } }

.facts{ padding:6px 24px; }
.facts > div{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding:14px 0; border-bottom:1px solid var(--border);
}
.facts > div:last-child{ border-bottom:0; }
.facts dt{ font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); }
.facts dd{ font-size:14px; color:var(--text); text-align:right; }

/* =================== GRIDS / TAGS =================== */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.grid-3 h3{ font-size:17px; margin-bottom:18px; font-family:var(--display); font-weight:400; }

.tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tags li{
  font-size:12.5px; color:var(--text-muted);
  background:var(--surface-2); border:1px solid var(--border);
  padding:5px 12px; border-radius:100px;
  transition:color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.tags li:hover{
  color:var(--text); border-color:var(--blue); background:rgba(59,130,246,.14);
  transform:translateY(-2px);
}
.tags.sm li{ font-size:11.5px; padding:4px 10px; }

.chip{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text-muted); background:var(--surface-2);
  border:1px solid var(--border); border-radius:100px; padding:4px 12px;
  display:inline-flex; align-items:center; gap:7px; white-space:nowrap;
}
.chip-live{ color:#3ddc91; border-color:rgba(61,220,145,.3); background:rgba(61,220,145,.08); }
.chip-live i{ width:5px; height:5px; border-radius:50%; background:#3ddc91; animation:livePulse 2s ease-in-out infinite; }
@keyframes livePulse{ 0%,100%{ opacity:1; box-shadow:0 0 0 0 rgba(61,220,145,.5); } 50%{ opacity:.6; box-shadow:0 0 0 4px rgba(61,220,145,0); } }

/* =================== TIMELINE =================== */
.timeline{ display:flex; flex-direction:column; }
.timeline > li{
  display:grid; grid-template-columns:210px 1fr; gap:40px;
  padding:32px 0; border-top:1px solid var(--border); position:relative;
}
.timeline > li:last-child{ border-bottom:1px solid var(--border); }
.timeline > li::after{
  content:""; position:absolute; left:0; top:-1px; height:1px; width:0;
  background:linear-gradient(90deg, var(--blue), transparent);
  transition:width .6s cubic-bezier(.22,1,.36,1);
}
.timeline > li:hover::after{ width:100%; }
.tl-when{
  font-family:var(--mono); font-size:12px; letter-spacing:.06em; color:var(--text-faint);
  padding-top:4px; display:flex; flex-direction:column; align-items:flex-start; gap:10px;
}
.tl-what h3{ font-size:19px; margin-bottom:14px; font-family:var(--display); font-weight:400; }
.tl-what .at{ display:block; font-size:14.5px; font-weight:400; color:var(--blue); margin-top:5px; letter-spacing:0; }
.bullets{ display:flex; flex-direction:column; gap:9px; }
.bullets li{ font-size:15px; color:var(--text-muted); padding-left:18px; position:relative; }
.bullets li::before{
  content:""; position:absolute; left:0; top:10px;
  width:5px; height:5px; border-radius:50%; background:var(--blue); opacity:.55;
}

/* =================== WORK =================== */
.work-list{ display:flex; flex-direction:column; gap:18px; }
.work{ display:grid; grid-template-columns:200px 1fr; gap:36px; padding:32px; align-items:start; }
.work-meta{ display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.work-year{ font-family:var(--mono); font-size:12.5px; color:var(--text-faint); }
.work-body h3{ font-size:21px; margin-bottom:6px; font-family:var(--display); font-weight:400; }
.work-role{ font-size:14px; color:var(--blue); margin-bottom:14px; }
.work-body > p{ font-size:15px; color:var(--text-muted); margin-bottom:18px; }

/* =================== EDUCATION =================== */
.edu-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start; }
.edu-grid h3{ font-size:18px; margin-bottom:8px; font-family:var(--display); font-weight:400; }
.edu-grid .muted + .muted{ margin-top:4px; }

.cert-list{ display:flex; flex-direction:column; gap:1px; }
.cert-list li{
  font-size:15px; color:var(--text-muted);
  padding:16px 20px 16px 46px; background:var(--surface); border:1px solid var(--border);
  position:relative; transition:background .22s ease, color .22s ease, padding-left .22s ease;
}
.cert-list li:first-child{ border-radius:var(--r) var(--r) 0 0; }
.cert-list li:last-child{ border-radius:0 0 var(--r) var(--r); }
.cert-list li + li{ border-top:0; }
.cert-list li::before{
  content:""; position:absolute; left:20px; top:50%; margin-top:-5px;
  width:10px; height:10px; border-radius:50%; border:2px solid var(--blue);
  transition:background .22s ease, box-shadow .22s ease;
}
.cert-list li:hover{ background:var(--surface-2); color:var(--text); padding-left:52px; }
.cert-list li:hover::before{ background:var(--blue); box-shadow:0 0 12px var(--blue-glow); }

/* =================== CONTACT =================== */
.contact-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:22px; align-items:start; }
.contact-form{ display:flex; flex-direction:column; gap:18px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{
  font-family:var(--mono); font-size:10.5px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--text-faint);
}
.field input, .field textarea{
  font-family:inherit; font-size:15px; color:var(--text);
  background:rgba(0,0,0,.3); border:1px solid var(--border);
  border-radius:var(--r-sm); padding:13px 15px; resize:vertical; outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder{ color:var(--text-faint); }
.field input:focus, .field textarea:focus{
  border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-dim); background:rgba(0,0,0,.5);
}
.form-status{ font-size:13.5px; color:var(--text-muted); min-height:20px; }
.form-status.error{ color:#ff7b8a; }

.contact-links{ display:flex; flex-direction:column; gap:1px; }
.contact-links a{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:19px 22px; background:var(--surface); border:1px solid var(--border);
  transition:background .22s ease, border-color .22s ease, transform .22s ease;
}
.contact-links li:first-child a{ border-radius:var(--r) var(--r) 0 0; }
.contact-links li:last-child a{ border-radius:0 0 var(--r) var(--r); }
.contact-links li + li a{ border-top:0; }
.contact-links a:hover{ background:var(--surface-2); border-color:var(--blue); transform:translateX(5px); }
.cl-k{ font-family:var(--mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-faint); }
.cl-v{ font-size:14.5px; color:var(--text); }

/* =================== FOOTER =================== */
.footer{ position:relative; z-index:1; border-top:1px solid var(--border); padding:36px 0; }
.footer-inner{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:10px; font-size:14px; color:var(--text-faint);
}

/* =================== SCROLL REVEAL =================== */
.js .reveal{
  opacity:0; transform:translateY(22px);
  transition:opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.js .reveal.in{ opacity:1; transform:none; }

/* =================== RESPONSIVE =================== */
@media (max-width:1024px){
  .board-body{ grid-template-columns:1fr; }
  .board-side{ display:none; }
}

@media (max-width:960px){
  .hero{ padding:70px 0 0; min-height:auto; }
  .about-grid{ grid-template-columns:1fr; gap:44px; }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .edu-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .work{ grid-template-columns:1fr; gap:20px; }
  .work-meta{ flex-direction:row; align-items:center; gap:14px; }
  .timeline > li{ grid-template-columns:1fr; gap:14px; }
  .tl-when{ flex-direction:row; align-items:center; gap:14px; }
  .section{ padding:80px 0; }
}

@media (max-width:720px){
  :root{ --pad:20px; }

  .nav-inner{ height:64px; gap:14px; }
  .nav-mid{ margin:0; }
  .nav-toggle{
    display:flex; flex-direction:column; justify-content:center; gap:5px;
    width:40px; height:40px; margin-left:auto; padding:0 10px;
    background:none; border:1px solid var(--border); border-radius:var(--r-sm); cursor:pointer;
  }
  .nav-toggle span{ display:block; height:1.5px; background:var(--text); border-radius:2px; transition:transform .22s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child{ transform:translateY(3.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child{ transform:translateY(-3.25px) rotate(-45deg); }

  .nav-links{
    position:fixed; inset:64px 0 auto 0; flex-direction:column; align-items:stretch; gap:2px;
    background:var(--bg); border-bottom:1px solid var(--border);
    padding:14px var(--pad) 22px;
    opacity:0; transform:translateY(-8px); pointer-events:none;
    transition:opacity .22s ease, transform .22s ease;
  }
  .nav-links.open{ opacity:1; transform:none; pointer-events:auto; }
  .nav-links a{ padding:14px; font-size:13px; }
  .nav-cta{ display:none; }

  .grid-3{ grid-template-columns:1fr; }
  .metrics{ grid-template-columns:repeat(3,1fr); gap:16px; }
  .metrics dt{ font-size:24px; }
  .metrics dd{ font-size:12px; }
  .work, .card.pad{ padding:22px; }
  .board-body{ padding:16px; }
  .plot{ height:170px; }
  .hero-visual{ margin-top:44px; min-height:260px; }
}

/* =================== REDUCED MOTION =================== */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  html{ scroll-behavior:auto; }
  .js .reveal{ opacity:1; transform:none; }
  .display .w, .display .h-icon, .hero-sub, .hero-actions{ opacity:1; transform:none; }
  .board.charted .grp i{ height:var(--h); }
  .side-lines li{ opacity:1; transform:none; }
}
