/* ============================================================
   Dhairya Patel — terminal portfolio
   hand-rolled CSS · no frameworks
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #070b10;
  --bg-2: #0a0f16;
  --panel: #0d141d;
  --panel-2: #111a25;
  --border: #1c2836;
  --border-bright: #2b3d51;

  --text: #d6e2ee;
  --text-dim: #8fa3b8;
  --muted: #5c7186;

  --green: #2ee88e;
  --green-dim: #18a05e;
  --cyan: #5ad7e6;
  --yellow: #ffc66d;
  --magenta: #c792ea;
  --orange: #ffb454;
  --red: #ff6b6b;

  --glow-green: rgba(46, 232, 142, 0.14);
  --glow-cyan: rgba(90, 215, 230, 0.10);

  --font: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 58px;
  --radius: 12px;
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.boot-lock {
  overflow: hidden;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

a {
  color: var(--green);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green-dim);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- ambient fx layers ---------- */
.fx-glow {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 18% 12%, var(--glow-green), transparent 70%),
    radial-gradient(35% 30% at 85% 80%, var(--glow-cyan), transparent 70%),
    radial-gradient(30% 30% at 70% 15%, rgba(199, 146, 234, 0.05), transparent 70%);
  animation: glow-drift 36s var(--ease) infinite alternate;
}

.fx-scanlines {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.16) 0px,
    rgba(0, 0, 0, 0.16) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.45;
}

.fx-vignette {
  position: fixed;
  inset: 0;
  z-index: 9991;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 40%, transparent 60%, rgba(0, 0, 0, 0.42) 100%);
}

@keyframes glow-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(3%, -2%, 0) scale(1.08);
  }
}

/* ---------- prompt fragments ---------- */
.p-user {
  color: var(--green);
  font-weight: 600;
}
.p-host {
  color: var(--cyan);
  font-weight: 600;
}
.p-path {
  color: var(--magenta);
}
.p-dim {
  color: var(--muted);
}
.p-cmd {
  color: var(--text);
  font-weight: 600;
}

/* blinking cursor */
.cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--green);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.ok-dot {
  color: var(--green);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 8px var(--green);
  }
  50% {
    opacity: 0.45;
    text-shadow: none;
  }
}

/* ---------- buttons / chips ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--green);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background: var(--green);
  color: #04130b;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(46, 232, 142, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(46, 232, 142, 0.08);
  box-shadow: 0 6px 24px rgba(46, 232, 142, 0.15);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

/* ---------- boot screen ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot.hide {
  opacity: 0;
  visibility: hidden;
}

.boot-inner {
  width: min(720px, 92vw);
}

.boot-log {
  margin: 0;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  min-height: 260px;
}

.boot-log .ok-tag {
  color: var(--green);
  font-weight: 600;
}
.boot-log .boot-dim {
  color: var(--muted);
}
.boot-log .boot-line {
  display: block;
}
.boot-log .boot-welcome {
  color: var(--green);
  font-weight: 700;
  margin-top: 8px;
}

.boot-skip {
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  animation: blink 1.6s steps(1) infinite;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(7, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
}

.brand-cursor {
  color: var(--green);
  margin-right: 8px;
  animation: blink 1.05s steps(1) infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a:not(.btn) {
  position: relative;
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-pre {
  color: transparent;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}
.nav-links a:not(.btn):hover .nav-pre {
  color: var(--green-dim);
}

.nav-links a.active {
  color: var(--green);
}
.nav-links a.active .nav-pre {
  color: var(--green);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--green);
  transition: right 0.3s var(--ease);
}

.nav-links a.active::after {
  right: 0;
}

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--green);
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}

/* mobile nav */
@media (max-width: 880px) {
  .nav-burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 24px 20px;
    background: rgba(7, 11, 16, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a:not(.btn) {
    padding: 8px 0;
    font-size: 15px;
    width: 100%;
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-resume {
    margin-top: 10px;
  }
}

/* ---------- window chrome ---------- */
.window {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-r {
  background: #ff5f56;
}
.dot-y {
  background: #ffbd2e;
}
.dot-g {
  background: #27c93f;
}

.window-title {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  /* compensate the dots so the title is optically centered */
  margin-right: 52px;
}

.window-body {
  padding: 28px clamp(18px, 4vw, 44px);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 40px;
}

.hero .container {
  width: 100%;
}

.hero-window {
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(46, 232, 142, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hero-prompt {
  margin: 0 0 22px;
  font-size: 15px;
}

#hero-cmd {
  color: var(--text);
  font-weight: 600;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms);
}

.hero-in .hero-reveal {
  opacity: 1;
  transform: none;
}

.ascii {
  margin: 0;
  font-size: clamp(6.5px, 1.55vw, 13.5px);
  line-height: 1.22;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green) 10%, var(--cyan) 65%, var(--magenta) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(46, 232, 142, 0.22));
  user-select: none;
}

.ascii-2 {
  margin-top: 4px;
  opacity: 0.92;
}

.hero-role {
  margin: 26px 0 0;
  font-size: clamp(17px, 2.4vw, 23px);
  font-weight: 700;
  color: var(--green);
  min-height: 1.5em;
}

#role-text {
  color: var(--green);
  text-shadow: 0 0 18px rgba(46, 232, 142, 0.35);
}

.hero-tagline {
  margin: 14px 0 0;
  max-width: 640px;
  color: var(--text-dim);
  font-size: 15px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 38px;
  margin-top: 30px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  text-shadow: 0 0 16px rgba(46, 232, 142, 0.25);
  line-height: 1.2;
}

.stat-label {
  font-size: 12.5px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.scroll-hint {
  display: block;
  width: fit-content;
  margin: 36px auto 0;
  color: var(--muted);
  font-size: 18px;
  animation: bob 2s ease-in-out infinite;
}

.scroll-hint:hover {
  color: var(--green);
}

@keyframes bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

/* ---------- sections ---------- */
.section {
  padding: 110px 0;
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

.section-head {
  margin: 0 0 44px;
  font-size: clamp(15px, 2.2vw, 19px);
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.section-head::before {
  content: '──╮';
  display: block;
  color: var(--border-bright);
  font-size: 13px;
  margin-bottom: 10px;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 34px;
  align-items: start;
}

.about-text p {
  margin: 0 0 18px;
  color: var(--text-dim);
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.md-h {
  color: var(--magenta);
  font-weight: 700;
  font-size: 19px;
}

.md-quote {
  border-left: 3px solid var(--green-dim);
  padding-left: 16px;
  color: var(--muted);
  font-style: italic;
}

/* neofetch card */
.neofetch {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.neofetch-head {
  font-weight: 700;
  font-size: 15px;
}

.neofetch-rule {
  display: block;
  color: var(--border-bright);
  overflow: hidden;
  white-space: nowrap;
}

.neofetch-list {
  margin: 14px 0 0;
}

.neofetch-list > div {
  display: flex;
  gap: 10px;
  padding: 3px 0;
  font-size: 13.5px;
}

.neofetch-list dt {
  color: var(--cyan);
  font-weight: 600;
  min-width: 74px;
}

.neofetch-list dt::after {
  content: ':';
  color: var(--muted);
}

.neofetch-list dd {
  margin: 0;
  color: var(--text-dim);
}

.neofetch-colors {
  display: flex;
  gap: 6px;
  margin-top: 18px;
}

.neofetch-colors span {
  width: 22px;
  height: 12px;
  border-radius: 3px;
}

.neofetch-colors span:nth-child(1) { background: #ff6b6b; }
.neofetch-colors span:nth-child(2) { background: #ffb454; }
.neofetch-colors span:nth-child(3) { background: #ffc66d; }
.neofetch-colors span:nth-child(4) { background: #2ee88e; }
.neofetch-colors span:nth-child(5) { background: #5ad7e6; }
.neofetch-colors span:nth-child(6) { background: #c792ea; }
.neofetch-colors span:nth-child(7) { background: #8fa3b8; }
.neofetch-colors span:nth-child(8) { background: #d6e2ee; }

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .neofetch {
    position: static;
  }
}

/* ---------- skills ---------- */
.skills-bars {
  margin-bottom: 30px;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 220px 1fr 52px;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.bar-name {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 12px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  /* faint tick marks for an equalizer feel */
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 9px,
    rgba(255, 255, 255, 0.025) 9px 10px
  );
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  box-shadow: 0 0 14px rgba(46, 232, 142, 0.35);
  transition: width 1.2s var(--ease) var(--bd, 0ms);
}

.revealed .bar-fill {
  width: var(--w);
}

.bar-val {
  color: var(--green);
  font-weight: 700;
  text-align: right;
  font-size: 13px;
}

@media (max-width: 640px) {
  .bar-row {
    grid-template-columns: 1fr 60px;
  }
  .bar-name {
    grid-column: 1 / -1;
    margin-bottom: -8px;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.skill-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-dim);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(46, 232, 142, 0.08);
}

.skill-dir {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--cyan);
  font-weight: 700;
}

.perm {
  color: var(--muted);
  font-weight: 400;
  font-size: 12.5px;
  margin-right: 8px;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chips li:hover {
  color: var(--green);
  border-color: var(--green-dim);
  transform: translateY(-1px);
}

/* ---------- experience timeline ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* scroll-drawn git graph line */
.timeline-svg {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 22px;
  height: calc(100% - 20px);
  overflow: visible;
  pointer-events: none;
}

.tl-line-base {
  stroke: var(--border);
  stroke-width: 2;
}

.tl-line-progress {
  stroke: url(#tl-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(46, 232, 142, 0.55));
  /* hidden until JS drives it on scroll */
  stroke-dasharray: 9999;
  stroke-dashoffset: 9999;
}

.tl-spark {
  position: absolute;
  top: 0;
  left: 10px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle, #eafff4 0%, var(--green) 45%, transparent 72%);
  box-shadow:
    0 0 10px var(--green),
    0 0 26px rgba(46, 232, 142, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.tl-spark.on {
  opacity: 1;
}

.entry {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 22px;
}

.entry-gutter {
  position: relative;
}

.entry-dot {
  position: absolute;
  top: 26px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--muted);
  z-index: 1;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease);
}

/* lit as the scroll-line passes each commit */
.entry.lit .entry-dot {
  border-color: var(--green);
  box-shadow:
    0 0 0 4px rgba(46, 232, 142, 0.14),
    0 0 14px rgba(46, 232, 142, 0.5);
  transform: scale(1.12);
}

.entry-head .entry-dot {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 232, 142, 0.15);
  animation: head-pulse 2.4s ease-in-out infinite;
}

@keyframes head-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(46, 232, 142, 0.15);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(46, 232, 142, 0.04);
  }
}

.entry-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.entry-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}

.entry-head .entry-card {
  border-color: rgba(46, 232, 142, 0.35);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 32px rgba(46, 232, 142, 0.07);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
  margin-bottom: 8px;
}

.hash {
  color: var(--yellow);
}

.decoration {
  color: var(--cyan);
}

.period {
  margin-left: auto;
  color: var(--muted);
}

.entry-role {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.entry-role .at {
  color: var(--muted);
  font-weight: 400;
}

.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

.entry-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green-dim);
}

.entry-list strong {
  color: var(--text);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  font-size: 12px;
  color: var(--cyan);
  background: rgba(90, 215, 230, 0.06);
  border: 1px solid rgba(90, 215, 230, 0.18);
  border-radius: 999px;
  padding: 3px 11px;
}

@media (max-width: 640px) {
  .entry-card {
    padding: 20px;
  }
  .period {
    margin-left: 0;
    width: 100%;
  }
}

/* ---------- certifications ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.cert {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cert:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}

.cert-cyan:hover { border-color: rgba(90, 215, 230, 0.5); }
.cert-orange:hover { border-color: rgba(255, 180, 84, 0.5); }
.cert-magenta:hover { border-color: rgba(199, 146, 234, 0.5); }

.cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cert-logo {
  height: 36px;
  width: auto;
  display: block;
  transition: transform 0.3s var(--ease), filter 0.3s ease;
}

.cert:hover .cert-logo {
  transform: scale(1.08);
}

.cert-cyan .cert-logo { filter: drop-shadow(0 0 12px rgba(66, 133, 244, 0.45)); }
.cert-orange .cert-logo { filter: drop-shadow(0 0 12px rgba(255, 153, 0, 0.35)); }
.cert-magenta .cert-logo { filter: drop-shadow(0 0 12px rgba(92, 78, 229, 0.5)); }

.badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  padding: 3px 10px;
}

.badge-new {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}

.cert h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  flex: 1;
}

.cert-issuer {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.cert-period {
  margin: 2px 0 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.cert-status {
  margin: 0;
  font-size: 12.5px;
  color: var(--green);
}

/* ---------- interactive terminal ---------- */
.term-window {
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(46, 232, 142, 0.05);
}

.term {
  padding: 18px 22px;
  cursor: text;
}

.term-out {
  max-height: 380px;
  min-height: 220px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-line {
  display: block;
}

.term-line.t-ok { color: var(--green); }
.term-line.t-err { color: var(--red); }
.term-line.t-dim { color: var(--muted); }
.term-line.t-accent { color: var(--cyan); }
.term-line.t-warn { color: var(--yellow); }

.term-echo {
  display: block;
  color: var(--text);
}

.term-echo .term-echo-prompt {
  color: var(--green);
  font-weight: 600;
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 13.5px;
}

.term-prompt {
  white-space: nowrap;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  caret-color: var(--green);
  padding: 4px 0;
}

.term-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.term-chips-label {
  color: var(--muted);
  font-size: 13px;
}

.chip-btn {
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chip-btn:hover {
  color: var(--green);
  border-color: var(--green-dim);
  transform: translateY(-1px);
}

/* ---------- contact ---------- */
.section-contact {
  padding-bottom: 130px;
}

.contact-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.contact-lead {
  margin: 0;
  font-size: clamp(16px, 2.4vw, 21px);
  color: var(--text);
  line-height: 1.8;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  width: min(760px, 100%);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

a.contact-link:hover {
  transform: translateY(-3px);
  border-color: var(--green-dim);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(46, 232, 142, 0.08);
}

.contact-key {
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}

.contact-val {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-arrow {
  color: var(--muted);
}

a.contact-link:hover .contact-arrow {
  color: var(--green);
}

.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 54px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.footer p {
  margin: 4px 0;
}

.footer-exit {
  font-size: 14px;
}

.footer-dim {
  color: var(--muted);
  font-size: 12.5px;
}

.footer-meta {
  margin-top: 14px !important;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------- custom cursor ---------- */
html.custom-cursor,
html.custom-cursor * {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10010;
  opacity: 0;
}

.cursor-dot.on,
.cursor-ring.on {
  opacity: 1;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    0 0 10px var(--green),
    0 0 22px rgba(46, 232, 142, 0.5);
  transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease,
    border-radius 0.2s ease, background 0.2s ease;
}

/* shrinks while the ring grows over interactive elements */
.cursor-dot.hovering {
  width: 4px;
  height: 4px;
}

/* I-beam caret over text inputs */
.cursor-dot.texting {
  width: 2.5px;
  height: 20px;
  border-radius: 1px;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(46, 232, 142, 0.5);
  border-radius: 10px;
  transition: opacity 0.25s ease, width 0.25s var(--ease), height 0.25s var(--ease),
    border-color 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}

.cursor-ring.hovering {
  width: 52px;
  height: 52px;
  border-color: var(--green);
  background: rgba(46, 232, 142, 0.07);
  border-radius: 14px;
}

.cursor-ring.down {
  width: 24px;
  height: 24px;
  border-color: var(--cyan);
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .hero-reveal {
    opacity: 1;
    transform: none;
  }

  .revealed .bar-fill,
  .bar-fill {
    width: var(--w);
  }
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .section {
    padding: 80px 0;
  }

  .window-body {
    padding: 22px 18px;
  }

  .hero-stats {
    gap: 14px 26px;
  }

  .stat-val {
    font-size: 22px;
  }

  .ascii {
    font-size: clamp(5px, 2.45vw, 10px);
  }
}
