/* ============================================================
   Pages — Home, Work, About, Project Detail
   ============================================================ */

/* ---- HERO (Homepage) ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.3) 40%,
    rgba(10, 10, 10, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: var(--space-3xl) var(--gutter);
  max-width: var(--container-wide);
  width: 100%;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.hero__title span {
  display: block;
}

.hero__title .accent-line {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

.hero__scroll-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: pulseDown 2s var(--ease-in-out) infinite;
}

@keyframes pulseDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---- SECTION HEADERS ---- */
.section-header {
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.section-header__label {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-header__label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ---- PROJECT GRID ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-3xl);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-card);
  cursor: pointer;
  group: true;
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card__media img,
.project-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.project-card:hover .project-card__media img,
.project-card:hover .project-card__media video {
  transform: scale(1.04);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-med) var(--ease-out);
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__info {
  padding: var(--space-lg);
}

.project-card__category {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.project-card__subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Featured card — spans full width */
.project-card--featured {
  grid-column: 1 / -1;
}

.project-card--featured .project-card__media {
  aspect-ratio: 21 / 9;
}

/* ---- ABOUT PAGE ---- */
.about-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.about-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 50%);
}

.about-content {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.about-content__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-content__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.about-content__heading .accent-line {
  color: var(--accent);
}

.about-content__bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-content__bio p + p {
  margin-top: var(--space-lg);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding-top: var(--space-sm);
}

.about-details__item h4 {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.about-details__item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.about-details__item a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast);
}

.about-details__item a:hover {
  border-color: var(--accent);
}

.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  transition: background var(--duration-med) var(--ease-out),
              color var(--duration-med) var(--ease-out);
}

.btn-resume:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---- PROJECT DETAIL ---- */
.project-hero {
  padding: calc(100px + var(--space-3xl)) var(--gutter) var(--space-2xl);
  max-width: var(--container-max);
  margin: 0 auto;
}

.project-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.project-hero__year {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 200;
  color: var(--text-muted);
  line-height: 1;
}

.project-hero__divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.project-hero__category {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.project-hero__title--outline {
  -webkit-text-stroke: 1.5px var(--text-primary);
  color: transparent;
}

.project-overview {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--space-2xl);
}

.project-overview h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.project-overview p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 720px;
}

.project-media {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-2xl) var(--gutter);
}

.project-media__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}

.project-media__video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3xl) var(--gutter);
  max-width: var(--container-max);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.project-nav a {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--duration-med) var(--ease-out);
}

.project-nav a:hover {
  color: var(--accent);
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) var(--gutter);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.site-footer__links a {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.site-footer__links a:hover {
  color: var(--accent);
}

/* ---- CTA SECTION ---- */
.cta-section {
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.cta-section__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.cta-section__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  transition: background var(--duration-med) var(--ease-out),
              color var(--duration-med) var(--ease-out);
}

.cta-section__btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card--featured .project-card__media {
    aspect-ratio: 16 / 10;
  }
  .about-content__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .about-hero {
    height: 50vh;
  }
  .site-footer__inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  .project-hero__meta {
    flex-wrap: wrap;
  }
}
