/* ==========================================================================
   Houshare Builders — Design System
   Cream + chocolate brown, caramel accent (from the HS logo), editorial serif display.
   ========================================================================== */

:root {
  --paper: #f7f1ea;
  --paper-2: #efe5da;
  --paper-3: #e4d6c6;
  --ink: #22150e;
  --ink-2: #3f2c20;
  --muted: #7b6a5b;
  --line: rgba(34, 21, 14, .13);
  --line-light: rgba(255, 255, 255, .16);
  --bronze: #a17244;
  --bronze-2: #c49464;
  --night: #1b120c;
  --night-2: #271b13;
  --white: #fffcf8;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --brand: "Montserrat", "Inter Tight", Arial, sans-serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--bronze); color: var(--white); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 168px) 0; position: relative; }
.section--tight { padding: clamp(60px, 7vw, 104px) 0; }
.dark { background: var(--night); color: var(--paper); }
.dark .eyebrow { color: var(--bronze-2); }
.dark .muted, .dark p.lead { color: rgba(247, 241, 234, .68); }
.sand { background: var(--paper-2); }

/* ---------- Type ---------- */
.display, h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1; margin: 0; }
.display-xl { font-size: clamp(56px, 10.4vw, 172px); line-height: .9; letter-spacing: -.03em; }
.display-l { font-size: clamp(44px, 7vw, 112px); line-height: .94; letter-spacing: -.025em; }
.display-m { font-size: clamp(36px, 4.8vw, 76px); line-height: 1; }
.display-s { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; }
em, .italic { font-style: italic; }
.accent { color: var(--bronze); }
.dark .accent { color: var(--bronze-2); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--plain::before { display: none; }
.num { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 10px 0 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), transform .4s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bronze); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--white); }
.btn .btn-ico {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--fg); color: var(--bg); transition: background .5s var(--ease), color .5s var(--ease);
  overflow: hidden;
}
.btn:hover .btn-ico { background: var(--white); color: var(--bronze); }
.btn .btn-ico svg { width: 15px; height: 15px; transition: transform .5s var(--ease); }
.btn:hover .btn-ico svg { transform: translateX(2px) rotate(-45deg); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--bronze { --bg: var(--bronze); --fg: var(--white); }
.btn--bronze::before { background: var(--ink); }
.btn--ghost { --bg: transparent; --fg: currentColor; border: 1px solid currentColor; }
.btn--ghost .btn-ico { background: transparent; color: currentColor; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 4px; transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar {
  position: relative; z-index: 60;
  background: var(--night); color: rgba(247, 241, 234, .8);
  font-size: 13px; letter-spacing: .01em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 40px; }
.topbar a:hover { color: var(--bronze-2); }
.topbar__left { display: flex; gap: 24px; align-items: center; }
.topbar__right { display: flex; gap: 22px; align-items: center; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #6fbf73; box-shadow: 0 0 0 4px rgba(111, 191, 115, .18); display: inline-block; margin-right: 8px; }

.header {
  position: fixed; left: 0; right: 0; top: 40px; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  transition: background .5s var(--ease), color .5s var(--ease), top .5s var(--ease), transform .6s var(--ease), box-shadow .5s;
}
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body[data-header="light"] .header:not(.is-scrolled) { color: var(--white); }
body[data-header="light"] .header:not(.is-scrolled) .logo__sub, .dark .logo__sub { color: #dcae80; }
.header.is-scrolled {
  top: 0; background: rgba(247, 241, 234, .86);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.logo svg { width: auto; height: 42px; aspect-ratio: 112.5 / 100; flex: none; }
.logo__text { display: flex; flex-direction: column; gap: 5px; font-family: var(--brand); }
.logo__name { font-size: 21px; font-weight: 400; letter-spacing: .12em; line-height: 1; }
.logo__sub { font-size: 8.6px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--bronze-2); line-height: 1; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; font-size: 15px; font-weight: 500;
  border-radius: 999px; transition: background .3s, opacity .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__cta .btn { height: 48px; padding-left: 22px; font-size: 14px; }
.header__cta .btn .btn-ico { width: 32px; height: 32px; }
body[data-header="light"] .header:not(.is-scrolled) .btn { --bg: var(--paper); --fg: var(--ink); }

.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--night); color: var(--paper);
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-in-out);
  overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.menu-open .header { color: var(--paper) !important; background: transparent !important; box-shadow: none !important; top: 0; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(42px, 11vw, 72px); line-height: 1.1;
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s;
}
.mobile-menu nav a span { font-family: var(--sans); font-size: 12px; color: var(--bronze-2); letter-spacing: .12em; }
.mobile-menu nav a:hover { color: var(--bronze-2); }
.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
.mobile-menu__foot { display: grid; gap: 8px; font-size: 15px; color: rgba(247, 241, 234, .7); margin-top: 40px; }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); overflow: hidden; background: var(--night); margin-top: -40px;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  transform: scale(1.12); animation: heroZoom 2.8s var(--ease) .1s forwards;
}
@keyframes heroZoom { to { transform: scale(1.02); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 12, 7, .72) 0%, rgba(20, 12, 7, .35) 42%, rgba(20, 12, 7, 0) 70%),
    linear-gradient(0deg, rgba(20, 12, 7, .75) 0%, rgba(20, 12, 7, 0) 42%),
    linear-gradient(180deg, rgba(20, 12, 7, .45) 0%, rgba(20, 12, 7, 0) 22%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 200px; padding-bottom: 36px; }
.hero__kicker { color: var(--bronze-2); margin-bottom: 28px; }
.hero__title { max-width: 11ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.3s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero__row {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
  margin-top: 40px;
}
.hero__lead { font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 253, 249, .82); max-width: 44ch; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__badge {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 14px;
  max-width: 340px;
}
.hero__badge .stars { color: var(--bronze-2); letter-spacing: 2px; font-size: 14px; }
.hero__badge strong { font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1; }
.hero__badge small { display: block; font-size: 13px; color: rgba(255, 253, 249, .7); line-height: 1.4; }
.hero__strip {
  position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__strip .container { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.hero__strip a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 24px 24px 26px 0; font-size: 15px; font-weight: 500; color: rgba(255, 253, 249, .85);
  border-right: 1px solid rgba(255, 255, 255, .12); margin-right: 24px; transition: color .3s;
}
.hero__strip a:last-child { border-right: 0; margin-right: 0; }
.hero__strip a:hover { color: var(--bronze-2); }
.hero__strip a .num { color: rgba(255, 253, 249, .5); }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1.2s var(--ease) forwards; }
.d1 { animation-delay: .45s; } .d2 { animation-delay: .6s; } .d3 { animation-delay: .75s; } .d4 { animation-delay: .9s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--paper); padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 48px); white-space: nowrap; }
.marquee__item svg { width: 22px; height: 22px; color: var(--bronze); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / statement ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(32px, 6vw, 96px); }
.statement { font-family: var(--serif); font-size: clamp(32px, 4.1vw, 64px); line-height: 1.08; letter-spacing: -.015em; margin: 0; }
.statement .w { opacity: .14; transition: opacity .35s linear; }
.statement .w.on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value { font-family: var(--serif); font-size: clamp(52px, 6vw, 96px); line-height: .9; letter-spacing: -.03em; }
.stat__value sup { font-size: .45em; color: var(--bronze); vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.stat__label { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 18ch; }

/* ---------- Section head ---------- */
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .eyebrow { margin-bottom: 22px; }
.sec-head p { margin: 0; }

/* ---------- Services list (home) ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 80px 1.15fr 1fr 64px; gap: 24px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease), color .4s;
}
.svc-row::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.svc-list { position: relative; isolation: isolate; }
.svc-row:hover { color: var(--paper); padding-left: 24px; padding-right: 24px; }
.svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc-row:hover .num, .svc-row:hover .svc-row__desc { color: rgba(247, 241, 234, .65); }
.svc-row__title { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 68px); line-height: 1; letter-spacing: -.02em; }
.svc-row__desc { color: var(--muted); font-size: 16px; max-width: 40ch; margin: 0; transition: color .4s; }
.svc-row__arrow {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center;
  transition: background .4s, color .4s, transform .6s var(--ease);
}
.svc-row__arrow svg { width: 18px; height: 18px; }
.svc-row:hover .svc-row__arrow { background: var(--bronze); border-color: var(--bronze); color: var(--white); transform: rotate(-45deg); }
.svc-row__thumb { display: none; }
.hover-img {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 4/5; pointer-events: none;
  border-radius: var(--radius); overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.85);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.hover-img.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hover-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.hover-img img.on { opacity: 1; }

/* ---------- Projects ---------- */
.proj-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.proj-card { position: relative; display: block; }
.proj-card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.proj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.proj-card:hover .proj-card__media img { transform: scale(1.06); }
.proj-card__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 12, 7, .55), transparent 45%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.proj-card:hover .proj-card__media::after { opacity: 1; }
.proj-card__tag {
  position: absolute; top: 18px; left: 18px; z-index: 2; padding: 7px 14px; border-radius: 999px;
  background: rgba(247, 241, 234, .92); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.proj-card__view {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 92px; height: 92px; border-radius: 50%;
  background: var(--bronze); color: var(--white); display: grid; place-items: center; font-size: 13px; font-weight: 600;
  transform: scale(0) rotate(-30deg); transition: transform .6s var(--ease);
}
.proj-card:hover .proj-card__view { transform: scale(1) rotate(0); }
.proj-card__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 18px; }
.proj-card__title { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; }
.proj-card__loc { font-size: 14px; color: var(--muted); white-space: nowrap; }
.proj-bento .proj-card:nth-child(1) { grid-column: span 7; }
.proj-bento .proj-card:nth-child(1) .proj-card__media { aspect-ratio: 4/3; }
.proj-bento .proj-card:nth-child(2) { grid-column: span 5; margin-top: clamp(40px, 10vw, 160px); }
.proj-bento .proj-card:nth-child(2) .proj-card__media { aspect-ratio: 4/5; }
.proj-bento .proj-card:nth-child(3) { grid-column: 2 / span 5; }
.proj-bento .proj-card:nth-child(3) .proj-card__media { aspect-ratio: 4/5; }
.proj-bento .proj-card:nth-child(4) { grid-column: span 6; margin-top: clamp(40px, 8vw, 120px); }
.proj-bento .proj-card:nth-child(4) .proj-card__media { aspect-ratio: 4/3; }

.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.proj-grid .proj-card__media { aspect-ratio: 3/2; }
.proj-grid .proj-card.is-hidden { display: none; }

/* ---------- Before / After ---------- */
.ba__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius); user-select: none; touch-action: pan-y;
  cursor: ew-resize; background: var(--paper-3);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--white); transform: translateX(-1px);
}
.ba__knob {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.ba__knob svg { width: 26px; height: 26px; }
.ba__label {
  position: absolute; top: 18px; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(27, 18, 12, .7); color: var(--white); backdrop-filter: blur(8px);
}
.ba__label--b { left: 18px; } .ba__label--a { right: 18px; background: var(--bronze); }
.ba-points { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; gap: 14px; }
.ba-points li { display: flex; gap: 14px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ba-points li::before { content: "—"; color: var(--bronze); }

/* ---------- Process (dark, sticky) ---------- */
.process__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 8vw, 140px); }
.process__sticky { position: sticky; top: 140px; align-self: start; }
.process__img { margin-top: 48px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.process__img img { width: 100%; height: 100%; object-fit: cover; }
.steps { counter-reset: s; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 44px 0; border-top: 1px solid var(--line-light); opacity: .35; transition: opacity .6s var(--ease); }
.step.on { opacity: 1; }
.step:last-child { border-bottom: 1px solid var(--line-light); }
.step__n { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--bronze-2); font-style: italic; }
.step h3 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 14px; }
.step p { color: rgba(247, 241, 234, .68); margin: 0; max-width: 46ch; }

/* ---------- Story (story) ---------- */
.story__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.story__media { position: relative; }
.story__media .main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.story__media .main img { width: 100%; height: 100%; object-fit: cover; }
.story__media .inset {
  position: absolute; right: -8%; bottom: -10%; width: 42%; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden;
  border: 8px solid var(--paper);
}
.story__media .inset img { width: 100%; height: 100%; object-fit: cover; }
.story__seal {
  position: absolute; left: -36px; top: 40px; width: 132px; height: 132px; border-radius: 50%; background: var(--night); color: var(--bronze-2);
  box-shadow: 0 0 0 4px var(--paper), 0 18px 40px -18px rgba(0, 0, 0, .55);
  display: grid; place-items: center;
}
.story__seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.story__seal .center { color: var(--paper); display: grid; --logo-s: var(--bronze-2); }
.story__seal .center svg { width: 46px; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.story blockquote { margin: 40px 0; padding-left: 28px; border-left: 2px solid var(--bronze); font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; }
.story blockquote cite { display: block; margin-top: 16px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }
.license-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.license {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px;
}
.license svg { width: 16px; height: 16px; color: var(--bronze); }

/* ---------- Testimonials ---------- */
.testi { text-align: center; }
.testi__stage { position: relative; min-height: 340px; display: grid; }
.testi__slide { grid-area: 1/1; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .8s var(--ease), transform .9s var(--ease), visibility .8s; }
.testi__slide.on { opacity: 1; visibility: visible; transform: none; }
.testi__quote { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 58px); line-height: 1.12; letter-spacing: -.015em; max-width: 22ch; margin: 0 auto; }
.testi__mark { font-family: var(--serif); font-size: 140px; line-height: .6; color: var(--bronze); height: 60px; display: block; }
.testi__who { margin-top: 36px; font-size: 15px; }
.testi__who strong { font-weight: 600; }
.testi__who span { color: var(--muted); }
.testi__stars { color: var(--bronze); letter-spacing: 3px; margin-bottom: 10px; }
.testi__nav { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 48px; }
.testi__btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.testi__btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.testi__btn svg { width: 18px; height: 18px; }
.testi__dots { display: flex; gap: 8px; }
.testi__dots button { width: 34px; height: 3px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.testi__dots button i { position: absolute; inset: 0; background: var(--bronze); transform: scaleX(0); transform-origin: left; }
.testi__dots button.on i { animation: bar 7s linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- Design center banner ---------- */
.dc { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.dc__bg { position: absolute; inset: -10% 0; }
.dc__bg img { width: 100%; height: 100%; object-fit: cover; }
.dc__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 12, 7, .2), rgba(20, 12, 7, .55)); }
.dc__card {
  position: relative; z-index: 2; margin-left: auto; max-width: 520px; padding: clamp(32px, 4vw, 56px);
  background: var(--paper); color: var(--ink); border-radius: var(--radius);
}
.dc__card h2 { margin: 18px 0 20px; }

/* ---------- Journal ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 40px); }
.post-card__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/2; background: var(--paper-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__meta { display: flex; gap: 14px; align-items: center; margin: 22px 0 12px; font-size: 13px; color: var(--muted); }
.post-card__meta .cat { color: var(--bronze); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.post-card__title { font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); line-height: 1.12; transition: color .3s; }
.post-card:hover .post-card__title { color: var(--bronze); }
.post-card__excerpt { color: var(--muted); font-size: 15.5px; margin-top: 12px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: var(--white); padding: clamp(120px, 16vw, 240px) 0; text-align: center; }
.cta__bg { position: absolute; inset: -12% 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20, 12, 7, .45), rgba(20, 12, 7, .8)); }
.cta .container { position: relative; z-index: 2; }
.cta h2 { max-width: 13ch; margin: 24px auto 36px; }
.cta p { color: rgba(255, 253, 249, .8); max-width: 48ch; margin: 0 auto 40px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(247, 241, 234, .72); padding: clamp(80px, 9vw, 128px) 0 32px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 72px; border-bottom: 1px solid var(--line-light); }
.footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-2); margin-bottom: 22px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--paper); }
.footer__lead { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; color: var(--paper); margin-bottom: 28px; }
.footer__news { display: flex; border-bottom: 1px solid rgba(247, 241, 234, .3); max-width: 420px; }
.footer__news input { flex: 1; min-width: 0; background: none; border: 0; color: var(--paper); font: inherit; padding: 14px 0; outline: none; }
.footer__news input::placeholder { color: rgba(247, 241, 234, .45); }
.footer__news button { color: var(--bronze-2); font-weight: 600; font-size: 14px; }
.footer__wordmark {
  font-family: var(--serif); font-size: clamp(64px, 16.5vw, 290px); line-height: .82; letter-spacing: -.045em; color: var(--paper);
  margin: 56px 0 24px; white-space: nowrap; text-align: center;
}
.footer__wordmark em { color: var(--bronze-2); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: rgba(247, 241, 234, .5); }
.footer__bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; margin-top: 28px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--bronze); border-color: var(--bronze); color: var(--white); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + 120px) 0 clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: end; }
.crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: .5; }
.page-hero--img { position: relative; color: var(--white); min-height: 82svh; display: flex; align-items: flex-end; border: 0; overflow: hidden; margin-top: -40px; }
.page-hero--img .bg { position: absolute; inset: 0; }
.page-hero--img .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 2.4s var(--ease) forwards; }
.page-hero--img .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 12, 7, .82), rgba(20, 12, 7, .25) 55%, rgba(20, 12, 7, .55)), linear-gradient(90deg, rgba(20, 12, 7, .55), transparent 65%); }
.page-hero--img .eyebrow { color: var(--bronze-2); }
.page-hero--img .container { position: relative; z-index: 2; }
.page-hero--img .crumbs, .page-hero--img .crumbs a { color: rgba(255, 255, 255, .75); }
.page-hero--img .lead { color: rgba(255, 253, 249, .82); }

/* ---------- Services page ---------- */
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; padding: clamp(64px, 8vw, 120px) 0; border-bottom: 1px solid var(--line); }
.svc-block:nth-child(even) .svc-block__media { order: 2; }
.svc-block__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/5; }
.svc-block__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.svc-block:hover .svc-block__media img { transform: scale(1.04); }
.svc-block h2 { margin: 18px 0 24px; }
.feat-list { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.feat-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; display: flex; gap: 12px; align-items: baseline; }
.feat-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); flex: none; transform: translateY(-2px); }

/* ---------- Quick menu (sticky jump nav) ---------- */
.quicknav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 241, 234, .9); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: top .6s var(--ease);
}
body.hdr-shown .quicknav { top: var(--header-h); }
.quicknav__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.quicknav__label { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); display: flex; align-items: center; gap: 10px; }
.quicknav__label::after { content: ""; width: 1px; height: 28px; background: var(--line); margin-left: 14px; }
.quicknav__links {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.quicknav__links::-webkit-scrollbar { display: none; }
.qn {
  display: inline-flex; align-items: center; gap: 10px; flex: none; height: 48px; padding: 0 18px 0 5px;
  border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; font-size: 14px; font-weight: 500;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.qn img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; transition: transform .5s var(--ease); }
.qn .num { font-size: 10.5px; }
.qn:hover { border-color: var(--ink); }
.qn:hover img { transform: scale(1.08); }
.qn.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qn.on .num { color: var(--bronze-2); }
.quicknav__cta { flex: none; font-size: 14px; font-weight: 600; }
.quicknav__cta:hover { color: var(--bronze); }
.quicknav__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--bronze); transform: scaleX(var(--p, 0)); transform-origin: left; }
.svc-block { scroll-margin-top: 90px; }

/* ---------- Detail pages ---------- */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.fact { padding: 32px 24px 32px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.fact strong { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.detail__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 120px); }
.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); max-width: 68ch; }
.prose h2 { font-size: clamp(30px, 3vw, 42px); margin: 1.6em 0 .6em; color: var(--ink); }
.prose blockquote { margin: 2em 0; padding: 8px 0 8px 28px; border-left: 2px solid var(--bronze); font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; color: var(--ink); }
.prose > p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 92px; line-height: .8; padding: 8px 12px 0 0; color: var(--bronze); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/2; cursor: zoom-in; }
.gallery figure:first-child { grid-column: span 2; aspect-ratio: 16/8; }
.gallery figure:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 16/8; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 12, 7, .94); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.on { opacity: 1; visibility: visible; }
.lightbox img { max-height: 88vh; width: auto; border-radius: var(--radius); }
.lightbox button { position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 22px; }
.next-proj { display: block; position: relative; overflow: hidden; color: var(--white); padding: clamp(100px, 12vw, 180px) 0; text-align: center; }
.next-proj .bg { position: absolute; inset: 0; }
.next-proj .bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.next-proj:hover .bg img { transform: scale(1.05); }
.next-proj .bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 12, 7, .55); }
.next-proj .container { position: relative; z-index: 2; }

.aside-card { position: sticky; top: 120px; padding: 32px; background: var(--paper-2); border-radius: var(--radius); }
.aside-card h3 { font-size: 32px; margin: 12px 0 14px; }
.aside-card ul { list-style: none; padding: 0; margin: 20px 0 28px; }
.aside-card li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 10px; }
.aside-card li::before { content: "✓"; color: var(--bronze); }

.detail__grid--wide { grid-template-columns: 1.6fr 1fr; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(40px, 5vw, 64px); }
.chip { height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip sup { font-size: 10px; margin-left: 4px; opacity: .6; }

/* ---------- Blog ---------- */
.post-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(56px, 7vw, 100px); margin-bottom: clamp(56px, 7vw, 100px); border-bottom: 1px solid var(--line); }
.post-feature .post-card__media { aspect-ratio: 4/3; }
.post-feature .post-card__title { font-size: clamp(36px, 4vw, 60px); line-height: 1.02; }
.article-hero { padding: calc(var(--header-h) + 110px) 0 48px; text-align: center; }
.article-hero h1 { max-width: 18ch; margin: 24px auto; }
.article-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21/9; margin-bottom: clamp(56px, 7vw, 96px); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; }

/* ---------- About ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.value { padding: 48px 32px 0 0; }
.value + .value { padding-left: 32px; border-left: 1px solid var(--line-light); }
.value h3 { font-size: 36px; margin: 20px 0 14px; }
.value p { color: rgba(247, 241, 234, .65); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 48px); }
.team-card__media { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: filter .6s, transform 1.2s var(--ease); }
.team-card:hover .team-card__media img { filter: none; transform: scale(1.03); }
.team-card h3 { font-size: 36px; margin: 22px 0 6px; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas span { padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex: none; transition: transform .5s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--bronze); color: #fff; border-color: var(--bronze); }
.faq details p { padding: 0 60px 28px 0; color: var(--muted); margin: 0; max-width: 70ch; }

/* ---------- Contact / estimate ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 7vw, 120px); }
.contact__info { display: grid; gap: 32px; align-content: start; }
.contact__info .item small { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact__info .item > a, .contact__info .item > span { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.contact__info .item > a:hover { color: var(--bronze); }
.estimate { background: var(--white); border-radius: 10px; padding: clamp(28px, 4vw, 56px); box-shadow: 0 40px 80px -40px rgba(34, 21, 14, .25); }
.estimate__progress { display: flex; gap: 8px; margin-bottom: 36px; }
.estimate__progress i { flex: 1; height: 3px; border-radius: 2px; background: var(--paper-3); position: relative; overflow: hidden; }
.estimate__progress i::after { content: ""; position: absolute; inset: 0; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.estimate__progress i.on::after { transform: scaleX(1); }
.estimate__step { display: none; }
.estimate__step.on { display: block; animation: fadeUp .7s var(--ease) both; }
.estimate h3 { font-size: clamp(30px, 3vw, 42px); margin: 10px 0 28px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label {
  display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  font-weight: 500; transition: border-color .3s, background .3s, box-shadow .3s;
}
.opt label:hover { border-color: var(--ink); }
.opt input:checked + label { border-color: var(--bronze); background: rgba(161, 114, 68, .07); box-shadow: inset 0 0 0 1px var(--bronze); }
.opt label i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; position: relative; transition: border-color .3s; }
.opt input:checked + label i { border-color: var(--bronze); }
.opt input:checked + label i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bronze); }
.opt input:focus-visible + label { outline: 2px solid var(--bronze); outline-offset: 2px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid transparent; border-radius: 8px; padding: 15px 16px;
  transition: border-color .3s, background .3s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--bronze); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.estimate__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; }
.estimate__back { font-weight: 600; font-size: 14px; color: var(--muted); }
.estimate__back:hover { color: var(--ink); }
.estimate__done { text-align: center; padding: 40px 0; }
.estimate__done .check { width: 84px; height: 84px; border-radius: 50%; background: var(--bronze); color: #fff; display: grid; place-items: center; margin: 0 auto 28px; }
.estimate__done .check svg { width: 36px; height: 36px; }
.err { color: #b4482f; font-size: 13px; margin-top: 12px; min-height: 18px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-in-out); }
.reveal-img img { transform: scale(1.25); transition: transform 1.8s var(--ease); }
.reveal-img.in { clip-path: inset(0 0 0 0); }
.reveal-img.in img { transform: scale(1); }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
[data-parallax] { will-change: transform; }

/* ---------- Floating CTA (mobile) ---------- */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: none; gap: 10px;
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.fab.on { transform: none; }
.fab a { flex: 1; height: 54px; display: grid; place-items: center; border-radius: 999px; font-weight: 600; font-size: 15px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .4); }
.fab .call { background: var(--paper); color: var(--ink); flex: 0 0 54px; }
.fab .call svg { width: 20px; height: 20px; }
.fab .est { background: var(--bronze); color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .header__cta .phone-link { display: none; }
  .burger { display: block; }
  .svc-row { grid-template-columns: 56px 1fr 56px; }
  .svc-row__desc { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .topbar__left .hide-sm, .topbar__right { display: none; }
  .logo svg { height: 36px; }
  .logo__name { font-size: 18px; }
  .logo__sub { font-size: 8px; letter-spacing: .36em; }
  .header__cta .btn { display: none; }
  .hero__row { grid-template-columns: 1fr; }
  .hero__badge { display: none; }
  .hero__strip .container { grid-template-columns: 1fr 1fr; }
  .hero__strip a { padding: 16px 12px 16px 0; margin-right: 12px; font-size: 14px; }
  .hero__strip a:nth-child(2) { border-right: 0; margin-right: 0; }
  .hero__strip a:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .intro__grid, .ba__grid, .process__grid, .story__grid, .page-hero__grid, .detail__grid, .detail__grid--wide, .contact__grid, .post-feature, .svc-block { grid-template-columns: 1fr; }
  .svc-block:nth-child(even) .svc-block__media { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 32px; }
  .sec-head { grid-template-columns: 1fr; }
  .proj-bento { grid-template-columns: 1fr; }
  .proj-bento .proj-card:nth-child(n) { grid-column: auto; margin-top: 0; }
  .proj-bento .proj-card:nth-child(n) .proj-card__media { aspect-ratio: 4/3; }
  .proj-grid, .post-grid, .team-grid, .values { grid-template-columns: 1fr; }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-light); margin-top: 40px; }
  .process__sticky { position: static; }
  .process__img { display: none; }
  .step { grid-template-columns: 64px 1fr; padding: 32px 0; }
  .step__n { font-size: 42px; }
  .story__media { margin: 0 0 60px; }
  .story__media .inset { right: 0; }
  .story__seal { left: 12px; top: 12px; width: 104px; height: 104px; }
  .dc { min-height: 0; padding: 280px 0 var(--gutter); align-items: flex-end; }
  .dc__card { margin: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact, .fact + .fact { padding: 20px 12px 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .feat-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child, .gallery figure:last-child:nth-child(even) { grid-column: auto; aspect-ratio: 3/2; }
  .aside-card { position: static; }
  .opt-grid, .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hover-img { display: none; }
  .svc-row:hover { padding-left: 0; padding-right: 0; color: inherit; }
  .svc-row:hover::before { transform: scaleY(0); }
  .fab { display: flex; }
  .article-cover { aspect-ratio: 4/3; }
  .quicknav__label, .quicknav__cta { display: none; }
  .quicknav__inner { height: 64px; padding-right: 0; }
  .qn { height: 42px; font-size: 13.5px; }
  .qn img { width: 30px; height: 30px; }
  body.hdr-shown .quicknav { top: var(--header-h); }
  .page-hero--img { min-height: 72svh; }
}
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .cta__actions .btn { width: 100%; justify-content: space-between; }
  .svc-row { grid-template-columns: 40px 1fr 44px; gap: 14px; padding: 26px 0; }
  .svc-row__arrow { width: 44px; height: 44px; }
  .testi__quote { font-size: 28px; }
  .ba__knob { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-img, .fade-up { opacity: 1; transform: none; clip-path: none; }
  .statement .w { opacity: 1; }
}

/* ==========================================================================
   Inventory, listing pages, founder & story (added with the admin panel)
   ========================================================================== */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.statement em { color: var(--bronze); }
.dark .statement em { color: var(--bronze-2); }

/* inventory cards */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.inv-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(34, 21, 14, .35); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.inv-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(34, 21, 14, .45); }
.inv-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.inv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.inv-card:hover .inv-card__media img { transform: scale(1.05); }
.inv-card__body { padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; }
.inv-card__kind { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.inv-card h3 { font-size: clamp(32px, 3vw, 44px); margin: 12px 0 12px; }
.inv-card p { color: var(--ink-2); margin: 0 0 20px; }
.inv-specs { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.inv-specs li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--muted); }
.inv-specs b { color: var(--ink); font-weight: 600; }
.inv-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.inv-price { font-family: var(--serif); font-size: 22px; }
.inv-badge { position: absolute; left: 18px; top: 18px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #b98552, #7c5229); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.inv-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot { 50% { opacity: .35; } }
.inv-badge--live { background: linear-gradient(135deg, #3d8a5a, #24603b); }
.inv-badge--pending { background: linear-gradient(135deg, #5a6f8c, #3a4a63); }
.inv-badge--sold { background: var(--ink); }
.inv-badge--sold::before { animation: none; }
.inv-badge--inline { position: static; height: 28px; margin-right: 14px; vertical-align: middle; font-size: 11px; }
.inv-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; }
.inv-empty .lead { margin: 16px auto 28px; }

/* listing page */
.listing-block { margin-bottom: clamp(56px, 7vw, 100px); }
.listing-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.gallery--plans figure, .gallery--plans figure:first-child, .gallery--plans figure:last-child:nth-child(even) { grid-column: auto; aspect-ratio: auto; background: var(--white); padding: clamp(10px, 1.5vw, 20px); }
.gallery--plans img { object-fit: contain; max-height: 80vh; margin: 0 auto; width: auto; }
.listing-note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin: 0 0 clamp(40px, 6vw, 80px); max-width: 80ch; }
.interest__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.interest-form .btn { margin-top: 8px; }

/* about: story + founder */
.story-full { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 120px); }
.story-full__text p { margin: 0 0 1.2em; }
.founder__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.founder__media { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; }
.founder__media img { width: 100%; height: 100%; object-fit: cover; }
.founder__text { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.25; margin: 22px 0 28px; }
.founder__sig { display: flex; flex-direction: column; gap: 4px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.founder__sig strong { font-family: var(--brand); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; }
.founder__sig span { color: var(--muted); font-size: 14px; }
.verse { margin: 32px 0 0; padding: 28px 32px; background: var(--night); color: var(--paper); border-radius: 10px; position: relative; overflow: hidden; }
.verse::before { content: "“"; position: absolute; right: 18px; top: -30px; font-family: var(--serif); font-size: 180px; color: var(--bronze); opacity: .35; line-height: 1; }
.verse blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; position: relative; }
.verse figcaption { margin-top: 14px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze-2); font-weight: 600; }

@media (max-width: 900px) {
  .interest__grid, .story-full, .founder__grid { grid-template-columns: 1fr; }
  .founder__media { aspect-ratio: 4 / 3; }
  .listing-block__head { flex-direction: column; gap: 10px; }
  [data-render=listing-facts] { grid-template-columns: 1fr 1fr !important; }
}

/* lots table + WhatsApp button */
.lots-table { overflow-x: auto; background: var(--white); border-radius: 10px; box-shadow: 0 30px 60px -45px rgba(34, 21, 14, .35); }
.lots-table table { width: 100%; border-collapse: collapse; min-width: 520px; }
.lots-table th { text-align: left; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.lots-table td { padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 16px; }
.lots-table tr:last-child td { border-bottom: 0; }
.lots-table b { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.lots-table tr.is-sold td { color: var(--muted); }
.lots-table .inv-badge { margin: 0; }
.fab .wa { background: #25d366 !important; color: #fff !important; }

/* leave-a-review page */
.review__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.review__badge { display: grid; gap: 6px; padding: 28px; background: var(--night); color: var(--paper); border-radius: 10px; margin-bottom: 32px; }
.review__badge strong { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; }
.review__badge .stars { color: #e3b268; letter-spacing: .15em; font-size: 20px; }
.review__badge small { color: rgba(247, 241, 234, .65); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 4px; width: max-content; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 40px; line-height: 1; color: var(--paper-3); cursor: pointer; transition: color .15s, transform .15s; margin: 0 !important; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #d79b3a; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--bronze); border-radius: 4px; }
.star-input__txt { order: -1; margin-left: 14px; font-size: 14px; color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 18px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--bronze); flex: none; }
.testi__cta { margin-top: 36px; }
@media (max-width: 900px) { .review__grid { grid-template-columns: 1fr; } }

/* founder: logo panel shown until a real photo is uploaded */
.founder__mono { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--night); color: var(--paper); text-align: center; padding: 40px; --logo-s: #c49464; }
.founder__mono svg { width: min(46%, 200px); height: auto; margin-bottom: 18px; }
.founder__mono strong { font-family: var(--brand); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: 18px; }
.founder__mono span { color: rgba(247, 241, 234, .6); font-size: 14px; }
.founder .verse { background: var(--night); }
.story-full + .container .stats { margin-top: clamp(56px, 7vw, 96px); }
