/* ============================================
   3D Foundry Labs — Jewelry Portfolio
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

/* ---- Custom Properties ---- */
:root {
  --bg:           #0A0A0A;
  --surface:      #141414;
  --surface-up:   #1C1C1C;
  --border:       #2A2A2A;
  --border-sub:   #1A1A1A;
  --text:         #F5F5F5;
  --text-muted:   #A0A0A0;
  --text-dim:     #555555;
  --gold:         #C9A84C;
  --gold-light:   #E2C06E;
  --gold-dim:     rgba(201,168,76,0.12);
  --gold-glow:    rgba(201,168,76,0.25);

  --font-display: 'Cormorant', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-h:        72px;
  --max-w:        1200px;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 180ms;
  --t-base: 320ms;
  --t-slow: 560ms;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-body); }

/* Fine grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

p { color: var(--text-muted); }

.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.nav .container { height: 100%; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-sub);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img { height: 44px; width: auto; display: block; }

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

.nav-link {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast);
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--gold); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t-fast);
  letter-spacing: 0.01em;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn.active { color: var(--gold); }

.nav-dropdown-btn svg {
  width: 9px; height: 9px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  transition: transform var(--t-fast);
}
.nav-dropdown:hover .nav-dropdown-btn svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px;
  width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.nav-dropdown:hover .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast);
  line-height: 1.3;
}
.nav-menu a:hover { background: var(--surface-up); color: var(--text); }
.nav-menu a.active { color: var(--gold); }

.nav-num {
  font-size: 10px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
  min-width: 18px;
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(10,10,10,0.97);
  padding: var(--nav-h) 20px 40px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-overlay.open { display: flex; }

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 20px;
  text-align: center;
  transition: color var(--t-fast);
  width: 100%;
  max-width: 400px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-overlay a:hover,
.nav-overlay a.active { color: var(--gold); }

.mob-num {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.82) 0%,
    rgba(10,10,10,0.55) 55%,
    rgba(10,10,10,0.7) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 30%;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: 0;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-line { width: 36px; height: 1px; background: var(--gold); }
.hero-eye-text {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 600;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 52px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: #0A0A0A;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
}
.btn-secondary:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 36px; font-size: 14px; }

/* ---- Stats ---- */
.stats-section {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--border);
  gap: 1px;
}

.stat-item {
  background: var(--bg);
  padding: 52px 28px;
  text-align: center;
}

.stat-val {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.stat-lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
  line-height: 1.5;
}

/* ---- Section ---- */
.section {
  padding: 112px 0;
}

.section-eye {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.section-eye-line { width: 24px; height: 1px; background: var(--gold); }
.section-eye-text {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ---- Project Grid ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: transparent;
  gap: 20px;
  margin-top: 64px;
}

.proj-card {
  background: var(--surface);
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: background var(--t-base);
}

.proj-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  transition: background var(--t-base), box-shadow var(--t-base);
  z-index: 2;
}
.proj-card:hover { background: var(--surface-up); }
.proj-card:hover::before {
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}

.proj-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-up);
  position: relative;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.proj-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.8) saturate(0.9);
  transition: transform var(--t-slow), filter var(--t-slow);
}
.proj-card:hover .proj-thumb img {
  transform: scale(1.04);
  filter: brightness(0.95) saturate(1);
}

.proj-thumb-empty {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111, #181818);
}
.proj-thumb-empty-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}
.proj-thumb-empty-icon::after {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.proj-body { padding: 26px 26px 36px; }

.proj-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.proj-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.proj-outcome {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

.proj-arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 26px; height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.proj-arrow svg {
  width: 10px; height: 10px;
  color: var(--text-dim);
  transition: color var(--t-fast);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.proj-card:hover .proj-arrow { border-color: var(--gold); background: var(--gold-dim); }
.proj-card:hover .proj-arrow svg { color: var(--gold); }

/* ---- About ---- */
.about-intro {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 72px;
}

.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.founder-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.founder-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%);
}

.founder-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.founder-role {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}
.founder-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.founder-li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  opacity: 0.7;
  transition: opacity var(--t-fast), color var(--t-fast);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.founder-li:hover { opacity: 1; color: var(--gold); }
.founder-li svg {
  width: 16px; height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---- Footer ---- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo img { height: 36px; width: auto; opacity: 0.7; }
.footer-tag {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 380px;
  line-height: 1.6;
}
.footer-a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color var(--t-fast);
}
.footer-a:hover { color: var(--gold-light); }

/* ---- Contact Page ---- */
.contact-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 28px 0;
}
.contact-center { text-align: center; }
.contact-eyebrow {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 24px;
}
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: color var(--t-fast);
}
.contact-email:hover { color: var(--gold); }

/* ---- Divider ---- */
.gold-div {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 80%);
  opacity: 0.2;
  margin: 52px 0;
}

/* ---- Project Page Header ---- */
.proj-pg-header {
  padding: calc(var(--nav-h) + 80px) 0 72px;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 44px;
  transition: color var(--t-fast);
}
.back-link:hover { color: var(--gold); }
.back-link svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.proj-pg-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.proj-pg-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 820px;
  line-height: 1.05;
}

.proj-pg-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
}
.meta-tag span:first-child {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Stats Bar ---- */
.proj-stats {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.proj-stat {
  flex: 1;
  padding: 36px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.proj-stat:last-child { border-right: none; }

.proj-stat-val {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.proj-stat-lbl {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ---- Project Content ---- */
.proj-content {
  padding: 80px 0 120px;
}

.proj-intro {
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 760px;
}

.content-sec { margin-bottom: 64px; }

.content-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-heading::after {
  content: '';
  height: 1px;
  background: var(--border);
  width: 80px;
}

.content-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 720px;
}

/* Feature list */
.feat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.feat-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 10px;
}

/* Pullquote */
.pullquote {
  border-left: 3px solid var(--gold);
  padding: 24px 32px;
  margin: 56px 0;
  max-width: 680px;
  background: rgba(201,168,76,0.03);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.pullquote p {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

/* Phase blocks */
.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
}
.phase-block {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.phase-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0A0A0A;
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.phase-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.phase-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Media blocks ---- */
.video-block { margin-bottom: 40px; max-width: 800px; }

.video-wrap {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
}

.vid-caption {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  padding-left: 2px;
}

/* Hover-reveal image stack */
.compare-stack {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  max-width: 800px;
}
.compare-stack img {
  display: block;
  width: 100%;
  height: auto;
}
.compare-stack .compare-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-base);
}
.compare-stack:hover .compare-hover {
  opacity: 1;
}

.image-block { margin-bottom: 40px; }
.image-block img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.diagram-card {
  background: #ffffff;
  padding: 32px;
  border-radius: var(--r-md);
}
.diagram-card img {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
}
.img-caption {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  padding-left: 2px;
}

/* Before/After */
.ba-group { margin-bottom: 48px; }
.ba-group-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 4px;
}
.ba-item { background: var(--surface-up); position: relative; }
.ba-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--surface-up);
}
.ba-label {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 1;
}
.ba-label.before {
  background: rgba(10,10,10,0.8);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.ba-label.after {
  background: rgba(201,168,76,0.9);
  color: #0A0A0A;
}

/* Keyframe row */
.kf-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.kf-item { text-align: center; }
.kf-item img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--surface-up);
}
.kf-cap {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* Media placeholder */
.media-ph {
  padding: 60px 32px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  text-align: center;
  margin-bottom: 40px;
}
.media-ph p {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ---- Project Nav Footer ---- */
.proj-nav-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.proj-nav-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-muted);
  transition: color var(--t-fast);
  max-width: 280px;
}
.proj-nav-link:hover { color: var(--gold); }
.proj-nav-link.right { text-align: right; }
.proj-nav-dir {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.proj-nav-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: inherit;
}

/* ---- J-Render Special ---- */
.jr-hero {
  background: linear-gradient(135deg, #141414, #0d0d0d);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 72px 60px;
  text-align: center;
  margin-bottom: 72px;
  position: relative;
  overflow: hidden;
}
.jr-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(201,168,76,0.1), transparent 60%);
}
.jr-status {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  position: relative;
}
.jr-tagline {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 28px;
  position: relative;
}
.jr-offer {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 36px;
  position: relative;
}
.jr-cta { position: relative; }

/* ---- Scroll fade-up ---- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.fade-up.vis { opacity: 1; transform: translateY(0); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .founders-grid { gap: 24px; }
  .phase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  /* Layout */
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }

  /* Hero */
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 64px; }
  .hero h1 { font-size: clamp(34px, 9vw, 56px); }
  .hero-sub { font-size: 16px; margin-bottom: 36px; }

  /* Project grid */
  .project-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Project page header */
  .proj-pg-header { padding: calc(var(--nav-h) + 40px) 0 40px; }
  .proj-pg-title { font-size: clamp(26px, 7vw, 50px); }
  .proj-pg-meta { gap: 8px; }

  /* Content */
  .proj-intro { font-size: 17px; }
  .content-body { font-size: 15px; max-width: 100%; }
  .feat-list { max-width: 100%; }
  .proj-content { padding: 56px 0 80px; }

  /* Stats grid */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* About / Founders */
  .founders-grid { grid-template-columns: 1fr; }
  .founder-card { flex-direction: column; gap: 16px; padding: 24px; }
  .about-intro { font-size: 15px; margin-bottom: 48px; }

  /* Stats bar (project pages) */
  .proj-stats { flex-wrap: wrap; }
  .proj-stat { flex: 0 0 50%; border-bottom: 1px solid var(--border); }
  .proj-stat:nth-last-child(-n+2) { border-bottom: none; }

  /* Before/After */
  .ba-pair { grid-template-columns: 1fr; }

  /* Keyframes */
  .kf-row { gap: 8px; }

  /* Prev/Next footer */
  .proj-nav-footer { flex-direction: column; gap: 24px; text-align: center; }
  .proj-nav-link.right { text-align: center; }
  .proj-nav-title { font-size: 16px; }

  /* Special blocks */
  .jr-hero { padding: 48px 24px; }
  .pullquote { padding: 20px 20px; margin: 36px 0; }
  .pullquote p { font-size: 18px; }
  .phase-grid { grid-template-columns: 1fr; }

  /* Video */
  .video-block { margin-bottom: 28px; max-width: 100%; }
  .video-wrap video { max-width: 100%; }

  /* Image block */
  .image-block { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  .image-block img { border-radius: var(--r-sm); max-width: 100%; }

  /* Footer */
  .footer { padding: 40px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-overlay a { font-size: 18px; padding: 8px 16px; }

  .hero h1 { font-size: clamp(28px, 10vw, 44px); }
  .hero-sub { font-size: 15px; }

  .section-title { font-size: clamp(24px, 8vw, 36px); }
  .section-sub { font-size: 15px; }

  .proj-title { font-size: 18px; }
  .proj-body { padding: 20px 20px 28px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 36px 20px; }

  .proj-stat { flex: 0 0 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .proj-stat:last-child { border-bottom: none; }

  .kf-row { grid-template-columns: 1fr 1fr; gap: 8px; }

  .phase-block { padding: 20px; }

  .back-link { margin-bottom: 28px; }
  .proj-pg-title { font-size: clamp(22px, 8vw, 40px); }

  .founder-name { font-size: 20px; }

  .pullquote p { font-size: 16px; }
  .pullquote { padding: 16px 18px; }

  .btn-lg { padding: 13px 24px; font-size: 13px; }

  .footer-logo img { height: 28px; }
  .footer { padding: 32px 0; }

  .gold-div { margin: 36px 0; }
}
