*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
a { text-decoration: none; color: inherit; }
::selection { background: #15120f; color: #f4f1ea; }

body {
  background: #f4f1ea;
  color: #15120f;
  font-family: "JetBrains Mono", monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── HEADER ── */
.site-header {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
}

.site-logo {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
}

.site-back {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  color: #56514a;
}

/* ── HERO ── */
.hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 72px) 28px clamp(28px, 4vw, 52px);
}

.hero-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #9a948b;
}

.hero-title {
  margin: 16px 0 0;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 108px);
  line-height: .9;
  letter-spacing: -.012em;
  text-transform: uppercase;
}

.hero-desc {
  margin: 26px 0 0;
  max-width: 640px;
  font-family: "Lora", serif;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: #3f3a33;
}

/* ── FILTER ── */
.filter-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px clamp(20px, 3vw, 36px);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #d8d3c8;
  padding-top: 22px;
}

.filter-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9a948b;
}

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-btn {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
  background: transparent;
  color: #56514a;
  border: 1px solid #c8c3b8;
  transition: background .15s, color .15s, border-color .15s;
}

.filter-count {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: #9a948b;
}

/* ── GRID ── */
.projects-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(8px, 1.5vw, 20px) 28px clamp(56px, 8vw, 110px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}

/* ── CARD ── */
.project-card {
  background: #fbfaf6;
  border: 1px solid #e0dcd2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .15s;
}

.project-card:hover { box-shadow: 0 4px 20px rgba(21, 18, 15, .1); }

.card-cover {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #15120f;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-placeholder {
  aspect-ratio: 16/10;
  background: #15120f;
  color: #f4f1ea;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
}

.card-placeholder-url {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: #7c776f;
}

.card-placeholder-name {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: .96;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.card-placeholder-diamond {
  position: absolute;
  right: 18px;
  top: 16px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #2f2b27;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 20px;
  flex: 1;
}

.card-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.card-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #56514a;
  border: 1px solid #d8d3c8;
  padding: 4px 9px;
}

.card-title {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.04;
  letter-spacing: .01em;
}

.card-desc {
  margin: 0;
  font-family: "Lora", serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: #4a453e;
  white-space: pre-line;
}

.card-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #15120f;
  border-bottom: 2px solid #15120f;
  padding-bottom: 3px;
}

/* ── FOOTER ── */
footer {
  background: #15120f;
  color: #f4f1ea;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-cta-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #7c776f;
}

.footer-cta-title {
  margin-top: 12px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 4vw, 40px);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.footer-contact-row {
  display: flex;
  gap: 14px;
}

.footer-contact-type {
  color: #7c776f;
  width: 78px;
}

.footer-bottom {
  border-top: 1px solid #2a2622;
}

.footer-bottom-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  color: #6c675f;
}

/* ── PROJECT PAGE ── */
.project-header {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
}

.project-back {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  color: #56514a;
}

.project-wordmark {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}

.project-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 28px clamp(24px, 3vw, 40px);
}

.project-intro-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.project-intro-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #56514a;
  border: 1px solid #c8c3b8;
  padding: 5px 11px;
}

.project-title {
  margin: 0;
  max-width: 14ch;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 8.5vw, 104px);
  line-height: .92;
  letter-spacing: -.012em;
  text-transform: uppercase;
}

.project-short {
  margin: 26px 0 0;
  max-width: 660px;
  font-family: "Lora", serif;
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.5;
  color: #3f3a33;
  white-space: pre-line;
}

.project-meta-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px clamp(28px, 4vw, 48px);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: #d8d3c8;
  border: 1px solid #d8d3c8;
}

.project-meta-cell {
  background: #f4f1ea;
  padding: 18px 20px;
}

.project-meta-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9a948b;
}

.project-meta-value {
  margin-top: 8px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 17px;
}

.project-meta-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 17px;
  border-bottom: 2px solid #15120f;
  padding-bottom: 2px;
}

.project-cover-figure {
  max-width: 1180px;
  margin: 0 auto clamp(40px, 6vw, 76px);
  padding: 0 28px;
}

.project-cover-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #15120f;
}

.project-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.project-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

.project-article-bottom {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px clamp(56px, 8vw, 100px);
}

.project-section-title {
  margin: 0 0 18px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: .01em;
  text-transform: uppercase;
}

.project-detail-title {
  margin: 0 0 14px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #5a544c;
}

.project-para {
  margin: 0 0 20px;
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 1.74;
  color: #2e2a24;
}

.project-content {
  margin: 0 0 40px;
}
.project-content p {
  margin: 0 0 20px;
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 1.74;
  color: #2e2a24;
}
.project-content p:last-child { margin-bottom: 0; }
.project-content ul,
.project-content ol {
  margin: 0 0 20px;
  padding-left: 26px;
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 1.74;
  color: #2e2a24;
}
.project-content strong { font-weight: 600; }
.project-content em { font-style: italic; }
.project-content a { color: #15120f; }
.project-content a:hover { opacity: .7; }

.project-quote {
  margin: 0 0 44px;
  padding: 6px 0 6px 26px;
  border-left: 3px solid #15120f;
}

.project-quote p {
  margin: 0;
  font-family: "Lora", serif;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.34;
  color: #15120f;
  white-space: pre-line;
}

.project-actions {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-action {
  display: flex;
  gap: 14px;
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 1.6;
  color: #2e2a24;
}

.project-action-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: #9a948b;
  padding-top: 3px;
  flex-shrink: 0;
}

.project-result-para {
  margin: 0 0 28px;
  font-family: "Lora", serif;
  font-size: 18px;
  line-height: 1.74;
  color: #2e2a24;
  white-space: pre-line;
}

.project-metrics {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #d8d3c8;
}

.project-metric {
  padding-top: 20px;
}

.project-metric-value {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.project-metric-label {
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  color: #8a857d;
  max-width: 170px;
}

.project-footer-nav {
  display: block;
  border-bottom: 1px solid #2a2622;
}

.project-footer-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 48px) 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.project-footer-nav-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7c776f;
}

.project-footer-nav-title {
  margin-top: 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 4vw, 40px);
}

.project-footer-nav-arrow {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 52px);
}

.project-footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  color: #6c675f;
}

/* ── RELATED STORIES ── */
.related-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 32px;
  border-top: 1px solid #d8d4cb;
}

.related-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6b6459;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d8d4cb;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.related-card:hover { border-color: #15120f; box-shadow: 2px 2px 0 #15120f; }

.related-card-cover {
  height: 120px;
  overflow: hidden;
  background: #ece9e2;
}
.related-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.related-card-body {
  padding: 14px 16px;
  flex: 1;
}
.related-card-name {
  font-family: "Lora", serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.25;
}
.related-card-short {
  font-size: 12px;
  color: #6b6459;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── WIP BANNER ── */
body { padding-bottom: 40px; }

.wip-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 40px;
  background: repeating-linear-gradient(
    -45deg,
    #FFD600,
    #FFD600 18px,
    #1a1a1a 18px,
    #1a1a1a 36px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wip-banner-inner {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: #FFD600;
  padding: 5px 18px;
  white-space: nowrap;
}
