:root {
  --ink: #141515;
  --muted: #626b67;
  --line: #d9ddd8;
  --paper: #f7f8f5;
  --white: #ffffff;
  --deep: #102027;
  --deep-soft: rgba(16, 32, 39, 0.82);
  --copper: #b77a45;
  --green: #55746b;
  --shadow: 0 24px 70px rgba(10, 18, 21, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, Aptos, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--white);
  transition:
    background 240ms ease,
    box-shadow 240ms ease,
    height 240ms ease,
    color 240ms ease;
}

.site-header.is-scrolled,
.site-header.compact {
  height: 68px;
  color: var(--ink);
  background: rgba(247, 248, 245, 0.92);
  box-shadow: 0 12px 36px rgba(20, 21, 21, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 700;
}

.brand-logo {
  width: clamp(168px, 18vw, 238px);
  height: 46px;
  object-fit: contain;
  object-position: left center;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.94);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-out forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 14, 0.74), rgba(6, 12, 14, 0.35) 42%, rgba(6, 12, 14, 0.08)),
    linear-gradient(0deg, rgba(6, 12, 14, 0.72), transparent 48%);
}

.hero-content {
  position: relative;
  width: min(920px, calc(100% - 40px));
  margin: 0 clamp(20px, 7vw, 112px) clamp(44px, 9vh, 92px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.project-hero h1 {
  margin: 0;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.hero h1 {
  max-width: 880px;
  font-size: clamp(44px, 7vw, 92px);
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button.secondary {
  color: var(--white);
}

.section {
  padding: clamp(74px, 9vw, 132px) clamp(20px, 5vw, 72px);
}

.intro-grid,
.delivery-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.section h2 {
  font-size: clamp(34px, 5vw, 64px);
}

.intro-copy {
  color: var(--muted);
  font-size: 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(44px, 6vw, 72px);
  background: var(--line);
  border: 1px solid var(--line);
}

.metrics div {
  min-height: 132px;
  padding: 24px;
  background: var(--white);
}

.metrics strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.15;
}

.metrics span {
  color: var(--muted);
  font-size: 14px;
}

.services {
  background: var(--deep);
  color: var(--white);
}

.section-heading {
  max-width: 860px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.service-item {
  min-height: 320px;
  padding: clamp(24px, 3vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.service-item span {
  color: var(--copper);
  font-weight: 800;
}

.service-item h3 {
  margin: 70px 0 16px;
  font-size: 24px;
}

.service-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 430px;
  display: block;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
  box-shadow: var(--shadow);
}

.project-card.large {
  grid-row: span 2;
  min-height: 878px;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.9;
  transform: scale(1);
  transition:
    transform 600ms ease,
    opacity 600ms ease;
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(6, 12, 14, 0.82), transparent 52%);
}

.project-card:hover img {
  opacity: 1;
  transform: scale(1.045);
}

.project-card div {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 26px;
}

.project-card p,
.project-card span {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.project-card h3 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.delivery {
  background: var(--white);
}

.delivery-grid p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-list div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.process-list span {
  color: var(--green);
  font-weight: 800;
}

.process-list strong {
  font-size: 20px;
}

.contact {
  background: var(--deep);
  color: var(--white);
}

.contact-panel {
  max-width: 960px;
}

.contact-panel h2 {
  max-width: 780px;
}

.contact-panel p:not(.section-kicker) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 860px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-list a,
.contact-list span {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  background: var(--deep);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 72px);
  background: #0b1215;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.project-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(6, 12, 14, 0.82), rgba(6, 12, 14, 0.12) 58%),
    linear-gradient(90deg, rgba(6, 12, 14, 0.55), transparent);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
  margin: 0 clamp(20px, 6vw, 90px) clamp(40px, 8vh, 84px);
}

.project-hero h1 {
  font-size: clamp(52px, 9vw, 110px);
}

.project-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.project-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 88px);
  background: var(--white);
}

.project-facts {
  display: grid;
  gap: 1px;
  align-self: start;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-facts div {
  padding: 20px;
  background: var(--paper);
}

.project-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-facts strong {
  font-size: 17px;
}

.overview-copy p {
  color: var(--muted);
  font-size: 18px;
}

.gallery-section {
  padding-top: 0;
}

.gallery-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.gallery-heading h2 {
  margin-bottom: 10px;
}

.gallery-heading p {
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-grid.extended {
  grid-auto-flow: dense;
}

.gallery-item {
  min-width: 0;
  padding: 0;
  border: 0;
  background: var(--deep);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.96;
  transition:
    opacity 240ms ease,
    transform 480ms ease;
}

.gallery-item.tall img {
  height: 854px;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  opacity: 1;
  transform: scale(1.035);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 10, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-caption {
  position: absolute;
  left: 24px;
  right: 84px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.media-section {
  background: var(--white);
}

.media-section h2 {
  margin-bottom: 28px;
}

.media-section video {
  width: 100%;
  max-height: 76vh;
  background: var(--deep);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1.01);
  }
}

@media (max-width: 1040px) {
  .service-grid,
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.large {
    min-height: 620px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item img,
  .gallery-item.tall img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand-logo {
    width: 158px;
    height: 42px;
    padding: 5px 7px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 16px auto;
    display: grid;
    gap: 0;
    padding: 8px;
    color: var(--ink);
    background: rgba(247, 248, 245, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 34px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .intro-grid,
  .delivery-grid,
  .project-overview {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 16px;
  }

  .section h2 {
    font-size: 36px;
  }

  .service-grid,
  .metrics,
  .project-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: 260px;
  }

  .service-item h3 {
    margin-top: 42px;
  }

  .project-card,
  .project-card.large {
    min-height: 430px;
  }

  .site-footer {
    display: grid;
  }

  .project-hero {
    min-height: 76vh;
  }

  .project-hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 34px;
  }

  .project-hero h1 {
    font-size: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
