/* =========================================================
   3767 Waring Place — coastal luxury mini-site
   ========================================================= */

:root {
  --ink: #10242f;
  --ink-soft: #2b3d47;
  --muted: #5f7079;
  --line: #e4ddd2;
  --cream: #f7f3ec;
  --cream-2: #efe9df;
  --white: #ffffff;
  --teal: #1c6b73;
  --teal-dark: #134d54;
  --sand: #c19a5b;
  --sand-soft: #d8b478;
  --shadow: 0 24px 60px rgba(16, 36, 47, 0.14);
  --shadow-sm: 0 10px 30px rgba(16, 36, 47, 0.10);
  --radius: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: clamp(4rem, 9vw, 8rem) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sand);
  margin: 0 0 1rem;
}
.eyebrow.light { color: var(--sand-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  color: var(--ink);
}
.section-title.light { color: #fff; }

.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin: 0; }
.section-lead.light { color: rgba(255,255,255,0.82); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head .section-lead { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.02em; padding: 0.85rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.3s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--sand); color: #1a1206; border-color: var(--sand); }
.btn-primary:hover { background: var(--sand-soft); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(193,154,91,0.35); }
.btn-outline { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.6); backdrop-filter: blur(4px); }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn-ghost:hover { border-color: var(--sand); color: var(--teal-dark); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 0.4rem 0;
}
.site-header.scrolled { background: rgba(247,243,236,0.92); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.header-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: baseline; gap: 0.5rem; color: var(--ink); margin-right: auto; }
.brand-mark { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--teal); letter-spacing: 0.02em; }
.brand-text { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.16em; text-transform: uppercase; }
.site-header:not(.scrolled) .brand { color: #fff; }
.site-header:not(.scrolled) .brand-mark { color: var(--sand-soft); }

.primary-nav { display: flex; gap: 0.3rem; }
.nav-link {
  color: var(--ink-soft); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.5rem 0.7rem; border-radius: 6px; position: relative;
  transition: color 0.25s var(--ease);
}
.site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.85); }
.nav-link::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.3rem; height: 1px;
  background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--teal); }
.site-header:not(.scrolled) .nav-link.active { color: #fff; }

.nav-cta { margin-left: 0.4rem; }
.site-header:not(.scrolled) .nav-cta { color: #fff; border-color: rgba(255,255,255,0.55); }
.site-header:not(.scrolled) .nav-cta:hover { background: #fff; color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: 0.3s var(--ease); }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,28,38,0.55) 0%, rgba(10,28,38,0.30) 35%, rgba(10,28,38,0.65) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 7rem 1.5rem 0; width: 100%; }
.hero-eyebrow { letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.8rem; color: var(--sand-soft); margin-bottom: 1.2rem; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.8rem, 8vw, 6rem); line-height: 1.02; margin: 0 0 1.4rem; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero-sub { max-width: 46ch; font-size: 1.15rem; color: rgba(255,255,255,0.9); margin: 0 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
.hero-logos { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.hero-logos img { width: auto; display: block; }
.hero-logo-bh { height: 99px; max-width: 428px; }
.hero-logo-remax { height: 50px; max-width: 293px; filter: invert(1) brightness(2); }
.hero-logos-divider { width: 1px; height: 72px; background: rgba(255,255,255,0.28); }
.hero-price { display: inline-flex; align-items: baseline; gap: 0.6rem; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 1.2rem; }
.hero-price span { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.hero-price strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.hero-pricenote { margin: 0.7rem 0 0; font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.72); font-style: italic; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.6); border-radius: 14px; z-index: 2; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- Overview ---------- */
.section-overview { background: var(--cream); }
.overview-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.overview-copy p { color: var(--ink-soft); margin: 0 0 1.2rem; }
.highlight-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 0.8rem; }
.highlight-list li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.highlight-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 4px rgba(193,154,91,0.18); }

.overview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: sticky; top: 100px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); }
.stat-value { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; color: var(--teal); line-height: 1; }
.stat-label { margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- Vision / Renderings ---------- */
.section-vision { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.render-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.render-card { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); background: #ddd; aspect-ratio: 16/10; }
.render-card.render-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: 16/11; }
.render-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.render-card:hover img { transform: scale(1.06); }
.render-card figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.3rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(8,24,33,0.85)); color: #fff;
  display: flex; flex-direction: column; gap: 0.15rem; transform: translateY(8px); opacity: 0.95; transition: 0.4s var(--ease);
}
.render-title { font-family: var(--serif); font-size: 1.3rem; }
.render-caption { font-size: 0.85rem; color: rgba(255,255,255,0.82); }

/* ---------- Readiness ---------- */
.section-readiness { background: var(--ink); color: #fff; }
.section-readiness .section-title { color: #fff; }
.section-readiness .section-lead { color: rgba(255,255,255,0.75); }
.readiness-meter { max-width: 540px; margin: 0 auto 2.5rem; text-align: center; }
.meter-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--sand)); border-radius: 999px; transition: width 1.4s var(--ease); }
.meter-label { margin-top: 0.9rem; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.meter-label strong { color: var(--sand-soft); font-size: 1.1rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: rgba(255,255,255,0.8);
  padding: 0.5rem 1.2rem; border-radius: 999px; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer; transition: 0.25s var(--ease);
}
.filter-btn:hover { border-color: var(--sand); color: #fff; }
.filter-btn.is-active { background: var(--sand); color: #1a1206; border-color: var(--sand); }

.milestone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.milestone {
  display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  transition: 0.35s var(--ease);
}
.milestone:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.milestone.is-hidden { display: none; }
.milestone-status { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; font-weight: 700; }
.status-done { background: rgba(28,107,115,0.25); color: #6fd0c4; border: 1px solid rgba(111,208,196,0.4); }
.status-progress { background: rgba(193,154,91,0.2); color: var(--sand-soft); border: 1px solid rgba(216,180,120,0.45); }
.milestone-body h3 { margin: 0 0 0.3rem; font-size: 1.02rem; font-weight: 600; color: #fff; }
.milestone-body p { margin: 0 0 0.7rem; font-size: 0.86rem; color: rgba(255,255,255,0.66); line-height: 1.5; }
.milestone-tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.2rem 0.6rem; border-radius: 999px; }
.tag-done { background: rgba(111,208,196,0.15); color: #6fd0c4; }
.tag-progress { background: rgba(216,180,120,0.18); color: var(--sand-soft); }

.advantages { margin-top: clamp(3.5rem, 7vw, 6rem); }
.advantages-title { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.3rem); text-align: center; color: #fff; margin: 0 0 0.6rem; }
.advantages-title + .advantage-grid { margin-top: 2.4rem; }
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.advantage {
  position: relative; padding: 2.1rem 1.7rem 1.8rem; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.advantage::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--sand)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.advantage:hover { transform: translateY(-5px); border-color: rgba(216,180,120,0.4); background: linear-gradient(160deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035)); }
.advantage:hover::before { transform: scaleX(1); }
.advantage-num {
  display: block; font-family: var(--serif); font-size: 2.7rem; font-weight: 600; line-height: 1; margin-bottom: 1rem;
  color: transparent; -webkit-text-stroke: 1px rgba(216,180,120,0.55); letter-spacing: 0.02em;
}
.advantage h4 { margin: 0 0 0.5rem; font-size: 1.12rem; color: #fff; font-weight: 600; letter-spacing: -0.01em; }
.advantage p { margin: 0; font-size: 0.88rem; color: rgba(255,255,255,0.66); line-height: 1.55; }

/* ---------- Gallery ---------- */
.section-gallery { background: var(--cream); }
.gallery-grid { columns: 3; column-gap: 8px; margin-top: 1rem; padding: 0 8px; }
.gallery-item { position: relative; break-inside: avoid; margin-bottom: 8px; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; transition: transform 0.7s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem 0.9rem; color: #fff; font-size: 0.85rem;
  background: linear-gradient(180deg, transparent, rgba(8,24,33,0.8)); opacity: 0; transition: 0.4s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; }

/* ---------- Film ---------- */
.section-film { position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; color: #fff; text-align: center; overflow: hidden; }
.film-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.film-bg.is-playing { opacity: 1; }
.film-overlay { position: absolute; inset: 0; background: rgba(10,28,38,0.62); z-index: 1; }
.film-content { position: relative; z-index: 2; max-width: 640px; }
.film-content .section-lead { margin: 0 auto 2rem; }
.play-film { font-size: 1.05rem; padding: 1rem 2.2rem; }
.film-download { display: block; margin-top: 1.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }
.film-download:hover { color: #fff; }

/* ---------- Location ---------- */
.section-location { background: var(--cream); }
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.8rem; color: var(--ink-soft); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; }
.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.location-map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Team ---------- */
.section-team { background: var(--cream-2); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); }
.team-card h3 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 0.2rem; color: var(--teal-dark); }
.team-role { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; color: var(--sand); margin: 0 0 1rem; font-weight: 600; }
.team-card p:last-child { margin: 0; color: var(--ink-soft); }
.team-link { margin: 0.9rem 0 0 !important; }
.team-link a { color: var(--teal); font-weight: 600; letter-spacing: 0.02em; text-decoration: none; border-bottom: 1px solid rgba(28,107,115,0.35); }
.team-link a:hover { border-bottom-color: var(--teal); }

/* ---------- Documents ---------- */
.section-documents { background: var(--cream); }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.doc-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.doc-group-title { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 1rem; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.doc-link { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.5rem; border-radius: 8px; color: var(--ink-soft); transition: 0.2s var(--ease); }
.doc-link:hover { background: var(--cream-2); color: var(--teal-dark); }
.doc-icon { flex: 0 0 auto; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; color: #fff; background: var(--teal); padding: 0.25rem 0.4rem; border-radius: 4px; }
.doc-name { flex: 1; font-size: 0.92rem; }
.doc-size { font-size: 0.74rem; color: var(--muted); }

/* ---------- Contact ---------- */
.section-contact { background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-price { margin: 1.8rem 0 0.35rem; color: var(--sand-soft); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.contact-offering { margin: 0 0 1.6rem; color: rgba(255,255,255,0.8); font-size: 0.95rem; font-style: italic; }

.contact-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.contact-logos { display: flex; align-items: center; gap: 1.6rem; margin: 0; flex-wrap: wrap; }
.contact-logos img { width: auto; display: block; }
.logo-bh { height: 99px; max-width: 428px; }
.logo-remax { height: 50px; max-width: 293px; filter: invert(1) brightness(2); }
.contact-logos-divider { width: 1px; height: 72px; background: rgba(255,255,255,0.22); }
.contact-name { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.3rem); color: #fff; margin: 0 0 0.15rem; }
.contact-prec { text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.74rem; font-weight: 600; color: var(--sand-soft); margin: 0 0 0.15rem; }
.contact-broker { color: rgba(255,255,255,0.82); margin: 0 0 1.4rem; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.55rem; }
.contact-lines a { color: #fff; font-size: 1.08rem; letter-spacing: 0.01em; }
.contact-lines a:hover { color: var(--sand-soft); text-decoration: none; }
.contact-lines .muted-line { color: rgba(255,255,255,0.45); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 0.4rem; }
.contact-address { color: rgba(255,255,255,0.68); font-size: 0.92rem; margin: 0 0 1.7rem; }
.contact-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1a22; color: rgba(255,255,255,0.7); padding: 3rem 0; text-align: center; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.footer-note { margin: 0.5rem 0 0.3rem; color: var(--sand-soft); letter-spacing: 0.04em; }
.footer-note-sub { margin: 0 0 1.2rem; color: rgba(255,255,255,0.55); font-size: 0.82rem; font-style: italic; }
.footer-fine { font-size: 0.78rem; color: rgba(255,255,255,0.45); max-width: 60ch; margin: 0 auto; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(7,18,24,0.94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease); }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; max-width: 90vw; max-height: 86vh; text-align: center; }
.lb-figure img { max-width: 90vw; max-height: 80vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lb-figure figcaption { color: rgba(255,255,255,0.85); margin-top: 1rem; font-size: 0.95rem; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; cursor: pointer; transition: 0.25s var(--ease); }
.lb-close { top: 1.4rem; right: 1.6rem; width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lb-prev { left: 1.6rem; }
.lb-next { right: 1.6rem; }
.lb-close:hover, .lb-nav:hover { background: var(--sand); color: #1a1206; border-color: var(--sand); }

/* ---------- Video modal ---------- */
.video-modal { position: fixed; inset: 0; z-index: 130; background: rgba(5,12,16,0.95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease); padding: 1.5rem; }
.video-modal.open { opacity: 1; visibility: visible; }
.vm-inner { width: min(1100px, 100%); position: relative; }
.vm-inner video { width: 100%; max-height: 82vh; border-radius: 8px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.vm-fallback { color: rgba(255,255,255,0.85); text-align: center; margin-top: 1rem; }
.vm-fallback a { color: var(--sand-soft); }
.vm-close { position: absolute; top: 1.4rem; right: 1.6rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 1.6rem; cursor: pointer; transition: 0.25s var(--ease); }
.vm-close:hover { background: var(--sand); color: #1a1206; border-color: var(--sand); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  color: #fff; background: var(--teal); border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 26px rgba(16,36,47,0.35);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sand); color: #1a1206; }
@media (max-width: 720px) {
  .to-top { right: 1rem; bottom: 1rem; width: 44px; height: 44px; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .overview-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .overview-stats { position: static; }
  .render-grid { grid-template-columns: repeat(2, 1fr); }
  .render-card.render-feature { grid-column: span 2; grid-row: auto; }
  .milestone-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .primary-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(247,243,236,0.98); padding: 1rem 1.5rem 1.5rem; box-shadow: var(--shadow-sm); gap: 0;
  }
  .primary-nav.open .nav-link { color: var(--ink-soft); padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .site-header.scrolled .header-inner, .site-header .header-inner { position: relative; }
  .render-grid { grid-template-columns: 1fr; }
  .render-card.render-feature { grid-column: auto; }
  .milestone-grid, .team-grid, .docs, .advantage-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .field-row { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .hero-logos { margin-left: 0; flex-basis: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
