/* ============================================================
   project.css — styles specific to project detail pages
   ============================================================ */

/* ── HERO — full-bleed background image ───────────────────── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute; inset: 0;
  background-color: var(--grey-950);
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.15) 0%,
    rgba(13,13,13,0.2)  30%,
    rgba(13,13,13,0.65) 65%,
    rgba(13,13,13,0.92) 85%,
    var(--grey-950)     100%
  );
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  padding: var(--pad); padding-top: 120px;
}
.hero-meta-row {
  display: flex; align-items: center; gap: 20px; margin-bottom: 28px;
  opacity: 0; animation: riseIn 0.7s 0.2s var(--ease) forwards;
}
.hero-back-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); transition: color 0.2s;
}
.hero-back-link:hover { color: var(--white); }
.hero-back-link::before { content: '←'; }
.hero-meta-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.2); }
.hero-category {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(56px, 9vw, 136px);
  font-weight: 800; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--white); line-height: 0.9;
  opacity: 0; animation: riseIn 0.9s 0.35s var(--ease) forwards;
  margin-bottom: 48px;
}
.hero-bottom-row {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 48px;
  padding-bottom: var(--pad);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  opacity: 0; animation: riseIn 0.8s 0.5s var(--ease) forwards;
}
.hero-tagline {
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 300;
  color: var(--grey-400); line-height: 1.65; max-width: 560px;
}
.hero-tagline strong { color: var(--grey-100); font-weight: 400; }
.hero-specs {
  flex-shrink: 0; display: flex; gap: 48px;
}
.hero-spec { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.hero-spec-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--grey-600);
}
.hero-spec-value { font-size: 15px; font-weight: 300; color: var(--grey-200); line-height: 1.4; }

/* ── CONTENT SECTIONS ──────────────────────────────────────── */
.content-section { padding: 100px 0; }
.content-section + .content-section { padding-top: 0; }

.overview-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 80px; align-items: start;
}
.overview-label { position: sticky; top: 120px; }
.side-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 12px;
}
.side-label::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--blue);
}
.overview-body p {
  font-size: 19px; font-weight: 300;
  color: var(--grey-400); line-height: 1.85; margin-bottom: 24px;
}
.overview-body p:last-child { margin-bottom: 0; }
.overview-body p strong { color: var(--grey-100); font-weight: 400; }

.full-image { width: 100%; aspect-ratio: 21/9; overflow: hidden; }
.full-image-inner { width: 100%; height: 100%; transition: transform 0.8s var(--ease); }
.full-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.full-image:hover .full-image-inner { transform: scale(1.02); }
.img-placeholder-1 { background: linear-gradient(135deg, #0c1829 0%, #0f2d50 50%, #1a4a80 100%); }
.img-placeholder-2 { background: linear-gradient(135deg, #1a0d0d 0%, #3a1515 50%, #5a2020 100%); }

.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.image-pair .full-image { aspect-ratio: 4/3; }

.detail-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 80px; align-items: start;
}
.detail-label { position: sticky; top: 120px; }
.detail-heading {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 42px); font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--white); line-height: 1.05; margin-bottom: 24px;
}
.detail-text {
  font-size: 17px; font-weight: 300;
  color: var(--grey-400); line-height: 1.85; margin-bottom: 32px;
}
.detail-text strong { color: var(--grey-100); font-weight: 400; }
.detail-text p + p { margin-top: 20px; }

.detail-list {
  list-style: none; margin-bottom: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.detail-list li {
  font-size: 16px; font-weight: 300; color: var(--grey-400);
  line-height: 1.6; padding-left: 24px; position: relative;
}
.detail-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}
.detail-list li strong { color: var(--grey-200); font-weight: 400; }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.spec-table tr { border-bottom: 1px solid rgba(255,255,255,0.06); }
.spec-table tr:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.spec-table td { padding: 14px 0; vertical-align: top; font-size: 15px; }
.spec-table td:first-child {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--grey-600);
  width: 36%; padding-right: 24px;
}
.spec-table td:last-child { color: var(--grey-200); font-weight: 300; line-height: 1.65; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-items: stretch; }
.split-image { overflow: hidden; min-height: 480px; }
.split-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-image-inner { width: 100%; height: 100%; transition: transform 0.8s var(--ease); }
.split-section:hover .split-image-inner { transform: scale(1.02); }
.split-text {
  background: var(--grey-900); padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.split-text .side-label { margin-bottom: 24px; }
.split-text .detail-heading { margin-bottom: 20px; }
.split-text .detail-text { margin-bottom: 24px; }

.result-section { background: var(--grey-900); padding: 100px var(--pad); }
.result-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: center; }
.result-quote {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 52px); font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--white); line-height: 1.1;
}
.result-quote .accent { color: var(--blue); }
.result-body { font-size: 17px; font-weight: 300; color: var(--grey-400); line-height: 1.9; }
.result-body strong { color: var(--grey-200); font-weight: 400; }
.result-body a { color: var(--blue); }
.result-body a:hover { text-decoration: underline; }

/* ── NEXT PROJECTS ─────────────────────────────────────────── */
#next-projects { background: var(--grey-950); padding: 0; }
.next-header {
  padding: 80px var(--pad) 40px;
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.next-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); line-height: 1;
}
.next-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--grey-600);
}
.next-list { display: flex; flex-direction: column; }
.next-item {
  display: flex; align-items: center; padding: 0 var(--pad);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer; position: relative; transition: background 0.25s;
  overflow: hidden; text-decoration: none;
}
.next-item:hover { background: var(--grey-900); }
.next-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--blue); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.next-item:hover::before { transform: scaleY(1); }
.next-thumb {
  width: 120px; height: 72px; flex-shrink: 0;
  overflow: hidden; margin-right: 36px;
}
.next-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.next-thumb-inner { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.next-item:hover .next-thumb-inner { transform: scale(1.08); }
.next-item-info { flex: 1; padding: 32px 0; }
.next-item-num {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--grey-700); margin-bottom: 6px;
}
.next-item-name {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 36px); font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); line-height: 1;
}
.next-item-type { font-size: 13px; font-weight: 400; color: var(--grey-600); margin-top: 8px; }
.next-item-arrow {
  flex-shrink: 0; margin-left: 36px;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s;
}
.next-item:hover .next-item-arrow { opacity: 1; transform: none; }
.next-item-arrow-icon {
  width: 36px; height: 36px; border: 1px solid rgba(25,162,241,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.next-item:hover .next-item-arrow-icon {
  background: var(--blue); border-color: var(--blue); color: var(--white);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  html { font-size: 17px; }
  .hero-specs { gap: 28px; }
  .overview-grid, .detail-grid, .result-inner { grid-template-columns: 1fr; gap: 40px; }
  .overview-label, .detail-label { position: static; }
  .split-section { grid-template-columns: 1fr; }
  .split-image { min-height: 300px; }
  .full-image { aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  :root { --pad: 24px; }
  html { font-size: 16px; }
  .hero-bottom-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-specs { flex-direction: row; flex-wrap: wrap; text-align: left; gap: 24px; }
  .hero-spec { text-align: left; }
  .image-pair { grid-template-columns: 1fr; }
  .next-thumb { width: 80px; height: 52px; margin-right: 20px; }
}
