/* Recruiter-first portfolio: home hero, work hub, case studies */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface-elevated);
  color: var(--color-text);
  border-radius: 4px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Site header: social + slimmer nav ——— */
.site-header__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.site-header__social a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-header__social a:hover,
.site-header__social a:focus {
  color: var(--color-accent-strong);
}

@media (max-width: 900px) {
  .site-header__social {
    display: none;
  }
}

/* ——— Home: cinematic hero (image only) ——— */
.home-hero {
  position: relative;
  min-height: min(92vh, 900px);
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Featured work */
.featured-projects-section {
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.featured-project-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-project-card:hover,
.featured-project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border-color: rgba(214, 178, 123, 0.35);
}

.featured-project-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.featured-project-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.featured-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-project-card:hover .featured-project-card__media img {
  transform: scale(1.03);
}

.featured-project-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.featured-project-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.featured-project-card__tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.45;
}

.featured-project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.feature-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(214, 178, 123, 0.12);
  color: var(--color-text-muted);
}

/* Skills strip */
.skills-strip-section {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.skills-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.skills-strip li {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
}

.skills-strip li + li::before {
  content: "·";
  margin-right: 1rem;
  opacity: 0.45;
}

/* Process teaser */
.process-teaser {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.process-teaser .card {
  max-width: 640px;
  margin: 0 auto;
}

/* Work hub */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.work-filter-btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.work-filter-btn:hover,
.work-filter-btn:focus-visible {
  color: var(--color-text);
  border-color: rgba(214, 178, 123, 0.45);
}

.work-filter-btn.is-active {
  background: rgba(214, 178, 123, 0.18);
  color: var(--color-text);
  border-color: rgba(214, 178, 123, 0.4);
}

.work-secondary-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.work-secondary-tabs a,
.work-secondary-tabs button {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: none;
  border-radius: 6px;
  font-family: inherit;
}

.work-secondary-tabs a:hover,
.work-secondary-tabs button:hover,
.work-secondary-tabs a:focus-visible,
.work-secondary-tabs button:focus-visible {
  color: var(--color-accent-strong);
}

.work-secondary-tabs .is-active {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.work-panel[hidden] {
  display: none !important;
}

.work-panel-intro {
  max-width: 60ch;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

.scene-embed-panel .scene-cinema {
  max-width: 900px;
  margin: 0 auto;
}

/* Case study */
.case-study-header {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1rem;
}

.case-study-header__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.case-study-badge {
  background: rgba(214, 178, 123, 0.2);
  border: 1px solid rgba(214, 178, 123, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-study-summary {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 70ch;
  line-height: 1.6;
  margin: 1rem 0 0;
}

.case-study-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1.25rem;
}

.case-study-chip {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.case-study-chip__label {
  color: var(--color-text);
  font-weight: 600;
}

.case-study-meta {
  margin-top: 1.5rem;
}

.case-study-section--finals {
  padding-top: 0;
}

.project-final-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 700px) {
  .project-final-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.case-study-final__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.case-study-dl {
  display: grid;
  gap: 0.75rem;
}

.case-study-dl dt {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin: 0;
}

.case-study-dl dd {
  margin: 0 0 0.5rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.case-study-subnav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.65rem 0;
  margin-bottom: 0.5rem;
}

.case-study-subnav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: center;
}

.case-study-subnav__link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
}

.case-study-subnav__link:hover,
.case-study-subnav__link:focus-visible {
  color: var(--color-accent-strong);
}

.case-study-ui-details {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.5rem 1rem 1rem;
}

.case-study-ui-summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.5rem 0;
}

.case-study-prevnext {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.case-study-prevnext__link {
  color: var(--color-accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.case-study-prevnext__link:hover,
.case-study-prevnext__link:focus-visible {
  text-decoration: underline;
}

.case-study-prevnext__spacer {
  flex: 1;
  min-width: 0;
}

.case-study-error {
  padding: 3rem;
  text-align: center;
  color: var(--color-text-muted);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.site-footer__social a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-resume {
  font-weight: 600;
}
