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

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --bg:        #080806;
  --bg-raise:  #0f0e0b;
  --bg-warm:   #141210;
  --text:      #ede4cf;
  --text-dim:  #b8ad99;
  --gold:      #c9a84c;
  --gold-dim:  rgba(201,168,76,0.18);
  --muted:     #5a5347;
  --mid:       #8c8070;
  --rule:      rgba(201,168,76,0.10);
  --rule-md:   rgba(201,168,76,0.20);
  --white:     #f5f0e8;

  --nav-h:   52px;
  --max:     1200px;
  --max-text: 700px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(8,8,6,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
}

.nav-home {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-home:hover { color: var(--gold); }
.nav-home em { font-style: italic; color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.1rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  border-right: 1px solid var(--rule);
}
.nav-links li:first-child a { border-left: 1px solid var(--rule); }
.nav-links a:hover { color: var(--text-dim); }
.nav-links a.active { color: var(--text); }

/* ─────────────────────────────────────────
   PAGE WRAPPER
───────────────────────────────────────── */
.page {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 3rem;
}

/* ─────────────────────────────────────────
   INDEX — MASTHEAD
───────────────────────────────────────── */
.index-masthead {
  padding: 6rem 0 0;
  position: relative;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding-bottom: 3rem;
}

.masthead-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 0.92;
  color: var(--white);
}
.masthead-name em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.masthead-descriptor {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
  padding-bottom: 0.5rem;
}

.masthead-rule {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--rule);
}

.masthead-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  color: var(--mid);
  max-width: 480px;
  line-height: 1.65;
}

.masthead-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  align-self: end;
  opacity: 0.5;
}

/* ─────────────────────────────────────────
   INDEX — PROJECT LIST
───────────────────────────────────────── */
.project-group {
  border-bottom: 1px solid var(--rule);
}

.group-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3rem;
  align-items: baseline;
  padding: 2.2rem 0 0;
}

.group-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
}

.group-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
  align-self: center;
}

/* Each project row */
.project-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: baseline;
  gap: 3rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  transition: background 0.15s;
  margin: 0 -3rem;
  padding-left: 3rem;
  padding-right: 3rem;
  position: relative;
}

.project-row::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: var(--bg-raise);
  opacity: 0;
  transition: opacity 0.2s;
}

.project-row:hover::before { opacity: 1; }
.project-row:hover .project-title { color: var(--white); }
.project-row:hover .project-index { color: var(--gold); opacity: 1; }
.project-row:hover .project-arrow { opacity: 1; transform: translateX(4px); }

.project-index {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.35;
  transition: all 0.2s;
  align-self: center;
  position: relative;
  z-index: 1;
}

.project-title-col {
  position: relative;
  z-index: 1;
}

.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  transition: color 0.2s;
  line-height: 1.1;
}

.project-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
  opacity: 0.7;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.project-year {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.project-arrow {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0;
  transition: all 0.25s var(--ease-out);
}

/* Featured marker */
.project-row.is-featured .project-title {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  color: var(--white);
}
.project-row.is-featured .project-index {
  color: var(--gold);
  opacity: 0.7;
}

/* ─────────────────────────────────────────
   PROJECT PAGE — HERO
───────────────────────────────────────── */
.project-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.project-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.45) contrast(1.1);
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,6,0.95) 0%,
    rgba(8,8,6,0.5) 40%,
    rgba(8,8,6,0.1) 100%
  );
}

.project-hero-text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 3rem 4rem;
  max-width: var(--max);
  margin: 0 auto;
}

.project-type-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.project-type-badge::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.project-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 1.8rem;
  max-width: 900px;
}

.project-hero-orientation {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 560px;
}

/* No-image variant */
.project-header-flat {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--rule);
}

.project-back {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  transition: color 0.2s;
}
.project-back:hover { color: var(--gold); }

/* ─────────────────────────────────────────
   PROJECT PAGE — CONTENT LAYOUT
───────────────────────────────────────── */

/* Full-bleed image strip */
.img-strip-full {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: clamp(260px, 42vw, 520px);
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
}
.img-strip-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.82);
}

/* Editorial spread: text + image side by side */
.editorial-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 -3rem;
  align-items: stretch;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.spread-text {
  padding: 4rem 3rem;
  border-right: 1px solid var(--rule);
}

.spread-image {
  overflow: hidden;
  position: relative;
}
.spread-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

/* Text bleeding into image */
.text-over-image {
  position: relative;
  margin: 0 -3rem;
  overflow: hidden;
  min-height: 420px;
}
.text-over-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
}
.text-over-image-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem;
  background: linear-gradient(90deg, rgba(8,8,6,0.9) 50%, transparent 100%);
  max-width: 60%;
}

/* Project sections */
.project-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: var(--max-text);
}
.project-section:last-child { border-bottom: none; }

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--muted);
  opacity: 0.3;
}

.project-body {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--mid);
}
.project-body p { margin-bottom: 1.3rem; }
.project-body p:last-child { margin-bottom: 0; }

/* Pull quote */
.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.25;
  color: var(--text);
  border-left: 2px solid var(--gold);
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 3rem 0;
}

/* Image grid */
.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 3rem 0;
}
.img-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  margin: 3rem 0;
}
.img-grid-2 img,
.img-grid-3 img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.88);
  display: block;
}

.img-caption {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.8rem;
  opacity: 0.55;
}

/* Wide image */
.img-wide {
  margin: 3rem -3rem;
  overflow: hidden;
}
.img-wide img {
  width: 100%;
  height: clamp(200px, 35vw, 440px);
  object-fit: cover;
  filter: brightness(0.85);
}

/* Single image */
.img-single {
  margin: 3rem 0;
}
.img-single img {
  width: 100%;
  max-width: 540px;
  height: auto;
}

/* Press items */
.press-item {
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}
.press-item:last-child { border-bottom: 1px solid var(--rule); }

.press-source {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.press-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--mid);
  font-style: italic;
}

/* Audio embed placeholder */
.audio-block {
  padding: 2rem;
  border: 1px solid var(--rule-md);
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.audio-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.audio-play-btn:hover { background: var(--gold-dim); }
.audio-track-info {
  flex: 1;
}
.audio-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.audio-duration {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Coming soon */
.coming-soon {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.35;
  padding: 2rem 0;
}

/* Adjacent */
.adjacent {
  padding: 4rem 0;
  border-top: 1px solid var(--rule);
}
.adjacent-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.adjacent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.adjacent-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  padding: 0.5rem 1.5rem 0.5rem 0;
  margin-right: 1.5rem;
  border-right: 1px solid var(--rule);
  transition: color 0.2s;
}
.adjacent-link:last-child { border-right: none; }
.adjacent-link:hover { color: var(--gold); }

/* ─────────────────────────────────────────
   TEXT PAGES (About / Info)
───────────────────────────────────────── */
.text-page {
  padding: 7rem 0;
  max-width: var(--max-text);
}
.text-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 3.5rem;
  color: var(--white);
  line-height: 1;
}
.text-page p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--mid);
  margin-bottom: 1.4rem;
}
.text-page h2 {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 3.5rem 0 1.4rem;
}

/* CV list */
.cv-list { list-style: none; margin-bottom: 2rem; }
.cv-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--mid);
}
.cv-list li:last-child { border-bottom: 1px solid var(--rule); }
.cv-year {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted);
  padding-top: 0.2rem;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 6rem;
}
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ─────────────────────────────────────────
   MOBILE
───────────────────────────────────────── */
@media (max-width: 800px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .container { padding: 0 1.5rem; }

  .masthead-descriptor { display: none; }
  .masthead-rule { grid-template-columns: 1fr; }

  .project-row {
    grid-template-columns: auto 1fr;
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    gap: 1.2rem;
  }
  .project-row .project-meta { display: none; }
  .group-header { grid-template-columns: 1fr; gap: 0.5rem; }
  .group-rule { display: none; }

  .project-hero-text { padding: 0 1.5rem 3rem; }
  .project-hero-title { font-size: clamp(2.2rem, 9vw, 4rem); }

  .editorial-spread { grid-template-columns: 1fr; margin: 0; }
  .spread-text { padding: 3rem 0; border-right: none; border-bottom: 1px solid var(--rule); }
  .spread-image { min-height: 260px; }

  .text-over-image-content { max-width: 90%; }

  .img-grid-2,
  .img-grid-3 { grid-template-columns: 1fr 1fr; }

  .img-wide { margin: 2rem -1.5rem; }

  footer { padding: 1.5rem; }
  .adjacent-link { font-size: 1rem; }

  .pull-quote { font-size: 1.3rem; padding-left: 1.2rem; }
}
