/* ============================================================
   Component · Featured Project / Project Card
   Image with Ken Burns (1.0 → 1.03 over 8s, plays on viewport entry).
   Hover: image darkens, metadata slides up from bottom.
   ============================================================ */

.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}
@media (min-width: 1024px) {
  .featured {
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
    gap: var(--space-2xl);
    align-items: center;
  }
}

.featured__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.featured__index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.featured__index::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

.featured__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.featured__location {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-ink-muted);
}
.featured__location span + span::before {
  content: '·';
  margin-right: var(--space-md);
  color: var(--color-border);
}

.featured__brief { color: var(--color-ink-light); max-width: 48ch; }

.featured__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md) var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-sm);
}
.featured__spec-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 4px;
}
.featured__spec-value {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

/* === Image plate (placeholder for now) =================== */
.featured__plate {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  isolation: isolate;
}
.featured__plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(24, 33, 37, 0.5));
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.featured__plate:hover::after { opacity: 0.7; }

.featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Placeholder content inside */
.featured__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-md);
  z-index: 1;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 24px,
      rgba(24, 33, 37, 0.04) 24px,
      rgba(24, 33, 37, 0.04) 25px
    );
}
.featured__placeholder-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  align-self: flex-start;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}
.featured__placeholder-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.featured__plate-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-out),
              opacity   var(--duration-normal) var(--ease-out);
}
.featured__plate:hover .featured__plate-meta {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   Featured Project — motion & interactivity
   (staggered reveal comes from reveal.css via data-reveal/-stagger)
   ============================================================ */

/* --- Plate reveal: wipe the image, not the plate ------------
   The plate stays the observed (unclipped) element — clipping it to
   inset(100%) would zero its IntersectionObserver area and it would
   never fire. Instead the image/placeholder inside wipes up when the
   plate gains .is-visible. */
.featured__plate[data-reveal] { opacity: 1; transform: none; transition: none; }
.featured__img,
.featured__placeholder {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 850ms var(--ease-out);
}
.featured__plate.is-visible .featured__img,
.featured__plate.is-visible .featured__placeholder { clip-path: inset(0); }


/* --- Plate hover: live CAD coordinate readout ---------------- */
.featured__cad {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--color-white);
  /* dark halo keeps it legible over sky, building, or water */
  text-shadow:
    0 0 4px rgba(10, 15, 26, 0.95),
    0 1px 3px rgba(10, 15, 26, 0.85);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
  pointer-events: none;
}
.featured__plate:hover .featured__cad { opacity: 1; }

/* --- Specs sheet fills in: accent rule draws across on reveal --
   The dl itself doesn't fade (it just triggers the rule); its rows
   stagger in via the generic reveal system. */
.featured__specs { position: relative; }
.featured__specs[data-reveal] { opacity: 1; transform: none; transition: none; }
.featured__specs::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms var(--ease-out) 150ms;
}
.featured__specs[data-reveal].is-visible::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .featured__img,
  .featured__placeholder { clip-path: none; transition: none; }
  .featured__specs::before { transform: none; transition: none; }
}
