:root {
  --porcelain: #f8f5f1;
  --ink: #1a1a1a;
  --gold: #c9a46a;
  --stone: #e9e1d6;
  --smoke: #706a61;
  --night: #0e0d0b;
  --sage: #7b8671;
  --clay: #9e7c62;
  --display: "Playfair Display", Georgia, serif;
  --luxury: "Cormorant Garamond", Garamond, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.popup-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 2px;
  background: var(--gold);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding-inline: max(20px, calc((100vw - 1440px) / 2 + 20px));
  color: var(--ink);
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.site-header.is-top {
  color: var(--porcelain);
}

.site-header.is-scrolled {
  background: rgba(248, 245, 241, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 24px rgba(26, 26, 26, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: baseline;
}

.brand span,
.footer-brand {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.22em;
}

.brand small {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.desktop-nav a {
  opacity: 0.72;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-top .header-cta {
  border-color: rgba(255, 255, 255, 0.32);
}

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

.btn-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: var(--porcelain);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--porcelain);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 30px;
  background: var(--night);
  color: var(--porcelain);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: 0.3s ease;
}

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

.mobile-menu a {
  font-family: var(--display);
  font-size: clamp(36px, 9vw, 72px);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--porcelain);
  padding-inline: 18px;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--night);
  color: var(--porcelain);
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  opacity: 0.88;
  transform: scale(1.05);
}

.hero-shade {
  background:
    radial-gradient(circle at 70% 20%, rgba(201, 164, 106, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(14, 13, 11, 0.12), rgba(14, 13, 11, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 150px 84px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 980px;
  margin-top: 22px;
  font-size: clamp(54px, 8vw, 118px);
  line-height: 0.96;
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1080px;
  margin-top: 34px;
}

.hero-row p,
.section p,
.page-hero p {
  color: rgba(26, 26, 26, 0.68);
  line-height: 1.8;
}

.hero-row p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding-block: clamp(84px, 10vw, 140px);
}

.section-head,
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: end;
}

.section h2,
.page-hero h1,
.narrow h2 {
  max-width: 900px;
  margin-top: 16px;
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1.03;
}

.max-title {
  max-width: 960px;
}

.text-link {
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.horizontal-gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 56px max(20px, calc((100vw - 1440px) / 2 + 20px)) 20px;
  scrollbar-width: none;
}

.horizontal-gallery::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  min-width: min(560px, 82vw);
  height: 520px;
  overflow: hidden;
  background: var(--ink);
}

.project-card img,
.masonry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover img,
.masonry-card:hover img {
  transform: scale(1.05);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 65%);
}

.project-card div {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 30px;
  color: white;
}

.project-card p {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.project-card h3 {
  font-size: 34px;
}

.project-card span {
  display: block;
  max-width: 430px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

.stats-band,
.transformation,
.quiz-section {
  background: rgba(233, 225, 214, 0.55);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(26, 26, 26, 0.1);
}

.stats-grid div {
  min-height: 170px;
  padding: 28px;
  background: var(--porcelain);
  border-right: 1px solid rgba(26, 26, 26, 0.1);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 500;
}

.stats-grid span {
  display: block;
  margin-top: 12px;
  color: var(--smoke);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dark-section {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--porcelain);
}

.dark-section p {
  color: rgba(255, 255, 255, 0.68);
}

.founder-grid {
  align-items: center;
}

.founder-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

blockquote {
  margin-top: 28px;
  font-family: var(--luxury);
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.92;
}

.timeline-mini {
  display: grid;
  gap: 16px;
  margin-top: 34px;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  border-left: 1px solid var(--gold);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: rgba(26, 26, 26, 0.1);
}

.service-card {
  min-height: 320px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.48);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.service-card:hover {
  background: var(--ink);
  color: var(--porcelain);
  transform: translateY(-4px);
}

.service-card span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.28em;
}

.service-card h2,
.service-card h3 {
  margin-top: 24px;
  font-size: 32px;
  line-height: 1.05;
}

.service-card p {
  margin-top: 42px;
  font-size: 14px;
}

.before-after {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: 52%;
  overflow: hidden;
}

.before-after input {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  width: calc(100% - 48px);
  accent-color: var(--gold);
}

.process-list {
  position: relative;
  display: grid;
  gap: 34px;
}

.process-list.wide {
  max-width: 900px;
}

.process-step {
  position: relative;
  padding-left: 58px;
}

.process-step span {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 12px;
}

.process-step h2,
.process-step h3 {
  font-size: 36px;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 52px;
  background: rgba(255, 255, 255, 0.14);
}

.materials-grid article {
  display: flex;
  min-height: 340px;
  align-items: end;
  padding: 24px;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent),
    radial-gradient(circle at 40% 30%, rgba(201, 164, 106, 0.3), transparent 40%),
    var(--night);
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.materials-grid article:hover {
  transform: translateY(-6px);
  background-color: #17130e;
}

.materials-grid h3 {
  font-size: 34px;
}

.quiz-card,
.blog-card,
.masonry-card,
.popup-card {
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.quiz-card {
  display: grid;
  gap: 18px;
  padding: 30px;
}

.quiz-card label {
  display: grid;
  gap: 8px;
  color: var(--smoke);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quiz-card select,
.lead-form input,
.lead-form select,
.lead-form textarea,
.inline-form input {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 0;
  background: transparent;
  color: inherit;
  outline: none;
}

.dark-section .lead-form input,
.dark-section .lead-form select,
.dark-section .lead-form textarea {
  border-bottom-color: rgba(255, 255, 255, 0.24);
  color: white;
}

.dark-section .lead-form select option {
  color: var(--ink);
}

.quiz-result {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--gold);
}

.consultation .split {
  align-items: start;
}

.contact-note {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 1px solid var(--gold);
}

.lead-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.lead-form textarea {
  min-height: 128px;
  resize: vertical;
  padding-top: 16px;
}

.page-hero {
  position: relative;
  display: flex;
  min-height: 72vh;
  align-items: end;
  padding-block: 160px 80px;
  background:
    linear-gradient(0deg, rgba(14, 13, 11, 0.94), rgba(14, 13, 11, 0.3)),
    var(--hero-image, url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=84"));
  background-position: center;
  background-size: cover;
  color: var(--porcelain);
}

.page-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.74);
}

.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 22px;
}

.filters button {
  min-height: 42px;
  white-space: nowrap;
  border: 1px solid rgba(26, 26, 26, 0.16);
  border-radius: 999px;
  background: transparent;
  padding: 0 18px;
  color: var(--smoke);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.filters button.active {
  background: var(--ink);
  color: var(--porcelain);
}

.masonry {
  column-count: 3;
  column-gap: 22px;
}

.masonry-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.masonry-card.is-hidden {
  display: none;
}

.masonry-card img {
  aspect-ratio: 4 / 3;
}

.masonry-card div,
.blog-card {
  padding: 24px;
}

.masonry-card h2,
.blog-card h2 {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.08;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.blog-card {
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.article .lead {
  color: var(--ink);
  font-family: var(--luxury);
  font-size: 34px;
  line-height: 1.3;
}

.narrow {
  max-width: 860px;
}

.footer {
  background: var(--night);
  color: var(--porcelain);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 60px;
  padding-block: 72px;
}

.footer p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.8;
}

.footer h2 {
  margin-bottom: 20px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.footer a {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.whatsapp-float,
.bottom-cta {
  position: fixed;
  z-index: 80;
  box-shadow: 0 18px 55px rgba(26, 26, 26, 0.2);
}

.whatsapp-float {
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #1f7a4d;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.bottom-cta {
  display: none;
}

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease;
}

.exit-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  position: relative;
  width: min(540px, 100%);
  padding: 34px;
  background: var(--porcelain);
}

.popup-card h2 {
  margin-top: 12px;
  font-size: 42px;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 38px;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 999px;
  background: transparent;
  padding-inline: 14px;
}

.inline-form {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.inline-form button {
  min-width: 130px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--porcelain);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .section-head,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

  .service-grid,
  .materials-grid,
  .stats-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .masonry {
    column-count: 2;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1440px);
  }

  .brand small {
    display: none;
  }

  .hero-row,
  .footer-bottom,
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .section {
    padding-block: 72px;
  }

  .service-grid,
  .materials-grid,
  .stats-grid,
  .blog-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    column-count: 1;
  }

  .project-card {
    height: 460px;
  }

  .bottom-cta {
    left: 50%;
    bottom: 18px;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--ink);
    color: var(--porcelain);
    padding-inline: 22px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .whatsapp-float {
    bottom: 82px;
  }
}

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

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