/* Portfolio styles — scoped to .portfolio-body so they don't leak onto other pages */

.portfolio-body {
  --brand: #336699;
  --brand-dark: #2a547a;
  --text: #1c1c1c;
  --muted: #6c6c6c;
  --bg: #fafafa;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --tag-bg: rgba(51, 102, 153, 0.08);
  --max-width: 1100px;

  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.portfolio-body * { box-sizing: border-box; }

.portfolio-body .portfolio {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 3rem;
}

/* Hero */
.portfolio-body .hero {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
}

.portfolio-body .hero__brand {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.portfolio-body .hero__logo {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 10px;
  display: block;
}

.portfolio-body .hero__text {
  flex: 1;
  min-width: 0;
}

@media (max-width: 520px) {
  .portfolio-body .hero__brand {
    gap: 1rem;
  }
  .portfolio-body .hero__logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }
}

.portfolio-body .hero__name {
  font-size: 2.4rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.portfolio-body .hero__role {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portfolio-body .hero__tagline {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 1.25rem;
  max-width: 62ch;
}

.portfolio-body .hero__contact {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.portfolio-body .hero__contact a {
  color: var(--brand);
  text-decoration: none;
}

.portfolio-body .hero__contact a:hover { text-decoration: underline; }

/* Sections */
.portfolio-body .section {
  margin-bottom: 3.5rem;
}

.portfolio-body .section__title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin: 0 0 1.25rem;
  border-left: 3px solid var(--brand);
  padding-left: 0.7rem;
  line-height: 1.2;
}

.portfolio-body .section__lede {
  font-size: 0.95rem;
  color: var(--muted);
  margin: -0.5rem 0 1.5rem;
  max-width: 62ch;
}

/* Grid */
.portfolio-body .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-body .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card */
.portfolio-body .card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portfolio-body .card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 12px rgba(51, 102, 153, 0.06);
}

.portfolio-body .card__media,
.portfolio-body .card__media img,
.portfolio-body .card__media iframe,
.portfolio-body video.card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #eaeaea;
  border: 0;
}

.portfolio-body .card__media--embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Hover-to-play video wrapper */
.portfolio-body .card__media-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1c1c1c;
  cursor: pointer;
}

.portfolio-body video.card__media--hover {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.portfolio-body .card__media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 45, 0.22);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.portfolio-body .card__media-wrap:hover .card__media-overlay,
.portfolio-body .card__media-wrap--playing .card__media-overlay {
  opacity: 0;
}

.portfolio-body .card__media-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a547a 0%, #336699 50%, #4a7ba6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 1rem 1.5rem;
  gap: 0.4rem;
}

.portfolio-body .card__placeholder-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.75;
}

.portfolio-body .card__placeholder-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.portfolio-body .card__media-placeholder-link {
  display: block;
}

.portfolio-body .card__body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-body .card__title {
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.portfolio-body .card__client {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.portfolio-body .card__role {
  font-size: 0.92rem;
  margin: 0 0 0.55rem;
  color: var(--brand-dark);
  font-weight: 500;
}

.portfolio-body .card__summary {
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
  color: var(--text);
}

.portfolio-body .card__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.portfolio-body .tag {
  font-size: 0.74rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--brand-dark);
  font-weight: 500;
}

.portfolio-body .card__link {
  font-size: 0.9rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
}

.portfolio-body .card__link:hover { text-decoration: underline; }

/* Publications list */
.portfolio-body .publist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portfolio-body .publist__item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
}

.portfolio-body .publist__item:last-child {
  border-bottom: none;
}

.portfolio-body .publist__item a,
.portfolio-body .publist__title {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.portfolio-body .publist__item a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.portfolio-body .publist__meta {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.portfolio-body .site-footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.portfolio-body .site-footer a {
  color: var(--brand);
  text-decoration: none;
}

.portfolio-body .site-footer a:hover { text-decoration: underline; }
