/* Same visual box as the original GIF image; no layout or font overrides. */
video.hero-home__img{object-fit:cover;background-color:transparent;width:100%;max-width:100%;display:inline-block;vertical-align:middle;border:0;height:auto}

/* Keep service hover previews square; intrinsic image heights must not stretch them. */
.services__visual-inner{bottom:auto;height:auto;aspect-ratio:1}
.services__visual-inner .services__item-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* Keep the full artwork inside each hover preview. */
.services__visual-inner .services__item-img {
  object-fit: contain;
}

.services__item--web {
  grid-column: 1 / -1;
}

.services__item--web .services__item-title {
  grid-area: 1 / 1 / 2 / 5;
}

.services__item--web .services__item-details {
  grid-area: 1 / 6 / 2 / -1;
  justify-self: end;
  text-align: right;
}

/* The title stays in the first screen, even on a short laptop viewport. */
.hero-home__container.container {
  padding-top: clamp(4.75rem, 14svh, 8rem);
}

.hero-home__layout.grid-main {
  height: auto;
  align-items: center;
  column-gap: clamp(1rem, 4vw, 4rem);
}

.hero-home__header {
  min-width: 0;
  align-self: center;
}

.hero-home__header .hero-home__title.h1 {
  margin: 0;
  font-size: clamp(2.4rem, min(8.7vw, 16svh), 10.75rem);
  line-height: .98;
}


.hero-home__content {
  min-width: 0;
  gap: clamp(.7rem, 2svh, 1.5rem);
}

.hero-home__visual {
  max-width: 26rem;
  max-height: min(48svh, 26rem);
  aspect-ratio: 4 / 3;
}


.work-hero__services-wrapper { width: 100%; }

.work-hero__services-list {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .45rem 1.6rem;
}

.work-hero__title-wrapper { flex-wrap: wrap; }

.portfolio-case-intro {
  max-width: 48ch;
  margin: 0;
  text-wrap: pretty;
}

.work-details .portfolio-case-notes {
  max-width: 70ch;
  margin-top: clamp(2rem, 5vw, 5rem);
}

.work-details .portfolio-case-notes .portfolio-case-note-title {
  margin: 1.65em 0 .55em;
  font: inherit;
  font-weight: 650;
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  line-height: 1.15;
}

.work-details .portfolio-case-notes .portfolio-case-note-title:first-child { margin-top: 0; }
.work-details .portfolio-case-notes p { line-height: 1.55; }

@media (min-width: 768px) and (max-width: 991px) {
  .hero-home__header { flex: 1 1 66%; }
  .hero-home__content { flex: 1 1 34%; }
}

@media (max-width: 767px) {
  .hero-home__container.container { padding-top: clamp(5.5rem, 17svh, 7rem); }
  .hero-home__layout.grid-main { align-items: flex-start; gap: 1.4rem; }
  .hero-home__header .hero-home__title.h1 {
    font-size: clamp(2.15rem, min(12vw, 13svh), 5.75rem);
  }
  .hero-home__visual { width: min(100%, 23rem); }
  .services__item--web .services__item-title { grid-area: 1 / 1 / 2 / 4; }
  .services__item--web .services__item-details { grid-area: 1 / 4 / 2 / -1; }
  .services__details-wrapper { flex-wrap: wrap; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  }

/* Anchor the title to the bottom of the first viewport. */
.hero-home.section {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-home__container.container {
  display: grid;
  align-items: end;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(5rem, 17svh, 8rem);
  padding-bottom: clamp(1.25rem, 4svh, 3rem);
}

.hero-home__layout.grid-main {
  height: auto;
  align-items: end;
}

.hero-home__header {
  min-width: 0;
  align-self: end;
}

.hero-home__header .hero-home__title.h1 {
  margin: 0;
  font-size: clamp(2.25rem, min(9.35vw, 14.35svh), 11.4rem);
  line-height: .98;
}

.hero-home__visual {
  width: min(100%, 26rem, 56svh);
  max-height: none;
}

.portfolio-recognition { padding-block: clamp(1.5rem, 4vw, 3rem); }
.portfolio-recognition .portfolio-recognition__inner {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: .8rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  border-block: 1px solid currentColor;
}

.portfolio-recognition__label {
  margin: 0;
  font: inherit;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.portfolio-recognition__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1.2rem;
  justify-content: space-between;
  color: inherit;
  text-underline-offset: .22em;
}

.portfolio-recognition__link strong {
  font-family: Geist, sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.45rem);
}

.portfolio-recognition__link:hover { text-decoration: underline; }

.services__item--web .services__visual--web {
  display: block;
  grid-area: 1 / 5 / 2 / 7;
  justify-self: stretch;
  align-self: center;
}

.services__visual--web .services__visual-inner {
  inset: auto 0;
  top: 50%;
  aspect-ratio: 1938 / 1072;
  transform: translateY(-50%);
}

.approach__content.portfolio-resume {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.8rem, 5vw, 5rem);
}

.portfolio-resume-group > h3,
.portfolio-resume-recognition > h3 {
  margin: 0;
  padding-bottom: .8rem;
  font: inherit;
  font-size: .84rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.portfolio-resume-group > .approach__item {
  display: grid;
  gap: .7rem;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(128, 128, 128, .65);
}

.portfolio-resume-entry__header {
  display: grid;
  gap: .25rem;
}

.portfolio-resume-entry__header .approach__item-title {
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
}

.portfolio-resume-entry__date { font-size: .8rem; }

.portfolio-resume-group .approach__item-paragraph.text-size-small {
  margin: 0;
  max-width: 58ch;
  text-wrap: wrap;
  line-height: 1.55;
}

.portfolio-resume-recognition {
  grid-column: 1 / -1;
  border-block: 1px solid rgba(128, 128, 128, .65);
  padding-block: 1.1rem;
  scroll-margin-top: 7rem;
}

.portfolio-resume-recognition p {
  display: flex;
  gap: .8rem 1.4rem;
  flex-wrap: wrap;
  margin: 0;
}

.works-details__layout .portfolio-case-intro {
  max-width: 34ch;
  margin: 0;
  font-family: Geist, sans-serif;
  font-size: clamp(1.45rem, 3.25vw, 3.2rem);
  font-weight: 550;
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

@media (max-width: 991px) {
  .services__item--web .services__visual--web {
    grid-area: 2 / 1 / 3 / -1;
    width: min(100%, 18rem);
    justify-self: start;
  }

  .services__visual--web .services__visual-inner {
    position: relative;
    inset: auto;
    transform: none;
  }
}

@media (max-width: 767px) {
  .hero-home__container.container { padding-top: clamp(4.5rem, 14svh, 6rem); }
  .hero-home__layout.grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(.9rem, 3svh, 1.6rem);
  }

  .hero-home__layout #w-node-_40f1404d-043d-2326-b86e-75b0a1d2d911-454d6bd1 {
    grid-area: 2 / 1 / 3 / 2;
  }

  .hero-home__header .hero-home__title.h1 {
    font-size: clamp(1.85rem, min(12.75vw, 11.2svh), 6.1rem);
  }

  .hero-home__layout #w-node-d3310bf6-5000-b93f-5038-30ca1d71a8b8-454d6bd1 {
    grid-area: 1 / 1 / 2 / 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .4rem 1rem;
    align-items: end;
  }

  .hero-home__content .hero-home__visual {
    grid-area: 1 / 1 / 3 / 2;
    width: min(100%, 26svh);
  }

  .hero-home__content .hero-home__paragraph,
  .hero-home__content .btn-text,
  .hero-home__content .btn-glyph {
    font-size: clamp(.75rem, 3.1vw, .95rem);
    line-height: 1.25;
  }

  .hero-home__content .hero-home__paragraph { grid-area: 1 / 2; }
  .hero-home__content .hero-home__cta-wrapper { grid-area: 2 / 2; }
  .portfolio-recognition .portfolio-recognition__inner,
  .approach__content.portfolio-resume { grid-template-columns: minmax(0, 1fr); }
}

