/* ============================================================
   Vivid Design & Engineering — site stylesheet v2
   Direction: cinematic dark hero, gallery-light inner pages,
   couture typography, sharp corners, bronze accent.
   Inspired by ACOR / HBA / Allys.
   ============================================================ */

:root {
  --ink: #131311;
  --ink-2: #1c1b18;
  --ink-soft: #5d5a52;
  --paper: #f4f1ea;
  --paper-tint: #ece8de;
  --bronze: #a8875a;
  --bronze-dark: #8a6d42;
  --line: #ddd7c9;
  --line-dark: rgba(244, 241, 234, 0.14);
  --ivory: #f4f1ea;
  --ivory-soft: rgba(244, 241, 234, 0.6);
  --white: #ffffff;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h1 em, h2 em { font-style: italic; color: var(--bronze); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ivory);
  padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* Small uppercase label — the signature detail */
.eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--bronze-dark); margin-bottom: 1.8em;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; color: var(--ink); transition: color 0.4s; }
.brand-mark { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; letter-spacing: 0.3em; }
.brand-sub { font-size: 0.58rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.4s; }

.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: nowrap; }
.site-nav a {
  text-decoration: none; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); transition: color 0.25s; white-space: nowrap;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: 0.3s; }

/* Transparent header over the dark hero (home) */
.has-dark-hero .site-header:not(.is-scrolled):not(.nav-open) { background: transparent; backdrop-filter: none; }
.has-dark-hero .site-header:not(.is-scrolled):not(.nav-open) .brand { color: var(--ivory); }
.has-dark-hero .site-header:not(.is-scrolled):not(.nav-open) .brand-sub { color: var(--ivory-soft); }
.has-dark-hero .site-header:not(.is-scrolled):not(.nav-open) .site-nav a { color: var(--ivory-soft); }
.has-dark-hero .site-header:not(.is-scrolled):not(.nav-open) .site-nav a:hover,
.has-dark-hero .site-header:not(.is-scrolled):not(.nav-open) .site-nav a.is-active { color: var(--ivory); }
.has-dark-hero .site-header:not(.is-scrolled):not(.nav-open) .nav-toggle span { background: var(--ivory); }
.has-dark-hero .site-header:not(.is-scrolled):not(.nav-open) .btn.nav-cta { border-color: var(--ivory); color: var(--ivory); background: transparent; }
.has-dark-hero .site-header:not(.is-scrolled):not(.nav-open) .btn.nav-cta:hover { background: var(--ivory); color: var(--ink); }

/* ---------- Buttons — sharp, quiet, couture ---------- */

.btn {
  display: inline-block; padding: 15px 34px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--ink); cursor: pointer; transition: 0.3s;
  background: none; color: var(--ink); border-radius: 0;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); color: var(--white); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-light:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn-block { display: block; text-align: center; width: 100%; }
.site-nav .btn.nav-cta { color: var(--paper); padding: 12px 22px; white-space: nowrap; flex-shrink: 0; }

.text-link {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--bronze);
  padding-bottom: 4px; transition: color 0.25s, border-color 0.25s;
}
.text-link:hover { color: var(--bronze-dark); border-bottom-color: var(--ink); }

/* ---------- Cinematic dark hero (home) ---------- */

.hero-dark {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  background: var(--ink); color: var(--ivory); position: relative;
  padding: 140px 0 60px; overflow: hidden;
}
.hero-dark::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(19, 19, 17, 0.55) 0%, rgba(19, 19, 17, 0.35) 45%, rgba(19, 19, 17, 0.88) 100%);
}
.hero-dark .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.55; z-index: 0;
}
.hero-dark > * { position: relative; z-index: 1; }
.hero-dark .hero-video { z-index: 0; }

.project-hero-video { background: var(--ink); }
.project-hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-dark .hero-video { animation: hero-drift 24s ease-out both; }
  @keyframes hero-drift {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
  }
}
.hero-dark .eyebrow { color: var(--bronze); }
.hero-inner { max-width: 980px; }
.hero-dark h1 { font-size: clamp(3rem, 8vw, 6.4rem); margin-bottom: 0.35em; }
.hero-sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 640px; }
.hero-dark .hero-sub { color: var(--ivory-soft); font-size: 1.13rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2.6em; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: auto; padding-top: 40px; border-top: 1px solid var(--line-dark);
}
.hero-dark .hero-stats { margin-top: 90px; }
.hero-stats strong { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; display: block; line-height: 1.2; }
.hero-stats span { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-soft); }

.scroll-hint {
  position: absolute; bottom: 40px; right: 40px;
  font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--ivory-soft);
  writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 56px;
  background: var(--bronze); margin: 14px auto 0;
}

/* ---------- Page heads (inner pages, light) ---------- */

.page-head { padding: 190px 0 40px; }
.page-head h1 { margin-bottom: 0.3em; }
.crumb { text-decoration: none; }
.crumb:hover { color: var(--bronze-dark); }

/* ---------- Sections ---------- */

.section { padding: 90px 0; }
.section-tint { background: var(--paper-tint); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 56px;
}
.section-head h2 { margin: 0; }
.section-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--bronze-dark); display: block; margin-bottom: 14px;
}

/* ---------- Project grid — numbered, gallery style ---------- */

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; counter-reset: proj; }
.project-grid-2 { grid-template-columns: repeat(2, 1fr); }

.project-card { text-decoration: none; display: block; counter-increment: proj; }
.project-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 18px;
  background: var(--ink-2);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.project-card:hover .project-media img { transform: scale(1.05); }

.project-meta::before {
  content: counter(proj, decimal-leading-zero);
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  color: var(--bronze-dark); display: block; margin-bottom: 4px;
}
.project-meta h3 { margin: 0 0 3px; font-size: 1.3rem; transition: color 0.25s; }
.project-card:hover .project-meta h3 { color: var(--bronze-dark); }
.project-meta p {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0;
}

.badge {
  position: absolute; top: 16px; left: 16px; background: var(--paper); color: var(--ink);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 7px 12px;
}

/* Placeholder art — dark, moody tiles until renders arrive */
.ph {
  display: flex; align-items: center; justify-content: center;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(244, 241, 234, 0.05) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(244, 241, 234, 0.05) 32px);
}
.ph--residential { background-color: #292520; }
.ph--housing     { background-color: #242820; }
.ph--commercial  { background-color: #21252b; }
.ph--land        { background-color: #2b2519; }
.ph-initial {
  font-family: var(--serif); font-size: 6rem; font-weight: 400; font-style: italic;
  color: rgba(244, 241, 234, 0.18); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .ph-initial { transform: scale(1.12); }

.project-hero { aspect-ratio: 21 / 9; overflow: hidden; margin-top: 30px; background: var(--ink-2); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero .ph-initial { font-size: 9rem; }

/* ---------- Filter bar — ACOR style, typographic ---------- */

.filter-bar {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  margin-bottom: 64px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.pill {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); padding: 2px 0;
  border-bottom: 1px solid transparent; transition: 0.25s;
}
.pill:hover { color: var(--ink); }
.pill.is-active { color: var(--ink); border-bottom-color: var(--bronze); }
.filter-bar .pill:not(:last-child)::after {
  content: "·"; margin-left: 26px; color: var(--line); font-weight: 400;
}
.empty-note { color: var(--ink-soft); }

/* ---------- Project detail ---------- */

.project-layout { display: grid; grid-template-columns: 340px 1fr; gap: 70px; align-items: start; }
.spec-panel {
  background: var(--white); border: 1px solid var(--line);
  padding: 34px 30px; position: sticky; top: 110px;
}
.spec-title { font-size: 0.68rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 1.6em; }
.spec-list { margin: 0 0 28px; }
.spec-list div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--ink-soft); font-size: 0.85rem; }
.spec-list dd { margin: 0; font-weight: 600; font-size: 0.9rem; text-align: right; }
.project-body p { font-size: 1.08rem; line-height: 1.85; }
.project-body p:first-child::first-letter {
  font-family: var(--serif); font-size: 3.4em; float: left; line-height: 0.85;
  padding: 6px 12px 0 0; color: var(--bronze-dark);
}
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 0.8rem; color: var(--ink-soft); padding-top: 10px; }

/* ---------- Cards & process ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line);
  padding: 36px 32px; transition: 0.35s;
}
.svc-card:hover { border-color: var(--bronze); transform: translateY(-4px); }
.svc-card h3 { font-size: 1.25rem; }
.svc-card p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.process-grid li { border-top: 1px solid var(--ink); padding-top: 24px; }
.process-grid span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--bronze-dark); }
.process-grid h3 { margin: 0.4em 0; }
.process-grid p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Services page ---------- */

.service-list { max-width: 940px; }
.service-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 28px;
  padding: 48px 0; border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 0; }
.service-num { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--bronze); line-height: 1; }
.service-row p { margin: 0; color: var(--ink-soft); }

.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.about-cols p { color: var(--ink-soft); }
.about-cols strong { color: var(--ink); }

/* ---------- CTA band — big statement ---------- */

.cta-band { background: var(--ink); color: var(--ivory); padding: 110px 0; }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: 0.25em; max-width: 640px; }
.cta-inner p { margin: 0; color: var(--ivory-soft); }
.cta-band .btn-light { flex-shrink: 0; }

/* ---------- Forms ---------- */

.form { max-width: 720px; }
.form-row { margin-bottom: 22px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.form label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 9px; padding: 14px 16px;
  font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 0;
  transition: border-color 0.25s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--bronze-dark);
}
.form textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; }

.notice { padding: 18px 22px; margin-bottom: 28px; font-size: 0.95rem; border: 1px solid; }
.notice p { margin: 0; }
.notice-success { background: #edf2e6; border-color: #b9d1a8; color: #33531f; }
.notice-error { background: #f7ebe6; border-color: #e0b3a6; color: #7c2d12; }

/* ---------- Contact ---------- */

.contact-layout { display: grid; grid-template-columns: 1fr 380px; gap: 70px; align-items: start; }
.contact-panel { background: var(--white); border: 1px solid var(--line); padding: 34px; }
.contact-panel h2 { font-size: 1.35rem; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { display: block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 2px; }
.contact-hint { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

.wa-card {
  display: flex; align-items: center; gap: 16px; background: var(--ink); color: var(--ivory);
  padding: 22px 24px; margin-bottom: 24px; text-decoration: none; transition: background 0.3s;
}
.wa-card:hover { background: var(--bronze-dark); }
.wa-card svg { width: 30px; height: 30px; flex-shrink: 0; fill: var(--ivory); }
.wa-card strong { display: block; font-size: 0.95rem; }
.wa-card small { font-size: 0.8rem; color: var(--ivory-soft); }
.wa-card:hover small { color: rgba(255, 255, 255, 0.75); }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--ink); border: 1px solid rgba(244, 241, 234, 0.2);
  transition: background 0.3s, transform 0.3s;
}
.wa-float svg { width: 24px; height: 24px; fill: var(--ivory); }
.wa-float:hover { background: var(--bronze-dark); transform: translateY(-3px); }

/* ---------- Brief (client entry form) ---------- */

.brief-wrap { max-width: 800px; }
.brief-form { max-width: none; }

.steps { display: flex; gap: 10px; list-style: none; margin: 0 0 44px; padding: 0; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 130px; text-align: center;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); padding: 12px 6px 0; border-top: 1px solid var(--line);
  transition: 0.3s;
}
.step.is-active { color: var(--ink); border-top-color: var(--bronze); }
.step.is-done { border-top-color: var(--ink); }

.brief-step { border: 0; margin: 0; padding: 0; display: none; }
.brief-step.is-active { display: block; }
.brief-step legend { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; padding: 0; margin-bottom: 26px; }
.field-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 30px 0 14px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; }
.choice-body {
  display: block; background: var(--white); border: 1px solid var(--line);
  padding: 20px 22px; transition: 0.25s; height: 100%;
}
.choice-body strong { display: block; font-size: 1rem; font-family: var(--serif); font-weight: 500; }
.choice-body small { color: var(--ink-soft); font-size: 0.85rem; line-height: 1.5; }
.choice-card:hover .choice-body { border-color: var(--bronze); }
.choice-card input:checked + .choice-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-card input:focus-visible + .choice-body { outline: 2px solid var(--bronze); outline-offset: 2px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-block; padding: 10px 20px; border: 1px solid var(--line);
  background: var(--white); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  transition: 0.25s;
}
.chip:hover span { border-color: var(--bronze); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--bronze); outline-offset: 2px; }

.brief-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
}
.brief-progress { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Client intake form ---------- */

.intake-h { font-size: 1.35rem; margin: 40px 0 20px; padding-top: 26px; border-top: 1px solid var(--line); }
.intake-h:first-of-type { border-top: 0; padding-top: 0; margin-top: 10px; }
.intake-h small { display: block; font-size: 0.78rem; font-family: var(--sans); color: var(--ink-soft); letter-spacing: 0.04em; }
.form label small { font-weight: 400; text-transform: none; letter-spacing: 0.02em; color: var(--ink-soft); }
.np-hint { color: var(--ink-soft); }

/* ---------- Studio & tools ---------- */

.studio-card { display: block; text-decoration: none; }
.studio-card .text-link { display: inline-block; margin-top: 8px; }
.studio-card-soon { opacity: 0.75; }
.soon-tag {
  display: inline-block; margin-top: 8px; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-dark);
  border: 1px solid var(--bronze); padding: 5px 10px;
}

.studio-search { display: flex; gap: 12px; margin-bottom: 40px; max-width: 560px; }
.studio-search input {
  flex: 1; padding: 13px 16px; font: inherit; border: 1px solid var(--line);
  background: var(--white); border-radius: 0;
}
.studio-search input:focus { outline: none; border-color: var(--bronze-dark); }
.studio-note { color: var(--ink-soft); margin-top: 40px; }

.texture-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.texture-card { margin: 0; }
.texture-card > a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-tint); }
.texture-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.texture-card:hover img { transform: scale(1.06); }
.texture-card figcaption { padding-top: 10px; font-size: 0.85rem; }
.texture-card figcaption strong { display: block; font-weight: 600; }
.texture-card figcaption span { display: block; color: var(--ink-soft); font-size: 0.76rem; margin: 2px 0 6px; }

.palette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.palette-card { background: var(--white); border: 1px solid var(--line); }
.palette-swatches { display: flex; height: 110px; }
.swatch { flex: 1; border: 0; cursor: pointer; position: relative; padding: 0; transition: flex 0.3s; }
.swatch:hover { flex: 1.7; }
.swatch span {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; font-family: var(--sans);
  color: rgba(255, 255, 255, 0.9); mix-blend-mode: difference; white-space: nowrap;
}
.palette-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px; }
.palette-meta strong { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.palette-meta span { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

.tool-layout { display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: start; }
.tool-panel .form { max-width: none; }
.choice-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.rate-tag { display: block; margin-top: 6px; color: var(--bronze-dark) !important; font-weight: 700; }

.tool-result {
  background: var(--ink); color: var(--ivory); padding: 34px 30px;
  position: sticky; top: 110px;
}
.tool-result-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bronze); margin: 0 0 10px; }
.tool-result-big { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 500; margin: 0 0 4px; line-height: 1.15; }
.tool-result-words { color: var(--ivory-soft); font-style: italic; margin: 0 0 18px; }
.tool-result .spec-list { margin-bottom: 20px; }
.tool-result .spec-list div { border-bottom-color: var(--line-dark); }
.tool-result .spec-list dt { color: var(--ivory-soft); }
.tool-result .spec-list dd { color: var(--ivory); }
.tool-result .btn-block { margin-top: 20px; background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.tool-result .btn-block:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.tool-fineprint { font-size: 0.76rem; color: var(--ivory-soft); margin: 14px 0 0; line-height: 1.6; }
.tool-panel .tool-fineprint { color: var(--ink-soft); }

.est-breakdown { margin: 6px 0 4px; }
.bd-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 10px; align-items: center; font-size: 0.78rem; padding: 5px 0; }
.bd-row span { color: var(--ivory-soft); }
.bd-row i { display: block; height: 5px; background: var(--bronze); min-width: 3px; }
.bd-row b { font-weight: 600; white-space: nowrap; }

/* ---------- Reference gallery & moodboard ---------- */

.ref-card { position: relative; }
.mb-heart {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(19, 19, 17, 0.55); color: rgba(244, 241, 234, 0.85);
  font-size: 1.1rem; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: 0.2s;
}
.mb-heart:hover { background: rgba(19, 19, 17, 0.8); }
.mb-heart.is-saved { color: var(--bronze); background: rgba(244, 241, 234, 0.92); }
.mb-count-link { margin-left: auto; }
.mb-toolbar { display: flex; gap: 14px; margin-bottom: 32px; }
.muted-note { color: var(--ink-soft); font-size: 0.85rem; }

@media print {
  .site-header, .site-footer, .wa-float, .mb-toolbar, .cta-band, .scroll-hint { display: none !important; }
  .page-head { padding-top: 20px; }
}

/* ---------- Engineer toolkit ---------- */

.eng-tabs-wrap { max-width: 100%; }
.eng-tabs { max-width: 640px; margin-bottom: 44px; }
.eng-panel { display: none; }
.eng-panel.is-active { display: block; }
.eng-ref-table { margin-top: 28px; max-width: 320px; }
.nbc-grid { margin-bottom: 24px; }
.nbc-disclaimer { max-width: 760px; }

/* ---------- Photo → palette extractor ---------- */

.pex-drop {
  border: 2px dashed var(--line); background: var(--white); cursor: pointer;
  padding: 60px 30px; text-align: center; transition: border-color 0.25s, background 0.25s;
  max-width: 640px; margin-bottom: 40px;
}
.pex-drop:hover, .pex-drop.is-drag { border-color: var(--bronze); background: var(--paper-tint); }
.pex-drop-inner p { margin: 0 0 6px; }
.pex-drop img { max-width: 100%; max-height: 340px; display: inline-block; }
.pex-result .palette-card { max-width: 640px; margin-bottom: 20px; }
.pex-result .palette-swatches { height: 130px; }

/* ---------- Style finder ---------- */

.sf-wrap { max-width: 900px; }
.sf-progress { text-align: center; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 28px; }
.sf-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.sf-option {
  border: 1px solid var(--line); background: var(--white); padding: 0; cursor: pointer;
  aspect-ratio: 4 / 3; overflow: hidden; transition: border-color 0.25s, transform 0.25s;
}
.sf-option:hover { border-color: var(--bronze); transform: translateY(-3px); }
.sf-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-or {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--bronze-dark);
  text-align: center;
}
.sf-result { max-width: 640px; }
.sf-bars { margin: 28px 0 8px; }
.sf-bar-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; font-size: 0.85rem; padding: 7px 0; }
.sf-bar-row span { color: var(--ink-soft); }
.sf-bar-row i { display: block; height: 6px; background: var(--bronze); min-width: 3px; }
.sf-bar-row b { font-weight: 700; white-space: nowrap; }

@media (max-width: 700px) {
  .sf-pair { grid-template-columns: 1fr; }
  .sf-or { padding: 4px 0; }
}

/* ---------- Vastu quick check ---------- */

.vastu-layout { max-width: 720px; }
.vastu-select {
  width: 100%; max-width: 360px; padding: 13px 16px; font: inherit; margin-bottom: 20px;
  border: 1px solid var(--line); background: var(--white); border-radius: 0;
}
.vastu-select:focus { outline: none; border-color: var(--bronze-dark); }
.vastu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.vastu-cell {
  background: var(--white); border: 1px solid var(--line); padding: 16px 14px;
  text-align: center; transition: 0.3s;
}
.vastu-cell.is-entrance { border-color: var(--bronze); background: var(--paper-tint); box-shadow: inset 0 0 0 1px var(--bronze); }
.vastu-cell.is-entrance::after {
  content: "Entrance zone"; display: block; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-dark); margin-top: 6px;
}
.vastu-dir { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 6px; }
.vastu-cell strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 0.98rem; margin-bottom: 3px; }
.vastu-cell small { color: var(--ink-soft); font-size: 0.76rem; }
.vastu-center { background: var(--paper-tint); }

@media (max-width: 700px) {
  .vastu-cell { padding: 12px 8px; }
  .vastu-cell strong { font-size: 0.86rem; }
}

/* ---------- Partners strip ---------- */

.partners-strip { border-bottom: 1px solid var(--line); padding: 30px 0; background: var(--paper); }
.partners-strip .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.partners-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
.partners-names { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
.partners-names li { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--ink); }
.partners-names li:last-child { font-style: normal; font-family: var(--sans); font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Approach / premium positioning ---------- */

.approach-section { background: var(--ink); color: var(--ivory); }
.approach-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.approach-section .section-label { color: var(--bronze); }
.approach-section h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 0.6em; }
.approach-section h2 em { color: var(--bronze); }
.approach-lead { font-size: 1.2rem; line-height: 1.7; color: var(--ivory); margin-bottom: 1.2em; }
.approach-body { font-size: 1.05rem; line-height: 1.8; color: var(--ivory-soft); margin: 0; }

/* ---------- Blog ---------- */

.blog-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.blog-card { text-decoration: none; display: block; background: var(--white); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s; }
.blog-card:hover { border-color: var(--bronze); transform: translateY(-4px); }
.blog-media { aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-media .ph-initial { font-size: 3.4rem; }
.blog-card-meta { padding: 20px 22px 24px; }
.blog-date { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze-dark); }
.blog-card-meta h3 { font-size: 1.25rem; margin: 8px 0 8px; }
.blog-card-meta p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 12px; }

.article-head { max-width: 860px; }
.article-cover { aspect-ratio: 21 / 9; overflow: hidden; margin-top: 16px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 1.08rem; line-height: 1.85; }
.article-body h2 { font-size: 1.5rem; margin: 1.6em 0 0.5em; }
.article-body ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.article-body a { color: var(--bronze-dark); }
.article-more { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-more h2 { font-size: 1.2rem; }
.article-more ul { list-style: none; margin: 0; padding: 0; }
.article-more li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.article-more a { text-decoration: none; font-weight: 600; }
.article-more a:hover { color: var(--bronze-dark); }

/* ---------- Share buttons ---------- */

.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); margin-right: 6px; }
.share-btn {
  display: inline-block; padding: 9px 18px; border: 1px solid var(--line); background: var(--white);
  font: inherit; font-size: 0.78rem; font-weight: 600; text-decoration: none; color: var(--ink);
  cursor: pointer; transition: 0.25s;
}
.share-btn:hover { border-color: var(--bronze); color: var(--bronze-dark); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--ivory-soft); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 56px; padding: 80px 28px 56px; }
.footer-brand { color: var(--ivory); margin: 0 0 12px; }
.footer-blurb { font-size: 0.93rem; margin: 0; max-width: 380px; }
.footer-head {
  color: var(--bronze); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase; margin: 6px 0 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; font-size: 0.93rem; }
.footer-links a { text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--bronze); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 28px; border-top: 1px solid var(--line-dark); font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* ---------- Reveal animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .project-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .texture-grid { grid-template-columns: 1fr 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .palette-grid { grid-template-columns: 1fr; }
  .tool-layout { grid-template-columns: 1fr; gap: 40px; }
  .tool-result { position: static; }
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .project-layout, .contact-layout, .about-cols { grid-template-columns: 1fr; gap: 48px; }
  .spec-panel { position: static; }
  .hero-stats { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .scroll-hint { display: none; }
}

/* Nav collapses to the hamburger menu earlier than the general phone
   breakpoint below — six links plus the CTA button need more room than
   tablets and small laptops have. */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 84px 0 auto 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 28px; gap: 4px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 0.95rem; color: var(--ink-soft); padding: 10px 0; }
  .site-nav .btn.nav-cta { color: var(--paper); margin-top: 12px; }
}

@media (max-width: 700px) {
  .hero-dark { padding-top: 130px; min-height: auto; }
  .page-head { padding-top: 150px; }
  .project-grid, .card-grid, .choice-grid, .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .texture-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .choice-grid-3 { grid-template-columns: 1fr; }
  .studio-search { flex-direction: column; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .filter-bar { gap: 16px; }
  .filter-bar .pill:not(:last-child)::after { margin-left: 16px; }
  .wa-float { right: 18px; bottom: 18px; }
}
