/* ============================================================
   M FIT Interior Decoration — design system
   Walnut + brass on a warm gallery canvas. Mobile-first.
   ============================================================ */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --text: #1C1A17;
  --muted: #6B6258;
  --primary: #3A2B1F;   /* deep walnut */
  --primary-2: #2A1F16; /* darker walnut */
  --secondary: #8A6A4A; /* mid wood / taupe */
  --accent: #B5923F;    /* refined brass */
  --accent-soft: #C9A85E;
  --border: #E7E0D7;
  --border-dark: rgba(255,255,255,.14);
  --focus: #B5923F;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --r: 4px;
  --shadow-sm: 0 1px 2px rgba(28,26,23,.05), 0 6px 18px rgba(28,26,23,.05);
  --shadow-md: 0 10px 40px rgba(28,26,23,.10);
  --shadow-lg: 0 30px 80px rgba(28,26,23,.20);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.04; letter-spacing: -0.01em; }
.display { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 500; letter-spacing: -0.02em; }
.h-xl { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.h-lg { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.h-md { font-size: clamp(1.4rem, 3vw, 1.9rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); line-height: 1.7; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 11vw, 140px) 0; }
.section.tight { padding: clamp(48px, 7vw, 90px) 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 15px 28px;
  font-family: var(--sans);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .35s var(--ease);
  min-height: 48px;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a07f31; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(181,146,63,.34); }
.btn-dark { background: var(--primary); color: #F4EDE3; }
.btn-dark:hover { background: var(--primary-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-ghost.on-dark { color: #F4EDE3; border-color: var(--border-dark); }
.btn-ghost.on-dark:hover { border-color: #F4EDE3; background: rgba(255,255,255,.06); }
.btn-wa { background: #1f9d57; color: #fff; }
.btn-wa:hover { background: #18834a; transform: translateY(-2px); }
.btn-sm { padding: 11px 18px; min-height: 42px; font-size: .74rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  transition: gap .3s var(--ease), color .3s;
}
.link-arrow:hover { gap: .85em; color: var(--accent); }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .4s var(--ease), box-shadow .4s, padding .4s;
}
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad);
  transition: padding .4s var(--ease);
}
.hdr.solid { background: rgba(250,248,245,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); }
.hdr.solid .hdr-inner { padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 86px; width: auto; transition: height .4s var(--ease); }
.hdr.solid .brand img { height: 70px; }
.brand .brand-tx { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-tx b { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .04em; font-weight: 600; }
.brand .brand-tx span { font-size: .56rem; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .82rem; font-weight: 500; letter-spacing: .04em;
  padding: 10px 16px; border-radius: 2px;
  color: var(--text); position: relative;
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--accent); }
.hdr-cta { display: flex; align-items: center; gap: 10px; }

/* header transparent (hero) state — light text */
.hdr.ghost::before { content: ""; position: absolute; inset: 0; bottom: auto; height: 180%; pointer-events: none; background: linear-gradient(to bottom, rgba(18,13,9,.5), rgba(18,13,9,0)); z-index: -1; }
.hdr.ghost { color: #fff; }
.hdr.ghost .nav a, .hdr.ghost .brand .brand-tx b { color: #fff; }
.hdr.ghost .brand .brand-tx span { color: rgba(255,255,255,.7); }
.hdr.ghost .brand img { filter: brightness(0) invert(1); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--border); background: var(--surface); border-radius: 2px; position: relative; }
.hdr.ghost .burger { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: all .3s var(--ease); }
.hdr.ghost .burger span { background: #fff; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }

/* mobile drawer */
.drawer-back { position: fixed; inset: 0; background: rgba(20,16,12,.5); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .35s; backdrop-filter: blur(2px); }
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 81;
  background: var(--primary); color: #F4EDE3;
  transform: translateX(100%); transition: transform .42s var(--ease);
  display: flex; flex-direction: column; padding: 26px 28px;
}
.drawer.open { transform: translateX(0); }
.drawer .d-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.drawer .d-top img { height: 70px; filter: brightness(0) invert(1); }
.drawer .x { width: 44px; height: 44px; border: 1px solid var(--border-dark); background: transparent; color: #fff; font-size: 1.4rem; border-radius: 2px; }
.drawer nav { display: flex; flex-direction: column; gap: 2px; }
.drawer nav a {
  font-family: var(--serif); font-size: 1.7rem; padding: 12px 0;
  border-bottom: 1px solid var(--border-dark); color: #F4EDE3;
}
.drawer nav a.active { color: var(--accent-soft); }
.drawer .d-cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 24px; }
.drawer .d-contact { margin-top: 18px; font-size: .85rem; color: rgba(244,237,227,.7); line-height: 1.9; }
.drawer .d-contact a { color: var(--accent-soft); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(20,15,11,.86) 0%, rgba(20,15,11,.45) 38%, rgba(20,15,11,.15) 70%, rgba(20,15,11,.35) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(28px, 3vw, 44px); padding-top: clamp(128px, 15vh, 168px); flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 38px; line-height: 1.14; padding-bottom: .04em; }
.hero .display { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.hero .lead { color: rgba(255,255,255,.86); max-width: 46ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-strip {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.16);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-strip .hs { padding: 18px var(--pad); min-width: 0; }
.hero-strip .hs:not(:last-child) { border-right: 1px solid rgba(255,255,255,.14); }
.hero-strip .hs b { font-family: var(--serif); font-size: clamp(1.4rem,2.3vw,1.95rem); display: block; color: #fff; line-height: 1.1; white-space: nowrap; }
.hero-strip .hs span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); display: block; margin-top: 4px; }

/* ---------- generic section header ---------- */
.sec-head { max-width: 62ch; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { margin: 16px 0 14px; }

/* ---------- stats strip ---------- */
.stats { background: var(--primary); color: #F4EDE3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(34px,5vw,60px) 24px; text-align: center; border-right: 1px solid var(--border-dark); }
.stat:last-child { border-right: none; }
.stat b { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); display: block; color: #fff; line-height: 1; }
.stat span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,237,227,.66); margin-top: 12px; display: block; }
.stats-note { text-align: center; font-size: .72rem; letter-spacing: .04em; color: rgba(244,237,227,.45); padding: 0 24px 28px; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.svc-card .ph { aspect-ratio: 4/3; overflow: hidden; }
.svc-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card:hover .ph img { transform: scale(1.06); }
.svc-card .bd { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.svc-card .num { font-size: .7rem; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; }
.svc-card h3 { margin: 12px 0 6px; font-size: 1.5rem; }
.svc-card .tl { font-size: .8rem; letter-spacing: .04em; color: var(--secondary); text-transform: uppercase; margin-bottom: 14px; }
.svc-card p { font-size: .94rem; color: var(--muted); margin: 0; }

/* split feature row */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r); }
.split-media .badge {
  position: absolute; bottom: -1px; left: -1px; background: var(--accent); color: #fff;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 14px 20px;
}

/* ---------- featured projects (home) ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feat { position: relative; overflow: hidden; border-radius: var(--r); cursor: pointer; background: var(--primary); }
.feat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feat:hover img { transform: scale(1.05); }
.feat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,13,9,.82) 4%, rgba(18,13,9,.1) 46%, transparent 70%); transition: opacity .4s; }
.feat .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(20px,3vw,32px); color: #fff; }
.feat .cap .s { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); }
.feat .cap h3 { color: #fff; font-size: clamp(1.3rem,2.4vw,1.9rem); margin: 8px 0 2px; }
.feat .cap .loc { font-size: .82rem; color: rgba(255,255,255,.74); }
.feat.big { grid-column: span 8; aspect-ratio: 16/10; }
.feat.tall { grid-column: span 4; }
.feat.half { grid-column: span 6; aspect-ratio: 16/10; }
.feat.third { grid-column: span 4; aspect-ratio: 4/5; }
/* clean two-row layout: one wide hero + row of four portraits */
.feat-hero { grid-column: span 12; aspect-ratio: 24/9; }
.feat-q { grid-column: span 3; aspect-ratio: 3/4; }

/* ---------- projects page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 40px; }
.chip {
  padding: 10px 20px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 100px; font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: var(--muted);
  transition: all .3s var(--ease); min-height: 42px;
}
.chip:hover { border-color: var(--secondary); color: var(--text); }
.chip.active { background: var(--primary); color: #F4EDE3; border-color: var(--primary); }
.chip.active b { color: var(--accent-soft); font-weight: 600; }

.masonry { columns: 3; column-gap: 18px; }
.tile { break-inside: avoid; margin-bottom: 18px; position: relative; overflow: hidden; border-radius: var(--r); cursor: pointer; background: var(--primary); }
.tile img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,13,9,.8) 2%, rgba(18,13,9,.05) 44%, transparent 64%); opacity: .85; transition: opacity .4s; }
.tile:hover::after { opacity: 1; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; color: #fff; transform: translateY(8px); opacity: .92; transition: transform .4s var(--ease); }
.tile:hover .cap { transform: translateY(0); }
.tile .cap .s { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); }
.tile .cap h3 { color: #fff; font-size: 1.35rem; margin: 7px 0 3px; }
.tile .cap .loc { font-size: .8rem; color: rgba(255,255,255,.75); }
.tile .zoom { position: absolute; top: 16px; right: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; opacity: 0; transform: scale(.8); transition: all .35s var(--ease); }
.tile:hover .zoom { opacity: 1; transform: scale(1); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(14,10,7,.94); display: flex; align-items: center; justify-content: center; padding: clamp(16px,4vw,56px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb-fig { max-width: 1100px; width: 100%; }
.lb-fig img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lb-meta { color: #fff; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.lb-meta .s { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); }
.lb-meta h3 { color: #fff; font-size: 1.6rem; }
.lb-meta .loc { color: rgba(255,255,255,.7); font-size: .9rem; }
.lb-meta p { color: rgba(255,255,255,.78); width: 100%; max-width: 60ch; margin: 4px 0 0; font-size: .95rem; }
.lb-x { position: absolute; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font-size: 1.5rem; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font-size: 1.4rem; display: grid; place-items: center; transition: background .3s; }
.lb-nav:hover { background: rgba(255,255,255,.16); }
.lb-nav.prev { left: clamp(10px,2vw,28px); }
.lb-nav.next { right: clamp(10px,2vw,28px); }

/* ---------- about ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.cred { padding: clamp(24px,3vw,34px); border-right: 1px solid var(--border); }
.cred:last-child { border-right: none; }
.cred .k { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.cred .v { font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.4rem); margin: 4px 0 10px; }
.cred .nt { font-size: .86rem; color: var(--muted); margin: 0; }

.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.pstep { position: relative; padding-top: 26px; border-top: 2px solid var(--primary); }
.pstep .n { font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.pstep h4 { font-size: 1.3rem; margin: 10px 0 8px; }
.pstep p { font-size: .92rem; color: var(--muted); margin: 0; }

/* trade scope chips */
.scope { display: flex; flex-wrap: wrap; gap: 10px; }
.scope span { padding: 9px 16px; border: 1px solid var(--border); border-radius: 100px; font-size: .82rem; color: var(--muted); background: var(--surface); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band .ov { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(42,31,22,.93), rgba(42,31,22,.7)); }
.cta-band .ct { position: relative; z-index: 2; text-align: center; max-width: 60ch; margin: 0 auto; }
.cta-band h2 { color: #fff; margin: 16px 0 18px; }
.cta-band .lead { color: rgba(255,255,255,.84); margin-bottom: 30px; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px,5vw,72px); align-items: start; }
.info-block { margin-bottom: 30px; }
.info-block .lab { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.info-block .val { font-size: 1.02rem; line-height: 1.7; }
.info-block .val a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.info-block .val a:hover { border-color: var(--accent); }
.info-block .val.addr { color: var(--muted); }
.chan-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 2px;
  font-family: var(--sans); font-size: .96rem; color: var(--text); background: var(--bg);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,146,63,.15); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field.err input, .field.err select, .field.err textarea { border-color: #b4452f; }
.field .msg { font-size: .76rem; color: #b4452f; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-ok { text-align: center; padding: 30px 10px; }
.form-ok .ic { width: 64px; height: 64px; border-radius: 50%; background: rgba(31,157,87,.12); color: #1f9d57; display: grid; place-items: center; margin: 0 auto 18px; font-size: 1.8rem; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* map placeholder */
.map-ph {
  border: 1px dashed var(--secondary); border-radius: var(--r); background:
    repeating-linear-gradient(45deg, rgba(138,106,74,.05) 0 12px, rgba(138,106,74,.09) 12px 24px);
  min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px; color: var(--secondary);
}
.map-ph .t { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.map-ph .d { font-size: .85rem; color: var(--muted); max-width: 32ch; }

/* ---------- footer ---------- */
.footer { background: var(--primary-2); color: #E9E0D4; padding-top: clamp(56px,8vw,90px); }
.footer a { color: #E9E0D4; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--border-dark); }
.foot-brand img { height: 140px; filter: brightness(0) invert(1); opacity: .96; margin-bottom: 22px; }
.foot-brand p { color: rgba(233,224,212,.66); font-size: .92rem; max-width: 32ch; }
.foot-col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 16px; font-weight: 600; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: .92rem; color: rgba(233,224,212,.8); transition: color .2s; }
.foot-col a:hover { color: var(--accent-soft); }
.foot-col .ad { font-size: .9rem; color: rgba(233,224,212,.7); line-height: 1.7; margin-bottom: 16px; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 24px 0 30px; font-size: .8rem; color: rgba(233,224,212,.5); }
.foot-bottom .socials { display: flex; gap: 18px; }
.foot-bottom .socials a:hover { color: var(--accent-soft); }

/* ---------- mobile action bar ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; grid-template-columns: 1fr 1fr 1fr; background: var(--primary); box-shadow: 0 -6px 24px rgba(0,0,0,.22); }
.mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 4px; color: #F4EDE3; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; min-height: 56px; border-right: 1px solid var(--border-dark); }
.mbar a:last-child { border-right: none; }
.mbar a.wa { background: #1f9d57; color: #fff; }
.mbar a svg { width: 20px; height: 20px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .masonry { columns: 2; }
}
@media (max-width: 880px) {
  .nav, .hdr-cta .btn { display: none; }
  .burger { display: block; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.rev .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: repeat(2,1fr); }
  .cred:nth-child(2) { border-right: none; }
  .cred:nth-child(1), .cred:nth-child(2) { border-bottom: 1px solid var(--border); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feat.big, .feat.half, .feat.tall, .feat.third { grid-column: span 12; aspect-ratio: 16/10; }
  .feat-hero { aspect-ratio: 16/9; }
  .feat-q { grid-column: span 6; aspect-ratio: 4/5; }
  .mbar { display: grid; }
  .brand img { height: 64px; }
  .hdr.solid .brand img { height: 56px; }
  body { padding-bottom: 56px; }
  .hero-strip { grid-template-columns: repeat(2,1fr); }
  .hero-strip .hs:nth-child(2) { border-right: none; }
  .hero-strip .hs:nth-child(1), .hero-strip .hs:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .feat-q { grid-column: span 6; aspect-ratio: 3/4; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border-dark); }
  .process { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .cred-grid { grid-template-columns: 1fr; }
  .cred { border-right: none; border-bottom: 1px solid var(--border); }
  .cred:last-child { border-bottom: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-strip .hs { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.14); }
}
