/* portfolio page styles */
/* ── Font System (Project Core Fonts Only) ── */
@font-face {
  font-family: 'Gotham';
  src: local('Gotham'), local('Gotham-Book'), local('Gotham Book');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: local('Gotham-Medium'), local('Gotham Medium');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: local('Gotham-Bold'), local('Gotham Bold');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: local('Gotham-Black'), local('Gotham Black');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #09090b;
  --card-bg: #111115;
  --card-hover: #16161c;
  --ink: #f5f5f7;
  --ink-mid: #9c9ca6;
  --ink-dim: #5a5a66;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-m: rgba(255, 255, 255, 0.16);
  --rule-heavy: rgba(255, 255, 255, 0.28);
  --cr: #c8102e;
  --cr-glow: rgba(200, 16, 46, 0.35);
  --cr-soft: rgba(200, 16, 46, 0.08);
  --sp: cubic-bezier(0.16, 1, 0.3, 1);
  --font-primary: 'Gotham', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

[data-theme="light"] {
  --bg: #f7f7f9;
  --card-bg: #ffffff;
  --card-hover: #f0f0f4;
  --ink: #111114;
  --ink-mid: #555562;
  --ink-dim: #8e8e9c;
  --rule: rgba(0, 0, 0, 0.08);
  --rule-m: rgba(0, 0, 0, 0.15);
  --rule-heavy: rgba(0, 0, 0, 0.25);
  --cr: #c8102e;
  --cr-glow: rgba(200, 16, 46, 0.22);
  --cr-soft: rgba(200, 16, 46, 0.05);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--sp), color 0.4s var(--sp);
}

/* ── Custom Cursor ── */
.c-dot {
  width: 6px;
  height: 6px;
  background: var(--cr);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}

.c-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--cr);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}

/* ── Shared Layout Utilities ── */
.section-container {
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  position: relative;
}

.sec-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: clamp(10px, 0.85vw, 11px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cr);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: clamp(14px, 2vh, 22px);
}

/* ═══════════════════════════════════════════════════════════
   1. HERO SECTION (Adaptive Light & Dark Modes)
   ═══════════════════════════════════════════════════════════ */
#portfolio-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 48%, #13131a 0%, #08080a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 4vh, 48px) clamp(20px, 4vw, 56px);
  box-sizing: border-box;
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s var(--sp), border-color 0.4s var(--sp);
}

[data-theme="light"] #portfolio-hero {
  background: radial-gradient(circle at 50% 48%, #ffffff 0%, #eceef3 100%);
  border-bottom-color: var(--rule);
}

.hero-stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1100px;
  width: 100%;
  z-index: 10;
  position: relative;
}

.hero-eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cr);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: clamp(20px, 3vh, 32px);
}

[data-theme="light"] .hero-eyebrow-tag {
  background: none;
  border-color: transparent;
}

.het-dot {
  width: 6px;
  height: 6px;
  background: var(--cr);
  border-radius: 50%;
}

.hero-statement-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.22;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: clamp(20px, 3vh, 30px);
  transition: color 0.4s var(--sp);
}

.hst-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: clamp(10px, 1.4vw, 18px);
}

.hero-title-desktop {
  display: block !important;
}

.hero-title-desktop .hst-line {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: clamp(10px, 1.4vw, 18px) !important;
}

.hero-title-mobile {
  display: none !important;
}

.hero-rounded-media {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(76px, 8vw, 115px);
  height: clamp(38px, 4.2vw, 56px);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 16, 46, 0.25);
  cursor: pointer;
  vertical-align: middle;
  position: relative;
  transition: transform 0.4s var(--sp), width 0.4s var(--sp), border-color 0.3s, box-shadow 0.3s;
}

[data-theme="light"] .hero-rounded-media {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 20px rgba(200, 16, 46, 0.12);
}

.hero-rounded-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--sp);
}

.hero-rounded-media:hover {
  border-color: var(--cr);
  transform: scale(1.06);
  box-shadow: 0 12px 36px var(--cr-glow);
}

.hero-rounded-media:hover img {
  transform: scale(1.18);
}

/* Parts without data stay out of the layout: a hero pill without a picture, empty project details */
#portfolio-hero [hidden],
#projectModal [hidden] {
  display: none !important;
}

.hst-dot-red {
  color: var(--cr);
}

.hero-manifesto {
  font-family: var(--font-secondary);
  font-size: clamp(15px, 1.25vw, 18.5px);
  color: var(--ink-mid);
  max-width: 680px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: clamp(28px, 4vh, 44px);
  transition: color 0.4s var(--sp);
}

.hero-actions-deck {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rule-m);
  padding: 12px 28px;
  border-radius: 999px;
  transition: all 0.35s var(--sp);
}

[data-theme="light"] .hero-pill-cta {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--rule-m);
  color: var(--ink);
}

.hero-pill-cta:hover {
  background: var(--cr);
  border-color: var(--cr);
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px var(--cr-glow);
}

.hpc-dot {
  display: none !important;
}

.hpc-arrow {
  font-size: 12px;
  transition: transform 0.3s;
}

.hero-pill-cta:hover .hpc-arrow {
  transform: translateY(3px);
}

/* ═══════════════════════════════════════════════════════════
   2. PORTFOLIO ARCHIVE WRAPPER & STICKY FILTER BAR
   ═══════════════════════════════════════════════════════════ */
#portfolio-archive-wrapper {
  position: relative;
  width: 100%;
  background: var(--bg);
  transition: background 0.4s var(--sp);
}

#filter-bar-wrap {
  position: sticky;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0 16px;
  overflow: hidden;
  max-width: 100vw;
  transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease, opacity 0.35s ease, background 0.4s var(--sp), border-color 0.4s;
}

#nav.visible ~ #portfolio-archive-wrapper #filter-bar-wrap,
body.nav-visible #filter-bar-wrap {
  top: 68px;
}

#nav.hidden ~ #portfolio-archive-wrapper #filter-bar-wrap,
body.nav-hidden #filter-bar-wrap {
  top: 0px;
}

@media (max-width: 860px) {
  .c-dot,
  .c-ring {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  #filter-bar-wrap {
    top: 68px;
    padding: 8px 0 8px !important;
  }
  #nav.visible ~ #portfolio-archive-wrapper #filter-bar-wrap,
  body.nav-visible #filter-bar-wrap {
    top: 68px;
  }
  #nav.hidden ~ #portfolio-archive-wrapper #filter-bar-wrap,
  body.nav-hidden #filter-bar-wrap {
    top: 0px;
  }
  .filter-bar-inner {
    padding: 4px 16px 4px !important;
    gap: 8px !important;
  }
}

#filter-bar-wrap.hide-for-footer {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

[data-theme="light"] #filter-bar-wrap {
  background: rgba(247, 247, 249, 0.96);
  border-bottom-color: var(--rule);
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Centred while the filters fit; when they don't, they start at the left and scroll sideways instead of being cut */
  justify-content: safe center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 16px 14px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .filter-bar-inner {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
}

.filter-bar-inner::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--rule-m);
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--sp);
  flex-shrink: 0;
}

[data-theme="light"] .filter-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--rule-m);
  color: var(--ink-mid);
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--ink-mid);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

[data-theme="light"] .filter-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-2px);
}

.filter-btn.active {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

[data-theme="dark"] .filter-btn.active {
  color: #09090b;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .filter-btn.active {
  color: #ffffff;
  background: #09090b;
  border-color: #09090b;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.7;
  font-weight: 700;
}

.filter-icon-plus {
  font-size: 12px;
  line-height: 1;
  transition: transform 0.3s;
}

.filter-btn.active .filter-icon-plus {
  transform: rotate(45deg);
}

/* ═══════════════════════════════════════════════════════════
   3. EDITORIAL ASYMMETRIC BENTO GRID (DZ!NR Architecture)
      - Every card image has the EXACT SAME UNIFORM HEIGHT
      - Widths alternate (13 cols vs 7 cols) with zero gaps
   ═══════════════════════════════════════════════════════════ */
#portfolio-grid-sec {
  padding: clamp(48px, 6vh, 90px) 0 clamp(80px, 10vh, 140px);
}

.dzinr-bento-matrix {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: clamp(24px, 3vw, 44px);
  width: 100%;
}

/* Bento Column Spans */
.bento-wide {
  grid-column: span 13;
}

.bento-compact {
  grid-column: span 7;
}

.bento-full {
  grid-column: span 20;
}

.dzinr-project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  width: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* CARD IMAGE CONTAINER: EXACT SAME UNIFORM HEIGHT ON ALL CARDS */
.dpc-img-wrap {
  position: relative;
  width: 100%;
  height: clamp(440px, 58vh, 680px);
  overflow: hidden;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  transition: border-color 0.35s, box-shadow 0.35s, background 0.4s;
}

[data-theme="light"] .dpc-img-wrap {
  background: #e8e8ed;
  border-color: var(--rule);
}

.dpc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dzinr-project-card:hover .dpc-img-wrap {
  border-color: var(--cr);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 30px var(--cr-glow);
}

.dzinr-project-card:hover .dpc-img-wrap img {
  transform: scale(1.06);
}

.dpc-tag-pill {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .dpc-tag-pill {
  background: none;
  color: #fff;
  border-color: transparent;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.dpc-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 8px;
  min-height: 52px;
}

.dpc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dpc-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  transition: color 0.3s;
}

.dzinr-project-card:hover .dpc-title {
  color: var(--cr);
}

.dpc-category-sub {
  font-family: var(--font-secondary);
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 500;
  transition: color 0.3s;
}

.dzinr-project-card:hover .dpc-category-sub {
  color: var(--ink-mid);
}

.dpc-arrow-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-m);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.35s var(--sp), background 0.3s, border-color 0.3s, color 0.3s;
}

[data-theme="light"] .dpc-arrow-circle {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--rule-m);
  color: var(--ink);
}

.dpc-arrow-circle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-45deg);
  transition: transform 0.35s var(--sp);
}

.dzinr-project-card:hover .dpc-arrow-circle {
  background: var(--cr);
  border-color: var(--cr);
  color: #fff;
}

.dzinr-project-card:hover .dpc-arrow-circle svg {
  transform: rotate(0deg);
}

/* ═══════════════════════════════════════════════════════════
   4. PROJECT DETAIL DEEP-DIVE MODAL DRAWER
   ═══════════════════════════════════════════════════════════ */
.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

[data-theme="light"] .project-modal-backdrop {
  background: rgba(240, 240, 246, 0.88);
}

.project-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

body.modal-open #nav,
body:has(.project-modal-backdrop.active) #nav {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-100%) !important;
}

.project-modal-stage {
  width: 100%;
  max-width: 1400px;
  height: 92vh;
  background: var(--card-bg);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  border: 1px solid var(--rule-m);
  border-bottom: none;
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s var(--sp);
  position: relative;
}

[data-theme="light"] .project-modal-stage {
  background: #FFFFFF;
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.1);
}

.project-modal-stage::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.project-modal-backdrop.active .project-modal-stage {
  transform: translateY(0);
}

.modal-close-btn {
  position: sticky;
  top: 24px;
  right: 24px;
  margin-left: auto;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.8);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--rule-m);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

[data-theme="light"] .modal-close-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #111114;
  border-color: rgba(0, 0, 0, 0.15);
}

.modal-close-btn:hover {
  transform: rotate(90deg) scale(1.1);
  background: var(--cr) !important;
  border-color: var(--cr) !important;
  color: #fff !important;
}

.modal-content-wrap {
  padding: clamp(24px, 4vw, 60px);
  margin-top: -30px;
}

.modal-hero-banner {
  width: 100%;
  height: clamp(340px, 45vh, 560px);
  border-radius: 14px !important;
  overflow: hidden;
  position: relative;
  margin-bottom: clamp(30px, 4vh, 50px);
  border: 1px solid var(--rule);
}

.modal-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px !important;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 14, 0.95) 0%, rgba(10, 10, 14, 0.2) 60%, rgba(10, 10, 14, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 48px);
}

.modal-hero-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 12px;
}

/* Project without a cover picture: its category and title sit on the page, with no empty frame */
.modal-hero-banner.no-media {
  height: auto !important;
  border: none;
  overflow: visible;
}

.modal-hero-banner.no-media .modal-hero-overlay {
  position: static;
  background: none;
  padding: 0 !important;
}

.modal-hero-banner.no-media .modal-hero-title {
  color: var(--ink);
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  margin-bottom: clamp(48px, 6vh, 76px);
}

.modal-section-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--ink);
}

.modal-desc-body {
  font-size: clamp(15px, 1.2vw, 17.5px);
  color: var(--ink-mid);
  line-height: 1.7;
}

.modal-spec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--rule);
  border-radius: 0 !important;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="light"] .modal-spec-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--rule);
}

.spec-item {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 4px;
}

.spec-val {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

/* ── Editorial Project Visual Showcase (Stack of Big Master Cards) ── */
.modal-project-gallery {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: clamp(52px, 7vh, 84px);
}

.modal-gal-card {
  width: 100%;
  height: clamp(700px, 88vh, 1020px);
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #111115;
  position: relative;
}

[data-theme="light"] .modal-gal-card {
  background: #f0f0f4;
  border-color: var(--rule);
}

.modal-gal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px !important;
}

/* Modal End Benchmark CTA */
.modal-cta-deck {
  border-top: 1.5px solid var(--rule);
  padding-top: clamp(36px, 5vh, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.modal-cta-title {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.modal-cta-sub {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--ink-mid);
  margin: 0;
}

.modal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--cr);
  border: 1px solid var(--cr);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 35px var(--cr-glow);
  transition: all 0.35s var(--sp);
  flex-shrink: 0;
}

.modal-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 45px rgba(200, 16, 46, 0.45);
  background: #e01436;
}

.mcb-arrow,
.mcb-arrow-svg {
  width: 15px;
  height: 15px;
  font-size: 14px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.3s var(--sp);
}

.modal-cta-btn:hover .mcb-arrow,
.modal-cta-btn:hover .mcb-arrow-svg {
  transform: translate(3px, -3px);
}

/* ═══════════════════════════════════════════════════════════
   5. EXACT UNIFIED LUXURY FOOTER (Identical to Home Page)
   ═══════════════════════════════════════════════════════════ */
#footer-driver {
  position: relative;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4.5vh, 56px) clamp(24px, 3.5vw, 52px) clamp(24px, 3.5vh, 40px);
  box-sizing: border-box;
  z-index: 10;
  transition: background 0.4s var(--sp);
}

.footer-luxury-card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: clamp(36px, 5vw, 64px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.05);
  padding: clamp(48px, 6vh, 68px) clamp(40px, 5vw, 72px) 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 1640px;
  min-height: clamp(500px, 68vh, 640px);
  margin: 0 auto;
  gap: clamp(48px, 7vh, 80px);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  transition: background 0.4s var(--sp), border-color 0.4s;
}

.f-outer-bar {
  width: 100%;
  max-width: 1640px;
  margin: clamp(28px, 4vh, 44px) auto 0;
  padding: 0 clamp(16px, 2.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.f-outer-copyright,
.f-outer-dev {
  font-family: var(--font-primary);
  font-size: 0.76rem;
  color: var(--ink-dim);
  font-weight: 400;
  line-height: 1.4;
}

.f-outer-dev a {
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.f-outer-dev a:hover {
  color: var(--cr);
}

.f-header-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 3.5vw, 52px);
  align-items: flex-start;
}

.f-desc-col .f-statement-title {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: clamp(1.4rem, 1.85vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: 380px;
}

.f-desc-col .f-desc-text {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 340px;
  margin-bottom: 12px;
}

.f-desc-col .f-location-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-dim, var(--ink-mid));
  margin: 0 0 18px 0;
  text-transform: uppercase;
}

.f-col-label {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
}

.f-links-clean {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.f-links-clean a {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color .2s, transform .2s;
  display: inline-block;
}

.f-links-clean a:hover {
  color: var(--cr);
  transform: translateX(4px);
}

.f-social-circles {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.f-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s var(--sp);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.f-circle-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.f-cta-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.f-action-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-radius: 20px;
  text-decoration: none;
  transition: transform .25s var(--sp), box-shadow .25s;
}

.f-action-pill:hover {
  transform: translateY(-3px);
}

.f-action-pill.cta-primary {
  background: var(--cr);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(200, 16, 46, 0.22);
}

.f-action-pill.cta-secondary {
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink);
}

.f-action-pill.cta-secondary:hover {
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.f-action-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.f-action-heading {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.f-action-sub {
  font-family: var(--font-primary);
  font-size: 0.74rem;
  opacity: 0.78;
}

.f-action-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cta-primary .f-action-arrow {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.cta-secondary .f-action-arrow {
  background: var(--ink);
  color: var(--bg);
}

/* ── Bottom Cluster: Staggered Character Emergence Headline (Half-Cut to Full Wave) ── */
.f-bottom-cluster {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: clamp(32px, 5vh, 60px);
  margin-bottom: 0;
  position: relative;
}

.f-brand-title-wrap {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(12px, 2vw, 24px) 0 clamp(18px, 2.8vh, 32px) 0;
  user-select: none;
  box-sizing: border-box;
}

.f-brand-giant-text {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: clamp(26px, 6.85vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: 100%;
  transform: scaleY(1.22);
  transform-origin: center bottom;
}

.f-char-word {
  display: inline-flex;
  align-items: center;
}

.f-char-space {
  display: inline-block;
  width: 0.32em;
}

.f-char {
  display: inline-block;
  opacity: 1;
  transform: translateY(50%);
  transition: transform 0.95s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.f-brand-giant-text.revealed .f-char {
  transform: translateY(0%);
}

.f-bottom-line {
  width: 100%;
  height: 1.5px;
  background: var(--rule);
  margin: 0;
  transition: background 0.3s;
}

/* ── Floating Theme Toggle FAB ── */
#theme-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1.5px solid var(--rule-m);
  color: var(--ink);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s var(--sp), border-color 0.3s, box-shadow 0.3s, background 0.4s, color 0.4s;
}

[data-theme="light"] #theme-fab {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #111114;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
}

#theme-fab:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: var(--cr);
  box-shadow: 0 14px 40px var(--cr-glow);
}

#theme-fab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] #theme-fab .icon-moon,
[data-theme="light"] #theme-fab .icon-sun {
  display: none;
}

[data-theme="dark"] #theme-fab .icon-sun,
[data-theme="light"] #theme-fab .icon-moon {
  display: block;
}

/* ── Responsive Queries ── */
@media (max-width: 1024px) {
  .f-header-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 991px) {
  .filter-bar-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 20px 16px;
  }

  .dzinr-bento-matrix {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bento-wide,
  .bento-compact,
  .bento-full {
    grid-column: span 1 !important;
  }

  .dpc-img-wrap {
    height: clamp(360px, 46vh, 520px);
  }

  .modal-gal-card {
    height: clamp(480px, 70vh, 700px);
  }
}

@media (max-width: 640px) {
  .f-header-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .f-outer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

[data-theme="dark"] #theme-fab .icon-moon,
[data-theme="light"] #theme-fab .icon-sun {
  display: none;
}

[data-theme="dark"] #theme-fab .icon-sun,
[data-theme="light"] #theme-fab .icon-moon {
  display: block;
}

/* ── Responsive Queries ── */
@media (max-width: 1024px) {
  .f-header-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .f-header-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .f-meta-bar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
  }

  .modal-cta-deck {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-title-desktop {
    display: none !important;
  }

  .hero-title-mobile {
    display: flex !important;
    flex-direction: column !important;
    font-size: clamp(24px, 6.2vw, 34px) !important;
    line-height: 1.2 !important;
    gap: 6px !important;
  }

  .hero-title-mobile .hst-line {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 8px !important;
  }

  .hero-title-mobile .hero-rounded-media {
    width: clamp(56px, 15vw, 76px) !important;
    height: clamp(28px, 7.5vw, 38px) !important;
    flex-shrink: 0 !important;
    border-radius: 9px !important;
  }

  /* ── WORK CASE STUDY MODAL DRAWER (PHONE VIEW) ── */
  .project-modal-stage {
    border-top-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
  }

  .modal-close-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
    position: sticky !important;
    top: 12px !important;
    right: 12px !important;
    margin: 10px 14px 10px auto !important;
    z-index: 100 !important;
    background: rgba(14, 14, 18, 0.88) !important;
    border: 1px solid var(--rule-m) !important;
    backdrop-filter: blur(12px) !important;
  }

  [data-theme="light"] .modal-close-btn {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #111114 !important;
  }

  .modal-content-wrap {
    padding: 12px 16px 40px !important;
    margin-top: 0 !important;
  }

  .modal-hero-banner {
    height: clamp(280px, 36vh, 340px) !important;
    border-radius: 14px !important;
    margin-bottom: 24px !important;
  }

  .modal-hero-overlay {
    padding: 20px 18px !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .modal-hero-overlay .sec-tag-pill {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    display: inline-flex !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
    font-size: 10.5px !important;
    letter-spacing: 0.12em !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }

  .modal-hero-title,
  #mHeroTitle {
    font-size: clamp(22px, 5.5vw, 28px) !important;
    line-height: 1.15 !important;
    text-align: left !important;
    margin-bottom: 0 !important;
  }

  .modal-info-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 36px !important;
  }

  .modal-section-title {
    font-size: 20px !important;
    margin-bottom: 10px !important;
    text-align: left !important;
  }

  .modal-desc-body {
    font-size: 15px !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }

  .modal-spec-card {
    padding: 20px !important;
    border-radius: 16px !important;
    gap: 14px !important;
  }

  .modal-gal-card {
    height: clamp(340px, 48vh, 440px) !important;
    border-radius: 14px !important;
  }

  /* Modal Bottom CTA Deck on Mobile */
  .modal-cta-deck {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 18px !important;
    padding-top: 28px !important;
    width: 100% !important;
  }

  .modal-cta-deck > div {
    width: 100% !important;
    text-align: left !important;
  }

  .modal-cta-deck .sec-tag-pill {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    display: inline-flex !important;
    margin-bottom: 8px !important;
    width: -moz-fit-content !important;
    width: fit-content !important;
  }

  .modal-cta-title {
    font-size: clamp(20px, 4.8vw, 24px) !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
    text-align: left !important;
  }

  .modal-cta-sub {
    font-size: 14px !important;
    line-height: 1.55 !important;
    text-align: left !important;
    margin-bottom: 0 !important;
  }

  .modal-cta-btn {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    gap: 10px !important;
    border-radius: 999px !important;
  }
}

/* ── Fixed Navigation Header (Unified Frosted Glassmorphism) ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 14px clamp(20px, 3.5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 248, 250, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(10, 10, 10, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, background 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform, opacity;
}

[data-theme="dark"] #nav {
  background: rgba(10, 10, 14, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

#nav.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#nav.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: clamp(32px, 3.5vw, 40px);
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-logo-img,
body.dark .nav-logo-img {
  filter: brightness(1.28) contrast(1.08);
}

.nav-logo svg {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mid);
  transition: all .25s ease;
  position: relative;
  padding: 5px 8px;
  border-radius: 20px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0px;
  height: 1.5px;
  background: var(--cr);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--sm);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ── Clean Minimal Luxury Active Page Header Link ── */
.nav-links a.active {
  font-weight: 800;
  color: #0A0A0A;
  background: none;
  border: none;
  box-shadow: none;
  padding: 5px 6px;
}

.nav-links a.active::after {
  transform: scaleX(1);
  height: 2px;
  background: var(--cr);
  left: 6px;
  right: 6px;
  bottom: -2px;
  border-radius: 2px;
  box-shadow: none;
}

.nav-links a.active:hover {
  color: #0A0A0A;
}

body.dark .nav-links a.active,
[data-theme="dark"] .nav-links a.active {
  color: #ffffff;
  background: none;
  border: none;
  box-shadow: none;
}

body.dark .nav-links a.active::after,
[data-theme="dark"] .nav-links a.active::after {
  background: var(--cr);
  box-shadow: none;
}

body.dark .nav-links a.active:hover,
[data-theme="dark"] .nav-links a.active:hover {
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   BESPOKE ATELIER SERVICES DROPDOWN SYSTEM
   ═══════════════════════════════════════════════════════════ */
.nav-has-dropdown {
  position: relative;
}

.nav-has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-caret {
  width: 8px;
  height: 5px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  opacity: 0.7;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
}

.nav-has-dropdown:hover > a,
.nav-has-dropdown:focus-within > a {
  color: var(--cr, #C8102E);
}

.nav-has-dropdown:hover .nav-caret,
.nav-has-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--cr, #C8102E);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
  z-index: 1001;
  padding-top: 12px; /* mouse bridge */
  width: clamp(210px, 18vw, 230px);
}

.nav-has-dropdown:hover .nav-dropdown-menu,
.nav-has-dropdown:focus-within .nav-dropdown-menu,
.nav-has-dropdown.touch-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-panel {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 14px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  padding: 6px;
  text-align: left;
}

[data-theme="dark"] .nav-dropdown-panel,
body.dark .nav-dropdown-panel {
  background: rgba(14, 14, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  text-decoration: none;
  background: transparent;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
  position: relative;
}

/* Reset global nav underlines inside dropdown */
.nav-dropdown-menu a::after,
.nav-dropdown-menu a.active::after {
  display: none !important;
}

.nav-dropdown-item:hover {
  background: rgba(10, 10, 10, 0.035);
  transform: translateX(2px);
}

[data-theme="dark"] .nav-dropdown-item:hover,
body.dark .nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ndi-num {
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--cr, #C8102E);
  opacity: 0.75;
  letter-spacing: 0.03em;
  min-width: 18px;
  transition: opacity 0.18s ease;
}

.nav-dropdown-item:hover .ndi-num {
  opacity: 1;
}

.ndi-title {
  font-family: var(--font-primary, 'Gotham', 'Montserrat', sans-serif);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink, #0E0E10);
  letter-spacing: 0.01em;
  text-transform: none;
  transition: color 0.18s ease;
  line-height: 1.25;
  flex: 1;
}

[data-theme="dark"] .ndi-title,
body.dark .ndi-title {
  color: #EDEDF0;
}

.nav-dropdown-item:hover .ndi-title {
  color: var(--cr, #C8102E);
}

.ndi-arrow {
  opacity: 0;
  transform: translateX(-4px);
  color: var(--cr, #C8102E);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.nav-dropdown-item:hover .ndi-arrow {
  opacity: 1;
  transform: translateX(0);
}

.nav-dropdown-item.ndi-active {
  background: rgba(200, 16, 46, 0.05);
}

[data-theme="dark"] .nav-dropdown-item.ndi-active,
body.dark .nav-dropdown-item.ndi-active {
  background: rgba(200, 16, 46, 0.12);
}

.nav-dropdown-item.ndi-active .ndi-title {
  color: var(--cr, #C8102E);
}

.nav-dropdown-item.ndi-active .ndi-arrow {
  opacity: 0.8;
  transform: translateX(0);
}

.nav-dropdown-footer {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid rgba(10, 10, 10, 0.05);
}

[data-theme="dark"] .nav-dropdown-footer,
body.dark .nav-dropdown-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-foot-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: var(--font-primary, 'Gotham', 'Montserrat', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mid, #666672);
  text-decoration: none;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

[data-theme="dark"] .nav-dropdown-foot-link,
body.dark .nav-dropdown-foot-link {
  color: #9A9AA6;
}

.nav-dropdown-foot-link svg {
  transition: transform 0.18s ease, color 0.18s ease;
  color: currentColor;
}

.nav-dropdown-foot-link:hover {
  background: rgba(200, 16, 46, 0.05);
  color: var(--cr, #C8102E) !important;
}

[data-theme="dark"] .nav-dropdown-foot-link:hover,
body.dark .nav-dropdown-foot-link:hover {
  background: rgba(200, 16, 46, 0.12);
  color: var(--cr, #C8102E) !important;
}

.nav-dropdown-foot-link:hover svg {
  transform: translateX(3px);
  color: var(--cr, #C8102E) !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--cr);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--cr-glow);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease, color .25s ease;
  cursor: pointer;
  display: inline-block;
}

/* Light Theme: hover becomes darker */
.nav-cta:hover,
[data-theme="light"] .nav-cta:hover {
  background: var(--cr-dk, #6B1212);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(107, 18, 18, 0.45);
}

/* Dark Theme: CTA turns white on hover */
[data-theme="dark"] .nav-cta:hover,
body.dark .nav-cta:hover {
  background: #ffffff !important;
  color: #0A0A0C !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.35) !important;
}

.nav-logo svg .nl,
.nav-logo svg .ns {
  fill: var(--cr);
  transition: fill 0.3s;
}

/* ── Smooth scrollbar on Desktop / Web view (> 768px) ── */
@media (min-width: 769px) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--cr) var(--bg);
  }

  ::-webkit-scrollbar {
    width: 6px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--cr);
    border-radius: 3px;
  }
}

/* ── Hide Scrolling Sidebar (Scrollbar) completely on Phone view (<= 768px) ── */
@media (max-width: 768px) {
  html, body, * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  ::-webkit-scrollbar,
  ::-webkit-scrollbar-thumb,
  ::-webkit-scrollbar-track {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
}
  
