:root {
  --bg-dark: #0d0f12;
  --bg-elevated: #151920;
  --bg-light: #f7f4ef;
  --surface: #ffffff;
  --text-light: #f2f0ec;
  --text-dark: #111318;
  --muted: #8f98a3;
  --accent: #bb9a67;
  --accent-deep: #8d7048;
  --stroke: rgba(255, 255, 255, 0.14);
  --stroke-dark: rgba(17, 19, 24, 0.14);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background: linear-gradient(180deg, #0d0f12 0%, #0f1319 40%, #f7f4ef 40.1%, #f7f4ef 100%);
  color: var(--text-dark);
  line-height: 1.6;
}

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

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

.container {
  width: min(var(--max-width), calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  transition: background-color 240ms ease, backdrop-filter 240ms ease, border-color 240ms ease;
}

.site-header.scrolled {
  background: rgba(12, 15, 19, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-light);
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.brand-text {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: rgba(242, 240, 236, 0.82);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 220ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent) 0%, #c8aa7d 100%);
  color: #121417;
  padding: 0.78rem 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.btn-small {
  padding: 0.62rem 1rem;
  font-size: 0.82rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--stroke);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(187, 154, 103, 0.33), transparent 36%),
    linear-gradient(180deg, rgba(9, 10, 13, 0.35) 0%, rgba(8, 9, 12, 0.85) 72%, rgba(8, 9, 12, 0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  padding-bottom: 4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

h1, h2, h3, h4 {
  margin: 0 0 0.8rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  max-width: 18ch;
}

.hero p {
  max-width: 58ch;
  color: rgba(242, 240, 236, 0.86);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-metrics {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-metrics.static {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-metrics div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-metrics strong {
  font-size: 1.35rem;
  color: var(--accent);
}

.hero-metrics span {
  font-size: 0.82rem;
  color: rgba(242, 240, 236, 0.75);
}

.section {
  padding: 5rem 0;
}

.section-tinted {
  background: linear-gradient(180deg, #f1ece4 0%, #f7f4ef 100%);
}

.section-dark {
  background: linear-gradient(140deg, #0f141b 0%, #171d25 100%);
  color: var(--text-light);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.25) 100%);
}

.service-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-grid.detailed {
  margin-top: 0;
}

.service-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(187, 154, 103, 0.6);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.text-link {
  color: var(--accent-deep);
  font-weight: 700;
  position: relative;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 200ms ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.chip {
  border: 1px solid var(--stroke-dark);
  background: transparent;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.chip.active {
  background: #171b22;
  color: var(--text-light);
  border-color: #171b22;
}

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

.project-card {
  background: #fff;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
}

.project-image-wrap {
  height: 220px;
  overflow: hidden;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-card:hover img {
  transform: scale(1.07);
}

.project-content {
  padding: 1rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.77rem;
  color: #5f6670;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.timeline > div {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
}

.timeline span {
  font-size: 0.73rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.strength-grid article {
  background: #fff;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

blockquote {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(17, 19, 24, 0.08);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

blockquote p {
  margin-top: 0;
}

blockquote cite {
  color: #545b66;
  font-style: normal;
  font-size: 0.86rem;
}

.industry-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.industry-row span {
  background: #fff;
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.cta-banner {
  text-align: center;
}

.sub-hero {
  padding: 8.5rem 0 3.5rem;
  background: linear-gradient(130deg, #0f1319 0%, #1a2028 100%);
  color: var(--text-light);
}

.sub-hero p {
  max-width: 60ch;
  color: rgba(242, 240, 236, 0.82);
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.before-after {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.before-after .layer {
  position: absolute;
  inset: 0;
}

.before-after .layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after .after {
  clip-path: inset(0 50% 0 0);
}

.before-after input[type="range"] {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
}

.before-after .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(12, 15, 19, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.masonry {
  columns: 3 280px;
  column-gap: 0.9rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.9rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(17, 19, 24, 0.1);
  cursor: pointer;
  position: relative;
}

.masonry-item img {
  width: 100%;
}

.masonry-item::after {
  content: attr(data-title);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem;
  color: #fff;
  font-size: 0.8rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.9);
  display: none;
  place-items: center;
  padding: 2rem;
  z-index: 2000;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-height: 88vh;
  width: auto;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.service-diagram {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.service-diagram button {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
}

.service-diagram button.active {
  background: var(--accent);
  color: #151920;
  border-color: transparent;
}

.diagram-output {
  margin-top: 0.9rem;
  color: rgba(242, 240, 236, 0.85);
  max-width: 65ch;
}

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

.lead-form {
  display: grid;
  gap: 0.8rem;
}

.lead-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  border: 1px solid rgba(17, 19, 24, 0.16);
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
  background: #fff;
}

.contact-card {
  background: linear-gradient(160deg, #11161d 0%, #181e27 100%);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1px solid var(--stroke);
}

.contact-lines {
  margin: 1rem 0;
  display: grid;
  gap: 0.3rem;
}

.site-footer {
  padding: 3rem 0;
  background: #0f141a;
  color: #e8e4de;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1rem;
}

.footer-grid h4,
.footer-grid h3 {
  margin-bottom: 0.6rem;
}

.footer-grid a {
  display: block;
  margin-bottom: 0.3rem;
  color: #c9c4bc;
}

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

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

@media (max-width: 1080px) {
  .site-nav {
    position: fixed;
    top: 4.2rem;
    right: 1rem;
    background: rgba(14, 17, 22, 0.94);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 0.7rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .site-header > .btn-small {
    display: none;
  }

  .split,
  .case-study {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .project-grid,
  .testimonial-grid,
  .strength-grid,
  .timeline,
  .footer-grid,
  .hero-metrics,
  .hero-metrics.static {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  body {
    background: linear-gradient(180deg, #0d0f12 0%, #0f1319 26%, #f7f4ef 26.1%, #f7f4ef 100%);
  }

  .hero {
    min-height: 92vh;
  }

  .service-grid,
  .project-grid,
  .testimonial-grid,
  .strength-grid,
  .timeline,
  .hero-metrics,
  .hero-metrics.static {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.4rem 0;
  }
}