/* =========================================================
   FARADAY PROJECTS — Vanilla Version Stylesheet
   ========================================================= */

:root {
  --bg: #f5f2ec;
  --ink: #0f1012;
  --ink-soft: rgba(15, 16, 18, 0.7);
  --ink-soft-2: rgba(15, 16, 18, 0.55);
  --gold: #c89b3c;
  --gold-light: #e0b353;
  --line: #e8e3d9;
  --dark: #0f1012;
  --darker: #0a0a0c;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg, iframe { max-width: 100%; display: block; }
img { image-rendering: auto; -webkit-user-drag: none; }
/* Ensure crisp scaling for downscaled photographs on retina */
.project-card img,
.home-proj-card .img-wrap img,
.service-card .img-wrap img,
.service-detail .img-wrap img,
.portrait img,
.hero-video,
.lightbox-img-wrap img {
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

/* Typography */
.font-display { font-family: "Fraunces", Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
.font-mono { font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.overline {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.italic { font-style: italic; }
.gold { color: var(--gold); }
.gold-bright { color: var(--gold-light); }

/* Layout */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-sm { padding: 64px 0; }

.bg-white   { background: #ffffff; }
.bg-cream   { background: var(--bg); }
.bg-ink     { background: var(--dark); color: #fff; }
.bg-darker  { background: var(--darker); color: #fff; }

.border-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Grid helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .grid-md-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-md-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-md-4 { grid-template-columns: repeat(4, 1fr); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-gold       { background: var(--gold); color: var(--darker); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-dark       { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--gold); color: var(--ink); }
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn-glass:hover { background: #fff; color: var(--darker); border-color: #fff; }
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* Arrow icon helper (inline SVG via mask) */
.icon-arrow {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============== NAVBAR ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}
@media (min-width: 768px) { .nav-inner { padding: 16px 40px; } }

.nav-logo img {
  height: 112px; width: 112px; object-fit: contain;
}
@media (min-width: 768px) { .nav-logo img { height: 128px; width: 128px; } }

.nav-links { display: none; align-items: center; gap: 36px; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link {
  position: relative;
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  transition: color 0.25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.4s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }

/* Smart color flip when over the dark hero (home top) */
.nav.over-dark .nav-link { color: #fff; }
.nav.over-dark .nav-link:hover { color: var(--gold-light); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-quote {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  transition: all 0.25s ease;
}
.nav-quote:hover { background: var(--gold); color: var(--ink); }
.nav.over-dark .nav-quote { background: var(--gold); color: var(--darker); }
.nav.over-dark .nav-quote:hover { background: var(--gold-light); }
@media (min-width: 768px) { .nav-quote { padding: 12px 24px; font-size: 13px; } }

.nav-toggle { display: flex; padding: 6px; color: var(--ink); }
.nav.over-dark .nav-toggle { color: #fff; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 0;
  background: rgba(15, 16, 18, 0.98);
  backdrop-filter: blur(20px);
  z-index: 60;
  display: flex; flex-direction: column;
  padding: 80px 32px 40px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }
.nav-drawer-close {
  position: absolute; top: 24px; right: 24px;
  color: #fff;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.nav-drawer .drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
  font-family: "Fraunces", serif;
  font-size: 30px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.25s ease;
}
.nav-drawer .drawer-link:hover { color: var(--gold); }
.nav-drawer .drawer-link.active { color: var(--gold); }
.nav-drawer .drawer-link svg { width: 22px; height: 22px; opacity: 0.5; }
@media (min-width: 1024px) { .nav-drawer { display: none; } }

/* ============== HERO (HOME) ============== */
.hero-home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--darker);
  color: #fff;
  display: flex; align-items: flex-end;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.85) 0%, rgba(10,10,12,0.55) 50%, rgba(10,10,12,0.95) 100%),
    linear-gradient(90deg, rgba(10,10,12,0.7) 0%, transparent 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(to right, var(--gold) 1px, transparent 1px),
    linear-gradient(var(--gold) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-home .container {
  position: relative; z-index: 3;
  width: 100%;
  padding-top: 160px; padding-bottom: 64px;
}
@media (min-width: 768px) {
  .hero-home .container { padding-top: 192px; padding-bottom: 96px; }
}
.hero-overline {
  color: var(--gold-light);
  margin-bottom: 32px;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-overline .dash { display: inline-block; width: 40px; height: 1px; background: var(--gold-light); }

.hero-title {
  font-family: "Fraunces", serif;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
@media (min-width: 640px) { .hero-title { font-size: 72px; } }
@media (min-width: 768px) { .hero-title { font-size: 100px; } }
@media (min-width: 1024px) { .hero-title { font-size: 128px; } }
.hero-title .accent { font-style: italic; color: var(--gold-light); }

.hero-row {
  margin-top: 40px;
  display: grid; gap: 32px;
}
@media (min-width: 768px) {
  .hero-row { grid-template-columns: 1fr 1fr; align-items: end; }
}
.hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 768px) { .hero-actions { justify-self: end; } }

.hero-status {
  margin-top: 64px;
  display: flex; align-items: center; gap: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.dot-pulse { position: relative; display: inline-flex; width: 8px; height: 8px; }
.dot-pulse::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: var(--gold);
  opacity: 0.75;
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.dot-pulse::after {
  content: ""; position: relative; width: 8px; height: 8px; border-radius: 999px;
  background: var(--gold-light);
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* ============== PAGE HERO (Sub-pages) ============== */
.page-hero {
  position: relative;
  padding: 128px 0 64px;
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 768px) { .page-hero { padding: 160px 0 96px; } }
.page-hero h1 {
  font-family: "Fraunces", serif;
  font-size: 44px; line-height: 0.98; letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 64rem;
}
@media (min-width: 640px) { .page-hero h1 { font-size: 60px; } }
@media (min-width: 768px) { .page-hero h1 { font-size: 84px; } }
.page-hero .sub {
  margin-top: 32px;
  max-width: 42rem;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}
@media (min-width: 768px) { .page-hero .sub { font-size: 16px; } }
.page-hero .overline-row {
  color: var(--gold);
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px;
}
.page-hero .overline-row .dash { display: inline-block; width: 40px; height: 1px; background: var(--gold); }
.page-hero h1 .accent { font-style: italic; color: var(--gold); }

/* ============== STATS ============== */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-k {
  font-family: "Fraunces", serif;
  font-size: 44px; line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
@media (min-width: 768px) { .stat-k { font-size: 60px; } }
.stat-v {
  margin-top: 12px;
  font-size: 11px; font-weight: 600;
  color: var(--ink-soft-2);
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ============== SECTION HEADERS ============== */
.h2-display {
  font-family: "Fraunces", serif;
  font-size: 40px; line-height: 0.98; letter-spacing: -0.015em;
  color: var(--ink);
}
@media (min-width: 768px) { .h2-display { font-size: 64px; } }
.h2-display.lg { font-size: 52px; }
@media (min-width: 768px) { .h2-display.lg { font-size: 88px; } }
.h2-display.dark { color: #fff; }
.h2-display .accent { font-style: italic; color: var(--gold); }
.h2-display.dark .accent { color: var(--gold); }

.section-intro {
  display: grid; gap: 40px;
  margin-bottom: 56px;
  align-items: end;
}
@media (min-width: 768px) {
  .section-intro { grid-template-columns: 1.4fr 1fr; }
}

/* ============== CARDS / SERVICES ============== */
.service-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.service-card { display: block; }
.service-card .img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg);
  margin-bottom: 24px;
}
.service-card .img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.service-card:hover .img-wrap img { transform: scale(1.04); }
.service-card h3 {
  font-family: "Fraunces", serif;
  font-size: 26px; line-height: 1.05;
  color: var(--ink);
}
@media (min-width: 768px) { .service-card h3 { font-size: 32px; } }
.service-card p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.service-card .meta-num { color: var(--gold); margin-bottom: 8px; }

/* Detail Service section (used in services.html) */
.service-detail {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .service-detail { padding: 112px 0; } }
.service-detail.dark { background: var(--ink); color: #fff; border-top-color: transparent; }
.service-detail .row {
  display: grid; gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .service-detail .row { grid-template-columns: 1fr 1fr; }
}
.service-detail.flip .row > :first-child { order: 1; }
@media (min-width: 768px) {
  .service-detail.flip .row > :first-child { order: 2; }
}
.service-detail .img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
}
.service-detail .img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-detail h2 {
  font-family: "Fraunces", serif;
  font-size: 36px; line-height: 1; letter-spacing: -0.015em;
}
@media (min-width: 768px) { .service-detail h2 { font-size: 56px; } }
.service-detail.dark h2 { color: #fff; }
.service-detail .meta-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.service-detail .meta-row .line { flex: 1; height: 1px; background: rgba(15,16,18,0.15); }
.service-detail.dark .meta-row .line { background: rgba(255,255,255,0.25); }
.service-detail .meta-num { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--gold); }
.service-detail .body-p {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.service-detail.dark .body-p { color: rgba(255,255,255,0.8); }
.service-detail .body-p + .body-p { margin-top: 16px; }
.service-detail ul.points {
  margin-top: 28px;
  display: grid; gap: 10px;
}
@media (min-width: 640px) { .service-detail ul.points { grid-template-columns: 1fr 1fr; } }
.service-detail ul.points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
}
.service-detail.dark ul.points { color: rgba(255,255,255,0.85); }
.service-detail .check {
  flex-shrink: 0; margin-top: 3px;
  color: var(--gold);
  width: 16px; height: 16px;
}
.service-detail .pill-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px;
  padding-bottom: 4px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.service-detail.dark .pill-link { color: var(--gold); border-bottom-color: var(--gold); }

/* ============== PROJECTS GRID ============== */
.gallery-header {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  padding-bottom: 32px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.gallery-header h2 {
  font-family: "Fraunces", serif;
  font-size: 32px; line-height: 1; letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 36rem;
}
@media (min-width: 768px) { .gallery-header h2 { font-size: 48px; } }
.gallery-header .lead {
  max-width: 22rem;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  text-align: left;
  width: 100%;
}
.project-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.project-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.project-card:hover img { transform: scale(1.05); }
.project-card .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10,10,12,0.92) 0%,
    rgba(10,10,12,0.35) 45%,
    transparent 100%);
}
.project-card .ref {
  position: absolute; top: 16px; left: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(10,10,12,0.45);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
}
.project-card .arrow-up {
  position: absolute; top: 16px; right: 16px;
  width: 16px; height: 16px;
  color: transparent;
  transition: color 0.3s ease;
}
.project-card:hover .arrow-up { color: var(--gold-light); }
.project-card .body {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  color: #fff;
}
.project-card .cat {
  color: var(--gold-light);
  margin-bottom: 8px;
}
.project-card .title {
  font-family: "Fraunces", serif;
  font-size: 20px; line-height: 1.12;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) { .project-card .title { font-size: 24px; } }
.project-card .loc {
  margin-top: 8px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; opacity: 0.9;
}
.project-card .loc svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.project-card .desc {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 44ch;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}
.project-card:hover .desc { max-height: 80px; opacity: 1; }

/* Mosaic span pattern (every 5 cards) */
@media (min-width: 768px) {
  .projects-grid > .project-card:nth-child(5n+1) {
    grid-column: span 4; grid-row: span 2; aspect-ratio: 16 / 10;
  }
  .projects-grid > .project-card:nth-child(5n+2) { grid-column: span 2; aspect-ratio: 4 / 5; }
  .projects-grid > .project-card:nth-child(5n+3) { grid-column: span 2; aspect-ratio: 4 / 5; }
  .projects-grid > .project-card:nth-child(5n+4) { grid-column: span 3; aspect-ratio: 4 / 3; }
  .projects-grid > .project-card:nth-child(5n+5) { grid-column: span 3; aspect-ratio: 4 / 3; }
}

/* ============== LIGHTBOX ============== */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lightbox.open { display: flex; opacity: 1; }
@media (min-width: 640px) { .lightbox { padding: 32px; } }
@media (min-width: 768px) { .lightbox { padding: 48px; } }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.25s ease, color 0.25s ease;
  z-index: 10;
}
.lightbox-close { top: 16px; right: 16px; }
@media (min-width: 768px) { .lightbox-close { top: 24px; right: 24px; } }
.lightbox-close:hover { background: var(--gold); color: var(--darker); }
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
@media (min-width: 768px) {
  .lightbox-prev, .lightbox-next { width: 48px; height: 48px; }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
}
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--gold); color: var(--darker); }
.lightbox-card {
  display: flex; flex-direction: column;
  width: 100%; max-width: 1280px;
  max-height: 88vh;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open .lightbox-card { opacity: 1; transform: scale(1); }
@media (min-width: 1024px) { .lightbox-card { flex-direction: row; } }

.lightbox-img-wrap {
  position: relative;
  flex: 1;
  min-height: 260px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
@media (min-width: 640px) { .lightbox-img-wrap { min-height: 360px; } }
@media (min-width: 1024px) { .lightbox-img-wrap { min-height: 600px; } }
.lightbox-img-wrap img {
  width: 100%; height: 100%; max-height: 88vh;
  object-fit: contain;
}
@media (min-width: 1024px) { .lightbox-img-wrap img { object-fit: cover; } }
.lightbox-cat-pill {
  position: absolute; top: 16px; left: 16px;
  color: var(--gold-light);
  background: rgba(10,10,12,0.7);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
}
.lightbox-panel {
  background: var(--ink);
  color: #fff;
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  overflow-y: auto;
}
@media (min-width: 768px) { .lightbox-panel { padding: 36px; } }
@media (min-width: 1024px) { .lightbox-panel { padding: 40px; width: 400px; } }
@media (min-width: 1280px) { .lightbox-panel { width: 440px; } }

.lightbox-panel .file-tag {
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.lightbox-panel .file-tag .dash { display: inline-block; width: 32px; height: 1px; background: var(--gold); }
.lightbox-panel h2 {
  font-family: "Fraunces", serif;
  font-size: 28px; line-height: 1.05; letter-spacing: -0.01em;
}
@media (min-width: 768px) { .lightbox-panel h2 { font-size: 34px; } }
@media (min-width: 1024px) { .lightbox-panel h2 { font-size: 38px; } }
.lightbox-panel .loc {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.75); font-size: 14px;
}
.lightbox-panel .loc svg { color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.lightbox-panel .divider { height: 1px; width: 100%; background: rgba(255,255,255,0.12); }
.lightbox-panel .description {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
}
@media (min-width: 768px) { .lightbox-panel .description { font-size: 15px; } }

/* ============== PARTNERS GRID ============== */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 40px;
  align-items: center;
}
@media (min-width: 640px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 56px;
  }
}
@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 56px;
    row-gap: 80px;
  }
}
.partner-cell {
  display: flex; align-items: center; justify-content: center;
  height: 88px;
}
@media (min-width: 640px) { .partner-cell { height: 110px; } }
@media (min-width: 768px) { .partner-cell { height: 130px; } }
.partner-cell img {
  max-height: 56px;
  max-width: 85%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
@media (min-width: 640px) {
  .partner-cell img { max-height: 72px; max-width: 80%; }
}
@media (min-width: 768px) {
  .partner-cell img { max-height: 90px; }
}
.partner-cell:hover img { transform: scale(1.06); }
.partner-cell img.dark { mix-blend-mode: multiply; }

/* ============== CONTACT CARDS ============== */
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease;
}
@media (min-width: 768px) { .contact-card { padding: 32px; } }
.contact-card:hover { border-color: var(--gold); }
.contact-card.primary {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.contact-card.primary:hover { background: #1a1b1f; border-color: #1a1b1f; }
.contact-card .left { display: flex; align-items: center; gap: 20px; }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card.primary .contact-icon { background: var(--gold); color: var(--ink); }
.contact-card .meta-label { color: var(--gold); margin-bottom: 4px; }
.contact-card .value {
  font-family: "Fraunces", serif;
  font-size: 22px; line-height: 1.1; letter-spacing: -0.01em;
}
@media (min-width: 768px) { .contact-card .value { font-size: 28px; } }
.contact-card .sub-line {
  font-size: 12px; margin-top: 4px;
  color: var(--ink-soft-2);
}
.contact-card.primary .sub-line { color: rgba(255,255,255,0.65); }
.contact-card .arrow-up { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.25s ease; }
.contact-card:hover .arrow-up { transform: translate(2px, -2px); }

.contact-sticky-col { display: flex; flex-direction: column; gap: 28px; }
.info-row { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); }
.info-row svg { width: 16px; height: 16px; margin-top: 4px; color: var(--gold); flex-shrink: 0; }
.info-row .label { color: var(--ink-soft-2); margin-bottom: 4px; }

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 5fr 7fr; }
}

/* ============== ABOUT-PAGE BITS ============== */
.about-grid { display: grid; gap: 48px; align-items: flex-start; }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 5fr 7fr; }
}
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin-top: 20px; }
.story p:first-of-type { margin-top: 32px; }
.story .pullquote {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}
@media (min-width: 768px) { .story .pullquote { font-size: 22px; } }

.values-grid { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: border-color 0.25s ease;
}
.value-card:hover { border-color: var(--gold); }
.value-card .num { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--gold); }
.value-card .t { font-family: "Fraunces", serif; font-size: 24px; margin-top: 20px; }
@media (min-width: 768px) { .value-card .t { font-size: 26px; } }
.value-card p { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.65; }

.timeline { display: grid; gap: 40px; }
@media (min-width: 768px) { .timeline { grid-template-columns: 4fr 8fr; } }
.tl-row {
  display: grid; grid-template-columns: 3fr 9fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.tl-row .y { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--gold); margin-top: 4px; }
.tl-row .t { font-family: "Fraunces", serif; font-size: 22px; line-height: 1.1; }
@media (min-width: 768px) { .tl-row .t { font-size: 26px; } }
.tl-row p { margin-top: 8px; font-size: 14px; color: var(--ink-soft-2); line-height: 1.65; }

/* ============== PHILOSOPHY (HOME) ============== */
.philos-grid { display: grid; gap: 56px; }
@media (min-width: 768px) { .philos-grid { grid-template-columns: 5fr 7fr; } }
.philos-row {
  display: flex; gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.philos-row .num { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--gold); margin-top: 4px; width: 40px; flex-shrink: 0; }
.philos-row .t { font-family: "Fraunces", serif; font-size: 22px; line-height: 1.1; }
@media (min-width: 768px) { .philos-row .t { font-size: 26px; } }
.philos-row p { margin-top: 8px; font-size: 14px; color: var(--ink-soft-2); line-height: 1.65; }

/* ============== HOME PROJECTS PREVIEW ============== */
.home-projects { display: grid; gap: 24px; }
@media (min-width: 768px) { .home-projects { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.home-proj-card .img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 16px;
}
.home-proj-card .img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.home-proj-card:hover .img-wrap img { transform: scale(1.05); }
.home-proj-card .cat { color: var(--gold); margin-bottom: 4px; }
.home-proj-card h3 {
  font-family: "Fraunces", serif;
  font-size: 22px; line-height: 1.1; color: var(--ink);
}
@media (min-width: 768px) { .home-proj-card h3 { font-size: 26px; } }
.home-proj-card .loc { font-size: 13px; color: var(--ink-soft-2); margin-top: 4px; }

/* ============== CTA BAR ============== */
.cta-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px;
}
.cta-bar h3 {
  font-family: "Fraunces", serif;
  font-size: 30px; line-height: 1; letter-spacing: -0.015em;
  max-width: 32rem;
}
@media (min-width: 768px) { .cta-bar h3 { font-size: 42px; } }
.cta-bar.dark h3 { color: #fff; }

.big-cta {
  display: grid; gap: 40px;
  align-items: end;
}
@media (min-width: 768px) { .big-cta { grid-template-columns: 8fr 4fr; } }
.big-cta p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: 24px; }

/* ============== FOOTER ============== */
.footer {
  background: var(--ink);
  color: #fff;
}
.footer .inner {
  max-width: 1400px; margin: 0 auto;
  padding: 80px 24px 40px;
}
@media (min-width: 768px) { .footer .inner { padding: 80px 40px 40px; } }
.footer-top {
  display: grid; gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 5fr 3fr 4fr; }
}
.footer-logo {
  /* Match React exactly: h-20 w-20 md:h-28 md:w-28 object-contain */
  height: 80px; width: 80px;
  object-fit: contain;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .footer-logo { height: 112px; width: 112px; } }
.footer-tagline {
  font-family: "Fraunces", serif;
  font-size: 26px; line-height: 1.2;
  max-width: 28rem;
  color: #fff;
  letter-spacing: -0.015em;
}
@media (min-width: 768px) { .footer-tagline { font-size: 30px; } }
.footer-section .overline { color: var(--gold); margin-bottom: 24px; }
.footer-section ul { display: flex; flex-direction: column; gap: 12px; }
.footer-section .nav-li a {
  font-size: 15px;
  color: #fff;
  position: relative;
}
.footer-section .nav-li a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.4s ease;
}
.footer-section .nav-li a:hover { color: var(--gold); }
.footer-section .nav-li a:hover::after { width: 100%; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.footer-contact li svg { color: var(--gold); flex-shrink: 0; margin-top: 4px; width: 20px; height: 20px; }
.footer-contact .muted { color: rgba(255,255,255,0.7); }
.footer-bottom {
  padding-top: 32px;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px;
  font-size: 13px;
  color: #fff;
}

/* ============== SCROLL REVEAL ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.45s; }
.reveal[data-delay="5"] { transition-delay: 0.6s; }

/* Animate hero entrances immediately on load (no observer needed) */
.hero-animate { opacity: 0; animation: fadeUp 0.9s ease forwards; }
.hero-animate[data-delay="1"] { animation-delay: 0.1s; }
.hero-animate[data-delay="2"] { animation-delay: 0.3s; }
.hero-animate[data-delay="3"] { animation-delay: 0.45s; }
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Lock body scroll when modal open */
body.scroll-lock { overflow: hidden; }

/* ============== UTILITIES ============== */
.section-overline {
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-flex; align-items: center; gap: 12px;
}
.section-overline .dash { width: 40px; height: 1px; background: var(--gold); display: inline-block; }
.link-underline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--gold); border-bottom-color: var(--gold); }
.link-underline-dark { color: var(--gold); border-bottom-color: var(--gold); }
