:root {
  --ink: #11141a;
  --muted: #59606a;
  --paper: #f7f8f6;
  --stone: #d9d4ca;
  --white: #ffffff;
  --accent: #0f6e7a;
  --accent-strong: #0b4c55;
  --amber: #c9953e;
  --line: rgba(17, 20, 26, 0.12);
  --shadow: 0 20px 60px rgba(17, 20, 26, 0.18);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(247, 248, 246, 0.94);
  box-shadow: 0 10px 30px rgba(17, 20, 26, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.26);
}

.site-header.scrolled .brand-mark {
  border-color: rgba(17, 20, 26, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 1px solid currentColor;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 88svh;
  padding: calc(var(--header-height) + 40px) clamp(18px, 5vw, 72px) 32px;
  color: var(--white);
  overflow: hidden;
}

.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 2200ms ease;
}

.hero-bg img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 12, 16, 0.82) 0%, rgba(8, 12, 16, 0.5) 48%, rgba(8, 12, 16, 0.08) 100%),
    linear-gradient(0deg, rgba(8, 12, 16, 0.5) 0%, rgba(8, 12, 16, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact .eyebrow {
  color: #9bd7dc;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.22;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--accent);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-strong);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.contact .button.secondary {
  color: var(--ink);
  border-color: rgba(17, 20, 26, 0.24);
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 28px;
  left: clamp(18px, 5vw, 72px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 920px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-stats span {
  min-height: 74px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(8, 12, 16, 0.36);
  backdrop-filter: blur(8px);
}

.hero-stats strong {
  display: block;
  color: var(--white);
  font-size: 1.28rem;
  line-height: 1.1;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.intro,
.services,
.projects,
.process {
  padding: clamp(72px, 10vw, 124px) 0;
}

.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
}

.intro-copy p:not(.eyebrow),
.section-heading + p,
.contact-content p {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-photo {
  position: relative;
  margin: 0;
}

.intro-photo::before {
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: 0;
  content: "";
  border: 2px solid var(--accent);
}

.intro-photo img {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

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

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-item {
  min-height: 260px;
  padding: clamp(22px, 4vw, 36px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-number {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--amber);
  font-weight: 900;
}

.service-item p,
.step p {
  color: var(--muted);
}

.projects {
  background: #101318;
  color: var(--white);
}

.projects .eyebrow {
  color: #9bd7dc;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  cursor: pointer;
  background: #222832;
  border: 0;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
  min-height: 452px;
}

.gallery-item img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 420ms ease, opacity 220ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(16, 19, 24, 0) 45%, rgba(16, 19, 24, 0.78) 100%);
}

.gallery-item span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  font-weight: 800;
  text-align: left;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  opacity: 0.86;
  transform: scale(1.06);
}

.process {
  background: var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  column-gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step span {
  color: var(--amber);
  font-weight: 900;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  grid-column: 2;
  margin: 0;
}

.contact {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: clamp(76px, 10vw, 132px) 0;
  overflow: hidden;
}

.contact-media,
.contact-media img {
  position: absolute;
  inset: 0;
}

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

.contact::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(247, 248, 246, 0.96) 0%, rgba(247, 248, 246, 0.78) 50%, rgba(247, 248, 246, 0.16) 100%),
    linear-gradient(0deg, rgba(15, 110, 122, 0.2), rgba(15, 110, 122, 0.2));
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-left: max(18px, calc((100vw - 1180px) / 2));
}

.contact .eyebrow {
  color: var(--accent);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 900;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(6, 8, 10, 0.88);
}

.lightbox.active {
  display: grid;
}

.lightbox figure {
  width: min(980px, 100%);
  margin: 0;
}

.lightbox img {
  max-height: 78vh;
  object-fit: contain;
  background: #0c0f13;
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  min-height: 34px;
  padding-top: 12px;
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  font-size: 2.6rem;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 24px;
}

.lightbox-nav.next {
  right: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .service-item {
    min-height: auto;
  }

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

@media (max-width: 740px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    visibility: hidden;
    background: rgba(247, 248, 246, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 10px;
  }

  .hero {
    min-height: 92svh;
    align-items: end;
    padding-bottom: 148px;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .hero-stats span {
    min-height: 54px;
    padding: 10px 14px;
  }

  .intro-photo::before {
    inset: 12px -10px -12px 10px;
  }

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

  .gallery-item,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 300px;
  }

  .step {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .contact::before {
    background:
      linear-gradient(180deg, rgba(247, 248, 246, 0.98) 0%, rgba(247, 248, 246, 0.88) 62%, rgba(247, 248, 246, 0.36) 100%),
      linear-gradient(0deg, rgba(15, 110, 122, 0.2), rgba(15, 110, 122, 0.2));
  }

  .contact-content {
    margin-inline: auto;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 22px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
