.hero {
  height: 100svh;
  min-height: 680px;
  position: relative;
  color: white;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(24,36,31,.72),rgba(24,36,31,.08));
}

.hero-content {
  position: absolute;
  left: var(--pad);
  top: 52%;
  transform: translateY(-45%);
}

.hero h1 {
  margin: 0 0 25px;
}

.hero p {
  max-width: 590px;
  font-size: 18px;
}

.hero-content>div {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
}

.scroll {
  position: absolute;
  right: var(--pad);
  bottom: 35px;
  font-size: 9px;
  letter-spacing: .25em;
  writing-mode: vertical-rl;
}

.scroll i {
  display: inline-block;
  height: 60px;
  width: 1px;
  background: white;
  margin-top: 12px;
}

.intro-copy {
  padding-top: 70px;
}

.intro-copy p {
  color: #606b66;
  margin-bottom: 25px;
}

.home-about {
  display: grid;
  background: var(--cream);
}

.about-photo {
  position: relative;
}

.about-photo img {
  object-fit: cover;
}

.about-photo>span {
  position: absolute;
  background: var(--deep);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 50px var(--serif);
}

.about-photo small {
  font: 9px/1.5 var(--sans);
  letter-spacing: .16em;
}

.about-panel p {
  color: #64706b;
}

.about-panel ul {
  list-style: none;
  padding: 0;
  margin: 35px 0;
}

.about-panel li {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.home-services {
  background: var(--paper);
}

.process {
  color: white;
}

.process .eyebrow,.process p {
  color: #bdc6c1;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  border-top: 1px solid rgba(255,255,255,.18);
}

.steps>div {
  padding: 35px 25px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.steps b {
  color: var(--sand);
  font: 30px var(--serif);
}

.steps h3 {
  font-size: 18px;
  margin: 45px 0 12px;
}

.steps p {
  font-size: 13px;
}

.home-news {
  background: #f5f1e8;
}

@media(max-width:980px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    padding-top: 0;
  }

  .home-about {
    grid-template-columns: 1fr;
  }

  .about-photo>span {
    right: 30px;
  }

  .about-panel {
    padding: 85px var(--pad);
  }

  .steps {
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width:640px) {
  .hero-content {
    left: 22px;
    right: 22px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-content>div {
    align-items: start;
    flex-direction: column;
  }

  .home-cases .case-card:nth-child(n) {
    margin-top: 0;
  }

  .about-photo img {
    min-height: 500px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps>div {
    border-right: 0;
  }

  .steps h3 {
    margin-top: 18px;
  }
}

/* Homepage visual revision */

.hero h1 {
  font-size: clamp(48px,6.2vw,82px);
  line-height: 1.24;
}

.hero-content {
  max-width: 650px;
}

.intro {
  position: relative;
  isolation: isolate;
}

.intro:after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 4vw;
  top: 11%;
  width: 32vw;
  height: 72%;
  background: url('../images/intro-bg.jpg') center/cover;
  border-radius: 48% 48% 8px 8px;
  opacity: .3;
}

.featured {
  position: relative;
  overflow: hidden;
}

.featured:before {
  content: "PROJECTS";
  position: absolute;
  right: -15px;
  top: 15px;
  font: 600 clamp(70px,12vw,180px)/1 var(--serif);
  letter-spacing: .04em;
  color: rgba(72,88,80,.055);
}

.home-cases .case-card:nth-child(1) {
  grid-row: 1/3;
}

.home-cases .case-card:nth-child(1) img {
  aspect-ratio: 4/5;
}

.home-cases .case-card:nth-child(2) {
  grid-column: 2/4;
}

.home-cases .case-card:nth-child(2) img {
  aspect-ratio: 2/1;
}

.home-cases .case-card:nth-child(3),.home-cases .case-card:nth-child(4) {
  margin-top: 0;
}

.home-cases .case-card:nth-child(3) img,.home-cases .case-card:nth-child(4) img {
  aspect-ratio: 1/1;
}

@media(max-width:980px) {
  .home-cases {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .home-cases .case-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .home-cases .case-card:nth-child(n) img {
    aspect-ratio: 4/3;
  }

  .intro:after {
    display: none;
  }
}

@media(max-width:640px) {
  .hero h1 {
    font-size: 44px;
  }
}

/* Balanced homepage sections */

.intro {
  display: grid;
  grid-template-columns: minmax(360px,.9fr) minmax(420px,1.1fr);
  gap: 0;
  padding: 0;
  background: #ede8de;
  overflow: hidden;
}

.intro:after {
  display: none;
}

.intro-title {
  min-height: 560px;
  padding: 80px clamp(35px,5vw,75px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  color: white;
  background: linear-gradient(0deg,rgba(34,47,41,.72),rgba(34,47,41,.08)),url('../images/intro-bg.jpg') center/cover;
}

.intro-title:after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255,255,255,.35);
  pointer-events: none;
}

.intro-title .eyebrow {
  color: #f1e8da;
  position: relative;
  z-index: 1;
}

.intro-title h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.intro-copy {
  padding: clamp(70px,8vw,120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8f5ef;
}

.intro-copy:before {
  font: 600 76px/1 var(--serif);
  color: var(--sand);
  margin-bottom: 18px;
}

.intro-copy p {
  max-width: 620px;
}

.intro-copy .text-link {
  margin-top: 12px;
  align-self: flex-start;
}

.featured {
  background: #f0eee8;
}

.home-cases {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  grid-template-rows: auto;
  gap: 22px;
}

.home-cases .case-card:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
  margin: 0;
  background: #fbfaf7;
}

.home-cases .case-card:nth-child(n) img {
  aspect-ratio: 4/3;
}

.home-cases .case-card>div:last-child {
  min-height: 210px;
  padding: 22px;
  background: #fbfaf7;
}

.home-cases .case-card h3 {
  font-size: 19px;
}

.home-cases .case-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-about {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.about-photo img {
  height: 560px;
  min-height: 0;
}

.about-panel {
  padding: 70px clamp(45px,7vw,100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-photo>span {
  right: -58px;
  top: 50%;
  transform: translateY(-50%);
  width: 132px;
  height: 132px;
  font-size: 40px;
}

.process {
  position: relative;
  isolation: isolate;
  background: linear-gradient(rgba(35,49,43,.88),rgba(35,49,43,.93)),url('../images/cta.jpg') center/cover fixed;
}

.process:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg,rgba(30,44,38,.32),rgba(30,44,38,.08));
}

.process .steps {
  border-top-color: rgba(255,255,255,.28);
}

.process .steps>div {
  background: rgba(31,46,39,.28);
  backdrop-filter: blur(3px);
  transition: background .3s,transform .3s;
}

.process .steps>div:hover {
  background: rgba(216,201,181,.12);
  transform: translateY(-5px);
}

@media(max-width:1100px) {
  .home-cases {
    grid-template-columns: repeat(2,1fr);
  }

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

  .intro-copy {
    padding: 65px 50px;
  }
}

@media(max-width:800px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro-title {
    min-height: 450px;
  }

  .intro-copy {
    padding: 65px var(--pad);
  }

  .home-about {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    height: 470px;
  }

  .about-photo>span {
    right: 25px;
  }

  .process {
    background-attachment: scroll;
  }
}

@media(max-width:640px) {
  .intro {
    background: #ede8de;
  }

  .intro-title {
    min-height: 410px;
    padding: 55px 35px;
  }

  .intro-copy {
    padding: 60px 22px;
  }

  .home-cases {
    grid-template-columns: 1fr;
  }

  .home-cases .case-card>div:last-child {
    min-height: 0;
  }

  .about-photo img {
    height: 390px;
  }

  .about-photo>span {
    width: 110px;
    height: 110px;
    font-size: 34px;
    right: 18px;
  }

  .about-panel {
    padding: 65px 22px;
  }
}

.intro-copy:before {
  content: none;
  display: none;
}

.intro-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--sage);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
}

.intro-copy h3 {
  margin-bottom: 28px;
  font-size: clamp(23px,2.25vw,34px);
  line-height: 1.55;
  letter-spacing: .04em;
}

.intro-copy h3:after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin-top: 22px;
  background: var(--sand);
}

/* Full-screen hero carousel with slow zoom-out */

.hero {
  overflow: hidden;
  background: #26312d;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: -2%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.25s ease;
  will-change: transform,opacity;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  animation: hero-zoom-out 7s linear forwards;
}

.hero-shade {
  z-index: 2;
}

.hero-content {
  z-index: 3;
}

.hero .scroll {
  z-index: 3;
}

.hero-pagination {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  bottom: 38px;
  display: flex;
  gap: 9px;
}

.hero-pagination button {
  position: relative;
  width: 45px;
  height: 3px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: rgba(255,255,255,.34);
  cursor: pointer;
}

.hero-pagination button:after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-pagination button.is-active:after {
  animation: hero-progress 6.5s linear forwards;
}

@keyframes hero-zoom-out {
  from {
    transform: scale(1.12);
  }

  to {
    transform: scale(1);
  }
}

@keyframes hero-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media(max-width:640px) {
  .hero-slide {
    background-position: 62% center;
  }

  .hero-pagination {
    left: 22px;
    bottom: 24px;
  }

  .hero-pagination button {
    width: 32px;
  }

  .hero .scroll {
    display: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  .hero-slide.is-active {
    animation: none;
    transform: scale(1);
  }

  .hero-pagination button.is-active:after {
    animation: none;
    transform: scaleX(1);
  }
}
