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

.loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  width: min(400px, 80vw);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.loader-bar {
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 20px var(--accent);
}

.loader-text {
  display: flex;
  justify-content: center;
  align-items: center;
}


.loader-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* CUSTOM CURSOR */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  will-change: transform;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 197, 24, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9997;
  pointer-events: none;
  will-change: transform;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
}


#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  height: 60px;
}

#navbar.floating {
  top: 12px;
  left: 16px;
  right: 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

#navbar.hide {
  transform: translateY(-110%);
}

/* Hamburger (visible on projects page desktop + all mobile) */
.hamburger {
  width: 60px;
  height: 60px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  transition: background-color .35s ease, box-shadow .35s ease,
    opacity .3s ease, transform .35s ease;
  pointer-events: auto;
  padding: 0;
}

.hamburger span {
  position: absolute;
  height: 3px;
  width: 36px;
  background: #fff;
  border-radius: 999px;
  transition: width .3s ease, background-color .35s ease, transform .3s ease;
}

.hamburger span:first-child {
  transform: translateY(-6px);
}

.hamburger span:last-child {
  transform: translateY(6px);
}

.hamburger:hover span {
  width: 46px;
}

body.menu-open .hamburger {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

/*
   MOBILE NAV OVERLAY  (shared)
 */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
}

.nav-overlay.open {
  pointer-events: auto;
}

.nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-overlay.open .nav-backdrop {
  opacity: 1;
}

.nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(580px, 88vw);
  min-width: 280px;
  background: #1f1f1f;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  padding: 112px 32px 48px;
  overflow-y: auto;
}

.nav-overlay.open .nav-panel {
  transform: translateX(0);
}

.nav-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 4000;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity .35s ease .15s, transform .35s ease .15s;
  pointer-events: none;
  color: #000;
  box-shadow: 0 12px 30px rgba(245, 197, 24, 0.25);
}

.nav-overlay.open .nav-close {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.nav-section-label,
.nav-socials-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, .28);
}

.nav-section-label {
  margin-bottom: 34px;
}

.nav-socials-label {
  margin-bottom: 22px;
  margin-top: 24px;
}

.nav-panel-links {
  list-style: none;
  margin: 0 0 42px;
  padding: 0;
}

.nav-panel-links li {
  overflow: hidden;
}

.nav-panel-links a {
  display: block;
  font-size: clamp(34px, 8vw, 64px);
  font-weight: 300;
  color: var(--text);
  line-height: 1.06;
  letter-spacing: -0.03em;
  transform: translateY(44px);
  opacity: 0;
  transition: color .25s ease,
    transform .45s cubic-bezier(.4, 0, .2, 1),
    opacity .45s ease;
}

.nav-overlay.open .nav-panel-links a {
  transform: translateY(0);
  opacity: 1;
}

.nav-overlay.open .nav-panel-links li:nth-child(1) a {
  transition-delay: .10s;
}

.nav-overlay.open .nav-panel-links li:nth-child(2) a {
  transition-delay: .16s;
}

.nav-overlay.open .nav-panel-links li:nth-child(3) a {
  transition-delay: .22s;
}

.nav-overlay.open .nav-panel-links li:nth-child(4) a {
  transition-delay: .28s;
}

.nav-overlay.open .nav-panel-links li:nth-child(5) a {
  transition-delay: .34s;
}

.nav-overlay.open .nav-panel-links li:nth-child(6) a {
  transition-delay: .40s;
}

.nav-panel-links a:hover {
  color: var(--accent);
}

.nav-socials {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.nav-socials a {
  font-size: 15px;
  color: rgba(240, 237, 230, .85);
  transition: color .25s ease;
}

.nav-socials a:hover {
  color: var(--accent);
}

/*
   SCROLL REVEAL  (shared)
 */
.reveal {
  opacity: 0;
  transform: translateY(52px);
  transition:
    opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* index.html uses .visible; projects.js uses .is-visible */
.reveal.visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s !important;
}

.delay-2 {
  transition-delay: 0.2s !important;
}

.delay-3 {
  transition-delay: 0.35s !important;
}

.delay-4 {
  transition-delay: 0.5s !important;
}

/* 
   PROJECT CARDS  (shared — index & projects page)
*/
.projects-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pf-block {
  display: grid;
  gap: 20px;
}

.pf-block--full {
  grid-template-columns: 1fr;
}

.pf-block--half {
  grid-template-columns: 1fr 1fr;
}

.pc {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.pc:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.pc__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pc__img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #d9d9d9;
}

.pf-block--full .pc__img-wrap,
.pc--hero .pc__img-wrap {
  aspect-ratio: 16 / 8;
}

.pf-block--half .pc__img-wrap,
.pc--half .pc__img-wrap {
  aspect-ratio: 16 / 11;
}

.pc__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: transform;
}

.pc:hover .pc__img {
  transform: scale(1.14);
}

.pc__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, .88) 0%,
      rgba(0, 0, 0, .58) 30%,
      rgba(0, 0, 0, .2) 58%,
      rgba(0, 0, 0, .06) 100%);
  opacity: 0.55;
  transition: opacity 0.45s ease;
}

.pc:hover .pc__overlay {
  opacity: 0.82;
}

.pc__floating {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 34px 30px;
}

.pc__topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pc__category,
.pc__year,
.pc__dot {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}

.pc__content {
  max-width: 700px;
  transform: translateY(22px);
  transition: transform 0.45s ease;
}

.pc:hover .pc__content {
  transform: translateY(0);
}

.pc__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #0d0d0d;
  margin: 0 0 14px;
}

.pc__sub {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bg3);
  margin: 0 0 18px;
}

.pc__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.pc__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pc:hover .pc__tags {
  opacity: 1;
  transform: translateY(0);
}

.pc__tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, .92);
  transition: border-color 0.35s ease, background 0.35s ease;
}

.pc:hover .pc__tags span {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .12);
}

.pc__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 35px;
  transition: color var(--tr);
}

.pc:hover .pc__cta {
  color: var(--accent);
}

.pc__arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}

.pc:hover .pc__arrow {
  transform: translate(4px, -4px);
}

/* Half-card tuning */
.pc--half .pc__floating {
  padding: 24px 24px 22px;
}

.pc--half .pc__content {
  max-width: 100%;
  transform: translateY(18px);
}

.pc--half .pc__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.pc--half .pc__sub {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.pc--half .pc__tags span {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.pc--half .pc__cta {
  font-size: 0.62rem;
}

/*
   FOOTER  (shared)
 */
    .footer {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-body);
      overflow: hidden;
      position: relative;
    }
 
    /* thin top rule */
    .footer-rule {
      width: 100%;
      height: 1px;
      background: var(--border);
    }
 
    /* ── grid body ── */
    .footer-body {
      padding: 3.5rem 0 1.5rem;
    }
 
    .footer-grid {
      display: grid;
      grid-template-columns: 1.6fr 1fr 0.8fr;
      gap: 3rem;
      align-items: start;
    }
 
    /* ── column labels ── */
    .footer-col-label {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      letter-spacing: 0.18em;
      color: var(--text-dim);
      text-transform: uppercase;
      margin-bottom: 1.25rem;
    }
 
    /* ── GET IN TOUCH ── */
    .footer-email-row {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.9rem;
    }
 
    .footer-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      overflow: hidden;
      border: 1.5px solid var(--border);
      flex-shrink: 0;
    }
 
    .footer-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
 
    .footer-email-link {
      font-family: var(--font-mono);
      font-size: 0.78rem;
      color: var(--text);
      word-break: break-all;
      transition: opacity var(--tr);
    }
 
    .footer-email-link:hover { opacity: 0.7; }
 
    .footer-tagline {
      font-size: 0.8rem;
      color: var(--text-dim);
      line-height: 1.55;
      max-width: 320px;
    }
 
    /* ── NAVIGATION ── */
    .footer-nav-list {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
    }
 
    .footer-nav-list a {
      font-size: 0.82rem;
      color: var(--text-dim);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: color var(--tr);
    }
 
    .footer-nav-list a:hover { color: var(--text); }
 
    .footer-nav-dash {
      color: var(--text-faint);
      font-family: var(--font-mono);
      font-size: 0.7rem;
      letter-spacing: -0.08em;
    }
 
    /* ── CONNECT / socials ── */
    .footer-socials {
      display: flex;
      gap: 0.65rem;
      flex-wrap: wrap;
    }
 
    .footer-social-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      color: var(--text-dim);
      transition: border-color var(--tr), color var(--tr), background var(--tr);
    }
 
    .footer-social-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      background: rgba(245, 197, 24, 0.06);
    }
 
    /* ── BIG WORDMARK ── */
    .footer-wordmark {
      text-align: center;
      font-family: var(--font-display);
      font-size: clamp(5rem, 14vw, 13rem);
      letter-spacing: -0.01em;
      line-height: 1;
      color: transparent;
      -webkit-text-stroke: 1.5px rgba(255,255,255,0.10);
      user-select: none;
      padding: 1rem 0 0;
      position: relative;
    }
 
    .footer-tm {
      font-family: var(--font-body);
      font-size: 0.18em;
      vertical-align: super;
      color: rgba(255,255,255,0.12);
      -webkit-text-stroke: 0;
      letter-spacing: 0;
    }
 
    /* ── copyright bar ── */
    .footer-bottom {
      text-align: center;
      padding: 1rem 0 0.5rem;
      font-size: 0.78rem;
      color: var(--text-dim);
      font-family: var(--font-mono);
    }
 
    .footer-bottom-link {
      color: var(--accent);
      transition: opacity var(--tr);
    }
 
    .footer-bottom-link:hover { opacity: 0.7; }


