/* ============================================================
   VERA ESTATES — "Emirates Gold" alternate template (index-3)
   Deep midnight navy + sand ivory + champagne gold. Refined
   hotel-serif (Cormorant Garamond) + clean geometric sans
   (Jost). Arch image frames, gold hairlines, Gulf-light palette.
   ============================================================ */

:root {
  --midnight: #0a1526;       /* deep navy-black */
  --midnight-2: #10203a;     /* raised navy panel */
  --midnight-3: #0d1a2e;
  --sand: #f1e9db;           /* warm sand paper */
  --sand-2: #e8ddca;         /* deeper sand panel */
  --ivory: #faf6ee;          /* near-white */
  --gold: #c6a15b;           /* champagne gold */
  --gold-2: #d9bc83;         /* lighter gold */
  --gold-line: rgba(198, 161, 91, 0.4);
  --line: rgba(10, 21, 38, 0.14);        /* hairline on sand */
  --line-light: rgba(250, 246, 238, 0.16); /* hairline on navy */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }

/* ---------- Motion primitives (curtain, cursor, reveals) ---------- */
.template-3 #page-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--midnight);
}
.template-3 #page-overlay .ov-word {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.template-3 #page-overlay .ov-word::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
}
.template-3 .cursor-ring,
.template-3 .cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.template-3 .cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--gold);
}
.template-3 .cursor-ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(198, 161, 91, 0.7);
  transition: transform 0.35s ease, opacity 0.4s ease, background-color 0.35s ease;
}
@media (pointer: fine) {
  .template-3 .cursor-dot.is-on,
  .template-3 .cursor-ring.is-on { opacity: 1; }
  .template-3 .cursor-ring.is-hover {
    transform: scale(1.6);
    background: rgba(198, 161, 91, 0.08);
  }
}

/* Elements animated in by JS only — content stays visible without JS */
.template-3 [data-reveal3],
.template-3 [data-reveal-group3] > * { will-change: transform, opacity; }
.template-3 [data-clip3] { will-change: clip-path; }
.template-3 .hero3 .arch,
.template-3 .card3 .media,
.template-3 .frame-rect,
.template-3 .cat3 img,
.template-3 .voices3 .arch,
.template-3 .post3-row,
.template-3 .home3-row { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .template-3 *, .template-3 *::before, .template-3 *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body.template-3 {
  background: var(--sand);
  color: var(--midnight);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.template-3 ::selection { background: var(--gold); color: var(--midnight); }

/* ---------- Type ---------- */
.template-3 .serif,
.template-3 h1, .template-3 h2, .template-3 h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.12;
  margin: 0;
}
.template-3 .mono {
  font-family: "Jost", sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Kicker: letterspaced gold label above headings */
.template-3 .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}
.template-3 .kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}
.template-3 .kicker.on-navy { color: var(--gold-2); }

/* ---------- Layout ---------- */
.template-3 .wrap { width: min(1280px, calc(100% - 4rem)); margin-inline: auto; }
.template-3 .sec3 { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.template-3 .sec3-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.6rem, 5vw, 4.2rem);
}
.template-3 .sec3-head h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.template-3 .sec3-head h2 em { font-style: italic; color: var(--gold); }
.template-3 .sec3-head .note {
  max-width: 26rem;
  font-size: 0.92rem;
  opacity: 0.62;
  line-height: 1.75;
}

/* ---------- Buttons / links ---------- */
.template-3 .btn3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.1rem 2.1rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.template-3 .btn3:hover { background: var(--gold); color: var(--midnight); }
.template-3 .btn3.btn-gold { background: var(--gold); color: var(--midnight); border-color: var(--gold); }
.template-3 .btn3.btn-gold:hover { background: transparent; color: var(--gold); }
.template-3 .btn3.btn-navy { background: var(--midnight); color: var(--ivory); border-color: var(--midnight); }
.template-3 .btn3.btn-navy:hover { background: var(--gold); border-color: var(--gold); color: var(--midnight); }

/* Underlined link */
.template-3 .ilink {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--midnight);
}
.template-3 .ilink::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.template-3 .ilink:hover::after { width: 3.2rem; }
.template-3 .ilink .arr { transition: transform 0.35s ease; }
.template-3 .ilink:hover .arr { transform: translateX(6px); }

/* ---------- Header ---------- */
.template-3 .hdr3 {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 21, 38, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(198, 161, 91, 0.28);
}
.template-3 .hdr3-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 84px;
}
.template-3 .brand3 {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  color: var(--ivory);
}
.template-3 .brand3 .b-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
}
.template-3 .brand3 .b-sub {
  font-size: 0.56rem;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.18rem;
}
.template-3 .nav3 { display: flex; align-items: center; gap: 0.2rem; }
.template-3 .nav3 .ng {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.template-3 .nav3 .ng > a {
  position: relative;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(250, 246, 238, 0.82);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.template-3 .nav3 .ng > a.is-active,
.template-3 .nav3 .ng > a:hover { color: var(--gold-2); }
.template-3 .nav3 .ng > a.is-active::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 0.5rem;
  bottom: 0.1rem;
  height: 1px;
  background: var(--gold);
}
.template-3 .nav3 .chev {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.9rem;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.6;
  transition: transform 0.3s ease;
}
.template-3 .nav3 .ng:hover .chev,
.template-3 .nav3 .ng:focus-within .chev,
.template-3 .nav3 .ng.is-open .chev { transform: rotate(180deg); }
.template-3 .nav3 .dd {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0.6rem;
  min-width: 15.5rem;
  background: var(--midnight-2);
  border: 1px solid rgba(198, 161, 91, 0.35);
  border-top: 1px solid var(--gold);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  padding: 0.7rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.template-3 .nav3 .ng:hover .dd,
.template-3 .nav3 .ng:focus-within .dd,
.template-3 .nav3 .ng.is-open .dd { opacity: 1; visibility: visible; transform: translateY(0); }
.template-3 .nav3 .dd .ddl {
  display: block;
  padding: 0.25rem 1.3rem 0.65rem;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(198, 161, 91, 0.7);
  border-bottom: 1px solid rgba(198, 161, 91, 0.16);
  margin-bottom: 0.4rem;
}
.template-3 .nav3 .dd a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.3rem;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(250, 246, 238, 0.78);
  transition: color 0.25s ease, background-color 0.25s ease, padding-left 0.25s ease;
  white-space: nowrap;
}
.template-3 .nav3 .dd a:hover,
.template-3 .nav3 .dd a.is-cur { color: var(--gold-2); background: rgba(198, 161, 91, 0.08); padding-left: 1.6rem; }
.template-3 .nav3 .dd .dd-arr { opacity: 0; transform: translateX(-4px); transition: opacity 0.25s ease, transform 0.25s ease; width: 0.8rem; height: 0.8rem; flex-shrink: 0; }
.template-3 .nav3 .dd a:hover .dd-arr { opacity: 1; transform: translateX(0); }
.template-3 .nav3 .dd em {
  font-style: normal;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  border: 1px solid rgba(198, 161, 91, 0.4);
  color: rgba(198, 161, 91, 0.85);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  margin-left: 0.4rem;
}
.template-3 .mnav3-btn {
  display: none;
  background: none;
  border: 1px solid rgba(198, 161, 91, 0.55);
  color: var(--gold-2);
  padding: 0.65rem 1.1rem;
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
}
.template-3 .mnav3 {
  display: none;
  border-top: 1px solid rgba(198, 161, 91, 0.22);
  padding: 1.4rem 0 2rem;
}
.template-3 .mnav3.is-open { display: block; }
.template-3 .mnav3 .mg {
  border-bottom: 1px solid rgba(198, 161, 91, 0.16);
}
.template-3 .mnav3 .mg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.template-3 .mnav3 .mg-head > a {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.9rem 0;
  border: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  color: var(--ivory);
  text-decoration: none;
}
.template-3 .mnav3 a small { font-size: 0.6rem; letter-spacing: 0.3em; color: var(--gold); }
.template-3 .mnav3 .mg-tog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  border: 1px solid rgba(198, 161, 91, 0.5);
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.35s ease, background-color 0.3s ease;
}
.template-3 .mnav3 .mg.is-open .mg-tog { transform: rotate(45deg); background: rgba(198, 161, 91, 0.14); }
.template-3 .mnav3 .mg-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.template-3 .mnav3 .mg-sub-inner { overflow: hidden; }
.template-3 .mnav3 .mg.is-open .mg-sub { grid-template-rows: 1fr; }
.template-3 .mnav3 .mg-sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border: 0;
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.72);
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.template-3 .mnav3 .mg-sub a:hover,
.template-3 .mnav3 .mg-sub a.is-cur { color: var(--gold-2); padding-left: 1.8rem; }
.template-3 .mnav3 .mg-sub a em {
  font-style: normal;
  font-size: 0.5rem;
  border: 1px solid rgba(198, 161, 91, 0.4);
  color: rgba(198, 161, 91, 0.85);
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  margin-left: 0.35rem;
}

/* ---------- Hero ---------- */
.template-3 .hero3 {
  background: var(--midnight);
  color: var(--ivory);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.4rem);
  overflow: hidden;
  position: relative;
}
.template-3 .hero3::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 500px at 82% -10%, rgba(198, 161, 91, 0.14), transparent 62%),
    radial-gradient(800px 420px at 8% 110%, rgba(198, 161, 91, 0.07), transparent 60%);
  pointer-events: none;
}
.template-3 .hero3-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: center;
}
.template-3 .hero3-copy { grid-column: 1 / span 6; }
.template-3 .hero3-copy .kicker { color: var(--gold-2); }
.template-3 .hero3 h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.8rem);
  line-height: 1.04;
  margin-top: 1.6rem;
}
.template-3 .hero3 h1 em { font-style: italic; color: var(--gold-2); }
.template-3 .hero3-sub {
  margin-top: 1.8rem;
  max-width: 34rem;
  color: rgba(250, 246, 238, 0.72);
  font-size: 1.02rem;
  line-height: 1.8;
}
.template-3 .hero3-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.template-3 .hero3-media { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: end; }
.template-3 .arch {
  border-radius: 200px 200px 0 0 / 90px 90px 0 0;
  overflow: hidden;
  border: 1px solid rgba(198, 161, 91, 0.45);
  background: var(--midnight-2);
}
.template-3 .arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.template-3 .arch.tall { aspect-ratio: 3 / 4.2; }
.template-3 .arch.taller { aspect-ratio: 3 / 4.8; }
.template-3 .hero3-media .cap {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.5);
}
.template-3 .hero3-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(198, 161, 91, 0.25);
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: 1.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.55);
}
.template-3 .hero3-foot .dots { display: flex; gap: 0.45rem; align-items: center; }
.template-3 .hero3-foot .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0.5; display: block; }

/* ---------- Selected residences (UAE + global cards) ---------- */
.template-3 .card3 {
  border: 1px solid var(--line);
  background: var(--ivory);
  text-decoration: none;
  color: var(--midnight);
  display: block;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.template-3 .card3:hover { box-shadow: 0 30px 60px -40px rgba(10, 21, 38, 0.45); transform: translateY(-4px); }
.template-3 .card3 .media { position: relative; overflow: hidden; background: var(--sand-2); }
.template-3 .card3 .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.template-3 .card3:hover .media img { transform: scale(1.05); }
.template-3 .card3 .media .flag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.54rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(10, 21, 38, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(250, 246, 238, 0.25);
}
.template-3 .card3 .flag.gold { background: rgba(198, 161, 91, 0.9); color: var(--midnight); border-color: transparent; }
.template-3 .card3 .body { padding: 1.4rem 1.5rem 1.6rem; }
.template-3 .card3 .place { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.template-3 .card3 h3 { font-size: 1.7rem; margin-top: 0.4rem; }
.template-3 .card3 .meta { display: flex; gap: 1.2rem; margin-top: 0.9rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.template-3 .card3 .price { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-family: "Cormorant Garamond", serif; font-size: 1.4rem; display: flex; justify-content: space-between; align-items: center; }
.template-3 .card3 .price .arr { color: var(--gold); font-size: 1.1rem; }

.template-3 .res-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.template-3 .res-grid .card3.feat { grid-column: span 7; }
.template-3 .res-grid .card3 { grid-column: span 5; }
.template-3 .res-grid .card3.feat .media { aspect-ratio: 16 / 10; }
.template-3 .res-grid .card3:not(.feat) .media { aspect-ratio: 4 / 3; }
.template-3 .res-grid .card3:nth-child(2) { grid-column: span 5; }
.template-3 .res-grid .card3:nth-child(n + 3) { grid-column: span 4; }

/* ---------- Stats band (navy + gold numerals) ---------- */
.template-3 .stats3 { background: var(--midnight); color: var(--ivory); border-top: 1px solid rgba(198,161,91,0.25); border-bottom: 1px solid rgba(198,161,91,0.25); }
.template-3 .stats3-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.template-3 .stats3-inner > div {
  padding: 2.8rem 2rem;
  border-left: 1px solid rgba(198, 161, 91, 0.22);
  text-align: center;
}
.template-3 .stats3-inner > div:first-child { border-left: 0; }
.template-3 .stats3 .num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--gold-2);
  line-height: 1;
}
.template-3 .stats3 .lbl {
  margin-top: 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- UAE presence / editorial split ---------- */
.template-3 .split3 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: center; }
.template-3 .split3 .s-media { grid-column: 1 / span 6; }
.template-3 .split3 .s-copy { grid-column: 8 / span 5; }
.template-3 .split3 .frame-rect { border: 1px solid var(--gold-line); padding: 0.8rem; background: var(--ivory); }
.template-3 .split3 .frame-rect .ratio { aspect-ratio: 4 / 3; overflow: hidden; }
.template-3 .split3 .frame-rect img { width: 100%; height: 100%; object-fit: cover; display: block; }
.template-3 .split3 .s-copy h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-top: 1.4rem; }
.template-3 .split3 .s-copy p { opacity: 0.72; max-width: 40rem; }
.template-3 .split3 .offices { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 2rem; }
.template-3 .split3 .offices .off { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.template-3 .split3 .offices .off strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-weight: 500; }
.template-3 .split3 .offices .off span { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.55; }

/* Development blocks: image stretches to match the copy column height so
   there is no dead gap beneath the photo beside a taller text column. */
.template-3 .dev-split { align-items: stretch; }
.template-3 .dev-split .s-copy { align-self: start; }
.template-3 .dev-split .s-media { display: flex; }
.template-3 .dev-split .dev-frame {
  width: 100%;
  display: flex;
  padding: 0.8rem;
  border: 1px solid var(--gold-line);
  background: var(--ivory);
  align-self: stretch;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.template-3 .dev-split .dev-frame:hover { border-color: var(--gold); box-shadow: 0 24px 50px -36px rgba(10, 21, 38, 0.5); }
.template-3 .dev-split .dev-frame .dev-ratio {
  aspect-ratio: auto;
  width: 100%;
  flex: 1;
  overflow: hidden;
}
.template-3 .dev-split .dev-ratio img { position: static; transition: transform 1.2s ease; }
.template-3 .dev-split .dev-frame:hover .dev-ratio img { transform: scale(1.05); }
.template-3 .dev-title-link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 0.4s ease, color 0.3s ease;
}
.template-3 .dev-title-link:hover { color: var(--gold); background-size: 100% 1px; }
.template-3 .dev-more { white-space: nowrap; }
@media (max-width: 900px) {
  .template-3 .dev-split .dev-ratio { aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- Categories (navy tiles with arch image) ---------- */
.template-3 .cats3 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.template-3 .cat3 {
  position: relative;
  grid-column: span 4;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  text-decoration: none;
  color: var(--ivory);
  padding: 2rem;
  background: var(--midnight-3);
}
.template-3 .cat3:nth-child(2) { grid-column: span 4; }
.template-3 .cat3 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.62;
  transition: transform 1.3s ease, opacity 0.5s ease;
}
.template-3 .cat3:hover img { transform: scale(1.06); opacity: 0.4; }
.template-3 .cat3::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 21, 38, 0.92), rgba(10, 21, 38, 0.2) 75%);
}
.template-3 .cat3 > * { position: relative; z-index: 2; }
.template-3 .cat3 .cat3-no { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 0.7rem; }
.template-3 .cat3 h3 { font-size: 1.9rem; color: var(--ivory); }
.template-3 .cat3 .cat3-sub { margin-top: 0.5rem; font-size: 0.78rem; color: rgba(250, 246, 238, 0.7); }
.template-3 .cat3 .go { display: inline-block; margin-top: 1.2rem; font-size: 1.3rem; color: var(--gold-2); transition: transform 0.3s ease; }
.template-3 .cat3:hover .go { transform: translateX(6px); }

/* ---------- Voices ---------- */
.template-3 .voices3 { background: var(--sand-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.template-3 .voices3-inner { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem; align-items: center; }
.template-3 .voices3 .v-media { grid-column: 1 / span 4; }
.template-3 .voices3 .v-media .arch { aspect-ratio: 3 / 4; }
.template-3 .voices3 .v-quote { grid-column: 6 / span 7; }
.template-3 .voices3 blockquote { margin: 0; font-family: "Cormorant Garamond", serif; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.3; }
.template-3 .voices3 blockquote .q { color: var(--gold); font-size: 0.8em; }
.template-3 .voices3 figcaption { margin-top: 1.8rem; display: flex; align-items: center; gap: 1.6rem; }
.template-3 .voices3 figcaption .who { font-size: 0.92rem; }
.template-3 .voices3 figcaption .who small { display: block; font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-top: 0.25rem; }
.template-3 .voices3 .controls3 { display: flex; gap: 0.5rem; margin-left: auto; }
.template-3 .voices3 .ctl3 { width: 2.7rem; height: 2.7rem; border: 1px solid var(--midnight); background: transparent; color: var(--midnight); font-size: 1.1rem; cursor: pointer; transition: background 0.3s, color 0.3s; }
.template-3 .voices3 .ctl3:hover { background: var(--midnight); color: var(--gold-2); }

/* ---------- Journal rows ---------- */
.template-3 .post3-row {
  display: grid;
  grid-template-columns: 4rem 1.6fr 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--midnight);
  transition: background 0.3s ease;
}
.template-3 .post3-row:first-child { border-top: 1px solid var(--line); }
.template-3 .post3-row:hover { background: rgba(198, 161, 91, 0.08); }
.template-3 .post3-row .date { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.5; }
.template-3 .post3-row .cat { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.template-3 .post3-row h3 { font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 500; }
.template-3 .post3-row .go { font-size: 1.2rem; transition: transform 0.3s ease, color 0.3s ease; }
.template-3 .post3-row:hover .go { transform: translateX(6px); color: var(--gold); }

/* ---------- Page hero (interior pages) ---------- */
.template-3 .pagehero3 {
  background: var(--midnight);
  color: var(--ivory);
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.template-3 .pagehero3::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 85% -10%, rgba(198, 161, 91, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 120%, rgba(198, 161, 91, 0.06), transparent 55%);
  pointer-events: none;
}
.template-3 .pagehero3 .ph3-inner { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: end; }
.template-3 .pagehero3 .ph3-copy { grid-column: 1 / span 8; }
.template-3 .pagehero3 .ph3-copy h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); margin-top: 1.5rem; line-height: 1.05; }
.template-3 .pagehero3 .ph3-copy h1 em { font-style: italic; color: var(--gold-2); }
.template-3 .pagehero3 .ph3-copy p.lead { margin-top: 1.5rem; max-width: 36rem; color: rgba(250, 246, 238, 0.72); font-size: 1.02rem; line-height: 1.8; }
.template-3 .pagehero3 .ph3-meta { grid-column: 9 / span 4; justify-self: end; text-align: right; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(250, 246, 238, 0.55); line-height: 2.2; }
.template-3 .pagehero3 .ph3-meta strong { display: block; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.5rem; letter-spacing: 0.06em; color: var(--gold-2); text-transform: none; }

/* ---------- Portfolio grid (properties-3) ---------- */
.template-3 .port3-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.template-3 .port3-grid .card3 { grid-column: span 4; }
.template-3 .port3-grid .card3 .media { aspect-ratio: 4 / 3; }
.template-3 .port3-grid .card3.wide { grid-column: span 7; }
.template-3 .port3-grid .card3.wide .media { aspect-ratio: 16 / 10; }
.template-3 .port3-grid .card3.slim { grid-column: span 5; }
@media (max-width: 900px) {
  .template-3 .port3-grid .card3,
  .template-3 .port3-grid .card3.wide,
  .template-3 .port3-grid .card3.slim { grid-column: span 12; }
  .template-3 .port3-grid .card3 .media,
  .template-3 .port3-grid .card3.wide .media { aspect-ratio: 16 / 10; }
  .template-3 .pagehero3 .ph3-copy { grid-column: 1 / -1; }
  .template-3 .pagehero3 .ph3-meta { grid-column: 1 / -1; justify-self: start; text-align: left; }
}
@media (max-width: 680px) {
  .template-3 .port3-grid .card3 .media { aspect-ratio: 4 / 3; }
}

/* Team card (about-3) */
.template-3 .person-card { border: 1px solid var(--line); background: var(--ivory); }
.template-3 .person-card .media { aspect-ratio: 4 / 5; overflow: hidden; }
.template-3 .person-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.template-3 .person-card .body { padding: 1.2rem 1.3rem 1.4rem; }
/* In a 12-track grid (generic port3-grid) span 3; in the 4-track about-grid4 auto-fill 1 */
.template-3 .port3-grid .person-card { grid-column: span 3; }
@media (max-width: 900px) {
  .template-3 .about-grid4 .person-card { grid-column: span 2 !important; }
  .template-3 .port3-grid .person-card { grid-column: span 6; }
}
@media (max-width: 680px) {
  .template-3 .about-grid4 .person-card,
  .template-3 .port3-grid .person-card { grid-column: span 4 !important; }
}

/* ---------- Offices (locations-3): image cards ---------- */
.template-3 .office-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.template-3 .office3 {
  position: relative;
  grid-column: span 3;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  background: var(--midnight-3);
}
.template-3 .office3 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: transform 1.2s ease, opacity 0.5s ease; }
.template-3 .office3:hover img { transform: scale(1.06); opacity: 0.45; }
.template-3 .office3::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,21,38,.88), rgba(10,21,38,.1) 70%); }
.template-3 .office3 .o-inner { position: relative; z-index: 2; padding: 1.6rem; display: flex; flex-direction: column; }
.template-3 .office3 .o-name { font-family: "Cormorant Garamond", serif; font-size: 2rem; margin: 0.4rem 0 0.2rem; }
.template-3 .office3 .o-addr { font-size: 0.82rem; color: rgba(250,246,238,.78); line-height: 1.5; }
.template-3 .office3 .go { font-size: 1.3rem; margin-top: 1rem; color: var(--gold-2); transition: transform 0.3s ease; }
.template-3 .office3:hover .go { transform: translateX(6px); }
@media (max-width: 900px) {
  .template-3 .office3 { grid-column: span 6; }
}
@media (max-width: 680px) {
  .template-3 .office3 { grid-column: span 12; aspect-ratio: 16 / 10; }
}

/* Office chips with photos (home UAE section) */
.template-3 .office-chips { gap: 1.2rem 1.5rem; }
.template-3 .office-chips .off.chip {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--midnight-3);
  color: var(--ivory);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  min-height: 130px;
}
.template-3 .office-chips .off.chip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 1s ease, opacity 0.4s ease;
}
.template-3 .office-chips .off.chip:hover img { transform: scale(1.06); opacity: 0.35; }
.template-3 .office-chips .off.chip strong,
.template-3 .office-chips .off.chip span { position: relative; z-index: 2; }
.template-3 .office-chips .off.chip span { color: rgba(250, 246, 238, 0.78); font-size: 0.72rem; }

/* Contact details (contact-3 "Direct lines") */
.template-3 .contact-details { border-top: 1px solid var(--line); }
.template-3 .cd-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.template-3 .cd-label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.template-3 .cd-value {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--midnight);
  opacity: 1 !important;
  text-decoration: none;
  word-break: break-word;
}
.template-3 a.cd-value:hover { color: var(--gold); }
@media (max-width: 680px) {
  .template-3 .cd-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---------- CTA (navy, gold arch divider) ---------- */
.template-3 .cta3 { background: var(--midnight); color: var(--ivory); text-align: center; padding: clamp(4rem, 8vw, 7rem) 0; }
.template-3 .cta3 .kicker { justify-content: center; }
.template-3 .cta3 h2 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); margin: 1.6rem auto 0; max-width: 20ch; }
.template-3 .cta3 h2 em { font-style: italic; color: var(--gold-2); }
.template-3 .cta3 .cta3-sub { max-width: 34rem; margin: 1.4rem auto 0; color: rgba(250, 246, 238, 0.65); }
.template-3 .cta3 .cta3-btns { margin-top: 2.6rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Footer (navy) ---------- */
.template-3 .foot3 { background: var(--midnight); color: var(--ivory); border-top: 1px solid rgba(198, 161, 91, 0.3); padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.template-3 .foot3 .wrap > .foot3-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.template-3 .foot3 .f-brand { grid-column: 1 / span 5; }
.template-3 .foot3 .f-brand p { color: rgba(250, 246, 238, 0.6); max-width: 30rem; margin: 1.1rem 0 0; }
.template-3 .foot3 h4 { font-size: 0.62rem; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin: 0 0 1.2rem; }
.template-3 .foot3 a.f-link { display: block; padding: 0.22rem 0; color: rgba(250, 246, 238, 0.72); text-decoration: none; font-size: 0.92rem; transition: color 0.3s ease, padding-left 0.3s ease; }
.template-3 .foot3 a.f-link:hover { color: var(--gold-2); padding-left: 5px; }
.template-3 .foot3 .f-col { grid-column: span 2; }
.template-3 .foot3 .f-contact { grid-column: span 3; }
.template-3 .foot3 .f-contact p { color: rgba(250, 246, 238, 0.55); font-size: 0.86rem; margin: 0.8rem 0 0; }
.template-3 .foot3-bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(198, 161, 91, 0.2); margin-top: 3rem; padding-top: 1.5rem; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(250, 246, 238, 0.45); }
.template-3 .foot3-bar a { color: inherit; text-decoration: none; }
.template-3 .foot3-bar a:hover { color: var(--gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .template-3 .nav3 { display: none; }
  .template-3 .mnav3-btn { display: inline-flex; align-items: center; }
}
@media (max-width: 900px) {
  .template-3 .hero3-copy { grid-column: 1 / -1; }
  .template-3 .hero3-media { grid-column: 1 / -1; max-width: 620px; }
  .template-3 .split3 .s-media,
  .template-3 .split3 .s-copy { grid-column: 1 / -1 !important; }
  .template-3 .res-grid .card3.feat,
  .template-3 .res-grid .card3,
  .template-3 .res-grid .card3:nth-child(2),
  .template-3 .res-grid .card3:nth-child(n + 3) { grid-column: span 12; }
  .template-3 .res-grid .card3:not(.feat) .media { aspect-ratio: 16 / 10; }
  .template-3 .voices3 .v-media { grid-column: 1 / span 3; }
  .template-3 .voices3 .v-quote { grid-column: 4 / span 9; }
  .template-3 .stats3-inner { grid-template-columns: repeat(2, 1fr); }
  .template-3 .stats3-inner > div:nth-child(3) { border-left: 0; }
  .template-3 .foot3 .f-brand { grid-column: 1 / -1; }
  .template-3 .about-grid4 .person-card { grid-column: span 2 !important; }
  .template-3 .about-principles > div { grid-column: span 6 !important; }
}
@media (max-width: 680px) {
  .template-3 .about-grid4 .person-card { grid-column: span 4 !important; }
  .template-3 .about-principles > div { grid-column: span 12 !important; }
  .template-3 .dev-specs { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 680px) {
  .template-3 .wrap { width: min(1280px, calc(100% - 2.4rem)); }
  .template-3 .sec3-head { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .template-3 .cat3,
  .template-3 .cat3:nth-child(2) { grid-column: span 12 !important; min-height: 320px; }
  .template-3 .voices3 .v-media { grid-column: 1 / -1; max-width: 320px; }
  .template-3 .voices3 .v-quote { grid-column: 1 / -1; }
  .template-3 .voices3-inner { gap: 2rem; }
  .template-3 .post3-row { grid-template-columns: 1fr auto; row-gap: 0.4rem; }
  .template-3 .post3-row .date { grid-column: 1 / -1; }
  .template-3 .hero3-media { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .template-3 .offices { grid-template-columns: 1fr; }
  .template-3 .foot3 .f-col, .template-3 .foot3 .f-contact { grid-column: span 6; }
  .template-3 .split3 .offices { grid-template-columns: 1fr; }
}
