/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --bg:        #0A121D;
  --bg-deep:   #060B12;
  --surface:   rgba(15, 26, 42, 0.62);
  --surface-2: rgba(15, 26, 42, 0.4);
  --line:      #1E3348;
  --line-soft: #172A3B;

  --teal:      #17C9B4;
  --teal-dim:  #0C6E63;
  --amber:     #E8AE45;
  --amber-dim: #7A5A22;

  --text:      #E7EEF3;
  --muted:     #7F97AB;
  --muted-2:   #57677A;

  --display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --body:    'IBM Plex Sans', 'Segoe UI', sans-serif;
  --mono:    'IBM Plex Mono', 'Consolas', monospace;

  --maxw: 880px;
}

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

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  font-size:15.5px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}

/* =========================================================
   BACKGROUND CANVAS + SCANLINE
   ========================================================= */
#net-bg{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  background:
    radial-gradient(ellipse at 20% 0%, #0D1826 0%, var(--bg) 55%),
    var(--bg);
}

.scanline{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background:repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode:overlay;
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px;
  padding:16px clamp(18px,4vw,48px);
  background:rgba(9,15,24,0.78);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom:1px solid var(--line-soft);
}

.brand{ display:flex; align-items:center; gap:10px; font-family:var(--display); font-weight:600; letter-spacing:0.2px; white-space:nowrap; }
.brand-mark{
  width:9px; height:9px; border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 0 3px rgba(23,201,180,0.15), 0 0 10px rgba(23,201,180,0.7);
  flex:none;
}
.brand-name{ font-size:15px; }

.tabs{ display:flex; gap:6px; flex:1; justify-content:center; }
.tab-btn{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:0.3px;
  color:var(--muted);
  background:transparent;
  border:1px solid transparent;
  padding:8px 14px;
  border-radius:7px;
  cursor:pointer;
  display:flex; align-items:center; gap:8px;
  transition:color .2s ease, border-color .2s ease, background .2s ease;
}
.tab-idx{ color:var(--muted-2); font-size:11px; }
.tab-btn:hover{ color:var(--text); border-color:var(--line); }
.tab-btn.is-active{
  color:var(--teal);
  border-color:var(--teal-dim);
  background:rgba(23,201,180,0.06);
}
.tab-btn.is-active .tab-idx{ color:var(--teal); }
.tab-btn:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }

.conn-status{
  font-family:var(--mono); font-size:11px; color:var(--muted-2);
  display:flex; align-items:center; gap:7px; white-space:nowrap;
}
.pulse-dot{
  width:6px; height:6px; border-radius:50%; background:var(--amber);
  box-shadow:0 0 6px rgba(232,174,69,0.9);
  animation:pulse 2.6s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:0.45; transform:scale(0.85); }
  50%{ opacity:1; transform:scale(1.15); }
}

@media (max-width: 760px){
  .topbar{ flex-wrap:wrap; row-gap:10px; }
  .tabs{ order:3; width:100%; justify-content:flex-start; flex-wrap:wrap; row-gap:8px; }
  .conn-status{ display:none; }
}

/* =========================================================
   MAIN / PANELS
   ========================================================= */
main{
  position:relative; z-index:2;
  max-width:var(--maxw);
  margin:0 auto;
  padding:clamp(28px,5vw,56px) clamp(18px,4vw,24px) 60px;
}

.panel{ animation:fadeUp .5s ease both; }
.panel[hidden]{ display:none; }
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}

.eyebrow{
  font-family:var(--mono);
  font-size:12px;
  color:var(--teal);
  letter-spacing:0.5px;
  margin:0 0 10px 0;
  opacity:0.85;
}

.block{ margin-top:44px; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  display:flex; align-items:flex-start; justify-content:space-between; gap:32px;
}
.hero-text{ flex:1; min-width:0; }

.name{
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(34px, 5.4vw, 50px);
  line-height:1.04;
  margin:0 0 8px 0;
  letter-spacing:-0.5px;
  background:linear-gradient(100deg, #F2F7FA 0%, #C9DEE6 55%, #8FB9C4 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.role-tag{
  font-family:var(--mono);
  font-size:14px;
  color:var(--amber);
  letter-spacing:0.6px;
  margin:0 0 18px 0;
}
.role-tag .slash{ color:var(--muted-2); margin:0 3px; }

.hero-line{
  max-width:52ch;
  color:var(--muted);
  font-size:15px;
  line-height:1.65;
  margin:0 0 26px 0;
}

.hero-stats{ display:flex; gap:30px; flex-wrap:wrap; }
.stat{ display:flex; flex-direction:column; gap:2px; }
.stat-num{ font-family:var(--display); font-size:22px; font-weight:600; color:var(--text); }
.stat-label{ font-family:var(--mono); font-size:10.5px; color:var(--muted-2); letter-spacing:0.3px; text-transform:uppercase; }

.hero-photo{
  flex:none;
  width:112px; height:112px; border-radius:50%;
  overflow:hidden;
  border:1.5px solid var(--teal-dim);
  box-shadow:0 0 0 5px rgba(23,201,180,0.06), 0 8px 30px rgba(0,0,0,0.5);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; display:block; }

@media (max-width: 620px){
  .hero{ flex-direction:column-reverse; align-items:center; text-align:center; }
  .hero-line{ max-width:none; }
  .hero-stats{ justify-content:center; }
}

/* =========================================================
   TRACE DIVIDER
   ========================================================= */
.trace-divider{ width:100%; height:16px; margin:36px 0 4px; }
.trace-divider svg{ width:100%; height:100%; display:block; }

/* =========================================================
   PROSE / TYPOGRAPHY BLOCKS
   ========================================================= */
.prose{ color:var(--muted); max-width:68ch; font-size:14.5px; line-height:1.7; }
.section-title{ font-family:var(--display); font-size:26px; font-weight:600; margin:4px 0 14px; color:var(--text); }

/* =========================================================
   CORE EXPERTISE
   ========================================================= */
.expertise-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:22px;
}
@media (max-width:760px){ .expertise-grid{ grid-template-columns:1fr; } }

.expertise-group h3{
  font-family:var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:0.5px;
  color:var(--muted); font-weight:500; margin:0 0 10px 0;
  padding-bottom:8px; border-bottom:1px solid var(--line-soft);
}
.chips{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{
  font-family:var(--mono); font-size:11.5px;
  color:#BFE8E0;
  background:rgba(23,201,180,0.08);
  border:1px solid rgba(23,201,180,0.25);
  padding:4px 9px; border-radius:5px;
  white-space:normal;
  max-width:100%;
}

/* =========================================================
   EXPERIENCE TIMELINE
   ========================================================= */
.timeline{
  position:relative;
  padding-left:24px;
  border-left:1.5px dashed var(--line);
}
.role{ position:relative; margin-bottom:30px; }
.role:last-child{ margin-bottom:0; }

.node{
  position:absolute; left:-28.5px; top:4px;
  width:9px; height:9px; border-radius:50%;
  border:2px solid var(--bg);
}
.node.teal{ background:var(--teal); box-shadow:0 0 8px rgba(23,201,180,0.7); }
.node.amber{ background:var(--amber); box-shadow:0 0 8px rgba(232,174,69,0.7); }

.role-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.role-head h3{
  font-family:var(--display); font-size:17.5px; font-weight:600; margin:0; color:var(--text);
}
.dates{
  font-family:var(--mono); font-size:11.5px; color:var(--muted-2); white-space:nowrap;
}
.role-meta{
  margin:3px 0 10px 0; font-size:12.5px; color:var(--muted);
}
.role-meta strong{ color:#AFCBD6; font-weight:600; }

.role ul{ margin:0; padding-left:18px; }
.role li{
  font-size:13.8px; line-height:1.62; color:var(--muted);
  margin-bottom:6px;
}
.role li::marker{ color:var(--teal); }

@media (max-width:620px){
  .timeline{ padding-left:18px; }
  .node{ left:-22px; }
}

/* =========================================================
   TWO-COL (EDUCATION / RECOGNITIONS)
   ========================================================= */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.two-col .block{ margin-top:0; }
@media (max-width:700px){ .two-col{ grid-template-columns:1fr; gap:0; } }

.edu-item{ margin-bottom:14px; }
.edu-top{ display:flex; justify-content:space-between; gap:10px; font-size:13.5px; font-weight:600; color:var(--text); }
.edu-item p{ margin:2px 0 0; font-size:12.5px; color:var(--muted); }

.award{ display:flex; gap:10px; margin-bottom:14px; }
.award-mark{ color:var(--amber); font-size:13px; line-height:1.7; flex:none; }
.award p{ margin:0; font-size:13px; color:var(--muted); line-height:1.6; }
.award strong{ color:var(--text); }

/* =========================================================
   CONTACT PANEL
   ========================================================= */
.contact-intro{ margin-bottom:36px; }

.endpoints{
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
  margin-bottom:48px;
}
@media (max-width:700px){ .endpoints{ grid-template-columns:1fr; } }

.endpoint{
  display:flex; flex-direction:column; gap:6px;
  padding:18px 18px 16px;
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:10px;
  text-decoration:none;
  transition:border-color .2s ease, transform .2s ease, background .2s ease;
}
a.endpoint:hover{
  border-color:var(--teal-dim);
  background:rgba(23,201,180,0.05);
  transform:translateY(-2px);
}
.endpoint-tag{
  font-family:var(--mono); font-size:10.5px; letter-spacing:0.8px;
  color:var(--amber);
}
.endpoint-value{
  font-family:var(--body); font-size:14.5px; font-weight:500; color:var(--text);
  word-break:break-word;
}

.contact-form-wrap{ max-width:520px; }
.contact-form{ display:flex; flex-direction:column; gap:16px; }
.contact-form label{
  display:flex; flex-direction:column; gap:7px;
  font-family:var(--mono); font-size:11.5px; color:var(--muted); letter-spacing:0.3px;
}
.contact-form input,
.contact-form textarea{
  font-family:var(--body); font-size:14px; color:var(--text);
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:7px;
  padding:11px 13px;
  resize:vertical;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:none; border-color:var(--teal-dim);
  box-shadow:0 0 0 3px rgba(23,201,180,0.12);
}
.contact-form button{
  font-family:var(--mono); font-size:13px; letter-spacing:0.4px;
  color:#08171A;
  background:var(--teal);
  border:none; border-radius:7px;
  padding:12px 20px;
  cursor:pointer;
  width:fit-content;
  transition:filter .2s ease, transform .2s ease;
}
.contact-form button:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.contact-form button:focus-visible{ outline:2px solid var(--amber); outline-offset:2px; }
.form-note{ font-size:11.5px; color:var(--muted-2); margin:0; }

/* =========================================================
   BLOGS PANEL
   ========================================================= */
.blog-list{ display:flex; flex-direction:column; gap:26px; margin-top:8px; }

.blog-post{ display:flex; gap:16px; align-items:flex-start; }
.blog-post > .node-dot{
  flex:none; width:9px; height:9px; border-radius:50%; margin-top:8px;
}
.blog-post > .node-dot.teal{ background:var(--teal); box-shadow:0 0 8px rgba(23,201,180,0.7); }
.blog-post > .node-dot.amber{ background:var(--amber); box-shadow:0 0 8px rgba(232,174,69,0.7); }

.blog-post-body{ flex:1; min-width:0; }
.blog-date{
  font-family:var(--mono); font-size:11px; color:var(--muted-2); letter-spacing:0.3px;
}
.blog-post-body h3{
  font-family:var(--display); font-size:16.5px; font-weight:600;
  margin:4px 0 7px; color:var(--text); line-height:1.3;
}
.blog-post-body p{ font-size:13.5px; line-height:1.66; color:var(--muted); margin:0; max-width:68ch; }
.blog-post-body p em{ color:var(--muted-2); font-style:italic; }

/* Featured (first) post — with wheel graphic */
.blog-post--featured{
  flex-direction:column; gap:22px;
  padding:22px;
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:12px;
}
.blog-post-media{ display:flex; flex-direction:column; align-items:center; gap:14px; }
.wheel-art{ width:100%; max-width:180px; height:auto; }
.blog-post-media img{ width:100%; max-width:260px; height:auto; border-radius:8px; display:block; }
.wheel-legend{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:1fr 1fr; gap:6px 16px;
}
.wheel-legend li{
  display:flex; align-items:center; gap:6px;
  font-family:var(--mono); font-size:10.5px; color:var(--muted); white-space:nowrap;
}
.wheel-legend .dot{ width:7px; height:7px; border-radius:50%; flex:none; }
.wheel-legend .dot.teal{ background:var(--teal); }
.wheel-legend .dot.amber{ background:var(--amber); }
.blog-post--featured .blog-post-body h3{ font-size:21px; }

@media (min-width: 720px){
  .blog-post--featured{ flex-direction:row; align-items:center; }
  .blog-post--featured .blog-post-media{ flex:none; width:220px; }
  .blog-post--featured .blog-post-body{ flex:1; }
}

/* =========================================================
   DOWNLOADS PANEL
   ========================================================= */
.download-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:20px; margin-top:8px;
}

.download-card{
  display:flex; flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:12px;
  overflow:hidden;
}

.download-thumb{
  position:relative; display:block;
  aspect-ratio:16/9;
  background:var(--bg-deep);
  border-bottom:1px solid var(--line-soft);
}
.download-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.thumb-overlay{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:12px; letter-spacing:0.4px; color:var(--text);
  background:rgba(6,11,18,0.72);
  opacity:0; transition:opacity .2s ease;
}
.download-thumb:hover .thumb-overlay,
.download-thumb:focus-visible .thumb-overlay{ opacity:1; }
.download-thumb:focus-visible{ outline:2px solid var(--teal); outline-offset:-2px; }

.download-body{ padding:18px 20px 20px; display:flex; flex-direction:column; gap:8px; }

.file-tag{
  align-self:flex-start;
  font-family:var(--mono); font-size:10.5px; letter-spacing:0.6px;
  color:var(--amber);
  background:rgba(232,174,69,0.1);
  border:1px solid rgba(232,174,69,0.3);
  padding:3px 8px; border-radius:5px;
}

.download-body h3{
  font-family:var(--display); font-size:16.5px; font-weight:600;
  margin:2px 0 0; color:var(--text); line-height:1.32;
}
.download-body p{
  font-size:13px; line-height:1.6; color:var(--muted); margin:0;
}

.download-meta{
  font-family:var(--mono); font-size:11px; color:var(--muted-2);
  display:flex; align-items:center; gap:7px; margin:2px 0 4px;
}
.meta-sep{ color:var(--line); }

.download-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:4px; }

.download-btn{
  display:inline-flex; align-items:center; gap:7px;
  font-family:var(--mono); font-size:12.5px; letter-spacing:0.3px;
  color:#08171A;
  background:var(--teal);
  border:none; border-radius:7px;
  padding:10px 16px;
  text-decoration:none;
  transition:filter .2s ease, transform .2s ease;
}
.download-btn:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.download-btn:focus-visible{ outline:2px solid var(--amber); outline-offset:2px; }
.dl-icon{ width:13px; height:13px; flex:none; }

.download-btn-secondary{
  display:inline-flex; align-items:center;
  font-family:var(--mono); font-size:12.5px; letter-spacing:0.3px;
  color:var(--muted);
  background:transparent;
  border:1px solid var(--line);
  border-radius:7px;
  padding:10px 16px;
  text-decoration:none;
  transition:color .2s ease, border-color .2s ease;
}
.download-btn-secondary:hover{ color:var(--text); border-color:var(--teal-dim); }
.download-btn-secondary:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{
  position:relative; z-index:2;
  text-align:center;
  font-family:var(--mono); font-size:11px; color:var(--muted-2);
  padding:26px 20px 40px;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.dot-sep{ color:var(--line); }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  .pulse-dot{ animation:none; }
  .panel{ animation:none; }
  html{ scroll-behavior:auto; }
}
