@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #F2EEE3;
  --paper-2: #E8E2D0;
  --ink: #17170F;
  --ink-soft: #4B4B3F;
  --ink-mute: #8C8C7A;
  --olive: #4E5733;
  --olive-deep: #343B21;
  --olive-pale: #A9AF8C;
  --line: rgba(23,23,15,0.15);
  --line-strong: rgba(23,23,15,0.32);

  --serif: 'Fraunces', serif;
  --sans: 'Inter', sans-serif;
  --mono: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--olive); color: #F4F1E8; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ---- Nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(239,235,226,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex; align-items: center; justify-content: flex-start;
  height: 76px;
}
.d-mark { height: 24px; width: auto; margin-left: auto; display: block; }
.nav-mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--olive-deep);
}

/* ---- Perspective mark (signature element) ---- */
.p-mark {
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--olive-deep);
  transform: rotate(-18deg);
  margin: 0 2px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--olive-deep);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
.display-1 { font-size: clamp(44px, 7vw, 104px); line-height: 0.98; letter-spacing: -0.015em; }
.display-2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: 24px; line-height: 1.2; }
p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1em; font-size: 16.5px; }
.lede { font-size: 20px; line-height: 1.6; color: var(--ink); max-width: 640px; }
.meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-mute); letter-spacing: 0.03em; }
em, .i { font-family: var(--serif); font-style: italic; }
h1 i, h2 i { font-style: italic; color: var(--olive-deep); }

/* Bracket-style tag label, in the spirit of agency site conventions */
.tag-label {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--olive-deep);
}
.tag-label::before { content: '[ '; }
.tag-label::after { content: ' ]'; }

.cat-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.cat-tags span {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute);
}
.cat-tags span::before { content: '['; margin-right: 2px; color: var(--olive-deep); }
.cat-tags span::after { content: ']'; margin-left: 2px; color: var(--olive-deep); }

/* Kinetic oversized intro paragraph - mixed weight editorial statement */
.kinetic {
  font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.28; letter-spacing: -0.005em; color: var(--ink); max-width: 1000px;
}
.kinetic b { font-weight: 600; }
.kinetic i { font-style: italic; color: var(--olive-deep); }

/* ---- Sections ---- */
section { padding: 96px 0; }
.hairline { border-top: 1px solid var(--line); }

/* ---- Buttons / links ---- */
.text-link {
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  letter-spacing: 0.03em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px; display: inline-flex; align-items: center; gap: 8px;
}
.text-link:hover { border-color: var(--olive-deep); color: var(--olive-deep); }

/* ---- Grid / cards ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.work-card { display: block; }
.work-card .frame {
  aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--line); margin-bottom: 18px;
}
.work-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work-card:hover img { transform: scale(1.03); }
.work-card .wc-title { font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.work-card .wc-tag { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }

/* ---- Numbered index list (Projects page) ---- */
.index-list { border-top: 2px solid var(--ink); }
.index-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline;
  gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; position: relative;
}
.index-row .idx-num { font-family: var(--mono); font-size: 13px; color: var(--ink-mute); }
.index-row .idx-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.05; transition: color .25s ease, transform .25s ease;
}
.index-row:hover .idx-title { color: var(--olive-deep); transform: translateX(6px); }
.index-row .idx-meta { display: flex; gap: 16px; align-items: baseline; }
.index-row .idx-tag { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .03em; }
.index-row .idx-arrow { font-family: var(--sans); font-size: 20px; color: var(--olive-deep); opacity: 0; transition: opacity .2s ease, transform .2s ease; transform: translateX(-6px); }
.index-row:hover .idx-arrow { opacity: 1; transform: translateX(0); }

.index-list.compact .index-row { padding: 16px 0; }
.index-list.compact .idx-title { font-size: clamp(17px, 1.6vw, 21px); }
.index-list.compact .idx-num { font-size: 11px; }

.hover-preview {
  position: fixed; top: 0; left: 0; width: 260px; height: 330px;
  pointer-events: none; z-index: 300; overflow: hidden;
  opacity: 0; transform: scale(0.94); transition: opacity .25s ease, transform .25s ease;
  border: 1px solid var(--line-strong); background: var(--paper-2);
}
.hover-preview.on { opacity: 1; transform: scale(1); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hover-preview .hp-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px;
  background: rgba(23,23,15,0.82); color: #F2EEE3; font-family: var(--mono); font-size: 11px;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.site-footer .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.site-footer .foot-links { display: flex; gap: 26px; }
.site-footer a { font-size: 13px; color: var(--ink-soft); }
.site-footer a:hover { color: var(--olive-deep); }

@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  section { padding: 64px 0; }
  .container { padding: 0 22px; }
}

/* ================================================================
   PROJECT CASE STUDY — CANONICAL SHARED SYSTEM
   Every project page uses these classes. Do not redefine locally.
   ================================================================ */

/* Hero slideshow */
.fb-wrap { height: 92vh; position: relative; overflow: hidden; background: var(--ink); }
.fb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.fb-slide.on { opacity: 1; }
.fb-slide img { width: 100%; height: 100%; object-fit: cover; }
.fb-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,23,15,0.78) 0%, rgba(23,23,15,0) 32%, rgba(23,23,15,0) 78%, rgba(23,23,15,0.55) 100%); z-index: 2; pointer-events: none; }
.fb-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; padding: 26px 40px; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .04em; color: #F2EEE3; }
.fb-nav a { color: #F2EEE3; }
.fb-panel { position: absolute; bottom: 34px; left: 40px; z-index: 5; color: #F2EEE3; max-width: 460px; }
.fb-panel .p-tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #C9C29C; margin-bottom: 8px; }
.fb-panel h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px,3.4vw,44px); line-height: 1.1; }
.fb-dots { position: absolute; bottom: 34px; right: 40px; z-index: 5; display: flex; gap: 8px; }
.fb-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid #F2EEE3; background: transparent; cursor: pointer; padding: 0; }
.fb-dots button.on { background: #F2EEE3; }

/* Quote */
.pull-quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.8vw, 34px); line-height: 1.4; max-width: 820px; color: var(--olive-deep);
}

/* Meta strip */
.meta-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.meta-strip .mk { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); margin-bottom: 5px; }
.meta-strip .mv { font-size: 14.5px; color: var(--ink); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid img { width: 100%; height: 340px; object-fit: cover; display: block; }
.gallery-grid .wide { grid-column: span 2; }

/* Process */
.process-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.process-item img { width: 100%; border: 1px solid var(--line-strong); display: block; }
.process-item .p-cap { font-size: 12px; color: var(--ink-mute); margin-top: 8px; }

/* Materials / single full-width image sections */
.materials-img { width: 100%; border: 1px solid var(--line-strong); }

/* Press */
.press-list { display: flex; flex-direction: column; }
.press-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.press-row .p-name { font-family: var(--serif); font-size: 18px; }
.press-row a { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; color: var(--olive-deep); }

@media (max-width: 860px) {
  .meta-strip { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .wide { grid-column: span 2; }
  .process-row { grid-template-columns: 1fr; }
}

/* Placeholder hero slide for case studies awaiting photography */
.fb-slide.placeholder { background: var(--paper-2); display: flex; align-items: center; justify-content: center; }
.fb-slide.placeholder span { font-family: var(--sans); font-size: 13px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; }

/* Standalone event poster/flyer — consistent size across all Maven pages */
.poster-standalone { max-width: 460px; margin: 0 auto; }
.poster-standalone img { width: 100%; height: auto; display: block; border: 1px solid var(--line-strong); }
