.hero-shell{
  width: 100%;
}

@media (min-width: 992px){

  .hero-shell{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .hero{
    flex: 1;
    display: flex;
  }

  .hero__bg{
    flex: 1;
    aspect-ratio: auto;
    min-height: 0;
  }

}

.hero{
  width: 100%;
}

.hero__bg{
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #000;
}

@media (min-width: 992px){
  .hero__bg{
    aspect-ratio: auto;
  }
}

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

.hero__slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1600ms ease;
  will-change: opacity;
}

.hero__slide.is-active{
  opacity: 1;
  z-index: 1;
}

/* Mobile: make it taller */
@media (max-width: 768px){
  .hero__bg{
    height: 50vh;
    aspect-ratio: auto;
  }
}

.hero__tagline{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;

  padding: 14px 18px;
  text-align: center;

  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  white-space: nowrap;
}

.hero__tagline .sep{
  opacity: 0.55;
  margin: 0 10px;
}

@media (max-width: 900px){
  .hero__tagline{
    font-size: 13px;
  }
}


@media (max-width: 768px){
  .hero__tagline{
    font-size: 12px;
    padding: 12px 14px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 450px){
  .hero__tagline{
    font-size: 10px;
    padding: 10px 12px;
    letter-spacing: 0.08em;
  }
}

.hero__tagline--mobile{
  display: none;
}

@media (max-width: 768px){
  .hero__tagline--desktop{
    display: none;
  }

  .hero__tagline--mobile{
    display: block;
  }
}

/* hero slide dots — sit just above the tagline bar, so the bottom offset
   tracks the tagline's own height at each breakpoint */

/* Each dot button is a 24px tall tap target. The visible dot is
   drawn by ::before, so it can stay small while the target is easy to hit. */

.hero__dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 55px;
  z-index: 3;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;

  pointer-events: none;
}

.hero__dot{
  --dot-size: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;

  cursor: pointer;
  pointer-events: auto;
}

.hero__dot::before{
  content: "";
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);

  transition: background 220ms ease, transform 220ms ease;
}

.hero__dot:hover::before{
  background: rgba(255, 255, 255, 0.75);
}

.hero__dot.is-active::before{
  background: #fff;
  transform: scale(1.15);
}

.hero__dot:focus-visible{
  outline: none;
}

.hero__dot:focus-visible::before{
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 900px){
  .hero__dots{
    bottom: 51px;
  }
}

@media (max-width: 768px){
  .hero__dots{
    bottom: 45px;
  }

  /* original phone dot size and spacing; the width keeps the old 8px gap
     between dots, and the taller button still gives a bigger tap area */
  .hero__dot{
    --dot-size: 9px;
    width: 17px;
    height: 24px;
  }
}

@media (max-width: 450px){
  .hero__dots{
    bottom: 36px;
  }

  .hero__dot{
    --dot-size: 8px;
    width: 16px;
  }
}

/* hero badge — desktop only */

.hero-badge{
  display: none;
}

@media (min-width: 992px){

  .hero-badge{
    position:absolute;
    left:40px;
    bottom:70px;
    z-index:3;

    display:inline-flex;
    align-items:center;
    gap:12px;

    background:rgba(0, 0, 0, 0.85);
    border-top:3px solid #c7ab5b;
    box-shadow:0 10px 24px rgba(0,0,0,.35);

    padding: 0 14px;
  }

  .hero-badge-logo{
    display:block;
    height:135px;
    width:auto;

    padding-right:12px;
    margin-right:2px;

    border-right:1px solid rgba(255,255,255,0.22);
  }

  .hero-badge-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
    line-height:1;
    gap:0;
    transform: translateY(-5px);
  }

  .hero-badge-number{
    font-family:var(--font-serif);
    font-size:80px;
    color:#c7ab5b;
    margin:0;

    letter-spacing:-0.05em;
  }

  .hero-badge-line{
    font-family:var(--font-sans);
    font-size:11px;
    line-height:.95;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#c7ab5b;
    margin:0;
  }

  .hero-badge-line + .hero-badge-line{
    margin-top:2px;
  }

}

/* ===========
Services grid 
==============*/

.services-grid{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: #000;
}

/* Tiles */

.service-tile{
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  color: #fff;
}

/* image */

.service-tile__media{
  position: absolute;
  inset: 0;
}

/* divider line lives on media so it does not conflict with hover overlay */
.services-grid .service-tile:not(:last-child) .service-tile__media::after{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2.75px;
  height: 100%;
  background: #fff;
  z-index: 3;
  pointer-events: none;
}

.service-tile__media img{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 600ms ease;
}

/* default dark overlay */

.service-tile::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 280ms ease;
  z-index: 1;
}

/* hover white overlay */

.service-tile::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.74);
  opacity: 0;
  transition: opacity 280ms ease;
  z-index: 1;
}

/* title */

.service-tile__title{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  font-family: var(--font-serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 20px;
  text-align: center;
  padding: 0 18px;
  color: #fff;
  transition: color 280ms ease;
}

/* hover interaction */

@media (hover:hover){
  .service-tile:hover::before{
    opacity: 0;
  }

  .service-tile:hover::after{
    opacity: 1;
  }

  .service-tile:hover .service-tile__title{
    color: #000;
  }

  .service-tile:hover img{
    transform: scale(1.04);
  }
}

/* Mobile */

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

  .services-grid .service-tile{
    aspect-ratio: auto;
    height: 275px;
  }

  .services-grid .service-tile:not(:last-child) .service-tile__media::after{
    top: auto;
    right: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
  }
}

/* ==============
  Trust Section 
  ==============*/

.home-trust{
  position: relative;
  background: #000;
  color: #fff;
  padding: 90px 24px;
  overflow: hidden;
}

.home-trust__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.38;
  transform: scale(1.03);
  transition: transform 1400ms ease, opacity 1000ms ease;
  z-index: 0;
}

.home-trust::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.51);
  z-index: 0;
}

.home-trust__inner{
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 460px;
  display: flex;
  align-items: center;
}

.home-trust__content{
  width: min(60%, 980px);
  max-width: none;
}

.home-trust__eyebrow{
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}

.home-trust__eyebrow::before{
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: #fff;
  margin-bottom: 12px;
}

.home-trust__title{
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  max-width: none;
}

.home-trust__text{
  margin: 0;
  max-width: 760px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.72;
  color: rgba(255,255,255,0.84);
}

.home-trust__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 22px;
  border: 1.5px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  box-sizing: border-box;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.home-trust__btn:hover{
  transform: translateY(-2px);
  background: #fff;
  color: #000;
}


.home-trust.is-visible::before,
.home-trust .is-visible ~ *{
  transform: none;
}

/* responsive */

@media (max-width: 991px){
  .home-trust{
    padding: 72px 22px;
  }

  .home-trust__inner{
    max-width: 1200px;
    min-height: 380px;
  }

  .home-trust__content{
    width: min(85%, 760px);
  }

  .home-trust__title{
    font-size: clamp(30px, 6vw, 46px);
  }

  .home-trust__text{
    max-width: 640px;
  }
}

@media (max-width: 640px){
  .home-trust{
    padding: 56px 18px;
  }

  .home-trust__inner{
    min-height: 320px;
    align-items: flex-end;
  }

  .home-trust__content{
    width: 100%;
  }

  .home-trust__title{
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.08;
  }

  .home-trust__text{
    max-width: 100%;
    font-size: 15px;
    line-height: 1.65;
  }

  .home-trust__btn{
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    padding: 14px 16px;
    box-sizing: border-box;
  }
}


/* =============
  Testimonials 
  ==============*/

.home-testimonials{
  position: relative;
  background: #000;
  color: #fff;
  padding: 74px 24px;
  overflow: hidden;
  border-top: 2px solid #fff;
}

.home-testimonials__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
  z-index: 0;
}

.home-testimonials::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.68);
  z-index: 0;
}

.home-testimonials__inner{
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
}

.home-testimonials__header{
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}

.home-testimonials__title{
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  color: #fff;
}

/* slider */

.testimonials-slider{
  position: relative;
}

.testimonials-slider__viewport{
  overflow: hidden;
}

.testimonials-slider__track{
  display: flex;
  gap: 28px;
  transition: transform 1200ms cubic-bezier(.16,.84,.44,1);
  will-change: transform;
}

/* cards */

.testimonial-card{
  flex: 0 0 calc((100% - 56px) / 3);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  padding: 28px 30px;
  box-sizing: border-box;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
}

.testimonial-card__text{
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  flex-grow: 1;
}

.testimonial-card__author{
  margin-top: 22px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.testimonial-card__city{
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}


/* dots */

.testimonials-slider__dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

/* VIEW ALL REVIEWS */

.home-testimonials__footer{
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.home-testimonials__view-all{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid rgba(255,255,255,0.85);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.home-testimonials__view-all:hover{
  background: #fff;
  color: #000;
  border-color: #fff;
}

@media (max-width: 640px){
  .home-testimonials__footer{
    margin-top: 28px;
  }

  .home-testimonials__view-all{
    width: 100%;
    justify-content: center;
  }
}

.testimonials-slider__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  opacity: 0.7;
  transition: background 220ms ease, transform 220ms ease;
}

.testimonials-slider__dot.is-active{
  background: #fff;
  opacity: 1;
}

.testimonials-slider__viewport{
  overflow: hidden;
  touch-action: pan-y;
}

/* responsive */

@media (max-width: 1300px){
  .home-testimonials__inner{
    max-width: 1200px;
  }

  .testimonials-slider__track{
    gap: 24px;
  }

  .testimonial-card{
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (min-width: 992px){
  .home-testimonials{
    padding: 100px 24px;
  }

  .home-testimonials__header{
    margin-bottom: 70px;
  }
}

@media (max-width: 800px){
  .home-testimonials{
    padding: 60px 22px;
  }

  .home-testimonials__header{
    margin-bottom: 36px;
  }

  .testimonial-card{
    flex: 0 0 100%;
  }
}

@media (max-width: 640px){
  .home-testimonials{
    padding: 50px 18px;
  }

  .home-testimonials__title{
    font-size: clamp(24px, 7vw, 32px);
  }

  .testimonials-slider__track{
    gap: 18px;
  }

  .testimonial-card{
    border-radius: 18px;
    padding: 24px 22px;
  }

  .testimonial-card__text{
    font-size: 15px;
    line-height: 1.7;
  }

  .testimonial-card__author{
    font-size: 12px;
  }
}

/* =================
  Home Projects Preview
  ================ */

/* =========================
   GREEN BUILDING TEASER
========================= */

.home-green{
  position: relative;
  background: #000;
  color: #fff;
  overflow: hidden;
  border-top: 2px solid #fff;
}

/* Full opacity photo with a solid overlay on top, the same approach as the
   Green Building page hero, so the image stays readable as a photo */
.home-green__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.home-green::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.66);
  z-index: 0;
}

.home-green__inner{
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 96px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.home-green__content{
  max-width: 620px;
}

.home-green__eyebrow{
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

.home-green__title{
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
}

.home-green__text{
  margin: 0 0 26px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
}

/* The three pillars sit on a slowly turning ring, positioned at 120 degree
   intervals so the group reads as a cycle rather than a list */

.home-green__cycle{
  position: relative;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}

.home-green__ring{
  position: absolute;
  inset: 13%;
  border: 1px dashed rgba(255,255,255,0.28);
  border-radius: 50%;
  animation: home-green-spin 48s linear infinite;
}

@keyframes home-green-spin{
  to{
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce){
  .home-green__ring{
    animation: none;
  }
}

.home-green__point{
  position: absolute;
  transform: translate(-50%, -50%);
  width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.home-green__point--1{
  left: 50%;
  top: 13%;
}

.home-green__point--2{
  left: 83%;
  top: 69%;
}

.home-green__point--3{
  left: 17%;
  top: 69%;
}

.home-green__badge{
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background 260ms ease, border-color 260ms ease, transform 260ms ease;
}

.home-green__cycle:hover .home-green__badge{
  border-color: #fff;
  transform: scale(1.04);
}

.home-green__icon{
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: #fff;
}

.home-green__label{
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}

.home-green__btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: #fff;
  color: #000;
  border: 1.5px solid #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-sizing: border-box;
  transition: background 220ms ease, color 220ms ease;
}

.home-green__btn:hover{
  background: transparent;
  color: #fff;
}

/* Below this the two columns start squeezing the cycle, so it drops under the
   copy and keeps its full size instead */
/* Below this the two columns start squeezing the cycle, so it drops under the
   copy and keeps its full size instead */
@media (max-width: 1200px){
  .home-green__inner{
    grid-template-columns: 1fr;
    gap: 48px;
    justify-items: center;
  }

  .home-green__content{
    max-width: 760px;
  }
}

@media (max-width: 991px){
  .home-green__inner{
    gap: 42px;
    padding: 72px 22px;
  }

  .home-green__content{
    max-width: none;
  }

  .home-green__cycle{
    max-width: 380px;
  }
}

@media (max-width: 640px){
  .home-green__inner{
    padding: 56px 18px;
    gap: 34px;
  }

  /* No room for the cycle at phone width: headline, copy and button only */
  .home-green__cycle{
    display: none;
  }

  .home-green__btn{
    width: 100%;
    justify-content: center;
  }
}

.home-projects-preview{
  background: #000;
  color: #fff;
}

/* HEADER (TOP + BOTTOM BORDER) */

.home-projects-preview__header{
  padding: 18px 24px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.home-projects-preview__title{
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

/* GRID */

.home-projects-preview__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #000;
}

/* CARDS */

.home-project-card{
  position: relative;
  background: #111;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.home-project-card:nth-child(3n){
  border-right: 0;
}

/* remove bottom border on last row so footer border is the divider */
.home-project-card:nth-last-child(-n + 3){
  border-bottom: 0;
}

/* LINK */

.home-project-card__link{
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  position: relative;
  overflow: hidden;
}

/* MEDIA */

.home-project-card__media{
  position: relative;
  width: 100%;
  height: 100%;
}

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

.home-project-card__placeholder{
  width: 100%;
  height: 100%;
  background: #222;
}

/* TITLE */

.home-project-card__title{
  position:absolute;
  left:20px;
  bottom:18px;
  margin:0;
  color:#fff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  z-index: 2;
}

/* desktop hover only */
@media (min-width: 768px){
  .home-project-card__link::after{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
  }

  .home-project-card__title{
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .home-project-card__link:hover::after{
    opacity: 1;
  }

  .home-project-card__link:hover .home-project-card__title{
    opacity: 1;
  }
}

/* FOOTER (TOP + BOTTOM BORDER) */

.home-projects-preview__footer{
  padding: 18px 24px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  display: flex;
  justify-content: flex-start;
}

/* VIEW ALL */

.home-projects-preview__view-all{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* MOBILE */

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

  .home-project-card:nth-child(3n){
    border-right: 2px solid #fff;
  }

  .home-project-card:nth-child(2n){
    border-right: 0;
  }

  .home-project-card:nth-last-child(-n + 3){
    border-bottom: 2px solid #fff;
  }

  .home-project-card:nth-last-child(-n + 2){
    border-bottom: 0;
  }
}

@media (max-width: 767px){
  .home-projects-preview__grid{
    grid-template-columns: 1fr;
  }

  .home-project-card{
    border-right: 0;
  }

  .home-project-card:last-child{
    border-bottom: 0;
  }

  .home-project-card__link::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.38) 38%, rgba(0,0,0,0) 68%);
    z-index: 1;
  }
}

@media (max-width: 640px){
  .home-project-card:nth-child(n+4){
    display: none;
  }
}

