/* ---------- Base ---------- */
:root{
  --bg: #ffffff;
  --bg-alt: #f2f4f9;
  --ink: #0a1f44;
  --ink-dim: #4a5578;
  --ink-faint: #8b93b3;
  --line: rgba(10,31,68,0.16);
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 999px;
}

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

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }

h1,h2,h3,p{ margin:0; }

/* ---------- AI voice agent: red mic button + callout ---------- */
.ai-mic-fab{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 220;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(200,16,46,0.65), 0 0 0 6px rgba(200,16,46,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ai-mic-fab:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 38px -10px rgba(200,16,46,0.75), 0 0 0 8px rgba(200,16,46,0.16);
}
.ai-mic-fab:active{ transform: translateY(0) scale(0.98); }
.ai-mic-fab:focus-visible{ outline: 3px solid var(--ink); outline-offset: 3px; }
.ai-mic-glyph{ position: relative; z-index: 1; display: flex; }
.ai-mic-ico{ width: 26px; height: 26px; }
.ai-mic-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.ai-mic-fab.is-active{ background: #a20d24; }
.ai-mic-fab.is-active .ai-mic-ring{ animation: aiMicPulse 1.5s ease-out infinite; }
@keyframes aiMicPulse{
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}
.ai-mic-fab.is-connecting .ai-mic-glyph{ animation: aiMicBlink 1s ease-in-out infinite; }
@keyframes aiMicBlink{ 0%,100%{ opacity: 1; } 50%{ opacity: 0.4; } }

.ai-mic-status{
  position: fixed;
  right: 98px;
  bottom: 40px;
  z-index: 220;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.ai-mic-status.show{ opacity: 1; transform: translateX(0); }

.ai-callout{
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 215;
  width: min(196px, calc(100vw - 40px));
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 10px 24px 11px 13px;
  box-shadow: 0 16px 34px -14px rgba(10,31,68,0.3);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.ai-callout.ai-callout-show{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* chevron toggle — sits to the left of the mic FAB */
.ai-panel-toggle{
  position: fixed;
  right: 94px;
  bottom: 32px;
  z-index: 221;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.16);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(10,31,68,0.6);
  transition: transform 0.2s ease, background 0.2s ease;
}
.ai-panel-toggle svg{ width: 16px; height: 16px; transition: transform 0.25s ease; }
.ai-panel-toggle:hover{ transform: translateY(-2px); }
.ai-panel-toggle.is-open svg{ transform: rotate(180deg); }
.ai-panel-toggle:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
.ai-callout.ai-callout-hide{
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
}
.ai-callout::after{
  content: "";
  position: absolute;
  right: 26px;
  bottom: -8px;
  width: 16px; height: 16px;
  background: #fff;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  border-radius: 3px;
}
.ai-callout-x{
  position: absolute;
  top: 3px; right: 6px;
  background: none;
  border: none;
  color: rgba(10,31,68,0.55);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.ai-callout-x:hover{ color: var(--ink); }
.ai-callout-wave{ display: inline-flex; vertical-align: -2px; color: var(--accent); }
.ai-callout-wave svg{ width: 13px; height: 13px; }
.ai-callout-body{
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink);
}
.ai-callout-body strong{ color: var(--ink); font-weight: 700; }
.ai-callout-credit{
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(10,31,68,0.18);
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(10,31,68,0.72);
}
.ai-callout-credit strong{ color: var(--ink); font-weight: 800; }
@media (prefers-reduced-motion: reduce){
  .ai-callout{ transition: none; }
  .ai-panel-toggle svg{ transition: none; }
  .ai-mic-fab.is-active .ai-mic-ring,
  .ai-mic-fab.is-connecting .ai-mic-glyph{ animation: none; }
}
@media (max-width: 560px){
  .ai-mic-fab{ right: 16px; bottom: 16px; }
  .ai-mic-status{ right: 86px; bottom: 32px; }
  .ai-callout{ bottom: 92px; right: 16px; }
  .ai-panel-toggle{ right: 84px; bottom: 24px; }
}

/* ---------- 3D background canvas ---------- */
#hero3d{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.display{ font-family: "Archivo Black", "Inter", sans-serif; }

/* ---------- Corner ticks ---------- */
.tick-frame{ position: relative; }
.tick{
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
}
.tick::before, .tick::after{
  content: "";
  position: absolute;
  background: var(--accent);
}
.tick::before{ width: 100%; height: 2px; top: 6px; left: 0; }
.tick::after{ width: 2px; height: 100%; left: 6px; top: 0; }
.tick-tl{ top: 18px; left: 18px; }
.tick-tr{ top: 18px; right: 18px; }
.tick-bl{ bottom: 18px; left: 18px; }
.tick-br{ bottom: 18px; right: 18px; }

.sq{
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- Cards ---------- */
.glass{
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 0 rgba(10,31,68,0.08);
}

/* ---------- Nav ---------- */
.nav-wrap{
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--ink);
}
.nav{
  width: min(1200px, 94vw);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.brand-mark{
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
}
.nav-links{
  display: flex;
  gap: 30px;
  margin: 0 auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-dim);
}
.nav-links a:hover{ color: var(--ink); }
.nav-cta{ font-size: 12.5px; padding: 11px 22px; }

.nav-social{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.nav-social svg{ width: 17px; height: 17px; fill: currentColor; }
.nav-social:hover{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(200,16,46,0.6);
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  width: 18px; height: 2px; background: var(--ink);
}
.nav-mobile{
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 8px 3vw 20px;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
}
.nav-mobile.open{ display: flex; }

/* ---------- Buttons ---------- */
.pill-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1.5px solid var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.pill-btn:hover{ transform: translateY(-2px); }
.pill-btn.primary{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pill-btn.ghost{
  background: transparent;
  color: var(--ink);
}
.pill-btn.ghost:hover{ background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  z-index: 1;
  padding: 150px 3vw 0;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 70px;
}
.eyebrow{
  display: flex;
  align-items: center;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 26px;
  font-weight: 700;
}
.hero-title{
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: clamp(46px, 6.4vw, 92px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow:
    1px 1px 0 rgba(10,31,68,0.14),
    2px 2px 0 rgba(10,31,68,0.11),
    3px 3px 0 rgba(10,31,68,0.08),
    5px 5px 0 rgba(10,31,68,0.05),
    8px 8px 18px rgba(10,31,68,0.14);
}
.accent-text{
  text-shadow:
    1px 1px 0 rgba(200,16,46,0.18),
    2px 2px 0 rgba(200,16,46,0.13),
    3px 3px 0 rgba(200,16,46,0.09),
    5px 5px 0 rgba(200,16,46,0.05),
    8px 8px 18px rgba(200,16,46,0.16);
}
.accent-text{ color: var(--accent); }
.hero-sub{
  margin-top: 30px;
  max-width: 460px;
  font-size: 16px;
  color: var(--ink-dim);
}
.hero-actions{
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-visual{
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
  position: relative;
}
/* ambient red glow behind/around the navy HUD panel (base fill untouched) */
.hero-visual::before{
  content: "";
  position: absolute;
  inset: -10% -8% -14% -8%;
  z-index: -1;
  background: radial-gradient(58% 52% at 62% 42%,
    rgba(200,16,46,0.14), rgba(200,16,46,0.05) 46%, transparent 72%);
  filter: blur(26px);
  pointer-events: none;
}
.visual-tile{
  background: var(--ink);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
}
.visual-icon{ width: 58%; height: 58%; }
.visual-caption{
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Hero HUD tile (dynamic capability rotator) ---------- */
.hud-tile{
  justify-content: space-between;
  gap: 0;
  padding: 22px 24px;
  overflow: hidden;
  position: relative;
}
.hud-tile::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 100% 26px,
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 26px 100%;
  opacity: 0.5;
  pointer-events: none;
}
.hud-top{
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hud-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: hudpulse 2s ease-in-out infinite;
}
@keyframes hudpulse{ 0%,100%{ opacity: 1; } 50%{ opacity: 0.4; } }
.hud-label{
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}
.hud-status{
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #4ade80;
  font-weight: 700;
}
.hud-rotator{
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 236px;
  z-index: 1;
}
.hud-slide{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.hud-slide.is-active{
  opacity: 1;
  transform: translateY(0) scale(1);
}
.hud-slide-head{
  display: flex;
  align-items: center;
  gap: 12px;
}
.hud-ico{ width: 42px; height: 42px; flex-shrink: 0; }
.hud-name{
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
/* ---- Live terminal inside each capability slide ---- */
.hud-term{
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  min-height: 132px;
  white-space: pre-wrap;
  word-break: break-word;
}
.hud-term .tl{ display: block; }
.hud-term .prompt{ color: #4ade80; font-weight: 600; }   /* terminal green */
.hud-term .cmd{ color: #eaf2ff; }
.hud-term .out{ color: rgba(255,255,255,0.62); }
.hud-term .ok{ color: #4ade80; }
.hud-term .warn{ color: #f5b301; }                        /* amber */
.hud-term .alert{ color: #ff6b7d; }                       /* on-brand red */
.hud-term .cursor{
  display: inline-block;
  width: 7px; height: 14px;
  margin-left: 2px;
  background: #4ade80;
  vertical-align: -2px;
  animation: hudCaret 1s steps(1) infinite;
}
@keyframes hudCaret{ 0%,50%{ opacity: 1; } 50.01%,100%{ opacity: 0; } }

/* Hover: green terminal-style glow + border pulse (no transform — the tile
   already carries a parallax transform from fx.js, so we glow via shadow). */
.hud-tile{ transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.hero-visual:hover .hud-tile,
.hud-tile:hover{
  border-color: rgba(74,222,128,0.55);
  box-shadow: 0 0 0 1px rgba(74,222,128,0.35),
              0 18px 46px -20px rgba(74,222,128,0.45),
              inset 0 0 26px rgba(74,222,128,0.06);
}
.hud-ticks{
  display: flex;
  gap: 7px;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hud-tick{
  width: 22px; height: 4px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: background 0.4s ease, width 0.4s ease;
}
.hud-tick:hover{ background: rgba(255,255,255,0.45); }
.hud-tick.is-active{
  background: var(--accent);
  width: 30px;
}
.hud-tick:focus-visible{ outline: 2px solid #4ade80; outline-offset: 3px; }

/* ---------- Skill card icons + proficiency bars ---------- */
.skill-icon{
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--sk, var(--accent));
  margin-right: 9px;
  vertical-align: middle;
}
.skill-card h3{ display: flex; align-items: center; }
.prof{ display: flex; flex-direction: column; gap: 15px; }
.prof-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 7px;
}
.prof-level{
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.prof-track{
  height: 7px;
  background: var(--bg-alt);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.prof-fill{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ink), var(--accent));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.skill-card.in .prof-fill{ transform: scaleX(var(--lvl, 0.5)); }

.stat-cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-card{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  background: #fff;
}
.stat-num{
  font-family: "Archivo Black", sans-serif;
  font-size: 26px;
  color: var(--ink);
}
.stat-label{
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

/* Logo strip */
.logo-strip{
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-top: 1.5px solid var(--ink);
  flex-wrap: wrap;
}
.logo-strip-label{
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-faint);
  white-space: nowrap;
}
.logo-track{
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-right: auto;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  opacity: 0.82;
}
.logo-arrows{ display: flex; gap: 10px; }
.logo-arrows button{
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.logo-arrows button:hover{ background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
.section{
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 110px 3vw;
}
.section-eyebrow{
  display: flex;
  align-items: center;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-title{
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 640px;
  position: relative;
}
.section-title::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 66px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s;
}
.section-title.in::after{ transform: scaleX(1); }

/* Scroll progress bar */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), #ff5a72);
  z-index: 200;
  pointer-events: none;
}

/* About */
.about-copy{
  margin-top: 28px;
  max-width: 720px;
  font-size: 17px;
  color: var(--ink-dim);
}
.cert-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.cert-chip{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.cert-chip .dot{
  width: 7px; height: 7px;
  background: var(--accent);
}
.cert-chip.muted{ color: var(--ink-faint); border-style: dashed; }
.cert-chip.muted .dot{ background: var(--ink-faint); }
a.cert-chip{ transition: transform 0.2s ease, background 0.2s ease; }
a.cert-chip:hover{ transform: translateY(-2px); background: var(--ink); color: #fff; }
a.cert-chip:hover .ext{ opacity: 1; }
.cert-chip .ext{
  font-size: 11px;
  opacity: 0.45;
}

/* Timeline */
.timeline{
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.timeline-card{ padding: 34px 36px; }
.tl-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tl-head h3{ font-size: 20px; font-weight: 800; }
.tl-note{ font-weight: 400; color: var(--ink-faint); font-size: 14px; }
.tl-company{ margin-top: 4px; color: var(--ink-dim); font-size: 14px; font-weight: 500; }
.tl-date{
  font-size: 12.5px;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
}
.timeline-card ul{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline-card li{
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink-dim);
}
.timeline-card li::before{
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 7px; height: 7px;
  background: var(--accent);
}

/* Skills */
.skills-grid{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.skill-card{ padding: 28px; }
.skill-card.wide{ grid-column: span 3; }
.skill-card h3{
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}
.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span{
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

/* Projects */
.project-grid{
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.project-card{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 36px 40px;
  transition: transform 0.2s ease;
}
a.project-card:hover{ transform: translateY(-3px); }
.project-card-head{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.project-tag{
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}
.project-card h3{ font-size: 20px; font-weight: 800; line-height: 1.3; }
.project-card p{ font-size: 14.5px; line-height: 1.7; color: var(--ink-dim); }
.project-card .tags{ margin-top: 20px; }
.project-live-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}
a.project-card:hover .project-live-link{ color: var(--accent); border-color: var(--accent); }
.project-links{ display: flex; flex-wrap: wrap; gap: 16px; }
a.project-live-link{ cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease; }
a.project-live-link:hover{ color: var(--accent); border-color: var(--accent); }
.project-card.has-shot{ grid-template-rows: auto auto; }
.project-card-shot{
  grid-column: 1 / -1;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.project-card-shot img{
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
  object-position: top;
}
.project-card-meta{
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}
.project-disclaimer{
  margin-top: 20px;
  padding: 14px 18px;
  border: 1.5px dashed var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 760px;
}
.project-disclaimer strong{ color: var(--ink); font-weight: 700; }

/* Portfolio slider — AI web apps built through JURIS AI */
.portfolio-block{ margin-top: 56px; }
.portfolio-block-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.portfolio-block-title{
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.portfolio-block-copy{
  margin-top: 10px;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.portfolio-nav-group{ display: flex; gap: 10px; flex-shrink: 0; }
.portfolio-nav{
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.portfolio-nav svg{ width: 18px; height: 18px; }
.portfolio-nav:hover:not(:disabled){ background: var(--ink); color: #fff; transform: translateY(-2px); }
.portfolio-nav:active:not(:disabled){ transform: translateY(0); }
.portfolio-nav:disabled{ opacity: 0.32; cursor: default; }

.portfolio-track{
  margin-top: 28px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 2px 14px;
  cursor: grab;
}
.portfolio-track::-webkit-scrollbar{ display: none; }
.portfolio-track.dragging{ cursor: grabbing; scroll-snap-type: none; }
.portfolio-track.dragging img{ pointer-events: none; }

.portfolio-card{
  flex: 0 0 auto;
  width: min(84vw, 360px);
  scroll-snap-align: start;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(10,31,68,0.08);
  transition: transform 0.28s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.portfolio-card:hover{
  transform: translateY(-6px);
  border-color: var(--pf-accent, var(--accent));
  box-shadow: 0 20px 40px -20px rgba(10,31,68,0.35), 6px 6px 0 var(--pf-accent, var(--accent));
}
.portfolio-chrome{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1.5px solid var(--line);
}
.portfolio-dot{ width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.portfolio-dot:nth-child(1){ background: #ff5f57; }
.portfolio-dot:nth-child(2){ background: #febc2e; }
.portfolio-dot:nth-child(3){ background: #28c840; }
.portfolio-shot{ position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.portfolio-shot img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  user-select: none;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.portfolio-card:hover .portfolio-shot img{ transform: scale(1.05); }
.portfolio-view{
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 12px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--pf-accent, var(--accent));
  box-shadow: 0 12px 26px -8px rgba(10,31,68,0.5);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.portfolio-view svg{ width: 13px; height: 13px; }
.portfolio-card:hover .portfolio-view{ opacity: 1; transform: translate(-50%, 0); }
.portfolio-meta{ padding: 16px 18px 20px; }
.portfolio-meta-top{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.portfolio-chip{
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pf-accent, var(--accent));
  background: rgba(var(--pf-accent-rgb, 200,16,46), 0.12);
  border: 1px solid rgba(var(--pf-accent-rgb, 200,16,46), 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}
.portfolio-arrow{ width: 16px; height: 16px; color: var(--ink-faint); transition: transform 0.25s ease, color 0.25s ease; }
.portfolio-card:hover .portfolio-arrow{ color: var(--pf-accent, var(--accent)); transform: translate(2px,-2px); }
.portfolio-meta h4{ margin-top: 2px; font-size: 16px; font-weight: 800; color: var(--ink); }
.portfolio-meta p{ margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--ink-dim); }

@media (max-width: 560px){
  .portfolio-block-head{ align-items: flex-start; }
}

@media (max-width: 780px){
  .project-card{ grid-template-columns: 1fr; gap: 20px; }
}

.edu-eyebrow{ margin-top: 88px; }
.edu-grid{
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.edu-card{ padding: 28px 30px; }
.edu-top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.edu-card h3{ font-size: 16px; font-weight: 800; }
.edu-card p{ margin-top: 8px; color: var(--ink-dim); font-size: 14px; }
.edu-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
.edu-link:hover{ opacity: 0.7; }

/* Contact */
.contact-section{ padding-bottom: 40px; }
.contact-panel{
  background: var(--accent) !important;
  border-color: var(--ink) !important;
  padding: 76px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 6px 6px 0 rgba(10,31,68,0.85) !important;
}
.contact-panel .section-eyebrow{ color: var(--accent-ink); justify-content: center; }
.contact-panel .sq{ background: var(--accent-ink); }
.contact-title{
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 5vw, 50px);
  letter-spacing: -0.01em;
  margin-top: 14px;
  color: #fff;
}
.contact-copy{
  margin-top: 16px;
  color: #ffffff;
  font-weight: 600;
  max-width: 480px;
  opacity: 0.92;
}
.contact-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}
.contact-panel .pill-btn{ background: #fff; border-color: var(--ink); color: var(--ink); }
.contact-panel .pill-btn:hover{ background: var(--ink); color: #fff; }
.contact-panel .pill-btn.primary{ background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-panel .pill-btn.primary:hover{ background: #fff; color: var(--ink); }

.contact-divider{
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 460px;
  margin: 40px 0 30px;
  color: #fff;
}
.contact-divider::before,
.contact-divider::after{
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.3);
}
.contact-divider span{
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  white-space: nowrap;
}

.contact-form{
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label{
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-field label .optional{
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.75;
}
.form-field input,
.form-field textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.form-field textarea{ resize: vertical; min-height: 90px; }
.form-field input:hover,
.form-field textarea:hover{ transform: translateY(-1px); }
.form-field input:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.35);
  transform: translateY(-1px);
}
.form-field input:invalid:not(:placeholder-shown){ border-color: #ffb4bf; }
.form-submit{
  align-self: center;
  margin-top: 6px;
  cursor: pointer;
}
.form-status{
  min-height: 18px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  opacity: 0.92;
}

/* Footer */
.footer{
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: #fff;
}
.footer-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 3vw 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.footer .brand-mark{ stroke: var(--accent); }
.footer-cols{
  display: flex;
  gap: 64px;
}
.footer-cols h4{
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b93c0;
  margin-bottom: 14px;
}
.footer-cols a{
  display: block;
  font-size: 13.5px;
  color: #d4d8ec;
  margin-bottom: 10px;
  font-weight: 500;
}
.footer-cols a:hover{ color: var(--accent); }
.footer-copy{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 3vw 32px;
  font-size: 12px;
  color: #5c6690;
}

/* ---------- Reveal animation ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

/* Staggered 3D reveal (delays set inline by fx.js) */
.skills-grid, .stat-cards, .cert-row, .post-grid{ perspective: 1200px; }
.reveal-3d{
  opacity: 0;
  transform: translateY(34px) rotateX(9deg);
  transform-origin: top center;
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-3d.in{
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ---------- Hero floating shapes ---------- */
.hero-shapes{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.shape{ position: absolute; will-change: transform; }
.shape::before{
  content: "";
  display: block;
  animation: floaty 9s ease-in-out infinite alternate;
}
.shape-sq::before{
  width: 52px; height: 52px;
  border: 2px solid rgba(200,16,46,0.30);
  transform: rotate(12deg);
}
.shape-ring::before{
  width: 88px; height: 88px;
  border: 2px solid rgba(200,16,46,0.30);
  border-radius: 50%;
}
.shape-plus::before{
  content: "+";
  font: 800 46px/1 "Inter", sans-serif;
  color: rgba(200,16,46,0.20);
  animation-duration: 7s;
}
.shape-dot::before{
  width: 13px; height: 13px;
  background: rgba(200,16,46,0.28);
  animation-duration: 11s;
}
.shape-dot.alt::before{
  width: 9px; height: 9px;
  background: rgba(10,31,68,0.20);
}
@keyframes floaty{
  from{ transform: translateY(-12px) rotate(0deg); }
  to{ transform: translateY(14px) rotate(8deg); }
}

/* ---------- Ghost section numbers (scroll parallax) ---------- */
.ghost-num{
  position: absolute;
  top: 30px;
  right: 0;
  z-index: -1;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(110px, 16vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(10,31,68,0.08);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* ---------- Card tilt elevation + holo shine ---------- */
.js-tilt{
  transform-style: preserve-3d;
  position: relative;
}
.js-tilt.tilting{
  box-shadow: 0 26px 52px -22px rgba(10,31,68,0.4) !important;
}
.js-tilt::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background:
    radial-gradient(circle at var(--shx, 50%) var(--shy, 50%),
      rgba(255,255,255,0.55), rgba(255,255,255,0.08) 42%, transparent 65%),
    linear-gradient(115deg, transparent 30%,
      rgba(89,150,255,0.06) 44%, rgba(200,16,46,0.05) 55%, transparent 70%);
}
.js-tilt.tilting::after{ opacity: 1; }

/* ---------- Tactile CTAs ---------- */
.pill-btn{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), background 0.2s ease, box-shadow 0.25s ease, color 0.2s ease;
}
.pill-btn::before{
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
  z-index: 1;
}
.pill-btn > *{ position: relative; z-index: 2; }
.pill-btn:hover::before{ left: 130%; }
.pill-btn:hover{
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 14px 28px -10px rgba(10,31,68,0.45);
}
.pill-btn.primary:hover{
  box-shadow: 0 16px 32px -8px rgba(200,16,46,0.55);
}
.pill-btn:active{
  transform: translateY(1px) scale(0.985);
  box-shadow: 0 3px 8px -5px rgba(10,31,68,0.35);
  transition-duration: 0.06s;
}
.pill-btn:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Other interactive controls: consistent lift + scale ---------- */
.nav-social,
.ai-panel-toggle,
.logo-arrows button,
.hud-tick{
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav-social:hover{ transform: translateY(-2px) scale(1.1); }
.nav-social:active{ transform: translateY(0) scale(0.95); }
.ai-panel-toggle:hover{ transform: translateY(-2px) scale(1.1); }
.logo-arrows button:hover{ transform: scale(1.12); box-shadow: 0 8px 18px -8px rgba(10,31,68,0.4); }
.logo-arrows button:active{ transform: scale(0.94); }
.hud-tick:hover{ transform: scaleY(1.8); }
.hud-tick.is-active:hover{ transform: scaleY(1.4); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-3d{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .shape::before{ animation: none; }
  .scroll-cue span{ animation: none; }
  .pill-btn, .js-tilt, .nav-social, .ai-panel-toggle, .logo-arrows button, .hud-tick{ transition: none; }
  .pill-btn:hover, .nav-social:hover, .ai-panel-toggle:hover, .logo-arrows button:hover, .hud-tick:hover{ transform: none; }
  .pill-btn::before{ transition: none; }
  .pill-btn:hover::before{ left: -60%; }
  .section-title::after{ transition: none; transform: scaleX(1); }
  .hud-dot{ animation: none; }
  .hud-slide{ transition: none; }
  .prof-fill{ transition: none; transform: scaleX(var(--lvl, 0.5)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ flex-direction: row; }
  .visual-tile{ flex: 1; aspect-ratio: auto; min-height: 220px; }
  .stat-cards{ flex: 1; grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px){
  .nav-links{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-cta{ display: none; }
  .nav-social{ margin-left: auto; width: 34px; height: 34px; }
  .skills-grid{ grid-template-columns: repeat(2, 1fr); }
  .skill-card.wide{ grid-column: span 2; }
  .edu-grid{ grid-template-columns: 1fr; }
  .hero-visual{ flex-direction: column; }
}
@media (max-width: 560px){
  .skills-grid{ grid-template-columns: 1fr; }
  .skill-card.wide{ grid-column: span 1; }
  .section{ padding: 90px 5vw; }
  .hero{ padding: 130px 5vw 0; }
  .stat-cards{ grid-template-columns: repeat(2,1fr); }
  .form-row{ grid-template-columns: 1fr; }
}

/* ---------- Blog listing ---------- */
.page-header{
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 150px 3vw 70px;
}
.page-header .section-title{ max-width: 720px; }
.page-header .hero-sub{ margin-top: 24px; max-width: 560px; }

/* ============================================================
   Thoughts feed — X-style timeline inside a terminal window
   ============================================================ */
.feed-page{
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 5vw 90px;
}
.feed-head{ margin-bottom: 30px; }
.feed-head .hero-sub{ margin-top: 20px; }
.feed-head code, .feed-item-body code, .feed-empty code{
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(10,31,68,0.08);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ---- terminal window shell ---- */
.term-window{
  background: var(--ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(10,31,68,0.55), 0 0 0 1px rgba(10,31,68,0.9);
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
.term-bar{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.term-dots{ display: inline-flex; gap: 6px; }
.term-dots .td{ width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-dots .r{ background: #ff5f57; }
.term-dots .y{ background: #febc2e; }
.term-dots .g{ background: #28c840; }
.term-path{
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.term-live{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
}
.term-live-dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
  animation: feedPulse 2s ease-in-out infinite;
}
@keyframes feedPulse{ 0%,100%{ opacity:1; } 50%{ opacity:0.35; } }
.term-body{ padding: 20px 20px 8px; }

/* ---- profile block ---- */
.feed-profile{ display: flex; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.feed-avatar{
  flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 22px; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, #14315f, var(--ink));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.14), 0 0 0 3px rgba(200,16,46,0.22);
}
.feed-name{
  font-family: "Inter", sans-serif;
  font-weight: 800; font-size: 16px; color: #fff;
  display: flex; align-items: center; gap: 6px;
}
.feed-check{ width: 16px; height: 16px; color: var(--accent); }
.feed-handle{ font-size: 12.5px; color: #4ade80; margin-top: 1px; }
.feed-bio{
  font-family: "Inter", sans-serif;
  font-size: 12.5px; color: rgba(255,255,255,0.66); margin-top: 7px; line-height: 1.5;
}
.feed-stats{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 9px; font-size: 11.5px; color: rgba(255,255,255,0.5); }
.feed-stats b{ color: rgba(255,255,255,0.85); }
.feed-online{ display: inline-flex; align-items: center; gap: 6px; color: #4ade80; }
.feed-online i{ width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }

/* ---- command prompt ---- */
.feed-cmd{
  display: flex; align-items: center; gap: 9px;
  margin-top: 16px; padding: 11px 13px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
}
.feed-cmd:focus-within{ border-color: rgba(74,222,128,0.5); box-shadow: 0 0 0 3px rgba(74,222,128,0.1); }
.feed-prompt{ color: #4ade80; font-size: 12.5px; white-space: nowrap; user-select: none; }
.feed-cmd-wrap{ position: relative; flex: 1; display: flex; align-items: center; }
.feed-cmd-input{
  flex: 1; width: 100%;
  background: none; border: none; outline: none;
  color: #eaf2ff; font-family: inherit; font-size: 12.5px;
  caret-color: #4ade80;
}
.feed-cmd-input::placeholder{ color: rgba(255,255,255,0.32); }
.feed-caret{
  width: 8px; height: 15px; margin-left: 1px; background: #4ade80; flex-shrink: 0;
  animation: feedCaret 1.05s steps(1) infinite;
}
.feed-cmd-wrap.typing .feed-caret, .feed-cmd:focus-within .feed-caret{ display: none; }
@keyframes feedCaret{ 0%,50%{ opacity:1; } 50.01%,100%{ opacity:0; } }
.feed-cmd-out{
  min-height: 16px; margin: 8px 2px 0;
  font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,0.6);
  white-space: pre-wrap;
}
.feed-cmd-out.ok{ color: #4ade80; }
.feed-cmd-out.err{ color: #ff6b7d; }

/* ---- tag chips ---- */
.feed-tags{ display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 4px; }
.feed-tag{
  font-family: inherit; font-size: 11.5px; color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
}
.feed-tag:hover{ color: #fff; border-color: rgba(255,255,255,0.25); }
.feed-tag.active{ color: #fff; background: var(--accent); border-color: var(--accent); }

/* ---- feed items ---- */
.feed-list{ margin-top: 4px; }
.feed-item{
  display: flex; gap: 12px;
  padding: 18px 2px;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: feedIn 0.5s ease both;
}
@keyframes feedIn{ from{ opacity:0; transform: translateY(10px); } to{ opacity:1; transform:none; } }
.feed-item-av{
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Archivo Black", sans-serif; font-size: 16px; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, #14315f, var(--ink));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.12);
}
.feed-item-main{ flex: 1; min-width: 0; }
.feed-pin{ display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: rgba(255,255,255,0.45); margin-bottom: 6px; letter-spacing: 0.04em; }
.feed-pin svg{ width: 11px; height: 11px; }
.feed-item-head{ display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.fi-name{ font-family: "Inter", sans-serif; font-weight: 700; font-size: 14px; color: #fff; }
.fi-handle, .fi-sep, .fi-time{ font-size: 12px; color: rgba(255,255,255,0.42); }
.fi-time{ cursor: default; }
.feed-item-cmd{ font-size: 11px; color: rgba(74,222,128,0.75); margin: 6px 0 4px; }
.feed-item-cmd::before{ content: ""; }
.feed-item-body{
  font-family: "Inter", sans-serif;
  font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.9);
  word-wrap: break-word;
}
.feed-item-body a{ color: #7fb0ff; text-decoration: underline; text-underline-offset: 2px; }
.feed-item-body .t-tag{
  font: inherit; color: var(--accent); background: none; border: none; padding: 0; cursor: pointer;
  font-weight: 600;
}
.feed-item-body .t-tag:hover{ text-decoration: underline; }
.feed-item-link{
  display: inline-block; margin-top: 9px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; color: #4ade80;
  border-bottom: 1px solid rgba(74,222,128,0.4); padding-bottom: 1px;
}
.feed-item-link:hover{ color: #fff; border-color: #fff; }

/* ---- item actions ---- */
.feed-actions{ display: flex; gap: 20px; margin-top: 13px; }
.feed-act{
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 2px 0;
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: rgba(255,255,255,0.45); transition: color .18s;
}
.feed-act svg{ width: 15px; height: 15px; }
.feed-act:hover{ color: #fff; }
.feed-act.star:hover{ color: var(--accent); }
.feed-act.star.on{ color: var(--accent); }
.feed-act.star.on svg{ fill: var(--accent); }
.feed-act.ok{ color: #4ade80; }
.feed-act.pop svg{ animation: feedPop 0.4s ease; }
@keyframes feedPop{ 0%{ transform: scale(1); } 40%{ transform: scale(1.4); } 100%{ transform: scale(1); } }

.feed-empty{
  padding: 26px 4px; text-align: center;
  font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: rgba(255,255,255,0.5);
}
.feed-empty code{ background: rgba(255,255,255,0.08); color: #4ade80; }

@media (prefers-reduced-motion: reduce){
  .term-live-dot, .feed-caret, .feed-item, .feed-act.pop svg{ animation: none; }
  .feed-caret{ opacity: 1; }
}
@media (max-width: 560px){
  .feed-page{ padding-top: 120px; }
  .feed-actions{ gap: 16px; }
  .term-body{ padding: 16px 14px 6px; }
}

.post-grid{
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-grid > .post-card:only-child{
  grid-column: 1 / -1;
  max-width: 420px;
}
.post-card{
  padding: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-meta{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.post-tag{
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}
.post-date{
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 600;
}
.post-card h3{ font-size: 19px; font-weight: 800; line-height: 1.3; }
.post-card p{ margin-top: 12px; font-size: 14px; color: var(--ink-dim); flex-grow: 1; }
.post-read{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
}
.post-card:hover .post-read{ color: var(--accent); border-color: var(--accent); }

/* ---------- Article page ---------- */
.article{
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 5vw 100px;
}
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-dim);
  margin-bottom: 32px;
}
.back-link:hover{ color: var(--accent); }
.article-title{
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 20px;
}
.article-dek{
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-dim);
}
.article-meta{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}
.article-meta time{ color: var(--ink-dim); }
.article-meta .dot{
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.article-body{
  margin-top: 48px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-dim);
}
.article-body h2{
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 44px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.article-body p{ margin-bottom: 18px; }
.article-body ul, .article-body ol{
  margin: 0 0 18px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body ul{ list-style: none; padding-left: 0; }
.article-body ul li{
  position: relative;
  padding-left: 22px;
}
.article-body ul li::before{
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  background: var(--accent);
}
.article-body ol{ list-style: decimal; padding-left: 22px; }
.article-body strong{ color: var(--ink); font-weight: 700; }
.article-cta{
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1.5px solid var(--ink);
}

@media (max-width: 860px){
  .post-grid{ grid-template-columns: 1fr; }
}
