/* ============================================================
   HOME SPACE DESIGN — Premium Interior Design Studio
   Core stylesheet  |  Fonts: Playfair Display + Inter
   Palette: #F8F6F2 / #1C1C1C / #6F6256 / #B59A78 / #FFFFFF
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #F8F6F2;
  --ink: #1C1C1C;
  --taupe: #6F6256;
  --gold: #B59A78;
  --white: #FFFFFF;
  --ink-soft: rgba(28, 28, 28, 0.72);
  --ink-mute: rgba(28, 28, 28, 0.55);
  --line: rgba(28, 28, 28, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-section: clamp(4.5rem, 9vw, 8.5rem);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif { font-family: var(--serif); color: var(--ink); font-weight: 500; }

p { color: var(--ink-soft); }

a { text-decoration: none; color: inherit; transition: color 0.35s ease; }

img { max-width: 100%; }

::selection { background: var(--gold); color: #fff; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(111, 98, 86, 0.45); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

section { scroll-margin-top: 84px; }

/* Subtle film-grain texture over the whole experience */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1500;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 2.75rem; height: 1px; background: var(--gold); }
.eyebrow-centered { justify-content: center; }
.eyebrow-centered::after { content: ""; width: 2.75rem; height: 1px; background: var(--gold); }

.section-title {
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.section-title em, .gold-i { font-style: italic; color: var(--gold); font-weight: 400; }

.lead-text { font-size: 1.02rem; color: var(--ink-soft); }

.text-light-soft { color: rgba(255, 255, 255, 0.72) !important; }
.text-gold { color: var(--gold) !important; }
.bg-ink { background-color: var(--ink); }

/* ---------- Sections & headers ---------- */
.section { padding-block: var(--pad-section); }
.section-tight { padding-block: clamp(3.5rem, 6vw, 5.5rem); }

.section-head { max-width: 720px; margin-bottom: clamp(2.8rem, 5vw, 4.2rem); }
.section-head-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.8rem, 5vw, 4.2rem);
}
.section-head-split .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn-lux {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.05rem 2.4rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.45s var(--ease);
}
.btn-lux i { font-size: 0.8rem; transition: transform 0.45s var(--ease); }
.btn-lux:hover i { transform: translateX(5px); }

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a2865f; color: #fff; }

.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

.btn-solid-dark { background: var(--ink); color: #fff; }
.btn-solid-dark:hover { background: var(--gold); color: #fff; }

/* Underlined text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.text-link { position: relative; }
.text-link i { color: var(--gold); transition: transform 0.45s var(--ease); }
.text-link:hover { color: var(--gold); }
.text-link:hover::after { transform: scaleX(1); }
.text-link:hover i { transform: translateX(5px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-word {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1.3rem 0 0 0.5rem;
}
.preloader-bar { width: 170px; height: 1px; background: var(--line); margin: 1.3rem auto 0; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0; background: var(--gold); animation: loadbar 1.5s var(--ease) forwards; }
@keyframes loadbar { to { width: 100%; } }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  color: #fff;
  padding: 1.5rem 0;
  transition: all 0.5s var(--ease);
}
.site-nav .container { position: relative; }

.brand { display: inline-flex; align-items: center; gap: 0.85rem; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-logo-image { display: block; height: auto; object-fit: contain; background: transparent; }
.nav-brand-logo { width: 142px; }
.footer-brand-logo { width: 220px; }
.preloader-logo { width: min(210px, 70vw); margin: 0 auto 1.2rem; }
.brand-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.1; color: #fff; transition: color 0.4s ease; }
.brand-sub { display: block; font-family: var(--sans); font-size: 0.55rem; font-weight: 500; letter-spacing: 0.55em; text-transform: uppercase; color: var(--gold); margin-top: 0.2rem; }

.site-nav .nav-link {
  position: relative;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.55rem 0;
  margin: 0 1.05rem;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.site-nav .nav-link:hover { color: #fff; }
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--gold); }

/* Solid state on scroll */
.site-nav.is-scrolled {
  padding: 0.8rem 0;
  color: var(--ink);
  background: rgba(248, 246, 242, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px -30px rgba(28, 28, 28, 0.35);
}
.site-nav.is-scrolled .brand-name { color: var(--ink); }
.site-nav.is-scrolled .nav-link { color: rgba(28, 28, 28, 0.78); }
.site-nav.is-scrolled .nav-link:hover,
.site-nav.is-scrolled .nav-link.active { color: var(--ink); }

/* Hamburger */
.lux-toggler { border: none; padding: 0.45rem 0.15rem; box-shadow: none !important; color: inherit; }
.tbar { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform 0.4s var(--ease), opacity 0.3s; }
.lux-toggler[aria-expanded="true"] .tbar:first-child { transform: translateY(3.75px) rotate(45deg); }
.lux-toggler[aria-expanded="true"] .tbar:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #171412;
    padding: 1.9rem 2.1rem 2.4rem;
    box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.5);
  }
  .site-nav .nav-link { color: rgba(255, 255, 255, 0.85) !important; margin: 0.35rem 0; }
  .site-nav .nav-link.active { color: var(--gold) !important; }
  .navbar-nav .nav-cta { margin-top: 1.3rem; display: flex; }
  .nav-cta .btn-lux { width: 100%; }
}
@media (min-width: 992px) {
  .navbar-nav .nav-cta { display: inline-flex; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: 0;
  right: 0;
  z-index: 0;
  will-change: transform;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 2.6s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.62) 0%, rgba(12, 11, 10, 0.3) 45%, rgba(12, 11, 10, 0.68) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 3rem; }

.hero-title {
  font-size: clamp(2.9rem, 7vw, 5.7rem);
  line-height: 1.05;
  color: #fff;
  margin: 1.4rem 0 1.8rem;
  font-weight: 500;
}
.line-mask { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.line-inner { display: block; transform: translateY(115%); }
body.is-ready .line-inner { animation: lineUp 1.15s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes lineUp { to { transform: translateY(0); } }

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
body.is-ready .fade-up { opacity: 1; transform: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-sub { max-width: 560px; font-size: 1.05rem; color: rgba(255, 255, 255, 0.82); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Editorial marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.45rem 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
}
.marquee-item::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-inline: 2.6rem;
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Image frames ---------- */
.img-frame { position: relative; padding: 0 1.5rem 1.5rem 0; }
.img-frame::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 0;
  bottom: 0;
  border: 1px solid var(--gold);
  z-index: 0;
  pointer-events: none;
}
.img-frame-inner { position: relative; z-index: 1; overflow: hidden; }
.img-zoom { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.img-frame:hover .img-zoom { transform: scale(1.05); }

/* ---------- Stats ---------- */
.stat-block { text-align: left; padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.stat-num { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; color: var(--ink); }
.stat-suffix { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--gold); margin-left: 0.15rem; }
.stat-label { display: block; font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--taupe); margin-top: 0.7rem; }

/* ---------- Service cards ---------- */
.service-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.service-card:hover {
  transform: translateY(-9px);
  border-color: rgba(181, 154, 120, 0.55);
  box-shadow: 0 34px 60px -34px rgba(28, 28, 28, 0.35);
}
.service-card-img { height: 235px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service-card:hover .service-card-img img { transform: scale(1.07); }
.service-card-body { padding: 1.9rem 1.8rem 2.1rem; }
.service-num { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--gold); letter-spacing: 0.1em; }
.service-card h3 { font-size: 1.28rem; margin: 0.5rem 0 0.6rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 1.3rem; }

/* ---------- Project cards ---------- */
.project-item { margin-bottom: 0; }
.project-card { position: relative; display: block; overflow: hidden; background: #171412; }
.project-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 1.3s var(--ease), opacity 0.6s ease;
}
/* Masonry-like rhythm across the grid */
.project-item:nth-child(3n+1) .project-card img { height: 460px; }
.project-item:nth-child(3n+2) .project-card img { height: 380px; }
.project-item:nth-child(3n) .project-card img { height: 420px; }

.project-card:hover img { transform: scale(1.07); }
.project-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 13, 12, 0) 42%, rgba(15, 13, 12, 0.88) 100%);
  z-index: 1;
}
.project-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.7rem 1.9rem; z-index: 2; color: #fff; }
.project-info h3 { color: #fff; font-size: 1.35rem; margin: 0.25rem 0 0.15rem; }
.project-info .loc { font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); display: flex; align-items: center; gap: 0.45rem; }
.project-cat {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.project-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 17, 15, 0.55);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.project-overlay .view-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  padding: 1rem 1.9rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transform: translateY(12px);
  transition: transform 0.5s var(--ease);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .view-pill { transform: translateY(0); }

/* ---------- Philosophy / parallax quote ---------- */
.philosophy {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}
.philosophy::before { content: ""; position: absolute; inset: 0; background: rgba(16, 14, 12, 0.72); }
.philosophy .container { position: relative; z-index: 2; }
.philosophy blockquote {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.35;
  color: #fff;
  margin: 0 auto 1.8rem;
  max-width: 900px;
}
.philosophy blockquote em { color: var(--gold); font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.cta-band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(181, 154, 120, 0.22), transparent 65%);
  pointer-events: none;
}
.cta-band .section-title { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.7); }

/* ---------- Inner-page hero ---------- */
.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 11rem 0 4.6rem;
  overflow: hidden;
  color: #fff;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.55) 0%, rgba(12, 11, 10, 0.35) 55%, rgba(12, 11, 10, 0.75) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .hero-title { margin-bottom: 1.2rem; }
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.crumb a { color: var(--gold); }
.crumb a:hover { color: #fff; }

/* ---------- About page ---------- */
.value-card {
  position: relative;
  height: 100%;
  padding: clamp(2.2rem, 4vw, 3.2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.value-card:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -34px rgba(28, 28, 28, 0.3); }
.value-card.value-dark { background: var(--ink); border-color: var(--ink); }
.value-card.value-dark h3, .value-card.value-dark p { color: #fff; }
.value-card.value-dark p { color: rgba(255, 255, 255, 0.7); }
.value-icon {
  width: 54px;
  height: 54px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1.6rem;
}
.value-card h3 { font-size: 1.45rem; margin-bottom: 1rem; }
.value-card p { font-style: italic; font-family: var(--serif); font-size: 1.06rem; line-height: 1.7; color: var(--ink-soft); }

.feature-item { text-align: left; }
.feature-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(181, 154, 120, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  transition: background 0.45s ease, color 0.45s ease, transform 0.45s var(--ease);
}
.feature-item:hover .feature-icon { background: var(--gold); color: #fff; transform: translateY(-5px); }
.feature-item h3 { font-size: 1.2rem; margin-bottom: 0.6rem; color: #fff; }
.feature-item p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.66); margin: 0; }

/* Design process timeline */
.process-step { position: relative; text-align: center; padding: 0 0.6rem; }
.process-num {
  position: relative;
  z-index: 2;
  width: 66px;
  height: 66px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  transition: background 0.45s ease, color 0.45s ease, transform 0.45s var(--ease);
}
.process-step:hover .process-num { background: var(--gold); color: #fff; transform: translateY(-6px); }
.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 33px;
  left: calc(50% + 46px);
  width: calc(100% - 60px);
  height: 1px;
  background: var(--line);
  z-index: 1;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.process-step p { font-size: 0.88rem; margin: 0; }
.process-label { font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--taupe); display: block; margin-bottom: 0.4rem; }

@media (max-width: 991.98px) {
  .process-step { display: flex; text-align: left; gap: 1.3rem; padding: 0; }
  .process-num { margin: 0 0 0; flex: none; }
  .process-step:not(:last-child)::before {
    top: 66px;
    left: 32px;
    width: 1px;
    height: calc(100% - 20px);
  }
  .process-step .process-body { padding-bottom: 2.2rem; }
}

/* ---------- Services page ---------- */
.service-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.2rem, 5.5vw, 4.8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(181, 154, 120, 0.85);
  display: block;
  margin-bottom: 1.4rem;
}
.service-media { position: relative; overflow: hidden; height: 100%; min-height: 480px; }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.service-media:hover img { transform: scale(1.04); }
.service-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 2.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 1.8rem;
}
.service-features li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.94rem; color: var(--ink-soft); }
.service-features li i { color: var(--gold); font-size: 0.78rem; flex: none; }

/* ---------- Projects page: filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--taupe);
  font-family: var(--sans);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.85rem 1.7rem;
  transition: all 0.4s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Project modal ---------- */
.project-modal .modal-content { background: var(--bg); border: none; border-radius: 0; overflow: hidden; }
.project-modal .modal-cover { position: relative; height: 430px; }
.project-modal .modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal-close-x {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(20, 17, 15, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.35s ease;
}
.modal-close-x:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.project-modal .modal-body { padding: clamp(1.8rem, 4vw, 3rem); }
.modal-meta { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--taupe); margin-bottom: 1.2rem; }
.modal-meta i { color: var(--gold); margin-right: 0.5rem; }
.project-modal h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.concept-title { font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin: 1.8rem 0 0.7rem; }

/* ---------- Contact page ---------- */
.contact-info-item { display: flex; gap: 1.3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item .c-icon {
  flex: none;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(181, 154, 120, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.05rem;
}
.contact-info-item h3 { font-family: var(--sans); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--taupe); margin-bottom: 0.4rem; }
.contact-info-item p { margin: 0; color: var(--ink); font-size: 0.98rem; line-height: 1.6; }

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--taupe);
  font-size: 1rem;
  transition: all 0.4s var(--ease);
}
.social-links a:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-4px); }

.contact-form-card { background: #fff; border: 1px solid var(--line); padding: clamp(1.9rem, 4vw, 3.2rem); }
.form-label { font-family: var(--sans); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--taupe); margin-bottom: 0.55rem; }
.form-control, .form-select {
  background-color: #fdfcfa;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.35s ease, background 0.35s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: none;
  background-color: #fff;
  outline: none;
}
.form-control::placeholder { color: rgba(28, 28, 28, 0.35); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #b3564d; }
.invalid-feedback { font-size: 0.78rem; letter-spacing: 0.04em; }

.form-alert {
  display: none;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--gold);
  background: rgba(181, 154, 120, 0.09);
  color: var(--ink);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.6rem;
  font-size: 0.92rem;
}
.form-alert i { color: var(--gold); font-size: 1.1rem; margin-top: 0.1rem; }
.form-alert.show { display: flex; animation: alertIn 0.5s var(--ease); }
.form-alert.alert-error { border-color: #b3564d; background: rgba(179, 86, 77, 0.07); }
.form-alert.alert-error i { color: #b3564d; }
.requirement-section { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.requirement-section .eyebrow { margin-bottom: .45rem; }
.requirement-section h3 { font-family: var(--serif); font-size: 1.55rem; margin-bottom: .45rem; }
.requirement-section p:not(.eyebrow) { color: var(--ink-mute); margin-bottom: 0; }
.requirement-check-group { border: 0; border-top: 1px solid var(--line); padding: 1.35rem 0 0; margin: 0; }
.requirement-check-group legend { float: none; width: auto; font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-bottom: .0rem; }
.requirement-check { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 48px; height: 100%; padding: .72rem .85rem; border: 1px solid var(--line); background: #fdfcfa; color: var(--ink-soft); font-size: .84rem; line-height: 1.4; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.requirement-check:hover { border-color: rgba(181, 154, 120, .75); background: #fff; color: var(--ink); }
.requirement-check input { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; border: 1px solid rgba(28, 28, 28, .3); background: #fff; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.requirement-check input[type="checkbox"] { border-radius: 3px; }
.requirement-check input[type="radio"] { border-radius: 50%; }
.requirement-check input[type="checkbox"]:checked { border-color: var(--gold); background: var(--gold); }
.requirement-check input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.requirement-check input[type="radio"]:checked { border-color: var(--gold); box-shadow: inset 0 0 0 4px #fff; background: var(--gold); }
.requirement-check:has(input:checked) { border-color: var(--gold); background: rgba(181, 154, 120, .1); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(181, 154, 120, .2); }
.requirement-check input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.requirement-check:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
@keyframes alertIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: #161412; color: rgba(255, 255, 255, 0.6); padding-top: 5.5rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand { gap: 0; }
.footer-about { font-size: 0.92rem; max-width: 330px; margin: 1.4rem 0 1.8rem; }
.footer-title { font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.36em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { font-size: 0.92rem; color: rgba(255, 255, 255, 0.6); transition: color 0.3s, padding-left 0.3s; }
.footer-links a:hover { color: var(--gold); padding-left: 6px; }
.footer-contact-item { display: flex; gap: 0.85rem; font-size: 0.92rem; margin-bottom: 1rem; line-height: 1.6; }
.footer-contact-item i { color: var(--gold); margin-top: 0.25rem; font-size: 0.85rem; }
.site-footer .social-links a { border-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.65); }
.site-footer .social-links a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  margin-top: 4rem;
  padding: 1.6rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal { display: flex; gap: 1.6rem; }
@media (max-width: 575.98px) {
  .nav-brand-logo { width: 124px; }
  .footer-brand-logo { width: 190px; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 900;
  width: 52px;
  height: 52px;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.45s var(--ease);
}
.back-to-top.is-active { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.is-visible, .reveal-right.is-visible { transform: none; }

/* ---------- Responsive refinements ---------- */
@media (max-width: 1199.98px) {
  .site-nav .nav-link { margin: 0 0.7rem; }
}

@media (max-width: 767.98px) {
  .hero { min-height: 580px; height: 92vh; }
  .hero-actions .btn-lux { width: 100%; }
  .philosophy { background-attachment: scroll; }
  .project-card img, .project-item:nth-child(3n+1) .project-card img,
  .project-item:nth-child(3n+2) .project-card img, .project-item:nth-child(3n) .project-card img { height: 340px; }
  .service-media { min-height: 340px; }
  .service-features { grid-template-columns: 1fr; }
  .page-hero { min-height: 52vh; padding: 9rem 0 3.4rem; }
  .back-to-top { right: 1.2rem; bottom: 1.2rem; }
  .stat-block { padding-right: 0.6rem; }
}

@media (max-width: 575.98px) {
  /* keep row gutters inside the 12px container padding on phones */
  .row { margin-right: -0.75rem; margin-left: -0.75rem; }
  .row > * { padding-right: 0.75rem; padding-left: 0.75rem; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .section-title { font-size: 1.72rem; }
  .footer-legal { flex-direction: column; gap: 0.4rem; }
  .marquee-item { font-size: 0.85rem; }
  .modal-close-x { top: 0.8rem; right: 0.8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .line-inner { transform: none; }
  .fade-up, .reveal { opacity: 1; transform: none; }
}
