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

:root {
  --bg:       #080809;
  --bg2:      #0d0d10;
  --bg3:      #141418;
  --line:     rgba(255,255,255,0.06);
  --line2:    rgba(255,255,255,0.10);
  --text:     #dddde4;
  --muted:    #9ca3af;
  --accent:   #c9a96e;
  --accent2:  #e8c98a;
  --white:    #f5f5f0;
  --sans:     'Inter', system-ui, sans-serif;
  --serif:    'DM Serif Display', Georgia, serif;
  --max:      1200px;
  --rad:      8px;
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* NAV */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  background: rgba(8,8,9,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
nav.site-nav.nav-hidden { transform: translateY(-100%); }

.nav-logo {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--white);
  letter-spacing: -0.2px;
}

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(201,169,110,0.3);
  padding: 7px 18px;
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.nav-cta:hover { background: rgba(201,169,110,0.08); color: var(--accent2); }

/* Mobile nav */
.mobile-menu-btn { display: none; background: none; border: none; color: white; cursor: pointer; z-index: 1002; padding: 10px; }
.hamburger { display: block; width: 24px; height: 2px; background: white; position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 24px; height: 2px; background: white; left: 0; transition: 0.3s; }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-nav-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(8, 8, 9, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav-links { list-style: none; text-align: center; gap: 2rem; display: flex; flex-direction: column; }
.mobile-nav-links a { font-size: 2rem; text-decoration: none; color: white; font-family: 'DM Serif Display', serif; }

@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .mobile-menu-btn { display: block; }
}

/* Scroll progress */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 200; transform-origin: left; transition: width 0.05s linear; pointer-events: none;
}

/* Cursor glow */
.cursor-glow {
  pointer-events: none; position: fixed; top: 0; left: 0;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.07) 0%, transparent 65%);
  transform: translate(-50%, -50%); z-index: 0; transition: opacity 0.4s; will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

/* Footer */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 36px 48px;
}
.footer-main {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo { font-family: var(--serif); font-size: 15px; color: var(--muted); }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 12px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-disclaimer {
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  opacity: 0.75;
  text-align: center;
  backdrop-filter: blur(4px);
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background: rgba(8,8,9,0.92);
}
@media (max-width: 900px) {
  footer { padding: 36px 24px; }
  .footer-main { flex-direction: column; gap: 18px; text-align: center; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Section base */
section { padding: 100px 48px; }
.container { max-width: var(--max); margin: 0 auto; }

.section-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--accent); opacity: 0.7; }

.section-title {
  font-family: var(--serif); font-size: clamp(34px, 4.5vw, 58px);
  color: var(--white); line-height: 1.08; letter-spacing: -1px; margin-bottom: 20px;
}

.section-lead { font-size: 16px; color: var(--muted); max-width: 560px; line-height: 1.75; margin-bottom: 60px; font-weight: 300; }

@media (max-width: 900px) {
  nav.site-nav { padding: 0 24px; }
  section { padding: 72px 24px; }
}

/* Chip */
.chip {
  font-size: 10px; font-weight: 500; color: var(--muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 20px; letter-spacing: 0.02em;
}

/* Lightbox (shared) */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(4,4,5,0.95);
  display: flex; align-items: center; justify-content: center; padding: 32px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease; backdrop-filter: blur(6px);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img {
  max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7); transform: scale(0.96); transition: transform 0.3s ease, opacity 0.14s ease;
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 8px; transition: color 0.2s; line-height: 0;
}
.lightbox-close:hover { color: var(--white); }
.lightbox-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: rgba(255,255,255,0.7); transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 10; backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.28); }
.lightbox-nav:disabled { opacity: 0.18; pointer-events: none; }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }
.lightbox-footer {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; white-space: nowrap;
}
.lightbox-counter { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: rgba(255,255,255,0.35); text-transform: uppercase; }
.lightbox-caption { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }


/* PROJECT HERO — full-screen cover */
.proj-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.proj-hero-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.proj-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.62);
}
.proj-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,9,0.15) 0%, rgba(8,8,9,0.25) 45%, rgba(8,8,9,0.96) 100%);
  pointer-events: none;
}
.proj-hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 48px 72px;
}
.proj-hero-inner { max-width: var(--max); margin: 0 auto; }

.proj-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 28px; transition: color 0.2s;
}
.proj-back:hover { color: var(--white); }
.proj-back svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

.proj-hero-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; display: block;
}
.proj-hero-title {
  font-family: var(--serif);
  font-size: clamp(42px, 6.5vw, 88px);
  color: var(--white); line-height: 1.02; letter-spacing: -2px; margin-bottom: 10px;
}
.proj-hero-title em { color: var(--accent); font-style: italic; }
.proj-hero-subtitle {
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 640px;
}
.proj-hero-meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line2);
}
.proj-hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.proj-hero-meta-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.proj-hero-meta-val { font-size: 13px; color: var(--text); }

/* NARRATIVE BLOCKS */
.proj-narrative { background: var(--bg); }

.pn-text {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 48px;
}
.pn-text-inner { max-width: 620px; }
.pn-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.pn-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--accent); opacity: 0.7; }
.pn-heading {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 38px);
  color: var(--white); line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 22px;
}
.pn-body { font-size: 16px; color: var(--muted); line-height: 1.85; font-weight: 300; }

/* Single narrative image — smaller than full-bleed, dimmed by default,
   nudged off-center with a slight rotation to break the grid symmetry. */
.pn-image {
  width: 58%;
  cursor: zoom-in;
  margin: 0 auto;
}
.pn-image-caption {
  max-width: var(--max); margin: 14px auto 0; padding: 0 48px;
  font-size: 12px; color: var(--muted); letter-spacing: 0.02em;
}

.pn-image-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  align-items: start;
}
.pn-image-pair .pn-pair-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: zoom-in;
  width: 63%;
}

.pn-frame {
  position: relative;
  overflow: hidden;
  opacity: 0.72;
  transform: rotate(var(--tilt, 0deg)) translateX(var(--shift, 0));
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.pn-frame:hover,
.pn-frame:focus-visible,
.pn-frame.active {
  opacity: 1;
  transform: rotate(0deg) translateX(0);
}
.pn-frame img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Deterministic asymmetric offsets per position in the page — alternates
   left/right nudge and tilt direction so the layout reads as intentionally
   broken rather than randomly jittery on every reload. */
.pn-image:nth-of-type(4n+1) .pn-frame { --tilt: -0.6deg; --shift: -3%; margin-left: 0; }
.pn-image:nth-of-type(4n+2) .pn-frame { --tilt: 0.8deg; --shift: 4%; margin-left: 8%; }
.pn-image:nth-of-type(4n+3) .pn-frame { --tilt: -0.4deg; --shift: -5%; }
.pn-image:nth-of-type(4n+4) .pn-frame { --tilt: 0.5deg; --shift: 2%; margin-left: 4%; }

.pn-image-pair .pn-pair-item:nth-child(1) .pn-frame { --tilt: -0.7deg; --shift: -2%; }
.pn-image-pair .pn-pair-item:nth-child(2) .pn-frame { --tilt: 0.6deg; --shift: 3%; margin-top: 26px; }

/* Chips row at end of case study */
.proj-tags-section { padding: 40px 48px 100px; border-top: 1px solid var(--line); }
.proj-tags-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.proj-tags-label { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }

/* NEXT PROJECT */
.next-project {
  border-top: 1px solid var(--line);
  padding: 80px 48px;
  display: block;
  position: relative;
  overflow: hidden;
}
.next-project-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; z-index: 2;
}
.next-project-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: block;
}
.next-project-title {
  font-family: var(--serif); font-size: clamp(32px, 5vw, 56px);
  color: var(--white); line-height: 1.05; letter-spacing: -1px;
  transition: color 0.3s;
}
.next-project:hover .next-project-title { color: var(--accent2); }
.next-project-arrow {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.next-project:hover .next-project-arrow { border-color: var(--accent); background: rgba(201,169,110,0.08); transform: translateX(6px); }
.next-project-arrow svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.5; }
.next-project-bg {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.7) brightness(0.3) blur(2px);
  transition: opacity 0.5s ease;
}
.next-project:hover .next-project-bg { opacity: 0.35; }

@media (max-width: 900px) {
  .proj-hero-content { padding: 0 24px 48px; }
  .pn-text { padding: 64px 24px; }
  .pn-image-caption { padding: 0 24px; }
  .pn-image-pair { grid-template-columns: 1fr; padding: 0 24px; gap: 24px; }
  .pn-image-pair .pn-pair-item { width: 100%; }
  .pn-image { width: 100%; }
  .proj-tags-section { padding: 32px 24px 64px; }
  .next-project { padding: 56px 24px; }
  .next-project-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .proj-hero-meta { gap: 20px; }

  /* Flatten the asymmetric offsets on mobile — no room for them, and touch
     devices can't hover, so raise default opacity for readability. */
  .pn-image:nth-of-type(4n+1) .pn-frame,
  .pn-image:nth-of-type(4n+2) .pn-frame,
  .pn-image:nth-of-type(4n+3) .pn-frame,
  .pn-image:nth-of-type(4n+4) .pn-frame,
  .pn-image-pair .pn-pair-item:nth-child(1) .pn-frame,
  .pn-image-pair .pn-pair-item:nth-child(2) .pn-frame {
    --tilt: 0deg; --shift: 0; margin: 0;
  }
  .pn-frame { opacity: 0.88; }
}

@media (hover: none) {
  .pn-frame { opacity: 0.9; }
}

