:root{
  --bg: #070d16;
  --bg-elevated: #0b1522;
  --bg-panel: #0e1a2a;
  --bg-panel-2: #0a1520;
  --line: rgba(122, 168, 201, 0.12);
  --line-strong: rgba(122, 168, 201, 0.22);
  --grid-line: rgba(69, 217, 196, 0.04);
  --ink: #eef5fb;
  --muted: #8fa8c0;
  --muted-2: #5f7a94;
  --trace: #3de8d0;
  --trace-soft: #2bb8a6;
  --trace-dim: rgba(61, 232, 208, 0.22);
  --trace-glow: rgba(61, 232, 208, 0.45);
  --accent: #ff9f4a;
  --accent-dim: rgba(255, 159, 74, 0.28);
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --rail-w: 88px;
  --maxw: 1180px;
  --radius: 12px;
  --radius-sm: 6px;
}

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

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

/* ambient background glow */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(61,232,208,0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(255,159,74,0.05), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(61,232,208,0.04), transparent 55%);
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
h1,h2,h3{ margin:0; font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; }

::selection{ background: var(--trace-dim); color: var(--ink); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* faint schematic grid backdrop */
.grid-overlay{
  position: fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 10%, black 30%, transparent 85%);
  opacity: 0.9;
}

/* ---------- circuit trace rail ---------- */
.rail{
  position: absolute;
  top: 0; left: calc(var(--rail-w) / 2 - 1px);
  width: 2px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.rail-svg{ width: 2px; height: 100%; overflow: visible; }
.rail-line-base{ stroke: var(--line); stroke-width: 2; }
.rail-line-fill{
  stroke: var(--trace);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px var(--trace-glow));
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}

.pcb-pad{
  position:absolute;
  left: calc(var(--rail-w)/2 - 6px);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--muted-2);
  z-index: 2;
  transition: border-color .4s ease, background .4s ease, box-shadow .4s ease, transform .3s ease;
}
.pcb-pad::after{
  content: attr(data-pad-label);
  position: absolute;
  left: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted-2);
  white-space: nowrap;
  transition: color .3s ease;
}
.pcb-pad.is-active{
  border-color: var(--trace);
  background: var(--trace);
  box-shadow: 0 0 16px var(--trace-glow), 0 0 4px var(--trace);
  transform: scale(1.15);
}
.pcb-pad.is-active::after{ color: var(--trace); }

@media (max-width: 900px){
  .rail, .pcb-pad{ display:none; }
  :root{ --rail-w: 0px; }
}

/* ---------- top bar ---------- */
.topbar{
  position: sticky; top:0; z-index: 50;
  background: rgba(7,13,22,0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 0 calc(var(--rail-w) + 8px);
  height: 64px;
  display:flex; align-items:center; justify-content: space-between;
}
.mark{
  font-family: var(--mono); font-weight: 800; font-size: 18px; letter-spacing: .06em;
  transition: opacity .2s ease;
}
.mark:hover{ opacity: 0.85; }
.mark-dot{ color: var(--trace); text-shadow: 0 0 12px var(--trace-glow); }
.topnav{ display:flex; gap: 26px; }
.topnav a{
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  display:flex; align-items:center; gap:6px;
  transition: color .2s ease;
  position: relative;
}
.topnav a::after{
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--trace);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  opacity: 0.7;
}
.topnav a:hover{ color: var(--ink); }
.topnav a:hover::after{ transform: scaleX(1); }
.topnav .tag{ color: var(--muted-2); font-size: 10.5px; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding: 8px; }
.nav-toggle span{
  display:block; width:22px; height:2px; background: var(--ink); margin: 5px 0;
  border-radius: 1px; transition: transform .25s ease, opacity .2s ease;
}

@media (max-width: 780px){
  .topnav{
    position: absolute; top: 64px; left:0; right:0;
    background: rgba(11,21,34,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap:0;
    max-height: 0; overflow:hidden;
    transition: max-height .35s ease;
  }
  .topnav.is-open{ max-height: 420px; }
  .topnav a{ padding: 15px 24px; border-top: 1px solid var(--line); }
  .topnav a::after{ display:none; }
  .nav-toggle{ display:block; }
  .topbar-inner{ padding-left: 20px; }
}

/* ---------- layout shells ---------- */
main{ position: relative; z-index: 1; }
.section, .hero{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 32px 110px calc(var(--rail-w) + 24px);
}
@media (max-width: 900px){
  .section, .hero{ padding: 72px 22px; }
}

/* ---------- hero ---------- */
.hero{
  min-height: 90vh;
  display:flex; align-items:center; justify-content: space-between;
  gap: 48px;
  padding-top: 96px;
  position: relative;
}
.hero-inner{ max-width: 640px; }
.eyebrow{
  font-family: var(--mono); color: var(--trace); font-size: 12.5px;
  letter-spacing: .12em; margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content:"";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--trace);
  box-shadow: 0 0 10px var(--trace-glow);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%, 100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: 0.55; transform: scale(0.85); }
}

.hero-title{
  font-size: clamp(2.15rem, 4.8vw, 3.5rem);
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.terminal-line{
  display:block; font-family: var(--mono); font-size: 13.5px;
  color: var(--muted); font-weight: 500; margin-bottom: 12px;
}
.prompt{ color: var(--accent); }
.cursor{ color: var(--trace); animation: blink 1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }

.hero-sub{
  font-size: 1.08rem; color: var(--muted); max-width: 520px;
  margin: 0 0 28px; line-height: 1.7;
}
.hero-sub strong{ color: var(--ink); font-weight: 600; }

.hero-meta{ display:flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.pin{
  font-family: var(--mono); font-size: 11px; letter-spacing: .07em;
  color: var(--muted);
  background: rgba(14,26,42,0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.pin:hover{
  border-color: var(--trace-dim);
  color: var(--ink);
  box-shadow: 0 0 16px rgba(61,232,208,0.08);
}

.hero-actions{ display:flex; flex-wrap: wrap; gap: 14px; }
.btn{
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  padding: 14px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .25s ease;
  display:inline-block;
}
.btn-primary{
  background: linear-gradient(135deg, var(--trace) 0%, var(--trace-soft) 100%);
  color: #041412;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(61,232,208,0.25);
}
.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(61,232,208,0.4);
}
.btn-ghost{
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(14,26,42,0.4);
}
.btn-ghost:hover{
  border-color: var(--trace);
  color: var(--trace);
  box-shadow: 0 0 20px rgba(61,232,208,0.12);
  transform: translateY(-2px);
}

.hero-schema{
  flex-shrink:0; width: 240px; opacity: .95;
  perspective: 1000px;
  position: relative;
}
.hero-schema::before{
  content:"";
  position: absolute;
  inset: 15% 10%;
  background: radial-gradient(circle, rgba(61,232,208,0.15), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.ic-chip{
  width: 100%; height: auto; overflow: visible;
  animation: float3d 7s ease-in-out infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,0.5));
}
.ic-chip rect{
  fill: var(--bg-panel);
  stroke: var(--trace-soft);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(61,232,208,0.2));
}
.ic-chip .ic-dot{ fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.ic-pins line{ stroke: var(--muted-2); stroke-width: 1.5; }

@keyframes float3d{
  0%, 100%{ transform: rotateX(10deg) rotateY(-12deg) translateY(0); }
  50%{ transform: rotateX(4deg) rotateY(8deg) translateY(-14px); }
}
@media (prefers-reduced-motion: reduce){ .ic-chip{ animation: none; } .eyebrow::before{ animation: none; } }

@media (max-width: 900px){
  .hero{ flex-direction: column-reverse; text-align:left; padding-top: 52px; gap: 32px; }
  .hero-schema{ width: 140px; align-self: flex-start; }
}

/* ---------- section heads ---------- */
.section-head{ margin-bottom: 48px; }
.section-tag{
  display:inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--trace); letter-spacing: .12em; margin-bottom: 14px;
  padding: 5px 12px;
  background: rgba(61,232,208,0.06);
  border: 1px solid var(--trace-dim);
  border-radius: 999px;
}
.section-head h2{
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  max-width: 640px;
  line-height: 1.3;
}

/* ---------- about ---------- */
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.about-text{
  color: var(--muted); font-size: 1.02rem; line-height: 1.75;
  padding: 28px 26px;
  background: linear-gradient(160deg, rgba(14,26,42,0.7) 0%, rgba(10,21,32,0.4) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.about-text::before{
  content:"";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--trace-dim), transparent);
}
@media (max-width: 800px){ .about-grid{ grid-template-columns: 1fr; } }

/* ---------- timeline ---------- */
.timeline{
  display:flex; flex-direction: column; gap: 0;
  border-left: 2px solid var(--line);
  padding-left: 36px;
  margin-left: 4px;
}
.tl-item{ position: relative; padding: 0 0 48px; }
.tl-item:last-child{ padding-bottom: 0; }
.tl-marker{
  position:absolute; left: -42px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--trace);
  box-shadow: 0 0 0 4px rgba(61,232,208,0.1);
  transition: box-shadow .3s ease, background .3s ease;
}
.tl-item:hover .tl-marker{
  background: var(--trace);
  box-shadow: 0 0 12px var(--trace-glow), 0 0 0 4px rgba(61,232,208,0.15);
}
.tl-content{
  padding: 4px 0 0;
  transition: transform .25s ease;
}
.tl-item:hover .tl-content{ transform: translateX(4px); }
.tl-top{ display:flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.tl-top h3{ font-size: 1.08rem; }
.tl-date{
  font-family: var(--mono); font-size: 11.5px; color: var(--muted-2);
  background: rgba(14,26,42,0.6);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
}
.tl-org{ color: var(--muted); margin: 0 0 8px; font-size: .96rem; }
.tl-grade{ color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.tl-grade strong{ color: var(--accent); font-weight: 700; }
.chip-list{ display:flex; flex-wrap: wrap; gap: 8px; }
.chip-list li{
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 11px;
  background: rgba(14,26,42,0.5);
  transition: border-color .2s ease, color .2s ease;
}
.chip-list li:hover{ border-color: var(--trace-dim); color: var(--ink); }

/* ---------- skills ---------- */
.skills-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.skill-block{
  padding: 26px 24px;
  background: linear-gradient(160deg, rgba(14,26,42,0.85) 0%, rgba(10,21,32,0.5) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s ease, box-shadow .3s ease, transform .25s ease;
}
.skill-block:hover{
  border-color: var(--trace-dim);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(61,232,208,0.08);
  transform: translateY(-3px);
}
.skill-block h3{
  font-size: .88rem; color: var(--trace); font-weight: 600;
  margin-bottom: 18px; letter-spacing: .08em;
  text-transform: uppercase;
}
.chip-row{ display:flex; flex-wrap: wrap; gap: 10px; }
.component-chip{
  font-family: var(--mono); font-size: 12.5px;
  background: rgba(7,13,22,0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 14px 9px 18px;
  position: relative;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.component-chip::before{
  content:"";
  position:absolute; left:7px; top:50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted-2);
  transition: background .2s ease, box-shadow .2s ease;
}
.component-chip:hover{
  border-color: var(--trace);
  color: var(--trace);
  box-shadow: 0 0 16px rgba(61,232,208,0.12);
  transform: translateY(-1px);
}
.component-chip:hover::before{
  background: var(--trace);
  box-shadow: 0 0 6px var(--trace-glow);
}
@media (max-width: 800px){ .skills-grid{ grid-template-columns: 1fr; gap: 18px; } }

/* ---------- projects ---------- */
.project-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  perspective: 1400px;
}
.project-card{
  background: linear-gradient(165deg, rgba(14,26,42,0.95) 0%, rgba(10,21,32,0.8) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  position: relative;
  display:flex; flex-direction: column;
  transform-style: preserve-3d;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 12px 28px rgba(0,0,0,0.3);
  transition: transform .15s ease-out, box-shadow .3s ease, border-color .3s ease;
  will-change: transform;
  overflow: hidden;
}
.project-card::before{
  content:"";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--trace-dim), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.project-card:hover{
  border-color: rgba(61,232,208,0.35);
  box-shadow:
    0 28px 50px rgba(0,0,0,0.45),
    0 0 0 1px rgba(61,232,208,0.12),
    0 0 40px rgba(61,232,208,0.06);
}
.project-card:hover::before{ opacity: 1; }
.project-index{
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
  position:absolute; top: 22px; right: 22px;
  letter-spacing: .06em;
}
.project-card h3{
  font-size: 1.05rem; margin: 4px 36px 12px 0;
  line-height: 1.35; transform: translateZ(24px);
}
.project-desc{
  color: var(--muted); font-size: .9rem; margin: 0 0 18px;
  line-height: 1.6; flex-grow: 1;
  transform: translateZ(16px);
}
.project-stack{ display:flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.project-stack span{
  font-family: var(--mono); font-size: 10.5px; color: var(--trace);
  background: rgba(61,232,208,0.06);
  border: 1px solid var(--trace-dim);
  border-radius: 4px; padding: 4px 9px;
}
.project-card .verify-btn{ margin-top: 18px; transform: translateZ(28px); }
.project-card .verify-btn{ margin-top: 10px; align-self: flex-start; }
.project-card .verify-btn + .verify-btn{ margin-top: 8px; }

@media (max-width: 980px){ .project-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .project-grid{ grid-template-columns: 1fr; } }

/* ---------- credentials ---------- */
.cred-heading{
  font-size: .88rem; color: var(--trace); letter-spacing: .08em;
  margin-bottom: 22px; text-transform: uppercase;
  font-weight: 600;
}
.cert-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 64px;
  perspective: 1400px;
}
.cert-card{
  background: linear-gradient(165deg, rgba(14,26,42,0.95) 0%, rgba(10,21,32,0.8) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  display:flex; flex-direction: column;
  transform-style: preserve-3d;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 22px rgba(0,0,0,0.28);
  transition: transform .15s ease-out, box-shadow .3s ease, border-color .3s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.cert-card::after{
  content:"";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.cert-card:hover{
  border-color: rgba(255,159,74,0.3);
  box-shadow: 0 22px 40px rgba(0,0,0,0.42), 0 0 0 1px rgba(255,159,74,0.1);
}
.cert-card:hover::after{ opacity: 1; }
.cert-top{ display:flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; transform: translateZ(20px); }
.cert-top h4{
  font-family: var(--sans); font-weight: 600; font-size: .97rem;
  line-height: 1.35; margin:0;
}
.cert-year{
  font-family: var(--mono); font-size: 10.5px; color: var(--accent);
  background: rgba(255,159,74,0.08);
  border: 1px solid var(--accent-dim); border-radius: 4px;
  padding: 3px 7px; flex-shrink: 0; margin-top: 2px;
}
.cert-issuer{ color: var(--muted); font-size: .86rem; margin: 0 0 16px; transform: translateZ(14px); }
.verify-btn{
  margin-top: auto;
  align-self: flex-start;
  display:inline-flex; align-items:center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
  color: var(--trace);
  border: 1px solid var(--trace-dim);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  background: rgba(61,232,208,0.04);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cert-card .verify-btn{ transform: translateZ(26px); }
.verify-btn:hover{
  background: var(--trace); color: #041412; border-color: var(--trace);
  box-shadow: 0 4px 16px rgba(61,232,208,0.3);
  transform: translateY(-1px);
}
.verify-btn span{ transition: transform .2s ease; }
.verify-btn:hover span{ transform: translate(2px, -2px); }

@media (max-width: 980px){ .cert-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .cert-grid{ grid-template-columns: 1fr; } }

.cred-columns{ display:grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.cred-col h3{
  font-size: .88rem; color: var(--trace); margin-bottom: 18px;
  letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}
.cred-sub{ margin-top: 32px; }
.log-list li{
  display:flex; gap: 14px; padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink); font-size: .93rem;
  transition: background .2s ease, padding-left .2s ease;
}
.log-list li:hover{
  padding-left: 6px;
  background: linear-gradient(90deg, rgba(61,232,208,0.04), transparent);
}
.log-list li:last-child{ border-bottom: 1px solid var(--line); }
.log-year{
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
  min-width: 56px; flex-shrink:0; padding-top: 2px;
}
@media (max-width: 800px){ .cred-columns{ grid-template-columns: 1fr; gap: 36px; } }

/* ---------- contact ---------- */
.contact-grid{
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  perspective: 1400px;
}
.contact-card{
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(14,26,42,0.95) 0%, rgba(10,21,32,0.8) 100%);
  padding: 26px 26px; display:flex; flex-direction: column; gap: 10px;
  transform-style: preserve-3d;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 22px rgba(0,0,0,0.28);
  transition: transform .15s ease-out, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.contact-card::before{
  content:"";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(61,232,208,0.08), transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
}
.contact-card:hover{
  border-color: var(--trace);
  box-shadow: 0 24px 44px rgba(0,0,0,0.42), 0 0 0 1px var(--trace-dim), 0 0 32px rgba(61,232,208,0.08);
}
.contact-card:hover::before{ opacity: 1; }
.contact-label{
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
  letter-spacing: .1em; text-transform: uppercase;
  transform: translateZ(18px);
}
.contact-value{
  font-size: 1.02rem; color: var(--ink); word-break: break-word;
  transform: translateZ(14px); font-weight: 500;
}
@media (max-width: 640px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer{
  position: relative; z-index: 1;
  text-align:center; padding: 40px 24px 52px;
  color: var(--muted-2); font-family: var(--mono); font-size: 12px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(61,232,208,0.02));
}
.site-footer p{ margin: 0; letter-spacing: .04em; }

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--trace);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ---------- project video + stack order ---------- */
.project-card h3{ margin: 4px 36px 10px 0; }
.project-stack{ margin-bottom: 12px; }
.project-desc{ margin: 0 0 14px; }
.project-video{
  margin: 8px 0 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7,13,22,0.6);
  aspect-ratio: 16 / 9;
  position: relative;
}
.project-video iframe,
.project-video video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-placeholder{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  background:
    linear-gradient(135deg, rgba(14,26,42,0.9), rgba(10,21,32,0.95)),
    repeating-linear-gradient(0deg, transparent, transparent 11px, rgba(61,232,208,0.03) 11px, rgba(61,232,208,0.03) 12px);
}
.video-icon{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--trace-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--trace);
  font-size: 14px;
  background: rgba(61,232,208,0.08);
}
.project-video:has(iframe) .video-placeholder,
.project-video:has(video) .video-placeholder{ display: none; }

.cert-note{
  color: var(--muted);
  font-size: .82rem;
  margin: 0 0 14px;
  line-height: 1.45;
  flex-grow: 1;
}

/* ---------- experience ---------- */
.exp-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.exp-card{
  background: linear-gradient(165deg, rgba(14,26,42,0.95) 0%, rgba(10,21,32,0.8) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 12px 28px rgba(0,0,0,0.28);
  transition: border-color .3s ease, box-shadow .3s ease, transform .25s ease;
}
.exp-card:hover{
  border-color: var(--trace-dim);
  box-shadow: 0 22px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(61,232,208,0.1);
  transform: translateY(-3px);
}
.exp-head{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.exp-type{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--trace);
  background: rgba(61,232,208,0.08);
  border: 1px solid var(--trace-dim);
  border-radius: 999px;
  padding: 4px 10px;
}
.exp-date{
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}
.exp-card h3{
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.exp-org{
  color: var(--muted);
  font-size: .94rem;
  margin: 0 0 16px;
}
.exp-points{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-points li{
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}
.exp-points li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--trace);
  box-shadow: 0 0 6px var(--trace-glow);
  opacity: 0.8;
}
@media (max-width: 800px){
  .exp-grid{ grid-template-columns: 1fr; }
}

/* ---------- scroll reveal ---------- */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(0.22, 1, 0.36, 1), transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; }
}
