/* ─────────────────────────────────────────────────────────
   PeshRuft — Cinematic field-production studio
   ───────────────────────────────────────────────────────── */

:root {
  /* warm cinematic palette */
  --parchment: #f4ece0;
  --parchment-2: #ede2d1;
  --sandstone: #d9c4a3;
  --gold: #c8a86b;
  --terracotta: #b5532a;
  --terracotta-2: #9a4421;
  --brown: #3d2a1e;
  --brown-2: #2a1c12;
  --charcoal: #1a110a;
  --olive: #6f6e3a;
  --ink: #211609;
  --ink-soft: #5a4632;
  --line: rgba(33, 22, 9, 0.14);
  --line-strong: rgba(33, 22, 9, 0.28);

  /* type */
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1320px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-y: clamp(80px, 10vw, 140px);
  --radius: 18px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.4, .12, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern', 'liga', 'ss01';
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* parchment texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse at top left, rgba(184, 132, 80, 0.05), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(107, 68, 36, 0.07), transparent 55%);
  mix-blend-mode: multiply;
}
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.15  0 0 0 0 0.1  0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 3;
}
.container.narrow { max-width: 1180px; }

/* ─────────── NAV ─────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 236, 224, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled {
  background: rgba(244, 236, 224, 0.94);
  border-color: var(--line-strong);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brown);
}
.brand-mark { display: inline-flex; }
.brand-word {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--terracotta);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta .btn { padding: 9px 18px; font-size: 14px; }
.hamburger {
  display: none;
  width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer;
}
.hamburger span {
  width: 16px; height: 1.5px; background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-drawer {
  display: none;
  flex-direction: column;
  padding: 20px var(--gutter) 28px;
  background: var(--parchment);
  border-top: 1px solid var(--line);
  gap: 4px;
}
.nav-drawer a {
  padding: 14px 0;
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-drawer .drawer-cta { margin-top: 18px; border: none; align-self: flex-start; }
.nav.menu-open .nav-drawer { display: flex; }

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brown);
  color: var(--parchment);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 22px -10px rgba(61, 42, 30, 0.4);
}
.btn-primary:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 14px 28px -10px rgba(181, 83, 42, 0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--brown);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: rgba(61, 42, 30, 0.06);
  border-color: var(--brown);
}
.btn-secondary-dark {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(244, 236, 224, 0.35);
}
.btn-secondary-dark:hover {
  background: rgba(244, 236, 224, 0.08);
  border-color: var(--parchment);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--brown);
  color: var(--parchment);
  border-color: var(--brown);
}
.btn-large { padding: 17px 30px; font-size: 15.5px; }
.btn-block { width: 100%; justify-content: center; padding: 16px 24px; }
.btn-link {
  font-size: 14px;
  color: var(--terracotta);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: center;
  transition: opacity .2s;
}
.btn-link:hover { opacity: 0.75; }

/* ─────────── TYPOGRAPHY HELPERS ─────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.section-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 22px;
}
.section-tag.light { color: var(--gold); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--brown);
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}
.section-title.light { color: var(--parchment); }
.section-title.light em { color: var(--gold); }
.section-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
.section-sub.light { color: rgba(244, 236, 224, 0.75); }
.section-header {
  margin-bottom: 64px;
  max-width: 780px;
}
.section-header.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.centered .section-sub { margin-left: auto; margin-right: auto; }
.section { padding: var(--section-y) 0; position: relative; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ─────────── HERO ─────────── */
.hero {
  padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 9vw, 130px);
  position: relative;
  overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, rgba(200, 168, 107, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(181, 83, 42, 0.08), transparent 60%);
}
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  position: relative;
  z-index: 3;
}

.display {
  font-family: var(--serif);
  font-size: clamp(48px, 7.2vw, 96px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--brown);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
  position: relative;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta > div { display: flex; flex-direction: column; gap: 4px; }
.meta-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--brown);
  line-height: 1;
}
.meta-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--line-strong);
}

/* hero collage */
.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 250px 200px 180px;
  gap: 14px;
  min-height: 640px;
}
.frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brown-2);
  box-shadow: 0 18px 50px -22px rgba(58, 36, 22, 0.55);
  transition: transform .5s var(--ease);
}
.frame:hover { transform: translateY(-3px); }
.frame-art { width: 100%; height: 100%; display: block; }
.frame-cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 236, 224, 0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.frame-cap span {
  display: inline-block;
  padding: 2px 6px;
  margin-right: 6px;
  background: rgba(244, 236, 224, 0.18);
  border: 1px solid rgba(244, 236, 224, 0.3);
  border-radius: 3px;
  color: var(--parchment);
}

.frame-mountain { grid-column: 1; grid-row: 1 / span 2; }
.frame-map { grid-column: 2; grid-row: 1; }
.frame-coast { grid-column: 2; grid-row: 2; }
.frame-city  { grid-column: 1; grid-row: 3; }
.frame-portrait { grid-column: 2; grid-row: 3; }

.hero-waveform {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 10px;
  box-shadow: 0 14px 30px -12px rgba(58, 36, 22, 0.25);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 4;
}
.hero-waveform svg { display: block; }
.wave-cap {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.map-marker circle:first-child {
  transform-origin: center;
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.3); opacity: 0; }
}

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 3;
}
.scroll-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--ink-soft), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, var(--terracotta), transparent);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─────────── PARTNERS STRIP ─────────── */
.partners-strip {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--parchment-2);
  position: relative;
  z-index: 3;
}
.strip-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 22px;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
}
.logo-word {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 500;
  color: var(--brown);
  letter-spacing: 0.01em;
  opacity: 0.72;
  transition: opacity .25s var(--ease), color .25s var(--ease);
  font-style: italic;
}
.logo-word:hover { opacity: 1; color: var(--terracotta); }
.logo-1 { font-family: var(--sans); font-weight: 700; letter-spacing: 0.16em; font-style: normal; }
.logo-2 { letter-spacing: 0.2em; }
.logo-3 { font-style: normal; font-weight: 500; }
.logo-4 { font-family: var(--sans); font-weight: 400; letter-spacing: 0.04em; font-style: normal; }
.logo-5 { font-family: var(--sans); font-weight: 600; letter-spacing: 0.18em; font-style: normal; }
.logo-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ─────────── PROBLEM ─────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.problem-card {
  background: var(--parchment-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: var(--terracotta);
  box-shadow: 0 22px 40px -22px rgba(181, 83, 42, 0.3);
}
.problem-icon {
  color: var(--terracotta);
  margin-bottom: 4px;
}
.problem-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin: 0;
  color: var(--brown);
}
.problem-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}
.problem-stat {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.problem-stat b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brown);
}

/* ─────────── SERVICES ─────────── */
.services {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-2) 100%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--parchment);
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background .3s var(--ease);
}
.service-card:hover { background: var(--parchment-2); }
.service-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--terracotta);
}
.service-icon {
  color: var(--brown);
  margin: 10px 0 6px;
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0;
  color: var(--brown);
  line-height: 1.15;
}
.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
}
.service-arrow {
  position: absolute;
  top: 36px; right: 32px;
  font-size: 22px;
  color: var(--ink-soft);
  opacity: 0.35;
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.service-card:hover .service-arrow {
  opacity: 1; color: var(--terracotta);
  transform: translate(3px, -3px);
}

/* ─────────── WORK ─────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brown-2);
  cursor: pointer;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -25px rgba(58, 36, 22, 0.5);
}
.work-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--brown);
}
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .4s var(--ease);
  filter: saturate(1.05) brightness(0.95);
}
.work-card:hover .work-thumb img {
  transform: scale(1.06);
  filter: saturate(1.15) brightness(1);
}
.work-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(33, 22, 9, 0) 30%, rgba(33, 22, 9, 0.55) 100%);
  transition: background .3s var(--ease);
}
.work-card:hover .work-play { background: linear-gradient(180deg, rgba(33, 22, 9, 0.1) 0%, rgba(33, 22, 9, 0.65) 100%); }
.play-btn {
  width: 64px; height: 64px;
  background: rgba(244, 236, 224, 0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease), background .25s var(--ease);
  color: var(--brown);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.4);
}
.work-card:hover .play-btn {
  transform: scale(1.08);
  background: var(--terracotta);
  color: var(--parchment);
}
.work-runtime {
  position: absolute;
  top: 14px; right: 14px;
  padding: 5px 10px;
  background: rgba(33, 22, 9, 0.6);
  color: var(--parchment);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  border-radius: 4px;
  border: 1px solid rgba(244, 236, 224, 0.2);
  backdrop-filter: blur(4px);
}
.work-region {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 10px;
  background: rgba(244, 236, 224, 0.92);
  color: var(--brown);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
}
.work-meta {
  padding: 22px 24px 26px;
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.work-meta h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: var(--brown);
  line-height: 1.2;
}
.work-meta p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.work-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 2px;
}

/* ─────────── NETWORK / DARK SECTION ─────────── */
.dark-section {
  background: var(--charcoal);
  color: var(--parchment);
  position: relative;
}
.dark-section::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(200, 168, 107, 0.07), transparent 60%),
    radial-gradient(ellipse 70% 60% at 10% 90%, rgba(181, 83, 42, 0.08), transparent 60%);
}
.network-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.network-copy { color: var(--parchment); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 38px 0 26px;
  padding-top: 36px;
  border-top: 1px solid rgba(244, 236, 224, 0.12);
}
.stat-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 224, 0.65);
}
.region-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 236, 224, 0.75);
}
.region-legend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.dot-active { background: var(--terracotta); }
.dot-crew { background: var(--olive); }
.dot-archive { background: var(--gold); }

.network-map {
  position: relative;
  border-radius: var(--radius);
  background: rgba(244, 236, 224, 0.02);
  border: 1px solid rgba(244, 236, 224, 0.08);
  padding: 24px;
}
.network-map svg { width: 100%; height: auto; }
.marker { cursor: pointer; }
.marker circle:first-child {
  transform-origin: center center;
  transform-box: fill-box;
  animation: ping 2.8s ease-out infinite;
}
.marker:hover circle:nth-child(2) {
  r: 8;
  transition: r .25s var(--ease);
}
.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--parchment);
  color: var(--brown);
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 18px 36px -10px rgba(0,0,0,0.5);
  max-width: 240px;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity .25s var(--ease);
  z-index: 5;
  left: 0; top: 0;
}
.map-tooltip.visible { opacity: 1; }
.tip-region {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 4px;
}
.tip-cities {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.tip-type {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.map-caption {
  position: absolute;
  bottom: 14px; left: 24px;
  color: rgba(244, 236, 224, 0.45);
}

/* ─────────── ARCHIVE ─────────── */
.archive {
  background: var(--parchment-2);
  position: relative;
}
.archive-header { margin-bottom: 64px; max-width: 720px; }
.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.big-quote {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--brown);
  margin: 0 0 36px;
  font-weight: 400;
  text-wrap: balance;
}
.big-quote em {
  font-style: italic;
  color: var(--terracotta);
}
.archive-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.archive-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  font-size: 15px;
  color: var(--ink);
}
.archive-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.archive-list .mono { color: var(--terracotta); }

.archive-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.archive-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.archive-card:hover { transform: translateX(-4px); }
.archive-card-1 { margin-left: 40px; }
.archive-card-2 { margin-left: 0; }
.archive-card-3 { margin-left: 80px; }
.archive-art {
  height: 140px;
  background: var(--brown-2);
  position: relative;
  overflow: hidden;
}
.archive-art-frames {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 14px;
  background: #1a0f08;
}
.archive-art-frames > div {
  background: linear-gradient(135deg, #7a4421 0%, #3a1f10 100%);
  border: 1px solid rgba(200, 168, 107, 0.2);
  position: relative;
}
.archive-art-frames > div::before,
.archive-art-frames > div::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 6px;
  background-image: repeating-linear-gradient(90deg, #f4ece0 0 3px, transparent 3px 8px);
  opacity: 0.6;
}
.archive-art-frames > div::before { top: 0; }
.archive-art-frames > div::after { bottom: 0; }
.archive-art-frames > div:nth-child(1) { background: linear-gradient(135deg, #8a4d24, #2a1408); }
.archive-art-frames > div:nth-child(2) { background: linear-gradient(135deg, #b8854a, #4a2a14); }
.archive-art-frames > div:nth-child(3) { background: linear-gradient(135deg, #6f6e3a, #2a2810); }
.archive-art-frames > div:nth-child(4) { background: linear-gradient(135deg, #c8a86b, #5a3a18); }

.archive-art-wave {
  background: var(--brown-2);
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.archive-art-wave svg { width: 100%; height: 60px; }

.archive-art-notes {
  background: linear-gradient(135deg, #ede2d1, #d9c4a3);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  position: relative;
}
.archive-art-notes::after {
  content: '';
  position: absolute;
  left: 24px; right: 24px;
  top: 14px; bottom: 14px;
  border-left: 1px solid var(--terracotta);
  opacity: 0.3;
  width: 1px;
}
.notes-line {
  height: 1.5px;
  background: var(--brown);
  opacity: 0.5;
  border-radius: 1px;
}
.notes-line.short { width: 60%; }
.archive-card-cap {
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; gap: 12px;
  border-top: 1px solid var(--line);
}
.archive-card-cap .mono { color: var(--terracotta); }

/* ─────────── FUNDING ─────────── */
.funding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.funding-list {
  list-style: none;
  margin: 36px 0 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.funding-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.funding-list li:last-child { border-bottom: 1px solid var(--line); }
.fl-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  padding-top: 4px;
}
.funding-list b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  color: var(--brown);
}
.funding-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.card-warm {
  background: linear-gradient(160deg, #b5532a 0%, #7a3618 100%);
  color: var(--parchment);
  padding: clamp(36px, 4vw, 52px);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(181, 83, 42, 0.5);
}
.card-warm::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.9  0 0 0 0 0.7  0 0 0 0.1 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.funding-tag {
  color: rgba(244, 236, 224, 0.6);
  margin-bottom: 28px;
  position: relative;
}
.card-warm h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 18px;
  position: relative;
  color: var(--parchment);
}
.card-warm p {
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(244, 236, 224, 0.85);
  position: relative;
}
.funding-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  position: relative;
}
.funding-actions .btn-primary {
  background: var(--parchment);
  color: var(--brown);
}
.funding-actions .btn-primary:hover {
  background: var(--brown);
  color: var(--parchment);
  box-shadow: none;
}
.funding-actions .btn-link {
  color: var(--parchment);
  opacity: 0.8;
  border-bottom-color: rgba(244, 236, 224, 0.4);
}
.funding-actions .btn-link:hover { opacity: 1; }
.funding-meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 236, 224, 0.18);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}
.funding-meta > div { display: flex; flex-direction: column; gap: 4px; }
.funding-meta span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 236, 224, 0.5);
}
.funding-meta b {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

/* ─────────── FOUNDERS ─────────── */
.founders {
  background: var(--parchment);
}
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px);
  max-width: 1080px;
  margin: 0 auto;
}
.founder-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.founder-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brown-2);
  transition: transform .5s var(--ease);
}
.founder-card:hover .founder-portrait { transform: translateY(-4px); }
.founder-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.6) sepia(0.18) contrast(0.95) brightness(0.95);
  transition: filter .5s var(--ease), transform .8s var(--ease);
}
.founder-card:hover .founder-portrait img {
  filter: saturate(0.85) sepia(0.1) contrast(1) brightness(1);
  transform: scale(1.03);
}
.founder-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(120, 60, 24, 0.15) 0%, rgba(33, 22, 9, 0.35) 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.founder-body { padding: 0 4px; }
.founder-meta {
  color: var(--terracotta);
  margin-bottom: 10px;
}
.founder-body h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--brown);
  letter-spacing: -0.005em;
}
.founder-body p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  max-width: 42ch;
}
.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.founder-tags span {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ─────────── FINAL CTA ─────────── */
.final-cta { background: var(--brown); }
.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.cta-copy { color: var(--parchment); }
.cta-headline {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--parchment);
  text-wrap: balance;
}
.cta-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.cta-sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(244, 236, 224, 0.72);
  margin: 0 0 36px;
  max-width: 50ch;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 50px;
}
.cta-actions .btn-primary {
  background: var(--parchment);
  color: var(--brown);
}
.cta-actions .btn-primary:hover { background: var(--gold); color: var(--brown); }
.cta-contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(244, 236, 224, 0.16);
}
.cta-contact-row > div { display: flex; flex-direction: column; gap: 6px; }
.cta-contact-row span.mono { color: rgba(244, 236, 224, 0.5); }
.cta-contact-row a, .cta-contact-row > div > span:not(.mono) {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--parchment);
}
.cta-contact-row a:hover { color: var(--gold); }

.cta-form {
  background: rgba(244, 236, 224, 0.04);
  border: 1px solid rgba(244, 236, 224, 0.12);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(6px);
}
.form-tag {
  color: var(--gold);
  margin-bottom: 6px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 224, 0.6);
}
.field input, .field select, .field textarea {
  background: rgba(33, 22, 9, 0.4);
  border: 1px solid rgba(244, 236, 224, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--parchment);
  outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 236, 224, 0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: rgba(33, 22, 9, 0.65);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1 L6 7 L11 1' fill='none' stroke='%23c8a86b' stroke-width='1.5' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  min-height: 16px;
}

/* ─────────── FOOTER ─────────── */
.footer {
  background: var(--charcoal);
  color: rgba(244, 236, 224, 0.7);
  padding: 64px 0 36px;
  border-top: 1px solid rgba(244, 236, 224, 0.08);
}
.footer .brand { color: var(--parchment); margin-bottom: 16px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244, 236, 224, 0.08);
}
.footer-brand p { font-size: 15px; line-height: 1.55; max-width: 36ch; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .mono {
  color: var(--gold);
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 15px;
  color: rgba(244, 236, 224, 0.7);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--parchment); }
.footer-base {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(244, 236, 224, 0.4);
}

/* ─────────── LIGHTBOX ─────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 8, 4, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox.visible { display: flex; opacity: 1; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px;
  background: rgba(244, 236, 224, 0.1);
  border: 1px solid rgba(244, 236, 224, 0.3);
  border-radius: 50%;
  color: var(--parchment);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.lightbox-close:hover { background: var(--terracotta); border-color: var(--terracotta); }
.lightbox-inner {
  width: min(1080px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lightbox-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-cap {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 236, 224, 0.6);
  text-align: center;
}

/* ─────────── REVEAL ANIMATIONS ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 1100px) {
  .nav-cta { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 160px 140px;
    min-height: 540px;
  }
  .problem-grid, .services-grid, .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .network-grid, .archive-grid, .funding-grid, .cta-grid, .founders-grid {
    grid-template-columns: 1fr;
  }
  .archive-card-1, .archive-card-3 { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { flex-wrap: wrap; }
  .hero-waveform { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .problem-grid, .services-grid, .work-grid {
    grid-template-columns: 1fr;
  }
  .hero-collage {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 180px);
    min-height: unset;
  }
  .frame-mountain, .frame-map, .frame-coast, .frame-city, .frame-portrait {
    grid-column: 1;
    grid-row: auto;
  }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .funding-meta { grid-template-columns: 1fr 1fr; }
  .cta-contact-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}
