:root {
  --ink: #171512;
  --charcoal: #23201c;
  --smoke: #4a443d;
  --muted: #756d63;
  --paper: #f7f2ea;
  --warm-white: #fffcf7;
  --sand: #e5dacb;
  --oak: #8b6648;
  --gold: #b79566;
  --line: rgba(35, 32, 28, .14);
  --shadow: 0 28px 80px rgba(23, 21, 18, .12);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Barlow", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  margin: 0;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
}

.container {
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 28px;
  width: 100%;
}

.eyebrow {
  color: var(--oak);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.section {
  padding: 110px 0;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  margin-bottom: 54px;
}

.section-heading h2 {
  font-size: clamp(42px, 6vw, 86px);
  line-height: .95;
}

.btn,
.btn-ghost {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: .14em;
  min-height: 54px;
  padding: 0 28px;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.btn {
  background: var(--ink);
  color: var(--warm-white);
}

.btn:hover,
.btn:focus-visible {
  background: var(--oak);
  border-color: var(--oak);
  color: var(--warm-white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--warm-white);
}

.site-header {
  background: rgba(23, 21, 18, .74);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(23, 21, 18, .93);
}

.nav-wrap {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 92px;
  padding: 0 42px;
}

.brand {
  color: #fff;
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
}

.brand span {
  color: #d8c7b4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 34px;
}

.nav-links a {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  position: relative;
}

.nav-links a::after {
  background: var(--gold);
  bottom: -10px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  width: 100%;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  min-height: 48px;
}

.menu-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  display: none;
  font-size: 24px;
  height: 48px;
  width: 48px;
}

.hero {
  background: var(--ink);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero::after {
  background: linear-gradient(90deg, rgba(23,21,18,.86) 0%, rgba(23,21,18,.52) 45%, rgba(23,21,18,.18) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-media {
  height: 100%;
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 115%;
  object-fit: cover;
  transform: translateY(var(--parallax, 0));
  width: 100%;
}

.hero-content {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(230px, 330px);
  gap: 60px;
  min-height: 100vh;
  padding: 190px 8vw 84px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #fff;
  font-size: clamp(56px, 8.2vw, 124px);
  line-height: .86;
  max-width: 900px;
}

.hero p {
  color: #e9ded2;
  font-size: 20px;
  margin: 28px 0 38px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .btn-ghost {
  border-color: rgba(255,255,255,.62);
  color: #fff;
}

.hero-panel {
  border-left: 1px solid rgba(255,255,255,.28);
  color: #fff;
  padding-left: 30px;
}

.hero-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 500;
}

.hero-panel span {
  color: #d8c7b4;
  display: block;
  line-height: 1.5;
}

.scroll-indicator {
  bottom: 28px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  left: 42px;
  letter-spacing: .18em;
  position: absolute;
  text-transform: uppercase;
  z-index: 3;
}

.trust-strip {
  background: var(--charcoal);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  border-right: 1px solid rgba(255,255,255,.12);
  padding: 42px 32px;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 500;
}

.stat span {
  color: #d8c7b4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.1fr .9fr;
}

.project-card {
  background: var(--warm-white);
  box-shadow: var(--shadow);
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.project-card.small {
  min-height: 247px;
}

.project-card img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  transition: transform .65s ease, filter .65s ease;
  width: 100%;
}

.project-card::after {
  background: linear-gradient(180deg, transparent 24%, rgba(0,0,0,.68) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.project-card:hover img {
  filter: saturate(.92);
  transform: scale(1.045);
}

.project-info {
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 36px;
  position: absolute;
  right: 0;
  z-index: 2;
}

.project-info h3 {
  color: #fff;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1;
}

.project-info p,
.project-info span {
  color: #eadfd2;
}

.stack {
  display: grid;
  gap: 26px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--smoke);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  min-height: 42px;
  padding: 0 18px;
  text-transform: uppercase;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--warm-white);
}

.service-grid,
.why-grid,
.process-grid,
.testimonial-grid,
.values-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}

.service-card,
.why-card,
.process-card,
.testimonial,
.value-card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  padding: 34px;
}

.service-icon {
  align-items: center;
  background: var(--sand);
  color: var(--oak);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 28px;
  height: 58px;
  justify-content: center;
  margin-bottom: 26px;
  width: 58px;
}

.service-card h3,
.why-card h3,
.process-card h3,
.testimonial h3,
.value-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  margin-bottom: 14px;
}

.learn-link {
  border-bottom: 1px solid var(--oak);
  color: var(--oak);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-top: 22px;
  padding-bottom: 6px;
  text-transform: uppercase;
}

.split-band {
  background: var(--charcoal);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-band img {
  height: 100%;
  min-height: 680px;
  object-fit: cover;
  width: 100%;
}

.split-copy {
  align-self: center;
  padding: 8vw;
}

.split-copy h2 {
  color: #fff;
  font-size: clamp(44px, 6vw, 88px);
  line-height: .95;
}

.split-copy p {
  color: #dfd2c2;
  margin-top: 24px;
}

.process-card span {
  color: var(--oak);
  display: block;
  font-family: var(--font-display);
  font-size: 44px;
  margin-bottom: 24px;
}

.testimonials {
  background: var(--warm-white);
}

.testimonial-slider {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform .45s ease;
}

.testimonial {
  flex: 0 0 100%;
  min-height: 300px;
}

.rating {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: .12em;
  margin-bottom: 18px;
}

.slider-controls {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.slider-controls button,
.lightbox-close {
  background: var(--ink);
  border: 0;
  color: #fff;
  cursor: pointer;
  height: 46px;
  width: 46px;
}

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 96px 0;
}

.cta-inner {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .94;
}

.cta-band p {
  color: #dfd2c2;
  margin-top: 18px;
  max-width: 660px;
}

.site-footer {
  background: #100f0d;
  color: #fff;
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr .8fr .8fr;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: #d8c7b4;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  color: #b8a895;
  margin-top: 38px;
  padding-top: 24px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  align-items: center;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  letter-spacing: .08em;
  min-width: 42px;
  text-transform: uppercase;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.page-hero {
  background: var(--ink);
  color: #fff;
  min-height: 70vh;
  padding: 190px 8vw 80px;
  position: relative;
}

.page-hero::after {
  background: linear-gradient(90deg, rgba(23,21,18,.88), rgba(23,21,18,.42));
  content: "";
  inset: 0;
  position: absolute;
}

.page-hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.page-hero .content {
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(54px, 8vw, 116px);
  line-height: .88;
}

.page-hero p {
  color: #e8dacb;
  font-size: 20px;
  margin-top: 24px;
}

.masonry {
  columns: 3 280px;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  cursor: zoom-in;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  filter: saturate(.9);
  transition: transform .55s ease, filter .55s ease;
  width: 100%;
}

.gallery-item:hover img {
  filter: saturate(1);
  transform: scale(1.04);
}

.gallery-caption {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.66));
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 46px 24px 20px;
  position: absolute;
  right: 0;
}

.lightbox {
  align-items: center;
  background: rgba(10,9,8,.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 32px;
  position: fixed;
  z-index: 200;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-height: 86vh;
  max-width: min(1100px, 92vw);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  right: 24px;
  top: 24px;
}

.story-grid {
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  background: var(--warm-white);
  border-left: 3px solid var(--gold);
  padding: 30px;
}

.contact-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.contact-card,
.form-card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  padding: 38px;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.contact-list a,
.contact-list span {
  color: var(--smoke);
  display: block;
  font-weight: 700;
}

.contact-method {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 48px minmax(0, 1fr);
}

.contact-icon {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(183, 149, 102, .35);
  color: var(--warm-white);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  letter-spacing: .06em;
  position: relative;
  width: 48px;
}

.contact-icon-phone::before {
  content: "";
  border: 2px solid currentColor;
  border-left-width: 5px;
  border-radius: 12px;
  height: 20px;
  transform: rotate(-22deg);
  width: 10px;
}

.contact-icon-email {
  font-size: 22px;
  font-family: var(--font-display);
}

.contact-icon-whatsapp {
  background: #1f7a4f;
  border-color: rgba(31, 122, 79, .45);
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.form-card input,
.form-card select,
.form-card textarea {
  background: #fff;
  border: 1px solid #d8ccbd;
  color: var(--ink);
  font: inherit;
  min-height: 56px;
  padding: 14px 16px;
  width: 100%;
}

.form-card input[aria-invalid="true"],
.form-card select[aria-invalid="true"],
.form-card textarea[aria-invalid="true"] {
  border-color: #9f2f25;
}

.form-card button[disabled] {
  cursor: wait;
  opacity: .72;
}

.form-card textarea {
  grid-column: 1 / -1;
  min-height: 150px;
  resize: vertical;
}

.hp-field {
  height: 1px !important;
  left: -9999px !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 1px !important;
}

.form-status {
  font-weight: 700;
  margin-top: 16px;
}

.form-status.success {
  color: #1f7a4f;
}

.form-status.error {
  color: #9f2f25;
}

.form-status.loading {
  color: var(--oak);
}

.map-embed {
  border: 0;
  height: 390px;
  margin-top: 28px;
  width: 100%;
}

.whatsapp-float,
.mobile-sticky-cta {
  align-items: center;
  background: #1f7a4f;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.whatsapp-float {
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,.24);
  min-height: 54px;
  padding: 0 20px;
  position: fixed;
  right: 24px;
  transition: box-shadow .25s ease, transform .25s ease;
  z-index: 120;
}

.whatsapp-float::after {
  animation: whatsappPulse 2.8s ease-out infinite;
  border: 1px solid rgba(31,122,79,.7);
  border-radius: 999px;
  content: "";
  inset: -7px;
  position: absolute;
}

.whatsapp-float:hover {
  box-shadow: 0 20px 54px rgba(31,122,79,.35);
  transform: translateY(-3px);
}

@keyframes whatsappPulse {
  0% {
    opacity: .75;
    transform: scale(.95);
  }
  70% {
    opacity: 0;
    transform: scale(1.25);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

.scroll-top {
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.2);
  bottom: 92px;
  color: #fff;
  cursor: pointer;
  height: 46px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease;
  width: 46px;
  z-index: 119;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-sticky-cta {
  bottom: 0;
  display: none;
  left: 0;
  min-height: 56px;
  position: fixed;
  right: 0;
  z-index: 110;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.is-open {
    background: var(--ink);
    display: grid;
    gap: 0;
    left: 0;
    padding: 110px 28px 34px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: -1;
  }

  .nav-links.is-open a {
    border-bottom: 1px solid rgba(255,255,255,.12);
    font-size: 24px;
    padding: 22px 0;
  }

  .hero-content,
  .section-heading,
  .portfolio-grid,
  .split-band,
  .story-grid,
  .contact-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .why-grid,
  .process-grid,
  .values-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-band img {
    min-height: 440px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding: 0 18px;
  }

  .nav-wrap {
    min-height: 76px;
    padding: 0 18px;
  }

  .brand strong {
    font-size: 24px;
  }

  .hero-content {
    gap: 26px;
    padding: 132px 22px 78px;
  }

  .hero-panel {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.25);
    padding-left: 0;
    padding-top: 22px;
  }

  .section {
    padding: 76px 0;
  }

  .service-grid,
  .why-grid,
  .process-grid,
  .values-grid,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-bottom: 1px solid rgba(255,255,255,.12);
    border-right: 0;
  }

  .project-card,
  .project-card.small {
    min-height: 420px;
  }

  .page-hero {
    min-height: 62vh;
    padding: 130px 22px 64px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    display: none;
  }

  .mobile-sticky-cta {
    display: flex;
  }

  .scroll-top {
    bottom: 72px;
    right: 14px;
  }
}

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