/* --------------------------------------------------------------------------
   Hero section
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  min-height: 640px;
}

.hero-copy { padding-bottom: 37px; }

.hero h1 {
  margin: 0 0 27px;
  font-size: clamp(50px, 5vw, 75px);
  font-weight: 700;
  letter-spacing: -3.2px;
  line-height: 1.08;
}

.hero h1 span,
h2 span { color: var(--color-blue); }

.hero-copy > p {
  max-width: 470px;
  margin: 0 0 34px;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.65;
}

.specialties {
  margin-top: 44px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.specialties i {
  padding: 0 14px;
  color: var(--color-blue);
  font-style: normal;
}

.devices {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 560px;
  min-width: 0;
}

.od-mark {
  position: absolute;
  top: -55px;
  right: 10px;
  z-index: -1;
  color: #f4f4f4;
  font-size: 630px;
  font-weight: 700;
  letter-spacing: -90px;
  line-height: 1;
}

.laptop {
  position: relative;
  width: min(650px, calc(100% - 42px));
  filter: drop-shadow(0 24px 14px #0003);
  transform: perspective(1300px) rotateY(-4deg) rotateX(2deg);
}

.screen {
  aspect-ratio: 650 / 400;
  overflow: hidden;
  border: 17px solid #111;
  border-bottom-width: 10px;
  border-radius: 19px 19px 4px 4px;
  background: #111;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 0;
}

.laptop-base {
  height: 22px;
  margin: 0 -44px;
  background: linear-gradient(#303030, #777 57%, #242424);
  clip-path: polygon(0 0, 100% 0, 97% 65%, 56% 100%, 43% 100%, 3% 65%);
}

.phone {
  position: absolute;
  right: 42px;
  bottom: 42px;
  width: clamp(110px, 22%, 170px);
  aspect-ratio: 170 / 367;
  overflow: hidden;
  border: 10px solid #171717;
  border-radius: 25px;
  background: #111;
  box-shadow: 0 9px 15px #0004;
}

.phone-top {
  height: 20px;
  color: #777;
  font-size: 10px;
  line-height: 10px;
  text-align: center;
}

.phone img {
  display: block;
  width: 100%;
  height: calc(100% - 20px);
  object-fit: cover;
  object-position: 52% 0;
}

/* Crowns homepage previews used in the portfolio's desktop and phone frames. */
.screen .hero-crowns-cover {
  width: 100%;
  height: 100%;
  border-radius: 0;
  container-type: inline-size;
}

.hero-crowns-cover .crowns-preview-nav {
  gap: 2.2cqw;
  height: 8cqw;
  padding: 0 3cqw;
  font-size: 1cqw;
  letter-spacing: 0.12cqw;
}

.hero-crowns-cover .crowns-preview-logo {
  width: 5cqw;
  height: 5cqw;
}

.hero-crowns-cover .crowns-preview-nav b {
  padding: 1.5cqw 2cqw;
  font-size: 1cqw;
  letter-spacing: 0.1cqw;
}

.hero-crowns-cover .crowns-preview-copy {
  top: 22cqw;
  left: 4cqw;
}

.hero-crowns-cover .crowns-preview-copy p {
  margin-bottom: 1.2cqw;
  font-size: 1.25cqw;
  letter-spacing: 0.25cqw;
}

.hero-crowns-cover .crowns-preview-copy strong {
  margin-bottom: 2cqw;
  font-size: 7cqw;
  letter-spacing: -0.4cqw;
}

.hero-crowns-cover .crowns-preview-copy > span {
  font-size: 1.5cqw;
}

.hero-crowns-cover .crowns-preview-copy i {
  margin-top: 2.2cqw;
  padding: 1.7cqw 2.5cqw;
  font-size: 1.25cqw;
}

.crowns-phone {
  container-type: inline-size;
  border-width: 7px;
}

.crowns-mobile-preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #f8f2e8;
  background:
    linear-gradient(
      180deg,
      rgba(4, 15, 17, 0.18) 0%,
      rgba(4, 15, 17, 0.32) 42%,
      rgba(4, 15, 17, 0.68) 100%
    ),
    url("Assets/crowns-barbershop/cover.webp") 65% center / cover no-repeat;
}

.crowns-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 16cqw;
  padding: 0 7cqw;
  border-bottom: 1px solid rgba(226, 205, 156, 0.3);
  background: rgba(5, 13, 15, 0.78);
}

.crowns-mobile-nav img {
  width: 20cqw;
  height: 20cqw;
  object-fit: contain;
}

.crowns-mobile-nav span {
  display: grid;
  gap: 1.1cqw;
}

.crowns-mobile-nav i {
  display: block;
  width: 8cqw;
  height: 0.7cqw;
  background: #d8b36e;
}

.crowns-mobile-copy {
  position: absolute;
  top: 37cqw;
  left: 7cqw;
  right: 6cqw;
}

.crowns-mobile-copy p {
  margin: 0 0 3cqw;
  color: #e0bc72;
  font-size: clamp(4px, 3.6cqw, 6px);
  font-weight: 700;
  letter-spacing: 0.45px;
}

.crowns-mobile-copy strong {
  display: block;
  margin-bottom: 4cqw;
  font-family: Georgia, serif;
  font-size: clamp(14px, 15cqw, 23px);
  font-weight: 400;
  line-height: 0.93;
}

.crowns-mobile-copy em {
  color: #d0a858;
  font-style: normal;
}

.crowns-mobile-copy > span {
  display: block;
  font-size: clamp(6px, 5cqw, 8px);
  line-height: 1.45;
}

.crowns-mobile-copy b {
  display: inline-block;
  margin-top: 5cqw;
  padding: 3cqw 5cqw;
  color: #172022;
  background: #d0aa62;
  font-size: clamp(5px, 4cqw, 7px);
  letter-spacing: 0.2px;
}

.crowns-mobile-features {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 2cqw;
  padding: 4cqw 3cqw;
  border-top: 1px solid rgba(216, 179, 110, 0.5);
  background: rgba(5, 13, 15, 0.76);
  color: #e8d3aa;
  font-size: clamp(4px, 3.3cqw, 6px);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Selected work cards
   -------------------------------------------------------------------------- */

.work {
  padding: 56px 0 73px;
  background: #f8f8f7;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.section-heading p,
.services > p,
.about p {
  margin: 0 0 11px;
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-heading h2,
.services h2 {
  margin: 0;
  font-size: 33px;
  letter-spacing: -1.5px;
}

.section-heading > a {
  margin-bottom: 5px;
  color: var(--color-blue);
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 27px;
}

.cards article {
  min-width: 0;
  cursor: pointer;
}

.cards img {
  display: block;
  width: 100%;
  height: 185px;
  border-radius: 4px;
  background: #222;
  object-fit: cover;
  transform-origin: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.cards article:hover img {
  box-shadow: 0 15px 28px #0002;
  transform: translateY(-7px) scale(1.025);
}

.cards article:hover .crowns-cover {
  box-shadow: 0 15px 28px #0002;
  transform: translateY(-7px) scale(1.025);
}

.cards h3 {
  margin: 18px 0 2px;
  font-size: 18px;
  transition: color 200ms ease;
}

.cards article:hover h3 { color: var(--color-blue); }

.cards h3 b {
  float: right;
  color: var(--color-blue);
  font-size: 25px;
  font-weight: 400;
  transition: transform 200ms ease;
}

.cards article:hover h3 b { transform: translateX(6px); }

.cards p { margin: 0; font-size: 15px; }

.project-password {
  display: inline-flex;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 3px;
  color: #0048b9;
  background: #e7f0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.project-password b {
  color: #003b9e;
  font-weight: 800;
}

.project-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.cards article:hover .black-chair-preview {
  box-shadow: 0 15px 28px #0002;
  transform: translateY(-7px) scale(1.025);
}

.cards article:hover .black-chair-preview img {
  box-shadow: none;
  transform: none;
}


/* Welcome to the Family card: a scaled-down view of the Shopify store hero. */
.family-cover {
  position: relative;
  height: 185px;
  overflow: hidden;
  border-radius: 4px;
  color: #f7f7f7;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.24) 58%, rgba(0, 0, 0, 0.04) 100%),
    #171412 url("Assets/welcome-to-the-family/hero.png") center / cover no-repeat;
  transform-origin: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.cards article:hover .family-cover {
  box-shadow: 0 15px 28px #0002;
  transform: translateY(-7px) scale(1.025);
}

.family-preview-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 22px;
  padding: 0 10px;
  background: #111;
  color: #dbdbdb;
  font-size: 4px;
}

.family-preview-nav span:first-child {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.family-preview-nav b {
  margin-left: auto;
  color: #f3f3f3;
  font-size: 7px;
  font-weight: 400;
}

.family-preview-copy {
  position: absolute;
  top: 81px;
  left: 14px;
}

.family-preview-copy strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.6px;
}

.family-preview-copy span {
  display: block;
  margin-bottom: 11px;
  color: #f5f5f5;
  font-size: 5px;
}

.family-preview-copy i {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 5px;
  font-style: normal;
  letter-spacing: 0.3px;
}

/* Coming-soon card for the next portfolio project. */
.coming-cover {
  position: relative;
  display: flex;
  height: 185px;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: 0 25px;
  border-radius: 4px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 22%, rgba(20, 92, 219, 0.9), transparent 28%),
    linear-gradient(135deg, #17191d, #050607);
  transform-origin: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.coming-cover::before,
.coming-cover::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.coming-cover::before {
  top: -60px;
  right: -52px;
  width: 185px;
  height: 185px;
}

.coming-cover::after {
  right: 0;
  bottom: -95px;
  width: 150px;
  height: 150px;
}

.cards article:hover .coming-cover {
  box-shadow: 0 15px 28px #0002;
  transform: translateY(-7px) scale(1.025);
}

.coming-cover > span {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: #78a9ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.coming-cover strong {
  position: relative;
  z-index: 1;
  font-size: 24px;
  letter-spacing: -1px;
  line-height: 0.9;
}

.coming-cover strong span { color: var(--color-blue); }

.coming-cover i {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 20px;
  color: #8db7ff;
  font-size: 25px;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Services, about, and contact sections
   -------------------------------------------------------------------------- */

.services { padding: 60px 0 62px; }
.services h2 { margin-bottom: 45px; font-size: 34px; }

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-list article {
  min-height: 184px;
  position: relative;
  padding: 3px 38px;
  border-right: 1px solid var(--color-line);
}

.service-list article:first-child { padding-left: 10px; }
.service-list article:last-child { border: 0; }

.service-list .service-icon {
  display: block;
  height: 57px;
  color: var(--color-blue);
}

.service-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.service-list h3 { margin: 13px 0 10px; font-size: 18px; }

.service-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.5;
}

.service-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  color: var(--color-blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.service-link b {
  font-size: 17px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.service-link:hover,
.service-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.service-link:hover b,
.service-link:focus-visible b { transform: translateX(4px); }

.about {
  padding: 50px 0;
  color: #fff;
  background: linear-gradient(110deg, #151515, #050505);
}

.about-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 44px;
}

.about h2 { margin: 15px 0 19px; font-size: 33px; letter-spacing: -1.5px; }

.about-copy {
  max-width: 470px;
  color: #ddd !important;
  font-size: 15px;
  line-height: 1.57;
  text-transform: none !important;
}

.proof { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }

.proof article {
  min-height: 165px;
  padding: 12px 20px;
  border-left: 1px solid #4b4b4b;
}

.proof .proof-icon { display: block; width: 42px; height: 42px; margin-bottom: 10px; color: var(--color-blue); font-style: normal; }
.proof-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.proof b { display: block; font-size: 26px; white-space: nowrap; }
.proof span { display: block; margin-top: 4px; color: #ddd; font-size: 14px; line-height: 1.2; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero h1 { font-size: clamp(40px, 4.2vw, 63px); letter-spacing: -.035em; text-wrap: balance; }

/* One featured client review: an editorial quote alongside its project. */
.client-review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 80px);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--color-line);
}
.client-review-heading h2 {
  max-width: 12ch;
  margin: 0 0 24px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.client-review-quote { min-width: 0; margin: 0; }
.client-review-stars { color: var(--color-blue); }
.client-review-stars svg { display: block; width: 120px; height: 20px; fill: currentColor; }
.client-review blockquote { margin: 22px 0 28px; }
.client-review blockquote p {
  margin: 0;
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1.4;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.client-review figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.client-review figcaption strong { display: block; font-size: 16px; }
.client-review figcaption div > span { display: block; margin-top: 5px; color: var(--color-muted); font-size: 14px; }
.client-review a { text-underline-offset: 5px; }
.client-review a:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 5px; }
@media (max-width: 700px) {
  .client-review { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .client-review-heading h2 { max-width: none; margin-bottom: 16px; }
}
