/* ==========================================================
   Saima Yasmin Khan · Dubai Property Advisor
   Colours from "Know Who Is Guiding Your Decision" (PDF) and
   "The Dubai Wealth Blueprint 2026" (slides).
   ========================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colour */
  --bg: #071613;
  --panel: #0d241f;
  --panel-2: #102c26;
  --panel-3: #173d34;
  --gold: #cdaa57;
  --gold-light: #e2c47e;
  --gold-soft: rgba(205, 170, 87, 0.12);
  --ivory: #f7f2e6;
  --white: #ffffff;
  --text: #d9e3de;
  --muted: #9fb2aa;
  --line: rgba(205, 170, 87, 0.3);
  --line-soft: rgba(217, 227, 222, 0.1);
  --wa: #1f8f4e;

  /* Type */
  --font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cinzel", Georgia, serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-xl: clamp(1.55rem, 1.25rem + 1.3vw, 2.3rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.3rem);
  --fs-hero: clamp(2.4rem, 1.6rem + 3.8vw, 4.6rem);

  /* Space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --section: clamp(56px, 4rem + 4vw, 112px);
  --gutter: clamp(20px, 4vw, 40px);
  --gap: clamp(16px, 1rem + 0.6vw, 24px);
  --wrap: 1200px;
  --radius: 4px;
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--white); font-weight: 600; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-4);
}
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }
.caps { text-transform: uppercase; letter-spacing: 0.02em; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.03em; }
.gold { color: var(--gold) !important; }
.white { color: var(--white); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--gold); color: var(--bg); padding: 10px 16px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
section { padding: var(--section) 0; }
.band { background: var(--panel); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }

/* Section heading */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--s-3);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.head.center .kicker::after, .page-hero .kicker::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.head { max-width: 780px; margin: 0 0 clamp(32px, 4vw, 48px); }
.head h2 { margin-bottom: var(--s-3); }
.head .sub { font-size: var(--fs-md); color: var(--text); margin: 0; }
.head.center, .head:not(.left) { text-align: center; margin-left: auto; margin-right: auto; }
.sub-title { font-family: var(--font-head); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: var(--s-12) 0 var(--s-5); }

/* ---------- 4. Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 26px;
  background: var(--gold); color: var(--bg); border: 1px solid var(--gold); border-radius: var(--radius);
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; text-align: center; line-height: 1.3; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--bg); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #197a42; }
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.btn-row.center { justify-content: center; }
.link { color: var(--gold); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link:hover { border-color: var(--gold); }

/* ---------- 5. Header ---------- */
.topbar { background: var(--gold); color: var(--bg); font-size: var(--fs-xs); font-weight: 600; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(7, 22, 19, 0.96); border-bottom: 1px solid var(--line-soft); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; gap: var(--s-5); max-width: 1320px; min-height: var(--header-h); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { font-family: var(--font-head); color: var(--white); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.brand-tag { color: var(--gold); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.menu { list-style: none; display: flex; align-items: center; gap: 2px; }
.menu a { display: block; padding: 10px 12px; white-space: nowrap; text-decoration: none; font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); border-radius: var(--radius); }
.menu a:hover { color: var(--gold); }
.menu a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-cta { min-height: 44px; padding: 10px 18px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; color: var(--gold); cursor: pointer; align-items: center; justify-content: center; border-radius: var(--radius); }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-cta { display: none; }

/* ---------- 6. Home hero ---------- */
.hero { padding: 0; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 85% 40%, rgba(23, 61, 52, 0.55), transparent 70%), var(--bg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { padding: clamp(56px, 7vw, 104px) 0; }
.hero-logo { width: clamp(140px, 14vw, 180px); margin-bottom: var(--s-8); }
.hero h1 { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: var(--fs-hero); line-height: 1.05; letter-spacing: 0.02em; margin-bottom: var(--s-5); }
.year-pill { display: inline-block; font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.3; color: var(--white); background: var(--panel-3); border: 1px solid var(--gold); padding: 2px 32px; letter-spacing: 0.08em; margin-bottom: var(--s-6); }
.hero .tagline { font-size: var(--fs-lg); color: var(--white); line-height: 1.5; max-width: 32ch; margin-bottom: var(--s-8); }
.presented { border-top: 1px solid var(--line); padding-top: var(--s-5); max-width: 520px; }
.presented .by { font-style: italic; color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.presented .name { font-family: var(--font-display); color: var(--gold); font-size: 1.55rem; font-weight: 700; margin: 2px 0; letter-spacing: 0.03em; }
.presented .role { color: var(--white); margin: 0; font-size: var(--fs-sm); }
.hero-art { align-self: stretch; min-height: 520px; position: relative; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }

.slogan { background: var(--panel-3); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: var(--s-6) 0; text-align: center; }
.slogan p { margin: 0; }
.slogan .l1 { font-family: var(--font-head); color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: clamp(0.85rem, 0.75rem + 0.5vw, 1.05rem); }
.slogan .l2 { color: var(--gold); font-style: italic; font-family: Georgia, serif; margin-top: 4px; }

/* Trust strip */
.trust { padding: var(--s-8) 0; border-bottom: 1px solid var(--line-soft); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.trust li { text-align: center; }
.trust b { display: block; font-family: var(--font-head); color: var(--gold); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.2; }
.trust span { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 4px; font-weight: 600; }

/* ---------- 7. Page hero ---------- */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); text-align: center; border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(23, 61, 52, 0.85), transparent 72%), var(--bg); }
.page-hero h1 { font-size: var(--fs-2xl); text-transform: uppercase; letter-spacing: 0.01em; max-width: 20ch; margin: 0 auto var(--s-4); }
.page-hero .sub { max-width: 62ch; margin: 0 auto; font-size: var(--fs-md); }
.page-hero .btn-row { justify-content: center; }

/* ---------- 8. Components ---------- */
/* Comparison */
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col { padding: clamp(24px, 3.5vw, 40px); }
.col-dev { background: var(--panel-2); border: 1px solid var(--line-soft); }
.col-me { background: var(--panel-3); border: 1.5px solid var(--gold); }
.col h3 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: var(--s-1); }
.col .tag { color: var(--gold); font-weight: 600; margin-bottom: var(--s-6); }
.col h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin: var(--s-8) 0 var(--s-3); }
.col h4:first-of-type { margin-top: 0; }
.dots { list-style: none; }
.dots li { position: relative; padding-left: 22px; margin-bottom: var(--s-3); }
.dots li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.fee { font-family: var(--font-head); color: var(--gold); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.06em; text-transform: uppercase; margin: var(--s-6) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--gold); background: var(--panel); }
.three > div { padding: var(--s-8) var(--s-6); text-align: center; color: var(--text); line-height: 1.45; }
.three > div + div { border-left: 1px solid var(--line); }
.three span { display: block; font-family: var(--font-head); color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--fs-md); margin-bottom: 4px; }
.question { text-align: center; margin: var(--s-10) auto 0; max-width: 860px; }
.question h3 { font-size: var(--fs-lg); text-transform: uppercase; margin-bottom: var(--s-2); }

.process { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; margin-top: var(--s-10); }
.process li { background: var(--gold); color: var(--bg); display: grid; place-items: center; text-align: center; padding: 16px 6px; font-family: var(--font-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3; }

.callout { background: var(--panel); border: 1px solid var(--gold); padding: clamp(28px, 5vw, 56px); text-align: center; }
.callout .big { font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; text-transform: uppercase; line-height: 1.35; }
.callout p { max-width: 64ch; margin-left: auto; margin-right: auto; }

.signature { background: var(--gold); color: var(--bg); text-align: center; padding: var(--s-6) var(--gutter); }
.signature p { margin: 0; }
.signature .s1 { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--fs-md); }
.signature .s2 { font-weight: 600; font-size: var(--fs-sm); margin-top: 2px; }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); transition: border-color .2s ease; }
.card:hover { border-color: var(--line); }
.card h3 { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: var(--s-2); }
.card p { color: var(--text); font-size: 0.95rem; }
.card.feature { background: var(--panel-3); border-color: var(--gold); }
.card .dots li { font-size: 0.95rem; }

/* Services (house tiles) */
.services { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.services > .house { flex: 1 1 200px; max-width: 232px; }
.house { position: relative; background: var(--panel-3); border: 1px solid var(--gold); text-align: center; padding: 64px 18px 28px;
  clip-path: polygon(50% 0, 100% 20%, 100% 100%, 0 100%, 0 20%); }
.house:nth-child(even) { background: var(--panel-2); }
.house.gold-tile { background: var(--gold); }
.house.gold-tile h3, .house.gold-tile p { color: var(--bg); }
.house svg { width: 40px; height: 40px; color: var(--gold); margin: 0 auto var(--s-3); }
.house.gold-tile svg { color: var(--bg); }
.house h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--s-3); }
.house .rule { width: 44px; height: 1px; background: var(--gold); margin: 0 auto var(--s-3); }
.house.gold-tile .rule { background: var(--bg); }
.house p { font-size: var(--fs-sm); margin: 0; }

.dev-names { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.dev-names li { padding: 20px 12px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* Stats */
.stat { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--s-6) var(--s-4); text-align: center; }
.stat .n { display: block; font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.15; }
.stat .l { display: block; font-family: var(--font-head); color: var(--white); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; margin-top: var(--s-2); }
.stat .d { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-1); line-height: 1.5; }
.stat-sm .n { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); white-space: nowrap; }

.no-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px var(--s-4) var(--s-5); text-align: center; margin-top: 10px; }
.no-card .no { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--bg); font-family: var(--font-head); font-weight: 800; padding: 2px 16px; font-size: var(--fs-xs); letter-spacing: 0.14em; }
.no-card h3 { font-size: var(--fs-sm); text-transform: uppercase; margin-bottom: var(--s-2); }
.no-card p { margin: 0; font-size: var(--fs-sm); }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 660px; font-size: 0.95rem; }
table.data th, table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.data thead th { background: var(--panel-3); color: var(--white); font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--gold); }
table.data tbody th { color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.02em; background: var(--panel); }
table.data td.num { color: var(--white); font-weight: 600; white-space: nowrap; }
table.data tr.total th, table.data tr.total td { background: var(--gold); color: var(--bg); border-bottom-color: var(--gold); }
table.data tr.dark th, table.data tr.dark td { background: var(--panel-3); }
.swipe-hint { display: none; font-size: var(--fs-xs); color: var(--gold); margin: 0 0 var(--s-2); font-weight: 600; }
.note { border-left: 3px solid var(--gold); background: var(--panel); padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-5); border-radius: 0 var(--radius) var(--radius) 0; }

/* Case studies */
.case { padding: clamp(24px, 4vw, 48px); background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.case + .case { margin-top: var(--s-10); }
.case-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-8); align-items: flex-end; margin-bottom: var(--s-6); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.case-head h2 { margin: 0; text-transform: uppercase; font-size: var(--fs-xl); }
.case-head .sub { color: var(--gold); font-family: var(--font-head); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.06em; text-transform: uppercase; margin: var(--s-2) 0 0; }
.case-head .kicker { margin: 0; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-6); }
.facts li { border: 1px solid var(--line-soft); background: var(--panel); padding: 6px 12px; font-size: 0.85rem; border-radius: var(--radius); }
.facts b { color: var(--gold); font-weight: 600; }
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: var(--s-6); border-radius: var(--radius); overflow: hidden; }
.highlights div { background: var(--panel); padding: var(--s-5) var(--s-4); text-align: center; }
.highlights .k { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.highlights .v { display: block; font-family: var(--font-head); color: var(--gold); font-weight: 700; font-size: var(--fs-md); margin-top: 4px; line-height: 1.3; }

/* Off-plan vs ready */
.vs { display: grid; grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr); border: 1px solid var(--gold); border-radius: var(--radius); overflow: hidden; }
.vs-col h2 { font-size: var(--fs-lg); text-transform: uppercase; margin: 0; text-align: center; padding: var(--s-6) var(--s-4) var(--s-1); }
.vs-col .tag { text-align: center; color: var(--gold); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-xs); margin: 0; padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.vs-off { background: var(--panel-3); }
.vs-ready { background: var(--panel-2); }
.vs-mid { background: var(--ivory); color: var(--bg); }
.vs-mid .vs-label { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; text-align: center; padding: var(--s-5) 0; border-bottom: 1px solid rgba(7, 22, 19, 0.15); color: var(--bg); line-height: 1.6; }
.vs ul { list-style: none; }
.vs li { min-height: 78px; display: flex; flex-direction: column; justify-content: center; padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line-soft); font-size: var(--fs-sm); line-height: 1.5; }
.vs li:last-child { border-bottom: 0; }
.vs li b { font-family: var(--font-head); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.02em; }
.vs-mid li { align-items: center; text-align: center; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.06em; border-bottom: 1px solid rgba(7, 22, 19, 0.12); }
.vs .row-label { display: none; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-4); align-items: start; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--s-6); }
.steps li::before { content: counter(s, decimal-leading-zero); width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; border-radius: 50%; }
.steps h3 { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 0.03em; margin: 4px 0 var(--s-2); }
.steps p { margin: 0; font-size: 0.95rem; }
.badge-box { display: inline-block; border: 1px solid var(--gold); background: var(--panel-3); padding: var(--s-4) var(--s-6); text-align: center; border-radius: var(--radius); }
.badge-box b { display: block; font-family: var(--font-head); color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.badge-box span { display: block; color: var(--white); font-weight: 600; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.04em; }

/* Photo frame */
.frame { border: 1px solid var(--gold); padding: 10px; background: var(--panel); border-radius: var(--radius); }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.frame.landscape img { aspect-ratio: 4 / 3; }
.frame figcaption { color: var(--muted); font-size: 0.82rem; padding: 10px 4px 2px; line-height: 1.5; }
.map img { width: 100%; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.map figcaption { margin-top: var(--s-2); }

/* About credentials */
.cred-list { list-style: none; margin: var(--s-6) 0 0; border-top: 1px solid var(--line); }
.cred-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); }
.cred-list span { color: var(--muted); font-size: var(--fs-sm); }
.cred-list b { text-align: right; }

/* Quote */
.quote { text-align: center; }
.quote blockquote { position: relative; margin: 0 auto; max-width: 860px; border: 1px solid var(--gold); padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px); font-family: var(--font-display); color: var(--white); font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.55rem); line-height: 1.55; text-transform: uppercase; }
.quote blockquote::before, .quote blockquote::after { font-family: Georgia, serif; color: var(--gold); font-size: 4rem; line-height: 1; position: absolute; }
.quote blockquote::before { content: "\201C"; left: 16px; top: 8px; }
.quote blockquote::after { content: "\201D"; right: 16px; bottom: -16px; }
.quote cite { display: block; margin-top: var(--s-5); color: var(--gold); font-style: normal; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--fs-sm); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form h2 { font-size: var(--fs-lg); text-transform: uppercase; margin-bottom: var(--s-6); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); }
.field { margin-bottom: var(--s-5); }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); margin-bottom: var(--s-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(205, 170, 87, 0.35); background: var(--bg); color: var(--white); font: inherit; font-size: 1rem; border-radius: var(--radius); }
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.field select option { background: var(--bg); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); margin: var(--s-1) 0 var(--s-6); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 20px; accent-color: var(--gold); }
.form-msg { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); font-size: 0.95rem; border-radius: var(--radius); }
.form-msg.ok { background: rgba(31, 143, 78, 0.18); color: #bfe8cf; border: 1px solid rgba(31, 143, 78, 0.5); }
.form-msg.err { background: rgba(190, 60, 60, 0.18); color: #f3c4c4; border: 1px solid rgba(190, 60, 60, 0.5); }
.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-list li { border-bottom: 1px solid var(--line-soft); }
.contact-list a, .contact-list .row { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; text-decoration: none; }
.contact-list a:hover .t { color: var(--gold); }
.ci { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); }
.ci svg { width: 18px; height: 18px; }
.contact-list .t { display: block; color: var(--white); font-weight: 600; word-break: break-word; }
.contact-list .s { display: block; color: var(--muted); font-size: 0.85rem; }

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--panel); padding: clamp(48px, 7vw, 80px) 0 0; font-size: 0.93rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 64px); padding-bottom: var(--s-12); }
.footer-logo { width: 160px; margin-bottom: var(--s-5); }
.site-footer h2 { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s-5); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: var(--s-3); line-height: 1.5; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: var(--s-5) 0; font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-6); }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; text-decoration: none; padding: 12px 18px 12px 14px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
.wa-float svg { width: 22px; height: 22px; }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1439px) { .nav .nav-cta { display: none; } }

@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .menu-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-2) var(--gutter) var(--s-6); max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
  .site-header.nav-open .menu-wrap { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu li { border-bottom: 1px solid var(--line-soft); }
  .menu a { padding: 16px 4px; font-size: 0.9rem; }
  .menu a[aria-current="page"] { box-shadow: none; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-5); }
}

@media (max-width: 1080px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .trust ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-6); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .hero .wrap, .split, .contact-grid, .compare-grid { grid-template-columns: minmax(0, 1fr); }
  .split.reverse > :first-child { order: 0; }
  .hero-text { padding-bottom: 0; }
  .hero-art { min-height: 0; aspect-ratio: 16 / 10; margin: 0 calc(var(--gutter) * -1); }
  .hero-art img { object-position: center 35%; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3.one-sm { grid-template-columns: minmax(0, 1fr); }
  .three { grid-template-columns: minmax(0, 1fr); }
  .three > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .dev-names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs { grid-template-columns: minmax(0, 1fr); }
  .vs-mid { display: none; }
  .vs .row-label { display: block; font-family: var(--font-head); font-size: 0.7rem; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
  .vs li { min-height: 0; padding: var(--s-4) var(--s-5); }
  .vs-ready { border-top: 2px solid var(--gold); }
  .split .frame { max-width: 460px; width: 100%; margin: 0 auto; }
  .col-me { margin-top: -1px; }
}

@media (max-width: 760px) {
  .swipe-hint { display: block; }
  .topbar .hide-sm { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 0.97rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-4.pair-sm, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .grid-3.pair-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .grid-5 > :last-child:nth-child(odd), .grid-4.pair-sm > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat { padding: var(--s-5) var(--s-3); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-names li { font-size: 0.78rem; letter-spacing: 0.06em; padding: 16px 8px; }
  .services > .house { flex: 1 1 100%; max-width: 340px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
  .mobile-cta { grid-template-columns: minmax(0, 1fr); }
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust li:last-child { grid-column: 1 / -1; }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 44px minmax(0, 1fr); padding: var(--s-5); }
  .steps li::before { width: 42px; height: 42px; font-size: 0.9rem; }
  .cred-list li { flex-direction: column; gap: 2px; }
  .cred-list b { text-align: left; }
  .quote blockquote::before { left: 8px; top: 2px; font-size: 3rem; }
  .quote blockquote::after { right: 8px; font-size: 3rem; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; right: 14px; bottom: 14px; }
  .brand-tag { display: none; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 0.85rem; letter-spacing: 0.05em; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .topbar, .site-header, .wa-float, .signature { display: none; }
  body { background: #fff; color: #000; }
}

/* Text-heavy 5-column card rows stack on phones */
@media (max-width: 600px) {
  .grid-5.text-cards { grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
  .grid-5.text-cards > :last-child:nth-child(odd) { grid-column: auto; }
  .grid-3.pair-sm > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 601px) and (max-width: 1080px) {
  .grid-5.text-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone refinements */
@media (max-width: 600px) {
  .services { gap: var(--s-3); }
  .services > .house { flex: 1 1 calc(50% - var(--s-3)); max-width: none; padding: 52px 12px 22px; }
  .services > .house:last-child:nth-child(odd) { flex-basis: 100%; max-width: 260px; }
  .house svg { width: 34px; height: 34px; }
  .house h3 { font-size: 0.78rem; }
  .house p { font-size: 0.82rem; }
  .head.center .kicker::before, .head.center .kicker::after,
  .head:not(.left) .kicker::before, .head:not(.left) .kicker::after,
  .page-hero .kicker::before, .page-hero .kicker::after { display: none; }
}

/* Case-study tables become stacked cards on phones */
@media (max-width: 600px) {
  .table-scroll { overflow: visible; border: 0; }
  table.data { min-width: 0; display: block; }
  table.data thead { display: none; }
  table.data tbody, table.data tr, table.data th, table.data td { display: block; width: 100%; }
  table.data tr { border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: var(--s-3); overflow: hidden; background: var(--panel); }
  table.data tbody th { border-bottom: 1px solid var(--line); padding: 12px 14px; font-size: 0.8rem; }
  table.data td { display: flex; justify-content: space-between; gap: var(--s-4); padding: 10px 14px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: normal; }
  table.data td:last-child { border-bottom: 0; }
  table.data td::before { content: attr(data-label); flex: 0 0 42%; text-align: left; font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  table.data tr.total, table.data tr.total td, table.data tr.total th { background: var(--gold); color: var(--bg); }
  table.data tr.total td::before { color: rgba(7, 22, 19, 0.7); }
  table.data tr.total th { border-bottom-color: rgba(7, 22, 19, 0.2); }
  table.data tr.total td { border-bottom-color: rgba(7, 22, 19, 0.15); }
}
@media (max-width: 600px) { table.data td.num { white-space: normal; } }

/* ---------- Brand: name only ---------- */
.brand-name { font-size: 1.12rem; letter-spacing: 0.1em; padding: 6px 0; border-bottom: 1px solid var(--gold); }

/* ---------- Hero photo: framed arch, natural size ---------- */
.hero .wrap { align-items: center; }
.hero-art { min-height: 0; align-self: center; display: flex; justify-content: center; padding: clamp(40px, 5vw, 72px) 0; position: relative; }
.hero-art::before { content: ""; position: absolute; width: min(100%, 440px); aspect-ratio: 3 / 5; max-height: 640px;
  border: 1px solid var(--line); border-radius: 220px 220px 4px 4px; transform: translate(18px, 18px); }
.hero-art .arch { position: relative; width: min(100%, 400px); aspect-ratio: 3 / 5; max-height: 640px;
  border: 1px solid var(--gold); border-radius: 220px 220px 4px 4px; padding: 10px; background: var(--panel); }
.hero-art img { position: static; inset: auto; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  border-radius: 210px 210px 2px 2px; display: block; }

@media (max-width: 900px) {
  .hero-art { margin: 0; padding: 0 0 var(--s-12); aspect-ratio: auto; }
  .hero-art .arch { width: min(100%, 320px); }
  .hero-art::before { width: min(100%, 320px); transform: translate(14px, 14px); }
}
@media (max-width: 380px) { .brand-name { font-size: 0.95rem; letter-spacing: 0.06em; } }
.brand { flex: 0 0 auto; margin-right: auto; padding-right: var(--s-6); }
@media (max-width: 1679px) { .nav .nav-cta { display: none; } }
@media (max-width: 900px) { .hero-art .arch, .hero-art::before { width: min(100%, 290px); } }
@media (min-width: 1680px) { .nav { max-width: 1560px; } }

/* iPhone / small-screen hardening */
.topbar a { white-space: nowrap; }
@media (max-width: 760px) { .topbar .wrap { gap: 4px 20px; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { padding-bottom: env(safe-area-inset-bottom); }
.wa-float { bottom: calc(14px + env(safe-area-inset-bottom)); }
