/* =========================================================
   THWART GROUP — Real Estate & Construction
   Original stylesheet
   ========================================================= */
:root {
  --ink: #0f1115;
  --ink-2: #171a20;
  --ink-3: #22262e;
  --paper: #ffffff;
  --cream: #f5f1ea;
  --stone: #e9e4da;
  --muted: #6b6f78;
  --muted-light: #a3a7b0;
  --line: rgba(15, 17, 21, .1);
  --line-light: rgba(255, 255, 255, .12);
  --accent: #068c80;
  --accent-2: #eedd00;
  --accent-soft: rgba(6, 140, 128, .12);
  --brand-red: #941b0c;
  --brand-yellow: #eedd00;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 30px 60px -25px rgba(15, 17, 21, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1280px;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 90px 0; }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--ink); color: #fff; }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* Image fallback so broken remote images still look intentional */
.img-wrap { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a2e36, #1f4a46); }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; }
img.img-failed { opacity: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.text-center .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }
.h-xl { font-size: clamp(40px, 5.4vw, 80px); }
.h-lg { font-size: clamp(32px, 3.8vw, 52px); }
.h-md { font-size: clamp(26px, 2.8vw, 38px); }
.h-sm { font-size: clamp(22px, 2vw, 28px); }
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.bg-dark .lead, .bg-dark p { color: var(--muted-light); }
.section-head { margin-bottom: 64px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.text-center .lead { margin: 18px auto 0; }
.outline-text { -webkit-text-stroke: 1.5px currentColor; color: transparent; }

/* split-line reveal */
.split-reveal .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-reveal .word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.split-reveal.in .word > span { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--accent); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px; border-radius: 100px; font-weight: 600; font-size: 15px;
  background: var(--bg); color: var(--fg); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), transform .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arrow { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: rotate(-45deg); }
.btn-dark { --bg: var(--ink); }
.btn-dark::before { background: var(--accent); }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-light:hover { color: #fff; }
.btn-ghost { --bg: transparent; --fg: currentColor; border: 1.5px solid currentColor; }
.btn-ghost::before { background: var(--accent); }
.btn-ghost:hover { color: #fff; border-color: var(--accent); }
.bg-dark .btn::before { background: #fff; }
.bg-dark .btn:hover { color: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.link-arrow svg { width: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(5px); }

.circle-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); transition: all .4s var(--ease);
}
.circle-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.circle-btn svg { width: 20px; }
.bg-dark .circle-btn { border-color: var(--line-light); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink); color: #fff;
  display: grid; place-items: center; transition: clip-path 1.1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.preloader.done { clip-path: inset(0 0 100% 0); }
.preloader-inner { text-align: center; }
.preloader-logo { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -.03em; overflow: hidden; }
.preloader-logo span { display: inline-block; animation: preUp .9s var(--ease) both; }
.preloader-bar { width: 220px; height: 2px; background: var(--line-light); margin: 22px auto 0; overflow: hidden; }
.preloader-bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.preloader-count { margin-top: 12px; font-size: 13px; color: var(--muted-light); letter-spacing: .2em; }
@keyframes preUp { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--ink); color: var(--muted-light); font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 46px; gap: 20px; }
.topbar-info { display: flex; gap: 28px; }
.topbar-info a, .topbar-info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar-info svg { width: 15px; color: var(--accent); }
.topbar a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: all .3s; }
.socials a:hover { background: var(--accent); color: #fff; }
.socials svg { width: 15px; height: 15px; }

.header {
  position: sticky; top: 0; z-index: 900; background: #fff;
  transition: box-shadow .4s, transform .5s var(--ease);
}
.header.is-transparent { position: absolute; left: 0; right: 0; background: transparent; color: #fff; }
.header.is-transparent + * {}
.header.sticky { position: fixed; left: 0; right: 0; background: #fff; color: var(--ink); box-shadow: 0 10px 40px -20px rgba(0,0,0,.2); animation: slideDown .6s var(--ease); }
.header.hide { transform: translateY(-100%); }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 30px; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 24px; }
.logo small { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .6; margin-top: 2px; }
.logo-text { line-height: 1; }

.nav > ul { display: flex; gap: 2px; }
.nav li { position: relative; }
.nav > ul > li > a { display: flex; align-items: center; gap: 6px; padding: 12px 14px; font-weight: 600; font-size: 15px; position: relative; white-space: nowrap; }
.nav > ul > li > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav > ul > li:hover > a::after, .nav > ul > li.active > a::after { transform: scaleX(1); transform-origin: left; }
.nav .chev { width: 10px; transition: transform .3s; }
.nav li:hover > a .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; color: var(--ink);
  border-radius: 14px; padding: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .4s var(--ease);
}
.nav li:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; transition: all .3s var(--ease); }
.dropdown a:hover { background: var(--cream); color: var(--accent); padding-left: 20px; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: all .3s; }
.is-transparent:not(.sticky) .icon-btn { border-color: var(--line-light); }
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.icon-btn svg { width: 18px; }
.header-call { display: flex; align-items: center; gap: 12px; }
.header-call .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.header-call .ico svg { width: 20px; animation: ring 2.4s infinite; }
.header-call small { display: block; font-size: 12px; opacity: .65; line-height: 1.2; }
.header-call strong { font-family: var(--font-display); font-size: 16px; white-space: nowrap; }
.header-call small { white-space: nowrap; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 5%, 15%, 25% { transform: rotate(-14deg); } 10%, 20% { transform: rotate(14deg); } }

/* Offcanvas */
.offcanvas-backdrop { position: fixed; inset: 0; background: rgba(15,17,21,.6); z-index: 990; opacity: 0; visibility: hidden; transition: .5s var(--ease); backdrop-filter: blur(4px); }
.offcanvas { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--ink); color: #fff; z-index: 991; padding: 32px; transform: translateX(100%); transition: transform .7s var(--ease); overflow-y: auto; display: flex; flex-direction: column; gap: 30px; }
.offcanvas-open .offcanvas { transform: none; }
.offcanvas-open .offcanvas-backdrop { opacity: 1; visibility: visible; }
.offcanvas-top { display: flex; justify-content: space-between; align-items: center; }
.offcanvas .icon-btn { border-color: var(--line-light); }
.mobile-nav li { border-bottom: 1px solid var(--line-light); }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-weight: 600; font-family: var(--font-display); font-size: 18px; }
.mobile-nav .sub { display: none; padding: 0 0 12px 14px; }
.mobile-nav .sub a { font-size: 15px; font-family: var(--font-body); font-weight: 500; padding: 8px 0; color: var(--muted-light); }
.mobile-nav li.open > .sub { display: block; }
.mobile-nav .toggle { width: 30px; height: 30px; display: grid; place-items: center; }
.mobile-nav li.open > a .toggle { transform: rotate(45deg); }
.offcanvas-info h4 { font-size: 18px; margin-bottom: 14px; }
.offcanvas-info p { color: var(--muted-light); font-size: 15px; margin-bottom: 6px; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 995; background: rgba(15,17,21,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .5s var(--ease); }
.search-open .search-overlay { opacity: 1; visibility: visible; }
.search-overlay form { width: min(800px, 90vw); position: relative; transform: translateY(30px); transition: .6s var(--ease); }
.search-open .search-overlay form { transform: none; }
.search-overlay input { width: 100%; background: none; border: 0; border-bottom: 2px solid var(--line-light); padding: 20px 60px 20px 0; font-size: clamp(24px, 4vw, 44px); color: #fff; font-family: var(--font-display); outline: none; }
.search-overlay input:focus { border-color: var(--accent); }
.search-overlay form button { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #fff; }
.search-overlay form button svg { width: 30px; }
.search-close { position: absolute; top: 30px; right: 30px; color: #fff; }
.search-overlay .icon-btn { border-color: var(--line-light); }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(600px, 86vh, 820px); color: #fff; overflow: hidden; background: var(--ink); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 7s linear; }
.hero-slide.active .hero-bg img { transform: scale(1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,17,21,.88) 0%, rgba(15,17,21,.55) 50%, rgba(15,17,21,.25) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-top: 90px; }
.hero-content .container { max-width: var(--container); }
.hero-text { max-width: 900px; }
.hero .eyebrow { color: var(--accent-2); }
.hero .h-xl { margin-bottom: 30px; }
.hero .h-xl .line { display: block; overflow: hidden; }
.hero .h-xl .line > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero-slide.active .h-xl .line > span { transform: none; }
.hero-slide.active .h-xl .line:nth-child(2) > span { transition-delay: .12s; }
.hero-slide.active .h-xl .line:nth-child(3) > span { transition-delay: .24s; }
.hero p { font-size: 19px; max-width: 560px; color: rgba(255,255,255,.8); margin-bottom: 40px; }
.hero .fade-up { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease) .5s; }
.hero-slide.active .fade-up { opacity: 1; transform: none; }
.hero-slide.active .fade-up.d2 { transition-delay: .7s; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.play-btn { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; }
.play-btn .ring { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; position: relative; }
.play-btn .ring::before, .play-btn .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid #fff; animation: pulse 2.4s infinite; }
.play-btn .ring::after { animation-delay: 1.2s; }
.play-btn svg { width: 18px; margin-left: 3px; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }

.hero-nav { position: absolute; z-index: 3; right: 40px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.hero-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); position: relative; }
.hero-dot svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hero-dot circle { fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 138; stroke-dashoffset: 138; }
.hero-dot.active { color: #fff; }
.hero-dot.active circle { animation: dash 6s linear forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.hero-bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; }
.hero-bottom .container { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 40px; gap: 30px; }
.scroll-down { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.scroll-down .mouse { width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 20px; position: relative; }
.scroll-down .mouse::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 3px; animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }
.hero-stat-card { background: rgba(255,255,255,.08); backdrop-filter: blur(16px); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 22px 26px; display: flex; gap: 18px; align-items: center; }
.hero-stat-card .avatars { display: flex; }
.hero-stat-card .avatars img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -12px; object-fit: cover; background: #444; }
.hero-stat-card .avatars img:first-child { margin-left: 0; }
.hero-stat-card strong { font-family: var(--font-display); font-size: 24px; display: block; line-height: 1; }
.hero-stat-card small { color: rgba(255,255,255,.7); }

/* ---------- Property search bar ---------- */
.search-bar-wrap { position: relative; z-index: 5; margin-top: -70px; }
.search-tabs { display: inline-flex; background: #fff; border-radius: 14px 14px 0 0; padding: 8px 8px 0; gap: 4px; }
.search-tabs button { padding: 12px 26px; border-radius: 10px 10px 0 0; font-weight: 600; transition: .3s; }
.search-tabs button.active { background: var(--accent); color: #fff; }
.search-bar { background: #fff; border-radius: 0 var(--radius) var(--radius) var(--radius); box-shadow: var(--shadow); padding: 26px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 18px; align-items: end; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream);
  outline: none; transition: border .3s, background .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6f78' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background-color: #fff; }
.field textarea { min-height: 150px; resize: vertical; }

/* ---------- About block ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-media { position: relative; padding: 0 60px 80px 0; }
.about-media .main { border-radius: var(--radius); aspect-ratio: 4/5; }
.about-media .sub { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border-radius: var(--radius); border: 10px solid #fff; }
.experience-badge { position: absolute; top: 40px; right: 10px; width: 160px; height: 160px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center; z-index: 2; }
.experience-badge .rot { position: absolute; inset: 8px; animation: spin 18s linear infinite; }
.experience-badge text { fill: #fff; font-size: 11.5px; letter-spacing: 3.6px; font-weight: 600; text-transform: uppercase; }
.experience-badge strong { font-family: var(--font-display); font-size: 42px; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-content p { color: var(--muted); margin-bottom: 26px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 30px 0 40px; }
.check-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.check-list svg { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.about-foot { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; padding-top: 34px; border-top: 1px solid var(--line); }
.signature { display: flex; align-items: center; gap: 14px; }
.signature img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #ccc; }
.signature strong { display: block; font-family: var(--font-display); }
.signature small { color: var(--muted); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  position: relative; padding: 44px 38px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  overflow: hidden; isolation: isolate; transition: color .5s var(--ease), transform .5s var(--ease), border-color .5s;
}
.bg-cream .service-card { border-color: transparent; }
.service-card .bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s var(--ease); }
.service-card .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease); }
.service-card .bg::after { content: ""; position: absolute; inset: 0; background: rgba(15,17,21,.82); }
.service-card:hover { color: #fff; transform: translateY(-8px); }
.service-card:hover .bg { opacity: 1; }
.service-card:hover .bg img { transform: scale(1); }
.service-card .num { position: absolute; top: 30px; right: 34px; font-family: var(--font-display); font-size: 60px; font-weight: 800; line-height: 1; -webkit-text-stroke: 1px var(--line); color: transparent; transition: .5s; }
.service-card:hover .num { -webkit-text-stroke-color: rgba(255,255,255,.25); }
.service-icon { width: 76px; height: 76px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 30px; transition: .5s var(--ease); }
.service-icon svg { width: 36px; height: 36px; }
.service-card:hover .service-icon { background: var(--accent); color: #fff; transform: rotateY(180deg); }
.service-card h3 { font-size: 24px; margin-bottom: 14px; }
.service-card p { color: var(--muted); margin-bottom: 26px; transition: color .5s; }
.service-card:hover p { color: rgba(255,255,255,.75); }

/* ---------- Counters / Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.stat { padding: 50px 30px; border-right: 1px solid var(--line-light); }
.stat:last-child { border-right: 0; }
.stat .val { font-family: var(--font-display); font-size: clamp(48px, 5vw, 76px); font-weight: 800; line-height: 1; display: flex; align-items: baseline; }
.stat .val sup { color: var(--accent); font-size: .5em; margin-left: 4px; }
.stat p { margin-top: 12px; color: var(--muted-light); }
.light-stats .stats { border-color: var(--line); }
.light-stats .stat { border-color: var(--line); }
.light-stats .stat p { color: var(--muted); }

/* ---------- Projects ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 50px; }
.filter-bar button { padding: 11px 24px; border-radius: 100px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; transition: .3s; }
.bg-dark .filter-bar button { border-color: var(--line-light); }
.filter-bar button.active, .filter-bar button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; transition: opacity .5s, transform .5s var(--ease); display: block; }
.project-card.wide { grid-column: span 2; aspect-ratio: auto; }
.project-card.hidden { display: none; }
.project-card .img-wrap { position: absolute; inset: 0; }
.project-card img { transition: transform 1.2s var(--ease); }
.project-card:hover img { transform: scale(1.1); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,17,21,.9), transparent 55%); }
.project-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; color: #fff; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.project-info .cat { display: inline-block; font-size: 13px; padding: 5px 14px; border-radius: 100px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); margin-bottom: 12px; }
.project-info h3 { font-size: 24px; }
.project-info .go { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: .5s var(--ease); }
.project-info .go svg { width: 20px; }
.project-card:hover .go { transform: none; }

/* horizontal scroll projects */
.h-scroll { overflow: hidden; }
.h-scroll-track { display: flex; gap: 28px; padding: 0 24px; cursor: grab; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.h-scroll-track::-webkit-scrollbar { display: none; }
.h-scroll-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.h-scroll-track > * { flex: 0 0 min(460px, 82vw); scroll-snap-align: start; }
.h-scroll-track .project-card { aspect-ratio: 3/4; }

/* ---------- Property cards ---------- */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.property-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.property-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.property-media { position: relative; aspect-ratio: 4/3; display: block; }
.property-media img { transition: transform 1.2s var(--ease); }
.property-card:hover .property-media img { transform: scale(1.08); }
.property-badges { position: absolute; top: 18px; left: 18px; display: flex; gap: 8px; z-index: 2; }
.badge { padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: #fff; }
.badge.dark { background: var(--ink); }
.badge.light { background: #fff; color: var(--ink); }
.fav-btn { position: absolute; top: 16px; right: 16px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; transition: .3s; }
.fav-btn svg { width: 18px; }
.fav-btn.active, .fav-btn:hover { background: var(--accent); color: #fff; }
.fav-btn.active svg { fill: currentColor; }
.property-price { position: absolute; left: 18px; bottom: 18px; z-index: 2; color: #fff; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.property-price small { font-family: var(--font-body); font-size: 14px; font-weight: 500; opacity: .8; }
.property-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,17,21,.7), transparent 50%); }
.property-body { padding: 26px; }
.property-body h3 { font-size: 21px; margin-bottom: 8px; }
.property-body h3 a:hover { color: var(--accent); }
.property-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.property-loc svg { width: 15px; color: var(--accent); }
.property-meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.property-meta span { display: flex; align-items: center; gap: 7px; }
.property-meta svg { width: 18px; color: var(--ink); }
.property-list .property-card { display: grid; grid-template-columns: 380px 1fr; }
.property-list .property-media { aspect-ratio: auto; min-height: 280px; }
.property-list { grid-template-columns: 1fr; }

/* ---------- Video / CTA band ---------- */
.video-band { position: relative; min-height: 680px; display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden; }
.video-band .parallax-bg { position: absolute; inset: -20% 0; }
.video-band .parallax-bg img { width: 100%; height: 100%; object-fit: cover; }
.video-band::before { content: ""; position: absolute; inset: 0; background: rgba(15,17,21,.6); z-index: 1; }
.video-band .container { position: relative; z-index: 2; }
.video-band .play-btn .ring { width: 110px; height: 110px; background: var(--accent); color: #fff; }
.video-band .play-btn .ring::before, .video-band .play-btn .ring::after { border-color: var(--accent); }
.video-band .play-btn svg { width: 30px; }
.video-band h2 { margin: 40px auto 0; max-width: 900px; }

/* video modal */
.modal { position: fixed; inset: 0; z-index: 999; background: rgba(15,17,21,.92); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .4s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-inner { width: min(1000px, 92vw); aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; transform: scale(.9); transition: .5s var(--ease); }
.modal.open .modal-inner { transform: none; }
.modal iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: 24px; right: 24px; color: #fff; border-color: var(--line-light) !important; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.process-grid::before { content: ""; position: absolute; top: 46px; left: 12%; right: 12%; border-top: 2px dashed var(--line); }
.bg-dark .process-grid::before { border-color: var(--line-light); }
.process-step { text-align: center; position: relative; }
.process-step .n { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 28px; display: grid; place-items: center; font-family: var(--font-display); font-size: 28px; font-weight: 800; background: #fff; border: 2px solid var(--line); position: relative; transition: .5s var(--ease); }
.bg-dark .process-step .n { background: var(--ink-2); border-color: var(--line-light); }
.process-step:hover .n { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-6px); }
.process-step h4 { font-size: 21px; margin-bottom: 10px; }
.process-step p { color: var(--muted); font-size: 15px; }

/* ---------- Why us / feature split ---------- */
.feature-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
.features-list { display: grid; gap: 22px; margin-top: 40px; }
.feature-item { display: flex; gap: 22px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line-light); transition: .4s var(--ease); }
.feature-item:hover { background: var(--ink-2); border-color: var(--accent); }
.feature-item .ico { flex: none; width: 60px; height: 60px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.feature-item .ico svg { width: 28px; }
.feature-item h4 { font-size: 20px; margin-bottom: 6px; }
.feature-item p { font-size: 15px; }
.feature-media { position: relative; border-radius: var(--radius); aspect-ratio: 4/5; }
.progress-card { position: absolute; left: -40px; bottom: 40px; width: 300px; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); z-index: 2; }
.skill { margin-bottom: 20px; }
.skill:last-child { margin-bottom: 0; }
.skill-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.skill-bar { height: 6px; border-radius: 6px; background: var(--stone); overflow: hidden; }
.skill-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width 1.8s var(--ease); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card { text-align: center; }
.team-media { position: relative; border-radius: var(--radius); aspect-ratio: 3/4; margin-bottom: 22px; }
.team-media img { transition: transform 1s var(--ease), filter .6s; filter: grayscale(.4); }
.team-card:hover .team-media img { transform: scale(1.07); filter: none; }
.team-social { position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 20px); display: flex; gap: 8px; opacity: 0; transition: .5s var(--ease); z-index: 2; }
.team-card:hover .team-social { opacity: 1; transform: translate(-50%, 0); }
.team-social a { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: .3s; }
.team-social a:hover { background: var(--accent); color: #fff; }
.team-social svg { width: 15px; height: 15px; }
.team-card h4 { font-size: 21px; margin-bottom: 4px; }
.team-card h4 a:hover { color: var(--accent); }
.team-card p { color: var(--muted); font-size: 15px; }

/* ---------- Testimonials ---------- */
.testimonial-wrap { display: grid; grid-template-columns: 400px 1fr; gap: 80px; align-items: center; }
.testimonial-rating { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 24px; border-radius: var(--radius); background: #fff; }
.testimonial-rating strong { font-family: var(--font-display); font-size: 54px; line-height: 1; }
.stars { display: flex; gap: 3px; color: #f5a623; }
.stars svg { width: 18px; fill: currentColor; }
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform .8s var(--ease); }
.slider-track > * { flex: 0 0 100%; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 50px; position: relative; }
.testimonial .quote { position: absolute; right: 44px; top: 40px; width: 70px; color: var(--accent-soft); }
.testimonial blockquote { font-family: var(--font-display); font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.45; margin: 22px 0 36px; letter-spacing: -.01em; }
.testimonial .author { display: flex; align-items: center; gap: 16px; }
.testimonial .author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #ccc; }
.testimonial .author strong { display: block; font-family: var(--font-display); font-size: 19px; }
.testimonial .author small { color: var(--muted); }
.slider-controls { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.slider-dots { display: flex; gap: 8px; margin-left: auto; }
.slider-dots button { width: 10px; height: 10px; border-radius: 10px; background: var(--line); transition: .4s var(--ease); }
.slider-dots button.active { width: 34px; background: var(--accent); }

/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brand { display: grid; place-items: center; padding: 38px 20px; border-right: 1px solid var(--line); font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--muted-light); transition: .4s; letter-spacing: -.02em; gap: 4px; }
.brand:last-child { border-right: 0; }
.brand:hover { color: var(--ink); background: var(--cream); }
.brand span { display: flex; align-items: center; gap: 8px; }
.brand svg { width: 26px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card .post-media { display: block; border-radius: var(--radius); aspect-ratio: 16/11; margin-bottom: 24px; position: relative; }
.post-card .post-media img { transition: transform 1.2s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.08); }
.post-date { position: absolute; top: 18px; left: 18px; background: #fff; border-radius: 12px; padding: 8px 14px; text-align: center; line-height: 1.1; z-index: 2; }
.post-date strong { display: block; font-family: var(--font-display); font-size: 24px; color: var(--accent); }
.post-date small { font-size: 12px; font-weight: 600; text-transform: uppercase; }
.post-meta { display: flex; gap: 18px; color: var(--muted); font-size: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-meta svg { width: 15px; color: var(--accent); }
.post-card h3 { font-size: 23px; margin-bottom: 18px; line-height: 1.25; }
.post-card h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); }
.post-card:hover h3 a { background-size: 100% 2px; }

/* ---------- CTA ---------- */
.cta-box { position: relative; border-radius: 28px; overflow: hidden; padding: 90px 80px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; background: var(--accent); isolation: isolate; }
.cta-box .shape { position: absolute; z-index: -1; border-radius: 50%; border: 60px solid rgba(255,255,255,.08); }
.cta-box .shape.s1 { width: 500px; height: 500px; right: -150px; top: -200px; animation: float 8s ease-in-out infinite; }
.cta-box .shape.s2 { width: 300px; height: 300px; left: 30%; bottom: -200px; animation: float 10s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(20px, 30px); } }
.cta-box h2 { max-width: 700px; }
.cta-box .btn::before { background: var(--ink); }

/* ---------- Page header / breadcrumbs ---------- */
.page-header { position: relative; padding: calc(var(--header-h) + 90px) 0 80px; color: #fff; overflow: hidden; background: var(--ink); }
.page-header .parallax-bg { position: absolute; inset: -15% 0; }
.page-header .parallax-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(38px, 5vw, 68px); margin-bottom: 22px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px; border-radius: 100px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); border: 1px solid var(--line-light); font-size: 15px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.page-header .big-word { position: absolute; right: -2%; bottom: -6%; font-family: var(--font-display); font-size: clamp(100px, 18vw, 280px); font-weight: 800; line-height: 1; -webkit-text-stroke: 1px rgba(255,255,255,.1); color: transparent; z-index: 1; white-space: nowrap; pointer-events: none; }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 28px; }
.widget { background: var(--cream); border-radius: var(--radius); padding: 34px; }
.widget h4 { font-size: 21px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); position: relative; }
.widget h4::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 50px; height: 2px; background: var(--accent); }
.widget-links li + li { margin-top: 8px; }
.widget-links a { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-radius: 12px; background: #fff; font-weight: 600; transition: .3s var(--ease); }
.widget-links a svg { width: 16px; transition: .3s; }
.widget-links a:hover, .widget-links a.active { background: var(--accent); color: #fff; }
.widget-links a:hover svg { transform: rotate(-45deg); }
.widget-contact { background: var(--ink); color: #fff; position: relative; overflow: hidden; text-align: center; }
.widget-contact .ico { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.widget-contact .ico svg { width: 32px; }
.widget-contact h4 { border: 0; padding: 0; }
.widget-contact h4::after { display: none; }
.widget-contact p { color: var(--muted-light); margin-bottom: 22px; }
.widget-contact a.phone { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-bottom: 24px; }
.widget-search { position: relative; }
.widget-search input { padding-right: 56px; background: #fff; }
.widget-search button { position: absolute; right: 6px; top: 6px; bottom: 6px; width: 44px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.widget-search button svg { width: 18px; }
.recent-post { display: flex; gap: 16px; align-items: center; }
.recent-post + .recent-post { margin-top: 18px; }
.recent-post .img-wrap { flex: none; width: 84px; height: 84px; border-radius: 12px; }
.recent-post small { color: var(--accent); font-weight: 600; font-size: 13px; }
.recent-post h5 { font-size: 16px; line-height: 1.35; }
.recent-post h5 a:hover { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 8px 16px; border-radius: 100px; background: #fff; font-size: 14px; font-weight: 500; transition: .3s; }
.tags a:hover { background: var(--accent); color: #fff; }

.detail-content h2 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 22px; }
.detail-content h3 { font-size: 28px; margin: 44px 0 18px; }
.detail-content p { color: var(--muted); margin-bottom: 20px; }
.detail-hero { border-radius: var(--radius); aspect-ratio: 16/9; margin-bottom: 44px; }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 34px 0; }
.detail-gallery .img-wrap { border-radius: var(--radius); aspect-ratio: 4/3; }
.info-table { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 30px 0; }
.info-table div { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.info-table div:nth-child(odd) { border-right: 1px solid var(--line); }
.info-table span { color: var(--muted); }
.info-table strong { text-align: right; }
.project-meta-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: #fff; border-radius: var(--radius); margin: -80px 40px 60px; position: relative; z-index: 3; }
.project-meta-bar div { padding: 30px; border-right: 1px solid var(--line-light); }
.project-meta-bar div:last-child { border: 0; }
.project-meta-bar small { display: block; color: var(--accent-2); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.project-meta-bar strong { font-family: var(--font-display); font-size: 19px; }
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.amenities li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.amenities svg { width: 20px; color: var(--accent); flex: none; }
.property-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.property-top .price { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.property-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 600px; margin-bottom: 60px; }
.property-gallery .img-wrap { border-radius: var(--radius); cursor: zoom-in; }
.property-gallery .img-wrap:first-child { grid-row: span 2; }
.property-gallery img { transition: transform 1s var(--ease); }
.property-gallery .img-wrap:hover img { transform: scale(1.06); }
.key-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 30px 0 40px; }
.key-facts div { background: var(--cream); border-radius: 14px; padding: 22px; text-align: center; }
.key-facts svg { width: 28px; color: var(--accent); margin: 0 auto 10px; }
.key-facts strong { display: block; font-family: var(--font-display); font-size: 22px; }
.key-facts small { color: var(--muted); }
.map-frame { border-radius: var(--radius); overflow: hidden; height: 420px; filter: grayscale(.8); margin-top: 24px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.agent-card { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.agent-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #ccc; }
.agent-card strong { display: block; font-family: var(--font-display); font-size: 19px; }
.agent-card small { color: var(--muted); }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: 14px; margin-top: 10px; color: var(--accent); min-height: 1em; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--line); }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--cream); transition: .3s; }
.post-nav a:last-child { text-align: right; }
.post-nav a:hover { background: var(--accent); color: #fff; }
.post-nav small { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; opacity: .7; }
.post-nav strong { font-family: var(--font-display); font-size: 18px; }
blockquote.pull { margin: 40px 0; padding: 40px 44px; border-radius: var(--radius); background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.45; position: relative; border-left: 5px solid var(--accent); }
blockquote.pull cite { display: block; margin-top: 18px; font-size: 15px; font-family: var(--font-body); font-style: normal; color: var(--accent-2); }
.share-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; }
.share-row .socials a { background: var(--cream); }
.share-row .socials a:hover { background: var(--accent); }
.comment { display: flex; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.comment img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex: none; background: #ccc; }
.comment strong { font-family: var(--font-display); font-size: 18px; }
.comment small { color: var(--muted); margin-left: 10px; }
.comment p { margin: 8px 0 0; }
.comment.reply { margin-left: 92px; }

/* ---------- Accordion / FAQ ---------- */
.accordion { display: grid; gap: 16px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .4s; overflow: hidden; }
.acc-item.open { border-color: var(--accent); box-shadow: var(--shadow); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.acc-head .pm { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--cream); position: relative; transition: .4s; }
.acc-head .pm::before, .acc-head .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: .4s; }
.acc-head .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .pm { background: var(--accent); color: #fff; }
.acc-item.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 28px 26px; color: var(--muted); }
.faq-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }

/* ---------- Pricing ---------- */
.pricing-toggle { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; font-weight: 600; }
.switch { width: 64px; height: 34px; border-radius: 34px; background: var(--ink); position: relative; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); transition: .4s var(--ease); }
.switch.on::after { transform: translateX(30px); }
.save-pill { font-size: 12px; padding: 4px 10px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.price-card { border: 1px solid var(--line); border-radius: 24px; padding: 46px 40px; background: #fff; display: flex; flex-direction: column; transition: .5s var(--ease); position: relative; }
.price-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.price-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-card .tag { position: absolute; top: 24px; right: 24px; }
.price-card h3 { font-size: 24px; margin-bottom: 10px; }
.price-card .desc { color: var(--muted); font-size: 15px; }
.price-card.featured .desc { color: var(--muted-light); }
.price-card .amount { font-family: var(--font-display); font-size: 60px; font-weight: 800; line-height: 1; margin: 30px 0; display: flex; align-items: baseline; gap: 4px; }
.price-card .amount small { font-size: 16px; font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.price-card ul { display: grid; gap: 14px; margin-bottom: 40px; flex: 1; padding-top: 30px; border-top: 1px solid var(--line); }
.price-card.featured ul { border-color: var(--line-light); }
.price-card li { display: flex; gap: 12px; align-items: center; }
.price-card li svg { width: 20px; color: var(--accent); flex: none; }
.price-card li.off { opacity: .4; text-decoration: line-through; }
.price-card .btn { justify-content: center; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.contact-card { padding: 44px 36px; border-radius: var(--radius); background: var(--cream); text-align: center; transition: .5s var(--ease); }
.contact-card:hover { background: var(--ink); color: #fff; transform: translateY(-8px); }
.contact-card .ico { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.contact-card .ico svg { width: 32px; }
.contact-card h4 { font-size: 22px; margin-bottom: 10px; }
.contact-card p { color: var(--muted); }
.contact-card:hover p { color: var(--muted-light); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.contact-wrap .map-frame { height: 100%; min-height: 500px; margin: 0; border-radius: 0; }
.contact-form { padding: 60px; background: #fff; }
.contact-form .h-md { margin-bottom: 30px; }

/* ---------- 404 ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 160px 24px 100px; background: var(--cream); overflow: hidden; position: relative; }
.error-page .big { font-family: var(--font-display); font-size: clamp(140px, 28vw, 380px); font-weight: 800; line-height: .85; letter-spacing: -.06em; background: linear-gradient(135deg, var(--ink), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .crane { width: 120px; margin: 0 auto 20px; color: var(--accent); animation: sway 4s ease-in-out infinite; transform-origin: top center; }
@keyframes sway { 50% { transform: rotate(6deg); } }
.error-page p { color: var(--muted); max-width: 480px; margin: 18px auto 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding: 70px 0; border-bottom: 1px solid var(--line-light); }
.footer-top h3 { font-size: clamp(28px, 3.2vw, 44px); max-width: 560px; }
.newsletter { display: flex; background: var(--ink-2); border: 1px solid var(--line-light); border-radius: 100px; padding: 6px; width: min(480px, 100%); }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 0 22px; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1.3fr; gap: 40px; padding: 80px 0 70px; }
.footer p { color: var(--muted-light); }
.footer h5 { font-size: 20px; margin-bottom: 26px; }
.footer-links li + li { margin-top: 12px; }
.footer-links a { color: var(--muted-light); display: inline-flex; align-items: center; gap: 8px; transition: .3s var(--ease); }
.footer-links a::before { content: ""; width: 0; height: 2px; background: var(--accent); transition: width .3s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { width: 12px; }
.footer-contact li { display: flex; gap: 14px; color: var(--muted-light); }
.footer-contact li + li { margin-top: 18px; }
.footer-contact svg { width: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.footer .socials { margin-top: 28px; }
.footer .socials a { border: 1px solid var(--line-light); width: 42px; height: 42px; }
.footer-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.footer-gallery .img-wrap { aspect-ratio: 1; border-radius: 8px; }
.footer-gallery img { transition: transform .6s var(--ease); }
.footer-gallery .img-wrap:hover img { transform: scale(1.12); }
.footer-bottom { border-top: 1px solid var(--line-light); padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 15px; color: var(--muted-light); }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--accent); }
.footer-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 19vw, 300px); line-height: .8; letter-spacing: -.05em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); margin-bottom: -.12em; user-select: none; }

/* Back to top progress */
.to-top { position: fixed; right: 28px; bottom: 28px; z-index: 800; width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: .4s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg.ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 157; stroke-dashoffset: 157; }
.to-top .arr { width: 18px; color: var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(15,17,21,.95); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .4s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 12px; transform: scale(.92); transition: .5s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; border-color: var(--line-light) !important; }
.lightbox .lb-prev { left: 24px; } .lightbox .lb-next { right: 24px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 16px 26px; border-radius: 100px; z-index: 1000; display: flex; gap: 10px; align-items: center; transition: transform .5s var(--ease); font-weight: 500; }
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 20px; color: var(--accent); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="up"] { transform: translateY(60px); }
[data-reveal="down"] { transform: translateY(-60px); }
[data-reveal="left"] { transform: translateX(-70px); }
[data-reveal="right"] { transform: translateX(70px); }
[data-reveal="zoom"] { transform: scale(.85); }
[data-reveal].in { opacity: 1; transform: none; }
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: right; transition: transform 1.2s var(--ease); z-index: 3; }
.img-reveal img { transform: scale(1.3); transition: transform 1.6s var(--ease); }
.img-reveal.in::after { transform: scaleX(0); }
.img-reveal.in img { transform: none; }
.tilt { transform-style: preserve-3d; transition: transform .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .nav, .header-call { display: none; }
  .burger { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .brand:nth-child(3n) { border-right: 0; }
  .brand:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .testimonial-wrap { grid-template-columns: 1fr; gap: 50px; }
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .btn { grid-column: span 2; justify-content: center; }
}
@media (max-width: 991px) {
  .section { padding: 90px 0; }
  .about-grid, .feature-split, .contact-wrap { grid-template-columns: 1fr; gap: 60px; }
  .services-grid, .property-grid, .blog-grid, .projects-grid, .pricing-grid, .contact-cards { grid-template-columns: 1fr 1fr; }
  .project-card.wide { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 50px 30px; }
  .process-grid::before { display: none; }
  .project-meta-bar { grid-template-columns: 1fr 1fr; margin: -60px 0 50px; }
  .project-meta-bar div:nth-child(2) { border-right: 0; }
  .property-gallery { height: 440px; }
  .key-facts { grid-template-columns: 1fr 1fr; }
  .property-list .property-card { grid-template-columns: 1fr; }
  .progress-card { left: 20px; }
  .hero-nav { display: none; }
  .cta-box { padding: 60px 40px; }
  .topbar-info span.hide-md { display: none; }
}
@media (max-width: 767px) {
  :root { --header-h: 76px; }
  .topbar { display: none; }
  .services-grid, .property-grid, .blog-grid, .projects-grid, .pricing-grid, .contact-cards, .team-grid { grid-template-columns: 1fr; }
  .project-card.wide { grid-column: auto; aspect-ratio: 4/5; }
  .check-list, .info-table, .detail-gallery, .form-grid.two, .post-nav, .amenities { grid-template-columns: 1fr; }
  .info-table div:nth-child(odd) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .search-bar { grid-template-columns: 1fr; }
  .search-bar .btn { grid-column: auto; }
  .search-tabs button { padding: 10px 16px; }
  .about-media { padding: 0 30px 50px 0; }
  .experience-badge { width: 120px; height: 120px; }
  .experience-badge strong { font-size: 30px; }
  .experience-badge text { font-size: 10px; letter-spacing: 2px; }
  .hero { height: clamp(580px, 90svh, 720px); }
  .hero-stat-card { display: none; }
  .property-gallery { grid-template-columns: 1fr; grid-template-rows: 280px 140px 140px; height: auto; }
  .property-gallery .img-wrap:first-child { grid-row: auto; }
  .testimonial { padding: 34px 26px; }
  .contact-form { padding: 36px 24px; }
  .comment.reply { margin-left: 30px; }
  .brands { grid-template-columns: 1fr 1fr; }
  .brand:nth-child(3n) { border-right: 1px solid var(--line); }
  .brand:nth-child(2n) { border-right: 0; }
  .brand:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .header-actions .icon-btn.search-trigger { display: none; }
  .logo small { display: none; }
  .cta-box { padding: 50px 26px; }
  .stat { padding: 34px 18px; }
  .key-facts { grid-template-columns: 1fr 1fr; }
  .project-meta-bar { grid-template-columns: 1fr; }
  .project-meta-bar div { border-right: 0; border-bottom: 1px solid var(--line-light); }
}

/* ---------- Brand (Thwart Construction Engineers) ---------- */
.logo-img { height: 54px; width: auto; flex: none; }
.logo-text { font-size: 24px; }
.logo small { color: var(--brand-yellow); opacity: 1; letter-spacing: .22em; }
.header.sticky .logo small, .offcanvas-top .logo small { color: var(--accent); }
.header:not(.is-transparent) .logo small { color: var(--accent); }
.offcanvas-top .logo small { color: var(--brand-yellow); }
.footer-logo { width: 240px; height: auto; }
.preloader-mark { width: 150px; margin: 0 auto 18px; animation: preUp .9s var(--ease) both; }
.preloader-bar i { background: linear-gradient(90deg, var(--accent), var(--brand-yellow)); }
.hero .eyebrow, .bg-dark .eyebrow, .page-header .eyebrow { color: var(--brand-yellow); }
.hero .text-accent, .page-header .text-accent { color: var(--brand-yellow); }
.cta-box { background: linear-gradient(120deg, var(--accent) 0%, #056f66 60%, var(--brand-red) 140%); }
.experience-badge { background: var(--brand-red); }
.stat .val sup { color: var(--brand-yellow); }
.light-stats .stat .val sup { color: var(--accent); }
.project-meta-bar small { color: var(--brand-yellow); }
.video-band .play-btn .ring { background: var(--brand-yellow); color: var(--ink); }
.video-band .play-btn .ring::before, .video-band .play-btn .ring::after { border-color: var(--brand-yellow); }
.feature-item .ico { background: var(--brand-red); }
.badge.red { background: var(--brand-red); }
.hero-strip { position: relative; z-index: 5; margin-top: -70px; }
.hero-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.strip-item { display: flex; gap: 18px; align-items: center; padding: 34px 30px; border-right: 1px solid var(--line); transition: background .4s var(--ease), color .4s; }
.strip-item:last-child { border-right: 0; }
.strip-item:hover { background: var(--ink); color: #fff; }
.strip-item .ico { flex: none; width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: .4s; }
.strip-item:nth-child(2) .ico { background: rgba(148, 27, 12, .1); color: var(--brand-red); }
.strip-item:nth-child(3) .ico { background: rgba(238, 221, 0, .2); color: #8a7f00; }
.strip-item:hover .ico { background: var(--brand-yellow); color: var(--ink); }
.strip-item .ico svg { width: 30px; height: 30px; }
.strip-item h4 { font-size: 19px; margin-bottom: 4px; }
.strip-item p { font-size: 14px; color: var(--muted); margin: 0; transition: color .4s; }
.strip-item:hover p { color: var(--muted-light); }
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sector { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.sector .img-wrap { position: absolute; inset: 0; z-index: -2; }
.sector img { transition: transform 1.2s var(--ease); }
.sector:hover img { transform: scale(1.1); }
.sector::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15,17,21,.92), rgba(15,17,21,.1) 60%); transition: background .5s; }
.sector:hover::before { background: linear-gradient(to top, rgba(6,140,128,.95), rgba(6,140,128,.25) 70%); }
.sector-body { padding: 28px; }
.sector-body span { font-family: var(--font-display); font-size: 14px; color: var(--brand-yellow); font-weight: 700; }
.sector-body h3 { font-size: 24px; margin: 6px 0 10px; }
.sector-body p { font-size: 14px; color: rgba(255,255,255,.8); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.sector:hover .sector-body p { max-height: 120px; opacity: 1; }
.quote-band .container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.quote-card { background: #fff; color: var(--ink); border-radius: 24px; padding: 44px; box-shadow: var(--shadow); }
.quote-card .h-sm { margin-bottom: 24px; }
.contact-lines { display: grid; gap: 18px; margin-top: 34px; }
.contact-lines a { display: flex; gap: 16px; align-items: center; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.contact-lines .ico { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-yellow); color: var(--ink); display: grid; place-items: center; flex: none; }
.contact-lines .ico svg { width: 22px; }
.contact-lines small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted-light); }
@media (max-width: 1199px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 991px) { .hero-strip .container { grid-template-columns: 1fr; } .strip-item { border-right: 0; border-bottom: 1px solid var(--line); } .quote-band .container { grid-template-columns: 1fr; gap: 50px; } }
@media (max-width: 767px) { .logo-img { height: 42px; } .logo-text { font-size: 20px; } .sectors { grid-template-columns: 1fr; } .sector { aspect-ratio: 4/3; } .sector-body p { max-height: none; opacity: 1; } .quote-card { padding: 30px 22px; } }

/* ---------- Typography & icon refinements ---------- */
body { font-size: 16px; line-height: 1.65; font-feature-settings: "cv11", "ss01"; letter-spacing: -0.006em; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.025em; }
.h-xl, .h-lg { font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.h-xl { line-height: 1.02; }
.lead { font-size: 17px; line-height: 1.7; }
.btn { font-weight: 600; letter-spacing: -0.005em; }
.section-head { margin-bottom: 56px; }
.section-head h2 { max-width: 760px; }
.text-center .section-head h2, .section-head.text-center h2 { margin-left: auto; margin-right: auto; }
.hero p { font-size: 18px; }
.hero .h-xl { margin-bottom: 24px; }
.hero-content { padding-top: var(--header-h); }
.stat .val { font-weight: 700; letter-spacing: -0.04em; }
.price-card .amount { font-weight: 700; letter-spacing: -0.04em; font-size: 48px; }
.service-card .num { font-weight: 700; }
svg.icon-fill { fill: currentColor; }
.service-icon svg { stroke-width: 1.6; }
.strip-item .ico svg, .feature-item .ico svg, .contact-card .ico svg { stroke-width: 1.75; }
.stars svg { width: 16px; height: 16px; stroke-width: 1.5; }
.testimonial .quote { stroke-width: 1.25; fill: none; color: var(--accent); opacity: .18; }
.check-list svg { stroke-width: 2.5; }
.process-step .n, .preloader-logo, .logo, .logo-text { font-weight: 700; }
.footer-bottom { margin-top: 0; }
/* keep grid columns from growing wider than the screen (slider content) */
.testimonial-wrap > *, .about-grid > *, .feature-split > *, .detail-layout > *, .quote-band .container > * { min-width: 0; }
@media (max-width: 1199px) { .testimonial-wrap { grid-template-columns: minmax(0, 1fr); } }
html, body { overflow-x: clip; }
@media (max-width: 767px) { [data-reveal="left"], [data-reveal="right"] { transform: translateY(40px); } [data-reveal].in { transform: none; } }

/* ---------- Breadcrumb (Home > Page) ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; background: none; border: 0; backdrop-filter: none; border-radius: 0; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.7); transition: color .25s; }
.breadcrumb a:hover { color: var(--brand-yellow); }
.breadcrumb .sep { width: auto; height: auto; background: none; border-radius: 0; display: inline-flex; color: rgba(255,255,255,.45); }
.breadcrumb .sep svg { width: 15px; height: 15px; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Trust band (replaces diagonal scroller) ---------- */
.trust-band { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.trust-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--brand-yellow) 0 12px, var(--ink) 12px 24px);
  background-size: 33.94px 6px; animation: tape 2.4s linear infinite; }
@keyframes tape { to { background-position: 33.94px 0; } }
.trust-band::after { content: ""; position: absolute; inset: 6px 0 0; pointer-events: none;
  background: radial-gradient(600px 160px at 15% 0%, rgba(6,140,128,.22), transparent 70%), radial-gradient(500px 160px at 90% 100%, rgba(148,27,12,.18), transparent 70%); }
.trust-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { position: relative; display: flex; align-items: center; gap: 16px; padding: 40px 28px 38px; border-right: 1px solid var(--line-light); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; background: var(--brand-yellow); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.trust-item:first-child::after { left: 0; }
.trust-item:hover::after { transform: scaleX(1); }
.trust-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--brand-yellow); background: rgba(255,255,255,.05); border: 1px solid var(--line-light); transition: background .4s var(--ease), color .4s, transform .4s var(--ease); }
.trust-ico svg { width: 24px; height: 24px; stroke-width: 1.75; }
.trust-item:hover .trust-ico { background: var(--brand-yellow); color: var(--ink); transform: translateY(-3px); }
.trust-item h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px; }
.trust-item p { font-size: 13.5px; line-height: 1.45; color: var(--muted-light); margin: 0; }
@media (max-width: 1199px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } .trust-item:nth-child(2) { border-right: 0; } .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); } .trust-item:nth-child(3) { padding-left: 0; } .trust-item:nth-child(3)::after { left: 0; } }
@media (max-width: 575px) { .trust-grid { grid-template-columns: 1fr; } .trust-item { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line-light); } .trust-item:last-child { border-bottom: 0; } .trust-item::after { left: 0; right: 0; } }

/* ---------- Mobile logo / menu button alignment ---------- */
@media (max-width: 767px) {
  .header .container { height: 76px; gap: 16px; }
  .logo { gap: 10px; align-items: center; }
  .logo-img { height: 46px; width: auto; }
  .logo-text { font-size: 19px; line-height: 1; display: flex; flex-direction: column; justify-content: center; }
  .logo small { display: block; font-size: 8.5px; letter-spacing: .16em; margin-top: 5px; white-space: nowrap; }
  .header-actions { gap: 10px; }
  .offcanvas { padding: 15px 24px 32px; }
  .offcanvas-top { min-height: 46px; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); }
  .offcanvas .icon-btn { width: 46px; height: 46px; flex: none; }
}

/* ---------- Hamburger button ---------- */
.burger { display: none; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; transition: background .3s var(--ease), transform .3s var(--ease); }
.burger:hover { background: var(--ink); }
.is-transparent:not(.sticky) .burger:hover { background: #fff; color: var(--ink); }
.burger:active { transform: scale(.94); }
.burger:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 3px; }
.burger-box { position: relative; width: 20px; height: 14px; }
.burger-box span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease), opacity .2s, width .35s var(--ease); }
.burger-box span:nth-child(1) { top: 0; }
.burger-box span:nth-child(2) { top: 6px; }
.burger-box span:nth-child(3) { top: 12px; }
.offcanvas-open .burger-box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.offcanvas-open .burger-box span:nth-child(2) { opacity: 0; }
.offcanvas-open .burger-box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Hero bottom: keep the stat card clear of the overlapping strip ---------- */
.hero-content { padding-bottom: 70px; }
.hero-bottom .container { justify-content: flex-end; padding-bottom: 106px; }
@media (max-width: 1199px) { .burger { display: inline-flex; } }

/* ---------- Laravel site additions ---------- */
.header-login { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 100px; font-weight: 600; font-size: 14.5px; background: var(--accent); color: #fff; white-space: nowrap; transition: background .3s var(--ease), color .3s; }
.header-login svg { width: 18px; height: 18px; }
.header-login:hover { background: var(--brand-yellow); color: var(--ink); }
@media (max-width: 1439px) { .header-call { display: none; } }
@media (max-width: 1199px) { .header-login { display: none; } }
.oc-login { justify-content: center; }
.oc-login svg { width: 18px; height: 18px; }
.call-dot { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.call-dot svg { width: 22px; height: 22px; }
.signature small { display: block; color: var(--muted); font-size: 13px; }
.rich p { color: var(--muted); margin-bottom: 20px; }
.rich h3 { font-size: 26px; margin: 40px 0 16px; color: var(--ink); }
.rich ul { margin: 0 0 22px; display: grid; gap: 10px; }
.rich li { position: relative; padding-left: 28px; color: var(--muted); }
.rich li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--accent); }
.rich blockquote { margin: 34px 0; padding: 32px 36px; border-radius: var(--radius); background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.45; border-left: 5px solid var(--brand-yellow); }
.info-table.single { grid-template-columns: 1fr; margin: 0; background: #fff; }
.info-table.single div { border-right: 0 !important; }
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 1000; width: 0; }
.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; margin-bottom: 90px; }
.featured-post .post-media { aspect-ratio: 4/3; }
.featured-post h2 { margin: 14px 0 20px; }
.featured-post h2 a:hover { color: var(--accent); }
.site-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 70px; }
.site-pagination a, .site-pagination span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 600; transition: .3s; }
.site-pagination .active, .site-pagination a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-pagination .dis { opacity: .4; }
.toast.is-error svg { color: #f87171; }
.share-row .tags span { padding: 8px 16px; border-radius: 100px; background: var(--cream); font-size: 14px; font-weight: 500; }
@media (max-width: 991px) { .featured-post { grid-template-columns: 1fr; gap: 30px; } }
.logo small { white-space: nowrap; }

/* WhatsApp chat button */
.wa-float { position: fixed; left: 24px; bottom: 24px; z-index: 800; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 100px; background: #25d366; color: #fff; font-weight: 600; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); }
.wa-float:hover { transform: translateY(-3px); color: #fff; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 767px) { .wa-float { width: 54px; padding: 0; justify-content: center; } .wa-float span { display: none; } }


/* =========================================================
   Highlights strip — responsive on every device
   ========================================================= */
.hero-strip .strip-card { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); width: calc(100% - 48px); max-width: calc(var(--container) - 48px); padding: 0; }
.hero-strip .strip-item { min-width: 0; }
.hero-strip .strip-item h4 { line-height: 1.25; }
.hero-strip .strip-item p { line-height: 1.45; }
@media (max-width: 1199px) {
  .hero-strip .strip-item { padding: 26px 22px; gap: 14px; }
  .hero-strip .strip-item .ico { width: 52px; height: 52px; border-radius: 14px; }
  .hero-strip .strip-item .ico svg { width: 26px; height: 26px; }
  .hero-strip .strip-item h4 { font-size: 17px; }
}
@media (max-width: 991px) {
  .hero-strip { margin-top: -56px; }
  .hero-strip .strip-card { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
  .hero-strip .strip-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 0; }
  .hero-strip .strip-item:last-child { border-right: 0; }
  .hero-strip .strip-item h4 { font-size: 16px; margin-bottom: 2px; }
  .hero-strip .strip-item p { font-size: 13.5px; }
}
@media (max-width: 767px) {
  .hero-strip { margin-top: -40px; }
  .hero-strip .strip-card { grid-template-columns: 1fr; width: calc(100% - 32px); border-radius: 16px; }
  .hero-strip .strip-item { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-strip .strip-item:last-child { border-bottom: 0; }
  .hero-strip .strip-item .ico { width: 44px; height: 44px; border-radius: 12px; }
  .hero-strip .strip-item .ico svg { width: 22px; height: 22px; }
  .hero-strip .strip-item h4 { font-size: 15.5px; }
  .hero-strip .strip-item p { font-size: 13px; }
}

/* =========================================================
   "How we run every site" — editorial band (replaces the icon grid)
   ========================================================= */
.standard-band { background: var(--ink); color: #fff; padding: 96px 0; position: relative; }
.standard-band::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent) 0 33%, var(--brand-yellow) 33% 66%, var(--brand-red) 66%); }
.standard-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.standard-intro h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; max-width: 420px; }
.standard-intro p { margin-top: 18px; color: var(--muted-light); font-size: 17px; line-height: 1.6; max-width: 400px; }
.standard-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-light); }
.standard-list li { display: flex; gap: 18px; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line-light); }
.standard-list li:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--line-light); }
.standard-list li:nth-child(even) { padding-left: 32px; }
.standard-no { flex: none; font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--brand-yellow); letter-spacing: .02em; padding-top: 3px; font-variant-numeric: tabular-nums; }
.standard-list h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 8px; }
.standard-list p { color: var(--muted-light); font-size: 15px; line-height: 1.6; margin: 0; }
@media (max-width: 1199px) { .standard-grid { grid-template-columns: 1fr; gap: 40px; } .standard-intro h2, .standard-intro p { max-width: 640px; } }
@media (max-width: 767px) {
  .standard-band { padding: 64px 0; }
  .standard-list { grid-template-columns: 1fr; }
  .standard-list li, .standard-list li:nth-child(odd), .standard-list li:nth-child(even) { padding: 22px 0; border-right: 0; }
  .standard-list h3 { font-size: 17px; }
}

/* =========================================================
   Projects carousel — moves with page scroll, aligned & responsive
   ========================================================= */
.hs-controls { display: flex; gap: 12px; }
.h-scroll-track { padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px)); padding-right: 24px; scroll-padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px)); }
.h-scroll-track > * { flex: 0 0 clamp(270px, 30vw, 420px); }
[data-scroll-drive] .h-scroll-track { scroll-snap-type: none; scroll-behavior: auto; }
.h-scroll-progress { height: 2px; background: var(--line-light); margin-top: 32px; border-radius: 2px; overflow: hidden; }
.h-scroll-progress span { display: block; height: 100%; background: var(--brand-yellow); transform-origin: left; transform: scaleX(0); }
@media (max-width: 991px) {
  .h-scroll-track { gap: 20px; }
  .h-scroll-track > * { flex-basis: clamp(260px, 44vw, 380px); }
}
@media (max-width: 767px) {
  .hs-controls { display: none; }
  .h-scroll-track { gap: 14px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .h-scroll-track > * { flex-basis: 78vw; }
  .h-scroll-track .project-card { aspect-ratio: 4/5; }
  .project-info { padding: 22px; }
  .project-info h3 { font-size: 20px; }
}


/* =========================================================
   Custom page sections & article typography
   ========================================================= */
.page-sub { color: rgba(255,255,255,.82); font-size: 18px; max-width: 620px; margin: -6px 0 22px; }
.draft-ribbon { position: fixed; z-index: 950; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--brand-yellow); color: var(--ink); font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 100px; box-shadow: var(--shadow); }
.block-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.block-split.flip .block-split-media { order: 2; }
.block-split-media { border-radius: var(--radius); aspect-ratio: 5/4; }
.bg-dark .rich p, .bg-dark .rich li { color: var(--muted-light); }
.bg-dark .rich h2, .bg-dark .rich h3 { color: #fff; }
.block-gallery { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 18px; }
.block-gallery figure { margin: 0; }
.block-gallery .img-wrap { border-radius: 14px; aspect-ratio: 4/3; cursor: zoom-in; }
.block-gallery img { transition: transform .8s var(--ease); }
.block-gallery .img-wrap:hover img { transform: scale(1.05); }
.block-gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.rich { font-size: 17px; line-height: 1.75; }
.rich > *:first-child { margin-top: 0; }
.rich h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 44px 0 16px; letter-spacing: -0.03em; line-height: 1.15; }
.rich h4 { font-size: 19px; margin: 30px 0 12px; }
.rich ol { margin: 0 0 22px 22px; display: grid; gap: 8px; color: var(--muted); }
.rich ol li { padding-left: 4px; }
.rich ol li::before { display: none; }
.rich ol li[data-list="bullet"] { list-style: disc; }
.rich a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.rich img { border-radius: 14px; margin: 26px 0; width: 100%; height: auto; }
.rich iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 14px; margin: 26px 0; }
.rich strong { color: var(--ink); }
.rich .ql-align-center { text-align: center; }
.rich .ql-align-right { text-align: right; }
.rich .ql-align-justify { text-align: justify; }
@media (max-width: 991px) { .block-split { grid-template-columns: 1fr; gap: 36px; } .block-split.flip .block-split-media { order: 0; } .block-gallery { --cols: 2 !important; } }
@media (max-width: 575px) { .block-gallery { --cols: 1 !important; } .rich { font-size: 16px; } }

/* Video players inside articles and pages (YouTube, Facebook, Vimeo) */
.rich iframe.ql-video, .rich iframe { display: block; width: 100%; aspect-ratio: 16/9; height: auto; background: #000; }

/* Hero: the bottom strip (stat card) must never cover the slide buttons */
.hero-bottom { pointer-events: none; }
.hero-bottom .hero-stat-card { pointer-events: auto; }
/* Slides that are not showing never catch clicks (also during the fade between slides) */
.hero-slide:not(.active) { pointer-events: none; }
.hero-slide.active { z-index: 2; }
.hero-content { position: relative; z-index: 2; }
.hero-actions .btn, .hero-actions .play-btn { position: relative; z-index: 3; }

/* ---------- Area pages & building guides ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area-card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--radius); background: var(--cream); border: 1px solid transparent; transition: .3s var(--ease); }
.area-card:hover { background: #fff; border-color: var(--line); transform: translateY(-4px); }
.area-card h3 { font-size: 22px; }
.area-card p { color: var(--muted); flex: 1; }
.area-card .eyebrow { color: var(--accent); font-size: 12px; }
.area-projects { grid-template-columns: repeat(2, 1fr); margin: 24px 0 40px; }
.area-guides { margin-top: 32px; color: var(--muted); }
.area-guides a, .rich a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.guide-meta { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.rich h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 44px 0 16px; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 8px 0 32px; border-radius: var(--radius); border: 1px solid var(--line); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--ink); color: #fff; font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: var(--cream); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.cost-calc { margin: 40px 0; padding: 34px; border-radius: var(--radius); background: var(--cream); border-left: 5px solid var(--brand-yellow); }
.cost-calc h2 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 20px; }
.cost-calc-out { font-size: 20px; margin: 20px 0 8px; }
.cost-calc-out strong { color: var(--accent); }
.cost-calc .small { font-size: 14px; color: var(--muted); }
.steps-list { display: grid; gap: 18px; margin: 8px 0 32px; counter-reset: none; }
.steps-list li { display: flex; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--cream); }
.steps-list .n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; }
.steps-list h3 { font-size: 19px; margin-bottom: 6px; }
.steps-list p { color: var(--muted); }
@media (max-width: 991px) { .area-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .area-grid, .area-projects { grid-template-columns: 1fr; } .cost-calc { padding: 24px 20px; } .steps-list li { padding: 20px; gap: 14px; } }

/* =========================================================
   Project page: progress tracker, own-photo gallery, viewer
   ========================================================= */
.project-page .project-meta-bar { margin-bottom: 40px; }

/* Progress tracker */
.proj-progress { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 38px 30px; margin: 0 0 70px; }
.pp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.pp-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pp-stage { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pp-stage svg { width: 24px; height: 24px; color: var(--accent); }
.pp-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(6,140,128,.5); animation: ppPulse 2s infinite; flex: none; }
@keyframes ppPulse { 70% { box-shadow: 0 0 0 12px rgba(6,140,128,0); } 100% { box-shadow: 0 0 0 0 rgba(6,140,128,0); } }
.pp-percent { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5vw, 64px); line-height: .9; letter-spacing: -.04em; color: var(--accent); white-space: nowrap; }
.pp-percent small { font-size: .45em; margin-left: 2px; color: var(--ink); }
.pp-track { position: relative; height: 14px; border-radius: 14px; background: var(--stone); overflow: visible; }
.pp-track.sm { height: 8px; }
.pp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #0bb3a3); transition: width 1.8s var(--ease); overflow: hidden; }
.pp-fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 10px, transparent 10px 20px); animation: ppStripes 1.2s linear infinite; }
.is-done .pp-fill::after { animation: none; }
@keyframes ppStripes { to { background-position: 28px 0; } }
.pp-tick { position: absolute; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgba(15,17,21,.25); z-index: 1; }
.pp-tick.on { background: rgba(255,255,255,.85); }
.pp-tick { display: none; }
.pp-stages { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.pp-stages li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted-light); }
.pp-stages li:nth-child(n+2) { justify-content: center; }
.pp-stages li:last-child { justify-content: flex-end; }
.pp-stages .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.pp-stages li.on { color: var(--ink); }
.pp-stages li.on .dot { background: var(--accent); border-color: var(--accent); }
.pp-stages li.now { color: var(--accent); }
.pp-stages li.now .dot { box-shadow: 0 0 0 4px var(--accent-soft); }
.pp-dates { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.pp-dates div { display: flex; align-items: center; gap: 10px; }
.pp-dates svg { width: 20px; height: 20px; color: var(--accent); }
.pp-dates span { color: var(--muted); }
.pp-dates strong { font-family: var(--font-display); }
.side-progress { margin-top: 18px; display: grid; gap: 10px; }
.side-progress > div:first-child { display: flex; justify-content: space-between; }
.side-progress span { color: var(--muted); }

/* Photo gallery (this project's own photos) */
.pg { margin: 0 0 80px; scroll-margin-top: calc(var(--header-h) + 20px); }
.pg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.pg-head .eyebrow { margin-bottom: 8px; }
.pg-all { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 50px; background: var(--ink); color: #fff; font-weight: 600; transition: background .3s var(--ease), transform .3s var(--ease); }
.pg-all:hover { background: var(--accent); transform: translateY(-2px); }
.pg-all svg { width: 18px; height: 18px; }
.pg-mosaic { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; }
.pg-item { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--stone); cursor: zoom-in; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .4s; }
.pg-item:hover img { transform: scale(1.06); }
.pg-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,17,21,.55)); opacity: 0; transition: opacity .4s; }
.pg-item:hover::after { opacity: 1; }
.pg-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pg-item:first-child { grid-row: 1 / 3; }
.pg-item:nth-child(n+6) { display: none; }
.pg-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-size: 14px; font-weight: 600; text-align: left; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.pg-item:hover .pg-cap { opacity: 1; transform: none; }
.pg-more { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; background: rgba(15,17,21,.55); color: #fff; font-family: var(--font-display); font-size: 34px; font-weight: 800; backdrop-filter: blur(2px); }
.pg-more small { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
/* fewer photos: simpler layouts */
.pg-n1 { grid-template-columns: 1fr; grid-template-rows: auto; }
.pg-n1 .pg-item { aspect-ratio: 16/8; }
.pg-n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 420px; }
.pg-n2 .pg-item:first-child, .pg-n3 .pg-item:first-child { grid-row: auto; }
.pg-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 220px 220px; }
.pg-n3 .pg-item:first-child { grid-row: 1 / 3; }
.pg-n4 { grid-template-columns: 2fr 1fr 1fr; }
.pg-n4 .pg-item:nth-child(4) { grid-column: 2 / 4; }
.pg-count-sm { display: none; }

/* Full-screen viewer */
.pg-lb { position: fixed; inset: 0; z-index: 1000; background: #0a0c0f; color: #fff; display: grid; grid-template-rows: auto 1fr auto auto; opacity: 0; transition: opacity .3s; }
.pg-lb[hidden] { display: none; }
.pg-lb.open { opacity: 1; }
.pg-lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; padding-top: calc(16px + env(safe-area-inset-top)); }
.pg-lb-count { font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.8); }
.pg-lb-btn { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .2s; }
.pg-lb-btn:hover { background: var(--accent); }
.pg-lb-btn svg { width: 22px; height: 22px; }
.pg-lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 90px; touch-action: pan-y; user-select: none; }
.pg-lb-stage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 180px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; transition: opacity .25s; }
.pg-lb-stage img.loading { opacity: .3; }
.pg-lb-prev, .pg-lb-next { position: absolute; top: 50%; margin-top: -26px; }
.pg-lb-prev { left: 20px; }
.pg-lb-next { right: 20px; }
.pg-lb-cap { text-align: center; padding: 14px 20px 0; min-height: 38px; color: rgba(255,255,255,.88); font-weight: 500; }
.pg-lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 14px 20px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; }
.pg-lb-thumbs::-webkit-scrollbar { display: none; }
.pg-lb-thumbs button { flex: none; width: 64px; height: 46px; border-radius: 8px; overflow: hidden; opacity: .45; outline: 2px solid transparent; transition: opacity .2s, outline-color .2s; }
.pg-lb-thumbs button.on { opacity: 1; outline-color: var(--accent-2); }
.pg-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.pg-lock { overflow: hidden; }

/* Share widget */
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row a, .share-row button { height: 48px; min-width: 48px; padding: 0 14px; border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; transition: background .3s, color .3s; }
.share-row a:hover, .share-row button:hover { background: var(--accent); color: #fff; }
.share-row svg { width: 20px; height: 20px; }
.share-row button { flex: 1; }

@media (max-width: 991px) {
  .proj-progress { padding: 26px 24px; margin-bottom: 54px; }
  .pg-mosaic, .pg-n3, .pg-n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 180px 180px; }
  .pg-mosaic .pg-item:first-child { grid-row: auto; grid-column: 1 / 3; }
  .pg-n4 .pg-item:nth-child(4) { grid-column: auto; }
  .pg-n2 { grid-template-rows: 300px; }
}
@media (max-width: 767px) {
  .project-page .project-meta-bar { margin-bottom: 28px; }
  .proj-progress { padding: 22px 18px 20px; margin-bottom: 44px; border-radius: 16px; }
  .pp-top { align-items: center; margin-bottom: 16px; }
  .pp-stage { font-size: 17px; }
  .pp-percent { font-size: 46px; }
  .pp-stages { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 14px; }
  .pp-stages li, .pp-stages li:nth-child(n+2), .pp-stages li:last-child { flex-direction: column; justify-content: flex-start; gap: 6px; font-size: 11px; line-height: 1.25; text-align: center; }
  .pp-stages li:first-child { align-items: flex-start; text-align: left; }
  .pp-stages li:last-child { align-items: flex-end; text-align: right; }
  .pp-dates { gap: 12px; flex-direction: column; margin-top: 18px; padding-top: 16px; }
  .pg { margin-bottom: 50px; }
  .pg-head { margin-bottom: 16px; }
  .pg-all { display: none; }
  /* Phones: swipe through every photo */
  .pg-mosaic, .pg-n1, .pg-n2, .pg-n3, .pg-n4 { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pg-mosaic::-webkit-scrollbar { display: none; }
  .pg-item, .pg-item:nth-child(n+6) { display: block; flex: 0 0 86%; height: auto; aspect-ratio: 4/3; scroll-snap-align: center; }
  .pg-n1 .pg-item { flex-basis: 100%; }
  .pg-more { display: none; }
  .pg-cap { opacity: 1; transform: none; font-size: 13px; }
  .pg-item::after { opacity: 1; }
  .pg-item:not(:has(.pg-cap))::after { opacity: 0; }
  .pg-count-sm { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
  .pg-count-sm svg { width: 16px; height: 16px; }
  .pg-lb-stage { padding: 0; }
  .pg-lb-stage img { max-width: calc(100% - 16px); border-radius: 6px; }
  .pg-lb-prev, .pg-lb-next { display: none; }
  .pg-lb-btn { width: 46px; height: 46px; }
  .pg-lb-thumbs { justify-content: flex-start; }
  .share-row a { flex: 1; }
  .share-row button { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-fill, .pp-fill::after, .pp-pulse { transition: none; animation: none; }
}
@media (max-width: 767px) {
  .project-page .project-meta-bar { grid-template-columns: 1fr 1fr; margin-left: 0; margin-right: 0; }
  .project-page .project-meta-bar div { padding: 18px 18px; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .project-page .project-meta-bar div:nth-child(odd) { border-right: 1px solid var(--line-light); }
  .project-page .project-meta-bar div:nth-last-child(-n+2) { border-bottom: 0; }
  .project-page .project-meta-bar small { font-size: 11px; margin-bottom: 4px; }
  .project-page .project-meta-bar strong { font-size: 16px; line-height: 1.3; display: block; }
}
