:root {
  --black: #070707;
  --black-2: #101010;
  --panel: #151515;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.08);
  --red: #a90f1b;
  --red-bright: #d7192a;
  --steel: #aeb5bc;
  --max: 1180px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.gallery-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.92), rgba(7, 7, 7, 0.46));
  transition: background 240ms ease, border-color 240ms ease, height 240ms ease;
}

.site-header.is-scrolled {
  height: 72px;
  border-color: var(--line);
  background: rgba(7, 7, 7, 0.94);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, #151515, #070707 62%, #2b070b);
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy span {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy small {
  max-width: 260px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 26px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-cta,
.btn-primary {
  background: var(--red);
  color: var(--text);
  box-shadow: 0 16px 34px rgba(169, 15, 27, 0.28);
}

.nav-cta:hover,
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

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

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

.hero-media {
  background-image: url("/assets/images/hero-construction.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.78) 44%, rgba(7, 7, 7, 0.48) 100%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.22), rgba(7, 7, 7, 0.9)),
    radial-gradient(circle at 78% 28%, rgba(169, 15, 27, 0.3), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-info {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 5vw, 72px);
  bottom: 34px;
  max-width: 390px;
  padding-top: 18px;
  border-top: 2px solid var(--red);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
  font-weight: 700;
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(760px, 100%);
}

.section-heading h2,
.cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.cta p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro,
.projects,
.gallery {
  background: var(--black);
}

.value-grid,
.service-grid,
.project-grid {
  width: min(var(--max), 100%);
  margin: 46px auto 0;
  display: grid;
  gap: 18px;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.value-card,
.service-card {
  min-height: 238px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.value-card:hover,
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 25, 42, 0.62);
  background: linear-gradient(180deg, rgba(215, 25, 42, 0.12), rgba(255, 255, 255, 0.035));
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: rgba(169, 15, 27, 0.18);
  color: var(--red-bright);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3,
.service-card h3 {
  margin: 22px 0 12px;
  font-size: 1.28rem;
}

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

.services,
.choose {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
    var(--black-2);
}

.service-card span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.86rem;
  font-weight: 900;
}

.split {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
}

.choose-list {
  display: grid;
  gap: 14px;
}

.choose-list div {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 64px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.choose-list span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--red-bright);
  box-shadow: 0 0 0 7px rgba(215, 25, 42, 0.12);
}

.project-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  isolation: isolate;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  filter: saturate(0.95) contrast(1.04);
  transition: transform 500ms ease, filter 500ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.84));
}

.project-card div {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
}

.project-card span {
  color: var(--red-bright);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-card h3 {
  margin: 8px 0 0;
  font-size: 1.35rem;
}

.project-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.02) contrast(1.1);
}

.project-action {
  width: min(var(--max), 100%);
  margin: 32px auto 0;
}

.gallery {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(169, 15, 27, 0.12), transparent 28%),
    linear-gradient(180deg, #090909, #050505);
}

.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 76%, transparent);
}

.gallery-heading {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.gallery-count {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(215, 25, 42, 0.52);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(169, 15, 27, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.gallery-grid {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-tile {
  position: relative;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: zoom-in;
  isolation: isolate;
}

.gallery-tile::before,
.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.gallery-tile::before {
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.1), rgba(7, 7, 7, 0.56)),
    linear-gradient(90deg, rgba(169, 15, 27, 0.16), transparent 48%);
}

.gallery-tile::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 -82px 92px rgba(0, 0, 0, 0.62);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.06) brightness(0.92);
  transition: transform 520ms ease, filter 520ms ease;
}

.gallery-tile span {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 15px;
  padding-top: 12px;
  border-top: 2px solid var(--red);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-tile:hover,
.gallery-tile:focus-visible {
  border-color: rgba(215, 25, 42, 0.68);
  outline: none;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1) contrast(1.08) brightness(1);
}

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

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

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
}

.gallery-modal.is-open {
  display: grid;
}

.gallery-modal figure {
  width: min(1120px, 100%);
  max-height: 88vh;
  margin: 0;
  display: grid;
  gap: 14px;
}

.gallery-modal img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #080808;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.gallery-modal figcaption {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-align: center;
}

.gallery-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.gallery-close::before,
.gallery-close::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.gallery-close::before {
  transform: rotate(45deg);
}

.gallery-close::after {
  transform: rotate(-45deg);
}

.cta {
  padding: clamp(72px, 10vw, 130px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(169, 15, 27, 0.22), transparent 62%),
    linear-gradient(180deg, #111, #080808);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.cta h2 {
  max-width: 820px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  padding: 42px clamp(18px, 5vw, 72px);
  background: #050505;
  color: var(--muted);
}

.footer-brand {
  color: var(--text);
  font-weight: 900;
}

.site-footer p {
  margin: 10px 0 0;
}

.site-footer address {
  display: grid;
  gap: 7px;
  font-style: normal;
  text-align: right;
}

.site-footer address a:hover {
  color: var(--text);
}

.copyright {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

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

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.5%, -1%, 0);
  }
}

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

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

@media (max-width: 1080px) {
  .value-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .split,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    align-items: start;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 14px auto;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(7, 7, 7, 0.98);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

  .site-nav .nav-cta {
    margin-top: 8px;
    padding: 0 18px;
  }

  .hero {
    padding-bottom: 94px;
  }

  .hero-info {
    right: auto;
    left: clamp(18px, 5vw, 72px);
    bottom: 28px;
  }

  .gallery-heading {
    display: grid;
    align-items: start;
  }

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

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

@media (max-width: 680px) {
  :root {
    --header-height: 74px;
  }

  .brand-copy small {
    max-width: 174px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.2rem);
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .value-grid,
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .value-card,
  .service-card {
    min-height: auto;
  }

  .project-card {
    min-height: 320px;
  }

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

  .gallery-wide {
    grid-column: auto;
  }

  .gallery-tall {
    grid-row: auto;
    min-height: 380px;
  }

  .gallery-tile {
    min-height: 380px;
  }

  .gallery-count {
    width: max-content;
    max-width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer address {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy span {
    font-size: 0.98rem;
  }

  .brand-copy small {
    display: none;
  }

  .hero-info {
    max-width: calc(100% - 36px);
    font-size: 0.86rem;
  }
}
