/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --split: 42%;
  --gutter: 2.5rem;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.5;
}

.body--home {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Navigation ── */
.nav {
  display: grid;
  grid-template-columns: var(--split) 1fr;
  align-items: center;
  padding: 1.25rem var(--gutter);
  border-bottom: none;
}

.nav__logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav__right {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: #000;
}

.nav__cta a {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.nav__cta a:hover {
  color: #000;
}

/* ── Hero ── */
.hero {
  padding: 2rem var(--gutter) 2rem;
}

.hero__heading {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 680px;
  margin-left: var(--split);
  letter-spacing: -0.02em;
}

/* ── Two-column text section ── */
.intro {
  display: grid;
  grid-template-columns: var(--split) 1fr;
  padding: 1rem var(--gutter) 2rem;
  align-items: start;
}

.intro__tagline {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  color: #444;
  max-width: 260px;
}

.intro__description {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: #222;
  max-width: 600px;
}

/* ── Full-width video banner ── */
.hero-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex: 1;
}

.banner-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0;
  transition: opacity 1s ease;
}

.banner-video--active {
  opacity: 1;
}

.banner-video--b2 {
  object-position: center 70%;
}

/* ── Active nav link ── */
.nav__link--active {
  color: #000;
  font-weight: 500;
}

/* ── About page ── */
.about-hero {
  padding: 4rem var(--gutter) 3rem;
  border-bottom: 1px solid #e5e5e5;
}

.about-hero__heading {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 680px;
  margin-left: var(--split);
  letter-spacing: -0.02em;
}

.about-section {
  display: grid;
  grid-template-columns: var(--split) 1fr;
  padding: 3rem var(--gutter);
  border-bottom: 1px solid #e5e5e5;
  align-items: start;
}

.about-section--last {
  border-bottom: none;
  padding-bottom: 5rem;
}

.about-section__label {
  font-size: 0.85rem;
  font-weight: 400;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 0.2rem;
}

.about-section__content {
  max-width: 600px;
}

.about-section__name {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.about-section__role {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.about-section__bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

.about-section__bio:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3rem var(--gutter);
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.about-stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-stats__number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.about-stats__label {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-list li {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.5;
}

/* ── Projects page ── */
.projects-featured {
  padding: 3rem var(--gutter);
  border-bottom: 1px solid #e5e5e5;
}

.project-card--featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem var(--gutter);
  border-bottom: 1px solid #e5e5e5;
}

.project-card__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
}

.project-card__media video,
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__media--carousel {
  position: relative;
}

.project-card__media--carousel iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.project-card__media--carousel iframe.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-controls {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: #fff;
}

.carousel-counter {
  font-size: 0.75rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.project-card__body {
  padding-top: 0.75rem;
}

.project-card--featured .project-card__body {
  padding-top: 0;
}

.project-card__info {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.project-card__title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.project-card__title::after {
  content: ' \2192';
  font-size: 0.85em;
}

.project-card--link:hover .project-card__title,
.project-card__body--link:hover .project-card__title {
  color: #c0392b;
}

.project-card--featured .project-card__title {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.project-card__year {
  font-size: 0.8rem;
  color: #888;
  letter-spacing: 0.02em;
}

.project-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-top: 0.5rem;
  max-width: 480px;
}

.project-card--featured .project-card__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  max-width: none;
}

.project-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card__body--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ── Project detail page ── */
.project-back {
  display: inline-block;
  font-size: 0.9rem;
  color: #888;
  margin-left: var(--split);
  padding: 1.5rem var(--gutter) 0;
  transition: color 0.2s;
}

.project-back:hover {
  color: #111;
}

.project-detail__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.project-detail__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-detail__media--carousel {
  position: relative;
}

.project-detail__media--carousel iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.project-detail__media--carousel iframe.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-controls--detail {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

/* ── Contact page ── */
.contact-email {
  margin-top: 1.5rem;
}

.contact-email a {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}

.contact-email a:hover {
  color: #555;
}

/* ── Services page ── */
.services-cta {
  font-size: 1.05rem;
  font-weight: 500;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.services-cta:hover {
  color: #555;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --gutter: 1.25rem;
  }

  .nav {
    display: flex;
    justify-content: space-between;
  }

  .nav__links {
    display: none;
  }

  .hero {
    padding: 3rem var(--gutter) 2rem;
  }

  .hero__heading {
    margin-left: 0;
    font-size: 1.75rem;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image img {
    height: 40vh;
  }

  .about-hero__heading {
    margin-left: 0;
  }

  .project-back {
    margin-left: 0;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .project-card--featured {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
