/* ============================================================
   THE DIGITAL OAK — portfolio.css
   ============================================================ */

/* ── Nav active state ─────────────────────────── */
.nav-active {
  color: var(--accent) !important;
}

/* ══════════════════════════════════════════════
   PAGE HERO
══════════════════════════════════════════════ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 5rem) var(--gutter) 5rem;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
}

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text);
  margin: 1.5rem 0 1.5rem;
}

.page-hero-title em {
  font-style: italic;
  color: var(--accent);
}

.page-hero-sub {
  font-size: 0.925rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  max-width: 500px;
}

.page-hero-pulse {
  position: absolute;
  top: 0; right: 12%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent) 45%,
    var(--accent-dim) 55%,
    transparent
  );
  opacity: 0;
  animation: heroPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 60% 80% at 80% 50%, black 20%, transparent 100%);
  pointer-events: none;
}


/* ══════════════════════════════════════════════
   MEDIA PLACEHOLDER
══════════════════════════════════════════════ */
.media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grid inside placeholder */
.media-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}

.media-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

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

.media-placeholder-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.media-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.6;
}

.media-placeholder-text {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  opacity: 0.6;
}


/* ══════════════════════════════════════════════
   FEATURED PROJECT
══════════════════════════════════════════════ */
.featured-project {
  padding: 6rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Sticky media on scroll */
.featured-media {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.project-number {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.project-type {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--accent-dark);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 2px;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.featured-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.featured-overview {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.featured-sections {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.featured-section-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.featured-section-text {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
}

.featured-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.tool-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.tool-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tool-tag--sm {
  font-size: 0.62rem;
  padding: 3px 8px;
}


/* ══════════════════════════════════════════════
   PROJECT GRID
══════════════════════════════════════════════ */
.project-grid-section {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-card {
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}

.project-card:hover {
  background: var(--surface);
}

.project-card-media {
  border-bottom: 1px solid var(--border);
}

.media-placeholder--sm {
  aspect-ratio: 16 / 9;
}

.project-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.project-card-body--centered {
  align-items: flex-start;
  justify-content: center;
  min-height: 300px;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-category {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.15;
}

.project-card-overview {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}

.project-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* Coming soon card */
.project-card--coming-soon {
  background: var(--bg);
  border-left: 1px solid var(--accent-dim);
}

.coming-soon-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.coming-soon-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .featured-inner {
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .featured-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .featured-media {
    position: static;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card--coming-soon {
    border-left: none;
    border-top: 1px solid var(--accent-dim);
  }

  .page-hero {
    padding: calc(var(--nav-h) + 3rem) var(--gutter) 3rem;
  }
}

@media (max-width: 600px) {
  .project-card-body {
    padding: 1.5rem;
  }

  .featured-project {
    padding: 4rem 0;
  }
}
