:root {
  --bg: #070807;
  --bg-2: #101111;
  --panel: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f1eb;
  --muted: #b8b2a8;
  --soft: #77736c;
  --steel: #b9c0bd;
  --amber: #c9883a;
  --amber-2: #f0b56b;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 64px);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 5%, rgba(201, 136, 58, 0.13), transparent 27rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px),
    var(--bg);
  font-family: var(--font);
  letter-spacing: 0;
}

body.is-loading {
  overflow: hidden;
}

body.nav-is-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.045) 50%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 7px);
  opacity: 0.16;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(240, 181, 107, 0.14), transparent 18rem),
    linear-gradient(180deg, #050606 0%, #090a0a 62%, #050606 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 780ms ease, visibility 780ms ease;
}

.preloader::before {
  position: absolute;
  pointer-events: none;
  content: "";
}

.preloader::before {
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 50%, transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 9px);
  opacity: 0.24;
}

.preloader-mark {
  position: relative;
  z-index: 1;
  width: min(300px, 48vw);
  opacity: 0;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.75));
  transform: translateY(14px) scale(0.88);
  animation: loader-logo 2200ms cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

.preloader-mark img {
  width: 100%;
  filter: invert(1);
}

body:not(.is-loading) .preloader {
  opacity: 0;
  visibility: hidden;
}

body:not(.is-loading) .preloader-mark {
  transform: translateY(-10px) scale(1.08);
  transition: transform 900ms ease;
}

@keyframes loader-logo {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.88);
  }

  36% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1.06);
  }
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px var(--pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(4, 5, 5, 0.82), rgba(4, 5, 5, 0.34));
  backdrop-filter: blur(18px);
  transition: background 220ms ease, padding 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(6, 7, 7, 0.9);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: invert(1);
}

.brand span,
.footer-brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: center;
  color: rgba(244, 241, 235, 0.82);
  font-size: 13px;
}

.nav-home {
  display: none;
}

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

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

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

.header-cta {
  justify-self: end;
  padding: 12px 16px;
  border: 1px solid rgba(240, 181, 107, 0.45);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  background: rgba(201, 136, 58, 0.13);
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.social-icon {
  display: inline-grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(244, 241, 235, 0.86);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon:hover {
  border-color: rgba(240, 181, 107, 0.58);
  color: var(--amber-2);
  background: rgba(201, 136, 58, 0.12);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  overflow: hidden;
  padding: 150px var(--pad) 38px;
  isolation: isolate;
}

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

.hero-media {
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.36) 46%, rgba(0, 0, 0, 0.22)),
    url("assets/ai-modern-fence.jpg");
  background-position: center 56%;
  background-size: cover;
  transform: scale(1.04);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7, 8, 7, 0.16), rgba(7, 8, 7, 0.34) 48%, #070807 100%),
    radial-gradient(circle at 16% 65%, rgba(201, 136, 58, 0.18), transparent 24rem);
}

.hero-steel-line {
  z-index: -1;
  background: linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, 0.18) 58.05%, transparent 58.2%);
  opacity: 0.34;
}

.hero-content {
  width: min(880px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--amber-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 950px;
  margin-bottom: 18px;
  font-size: clamp(52px, 9vw, 122px);
  line-height: 0.88;
  font-weight: 900;
}

.hero-lead {
  margin-bottom: 12px;
  color: var(--steel);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 700;
}

.hero-copy {
  max-width: 650px;
  color: rgba(244, 241, 235, 0.76);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 19px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border-color: rgba(240, 181, 107, 0.72);
  color: #150e07;
  background: linear-gradient(135deg, #e7a455, #f1c48a);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  width: min(var(--max), 100%);
  margin-top: clamp(46px, 8vw, 86px);
}

.hero-specs a {
  position: relative;
  display: grid;
  min-height: 106px;
  align-content: end;
  gap: 16px;
  padding: 0 0 18px;
  color: rgba(244, 241, 235, 0.84);
  overflow: hidden;
}

.hero-specs a::before {
  content: "";
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(255, 255, 255, 0.18));
  transform: scaleX(0.26);
  transform-origin: left;
  transition: transform 220ms ease;
}

.hero-specs a::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
}

.hero-specs a:hover::before {
  transform: scaleX(1);
}

.hero-specs span {
  color: var(--amber-2);
  font-size: 12px;
  font-weight: 900;
}

.hero-specs strong {
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.05;
  font-weight: 850;
}

.section-pad {
  padding: clamp(78px, 12vw, 150px) var(--pad);
}

.testimonials {
  background: linear-gradient(180deg, #070807, #0d0e0e);
}

.portfolio {
  position: relative;
  overflow: hidden;
  padding-top: clamp(42px, 7vw, 88px);
  background: linear-gradient(180deg, #070807, #0d0e0e);
}

.portfolio::after {
  position: absolute;
  inset: auto 0 0;
  height: clamp(120px, 16vw, 230px);
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(13, 14, 14, 0), #080909 76%, #080909 100%);
}

.intro {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(48px, 7vw, 92px);
  background-image:
    linear-gradient(90deg, #070807 0%, rgba(7, 8, 7, 0.92) 34%, rgba(7, 8, 7, 0.52) 64%, rgba(7, 8, 7, 0.18) 100%),
    linear-gradient(180deg, #070807 0%, rgba(7, 8, 7, 0.18) 36%, #0d0e0e 100%),
    url("assets/ai-workshop-grinding.jpg");
  background-position: center, center, right center;
  background-size: cover, cover, auto 112%;
  background-repeat: no-repeat;
}

.intro::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, transparent 0%, transparent 58%, rgba(8, 9, 9, 0.72) 86%, #0d0e0e 100%),
    linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, 0.16) 58.05%, transparent 58.2%),
    radial-gradient(circle at 80% 52%, rgba(201, 136, 58, 0.16), transparent 24rem);
  opacity: 1;
}

.intro > .section-kicker {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin-inline: auto;
}

.intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
}

.intro-copy h2,
.section-head h2,
.testimonial-lead h2,
.contact-content h2 {
  max-width: 850px;
  font-size: clamp(36px, 5vw, 74px);
  line-height: 0.98;
  font-weight: 900;
}

.intro-copy p,
.contact-content p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.intro-visual {
  position: relative;
  min-height: 560px;
}

.intro-caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: auto;
  width: min(360px, 100%);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  text-align: right;
}

.intro-caption span {
  display: block;
  color: var(--amber-2);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.intro-caption strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 42px);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto clamp(36px, 6vw, 78px);
}

.services {
  padding-top: clamp(48px, 7vw, 92px);
  background:
    linear-gradient(180deg, #0d0e0e, #080909),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9px);
}

.services-sticky {
  max-width: var(--max);
  margin: 0 auto;
}

.service-list {
  display: grid;
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  min-height: 250px;
  background: #0b0c0c;
}

.service-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
}

.service-row:nth-child(even) .service-image {
  order: 2;
}

.service-image {
  min-height: 250px;
  background-position: center;
  background-size: cover;
}

.image-forged {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58)), url("assets/ai-forged-gate.jpg");
}

.image-yard {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.34)), url("assets/ai-yard-forged-gate.png");
}

.image-modern {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.64)), url("assets/ai-modern-service-fence.jpg");
}

.image-welding {
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.68)), url("assets/ai-metal-structure.jpg");
}

.service-text {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 70px);
}

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

.service-text h3,
.timeline-step h3 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
}

.service-text p,
.timeline-step p {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.service-text p + p {
  margin-top: -4px;
}

.portfolio-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.99fr 0.91fr;
  grid-template-rows:
    clamp(270px, 18vw, 350px)
    clamp(150px, 10vw, 195px)
    clamp(145px, 9.6vw, 188px)
    clamp(235px, 15.6vw, 305px)
    clamp(230px, 15.3vw, 298px)
    clamp(280px, 18.6vw, 360px);
  gap: clamp(12px, 0.95vw, 18px);
  width: min(88vw, 1460px);
  max-width: none;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  grid-auto-flow: row;
}

.gallery-stack-label {
  display: none;
}

.gallery-item {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  background-position: center;
  background-size: cover;
  cursor: zoom-in;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 18px 44px rgba(0, 0, 0, 0.18);
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.24));
  opacity: 1;
  transition: opacity 180ms ease, background 180ms ease;
}

.gallery-item:hover::after {
  opacity: 0.16;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02) brightness(0.96);
  transition: transform 220ms ease, filter 220ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02) brightness(1.06);
}

.mosaic-building {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.mosaic-top-wide {
  grid-column: 2 / span 2;
  grid-row: 1;
}

.mosaic-stairs {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.mosaic-right-tall {
  grid-column: 3;
  grid-row: 2 / span 3;
}

.mosaic-forged {
  grid-column: 1;
  grid-row: 3 / span 2;
}

.mosaic-balcony {
  grid-column: 2;
  grid-row: 4;
}

.mosaic-pool {
  grid-column: 1 / span 2;
  grid-row: 5;
}

.mosaic-pool img {
  object-position: center 68%;
}

.mosaic-brown-gate {
  grid-column: 3;
  grid-row: 5;
}

.mosaic-interior {
  grid-column: 1;
  grid-row: 6;
}

.mosaic-minimal {
  grid-column: 2;
  grid-row: 6;
}

.mosaic-entrance {
  grid-column: 3;
  grid-row: 6;
}

.mosaic-building,
.mosaic-forged,
.mosaic-right-tall,
.mosaic-interior,
.mosaic-minimal,
.mosaic-entrance {
  min-height: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(3, 4, 4, 0.92);
  backdrop-filter: blur(12px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.lightbox-scroll {
  display: flex;
  width: 100%;
  gap: clamp(18px, 4vw, 54px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.lightbox-scroll::-webkit-scrollbar {
  display: none;
}

.lightbox-slide {
  display: grid;
  flex: 0 0 100%;
  place-items: center;
  min-width: 0;
  scroll-snap-align: center;
}

.lightbox-slide img {
  width: auto;
  height: auto;
  max-width: calc(100vw - clamp(36px, 8vw, 108px));
  max-height: calc(100vh - clamp(112px, 14vw, 170px));
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.process {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 136, 58, 0.12), transparent 24rem),
    #080909;
}

.process::before {
  position: absolute;
  inset: clamp(130px, 15vw, 240px) 0 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 9, 9, 0.9) 0%, rgba(8, 9, 9, 0.68) 34%, rgba(8, 9, 9, 0.34) 68%, rgba(8, 9, 9, 0.22) 100%),
    linear-gradient(180deg, #080909 0%, rgba(8, 9, 9, 0.92) 16%, rgba(8, 9, 9, 0.32) 42%, rgba(8, 9, 9, 0.22) 76%, rgba(8, 9, 9, 0.9) 92%, #080909 100%),
    url("assets/ai-process-background.jpg");
  background-position: center, center, right center;
  background-size: cover;
  opacity: 0.72;
}

.process::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, #080909 0%, #080909 26%, rgba(8, 9, 9, 0.88) 36%, rgba(8, 9, 9, 0) 58%, rgba(8, 9, 9, 0) 78%, #080909 100%),
    radial-gradient(circle at 80% 42%, rgba(240, 181, 107, 0.15), transparent 24rem),
    linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, 0.12) 58.05%, transparent 58.18%);
  opacity: 0.72;
}

.process .section-head,
.timeline {
  position: relative;
  z-index: 2;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline-step {
  position: relative;
  padding: 36px 24px 0 0;
}

.timeline-step::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--amber);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(201, 136, 58, 0.15);
}

.timeline-step h3 {
  font-size: clamp(22px, 2vw, 31px);
}

.testimonials {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
  overflow: hidden;
  margin-top: -1px;
  background-image:
    linear-gradient(90deg, rgba(7, 8, 7, 0.95) 0%, rgba(7, 8, 7, 0.82) 38%, rgba(7, 8, 7, 0.48) 72%, rgba(7, 8, 7, 0.78) 100%),
    linear-gradient(180deg, #080909 0%, rgba(8, 9, 9, 0.92) 13%, rgba(8, 9, 9, 0.28) 45%, rgba(7, 8, 7, 0.72) 78%, #070807 100%),
    url("assets/ai-weld-detail-testimonials.jpg");
  background-position: center, center, right center;
  background-size: cover;
}

.testimonials::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, #080909 0%, rgba(8, 9, 9, 0.96) 8%, rgba(8, 9, 9, 0) 28%, rgba(8, 9, 9, 0) 70%, rgba(7, 8, 7, 0.88) 91%, #070807 100%),
    radial-gradient(circle at 82% 46%, rgba(240, 181, 107, 0.13), transparent 24rem),
    linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, 0.12) 58.05%, transparent 58.18%);
}

.testimonial-lead,
.quote-row {
  position: relative;
  z-index: 1;
}

.quote-row {
  display: grid;
  gap: 0;
  align-self: center;
  background: transparent;
}

blockquote {
  margin: 0;
  padding: clamp(16px, 2vw, 26px) 0;
  color: rgba(244, 241, 235, 0.82);
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: clamp(16px, 1.35vw, 22px);
  line-height: 1.5;
}

blockquote:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: clamp(32px, 6vw, 80px);
  overflow: hidden;
  background: #070807;
  isolation: isolate;
}

.contact-bg {
  position: absolute;
  inset: -120px 0 0;
  z-index: -2;
  background-image:
    linear-gradient(180deg, #070807 0%, rgba(7, 8, 7, 0.98) 12%, rgba(7, 8, 7, 0.74) 30%, rgba(7, 8, 7, 0.18) 52%, rgba(7, 8, 7, 0.36) 100%),
    linear-gradient(90deg, rgba(7, 8, 7, 0.32), rgba(7, 8, 7, 0.5) 36%, rgba(7, 8, 7, 0.84) 68%, rgba(7, 8, 7, 0.96)),
    url("assets/ai-contact-forged-gate-flipped.jpg");
  background-position: center, center, left 38%;
  background-size: cover;
}

.contact::before {
  position: absolute;
  inset: -1px 0 auto;
  z-index: -1;
  height: clamp(120px, 16vw, 240px);
  content: "";
  background: linear-gradient(180deg, #070807 0%, rgba(7, 8, 7, 0.86) 26%, rgba(7, 8, 7, 0) 100%);
  pointer-events: none;
}

.contact::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(240, 181, 107, 0.7), transparent);
}

.contact-content,
.contact-form {
  position: relative;
  z-index: 1;
  max-width: var(--max);
}

.contact-content {
  background: transparent;
}

address {
  display: grid;
  gap: 10px;
  margin-top: 36px;
  color: var(--muted);
  font-style: normal;
}

address a:hover {
  color: var(--amber-2);
}

.contact-form {
  align-self: start;
  display: grid;
  gap: 17px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 9, 9, 0.62);
  backdrop-filter: blur(20px);
}

.form-status {
  margin: 0;
  padding: 13px 15px;
  border-left: 3px solid var(--amber);
  color: var(--text);
  background: rgba(240, 181, 107, 0.1);
  font-size: 14px;
  font-weight: 750;
}

.form-status.is-error {
  border-left-color: #c95d4d;
  background: rgba(201, 93, 77, 0.1);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  padding: 14px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 1px solid rgba(240, 181, 107, 0.62);
  border-color: rgba(240, 181, 107, 0.62);
}

.site-footer {
  padding: clamp(54px, 7vw, 92px) var(--pad) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 136, 58, 0.1), transparent 24rem),
    #050606;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 0.8fr));
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
}

.footer-about p {
  max-width: 430px;
  margin: 22px 0 0;
  line-height: 1.7;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: invert(1);
}

.footer-nav,
.footer-services,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 11px;
}

.site-footer h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--amber-2);
}

.footer-contact {
  margin: 0;
  font-style: normal;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-socials span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(240, 181, 107, 0.26);
  color: var(--amber-2);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.footer-socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft);
  font-size: 13px;
}

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

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-block: 14px;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    position: relative;
    z-index: 62;
    display: grid;
    gap: 7px;
    width: 46px;
    height: 42px;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    transition: width 220ms ease, height 220ms ease, border-color 220ms ease, background 220ms ease;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 220ms ease, opacity 180ms ease, width 220ms ease;
  }

  .site-header.nav-open {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
  }

  .site-header.nav-open .brand {
    position: relative;
    z-index: 62;
  }

  .site-header.nav-open .nav-toggle {
    position: fixed;
    top: 22px;
    right: var(--pad);
    width: 64px;
    height: 64px;
    border-color: rgba(240, 181, 107, 0.68);
    border-radius: 999px;
    color: #070807;
    background: linear-gradient(135deg, #e7a455, #f1c48a);
  }

  .site-header.nav-open .nav-toggle span {
    width: 28px;
    background: currentColor;
  }

  .site-header.nav-open .nav-toggle span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .site-header.nav-open .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    align-content: center;
    justify-items: end;
    gap: clamp(18px, 4vh, 34px);
    padding: 110px var(--pad) 68px;
    border-bottom: 0;
    background:
      radial-gradient(circle at 82% 12%, rgba(201, 136, 58, 0.16), transparent 18rem),
      linear-gradient(115deg, transparent 0 56%, rgba(255, 255, 255, 0.09) 56.08%, transparent 56.18%),
      rgba(2, 3, 3, 0.98);
  }

  .site-header.nav-open .site-nav a {
    width: min(100%, 520px);
    padding: 0;
    color: var(--text);
    font-size: clamp(36px, 11vw, 66px);
    font-weight: 900;
    line-height: 0.95;
    text-align: right;
    text-transform: uppercase;
  }

  .site-header.nav-open .site-nav a:first-child {
    color: var(--amber-2);
  }

  .site-header.nav-open .site-nav a::after {
    display: none;
  }

  .site-header.nav-open .nav-home {
    display: block;
  }

  .hero {
    min-height: 760px;
    padding-top: 130px;
  }

  .hero-media {
    background-position: 60% 58%;
    transform: scale(1.015);
  }

  .hero-specs,
  .testimonials,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .intro {
    background-image:
      linear-gradient(180deg, #070807 0%, rgba(7, 8, 7, 0.78) 34%, rgba(7, 8, 7, 0.26) 68%, #0d0e0e 100%),
      url("assets/ai-workshop-grinding.jpg");
    background-position: center, right center;
    background-size: cover, auto 100%;
  }

  .intro-visual {
    min-height: 260px;
  }

  .service-row:nth-child(even) .service-image {
    order: 0;
  }

  .portfolio-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: clamp(190px, 32vw, 300px);
    width: min(92vw, 820px);
  }

  .gallery-item {
    grid-column: span 1;
    grid-row: auto;
  }

  .mosaic-top-wide,
  .mosaic-pool {
    grid-column: span 2;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }

  .timeline-step {
    padding: 0 0 22px 22px;
  }

  .timeline-step::before {
    top: 6px;
    left: -5px;
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 5px rgba(201, 136, 58, 0.14);
  }

  .timeline-step:last-child {
    padding-bottom: 0;
  }

  .contact-form {
    width: min(100%, 620px);
  }

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

@media (max-width: 640px) {
  :root {
    --pad: 20px;
  }

  .section-pad {
    padding: 64px var(--pad);
  }

  .site-header {
    gap: 16px;
    padding: 12px var(--pad);
  }

  .brand span {
    max-width: 132px;
    white-space: normal;
    line-height: 1.05;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 640px;
    padding-top: 112px;
    padding-bottom: 26px;
    align-items: end;
  }

  .hero-media {
    background-size: auto 100%;
    background-position: 66% bottom;
    background-repeat: no-repeat;
    transform: scale(1);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 8, 7, 0.86) 0%, rgba(7, 8, 7, 0.58) 48%, rgba(7, 8, 7, 0.34) 100%),
      linear-gradient(180deg, rgba(7, 8, 7, 0.16), rgba(7, 8, 7, 0.3) 48%, #070807 100%),
      radial-gradient(circle at 24% 68%, rgba(201, 136, 58, 0.13), transparent 16rem);
  }

  h1 {
    max-width: 360px;
    font-size: 52px;
    line-height: 0.9;
  }

  .hero-lead {
    font-size: 25px;
  }

  .hero-copy,
  .intro-copy p,
  .contact-content p,
  .service-text p,
  .timeline-step p {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .btn {
    min-height: 50px;
    padding-inline: 17px;
  }

  .hero-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: 24px;
  }

  .hero-specs a {
    min-height: 62px;
    gap: 9px;
    padding-bottom: 10px;
  }

  .hero-specs a::before {
    width: 82%;
    height: 2px;
    transform: scaleX(0.34);
  }

  .hero-specs strong {
    font-size: 15px;
    line-height: 1.05;
  }

  .portfolio-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 260px;
    width: 100%;
  }

  .mosaic-top-wide,
  .mosaic-pool {
    grid-column: span 1;
  }

  .portfolio-gallery {
    display: block;
    width: min(100%, 360px);
    height: 310px;
    margin: 0 auto;
  }

  .gallery-stack-label {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 8;
    display: grid;
    width: auto;
    min-width: 126px;
    padding: 9px 14px;
    color: var(--text);
    background: rgba(7, 8, 7, 0.58);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(240, 181, 107, 0.22);
    text-align: center;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .gallery-stack-label strong {
    color: var(--amber-2);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
  }

  .portfolio-gallery .gallery-item {
    position: absolute;
    inset: 28px 22px 42px;
    width: auto;
    height: auto;
    min-height: 0;
    transform-origin: center;
    transition: transform 220ms ease, filter 220ms ease;
  }

  .portfolio-gallery .gallery-item:nth-of-type(1) {
    z-index: 6;
    transform: rotate(-4deg) translate(-10px, 10px);
  }

  .portfolio-gallery .gallery-item:nth-of-type(2) {
    z-index: 5;
    transform: rotate(5deg) translate(12px, 2px);
  }

  .portfolio-gallery .gallery-item:nth-of-type(3) {
    z-index: 4;
    transform: rotate(-1deg) translate(0, -14px);
  }

  .portfolio-gallery .gallery-item:nth-of-type(4) {
    z-index: 3;
    transform: rotate(8deg) translate(18px, 18px);
  }

  .portfolio-gallery .gallery-item:nth-of-type(n + 5) {
    display: none;
  }

  .portfolio-gallery:hover .gallery-item:nth-of-type(1) {
    transform: rotate(-6deg) translate(-18px, 10px);
  }

  .portfolio-gallery:hover .gallery-item:nth-of-type(2) {
    transform: rotate(7deg) translate(20px, 0);
  }

  .portfolio-gallery:hover .gallery-item:nth-of-type(3) {
    transform: rotate(-2deg) translate(0, -20px);
  }

  .intro-copy h2,
  .section-head h2,
  .testimonial-lead h2,
  .contact-content h2 {
    max-width: 100%;
    font-size: 42px;
    line-height: 1;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .intro-visual {
    min-height: 220px;
  }

  .intro-caption {
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    text-align: left;
  }

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

  .service-image {
    min-height: 220px;
  }

  .service-text {
    padding: 30px 22px 34px;
  }

  .service-text h3,
  .timeline-step h3 {
    margin-bottom: 13px;
    font-size: 31px;
    line-height: 1.04;
  }

  .timeline-step h3 {
    margin-bottom: 7px;
    font-size: 20px;
    line-height: 1.1;
  }

  .timeline-step p {
    max-width: 300px;
    font-size: 13px;
    line-height: 1.5;
  }

  .services.is-horizontal {
    height: var(--services-scroll-height, 1850px);
    padding: 0;
    overflow: visible;
  }

  .services.is-horizontal .services-sticky {
    position: sticky;
    top: 0;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 86px var(--pad) 54px;
  }

  .services.is-horizontal .section-head {
    flex: 0 0 auto;
    margin-bottom: 24px;
  }

  .services.is-horizontal .section-head h2 {
    max-width: 420px;
    font-size: 34px;
  }

  .services.is-horizontal .service-list {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: none;
    margin: 0;
    background: transparent;
    transform: translate3d(var(--services-x, 0px), 0, 0);
    transition: transform 80ms linear;
    will-change: transform;
  }

  .services.is-horizontal .service-row,
  .services.is-horizontal .service-row:nth-child(even) {
    display: grid;
    flex: 0 0 calc(100vw - 40px);
    grid-template-columns: 1fr;
    grid-template-rows: 190px minmax(0, 1fr);
    max-width: 430px;
    min-height: min(58svh, 520px);
    overflow: hidden;
    background: rgba(12, 13, 13, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .services.is-horizontal .service-row:nth-child(even) .service-image {
    order: 0;
  }

  .services.is-horizontal .service-image {
    min-height: 190px;
  }

  .services.is-horizontal .service-text {
    align-content: start;
    padding: 24px 20px 28px;
  }

  .services.is-horizontal .service-text h3 {
    font-size: 28px;
  }

  .services.is-horizontal .service-text p {
    font-size: 15px;
    line-height: 1.52;
  }

  .services.is-horizontal .service-text p + p {
    margin-top: -6px;
  }

  .process::before {
    inset: 180px 0 0;
    background-position: center, center, 68% center;
    opacity: 0.52;
  }

  .process::after {
    background:
      linear-gradient(180deg, #080909 0%, #080909 22%, rgba(8, 9, 9, 0.9) 36%, rgba(8, 9, 9, 0.18) 62%, #080909 100%),
      radial-gradient(circle at 70% 42%, rgba(240, 181, 107, 0.12), transparent 18rem);
  }

  .testimonials {
    background-position: center, center, 62% center;
  }

  blockquote {
    padding: 14px 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .contact {
    gap: 34px;
  }

  .contact-bg {
    background-position: center, center, 48% center;
  }

  .contact-form {
    padding: 22px;
    backdrop-filter: blur(12px);
  }

  .footer-main {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 34px 18px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-services {
    display: none;
  }

  .footer-contact {
    margin-top: 0;
    word-break: break-word;
  }

  .footer-socials {
    display: grid;
    gap: 8px;
    margin-top: 6px;
  }

  .footer-nav,
  .footer-contact {
    gap: 9px;
    font-size: 15px;
    line-height: 1.35;
  }

  .footer-nav a,
  .footer-contact a {
    font-size: 15px;
  }

  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .preloader-mark {
    width: min(230px, 62vw);
  }

  h1 {
    font-size: 46px;
  }

  .hero {
    min-height: 610px;
    padding-top: 104px;
  }

  .hero-specs {
    gap: 8px 12px;
    margin-top: 22px;
  }

  .hero-specs a {
    min-height: 58px;
  }

  .hero-specs strong {
    font-size: 14px;
  }

  .hero-media {
    background-size: auto 100%;
    background-position: 70% bottom;
  }

  .hero-lead {
    font-size: 22px;
  }

  .intro-copy h2,
  .section-head h2,
  .testimonial-lead h2,
  .contact-content h2 {
    font-size: 36px;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .portfolio-gallery {
    height: 285px;
  }

  .mosaic-building,
  .mosaic-right-tall,
  .mosaic-forged {
    min-height: 300px;
  }

  .contact-content h2 {
    font-size: 40px;
  }

  .intro-caption {
    bottom: 0;
  }

  .footer-nav,
  .footer-contact,
  .footer-nav a,
  .footer-contact a {
    font-size: 14px;
  }

  .timeline-step {
    padding-left: 20px;
    padding-bottom: 20px;
  }

  .timeline-step h3 {
    font-size: 19px;
  }

  .timeline-step p {
    font-size: 13px;
  }

  blockquote {
    padding: 12px 0;
    font-size: 13px;
  }

}
