/* ============================================
   Davidova.Studio — Project page stylesheet
   Black theme · Anton + Inter Tight + JetBrains Mono
   ============================================ */

:root {
  --bg: #0a0a0a;
  --fg: #e8e6e1;
  --muted: #6e6c66;
  --line: #1f1d1a;
  --tag-bg: #1a1816;
  --tag-fg: #c9c6bf;
  --accent: #ff2e16;
  --tile-bg: #14120f;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  background: rgba(10, 10, 10, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: -0.005em;
}
.logo::after { content: "."; color: var(--accent); }

nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
nav a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* HERO */
.hero-bleed {
  margin-top: 70px;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tile-bg);
  position: relative;
}

.hero-bleed img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1816 0%, #0d0c0a 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Anton', sans-serif;
  color: #3a3833;
  font-size: 56px;
  letter-spacing: 0.02em;
}

/* PROJECT TITLE BLOCK */
.title-block {
  padding: 60px 36px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.title-block .tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.title-block h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.015em;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  font-size: 13px;
}

.meta-grid .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.meta-grid .value {
  font-weight: 500;
}

/* SECTION */
.section {
  padding: 80px 36px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  position: sticky;
  top: 100px;
}

.section-body { max-width: 820px; }

.section-body h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.section-body p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 720px;
  margin-bottom: 20px;
  font-weight: 400;
}

/* GALLERY */
.gallery {
  padding: 60px 36px 80px;
  display: grid;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.gallery-row { display: grid; gap: 24px; }
.gallery-row.cols-1 { grid-template-columns: 1fr; }
.gallery-row.cols-2 { grid-template-columns: 1fr 1fr; }
.gallery-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--tile-bg);
}
.gallery-item.ratio-wide { aspect-ratio: 16 / 9; }
.gallery-item.ratio-square { aspect-ratio: 1 / 1; }
.gallery-item.ratio-portrait { aspect-ratio: 4 / 5; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.gallery-caption {
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

/* TECH BLOCK */
.tech {
  padding: 80px 36px;
  border-bottom: 1px solid var(--line);
}

.tech-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 32px;
}

.tech-table {
  width: 100%;
  max-width: 960px;
  border-collapse: collapse;
}

.tech-table tr {
  border-bottom: 1px solid var(--line);
}
.tech-table tr:first-child { border-top: 1px solid var(--line); }

.tech-table td {
  padding: 18px 0;
  font-size: 14px;
  vertical-align: top;
}

.tech-table td:first-child {
  width: 280px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  padding-right: 24px;
}

/* CREDITS */
.credits {
  padding: 60px 36px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.credits .item .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.credits .item .value {
  font-size: 15px;
  font-weight: 500;
}

/* PULL QUOTE */
.pull-quote {
  padding: 120px 36px;
  border-bottom: 1px solid var(--line);
}

.pull-quote blockquote {
  font-family: 'Anton', sans-serif;
  font-size: clamp(32px, 5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 1200px;
  color: var(--fg);
}
.pull-quote blockquote::before {
  content: "“";
  color: var(--accent);
  display: inline-block;
  margin-right: 4px;
}
.pull-quote blockquote::after {
  content: "”";
  color: var(--accent);
  display: inline-block;
}

/* NEXT PROJECT */
.next-project {
  padding: 80px 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.next-project .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.next-project a {
  font-family: 'Anton', sans-serif;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 4px;
}
.next-project a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.next-project a:hover {
  color: var(--accent);
}
.next-project a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* FOOTER */
footer {
  padding: 40px 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* RESPONSIVE */
@media (max-width: 880px) {
  header { padding: 16px 20px; }
  nav { gap: 16px; font-size: 12px; }
  .hero-bleed { margin-top: 56px; aspect-ratio: 4 / 5; }
  .title-block { padding: 40px 20px 32px; grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .meta-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .section { padding: 48px 20px; grid-template-columns: 1fr; gap: 24px; }
  .section-label { position: static; }
  .section-body p { font-size: 15px; }
  .gallery { padding: 32px 20px 48px; gap: 14px; }
  .gallery-row.cols-2 { grid-template-columns: 1fr; gap: 14px; }
  .tech { padding: 48px 20px; }
  .tech-table td:first-child { width: 140px; }
  .credits { padding: 40px 20px; grid-template-columns: 1fr 1fr; gap: 24px; }
  .pull-quote { padding: 64px 20px; }
  .next-project { padding: 48px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  footer { padding: 32px 20px; flex-direction: column; gap: 12px; }
}
