/* ═══════════════════════════════════════════════════════════════════════════
   PROJECTS — Static projects list, WOW horizontal scroll experience,
              project gallery cards, modal, project detail overlay.
   Edit here for the Projects page only.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── PROJECTS REDESIGN — sidebar + content format ── */
.projects-stack { display: flex; flex-direction: column; gap: 0; }

.proj-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 520px;
  border-bottom: 1px solid #d0d8e8;
}
.proj-item:last-child { border-bottom: none; }

.proj-sidebar {
  background: #0d1a2a;
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.proj-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.18); margin-bottom: 16px;
}
.proj-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.57rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px; margin-bottom: 20px;
}
.proj-status.built { color: #a8cc5a; background: rgba(136,171,60,0.1); border: 1px solid rgba(136,171,60,0.2); }
.proj-status.built::before { content: '●'; font-size: 0.45rem; }
.proj-status.showcase { color: #7aacf0; background: rgba(50,107,205,0.1); border: 1px solid rgba(50,107,205,0.2); }
.proj-status.showcase::before { content: '◆'; font-size: 0.45rem; }
.proj-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #88AB3C; margin-bottom: 14px;
}
.proj-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem); font-weight: 700;
  color: white; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.proj-tagline {
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
  line-height: 1.75; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.proj-tech-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.2); margin-bottom: 10px;
}
.proj-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-pill {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
  color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 4px 10px; border-radius: 3px;
}
.proj-pill.blue { color: #7aacf0; background: rgba(50,107,205,0.1); border-color: rgba(50,107,205,0.2); }
.proj-pill.green { color: #a8cc5a; background: rgba(136,171,60,0.08); border-color: rgba(136,171,60,0.18); }
.proj-sidebar-footer {
  margin-top: auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.proj-sidebar-tag {
  font-size: 0.68rem; color: rgba(255,255,255,0.18);
  font-family: 'JetBrains Mono', monospace;
}

.proj-content {
  padding: 52px 60px;
  display: flex; flex-direction: column; gap: 36px;
  background: #f4f6f8;
  overflow-y: auto;
}
.proj-block-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #326BCD;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.proj-block-label::after { content: ''; flex: 1; height: 1px; background: rgba(50,107,205,0.12); }
.proj-block p { font-size: 0.88rem; color: rgba(13,26,27,0.6); line-height: 1.85; max-width: 640px; }
.built-list { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.built-item {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.86rem; color: rgba(13,26,27,0.65); line-height: 1.6;
}
.built-item::before { content: '→'; color: #326BCD; font-size: 0.75rem; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.proj-impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 640px; }
.proj-impact-card {
  background: white; border: 1px solid #e4edf5;
  border-radius: 7px; padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 10px;
}
.proj-impact-dot { width: 7px; height: 7px; border-radius: 50%; background: #88AB3C; flex-shrink: 0; margin-top: 5px; }
.proj-impact-text { font-size: 0.79rem; color: rgba(13,26,27,0.6); line-height: 1.6; }

@media (max-width: 900px) {
  .proj-item { grid-template-columns: 1fr; }
  .proj-content { padding: 36px 28px; }
  .proj-sidebar { padding: 36px 28px; }
  .proj-impact-grid { grid-template-columns: 1fr 1fr; }
}


<style>
.em-card:hover { background: #122030 !important; }

/* ── PROJECT GALLERY (image cards + modal) ── */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: #0d1a1b;
}
.proj-gallery-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #0d1a1b;
}
.proj-gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), filter 0.4s ease;
  filter: brightness(0.72);
}
.proj-gallery-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.35);
}
.proj-gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 28px 24px;
  background: linear-gradient(to top, rgba(7,17,28,0.92) 0%, rgba(7,17,28,0.2) 55%, transparent 100%);
  transition: background 0.4s ease;
}
.proj-gallery-card:hover .proj-gallery-overlay {
  background: linear-gradient(to top, rgba(7,17,28,0.97) 0%, rgba(7,17,28,0.6) 100%);
}
.proj-gallery-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(136,171,60,0.9);
  margin-bottom: 6px;
}
.proj-gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.proj-gallery-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(50,107,205,0.85);
  border: 1px solid rgba(50,107,205,0.5);
  padding: 7px 14px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: fit-content;
}
.proj-gallery-card:hover .proj-gallery-btn {
  opacity: 1;
  transform: translateY(0);
}
.proj-gallery-btn::after { content: ' →'; }

/* ── MODAL ── */
.proj-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,17,28,0.88);
  z-index: 9999;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.proj-modal-bg.open { display: flex; }
.proj-modal {
  background: #fff;
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 4px;
  position: relative;
  animation: modalIn 0.28s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.proj-modal-hero {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.proj-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(7,17,28,0.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.proj-modal-close:hover { background: #326BCD; }
.proj-modal-body { padding: 36px 44px 44px; }
.proj-modal-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(50,107,205,0.5); margin-bottom: 8px;
}
.proj-modal-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px; margin-bottom: 14px; display: inline-block;
}
.proj-modal-status.built { color: #88AB3C; background: rgba(136,171,60,0.1); border: 1px solid rgba(136,171,60,0.25); }
.proj-modal-status.showcase { color: #7aacf0; background: rgba(50,107,205,0.1); border: 1px solid rgba(50,107,205,0.25); }
.proj-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; font-weight: 700; color: #0d1a1b;
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 6px;
}
.proj-modal-tagline { font-size: 0.88rem; color: rgba(13,26,27,0.45); font-style: italic; margin-bottom: 18px; }
.proj-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #d0d8e8; }
.proj-modal-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #326BCD; background: rgba(50,107,205,0.07);
  border: 1px solid rgba(50,107,205,0.18); padding: 4px 10px; border-radius: 2px;
}
.proj-modal-section { margin-bottom: 22px; }
.proj-modal-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #88AB3C; display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.proj-modal-label::after { content: ''; flex: 1; height: 1px; background: rgba(136,171,60,0.15); }
.proj-modal-p { font-size: 0.88rem; color: rgba(13,26,27,0.62); line-height: 1.85; }
.proj-modal-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.proj-modal-list li {
  font-size: 0.84rem; color: rgba(13,26,27,0.65); line-height: 1.55;
  display: flex; align-items: flex-start; gap: 10px;
}
.proj-modal-list li::before { content: '→'; color: #326BCD; font-size: 0.72rem; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.proj-modal-impact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.proj-modal-impact-item {
  background: #f8faff; border: 1px solid #e4edf5; border-radius: 4px;
  padding: 12px 14px; font-size: 0.8rem; color: rgba(13,26,27,0.65); line-height: 1.5;
  display: flex; align-items: flex-start; gap: 8px;
}
.proj-modal-impact-dot { width: 7px; height: 7px; border-radius: 50%; background: #88AB3C; flex-shrink: 0; margin-top: 4px; }

@media (max-width: 860px) {
  .proj-gallery { grid-template-columns: 1fr 1fr; }
  .proj-modal-impact { grid-template-columns: 1fr; }
  .proj-modal-body { padding: 24px 24px 32px; }
}
@media (max-width: 520px) {
  .proj-gallery { grid-template-columns: 1fr; }
}

</style>

/* ── WOW Projects Section ─────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #4fc3f7;
  --accent2: #a5d6a7;
  --dark: #080e18;
}

/* body rules handled by omnuron */

/* Custom cursor */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
}

/* Scroll container */
.scroll-track {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  will-change: transform;
  /* Safari iOS fix: position:fixed descendants of display:none parents can
     still intercept taps in Safari's hit-testing. Disable pointer events on
     the track itself — cards re-enable them explicitly below. */
  pointer-events: none;
}
/* Re-enable taps on the interactive content inside the track so cards and
   CTAs remain tappable when the projects page is actually open. */
.scroll-track .card,
.scroll-track .card-cta,
.scroll-track .card-content {
  pointer-events: auto;
}

/* Header */
:root { --nav-h: 80px; --blue: #326BCD; }

.nav-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
  gap: 0;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav-top.scrolled {
  background: #0B0B0D;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav-top.page-blue {
  background: linear-gradient(120deg, #0B0B0D 0%, #326BCD 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0; margin-right: 48px;
  cursor: pointer;
}
.nav-logo-mark {
  width: 52px; height: 52px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: #ffffff;
}
.nav-logo-text span { color: #ffffff; }

.nav-links {
  display: flex; align-items: center; flex: 1; height: 100%;
  list-style: none; gap: 0;
}
.nav-links > li {
  height: 100%; display: flex; align-items: center;
  position: relative;
}
.nav-links > li > a, .nav-links > li > button {
  display: flex; align-items: center; gap: 5px;
  height: 100%; padding: 0 18px;
  font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.85);
  text-decoration: none; background: none; border: none; cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}
.nav-links > li > a::after, .nav-links > li > button::after {
  content: ''; position: absolute; bottom: 0; left: 18px; right: 18px;
  height: 2px; background: #88AB3C;
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links > li:hover > a, .nav-links > li:hover > button { color: #88AB3C; }
.nav-links > li:hover > a::after, .nav-links > li:hover > button::after { transform: scaleX(1); }

.nav-chevron { font-size: 0.6rem; opacity: 0.5; transition: transform 0.2s; }
.nav-links > li:hover .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 1px); left: 0;
  min-width: 280px;
  background: #0d1117;
  border: 1px solid rgba(50,107,205,0.25);
  border-top: 3px solid #326BCD;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  padding: 8px 0 12px;
  z-index: 300;
  border-radius: 0 0 8px 8px;
}
.nav-links > li:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }

.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 24px;
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-dropdown a::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: #326BCD; flex-shrink: 0;
  opacity: 0; transition: opacity 0.15s;
}
.nav-dropdown a:hover {
  background: rgba(50,107,205,0.12);
  color: #ffffff;
  border-left-color: #88AB3C;
  padding-left: 20px;
}
.nav-dropdown a:hover::before { opacity: 1; }

.nav-dropdown-label {
  padding: 12px 24px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #326BCD;
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px;
}
.nav-dropdown-label::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(50,107,205,0.25);
}
.nav-dropdown hr {
  border: none; border-top: 1px solid rgba(255,255,255,0.06);
  margin: 6px 0;
}

.nav-right {
  display: flex; align-items: center; gap: 12px; margin-left: auto;
}
.btn-nav-ghost {
  font-size: 0.84rem; font-weight: 600; color: #326BCD;
  background: none; border: 1.5px solid #326BCD;
  padding: 8px 20px; cursor: pointer;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
  border-radius: 2px;
}
.btn-nav-ghost:hover { background: #1a2a2b; color: white; }
.btn-nav-solid {
  font-size: 0.84rem; font-weight: 600; color: white;
  background: #1a2a2b; border: 1.5px solid var(--blue);
  padding: 8px 20px; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
  border-radius: 2px;
}
.btn-nav-solid:hover { background: #88AB3C; border-color: #88AB3C; }

/* Progress bar */
.progress {
  position: fixed;
  bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  z-index: 100;
  transition: width 0.1s linear;
  width: 0%;
}

/* Card counter */
.counter {
  position: fixed;
  bottom: 32px;
  right: 48px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  z-index: 100;
}
.counter span {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}

/* CARDS */
.card {
  position: relative;
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  overflow: hidden;
}

.card-bg {
  position: absolute;
  inset: 0;
}
.card-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card.in-view .card-bg img {
  transform: scale(1);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.2) 100%
  );
}

/* Card content */
.card-content {
  position: absolute;
  bottom: 0; left: 0;
  padding: 0 80px 72px;
  max-width: 700px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}
.card.in-view .card-meta {
  opacity: 1; transform: translateY(0);
}

.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
}
.card-category {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.25s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
.card.in-view .card-title {
  opacity: 1; transform: translateY(0);
}

.card-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}
.card.in-view .card-tagline {
  opacity: 1; transform: translateY(0);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.55s, transform 0.6s ease 0.55s, background 0.3s, border-color 0.3s;
}
.card.in-view .card-cta {
  opacity: 1; transform: translateY(0);
}
.card-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.card-cta span {
  transition: transform 0.3s;
}
.card-cta:hover span {
  transform: translateX(4px);
}

/* Side number */
.card-side-num {
  position: absolute;
  right: 60px;
  bottom: 72px;
  font-family: 'Playfair Display', serif;
  font-size: 18vw;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: -0.05em;
}

/* Scroll hint */
.scroll-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100;
  opacity: 1;
  transition: opacity 0.5s;
}
.scroll-hint.hidden { opacity: 0; pointer-events: none; }
.scroll-hint-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* Dots nav */
.dots {
  position: fixed;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active {
  background: var(--accent);
  transform: scale(1.6);
}


/* ── WOW Cards — Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .card-content {
    top: var(--nav-h);
    padding: 0 48px 64px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
  }
  .card-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .card-tagline {
    font-size: 0.9rem;
  }
  .dots {
    right: 20px;
  }
  .counter {
    right: 20px;
  }
}
@media (max-width: 680px) {
  .card-content {
    padding: 0 24px 56px;
  }
  .card-title {
    font-size: clamp(1.65rem, 7vw, 2.4rem);
    margin-bottom: 14px;
  }
  .card-tagline {
    font-size: 0.85rem;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .card-side-num {
    font-size: 32vw;
    right: 8px;
    bottom: 56px;
  }
  .dots {
    right: 12px;
  }
  .counter {
    right: 12px;
    bottom: 20px;
  }
  .scroll-hint {
    bottom: 20px;
  }
}

/* ── Project Detail Overlay ───────────────────────────────── */
.proj-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #f4f6f8;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1), transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.proj-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Close button */
.proj-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  background: rgba(13,26,42,0.08);
  border: 1px solid rgba(13,26,42,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  font-size: 1.1rem;
  color: rgba(13,26,42,0.6);
}
.proj-close:hover { background: rgba(13,26,42,0.15); }

/* Inner scroll container */
.proj-inner {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.proj-inner::-webkit-scrollbar { display: none; }

/* Nav dots */
.proj-dots {
  position: fixed;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s 0.2s;
}
.proj-overlay.open .proj-dots {
  opacity: 1;
  pointer-events: all;
}
.proj-dot-item {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(13,26,42,0.18);
  border: 1px solid rgba(13,26,42,0.22);
  cursor: pointer;
  transition: all 0.3s;
}
.proj-dot-item.active {
  background: #326BCD;
  border-color: #326BCD;
  transform: scale(1.45);
}

/* Banner section */
.proj-banner-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.proj-banner {
  background: linear-gradient(120deg, #0B0B0D 0%, #326BCD 100%);
  padding: 80px 80px 72px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.proj-banner-logo {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
  opacity: 0.1;
  pointer-events: none;
}
.proj-banner-logo img { width:100%; height:100%; object-fit:contain; }
.proj-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(136,171,60,0.9);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.proj-eyebrow::before { content:''; width:28px; height:1px; background:#88AB3C; display:block; }
.proj-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem,4.5vw,3.8rem);
  font-weight: 800; color: white;
  line-height: 1.08; letter-spacing: -0.03em;
  max-width: 700px;
}
.proj-banner h1 em { font-style:normal; color:#88AB3C; }
.proj-banner .proj-banner-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8; max-width: 520px;
  margin-top: 18px;
}
.proj-scroll-hint {
  position: absolute;
  bottom: 40px; left: 80px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: flex; align-items: center; gap: 10px;
  animation: hintBob 2s ease-in-out infinite;
}
.proj-scroll-hint::after { content:'↓'; font-size:0.9rem; }
@keyframes hintBob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Project card section */
.proj-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}
.proj-sidebar {
  background: #0d1a2a;
  padding: 52px 40px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  overflow-y: auto; scrollbar-width: none;
}
.proj-sidebar::-webkit-scrollbar { display:none; }
.proj-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.18); margin-bottom: 16px;
}
.proj-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.57rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px; margin-bottom: 20px;
}
.proj-status.built { color:#a8cc5a; background:rgba(136,171,60,0.1); border:1px solid rgba(136,171,60,0.2); }
.proj-status.built::before { content:'●'; font-size:0.45rem; }
.proj-status.showcase { color:#7aacf0; background:rgba(50,107,205,0.1); border:1px solid rgba(50,107,205,0.2); }
.proj-status.showcase::before { content:'◆'; font-size:0.45rem; }
.proj-category-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #88AB3C; margin-bottom: 14px;
}
.proj-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem,1.8vw,1.75rem);
  font-weight: 700; color: white;
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 18px;
}
.proj-tagline {
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
  line-height: 1.75; margin-bottom: 28px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.proj-tech-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.2); margin-bottom: 10px;
}
.proj-pills { display:flex; flex-wrap:wrap; gap:6px; }
.proj-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 4px 10px; border-radius: 3px;
}
.proj-pill.blue { color:#7aacf0; background:rgba(50,107,205,0.1); border-color:rgba(50,107,205,0.2); }
.proj-pill.green { color:#a8cc5a; background:rgba(136,171,60,0.08); border-color:rgba(136,171,60,0.18); }
.proj-sidebar-footer {
  margin-top: auto; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.proj-sidebar-tag {
  font-size: 0.68rem; color: rgba(255,255,255,0.18);
  font-family: 'JetBrains Mono', monospace;
}
.proj-content {
  padding: 52px 60px;
  overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 36px;
}
.proj-content::-webkit-scrollbar { display:none; }
.proj-block-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #326BCD;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.proj-block-label::after { content:''; flex:1; height:1px; background:rgba(50,107,205,0.12); }
.proj-block p {
  font-size: 0.88rem; color: rgba(13,26,42,0.6);
  line-height: 1.85; max-width: 640px;
  font-family: 'DM Sans', sans-serif;
}
.built-list { display:flex; flex-direction:column; gap:8px; max-width:640px; }
.built-item {
  display:flex; gap:12px; align-items:flex-start;
  font-size: 0.86rem; color: rgba(13,26,42,0.65);
  line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
}
.built-item::before { content:'→'; color:#326BCD; font-size:0.75rem; flex-shrink:0; margin-top:2px; font-weight:700; }
.impact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.impact-card {
  background:white; border:1px solid #e4edf5;
  border-radius:7px; padding:16px 18px;
  display:flex; align-items:flex-start; gap:10px;
}
.impact-dot { width:7px; height:7px; border-radius:50%; background:#88AB3C; flex-shrink:0; margin-top:5px; }
.impact-text { font-size:0.79rem; color:rgba(13,26,42,0.6); line-height:1.6; font-family:'DM Sans',sans-serif; }

/* When projects page is active, take full screen */
.page#projects {
  position: fixed !important;
  inset: 0 !important;
  z-index: 150 !important;
  display: none;
  overflow: hidden;
}
.page#projects.active {
  display: block !important;
}
