/* ============================================================
   LAYOUT — all section styles
   ============================================================  */

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  margin-top: var(--sp-3);
  z-index: 100;
  transition:
    background var(--ease-slow),
    backdrop-filter var(--ease-slow),
    border-color var(--ease-slow);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav__logo {
  flex-shrink: 0;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__link {
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    color var(--ease-base),
    background var(--ease-base);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav__link.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Hamburger  */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition:
    transform var(--ease-base),
    opacity var(--ease-base),
    width var(--ease-base);
}

.nav__hamburger span:nth-child(2) {
  width: 70%;
  margin-left: auto;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(8px);
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer  */
.nav__drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(8, 8, 15, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-6) var(--container-pad) var(--sp-8);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--ease-base),
    opacity var(--ease-base);
  z-index: 99;
}

.nav__drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.nav__drawer-link {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    color var(--ease-base),
    background var(--ease-base);
}

.nav__drawer-link:hover,
.nav__drawer-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero/1.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 8, 15, 0.88) 0%,
    rgba(8, 8, 15, 0.72) 50%,
    rgba(8, 8, 15, 0.85) 100%
  );
}

/* Grain texture for premium feel  */
.hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  opacity: 0;
  animation: fadeInDown 0.7s ease 0.3s forwards;
}

.hero__name {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero__name .accent {
  color: var(--accent);
}

.hero__role-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
  min-height: 2.5rem;
}

.hero__typed {
  color: var(--text-primary);
}

.hero__cursor {
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  border-radius: var(--radius-full);
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
}

.hero__desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--sp-10);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.1s forwards;
}

.hero__socials {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.3s forwards;
  margin-top: var(--sp-3);
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.hero__scroll-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  animation: scrollIndicator 2s ease-in-out infinite;
}

/* ABOUT */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about__photo-wrap {
  position: relative;
}

.about__photo-frame {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about__photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(8, 8, 15, 0.7) 100%
  );
  z-index: 1;
}

.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Decorative corner accents  */
.about__photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  z-index: 2;
  pointer-events: none;
}

.about__photo-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.35;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.about__header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.about__bio {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.about__bio p {
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: var(--text-base);
}

/* Stats row  */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  transition:
    border-color var(--ease-base),
    transform var(--ease-base);
}

.stat-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.stat-card__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

/* Info list  */
.about__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) var(--sp-6);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-item__key {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.info-item__val {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 500;
}

.info-item__val a {
  color: var(--accent);
  transition: opacity var(--ease-fast);
}

.info-item__val a:hover {
  opacity: 0.8;
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* SKILLS */
.skills__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.skills__intro {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-8));
}

.skills__intro-text {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: var(--sp-5);
  font-size: var(--text-base);
}

.skills__categories {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  transition: border-color var(--ease-base);
}

.skill-category:hover {
  border-color: var(--border-hover);
}

.skill-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.skill-category__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.skill-category__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.skill-category__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* EXPERIENCE (TIMELINE) */
.experience__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.experience__intro {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-8));
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent) 10%,
    var(--border) 90%,
    transparent
  );
}

.timeline-item {
  position: relative;
  padding-left: var(--sp-10);
  padding-bottom: var(--sp-10);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item__dot {
  position: absolute;
  left: -5px;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: var(--radius-full);
  background: var(--accent);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-dim);
  flex-shrink: 0;
}

.timeline-item:first-child .timeline-item__dot {
  box-shadow:
    0 0 0 4px var(--accent-dim),
    var(--accent-glow);
}

.timeline-item__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  transition:
    border-color var(--ease-base),
    transform var(--ease-base);
}

.timeline-item__card:hover {
  border-color: var(--accent-border);
  transform: translateX(4px);
}

.timeline-item__period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}

.timeline-item__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
  line-height: 1.3;
}

.timeline-item__company {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}

.timeline-item__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* PROJECTS (redesigned — card body always visible) */

/* Section header  */
.projects__header {
  margin-bottom: var(--sp-8);
}

.projects__top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

.projects__intro-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 480px;
  margin-top: var(--sp-2);
  line-height: 1.65;
}

/* Grid sub-header: "More Projects" label + filter tabs  */
.proj-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}

/* Filter bar (inside grid-header)  */
.projects__filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

/* Equal 3-col grid — desktop  */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  /* No align-items: start — let cards stretch to equal height within a row  */
}

/* ── Project card ──────────────────────────────────────────────  */
.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--ease-base),
    transform var(--ease-base),
    box-shadow var(--ease-base);
}

.proj-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(255, 75, 43, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Hidden by filter  */
.proj-card[hidden] {
  display: none;
}

/* Filter animation helper  */
.proj-card.proj-hiding {
  opacity: 0;
  transform: scale(0.95) translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

/* ── Image area ────────────────────────────────────────────────  */
/* Uniform 16/10 for all cards — prevents height imbalance in the 3-col grid.
   Portrait screenshots (mobile apps) show the top portion of the UI,
   which is the header/hero area — the most visually distinctive part.  */
.proj-card__img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  cursor: zoom-in;
  aspect-ratio: 16/10;
}

.proj-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-card:hover .proj-card__img-wrap img {
  transform: scale(1.06);
}

/* Subtle overlay for image depth  */
.proj-card__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 15, 0.4) 0%, transparent 50%);
  pointer-events: none;
  transition: opacity var(--ease-base);
}

.proj-card:hover .proj-card__img-wrap::after {
  opacity: 0.6;
}

/* Gallery count pill  */
.proj-card__shots {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.22rem 0.6rem;
  background: rgba(8, 8, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  z-index: 2;
  transition:
    background var(--ease-fast),
    border-color var(--ease-fast),
    color var(--ease-fast);
  pointer-events: none;
}

.proj-card:hover .proj-card__shots {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}

/* ── Card body — always visible ───────────────────────────────  */
.proj-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
}

/* Top meta row: category + date  */
.proj-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.proj-card__type {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.proj-card__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Title  */
.proj-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Description — 3-line clamp  */
.proj-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Tech badges row  */
.proj-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

/* Action buttons — separated by border-top  */
.proj-card__actions {
  display: flex;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.proj-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1.5px solid;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--ease-base),
    color var(--ease-base),
    border-color var(--ease-base),
    transform var(--ease-fast),
    box-shadow var(--ease-base);
}

.proj-card__btn:active {
  transform: translateY(0) !important;
}

.proj-card__btn--live {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.proj-card__btn--live:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 75, 43, 0.3);
}

.proj-card__btn--code {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-hover);
}

.proj-card__btn--code:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-1px);
}

.proj-card__btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Reveal animation for filter-in  */
@keyframes projReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.proj-card.proj-revealing {
  animation: projReveal 0.4s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}

/* ── Hero expertise chips (simplified keyword pills) ───────────  */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.5s forwards;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: 0.03em;
  transition:
    background var(--ease-base),
    border-color var(--ease-base),
    color var(--ease-base);
  user-select: none;
}

.hero__chip:last-child {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.22);
  color: #86efac;
}

.hero__chip:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

/* ── Private repo button ───────────────────────────────────────  */
.proj-card__btn--private {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  cursor: default;
  pointer-events: none;
  opacity: 0.65;
  user-select: none;
}

.proj-card__btn--private svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* ── Featured Project (IAM) ───────────────────────────────────  */
.feat-project {
  margin-bottom: var(--sp-10);
}

.feat-project > .section-label {
  margin-bottom: var(--sp-4);
}

.feat-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition:
    border-color var(--ease-base),
    box-shadow var(--ease-base);
}

.feat-card:hover {
  border-color: var(--accent-border);
  box-shadow:
    0 16px 56px rgba(255, 75, 43, 0.16),
    0 4px 20px rgba(0, 0, 0, 0.6);
}

.feat-card__img-wrap {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: #f8f8fc; /* matches the IAM tool's light UI background  */
  min-height: 380px;
}

.feat-card__img-wrap img {
  width: 100%;
  object-fit: fill;
  object-position: top center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.feat-card:hover .feat-card__img-wrap img {
  transform: scale(1.03);
}

/* Blend the edges of the light image into the dark card  */
.feat-card__img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 75%,
    rgba(17, 17, 32, 0.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.feat-card__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Inset shadow for clean border integration  */
  box-shadow: inset 0 0 0 1px rgba(17, 17, 32, 0.12);
  pointer-events: none;
  z-index: 2;
}

.feat-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-7) var(--sp-8);
}

/* Header row: badge + period on same line  */
.feat-card__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.feat-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
  margin-left: var(--sp-3);
  margin-top: var(--sp-2);
}

.feat-card__badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.feat-card__period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: var(--sp-3);
  margin-top: var(--sp-2);

}

/* Source-availability note (non-interactive, inline with actions)  */
.feat-card__private-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  opacity: 0.7;
  user-select: none;
}

.feat-card__private-note svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.feat-card__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-left: var(--sp-3);
}

.feat-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-left: var(--sp-3);
}

/* Impact callout block  */
.feat-card__impact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(
    135deg,
    rgba(255, 75, 43, 0.07),
    rgba(255, 75, 43, 0.03)
  );
  border: 1px solid var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.feat-card__impact-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.feat-card__impact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.feat-card__impact-item::before {
  content: "→";
  color: var(--accent);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  margin-top: 3px;
}

.feat-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 10px;
}

.feat-card__actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: auto;
  flex-wrap: wrap;
  margin: 10px 0px 10px 10px;
}

/* CERTIFICATIONS */
.certs__header {
  margin-bottom: var(--sp-8);
}

.certs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* Base transition includes opacity/transform for filter animation  */
  transition:
    border-color var(--ease-base),
    transform var(--ease-base),
    box-shadow var(--ease-base),
    opacity 0.25s ease;
  cursor: pointer;
  /* Always visible by default — filter.js strips .reveal to avoid race conditions  */
  opacity: 1;
  transform: none;
}

/* Applied by filter.js when a card doesn't match the active filter  */
.cert-card.cert-hidden {
  opacity: 0;
  transform: scale(0.95) translateY(8px);
  pointer-events: none;
}

.cert-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.cert-card[hidden] {
  display: none;
}

/* Issuer badge pill inside cert card  */
.cert-card__issuer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid;
}

.cert-card__issuer-badge--google {
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.35);
  color: #7eb3ff;
}

.cert-card__issuer-badge--microsoft {
  background: rgba(0, 120, 212, 0.12);
  border-color: rgba(0, 120, 212, 0.35);
  color: #60a9ff;
}

/* Empty state  */
.certs__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-16) 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.cert-card__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-surface);
}

.cert-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.5s ease;
}

.cert-card:hover .cert-card__img-wrap img {
  transform: scale(1.04);
}

.cert-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 15, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease-base);
}

.cert-card:hover .cert-card__overlay {
  opacity: 1;
}

.cert-card__verify {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--ease-fast);
}

.cert-card__verify:hover {
  background: var(--accent-hover);
}

.cert-card__body {
  padding: var(--sp-4) var(--sp-5);
}

.cert-card__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.4;
}

.cert-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.cert-card__issuer {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
}

.cert-card__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── Show-more / expand system ────────────────────────────────  */

/* Wrapper needed so the fade can overlap the grid bottom edge  */
.certs__grid-wrap {
  position: relative;
}

/* Gradient fade — overlaps the bottom ~160px of the grid,
   hints that more content exists below  */
.certs__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(
    to top,
    var(--bg-surface) 0%,
    rgba(13, 13, 26, 0.85) 40%,
    transparent 100%
  );
  pointer-events: none;
  transition: opacity 0.35s ease;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Hide fade (JS sets this)  */
.certs__fade.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Expand wrapper: centered below the grid  */
.certs__expand-wrap {
  display: flex;
  justify-content: center;
  padding-top: var(--sp-8);
}

/* The toggle button — premium pill style  */
.certs__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.75rem 1.75rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  transition:
    background var(--ease-base),
    border-color var(--ease-base),
    color var(--ease-base),
    transform var(--ease-fast),
    box-shadow var(--ease-base);
  position: relative;
  overflow: hidden;
}

/* Subtle animated shimmer on hover  */
.certs__toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 75, 43, 0.06) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.certs__toggle:hover::before {
  transform: translateX(100%);
}

.certs__toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.certs__toggle:active {
  transform: translateY(0);
}

/* Inner row: icon + label + badge  */
.certs__toggle-inner {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.certs__toggle-grid-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Count badge pill  */
.certs__toggle-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.certs__toggle-badge:empty {
  display: none;
}

/* Chevron: animates on expand  */
.certs__toggle-chevron {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.certs__toggle-chevron.is-rotated {
  transform: rotate(180deg);
}

/* Card animation when revealed by expand  */
@keyframes certSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cert-card.is-revealing {
  animation: certSlideUp 0.45s cubic-bezier(0.34, 1.1, 0.64, 1) both;
}

/* BLOG */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: var(--sp-6);
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--ease-base),
    transform var(--ease-base),
    box-shadow var(--ease-base);
}

.blog-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.blog-card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface);
}

.blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.04);
}

.blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.blog-card__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
  flex: 1;
}

.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--ease-base);
}

.blog-card__cta:hover {
  gap: var(--sp-3);
}

.blog-card__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--ease-base);
}

.blog-card:hover .blog-card__cta svg {
  transform: translateX(4px);
}

/* ── Currently Building section ───────────────────────────────  */
.now-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: start;
}

.now-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition:
    border-color var(--ease-base),
    transform var(--ease-base),
    box-shadow var(--ease-base);
  min-height: 260px;
}

.now-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.now-card--cta {
  background: linear-gradient(
    135deg,
    var(--bg-card) 0%,
    rgba(255, 75, 43, 0.04) 100%
  );
  border-color: var(--accent-dim);
}

.now-card--cta:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-accent);
}

.now-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.now-card__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.now-card__dot--active {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.now-card__dot--research {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.now-card__dot--open {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08);
  }
}

.now-card--cta .now-card__dot--open {
  @keyframes pulse {
    /* scoped override for accent color  */
    0%,
    100% {
      box-shadow: 0 0 0 3px var(--accent-dim);
    }
    50% {
      box-shadow: 0 0 0 6px rgba(255, 75, 43, 0.06);
    }
  }
}

.now-card__status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.now-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.now-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.now-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: auto;
}

/* CONTACT */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  padding-top: var(--sp-4);
}

.contact__info-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.contact__info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact__info-icon img {
  width: 20px;
  height: 20px;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(335deg);
}

.contact__info-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.contact__info-value {
  font-size: var(--text-base);
  color: var(--text-primary);
  font-weight: 500;
}

.contact__info-value a {
  color: var(--accent);
  transition: opacity var(--ease-fast);
}

.contact__info-value a:hover {
  opacity: 0.8;
}

.contact__socials {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact__socials-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact__socials-row {
  display: flex;
  gap: var(--sp-3);
}

/* Contact Form  */
.contact__form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-input,
.form-textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  width: 100%;
  transition:
    border-color var(--ease-base),
    box-shadow var(--ease-base);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input.error,
.form-textarea.error {
  border-color: #ef4444;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-error {
  font-size: var(--text-xs);
  color: #ef4444;
  font-family: var(--font-mono);
  display: none;
}

.form-error.visible {
  display: block;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background var(--ease-base),
    transform var(--ease-fast),
    box-shadow var(--ease-base);
  width: 100%;
}

.form-submit:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* FOOTER */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-block: var(--sp-8);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer__copy span {
  color: var(--accent);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-base);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox__container {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  animation: lightboxIn 0.25s ease;
}

.lightbox__img-wrap {
  position: relative;
  width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.lightbox__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 80vh;
}

.lightbox__close {
  position: fixed;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--ease-fast),
    color var(--ease-fast);
  z-index: 2;
}

.lightbox__close:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}

.lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--ease-fast),
    color var(--ease-fast),
    border-color var(--ease-fast);
  z-index: 2;
}

.lightbox__nav:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}

.lightbox__nav--prev {
  left: var(--sp-4);
}
.lightbox__nav--next {
  right: var(--sp-4);
}

.lightbox__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.lightbox__counter {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.lightbox__dots {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 400px;
}

.lightbox__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  cursor: pointer;
  transition:
    background var(--ease-fast),
    transform var(--ease-fast);
}

.lightbox__dot.active {
  background: var(--accent);
  transform: scale(1.4);
}
