/* ============================================================
   ARTinez v2 — Portfolio
   Immersive case studies (IDEA → DESIGN → BUILD → EXPERIENCE)
   ============================================================ */

.portfolio-hero {
  padding-top: 160px;
  padding-bottom: 60px;
  text-align: center;
}
.portfolio-hero__title {
  max-width: 22ch;
  margin: 0 auto 24px;
}
.portfolio-hero__lede {
  margin: 0 auto;
  max-width: 56ch;
}

.case-studies {
  padding-top: 40px;
  padding-bottom: var(--section-y);
}
.case {
  margin-bottom: 120px;
}
.case:last-child { margin-bottom: 0; }

/* ---------- Case hero (with real image) ---------- */
.case__hero {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 60px;
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #11111b, #050509);
}
.case__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--d-slower) var(--ease-out);
}
.case:hover .case__hero-img {
  transform: scale(1.02);
}
.case__hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 32px;
  pointer-events: none;
}
.case__hero-overlay-pl {
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.4) 100%);
}
.case__hero-overlay-agi {
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55) 100%);
}
.case__hero-brand {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-style: italic;
  font-weight: 500;
  color: #fff;
  letter-spacing: -.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  /* The project name is now the h2 of its case study. These two
     declarations keep it laid out exactly as the div it replaced. */
  line-height: 1.55;
  margin: 0;
}
.case__hero-overlay-agi .case__hero-brand {
  color: #a4e610;
  font-style: normal;
  font-weight: 600;
}
.case__hero-tag {
  font-family: var(--font-script);
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--gold-2);
  margin-top: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.case__hero-overlay-agi .case__hero-tag {
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.6vw, 18px);
  opacity: .85;
  letter-spacing: .04em;
}
.case__hero-label {
  position: absolute;
  bottom: 18px; right: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 500;
}

@media (max-width: 640px) {
  .case__hero { aspect-ratio: 4/3; }
  .case__hero-overlay { padding: 20px; }
}

/* ---------- Case meta strip ---------- */
.case__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  font-size: 14px;
  color: var(--text-mute);
  padding: 24px 28px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.case__meta-item strong {
  display: block;
  color: var(--gold-3);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ---------- Timeline ---------- */
.case__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  counter-reset: step;
}
/* The gold rule that used to run across the four steps was removed: it
   crossed the numbered circles and read as a stray line rather than as
   part of the design. */
@media (max-width: 880px) {
  .case__timeline {
    grid-template-columns: 1fr;
  }
}

.case-step {
  position: relative;
  padding: 24px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
  border: 1px solid var(--line);
  z-index: 1;
  transition: border-color var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.case-step:hover {
  border-color: rgba(212,175,55,.3);
  transform: translateY(-2px);
}
.case-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(212,175,55,.05));
  border: 1px solid rgba(212,175,55,.3);
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  background-image: var(--gold-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 16px;
}
.case-step__label {
  display: block;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-3);
  font-weight: 500;
  margin-bottom: 10px;
}
.case-step h3,
.case-step h2 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.case-step p { font-size: 14px; color: var(--text-mute); margin: 0; line-height: 1.55; }

/* ---------- Detail panels ---------- */
.case__detail {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .case__detail { grid-template-columns: 1fr; }
}
.case-detail {
  padding: 24px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  transition: border-color var(--d-base) var(--ease-out);
}
.case-detail:hover {
  border-color: rgba(212,175,55,.25);
}
.case-detail__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(212,175,55,.05));
  border: 1px solid rgba(212,175,55,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
  margin-bottom: 16px;
}
.case-detail__icon svg { width: 18px; height: 18px; }
.case-detail h4,
.case-detail h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
.case-detail p { font-size: 14px; color: var(--text-mute); margin: 0; }

/* ---------- Illustrative-image disclosure ---------- */
/* Used where a project visual is a placeholder rather than a genuine
   screenshot of delivered work. The disclosure is always visible. */
.case__hero-note {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  max-width: calc(100% - 32px);
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #efe9dd;
  font-weight: 500;
  line-height: 1.4;
}
.case__note {
  margin: -28px 0 60px;
  padding: 16px 20px;
  border-left: 2px solid var(--gold-3);
  background: rgba(255, 255, 255, .02);
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.6;
}
.case__note p { margin: 0; }
.case__note strong { color: var(--text); font-weight: 500; }
