/* --------------------------------------------------------------------------
   Design tokens and global defaults
   -------------------------------------------------------------------------- */

:root {
  --color-blue: #0753c8;
  --color-ink: #090909;
  --color-muted: #313131;
  --color-line: #d9d9d7;
  --font-sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--color-ink);
  background: #fff;
  font-family: var(--font-sans);
}

.container {
  width: min(1400px, calc(100% - 96px));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  height: 142px;
}

.logo {
  width: 185px;
  height: auto;
  mix-blend-mode: normal;
}

.nav nav,
footer nav {
  display: flex;
  gap: 55px;
}

.nav nav { margin-left: auto; }

.nav a,
footer a {
  position: relative;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
}

.nav nav a::after,
footer nav a::after {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav nav a:hover::after,
.nav nav a:focus-visible::after,
footer nav a:hover::after,
footer nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

footer nav a::after { bottom: -9px; }

/* --------------------------------------------------------------------------
   Buttons and shared interactions
   -------------------------------------------------------------------------- */

.blue-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 20px 28px;
  color: #fff;
  border: 1px solid var(--color-blue);
  border-radius: 3px;
  background: var(--color-blue);
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 200ms ease, color 200ms ease,
    border-color 200ms ease, transform 200ms ease;
}

.blue-btn:hover,
.blue-btn:focus-visible {
  color: var(--color-blue);
  border-color: var(--color-blue);
  background: #fff;
  transform: translateY(-2px);
}

.blue-btn b {
  font-size: 23px;
  font-weight: 400;
  line-height: 0;
  transition: transform 200ms ease;
}

.blue-btn:hover b,
.blue-btn:focus-visible b { transform: translateX(5px); }

.blue-btn.small {
  gap: 10px;
  margin-left: 14px;
  padding: 15px 18px;
  font-size: 12px;
}

.nav .blue-btn.small,
.nav .blue-btn.small b { color: #fff; }

.nav .blue-btn.small:hover,
.nav .blue-btn.small:focus-visible,
.nav .blue-btn.small:hover b,
.nav .blue-btn.small:focus-visible b { color: var(--color-blue); }

/* --------------------------------------------------------------------------
   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;
}

.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: 650px;
  filter: drop-shadow(0 24px 14px #0003);
  transform: perspective(1300px) rotateY(-4deg) rotateX(2deg);
}

.screen {
  height: 400px;
  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: 170px;
  height: 367px;
  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: 337px;
  object-fit: cover;
  object-position: 52% 0;
}

/* --------------------------------------------------------------------------
   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 { 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-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ej-cover {
  height: 185px;
  overflow: hidden;
  border-radius: 4px;
  background: #070707;
}

.ej-cover img {
  display: block;
  width: 129.75%;
  max-width: none;
  height: auto;
  object-fit: initial;
  object-position: left top;
}

/* Crowns card: a scaled-down recreation of its live landing-page viewport. */
.crowns-cover {
  position: relative;
  height: 185px;
  overflow: hidden;
  border-radius: 4px;
  color: #f8f2e8;
  background-color: #071316;
  background-image:
    linear-gradient(90deg, rgba(4, 15, 17, 0.96) 0%, rgba(4, 15, 17, 0.78) 40%, rgba(4, 15, 17, 0.14) 78%),
    url("Assets/crowns-barbershop-cover.png");
  background-position: center;
  background-size: cover;
  transform-origin: center;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.crowns-preview-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 29px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(226, 205, 156, 0.25);
  color: #f2ede5;
  font-size: 4px;
  font-weight: 700;
  letter-spacing: 0.55px;
}

.crowns-preview-logo {
  display: grid;
  width: 22px;
  height: 22px;
  place-content: center;
  border-radius: 50%;
  background: #101f23;
  color: #d8b36e;
  font-size: 8px;
  line-height: 1;
}

.crowns-preview-logo small {
  font-size: 3px;
  font-weight: 700;
}

.crowns-preview-nav b {
  margin-left: auto;
  padding: 4px 6px;
  border: 1px solid rgba(222, 188, 113, 0.8);
  color: #d8b36e;
  font-size: 4px;
  letter-spacing: 0.45px;
}

.crowns-preview-copy {
  position: absolute;
  top: 53px;
  left: 10px;
}

.crowns-preview-copy p {
  margin: 0 0 6px;
  color: #d5b46e;
  font-size: 4px;
  font-weight: 700;
  letter-spacing: 0.9px;
}

.crowns-preview-copy strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -1.4px;
  line-height: 0.85;
}

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

.crowns-preview-copy > span {
  display: block;
  font-size: 5px;
  line-height: 1.5;
}

.crowns-preview-copy i {
  display: inline-block;
  margin-top: 9px;
  padding: 6px 10px;
  background: #d0aa62;
  color: #182022;
  font-size: 5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.6px;
}

/* 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-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;
  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 i {
  display: block;
  height: 57px;
  color: var(--color-blue);
  font-size: 42px;
  font-style: normal;
}

.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;
}

.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 i { display: block; margin-bottom: 10px; color: var(--color-blue); font-size: 46px; font-style: normal; }
.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; }

.cta {
  display: grid;
  grid-template-columns: 300px 1fr auto;
  align-items: center;
  gap: 35px;
  min-height: 170px;
}

.cta img { width: 250px; height: auto; }
.cta h2 { margin: 0 0 5px; font-size: 28px; letter-spacing: -1.3px; }
.cta p { margin: 0; font-size: 15px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  color: #555;
  border-top: 1px solid var(--color-line);
  font-size: 13px;
}

footer nav { gap: 48px; }

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #333;
  font-size: 20px;
  font-weight: 700;
}

.social-links a {
  color: inherit;
  text-decoration: none;
}

.social-links a:hover { color: var(--color-blue); }

/* --------------------------------------------------------------------------
   Responsive layout
   -------------------------------------------------------------------------- */

@media (max-width: 800px) {
  .container { width: calc(100% - 42px); }
  .nav { height: 94px; }
  .nav nav { display: none; }
  .logo { width: 180px; }
  .nav .blue-btn { margin-left: auto; }
  .hero { display: block; padding: 55px 0 20px; }
  .hero h1 { font-size: 50px; }
  .devices { height: 410px; margin-top: 30px; }
  .laptop { width: 95%; }
  .screen { height: 270px; }
  .phone { right: 0; bottom: 25px; width: 110px; height: 245px; border-width: 7px; }
  .phone img { height: 222px; }
  .od-mark { font-size: 380px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 25px; }
  .cards img,
  .ej-cover,
  .crowns-cover,
  .family-cover,
  .coming-cover { height: 135px; }
  .section-heading, .service-head, .contact > div { display: block; }
  .section-heading > a { display: inline-block; margin-top: 22px; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .service-list article { padding: 20px !important; border-bottom: 1px solid var(--color-line); }
  .about-grid { display: block; }
  .proof { grid-template-columns: 1fr 1fr; margin-top: 35px; }
  .proof article { min-height: 135px; }
  .cta { grid-template-columns: 1fr; gap: 22px; padding: 45px 0; }
  .cta img { width: 200px; }
  footer { display: block; padding: 25px 0; }
  footer nav { flex-wrap: wrap; gap: 20px; margin: 20px 0; }
}
