/* ============================================================
   ANIKET KAKAD — PORTFOLIO 2026
   Dark editorial system · Space Grotesk + Space Mono
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bg: #0E0E10;
  --bg-2: #121215;
  --panel: #1B1B1F;
  --panel-2: #101013;
  --line: rgba(237, 237, 240, .09);
  --line-2: rgba(237, 237, 240, .18);
  --text: #EDEDF0;
  --text-2: #A0A0AA;
  --text-3: #63636C;
  --accent: #FF4D00;
  --accent-soft: rgba(255, 77, 0, .1);
  --accent-line: rgba(255, 77, 0, .35);

  --font-disp: 'Space Grotesk', 'Space Mono', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Space Grotesk', monospace;

  --fs-hero: clamp(3.4rem, 13vw, 12rem);
  --fs-huge: clamp(2.4rem, 9vw, 8.5rem);
  --fs-title: clamp(1.9rem, 4.6vw, 4rem);
  --fs-stmt: clamp(1.15rem, 1.9vw, 1.6rem);
  --fs-body: 1rem;
  --fs-label: .72rem;
  --ls-label: .22em;

  --pad-inline: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
}

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

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #0E0E10;
}
::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF4D00;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #000000 #0E0E10;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-disp);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #0E0E10; }

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
svg { display: block; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 500;
  background: var(--text);
  color: var(--bg);
  padding: .6rem 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  transition: top .3s var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------- SURFACES ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: transform .85s var(--ease);
}
.preloader.is-done { transform: translateY(-101%); }
.pre__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 var(--pad-inline);
}
.pre__kick {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line);
  padding: .4rem .9rem;
  border-radius: 999px;
}
.pre__name {
  font-family: var(--font-disp);
  font-weight: 500;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  letter-spacing: .22em;
  text-indent: .22em;
  white-space: nowrap;
  line-height: 1;
}
.pre__name em {
  font-style: normal;
  color: var(--accent);
}
.pre__line {
  width: min(320px, 64vw);
  height: 1px;
  background: rgba(237, 237, 240, .15);
  position: relative;
  overflow: hidden;
}
.pre__line i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.pre__status {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(360px, 70vw);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.pre__skill { color: var(--text-3); white-space: nowrap; }
.pre__count { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- HEADER ---------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .85rem var(--pad-inline);
  background: rgba(14, 14, 16, .85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #000000;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 77, 0, 0.05);
}

.head__logo {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .04em;
  line-height: 1;
}
.head__logo em {
  font-style: normal;
  color: var(--accent);
}
.head__logo-yr {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .78rem;
  color: var(--text-3);
  margin-left: .2rem;
}

.head__nav { display: flex; gap: clamp(1rem, 2.4vw, 2.6rem); }
.head__nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-2);
  padding: .35rem 0;
  transition: color .3s;
}
.head__nav a .n { color: var(--accent); font-weight: 700; margin-right: .45em; }
.head__nav a:hover { color: var(--text); }
.head__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .4s var(--ease);
}
.head__nav a:hover::after { transform: scaleX(1); }

.head__right { display: flex; align-items: center; gap: 1rem; }
.btn--head-resume {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-2);
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s ease;
}
.btn--head-resume:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 77, 0, 0.08);
}
.head__resume {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  padding: .35rem .75rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.head__resume:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.head__resume svg {
  width: 12px;
  height: 12px;
}
.head__open {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  font-weight: 700;
  color: var(--text-2);
}
.head__open i {
  width: 6px; height: 6px;
  background: var(--accent);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .25; transform: scale(.7); }
}

.burger {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- MOBILE MENU ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7rem var(--pad-inline) 2rem;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease), visibility .4s;
}
body.menu-open .menu { visibility: visible; opacity: 1; }
body.menu-open { overflow: hidden; }

.menu__nav { display: flex; flex-direction: column; gap: .4rem; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-disp);
  font-weight: 500;
  font-size: clamp(1.25rem, 7.6vw, 4rem);
  text-transform: uppercase;
  line-height: 1.1;
  padding: .35rem 0;
  transform: translateY(24px);
  opacity: 0;
  transition: color .3s, transform .5s var(--ease), opacity .5s var(--ease);
}
.menu__link span { font-family: var(--font-mono); font-size: .9rem; font-weight: 700; color: var(--accent); }
.menu__link:hover { color: var(--accent); }
body.menu-open .menu__link { transform: translateY(0); opacity: 1; }
body.menu-open .menu__link:nth-child(1) { transition-delay: .08s; }
body.menu-open .menu__link:nth-child(2) { transition-delay: .14s; }
body.menu-open .menu__link:nth-child(3) { transition-delay: .2s; }
body.menu-open .menu__link:nth-child(4) { transition-delay: .26s; }
body.menu-open .menu__link:nth-child(5) { transition-delay: .32s; }

.menu__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- MAIN / SECTIONS ---------- */
main { display: block; }

.sec {
  padding: clamp(5.5rem, 13vh, 11rem) var(--pad-inline);
  border-top: 1px solid var(--line);
}

.sec__head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: clamp(2.4rem, 5vh, 4rem);
}
.sec__idx {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.sec__rule {
  flex: 1;
  height: 1px;
  background: var(--line-2);
  max-width: 9rem;
}
.sec__title {
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  margin-left: auto;
  padding-left: .4em;
}
.sec__sub {
  font-family: var(--font-mono);
  font-size: clamp(.85rem, 1.4vw, 1rem);
  color: var(--text-3);
  margin: -1rem 0 clamp(2.6rem, 6vh, 4.5rem);
  max-width: 52ch;
}

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: mq 32s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: clamp(.76rem, 1.4vw, 1rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: .75rem 0;
}
.marquee__track i {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  padding: 0 1.1em;
}
@keyframes mq {
  to { transform: translateX(-50%); }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(3rem, 5.5vh, 4rem);
  position: relative;
  overflow: hidden;
}
.hero__bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.hero__portrait-wrap {
  flex: none;
  position: absolute;
  top: 52px;
  bottom: 40px;
  right: 0;
  height: calc(100vh - 92px);
  width: calc((100vh - 92px) * 0.98);
  max-width: 58vw;
  z-index: 1;
  pointer-events: none;
  border: none;
  background: transparent;
  box-shadow: none;
}
.hero__portrait-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--pad-inline);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-3);
  position: relative;
  z-index: 1;
}
.hero__meta-item { white-space: nowrap; position: relative; }

.hero__title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex: 1;
  padding: clamp(0.2rem, 1vh, 0.8rem) var(--pad-inline) 0;
  position: relative;
  z-index: 1;
}
.hero__title {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.035em;
  text-transform: uppercase;
  flex: none;
}
.hero__line { overflow: clip; display: block; }
.hero__dot { color: var(--accent); }

html, body {
  cursor: default !important;
}
a, button, input, textarea, select, [role="button"] {
  cursor: pointer !important;
}

/* char mask — initial hidden state set by GSAP fromTo (no CSS transform, to avoid re-apply conflicts) */
.ch { display: inline-block; overflow: clip; vertical-align: top; }
.ch i { display: inline-block; font-style: normal; }

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(0.8rem, 2vw, 2rem);
  align-items: end;
  padding: clamp(0.8rem, 2vh, 1.5rem) var(--pad-inline);
  position: relative;
  z-index: 1;
}
.hero__lead {
  font-size: var(--fs-stmt);
  font-weight: 300;
  line-height: 1.35;
  max-width: 46ch;
  color: var(--text-2);
}
.hero__scroll {
  display: flex;
  align-items: center;
  gap: .9em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--text-3);
  padding-bottom: .4rem;
  transition: color .3s;
}
.hero__scroll:hover { color: var(--text); }
.hero__scroll i {
  width: 1px;
  height: 44px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
  display: block;
}
.hero__scroll i::after {
  content: '';
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: drop 1.8s var(--ease-soft) infinite;
}
@keyframes drop {
  0% { top: -50%; }
  60%, 100% { top: 110%; }
}

.hero__marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0;
  position: relative;
  z-index: 10;
  background: var(--bg, #0E0E10);
}

/* ---------- WORDS (statement reveal) ---------- */
.w { display: inline-block; overflow: clip; vertical-align: top; }
.w i {
  display: inline-block;
  font-style: normal;
  will-change: transform;
}

/* ---------- PROFILE ---------- */
/* ---------- PROFILE REDESIGN ---------- */
.profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}
.profile__main {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.stmt {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}
.stmt--2 {
  color: var(--text-2);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.55;
  margin: 0;
}
.profile__highlight {
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--accent);
  padding: 1.1rem 1.3rem;
  border-radius: 0 12px 12px 0;
}
.profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.profile__tag-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.profile__tag-pill:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.profile__aside {
  grid-column: 2;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism Profile Info Card */
.profile-card {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s var(--ease-soft);
}
.profile-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.profile-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.profile-card__status {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.profile-card__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s infinite;
}
.profile-card__loc {
  color: var(--text-3);
}

.facts {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.facts__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.facts__row:last-child {
  border-bottom: none;
}
.facts__row dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-3);
  flex: none;
  margin: 0;
}
.facts__row dd {
  font-size: 0.92rem;
  font-weight: 500;
  text-align: right;
  color: var(--text);
  margin: 0;
}

.profile-card__email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
  transition: all 0.25s ease;
}
.profile-card__email span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-card__email:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.profile-card__email svg {
  transition: transform 0.3s ease;
}
.profile-card__email:hover svg {
  transform: translate(3px, -3px);
}

/* ---------- EXPERIENCE ---------- */
.exp__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: clamp(1.6rem, 3.5vh, 2.6rem);
}
.exp__titles h3 {
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.exp__org {
  margin-top: .7rem;
  font-weight: 300;
  font-size: var(--fs-body);
  color: var(--text-2);
}
.exp__org a {
  border-bottom: 1px solid var(--line-2);
  transition: color .3s, border-color .3s;
}
.exp__org a:hover { color: var(--accent); border-color: var(--accent); }
.exp__sep { margin: 0 .6em; color: var(--accent); }
.exp__dates {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  flex: none;
}
.exp__dates span:first-child {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--text-3);
}
.exp__dates span:last-child {
  font-family: var(--font-disp);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.exp__proj {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: .9rem 1.2rem;
  margin-bottom: clamp(2rem, 5vh, 3.2rem);
}
.exp__proj-name {
  font-size: clamp(1.05rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: .02em;
}
.exp__proj-stack {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--text-3);
  text-align: right;
}

.exp__log { display: flex; flex-direction: column; }
.exp__item {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.exp__item:last-child { border-bottom: 1px solid var(--line); }
.exp__item-idx {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  color: var(--accent);
  font-weight: 700;
  padding-top: .4rem;
}
.exp__item p {
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  max-width: 64ch;
  color: var(--text-2);
}

.exp__links {
  display: flex;
  gap: 2.5rem;
  padding-top: clamp(1.6rem, 4vh, 2.6rem);
  flex-wrap: wrap;
}

/* link with arrow */
.link-arr {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-2);
  padding-bottom: .3rem;
  position: relative;
}
.link-arr::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.link-arr:hover { color: var(--accent); }
.link-arr:hover::after { transform: scaleX(.4); }
.link-arr svg { width: 12px; height: 12px; transition: transform .45s var(--ease); }
.link-arr:hover svg { transform: translate(3px, -3px); }

/* ---------- TECH PILL SYSTEM ---------- */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #18181C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.42rem 0.95rem;
  font-family: var(--font-disp);
  font-size: 0.88rem;
  font-weight: 500;
  color: #EDEDF0;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.25s var(--ease-soft);
}
.tech-pill:hover {
  background: #222228;
  border-color: rgba(255, 77, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.tech-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- PROJECTS GRID SECTION (4 Columns in 1 Line) ---------- */
.work-rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}
@media (max-width: 1100px) {
  .work-rows {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .work-rows {
    grid-template-columns: 1fr;
  }
}

.proj-row {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
  height: 100%;
}
.proj-row:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.proj-row__prev {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #121215;
  aspect-ratio: 16 / 8.2;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.9rem;
}
.proj-row__prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.proj-row__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  background: #000000;
  color: #FFFFFF;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}

.proj-row__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.proj-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.proj-row__title {
  font-family: var(--font-disp);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.proj-row__desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-2);
  margin-bottom: 0.9rem;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proj-row__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.proj-row__pills--zenius {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.proj-row__pills--zenius .tech-pill {
  flex: 0 0 calc(33.333% - 0.2rem);
  box-sizing: border-box;
  justify-content: center;
  padding: 0.35rem 0.25rem;
  font-size: 0.76rem;
}

.proj-row__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: auto;
}
.proj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.6rem;
  border-radius: 9999px;
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.25s var(--ease-soft);
  text-align: center;
  width: 100%;
}

@media (max-width: 1200px) {
  .work-rows {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .work-rows {
    grid-template-columns: 1fr;
  }
}

.proj-btn--github {
  background: #FFFFFF;
  color: #0E0E10;
  gap: 0.5rem;
}
.proj-btn--github:hover {
  background: #EDEDF0;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}
.proj-btn--live-red {
  background: #E50914;
  color: #FFFFFF;
  border: 1px solid #FF1E27;
  gap: 0.5rem;
}
.proj-btn--live-red:hover {
  background: #FF0A16;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.5);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  display: inline-block;
  box-shadow: 0 0 8px #FFFFFF;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}



/* ---------- GITHUB ACTIVITY SECTION ---------- */
.gh-activity {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  margin-top: 3rem;
  width: 100%;
}

.gh-activity__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}
.gh-activity__head h3 {
  font-family: var(--font-disp);
  font-size: 1.4rem;
  font-weight: 700;
}
.gh-activity__link {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.25s;
}
.gh-activity__link:hover h3 {
  color: var(--accent);
}

.gh-activity__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gh-chart-container {
  width: 100%;
  overflow-x: auto;
  padding: 1.35rem 1.1rem;
  background: #0E0E11;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}

.gh-chart-img {
  width: 100%;
  max-width: 980px;
  height: auto;
  display: block;
  filter: invert(0.92) hue-rotate(180deg) brightness(1.2) contrast(1.1);
}

.gh-count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-2);
}

.gh-foot-link {
  color: var(--text-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.25s;
}
.gh-foot-link:hover {
  color: #FFFFFF;
}



.gh-activity__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-2);
  flex-wrap: wrap;
  gap: 1rem;
}

.gh-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
}
.gh-legend .sq {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}
.gh-legend .sq.l-0 { background: #161b22; }
.gh-legend .sq.l-1 { background: #0e4429; }
.gh-legend .sq.l-2 { background: #006d32; }
.gh-legend .sq.l-3 { background: #26a641; }
.gh-legend .sq.l-4 { background: #39d353; }

/* ---------- CURSOR ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  z-index: 300;
  pointer-events: none;
  display: none;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.cursor.is-link { width: 10px; height: 10px; background: var(--accent); }
.cursor__lbl { display: none !important; opacity: 0 !important; }

/* ---------- TECH STACK SECTION ---------- */
.stack-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.stack-box {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.8rem;
  transition: border-color 0.3s var(--ease-soft);
}
.stack-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.stack-box__title {
  font-family: var(--font-disp);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.stack-box__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.stack-box__pills--col {
  flex-direction: column;
  align-items: flex-start;
}

.stack-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .stack-row {
    grid-template-columns: 1fr;
  }
}

/* BRAND COLOR HOVER GLOWS */
.tech-pill--react:hover { border-color: #61DAFB; box-shadow: 0 0 15px rgba(97, 218, 251, 0.3); }
.tech-pill--next:hover { border-color: #FFFFFF; box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); }
.tech-pill--tailwind:hover { border-color: #38BDF8; box-shadow: 0 0 15px rgba(56, 189, 248, 0.3); }
.tech-pill--node:hover { border-color: #5FA04E; box-shadow: 0 0 15px rgba(95, 160, 78, 0.3); }
.tech-pill--spring:hover { border-color: #6DB33F; box-shadow: 0 0 15px rgba(109, 179, 63, 0.3); }
.tech-pill--redis:hover { border-color: #DC382D; box-shadow: 0 0 15px rgba(220, 56, 45, 0.3); }
.tech-pill--gemini:hover { border-color: #8E24AA; box-shadow: 0 0 15px rgba(142, 36, 170, 0.4); }
.tech-pill--groq:hover { border-color: #F55036; box-shadow: 0 0 15px rgba(245, 80, 54, 0.4); }
.tech-pill--antigravity:hover { border-color: #FF4D00; box-shadow: 0 0 15px rgba(255, 77, 0, 0.4); }
.tech-pill--claude:hover { border-color: #D97757; box-shadow: 0 0 15px rgba(217, 119, 87, 0.3); }
.tech-pill--codex:hover { border-color: #10A37F; box-shadow: 0 0 15px rgba(16, 163, 127, 0.3); }

/* certifications section */
.certs-list, .certs {
  border-top: 1px solid var(--line-2);
  margin-top: 1rem;
}
.certs-item, .certs__row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.6rem 1rem;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  transition: all .3s var(--ease-soft);
}
.certs-item:hover, .certs__row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: var(--accent-line);
  transform: translateX(6px);
}
.certs-item__date, .certs__date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
}
.certs-item__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.certs-item__name {
  font-family: var(--font-disp);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}
.certs-item__issuer, .certs__org {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-2);
}
@media (max-width: 768px) {
  .certs-item, .certs__row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .certs-item__info {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* ---------- CONTACT ---------- */
.contact__title {
  font-size: clamp(1.2rem, 5.6vw, 4.5rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 clamp(3rem, 8vh, 6rem);
}
.contact__line { display: block; }
.contact__title .hero__dot { color: var(--accent); }

.contact__rows { display: flex; flex-direction: column; }
.contact__row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.2rem, 3vh, 1.9rem) 1rem;
  border-top: 1px solid var(--line);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.contact__row:last-child { border-bottom: 1px solid var(--line); }
.contact__row:hover { background: var(--accent); color: #0E0E10; }
.contact__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  font-weight: 700;
  color: var(--text-3);
  transition: color .45s;
}
.contact__row:hover .contact__label { color: rgba(14, 14, 16, .7); }
.contact__value {
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  overflow-wrap: anywhere;
}
.contact__row svg {
  width: 18px; height: 18px;
  transition: transform .45s var(--ease);
}
.contact__row:hover svg { transform: translate(4px, -4px); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__marquee { border-top: 0; }
.footer__bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem var(--pad-inline);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-3);
  flex-wrap: wrap;
}
.footer__colophon { text-align: center; }
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: var(--text-2);
  transition: color .3s;
}
.footer__top svg { width: 12px; height: 12px; transform: rotate(45deg); transition: transform .45s var(--ease); }
.footer__top:hover { color: var(--accent); }
.footer__top:hover svg { transform: rotate(45deg) translate(3px, -3px); }

/* ---------- CURSOR ---------- */
.cursor {
  display: none !important;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 1600px) {
  .profile {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .profile { grid-template-columns: 1fr; gap: 3rem; }
  .profile__main, .profile__aside { grid-column: auto; }
  .work__row { grid-template-columns: minmax(200px, 38%) 1fr; gap: 1.8rem; }
}

@media (max-width: 900px) {
  .head__nav { display: none; }
  .head__clock { display: none; }
  .burger { display: block; }
}

@media (max-width: 768px) {
  .sec { padding: 5rem var(--pad-inline); }
  .sec__head { flex-wrap: wrap; gap: .8rem; }
  .sec__rule { max-width: none; }
  .sec__title { margin-left: 0; }
  .sec__sub { margin-top: 0; }

  .hero { min-height: 100svh; padding-top: calc(6.5rem + env(safe-area-inset-top)); }
  .hero__meta { flex-wrap: wrap; row-gap: .4rem; }
  .hero__bottom { grid-template-columns: 1fr; align-items: start; }
  .hero__title-wrap { flex-direction: column; align-items: flex-start; gap: 1.4rem; order: 1; flex: none; }
  .hero__scroll { display: none; }
  .hero__bottom { order: 2; }
  .hero__portrait-wrap {
    order: 3;
    position: relative;
    top: auto; right: auto; bottom: auto;
    width: min(100%, 480px);
    max-width: none;
    height: auto;
    aspect-ratio: 90 / 84;
    align-self: flex-end;
    margin-top: 1.25rem;
  }
  .hero__marquee { order: 4; }

  .work__row { grid-template-columns: 1fr; }
  .work__prev { order: 2; }

  .exp__head { flex-direction: column; gap: 1.2rem; }
  .exp__dates { flex-direction: row; align-items: baseline; gap: .6em; }
  .exp__item { grid-template-columns: 2.6rem 1fr; gap: .8rem; }
  .exp__proj { align-items: flex-start; flex-direction: column; gap: .5rem; }

  .stack { grid-template-columns: repeat(2, 1fr); }
  .stack__col { border-left: 1px solid var(--line); padding-left: 1.2rem; }
  .stack__col:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stack__col:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stack__col:nth-child(4), .stack__col:nth-child(6) { border-left: 1px solid var(--line); padding-left: 1.2rem; }
  .stack__col:nth-child(5) { border-left: 0; padding-left: 0; }
  .stack__col--ai { grid-column: 1 / -1; border-left: 0; padding-left: 0; }

  .certs__row { grid-template-columns: 1fr; gap: .35rem; }
  .certs__org { text-align: left; }

  .contact__row { grid-template-columns: 1fr auto; gap: .6rem; }
  .contact__label { grid-column: 1 / -1; }
  .contact__row svg { grid-column: 2; grid-row: 2; }

  .footer__bar { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .stack { grid-template-columns: 1fr; }
  .stack__col, .stack__col:nth-child(odd),
  .stack__col:nth-child(4), .stack__col:nth-child(5), .stack__col:nth-child(6) {
    border-left: 0; padding-left: 0;
    border-top: 1px solid var(--line);
  }
  .stack__col:first-child { border-top: 0; }
  .stack__col--ai { border-top: 1px solid var(--line); }

  .menu__link { gap: .6rem; }
  .menu__link span { font-size: .72rem; }
  .proj-modal { padding: .6rem; }
  .proj-modal__content { padding: 1.4rem; }
  .proj-modal__close { top: .9rem; right: .9rem; }
  .gh-activity { padding: 1.25rem; }
  .profile-card { padding: 1.3rem 1.2rem; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .preloader { transition: none; }
  .hero__scroll i::after { animation: none; }
  .head__open i, .facts__live i { animation: none; }
  .menu__link { transform: none; opacity: 1; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- GLASSMORPHIC PROJECT DETAIL MODAL ---------- */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-soft);
}
.proj-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.proj-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 9, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.proj-modal__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(18, 18, 22, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transform: scale(0.92);
  transition: transform 0.35s var(--ease-soft);
}
.proj-modal.is-open .proj-modal__content {
  transform: scale(1);
}
.proj-modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  z-index: 20;
}
.proj-modal__close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}
.proj-modal__img-box {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0E0E11;
}
.proj-modal__img-box img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.proj-modal__title {
  font-family: var(--font-disp);
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
}
.proj-modal__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 77, 0, 0.12);
  border: 1px solid rgba(255, 77, 0, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}
.proj-modal__desc {
  font-family: var(--font-disp);
  font-size: 0.98rem;
  color: var(--text-2);
  line-height: 1.65;
}
.proj-modal__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.proj-modal__actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* ---------- HOMEPAGE BLOG PREVIEW ---------- */
.home-blog-wrap {
  width: 100%;
  margin-top: 1rem;
}
.home-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}
@media (min-width: 768px) {
  .home-blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 520px));
  }
}
.home-blog-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.home-blog-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
}
.home-blog-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-2);
}
.home-blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.home-blog-card:hover .home-blog-card__cover img {
  transform: scale(1.04);
}
.home-blog-card__badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #FFF;
  background: rgba(14, 14, 16, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.home-blog-card__body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.home-blog-card__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.home-blog-card__title {
  font-size: 1.35rem;
  font-family: var(--font-disp);
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}
.home-blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.home-blog-card__title a:hover {
  color: var(--accent);
}
.home-blog-card__desc {
  font-size: 0.94rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}
.home-blog-card__foot {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: auto;
}
.home-blog-card__link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}
.home-blog-card__link:hover {
  gap: 0.6rem;
}
.home-blog-more {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-start;
}
.btn-blog-all {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.btn-blog-all .btn-arrow {
  color: var(--accent);
  transition: transform 0.3s ease;
}
.btn-blog-all:hover {
  border-color: var(--accent);
  color: #FFFFFF;
  background: rgba(255, 77, 0, 0.12);
  box-shadow: 0 4px 20px rgba(255, 77, 0, 0.2);
  transform: translateY(-2px);
}
.btn-blog-all:hover .btn-arrow {
  transform: translateX(4px);
}