/* ==========================================================================
   Taha Properties Limited — Home (2026 redesign)
   Light, editorial luxury. Palette: #f5f5f5 paper + #d1b26f gold.
   Built from scratch; no shared markup with the previous home.
   ========================================================================== */

:root {
  --paper: #f5f5f5;
  --paper-warm: #efe9db;
  --panel: #ffffff;
  --ink: #1b1917;
  --ink-soft: #423d36;
  --muted: #7c766b;
  --faint: #a8a196;
  --line: rgba(27, 25, 23, 0.10);
  --line-soft: rgba(27, 25, 23, 0.06);

  --gold: #d1b26f;
  --gold-deep: #b1904c;
  --gold-tint: rgba(209, 178, 111, 0.14);

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --script: "Beau Rivage", cursive;

  --wrap: 1280px;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body.tpl-home {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.tpl-home img,
body.tpl-home video { max-width: 100%; display: block; }
body.tpl-home a { text-decoration: none; }
body.tpl-home a:not(.tpl-btn):not(.tpl-nav__cta-btn) { color: inherit; }
body.tpl-home button { font-family: inherit; }
body.tpl-home ::selection { background: var(--gold); color: #fff; }
body.tpl-home :focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.tpl-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---- Typography helpers ---- */
.tpl-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.tpl-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.tpl-eyebrow.is-centered::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.tpl-display {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.tpl-display em { font-style: italic; color: var(--gold-deep); }

h1.tpl-display { font-size: clamp(2.8rem, 7vw, 6rem); }
h2.tpl-display { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h3.tpl-display { font-size: clamp(1.6rem, 3vw, 2.4rem); }

.tpl-lead {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.7;
}

.tpl-script { font-family: var(--script); color: var(--gold-deep); font-weight: 400; }

/* ---- Buttons (CSS specular sheen) ---- */
.tpl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05em 2.1em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease);
}
.tpl-btn > span { position: relative; z-index: 2; }
.tpl-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s var(--ease);
}
.tpl-btn:hover::after { left: 130%; }

.tpl-btn--gold { background: var(--gold); color: #241d0e; box-shadow: 0 12px 30px -12px rgba(177, 144, 76, 0.6); }
.tpl-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(177, 144, 76, 0.75); }

.tpl-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.tpl-btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }

.tpl-btn--dark { background: var(--ink); color: #f3ede0; }
.tpl-btn--dark:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -16px rgba(0,0,0,0.5); }

/* ---- Reveal utility ---- */
.tpl-reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); will-change: opacity, transform; }
.tpl-reveal.is-in { opacity: 1; transform: none; }
.tpl-reveal[data-delay="1"] { transition-delay: 0.09s; }
.tpl-reveal[data-delay="2"] { transition-delay: 0.18s; }
.tpl-reveal[data-delay="3"] { transition-delay: 0.27s; }
.tpl-reveal[data-delay="4"] { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .tpl-reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.tpl-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px var(--pad) 80px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--paper) 46%, var(--paper-warm) 100%);
}
.tpl-hero__threads {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(80% 70% at 50% 46%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 46%, #000 30%, transparent 100%);
}
.tpl-hero__inner { position: relative; z-index: 2; max-width: 1000px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.tpl-hero__eyebrow { opacity: 0; transform: translateY(14px); }
.tpl-hero__eyebrow.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease) 0.1s, transform 0.9s var(--ease) 0.1s; }

.tpl-stroke { width: 100%; max-width: 940px; }
.tpl-stroke svg { display: block; width: 100%; height: auto; overflow: visible; }
.tpl-stroke__stroke, .tpl-stroke__fill { user-select: none; }

.tpl-hero__sub { max-width: 52ch; margin: 0 auto; font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--muted); opacity: 0; transform: translateY(16px); }
.tpl-hero__sub.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease) 0.5s, transform 1s var(--ease) 0.5s; }

.tpl-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; opacity: 0; transform: translateY(16px); }
.tpl-hero__actions.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease) 0.68s, transform 1s var(--ease) 0.68s; }

.tpl-hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}
.tpl-hero__scroll .line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.tpl-hero__scroll .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold-deep); animation: tpl-scroll-dot 2.2s var(--ease) infinite; }
@keyframes tpl-scroll-dot { 0% { top: -50%; } 100% { top: 120%; } }

/* ==========================================================================
   SCROLL-EXPAND CINEMATIC
   ========================================================================== */
.tpl-expand { position: relative; width: 100%; }
.tpl-expand__track { position: relative; width: 100%; }
.tpl-expand__stage { position: sticky; top: 0; height: 100svh; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tpl-expand__frame { position: absolute; inset: 0; clip-path: inset(21% 29% round 26px); will-change: clip-path; overflow: hidden; }
.tpl-expand__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transform-origin: center; will-change: transform; }
.tpl-expand__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,13,9,0.82) 0%, rgba(16,13,9,0.62) 50%, rgba(16,13,9,0.86) 100%); opacity: 0; }
.tpl-expand__title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 8%;
  font-family: var(--display); font-weight: 300; color: #fff; line-height: 1.02;
  font-size: clamp(2.4rem, 6vw, 5.4rem); letter-spacing: -0.01em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.35); will-change: opacity, transform; z-index: 2;
}
.tpl-expand__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; text-align: center; padding: 0 8%; color: #f4efe6; opacity: 0; z-index: 3; will-change: opacity, transform;
}
.tpl-expand__overlay h2 { color: #fff; max-width: 20ch; text-shadow: 0 2px 30px rgba(0,0,0,0.55); }
.tpl-expand__overlay p { color: rgba(248, 244, 236, 0.92); max-width: 54ch; text-shadow: 0 1px 16px rgba(0,0,0,0.6); }
.tpl-expand__overlay .tpl-eyebrow { text-shadow: 0 1px 14px rgba(0,0,0,0.6); }

/* ==========================================================================
   STATS
   ========================================================================== */
.tpl-stats { background: var(--paper-warm); padding: clamp(64px, 8vw, 110px) 0; }
.tpl-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.tpl-stat { text-align: center; padding: 0 12px; border-right: 1px solid var(--line-soft); }
.tpl-stat:last-child { border-right: none; }
.tpl-stat__num { font-family: var(--display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.4rem); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.tpl-stat__num .suffix { color: var(--gold-deep); }
.tpl-stat__label { margin-top: 14px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */
.tpl-section { padding: clamp(80px, 11vw, 170px) 0; position: relative; }
.tpl-section.bg-paper { background: var(--paper); }
.tpl-section.bg-warm { background: var(--paper-warm); }
.tpl-section.bg-ink { background: var(--ink); color: #d9d2c6; }
.tpl-section-head { max-width: 780px; }
.tpl-section-head.is-centered { margin: 0 auto; text-align: center; }
.tpl-section-head h2 { margin-top: 22px; }
.tpl-section-head p { margin-top: 22px; }

/* ---- ScrollFloat (char lift) ---- */
.tpl-float { display: inline-block; }
.tpl-float .char { display: inline-block; will-change: transform, opacity; }

/* ---- FoldText ---- */
.tpl-fold { display: inline-block; line-height: 0.98; letter-spacing: -0.03em; perspective: 800px; }
.tpl-fold .seg { display: inline-block; transform-style: preserve-3d; }
.tpl-fold .piece { display: inline-block; transform-origin: 50% 0%; will-change: transform, opacity; backface-visibility: hidden; }

/* ==========================================================================
   DEVELOPMENTS (tilted cards)
   ========================================================================== */
.tpl-devs__grid { margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }
.tpl-tilt { position: relative; perspective: 1100px; }
.tpl-tilt__card {
  position: relative; border-radius: 20px; overflow: hidden; transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.5); background: #100e0c; display: block;
}
.tpl-tilt__media { aspect-ratio: 4 / 5; overflow: hidden; }
.tpl-tilt__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.1s var(--ease), filter 0.6s var(--ease); }
.tpl-tilt:hover .tpl-tilt__media img { transform: scale(1.1); }
.tpl-tilt__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,6,0.92) 0%, rgba(10,8,6,0.55) 34%, transparent 68%); pointer-events: none; }
.tpl-tilt__content { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); transform: translateZ(40px); }
.tpl-tilt__status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: #f0d9a4; margin-bottom: 14px; text-shadow: 0 1px 10px rgba(0,0,0,0.7); }
.tpl-tilt__status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.tpl-tilt__status.is-sold { color: #cbb9a0; }
.tpl-tilt__status.is-sold .dot { background: #cbb9a0; box-shadow: none; }
.tpl-tilt__logo { height: 44px; width: auto; max-width: 80%; object-fit: contain; object-position: left bottom; margin-bottom: 16px; opacity: 0.98; }
.tpl-tilt__name { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: #fff; margin: 0; }
.tpl-tilt__meta { margin-top: 6px; color: rgba(244,239,230,0.78); font-size: 0.92rem; min-height: 2.9em; }
.tpl-tilt__corner { position: absolute; top: 22px; right: 22px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(20,17,12,0.25); transition: background 0.4s var(--ease), transform 0.4s var(--ease); }
.tpl-tilt:hover .tpl-tilt__corner { background: var(--gold); color: #241d0e; transform: translate(2px, -2px); }

/* ==========================================================================
   INTERIORS (DriftWall reuse) — light frame
   ========================================================================== */
.tpl-interiors { position: relative; background: var(--ink); overflow: hidden; }
.tpl-interiors__head { position: relative; z-index: 3; text-align: center; padding: clamp(70px, 9vw, 120px) var(--pad) 0; }
.tpl-interiors__head .tpl-eyebrow { color: var(--gold); }
.tpl-interiors__head .tpl-eyebrow::before, .tpl-interiors__head .tpl-eyebrow.is-centered::after { background: var(--gold); }
.tpl-interiors__head h2 { color: #fff; }
.tpl-interiors__head p { color: rgba(217, 210, 198, 0.7); margin-left: auto; margin-right: auto; }
.tpl-interiors__wall { height: 86vh; position: relative; z-index: 1; }

/* ==========================================================================
   ACCORDION GALLERY (exteriors)
   ========================================================================== */
.tpl-accordion { display: flex; gap: 12px; width: 100%; perspective: 1500px; margin-top: 60px; height: clamp(380px, 52vw, 560px); }
.tpl-acc-panel {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 18px; overflow: hidden; cursor: pointer;
  transform-style: preserve-3d; background: #0c0a08; box-shadow: 0 20px 50px -30px rgba(0,0,0,0.7);
}
.tpl-acc-panel__media { position: absolute; top: 50%; left: 50%; height: 100%; width: 130%; transform: translate(-50%, -50%); }
.tpl-acc-panel__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.85) brightness(0.82); transition: filter 0.6s var(--ease); }
.tpl-acc-panel.is-active .tpl-acc-panel__media img { filter: grayscale(0) brightness(1); }
.tpl-acc-panel__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,6,0.72), transparent 55%); }
.tpl-acc-panel__label { position: absolute; left: 22px; bottom: 22px; right: 22px; display: flex; align-items: center; gap: 12px; z-index: 2; }
.tpl-acc-panel__bar { width: 3px; height: 26px; border-radius: 3px; background: var(--gold); opacity: 0; }
.tpl-acc-panel__text { color: #fff; font-family: var(--display); font-weight: 400; font-size: clamp(1.1rem, 1.6vw, 1.5rem); white-space: nowrap; opacity: 0; }

/* ==========================================================================
   WHY TAHA (feature list)
   ========================================================================== */
.tpl-why__grid { margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; }
.tpl-why__cell { background: var(--paper); padding: clamp(30px, 4vw, 52px); position: relative; transition: background 0.4s var(--ease); }
.tpl-why__cell:hover { background: #fff; }
.tpl-why__num { font-family: var(--display); font-size: 1.1rem; color: var(--gold-deep); letter-spacing: 0.1em; }
.tpl-why__cell h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.9rem); color: var(--ink); margin: 20px 0 12px; }
.tpl-why__cell p { color: var(--muted); font-size: 0.98rem; max-width: 40ch; }
.tpl-why__cell::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.5s var(--ease); }
.tpl-why__cell:hover::after { width: 100%; }

/* ==========================================================================
   SIGNATURE STATEMENT (dark)
   ========================================================================== */
.tpl-signature { background: var(--ink); color: #e8e1d4; text-align: center; padding: clamp(110px, 16vw, 220px) 0; position: relative; overflow: hidden; }
.tpl-signature__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.tpl-signature__tint { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 20%, rgba(20,17,12,0.85) 100%); }
.tpl-signature__inner { position: relative; z-index: 2; }
.tpl-signature h2 { color: #fff; max-width: 18ch; margin: 0 auto; line-height: 1; }
.tpl-signature .tpl-script { font-size: clamp(2.2rem, 5.5vw, 4.2rem); display: block; line-height: 0.8; margin-bottom: -0.18em; }
.tpl-signature__cta { margin-top: 44px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tpl-footer { background: #100e0c; color: #b7b0a4; padding: clamp(64px, 8vw, 110px) 0 40px; }
.tpl-footer__top { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-end; justify-content: space-between; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.tpl-footer__top h2 { color: #fff; max-width: 16ch; }
.tpl-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 56px 0; }
.tpl-footer__about img { height: 34px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 18px; }
.tpl-footer__about p { max-width: 30ch; color: #8f887c; font-size: 0.95rem; }
.tpl-footer h4 { color: #fff; font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 18px; }
.tpl-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tpl-footer ul a { color: #9a9286; font-size: 0.95rem; transition: color 0.3s var(--ease); }
.tpl-footer ul a:hover { color: var(--gold); }
.tpl-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; color: #6f685d; }

/* WhatsApp FAB */
.tpl-fab { position: fixed; right: 22px; bottom: 22px; z-index: 210; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -10px rgba(37,211,102,0.6); transition: transform 0.3s var(--ease); }
.tpl-fab:hover { transform: scale(1.07); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 940px) {
  .tpl-nav__links, .tpl-nav__cta { display: none; }
  .tpl-nav__burger { display: flex; }
  .tpl-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .tpl-stat:nth-child(2) { border-right: none; }
  .tpl-devs__grid { grid-template-columns: 1fr; }
  .tpl-why__grid { grid-template-columns: 1fr; }
  .tpl-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tpl-accordion { height: auto; flex-direction: column; }
  .tpl-acc-panel { flex: none; height: 220px; }
  .tpl-acc-panel__media { width: 100%; }
  /* Stacked panels have no hover to reveal captions on — show them all, and
     drop the grayscale-until-active treatment since every panel is equally
     in view now, not just the "active" one. */
  .tpl-acc-panel__bar, .tpl-acc-panel__text { opacity: 1; }
  .tpl-acc-panel .tpl-acc-panel__media img { filter: grayscale(0) brightness(1); }
}
@media (max-width: 560px) {
  .tpl-stats__grid { grid-template-columns: 1fr; }
  .tpl-stat { border-right: none; border-bottom: 1px solid var(--line-soft); padding-bottom: 26px; }
  .tpl-stat:last-child { border-bottom: none; }
  .tpl-footer__grid { grid-template-columns: 1fr; }
  .tpl-footer__top { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   ADDITIONS — hero logo, masonry interiors, fold fix, image feature cards
   ========================================================================== */

/* Hero logo fade-in */
.tpl-hero__logo {
  width: clamp(150px, 20vw, 250px);
  height: auto;
  margin: 0 auto -6px;
  opacity: 0;
  transform: translateY(26px) scale(0.9);
  filter: blur(6px);
}
.tpl-hero__logo.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 2.4s var(--ease), transform 2.4s var(--ease), filter 2.4s var(--ease);
}

/* Interiors → light Masonry gallery (distinct from Galaxy's drift wall) */
.tpl-interiors { background: var(--paper); }
.tpl-interiors__head { padding-bottom: 0; }
.tpl-interiors__head .tpl-eyebrow { color: var(--gold-deep); }
.tpl-interiors__head .tpl-eyebrow::before,
.tpl-interiors__head .tpl-eyebrow.is-centered::after { background: var(--gold); }
.tpl-interiors__head h2 { color: var(--ink); }
.tpl-interiors__head p { color: var(--muted); }
.tpl-interiors__masonry { margin: 56px auto 0; padding: 0 var(--pad); max-width: calc(var(--wrap) + 40px); }
/* Clean bento grid — 10 images tile a perfect 4×3 rectangle */
.tpl-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 210px);
  gap: 12px;
  width: 100%;
}
.tpl-masonry__item {
  position: relative; overflow: hidden; border-radius: 14px; cursor: pointer;
  box-shadow: 0 22px 50px -34px rgba(0,0,0,0.4); will-change: transform, opacity, filter;
}
.tpl-masonry__item:nth-child(1) { grid-column: span 2; }
.tpl-masonry__item:nth-child(6) { grid-column: span 2; }
.tpl-masonry__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
@media (max-width: 760px) {
  .tpl-masonry { grid-template-columns: repeat(2, 1fr); }
  .tpl-masonry__item:nth-child(1), .tpl-masonry__item:nth-child(6) { grid-column: span 1; }
}
.tpl-masonry__item:hover img { transform: scale(1.07); }
.tpl-masonry__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; color: #fff;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(12,10,8,0.75)); opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.tpl-masonry__item:hover .tpl-masonry__cap { opacity: 1; transform: none; }

/* FoldText — keep words intact, break only at spaces */
.tpl-fold { white-space: normal; }
.tpl-fold .word { display: inline-block; white-space: nowrap; }

/* Why Taha → image feature cards with masked-heading + border-glow */
.tpl-why__cards { margin-top: 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tpl-why__card {
  position: relative; min-height: 360px; border-radius: 14px; overflow: hidden;
  display: block; text-decoration: none; isolation: isolate; background: var(--ink);
}
.tpl-why__card-bg { position: absolute; inset: 0; z-index: 0; }
.tpl-why__card-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.12; transition: opacity 0.55s var(--ease); }
.tpl-why__card-bg::after { content: ""; position: absolute; inset: 0; background: rgba(12,10,8,0.62); transition: opacity 0.55s var(--ease); }
.tpl-why__card:hover .tpl-why__card-bg img { opacity: 0.9; }
.tpl-why__card:hover .tpl-why__card-bg::after { opacity: 0; }
.tpl-why__card-body { position: relative; z-index: 2; min-height: 360px; padding: 32px; display: flex; flex-direction: column; }
.tpl-why__card .tpl-why__num { color: var(--gold); transition: opacity 0.4s var(--ease); }
.tpl-why__card .gx-masked-heading-mount {
  flex: none; width: 100%; max-width: 100%; height: 120px; margin: auto 0 12px;
  display: flex; align-items: center; justify-content: flex-start;
  font-family: var(--display); color: #fff;
}
.tpl-why__card p { color: rgba(244,239,230,0.82); font-size: 0.95rem; max-width: 40ch; transition: opacity 0.4s var(--ease); }
.tpl-why__card:hover .tpl-why__num,
.tpl-why__card:hover p { opacity: 0; }
@media (max-width: 760px) {
  .tpl-why__cards { grid-template-columns: 1fr; }
}

/* Hero logo — enlarged focal variant (home) */
.tpl-hero__logo--lg { width: clamp(220px, 30vw, 380px); margin-bottom: 10px; }
.tpl-hero .tpl-hero__actions { margin-top: 8px; }

/* Word-style stat (non-numeric, e.g. Premium / Kampala) */
.tpl-stat__num--word { font-size: clamp(1.9rem, 3vw, 3rem); letter-spacing: 0; }

/* Living page — Silk hero background (subtle cream + gold) */
.tpl-hero__silk {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
  overflow: hidden;
  mask-image: radial-gradient(105% 95% at 50% 45%, #000 58%, transparent 100%);
  -webkit-mask-image: radial-gradient(105% 95% at 50% 45%, #000 58%, transparent 100%);
}
/* Soft cream veil, concentrated behind the headline so the gold text stays legible */
.tpl-hero__silk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 42% at 50% 46%, rgba(245,245,245,0.55), rgba(245,245,245,0.12) 60%, transparent);
  pointer-events: none;
}

/* About page — dark silk hero with two-line stroke headline (white + gold) */
.tpl-hero--dark {
  background: radial-gradient(120% 95% at 50% 0%, #2a2521 0%, #17130e 55%, #100c08 100%);
}
.tpl-hero--dark .tpl-hero__eyebrow { color: #d1b26f; }
.tpl-hero--dark .tpl-hero__eyebrow::before { background: #d1b26f; }
.tpl-hero--dark .tpl-hero__sub { color: rgba(240, 235, 226, 0.82); }
.tpl-hero--dark .tpl-hero__scroll { color: rgba(240, 235, 226, 0.5); }
.tpl-hero--dark .tpl-hero__scroll .line { background: linear-gradient(var(--gold), transparent); }
.tpl-hero__silk--dark::after {
  background: radial-gradient(60% 55% at 50% 47%, rgba(14, 11, 8, 0.5), rgba(14, 11, 8, 0.16) 58%, transparent);
}

/* Contact — cream silk with a warm "dusk" pedestal behind the headline so the
   gold text reads. Keeps the light silk edges (still cream + gold) but drops a
   soft dark glow under the words, which the gold Silk bands otherwise swallow.
   The pedestal is its own layer (z-index 1, between the silk and the content)
   so it darkens at full strength instead of being capped by the silk's opacity. */
.tpl-hero--dusk .tpl-hero__silk::after { background: none; }
.tpl-hero--dusk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(56% 42% at 50% 44%, rgba(16, 11, 5, 0.78), rgba(16, 11, 5, 0.34) 52%, transparent 78%);
}
.tpl-hero--dusk .tpl-hero__eyebrow { color: #ecd08a; }
.tpl-hero--dusk .tpl-hero__eyebrow::before { background: #ecd08a; }
.tpl-hero--dusk .tpl-hero__sub { color: rgba(246, 240, 229, 0.9); }
.tpl-hero--dusk .tpl-hero__scroll { color: rgba(246, 240, 229, 0.6); }
.tpl-hero--dusk .tpl-hero__scroll .line { background: linear-gradient(var(--gold), transparent); }
.tpl-stroke-stack { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 900px; }
.tpl-stroke-stack .tpl-stroke { max-width: 100%; }

/* About — approach split layout */
.tpl-about-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.tpl-about-media img { width: 100%; border-radius: 16px; box-shadow: 0 30px 70px -42px rgba(0,0,0,0.45); }
@media (max-width: 820px) { .tpl-about-split { grid-template-columns: 1fr; } }

/* Contact page — info + form */
.tpl-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 64px); }
.tpl-contact-grid > * { min-width: 0; }
.tpl-contact-list { list-style: none; padding: 0; margin: 0 0 30px; }
.tpl-contact-list li { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
.tpl-contact-list strong { color: var(--ink); font-weight: 500; }
.tpl-contact-list a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.tpl-map-link { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; background: var(--paper-warm); border: 1px solid var(--line-soft); border-radius: 16px; height: 210px; text-align: center; color: var(--ink); transition: background 0.4s var(--ease); }
.tpl-map-link:hover { background: #fff; }
.tpl-map-link .lbl { font-family: var(--display); font-size: 1.2rem; }
.tpl-map-link .sub { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }

.form-panel { background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 70px -46px rgba(0,0,0,0.4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: var(--sans); font-size: 0.95rem; color: var(--ink); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.field textarea { min-height: 120px; resize: vertical; }
.tpl-btn.btn-block { width: 100%; margin-top: 6px; }
.form-note { font-size: 0.8rem; color: var(--faint); margin-top: 14px; }
.form-success, .form-error { display: none; padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem; }
.form-success.visible { display: block; background: rgba(120,160,90,0.16); color: #4a6b2e; }
.form-error.visible { display: block; background: rgba(180,70,60,0.12); color: #8a3b2e; }
@media (max-width: 820px) { .tpl-contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* Video-backed statement (Living) — uniform full-bleed bands */
.tpl-video-statement { position: relative; overflow: hidden; background: var(--ink); min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
.tpl-video-statement > .tpl-wrap { position: relative; z-index: 2; width: 100%; }
/* Principle cells as glass cards over the video */
.tpl-video-statement .tpl-why__grid { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.14); }
.tpl-video-statement .tpl-why__cell { background: rgba(24,20,15,0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tpl-video-statement .tpl-why__cell:hover { background: rgba(24,20,15,0.6); }
.tpl-video-statement .tpl-why__num { color: var(--gold); }
.tpl-video-statement .tpl-why__cell h3 { color: #fff; }
.tpl-video-statement .tpl-why__cell p { color: rgba(244,239,230,0.8); }
.tpl-video-statement__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.tpl-video-statement__tint { position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 50%, rgba(16,13,9,0.45) 0%, rgba(16,13,9,0.82) 100%); }
.tpl-video-statement .tpl-eyebrow { color: var(--gold); }
.tpl-video-statement .tpl-eyebrow::before, .tpl-video-statement .tpl-eyebrow.is-centered::after { background: var(--gold); }
.tpl-video-statement .tpl-display { color: #fff; }
.tpl-video-statement .tpl-lead { color: rgba(244,239,230,0.85); }

/* ScrollStack — pinned, stacking commitment cards over a dark gold Silk (Living) */
.tpl-stack-section { position: relative; overflow: hidden; background: #100d09; padding: clamp(64px, 9vw, 120px) 0 0; }
.tpl-stack-silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.55; }
.tpl-stack-silk::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 90% at 50% 22%, rgba(20,15,8,0.32) 0%, rgba(12,9,5,0.9) 100%); }
.tpl-stack-section > .tpl-wrap { position: relative; z-index: 2; }
.tpl-stack-section .tpl-eyebrow { color: var(--gold); }
.tpl-stack-section .tpl-eyebrow::before, .tpl-stack-section .tpl-eyebrow.is-centered::after { background: var(--gold); }
.tpl-stack-section .tpl-display { color: #fff; }

.scroll-stack-scroller { position: relative; width: 100%; }
.scroll-stack-inner { max-width: 860px; margin: 0 auto; padding: clamp(28px, 6vh, 64px) 0 34vh; }
.scroll-stack-card {
  position: relative; height: 300px; width: 100%; margin: 0 auto;
  border-radius: 30px; padding: clamp(30px, 4.4vw, 54px); box-sizing: border-box;
  display: flex; align-items: center; gap: clamp(22px, 3.2vw, 48px);
  box-shadow: 0 34px 70px rgba(0,0,0,0.42); overflow: hidden;
}
.scroll-stack-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,0.22); pointer-events: none; }
.tpl-stack-num { flex: none; font-family: var(--display); font-weight: 500; line-height: 0.9; font-size: clamp(3.2rem, 7vw, 5.6rem); letter-spacing: -0.01em; }
.tpl-stack-body h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.5vw, 2.3rem); margin: 0 0 12px; color: inherit; }
.tpl-stack-body p { font-size: 1.02rem; line-height: 1.6; max-width: 46ch; margin: 0; color: inherit; opacity: 0.86; }

.tpl-stack-card--1 { background: linear-gradient(135deg, #efdcaa 0%, #dbc07f 100%); color: #2c2308; }
.tpl-stack-card--1 .tpl-stack-num { color: rgba(44,35,8,0.5); }
.tpl-stack-card--2 { background: linear-gradient(135deg, #d2af5c 0%, #b1904c 100%); color: #271d07; }
.tpl-stack-card--2 .tpl-stack-num { color: rgba(39,29,7,0.5); }
.tpl-stack-card--3 { background: linear-gradient(135deg, #9c7b34 0%, #6d5324 100%); color: #fbf3e0; }
.tpl-stack-card--3 .tpl-stack-num { color: rgba(251,243,224,0.55); }
.scroll-stack-end { width: 100%; height: 1px; }

@media (max-width: 700px) {
  .scroll-stack-card { height: auto; min-height: 260px; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; }
  .scroll-stack-inner { padding-bottom: 28vh; }
}
