:root {
  --ink: #172026;
  --muted: #66757b;
  --paper: #ffffff;
  --soft: #f5f7f4;
  --line: #dfe5df;
  --deep: #1f342f;
  --teal: #006c7a;
  --green: #52745a;
  --accent: #c7a24a;
  --clay: #b45d48;
  --shadow: 0 20px 50px rgba(20, 35, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(23, 32, 38, 0.72);
  backdrop-filter: blur(16px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  text-decoration: none;
  line-height: 1.12;
}

.brand-main {
  font-size: 1.18rem;
  font-weight: 900;
}

.brand-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 760;
}

.nav a {
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.hero {
  min-height: 86vh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 142px 0 72px;
  color: #ffffff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/hero-cover-001.jpg") center / cover no-repeat;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08) translateX(3%);
  animation: heroFlow 60s linear infinite;
  animation-delay: calc(var(--i) * 6s);
}

@keyframes heroFlow {
  0% {
    opacity: 1;
    transform: scale(1.08) translateX(3%);
  }

  9.5% {
    opacity: 1;
  }

  13.2% {
    opacity: 0;
    transform: scale(1.14) translateX(-3%);
  }

  100% {
    opacity: 0;
    transform: scale(1.14) translateX(-3%);
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 24, 28, 0.82), rgba(14, 24, 28, 0.5) 54%, rgba(14, 24, 28, 0.22)),
    linear-gradient(0deg, rgba(14, 24, 28, 0.55), rgba(14, 24, 28, 0));
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6.2vw, 5.5rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.18;
}

h3 {
  line-height: 1.35;
}

.hero-copy {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions,
.contact-panel ul,
.keywords ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  color: #1e1a10;
  background: var(--accent);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

section {
  padding: 78px 0;
  scroll-margin-top: 96px;
}

.overview {
  padding: 0;
  background: linear-gradient(180deg, #ffffff, var(--soft));
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--line);
  box-shadow: 0 16px 34px rgba(20, 35, 38, 0.08);
}

.overview article {
  min-height: 190px;
  padding: 26px;
  background: #ffffff;
}

.overview span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 950;
}

.overview h2 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.overview p {
  margin-bottom: 0;
  color: var(--muted);
}

.split,
.company-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.lead-block p,
.company-lead,
.section-head p {
  color: var(--muted);
  font-size: 1.04rem;
}

.lead-block p:last-child {
  margin-bottom: 0;
}

.services {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.service-card {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(22, 35, 38, 0.08);
}

.service-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--deep);
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 30px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

.work-gallery img {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.work-gallery img:first-child {
  opacity: 1;
}

.work-card:hover .work-gallery img,
.work-card:focus-within .work-gallery img {
  animation: workGallery 8s infinite;
}

.work-card:hover .work-gallery img:nth-child(2),
.work-card:focus-within .work-gallery img:nth-child(2) {
  animation-delay: 2s;
}

.work-card:hover .work-gallery img:nth-child(3),
.work-card:focus-within .work-gallery img:nth-child(3) {
  animation-delay: 4s;
}

.work-card:hover .work-gallery img:nth-child(4),
.work-card:focus-within .work-gallery img:nth-child(4) {
  animation-delay: 6s;
}

.work-card:hover .work-gallery.work-gallery-duo img,
.work-card:focus-within .work-gallery.work-gallery-duo img {
  animation: workGalleryDuo 4s infinite;
}

.work-card:hover .work-gallery.work-gallery-duo img:nth-child(2),
.work-card:focus-within .work-gallery.work-gallery-duo img:nth-child(2) {
  animation-delay: 2s;
}

.work-card:hover .work-gallery.work-gallery-long img,
.work-card:focus-within .work-gallery.work-gallery-long img {
  animation: workGalleryLong 16s infinite;
}

.work-card:hover .work-gallery.work-gallery-long img:nth-child(2),
.work-card:focus-within .work-gallery.work-gallery-long img:nth-child(2) {
  animation-delay: 2s;
}

.work-card:hover .work-gallery.work-gallery-long img:nth-child(3),
.work-card:focus-within .work-gallery.work-gallery-long img:nth-child(3) {
  animation-delay: 4s;
}

.work-card:hover .work-gallery.work-gallery-long img:nth-child(4),
.work-card:focus-within .work-gallery.work-gallery-long img:nth-child(4) {
  animation-delay: 6s;
}

.work-card:hover .work-gallery.work-gallery-long img:nth-child(5),
.work-card:focus-within .work-gallery.work-gallery-long img:nth-child(5) {
  animation-delay: 8s;
}

.work-card:hover .work-gallery.work-gallery-long img:nth-child(6),
.work-card:focus-within .work-gallery.work-gallery-long img:nth-child(6) {
  animation-delay: 10s;
}

.work-card:hover .work-gallery.work-gallery-long img:nth-child(7),
.work-card:focus-within .work-gallery.work-gallery-long img:nth-child(7) {
  animation-delay: 12s;
}

.work-card:hover .work-gallery.work-gallery-long img:nth-child(8),
.work-card:focus-within .work-gallery.work-gallery-long img:nth-child(8) {
  animation-delay: 14s;
}

@keyframes workGallery {
  0%,
  30% {
    opacity: 1;
  }

  38%,
  100% {
    opacity: 0;
  }
}

@keyframes workGalleryDuo {
  0%,
  45% {
    opacity: 1;
  }

  55%,
  100% {
    opacity: 0;
  }
}

@keyframes workGalleryLong {
  0%,
  13% {
    opacity: 1;
  }

  18%,
  100% {
    opacity: 0;
  }
}

.work-card > div:not(.work-gallery) {
  padding: 18px;
}

.work-card h3 {
  margin-bottom: 4px;
}

.work-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.company {
  color: #ffffff;
  background: var(--deep);
}

.company .section-kicker,
.contact .section-kicker {
  color: #e7c86d;
}

.company-lead {
  color: rgba(255, 255, 255, 0.74);
}

.profile-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 0;
}

.profile-list dt {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.profile-list dd {
  margin: 0;
}

.keywords {
  background: #ffffff;
}

.keywords ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.keywords li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--deep);
  background: var(--soft);
  font-weight: 800;
}

.contact {
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 108, 122, 0.86), rgba(82, 116, 90, 0.82)),
    url("assets/work-09-renovation-sign.jpg") center / cover no-repeat;
}

.contact p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.24);
}

.contact-panel h3 {
  margin-bottom: 14px;
}

.contact-panel ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.contact-panel li {
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.11);
}

.contact-panel .button {
  width: 100%;
}

.site-footer {
  padding: 26px 0;
  color: #5b676b;
  background: #ffffff;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

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

  .hero-slide:first-child {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 190px;
  }

  .split,
  .company-layout,
  .contact-layout,
  .section-head {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .service-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .header-inner,
  .section-inner,
  .hero-content,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .nav a {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
  }

  section {
    padding: 58px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .overview-grid,
  .service-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .overview article {
    min-height: 0;
  }

  .profile-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
