/* ═══════════════════════════════════════════════════════
   ACHILLEAS ACHILLEOS · PORTFOLIO
   Mobile-first. Every breakpoint intentional.
   ═══════════════════════════════════════════════════════ */

:root {
  --ink: #080808;
  --ink2: #0f0f0f;
  --ink3: #161616;
  --paper: #edeae2;
  --dim: #9a9690;
  --lime: #c8f135;
  --lime-d: rgba(200, 241, 53, 0.13);
  --lime-g: rgba(200, 241, 53, 0.22);
  --bdr: rgba(255, 255, 255, 0.08);
  --bdr-l: rgba(200, 241, 53, 0.3);
  --fs: "Syne", system-ui, sans-serif;
  --fm: "Syne Mono", monospace;
  --fi: "Libre Baskerville", Georgia, serif;
  --nav: 60px;
  --px: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--fs);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .c-dot,
  .c-ring,
  .hero-bg-word,
  .sh-dot,
  .chip {
    display: none !important;
  }
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Noise ───────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 997;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Loader ──────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(220px, 80vw);
}
.loader-logo {
  font-family: var(--fm);
  font-size: 48px;
  color: var(--lime);
  letter-spacing: 0.15em;
}
.loader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--lime);
  width: 0;
  border-radius: 99px;
  transition: width 0.08s linear;
}
.loader-pct {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--dim);
}
body:not(.ready) main {
  visibility: hidden;
}

/* ── Cursor (desktop only) ───────────── */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a,
  button {
    cursor: none;
  }
}
.c-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  pointer-events: none;
  will-change: transform;
}
.c-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9997;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 241, 53, 0.5);
  pointer-events: none;
  will-change: transform;
  transition: width 0.22s, height 0.22s, border-color 0.22s;
}
.c-ring.big {
  width: 54px;
  height: 54px;
  border-color: var(--lime);
}

/* ════════════════════════════════════════
   NAV — mobile first
════════════════════════════════════════ */
#hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav);
  transition: background 0.35s, box-shadow 0.35s;
}
#hdr.scrolled {
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--bdr);
}

.nav {
  height: 100%;
  padding: 0 var(--px);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--fm);
  font-size: 18px;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.la {
  color: var(--lime);
}
.lb {
  color: var(--paper);
}
.nav-links {
  display: none;
}
.nav-cv {
  display: none;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.burger div {
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open div:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger.open div:nth-child(2) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mob-menu {
  position: fixed;
  top: var(--nav);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: 0 var(--px);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.3s;
  border-bottom: 1px solid var(--bdr);
}
.mob-menu.open {
  max-height: 520px;
  padding: 18px var(--px) 28px;
}
.mob-menu a {
  font-family: var(--fm);
  font-size: 17px;
  color: var(--dim);
  padding: 14px 0;
  border-bottom: 1px solid var(--bdr);
  transition: color 0.2s;
  display: block;
}
.mob-menu a:last-child {
  border-bottom: none;
}
.mob-menu a:hover {
  color: var(--lime);
}
.mob-cv {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  color: var(--lime) !important;
  border: 1px solid var(--bdr-l) !important;
  padding: 12px 20px !important;
  border-radius: 6px;
  margin-top: 14px !important;
  transition: background 0.2s !important;
}
.mob-cv:hover {
  background: var(--lime-d) !important;
}

@media (min-width: 769px) {
  :root {
    --nav: 64px;
    --px: 32px;
  }
  .burger {
    display: none;
  }
  .mob-menu {
    display: none !important;
  }
  .nav-links {
    display: flex;
    gap: 2px;
    margin-left: auto;
  }
  .nav-links a {
    font-family: var(--fm);
    font-size: 11px;
    color: var(--dim);
    padding: 8px 11px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .nav-links a::before {
    content: attr(data-n);
    font-size: 9px;
    color: var(--lime);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .nav-links a:hover,
  .nav-links a.on {
    color: var(--paper);
  }
  .nav-links a.on {
    color: var(--lime);
  }
  .nav-links a:hover::before,
  .nav-links a.on::before {
    opacity: 1;
  }
  .nav-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--fm);
    font-size: 11px;
    color: var(--lime);
    border: 1px solid var(--bdr-l);
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s var(--spring);
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-cv:hover {
    background: var(--lime-d);
    transform: translateY(-2px);
  }
}

/* ════════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */
main {
  padding-top: var(--nav);
}
.sec {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px var(--px);
}
@media (min-width: 769px) {
  .sec {
    padding: 100px var(--px);
  }
}

.sec-ey {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.ey-n {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.1em;
}
.ey-t {
  font-family: var(--fs);
  font-size: clamp(28px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
@media (min-width: 769px) {
  .sec-ey {
    margin-bottom: 48px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.reveal-r {
  transform: translateX(28px);
}
.reveal.in {
  opacity: 1;
  transform: translate(0, 0);
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  padding: calc(var(--nav) + 24px) var(--px) 72px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-bg-word {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--fs);
  font-size: clamp(100px, 28vw, 240px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 241, 53, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  will-change: transform;
}
.hero-layout {
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-photo {
  display: none;
}

.hero-badge {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  letter-spacing: 0.07em;
  flex-wrap: wrap;
  line-height: 1.4;
}
.bdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.hero-name {
  font-family: var(--fs);
  font-size: clamp(44px, 13vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.hn1 {
  display: block;
  opacity: 0;
  transform: translateY(36px);
  animation: sup 0.9s var(--ease) 0.8s forwards;
}
.hn2 {
  display: block;
  opacity: 0;
  transform: translateY(36px);
  animation: sup 0.9s var(--ease) 1s forwards;
}
.hn2 em {
  font-family: var(--fi);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}
@keyframes sup {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-role {
  font-family: var(--fm);
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 18px;
  min-height: 20px;
}
.tcursor {
  animation: blink 1s step-end infinite;
  color: var(--lime);
}
.hero-bio {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.78;
  max-width: 500px;
  margin-bottom: 30px;
  opacity: 0;
  animation: sup 0.9s var(--ease) 1.3s forwards;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  opacity: 0;
  animation: sup 0.9s var(--ease) 1.5s forwards;
}

.btn-p {
  font-family: var(--fm);
  font-size: 12px;
  background: var(--lime);
  color: var(--ink);
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--spring), box-shadow 0.25s;
  display: inline-flex;
  align-items: center;
}
.btn-p:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--lime-g);
}
.btn-g {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 13px 24px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, transform 0.25s var(--spring);
  display: inline-flex;
  align-items: center;
}
.btn-g:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.hero-soc {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  animation: sup 0.9s var(--ease) 1.7s forwards;
}
.hero-soc a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--spring);
}
.hero-soc a:hover {
  color: var(--lime);
  border-color: var(--bdr-l);
  transform: translateY(-4px);
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: var(--px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: sup 0.8s var(--ease) 2.1s forwards;
}
.sh-line {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.sh-dot {
  position: absolute;
  left: -10px;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: scrollm 2s ease-in-out 2.5s infinite;
}
@keyframes scrollm {
  0% {
    left: -10px;
    opacity: 1;
  }
  100% {
    left: 44px;
    opacity: 0;
  }
}

@media (min-width: 900px) {
  .hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .hero-photo {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: sup 1s var(--ease) 1.1s forwards;
  }
  .photo-frame {
    position: relative;
    width: 100%;
    max-width: 340px;
  }
  .photo-frame img {
    width: 100%;
    border-radius: 12px;
    filter: grayscale(60%);
    transition: filter 0.5s;
  }
  .photo-frame:hover img {
    filter: grayscale(0%);
  }
  .photo-bdr {
    position: absolute;
    inset: 0;
    border: 1.5px solid var(--bdr-l);
    border-radius: 12px;
    top: 12px;
    left: 12px;
    z-index: -1;
    transition: top 0.35s var(--ease), left 0.35s var(--ease);
  }
  .photo-frame:hover .photo-bdr {
    top: 6px;
    left: 6px;
  }
  .chip {
    position: absolute;
    background: rgba(8, 8, 8, 0.9);
    border: 1px solid var(--bdr-l);
    border-radius: 99px;
    padding: 6px 13px;
    font-family: var(--fm);
    font-size: 11px;
    color: var(--lime);
    display: flex;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(12px);
    white-space: nowrap;
    animation: floatc 4s ease-in-out infinite;
  }
  .ch1 {
    top: -14px;
    left: -28px;
    animation-delay: 0s;
  }
  .ch2 {
    bottom: 40px;
    left: -38px;
    animation-delay: 1s;
  }
  .ch3 {
    top: 28px;
    right: -28px;
    animation-delay: 0.6s;
  }
  .ch4 {
    bottom: -10px;
    right: -18px;
    animation-delay: 1.6s;
  }
  @keyframes floatc {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
  }
  .hero-bg-word {
    right: -30px;
  }
}

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-lead {
  font-family: var(--fi);
  font-style: italic;
  font-size: clamp(17px, 4vw, 22px);
  color: var(--paper);
  line-height: 1.45;
  margin-bottom: 14px;
}
.about-copy p {
  color: var(--dim);
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.78;
}
.img-box {
  position: relative;
  max-width: 180px;
}
.img-box img {
  width: 100%;
  border-radius: 8px;
  filter: grayscale(70%);
  transition: filter 0.5s;
}
.img-box:hover img {
  filter: grayscale(0%);
}
.img-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--lime);
  border-style: solid;
  opacity: 0.65;
}
.ic-tl {
  top: -7px;
  left: -7px;
  border-width: 1.5px 0 0 1.5px;
}
.ic-br {
  bottom: -7px;
  right: -7px;
  border-width: 0 1.5px 1.5px 0;
}
.skills-label {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skills-cloud span {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--bdr);
  padding: 7px 14px;
  border-radius: 99px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
}
.skills-cloud span:hover {
  color: var(--lime);
  border-color: var(--bdr-l);
}

@media (min-width: 769px) {
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 44px 56px;
  }
  .about-copy {
    grid-column: 1;
    grid-row: 1;
  }
  .about-img {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
  }
  .about-img .img-box {
    max-width: 300px;
  }
  .skills-block {
    grid-column: 1;
    grid-row: 2;
  }
}

/* ════════════════════════════════════════
   EXPERIENCE
════════════════════════════════════════ */
.xp-row {
  display: flex;
  gap: 18px;
}
.xp-aside {
  flex-shrink: 0;
  width: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}
.xp-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.xp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--lime-g);
}
.xp-vl {
  flex: 1;
  width: 1px;
  background: var(--bdr);
  margin-top: 8px;
}
.xp-main {
  flex: 1;
  min-width: 0;
}
.xp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.xp-date {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--lime);
  letter-spacing: 0.07em;
}
.xp-badge {
  font-family: var(--fm);
  font-size: 10px;
  background: var(--lime-d);
  color: var(--lime);
  border: 1px solid var(--bdr-l);
  padding: 3px 10px;
  border-radius: 99px;
}
.xp-loc {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 5px;
}
.xp-title {
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.15;
}
.xp-co {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 16px;
}
.xp-list {
  display: flex;
  flex-direction: column;
}
.xp-list li {
  color: var(--dim);
  font-size: 14px;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--bdr);
  position: relative;
  line-height: 1.6;
}
.xp-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-size: 10px;
  top: 13px;
}
.xp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}
.xp-tags span {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--lime);
  background: var(--lime-d);
  border: 1px solid rgba(200, 241, 53, 0.2);
  padding: 4px 11px;
  border-radius: 99px;
}

/* ════════════════════════════════════════
   EDUCATION
════════════════════════════════════════ */
.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 600px) {
  .edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.edu-card {
  background: var(--ink2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.edu-card:hover {
  border-color: var(--bdr-l);
  transform: translateY(-4px);
}
.edu-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.edu-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--lime-d);
  border: 1px solid var(--bdr-l);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 15px;
  flex-shrink: 0;
}
.edu-yr {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--lime);
  letter-spacing: 0.09em;
}
.edu-card h3 {
  font-size: clamp(15px, 3.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.edu-school {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--dim);
}
.edu-mods {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.edu-mods li {
  font-size: 13px;
  color: var(--dim);
  padding: 5px 0;
  border-bottom: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  gap: 8px;
}
.edu-mods li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
  opacity: 0.6;
}
.edu-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-size: 10px;
  color: var(--lime);
}
.pdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulsed 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulsed {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--lime-g);
  }
  50% {
    box-shadow: 0 0 0 5px transparent;
  }
}

/* ════════════════════════════════════════
   PROJECTS — Featured
════════════════════════════════════════ */
.feat {
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  background: var(--ink2);
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  transition: border-color 0.3s;
}
.feat:hover {
  border-color: var(--bdr-l);
}
.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 241, 53, 0.04), transparent);
  pointer-events: none;
}
.feat-label {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--lime);
  border-bottom: 1px solid var(--bdr);
  padding: 10px 18px;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.feat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feat-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.feat-text h3 {
  font-size: clamp(20px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.feat-gh {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--paper);
  border: 1px solid var(--bdr);
  padding: 7px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.feat-gh:hover {
  color: var(--lime);
  border-color: var(--bdr-l);
  background: var(--lime-d);
}
.feat-sub {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--lime);
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.feat-desc {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.75;
}

.feat-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bdr);
  border-radius: 8px;
}
.fstat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fsn {
  font-family: var(--fm);
  font-size: 20px;
  color: var(--lime);
  font-weight: 700;
  line-height: 1;
}
.fsl {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.05em;
}
.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feat-tags span {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--lime);
  background: var(--lime-d);
  border: 1px solid rgba(200, 241, 53, 0.2);
  padding: 4px 10px;
  border-radius: 99px;
}
.feat-num {
  display: none;
}

@media (min-width: 769px) {
  .feat-body {
    padding: 28px;
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
  }
  .feat-text {
    flex: 1;
  }
  .feat-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .feat-num {
    display: block;
    font-family: var(--fm);
    font-size: clamp(70px, 10vw, 140px);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(200, 241, 53, 0.12);
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -0.04em;
    align-self: flex-end;
  }
}

/* ── Project grid ──────────────────── */
.pgrid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 600px) {
  .pgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.pcard {
  background: var(--ink2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 241, 53, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.pcard:hover {
  border-color: var(--bdr-l);
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}
.pcard:hover::after {
  opacity: 1;
}
.pcard-cert {
  border-color: rgba(200, 241, 53, 0.2);
}
.pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pcard-ico {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--lime-d);
  border: 1px solid var(--bdr-l);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 14px;
  flex-shrink: 0;
}
.pcard-lnks {
  display: flex;
  gap: 8px;
}
.pcard-lnks a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--bdr);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s;
}
.pcard-lnks a:hover {
  color: var(--lime);
  border-color: var(--bdr-l);
}
.pcard-yr {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--lime);
  letter-spacing: 0.07em;
}
.cert-tag {
  font-style: normal;
  color: var(--lime);
}
.pcard h3 {
  font-size: clamp(15px, 3.5vw, 17px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.pcard p {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}

.lh-row {
  display: flex;
  gap: 7px;
}
.lhs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bdr);
  border-radius: 8px;
  padding: 8px;
  flex: 1;
  transition: border-color 0.2s;
}
.lhs-g {
  border-color: rgba(34, 197, 94, 0.25);
}
.lhs:hover {
  border-color: var(--bdr-l);
}
.lhn {
  font-family: var(--fm);
  font-size: 17px;
  font-weight: 700;
  color: #22c55e;
  line-height: 1;
}
.lhl {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-align: center;
}

.pcard-micro {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pcard-micro span {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--dim);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}
.pcard-micro i {
  color: var(--lime);
  width: 12px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.cert-cta {
  padding: 2px 0;
}
.cert-cta a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--fm);
  font-size: 11px;
  color: var(--lime);
  border: 1px solid var(--bdr-l);
  padding: 7px 12px;
  border-radius: 6px;
  transition: background 0.2s;
  word-break: break-word;
}
.cert-cta a:hover {
  background: var(--lime-d);
}

.pcard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.pcard-tags span {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--lime);
  background: var(--lime-d);
  border: 1px solid rgba(200, 241, 53, 0.18);
  padding: 3px 9px;
  border-radius: 99px;
}

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact-box {
  position: relative;
  text-align: center;
  padding: 44px 18px;
  border: 1px solid var(--bdr);
  border-radius: 14px;
  background: var(--ink2);
  overflow: hidden;
}
.contact-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 100%,
    rgba(200, 241, 53, 0.07),
    transparent
  );
  pointer-events: none;
}
.cnum {
  position: absolute;
  top: 16px;
  left: 18px;
  font-family: var(--fm);
  font-size: 11px;
  color: var(--lime);
  opacity: 0.4;
}
.contact-h {
  font-family: var(--fs);
  font-size: clamp(30px, 8vw, 66px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.contact-h em {
  font-family: var(--fi);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}
.contact-p {
  color: var(--dim);
  font-size: 15px;
  max-width: 440px;
  margin: 0 auto 28px;
  line-height: 1.75;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: clamp(11px, 2.8vw, 14px);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 18px;
  border-radius: 8px;
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--spring),
    box-shadow 0.25s;
  margin-bottom: 28px;
  text-align: left;
  max-width: 100%;
  word-break: break-all;
}
.contact-email:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--bdr-l);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}
.email-arr {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--bdr-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--lime);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.contact-email:hover .email-arr {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-45deg);
}
.contact-lnks {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-lnks a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--fm);
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--bdr);
  padding: 9px 14px;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.contact-lnks a:hover {
  color: var(--lime);
  border-color: var(--bdr-l);
}

@media (min-width: 600px) {
  .contact-box {
    padding: 64px 48px;
  }
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--bdr);
  padding: 24px 0;
}
.foot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.foot-logo {
  font-family: var(--fm);
  font-size: 16px;
  color: var(--lime);
  letter-spacing: 0.1em;
}
.foot p {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--dim);
  opacity: 0.5;
}
.foot-soc {
  display: flex;
  gap: 10px;
}
.foot-soc a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--spring);
}
.foot-soc a:hover {
  color: var(--lime);
  border-color: var(--bdr-l);
  transform: translateY(-3px);
}
@media (min-width: 600px) {
  .foot {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .foot p {
    flex: 1;
    text-align: center;
  }
}

/* ── Back to top ─────────────────────── */
.btt {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink2);
  border: 1px solid var(--bdr);
  color: var(--lime);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--spring), border-color 0.3s;
}
.btt.show {
  opacity: 1;
  pointer-events: auto;
}
.btt:hover {
  transform: translateY(-4px);
  border-color: var(--bdr-l);
}
@media (min-width: 769px) {
  .btt {
    right: 24px;
    bottom: 24px;
  }
}

/* ── Print ───────────────────────────── */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  #hdr,
  footer,
  .btt,
  .c-dot,
  .c-ring,
  .loader,
  .noise,
  .hero-bg-word {
    display: none !important;
  }
  main {
    padding: 0;
  }
}
