/* ==========================================================================
   Projects — Dark Theme
   Extends style.css. Load AFTER css/style.css on projects.html and
   project-*.html only — keeps the rest of the site untouched.
   ========================================================================== */

:root {
  --ink: #14141f;
  --ink-2: #ffffff;
  --ink-3: #2a2a3f;
  --ink-line: rgba(30, 30, 47, 0.12);
  --coral: #ff6b6b;
  --amber: #f97316;
  --cyan: #1c94a8;
  --paper: #f4f1ea;
  --fog: #a9a9bd;
  --bg: #f5f5f5;
  --text: #1e1e2f;
  --text-muted: #555555;
}

.pd-body {
  animation: none !important;
  opacity: 1 !important;
}

.pd-body main {
  padding-top: 0;
}

.pd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
}

.pd-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--coral);
  display: inline-block;
}

/* ---------- Gallery hero ---------- */
.pd-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 170px 24px 60px;
}

.pd-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 18px 0 20px;
  color: var(--text);
}

.pd-hero h1 em {
  color: var(--coral);
  font-style: italic;
}

.pd-hero p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Gallery: editorial stack ---------- */
.ed-stack {
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px 100px;
}

.ed-row {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 64px 0;
  border-top: 1px solid var(--ink-line);
  text-decoration: none;
  color: inherit;
}

.ed-row:first-child {
  border-top: none;
  padding-top: 20px;
}

.ed-row:nth-of-type(even) {
  flex-direction: row-reverse;
}

.ed-media {
  flex: 1 1 55%;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.ed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.02) brightness(0.92);
  transform: scale(1.01);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.ed-row:hover .ed-media img {
  filter: grayscale(0) contrast(1.05) brightness(1);
  transform: scale(1.05);
}

.ed-body {
  flex: 1 1 40%;
}

.ed-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}

.ed-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ed-arrow {
  font-size: 1.4rem;
  color: var(--coral);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.35s ease;
}

.ed-row:hover .ed-arrow {
  opacity: 1;
  transform: translateX(0);
}

.ed-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 22px;
}

.ed-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ed-link i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.ed-row:hover .ed-link i {
  transform: translateX(4px);
}

@media (max-width: 800px) {
  .ed-row,
  .ed-row:nth-of-type(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 40px 0;
  }

  .ed-media,
  .ed-body {
    flex: none;
  }

  .ed-desc {
    max-width: none;
  }
}

/* ---------- Case study page ---------- */
.pd-cover {
  position: relative;
  height: 78vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.pd-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,31,0.25) 0%, rgba(20,20,31,0.55) 55%, var(--ink) 100%);
}

.pd-cover-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 56px;
  width: 100%;
}

.pd-cover-content h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
  margin: 16px 0 14px;
  color: var(--paper);
}

.pd-cover-content .pd-summary {
  color: var(--fog);
  font-size: 1.1rem;
  max-width: 620px;
  line-height: 1.6;
}

.pd-meta {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  border-bottom: 1px solid var(--ink-line);
}

.pd-meta-item .label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pd-meta-item .value {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  font-size: 1rem;
}

.pd-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 70px 24px;
}

.pd-section h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--text);
  margin: 14px 0 20px;
}

.pd-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.pd-image-block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 70px;
}

.pd-image-block img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.pd-image-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.pd-image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.logo-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 40px;
}

.logo-tile-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  padding: 48px;
  transition: transform 0.4s ease;
}

.logo-tile-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease, filter 0.4s ease;
}

.logo-tile-inner .logo-color {
  opacity: 0;
}

.logo-tile:hover .logo-bw {
  opacity: 0;
}

.logo-tile:hover .logo-color {
  opacity: 1;
  filter: drop-shadow(0 14px 22px rgba(20, 20, 31, 0.16));
}

.logo-tile:hover .logo-tile-inner {
  transform: scale(1.1);
}

@media (max-width: 700px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}

.pd-quote {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 90px;
  text-align: center;
}

.pd-quote .mark {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  color: var(--coral);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.pd-quote p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text);
}

.pd-nav-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--ink-line);
}

.pd-back-link {
  font-family: 'Poppins', sans-serif;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.pd-back-link:hover { color: var(--coral); }

.pd-next {
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.pd-next span.label {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.pd-next:hover { color: var(--coral); }

.pd-behance-note {
  text-align: center;
  padding: 0 24px 60px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pd-behance-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 148, 168, 0.4);
}

.pd-behance-note a:hover { color: var(--text); }

@media (max-width: 700px) {
  .pd-image-grid { grid-template-columns: 1fr; }
  .pd-meta { gap: 24px; }
}

/* ---------- "View all projects" button, used on the homepage ---------- */
.view-all-wrap {
  text-align: center;
  margin-top: 36px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 30px;
  background: #1e1e2f;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-all-btn:hover {
  background-color: #ff6b6b;
  transform: translateY(-2px);
}
