:root {
  --gold: #cfa45a;
  --gold-dark: #9d7433;
  --black: #111111;
  --charcoal: #242424;
  --ink: #1d1d1d;
  --muted: #626262;
  --line: #ded8cf;
  --paper: #f7f4ef;
  --white: #ffffff;
  --green: #23483a;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.12);
  --shadow-lift: 0 26px 60px rgba(17, 17, 17, 0.18);
  --content-width: 1180px;
  --page-gutter: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px max(18px, calc((100% - var(--content-width)) / 2));
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(14px);
  animation: headerDrop 520ms ease both;
  transition: padding 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgba(247, 244, 239, 0.98);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand:hover img {
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
  transform: rotate(-2deg) scale(1.03);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translateY(-1px);
}

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

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

.site-nav a.active {
  color: var(--black);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--black);
  border-radius: 8px;
  background: var(--black);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, calc(100svh - 83px));
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin: 22px auto 0;
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.74) 42%, rgba(17, 17, 17, 0.28) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.1) 0%, rgba(17, 17, 17, 0.62) 100%);
  animation: heroShade 900ms ease both;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translate3d(0, var(--hero-shift, 0px), 0);
  transition: transform 80ms linear;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.035);
  animation: heroDrift 14s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-width: 0;
  width: min(760px, calc(100% - 48px));
  margin-left: clamp(24px, 6vw, 72px);
  padding: clamp(54px, 8vw, 96px) 0;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn 720ms ease forwards;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 120ms;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 240ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 360ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 480ms;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: "Segoe UI", Aptos, Arial, sans-serif;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 4.2vw, 3.85rem);
  line-height: 1.04;
  font-weight: 900;
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  font-weight: 900;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

p {
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--muted);
}

.hero p {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.86);
}

.hero-copy p:not(.eyebrow) {
  margin: 12px 0 0;
}

.button-row,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.16);
  transform: translateY(-3px);
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(130%);
}

.button.primary {
  background: var(--gold);
  color: var(--black);
}

.button.secondary {
  border-color: var(--black);
  background: transparent;
  color: var(--black);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.hero .button.secondary:hover,
.hero .button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--white);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background: var(--black);
  box-shadow: var(--shadow);
}

.stats-strip div {
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  transition: background 220ms ease, transform 220ms ease;
}

.stats-strip div:hover {
  background: #fffaf0;
  transform: translateY(-4px);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.stats-strip span {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 112px) 0 0;
}

.page-hero {
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 42px) 0 clamp(16px, 2.5vw, 28px);
}

.page-hero + .section {
  padding-top: clamp(22px, 3.5vw, 38px);
}

.page-hero h1 {
  max-width: 18ch;
  color: var(--black);
}

.page-hero p:last-child {
  max-width: 68ch;
}

.split,
.feature-band,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.text-stack p:first-child {
  margin-top: 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.info-card,
.values-panel,
.contact-form,
.contact-info > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.info-card {
  min-height: 220px;
  padding: 24px;
}

.info-card:hover,
.values-panel:hover,
.contact-info > div:hover,
.contact-form:hover {
  border-color: rgba(207, 164, 90, 0.58);
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
}

.info-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--gold-dark);
  font-weight: 900;
}

.info-card p {
  margin-bottom: 0;
}

.feature-band {
  align-items: stretch;
}

.feature-image {
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.feature-image:hover img,
.gallery-grid figure:hover img,
.project-preview img:hover {
  transform: scale(1.045);
}

.feature-copy {
  display: grid;
  align-content: center;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--charcoal);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

.project-preview {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}

.project-preview img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.project-preview img:hover {
  box-shadow: var(--shadow-lift);
  filter: saturate(1.08) contrast(1.02);
}

.section-action {
  margin-top: 24px;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(var(--content-width), calc(100% - var(--page-gutter)));
  margin-top: clamp(68px, 9vw, 112px);
  padding: clamp(32px, 5vw, 54px);
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
}

.cta h2 {
  max-width: 18ch;
}

.values-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.values-panel {
  padding: clamp(28px, 4vw, 44px);
}

.values-panel.dark {
  background: var(--black);
  color: var(--white);
}

.values-panel.dark p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

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

.service-list article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-list article:hover {
  border-color: rgba(207, 164, 90, 0.58);
  box-shadow: var(--shadow-lift);
  transform: translateX(6px);
}

.service-list span {
  color: var(--gold-dark);
  font-size: 1.6rem;
  font-weight: 900;
}

.service-list h2 {
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.service-list p {
  max-width: 78ch;
}

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

.gallery-grid figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.gallery-grid figure:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-6px);
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 700ms ease;
}

.gallery-grid figcaption {
  padding: 14px 16px 16px;
  color: var(--charcoal);
  font-weight: 800;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--black);
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.video-grid video:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-5px);
}

.reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reference-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--charcoal);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.reference-list span:hover {
  border-color: rgba(207, 164, 90, 0.62);
  background: #fffaf0;
  transform: translateY(-3px);
}

.contact-layout {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 36px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf8;
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(207, 164, 90, 0.16);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.95rem;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-info > div {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.contact-info h2 {
  max-width: none;
  font-size: 1.5rem;
}

.contact-info p,
.contact-info a {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-info a:not(.button) {
  font-weight: 800;
}

.site-footer {
  margin-top: clamp(68px, 9vw, 112px);
  padding: clamp(32px, 5vw, 56px);
  background: var(--black);
  color: var(--white);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 60;
  width: var(--scroll-progress, 0%);
  height: 3px;
  pointer-events: none;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(207, 164, 90, 0.52);
  transition: width 80ms linear;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.reveal.from-left {
  transform: translateX(-28px);
}

.reveal.from-right {
  transform: translateX(28px);
}

.reveal.from-left.is-visible,
.reveal.from-right.is-visible {
  transform: translateX(0);
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroShade {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.035) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-10px, -8px, 0);
  }
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer img {
  width: 94px;
  height: 94px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.site-footer h3 {
  margin-bottom: 14px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 1020px) {
  .split,
  .feature-band,
  .contact-layout,
  .cta,
  .values-layout,
  .video-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.four,
  .card-grid.five,
  .gallery-grid,
  .project-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: min(700px, calc(100svh - 83px));
  }

  .hero-copy {
    margin-left: clamp(24px, 6vw, 56px);
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.7) 58%, rgba(17, 17, 17, 0.24) 100%),
      linear-gradient(180deg, rgba(17, 17, 17, 0.12) 0%, rgba(17, 17, 17, 0.7) 100%);
  }

  .cta-actions {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 22px;
  }

  .site-header {
    align-items: center;
  }

  .brand span {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-header.open .site-nav {
    display: flex;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.9rem, 8vw, 2.65rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .hero-copy {
    width: min(100% - 34px, 640px);
    margin: 0 auto;
    padding: 56px 0 64px;
  }

  .hero {
    min-height: min(680px, calc(100svh - 83px));
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(17, 17, 17, 0.48) 0%, rgba(17, 17, 17, 0.88) 62%, rgba(17, 17, 17, 0.93) 100%);
  }

  .hero-media img {
    object-position: center center;
  }

  .stats-strip,
  .card-grid.four,
  .card-grid.five,
  .gallery-grid,
  .project-preview {
    grid-template-columns: 1fr;
  }

  .service-list article {
    grid-template-columns: 1fr;
  }

  .gallery-grid img,
  .project-preview img {
    height: 260px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
