/* ============================================================
   Projexel Heritage — MVP Preview Stylesheet
   Palette: deep maroon / antique gold / sandstone cream
   ============================================================ */

:root {
  --maroon: #7b2d26;
  --maroon-dark: #5a1f1a;
  --maroon-deep: #431612;
  --gold: #c9a227;
  --gold-soft: #e3c766;
  --cream: #faf6ef;
  --sand: #f0e7d8;
  --sand-dark: #e2d5bf;
  --ink: #2b2320;
  --ink-soft: #5d534d;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(67, 22, 18, 0.10);
  --shadow-sm: 0 4px 14px rgba(67, 22, 18, 0.08);
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--maroon-deep); }

a { color: var(--maroon); text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

section { padding: 72px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-gold { background: var(--gold); color: var(--maroon-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-dark); color: #fff; }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.75); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--maroon-deep); }

/* ---------- Badges / labels ---------- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow.on-light { color: #a2801a; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.placeholder-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-style: italic;
  opacity: 0.85;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--maroon-deep);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-contacts a { color: rgba(255,255,255,0.88); }
.topbar-contacts a:hover { color: var(--gold-soft); }
/* ---------- Navbar ---------- */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(67,22,18,0.07);
  position: sticky;
  top: 0;
  z-index: 60;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-soft);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 19px; color: var(--maroon-deep); }
.brand-text small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 16px; }
.nav > a { font-size: 14.5px; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav > a:hover { color: var(--maroon); }
.nav > a.active { color: var(--maroon); border-bottom-color: var(--gold); font-weight: 600; }
.nav-cta { padding: 10px 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--maroon-deep); border-radius: 2px; transition: 0.2s; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201,162,39,0.22), transparent 60%),
    linear-gradient(160deg, var(--maroon-deep) 0%, var(--maroon) 55%, #8f3a2c 100%);
  color: #fff;
  padding: 96px 0 110px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); margin: 14px 0 20px; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,0.9); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.28)); }

.hero-strip {
  margin-top: 48px;
  display: flex;
  gap: 12px 36px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}
.hero-strip span { display: flex; align-items: center; gap: 8px; }
.hero-strip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--maroon-deep); color: #fff; padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 36px; color: var(--gold-soft); }
.stat span { font-size: 13.5px; color: rgba(255,255,255,0.8); letter-spacing: 0.04em; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 21px; margin-bottom: 10px; }
.card-body p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.card-link { margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--maroon); }
.card-link:hover { color: var(--gold); }

.icon-tile {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand), var(--sand-dark));
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--maroon);
}
.icon-tile svg { width: 28px; height: 28px; }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.92);
  overflow: hidden;
}
.ph svg.motif { width: 74px; height: 74px; opacity: 0.9; }
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
}
.ph .ph-tag {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.35);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  z-index: 1;
}
.ph-a { background: linear-gradient(140deg, #8f3a2c, #5a1f1a); }
.ph-b { background: linear-gradient(140deg, #b07d2b, #7c531a); }
.ph-c { background: linear-gradient(140deg, #6c5443, #3e2e24); }
.ph-d { background: linear-gradient(140deg, #7d6a3a, #4c3f20); }
.ph-e { background: linear-gradient(140deg, #925f4a, #5c342a); }
.ph-f { background: linear-gradient(140deg, #5f6f63, #35443a); }
.ph-wide { aspect-ratio: 16 / 7; }
.ph-square { aspect-ratio: 1; }

/* ---------- USP band (temple conservation) ---------- */
.usp-band {
  background:
    radial-gradient(800px 400px at 10% 0%, rgba(201,162,39,0.16), transparent 55%),
    linear-gradient(150deg, var(--maroon) 0%, var(--maroon-deep) 100%);
  color: #fff;
  border-radius: 22px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
}
.usp-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.usp-band p { color: rgba(255,255,255,0.88); margin-bottom: 22px; }
.usp-points { list-style: none; margin: 0 0 26px; display: grid; gap: 10px; }
.usp-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,0.92); }
.usp-points .tick { color: var(--gold-soft); font-weight: 700; }

/* ---------- Feature list (why choose us) ---------- */
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Project cards ---------- */
.project-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.project-meta span { display: flex; align-items: center; gap: 5px; }
.chip {
  display: inline-block;
  background: var(--sand);
  color: var(--maroon-dark);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  text-transform: uppercase;
}

/* ---------- Filter pills ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-pill {
  border: 1.5px solid var(--sand-dark);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: 0.15s;
}
.filter-pill:hover { border-color: var(--gold); color: var(--maroon); }
.filter-pill.active { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-card::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 72px;
  color: var(--gold);
  line-height: 1;
  position: absolute;
  top: 12px; left: 20px;
  opacity: 0.5;
}
.quote-card p { font-size: 15px; color: var(--ink-soft); margin: 26px 0 20px; font-style: italic; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--gold));
  color: #fff; font-weight: 700; font-size: 16px;
  display: grid; place-items: center;
}
.quote-who b { display: block; font-size: 14.5px; }
.quote-who span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--gold) 0%, #a2801a 100%);
  border-radius: 22px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); color: var(--maroon-deep); margin-bottom: 8px; }
.cta-band p { color: rgba(67,22,18,0.85); max-width: 560px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(155deg, var(--maroon-deep) 0%, var(--maroon) 80%);
  color: #fff;
  padding: 64px 0 58px;
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.5vw, 46px); margin-top: 10px; }
.page-hero p.sub { margin-top: 14px; color: rgba(255,255,255,0.85); max-width: 640px; font-size: 17px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,0.7); }
.crumbs a { color: var(--gold-soft); }

/* ---------- Process timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 20px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Before / After slider ---------- */
.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  user-select: none;
}
.ba .ba-layer { position: absolute; inset: 0; }
.ba .ba-layer svg { width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); z-index: 2; }
.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: var(--gold);
  z-index: 3;
  transform: translateX(-50%);
}
.ba-handle::after {
  content: "⇔";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--maroon-deep);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.ba-label {
  position: absolute;
  top: 14px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  z-index: 4;
}
.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--shadow-sm); border: none; padding: 0; background: none; text-align: left; }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  padding: 26px 14px 12px;
  font-size: 13px;
  z-index: 1;
}
dialog.lightbox {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(860px, 92vw);
  width: 100%;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
dialog.lightbox::backdrop { background: rgba(20, 8, 6, 0.75); }
.lightbox-body { padding: 0; }
.lightbox-body .ph { aspect-ratio: 16/9; }
.lightbox-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.lightbox-foot span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.form-field label .req { color: var(--maroon); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.form-field input.invalid, .form-field select.invalid, .form-field textarea.invalid { border-color: #c0392b; background: #fdf3f2; }
.form-field .hint { font-size: 12px; color: var(--ink-soft); }
.form-error { color: #c0392b; font-size: 12.5px; display: none; }
.form-field.show-error .form-error { display: block; }

.upload-box {
  border: 2px dashed var(--sand-dark);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 14px;
  color: var(--ink-soft);
}
.upload-box:hover { border-color: var(--gold); background: #fff; }
.upload-box b { color: var(--maroon); }
.upload-list { list-style: none; margin-top: 10px; font-size: 13px; color: var(--ink-soft); display: grid; gap: 4px; }
.upload-list li::before { content: "📎 "; }

.form-success {
  display: none;
  background: #eef7ee;
  border: 1.5px solid #bfe0bf;
  border-radius: 12px;
  padding: 26px;
  text-align: center;
}
.form-success.visible { display: block; }
.form-success h3 { color: #2e6b2e; margin-bottom: 8px; }
.form-success p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Info blocks (contact) ---------- */
.info-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-tile .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.info-tile b { display: block; margin-bottom: 4px; font-size: 15.5px; }
.info-tile p, .info-tile a { font-size: 14.5px; color: var(--ink-soft); }
.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-card .ph { aspect-ratio: 1; border-radius: 50%; width: 150px; margin: 0 auto 16px; }
.team-card h3 { font-size: 18px; }
.team-card span { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Alt section background ---------- */
.section-sand { background: var(--sand); }
.section-white { background: var(--white); }

/* ---------- Blog ---------- */
.post-date { font-size: 12.5px; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- Footer ---------- */
footer { background: var(--maroon-deep); color: rgba(255,255,255,0.82); margin-top: 40px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 0 44px;
}
.footer-main h4 { color: var(--gold-soft); font-size: 16px; margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-main p { font-size: 14px; }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-links a { color: rgba(255,255,255,0.82); font-size: 14px; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-contact { list-style: none; display: grid; gap: 12px; font-size: 14px; }
.footer-contact a { color: rgba(255,255,255,0.82); }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-mark { background: rgba(255,255,255,0.1); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 84vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px 30px;
    gap: 18px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transform: translateX(105%);
    transition: transform 0.25s ease;
    z-index: 70;
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav-toggle { display: flex; z-index: 80; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  section { padding: 54px 0; }
  .hero { padding: 64px 0 74px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .usp-band { grid-template-columns: 1fr; padding: 36px 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .cta-band { padding: 36px 28px; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .gallery-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; }
  .brand-text small { display: none; }
}


/* ==========================================================================
   PROJEXEL HERITAGE — MIX LAYER
   Modern base (Playfair/Inter, cream + maroon + gold) carrying the
   photographic sections and hand-written accents from the archive design.
   ========================================================================== */

:root {
  --font-hand: "Caveat", "Segoe Script", cursive;
  --sepia: sepia(0.42) saturate(0.86) contrast(1.04);
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--maroon-deep);
  color: rgba(255, 245, 230, 0.82);
  font-size: 13px;
  padding: 9px 0;
  letter-spacing: 0.02em;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-contacts { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar-contacts a, .topbar-contacts span { color: rgba(255, 245, 230, 0.82); text-decoration: none; }
.topbar-contacts a:hover { color: var(--gold-soft); }

/* ---------- Language picker ---------- */
.lang-picker { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 245, 230, 0.10);
  border: 1px solid rgba(255, 245, 230, 0.26);
  border-radius: 999px;
  color: rgba(255, 245, 230, 0.92);
  font-family: var(--font-body);
  font-size: 12.5px; letter-spacing: 0.04em;
  padding: 5px 14px; cursor: pointer; line-height: 1.5;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { background: rgba(255, 245, 230, 0.18); border-color: var(--gold-soft); color: #fff; }
.lang-btn .globe { font-size: 13px; }
.lang-btn .caret { font-size: 9px; color: var(--gold-soft); transition: transform 0.2s ease; }
.lang-picker.open .lang-btn { background: rgba(255, 245, 230, 0.18); border-color: var(--gold-soft); }
.lang-picker.open .lang-btn .caret { transform: rotate(180deg); }
.lang-btn.is-busy { opacity: 0.6; pointer-events: none; }

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  width: 272px; max-height: 60vh; overflow-y: auto;
  background: var(--white);
  border: 1px solid rgba(67, 22, 18, 0.12);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 22px 50px rgba(43, 35, 32, 0.24);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.lang-picker.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  padding: 9px 18px; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-body); color: var(--ink); line-height: 1.6;
}
.lang-menu button:hover { background: rgba(123, 45, 38, 0.07); }
.lang-menu button[aria-selected="true"] { background: rgba(201, 162, 39, 0.14); }
.lang-menu button[aria-selected="true"] .latin { color: var(--maroon); }
.lang-menu .native { font-size: 15px; flex: 1; }
.lang-menu .latin { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); flex-shrink: 0; }

/* ---------- Nav dropdowns ---------- */
.nav-dd { position: relative; }
.nav-dd > a {
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; white-space: nowrap;
}
.nav-dd .caret { font-size: 9px; color: var(--gold); transition: transform 0.2s ease; }
.nav-dd:hover > a .caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 244px;
  background: var(--white);
  border: 1px solid rgba(67, 22, 18, 0.12);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dd:hover > .nav-dd-menu,
.nav-dd:focus-within > .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; font-size: 14px; color: var(--ink); white-space: nowrap;
}
.nav-dd-menu a:hover { background: rgba(123, 45, 38, 0.07); color: var(--maroon); }
.nav-dd-menu .dd-divider { height: 1px; background: rgba(67, 22, 18, 0.10); margin: 7px 14px; }

.nav-sub { position: relative; }
.nav-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 9px 18px; font-family: var(--font-body); font-size: 14px;
  color: var(--ink); background: none; border: 0; text-align: left; cursor: pointer;
}
.nav-sub-toggle:hover,
.nav-sub:hover > .nav-sub-toggle { background: rgba(123, 45, 38, 0.07); color: var(--maroon); }
.nav-sub .arrow { font-size: 9px; color: var(--gold); }
.nav-sub-menu {
  position: absolute; top: -9px; left: 100%; min-width: 252px;
  background: var(--white);
  border: 1px solid rgba(67, 22, 18, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-sub:hover > .nav-sub-menu,
.nav-sub:focus-within > .nav-sub-menu { opacity: 1; visibility: visible; transform: translateX(0); }
.nav-sub-menu a { font-size: 13px; color: var(--ink-soft); padding: 7px 18px; }
.nav-sub-menu a::before { content: "\2014"; color: var(--gold); flex-shrink: 0; }
.nav-sub-menu a:hover { color: var(--maroon); }

/* ---------- Real photographs inside placeholder frames ---------- */
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.has-photo::after { background: none; }
.card .ph img { transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.card:hover .ph img { transform: scale(1.05); }

/* ---------- Hand-written accent ---------- */
.script {
  font-family: var(--font-hand);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  color: var(--maroon);
}
.script.underlined {
  display: inline-block;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 3px;
}

/* ---------- Hero with real photography ---------- */
.hero-photos { position: relative; padding: 6px 0 28px 26px; }
.hero-photos figure { margin: 0; }
.hero-photos .hp-main,
.hero-photos .hp-inset {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-photos .hp-main { aspect-ratio: 4 / 3; }
.hero-photos .hp-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photos .hp-inset {
  position: absolute; left: -12px; bottom: 0;
  width: 46%; aspect-ratio: 1 / 1;
  border: 3px solid var(--cream);
}
.hero-photos .hp-inset img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photos .hp-badge {
  position: absolute; top: 22px; right: -14px;
  background: var(--gold); color: var(--maroon-deep);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- Full-bleed photographic band ---------- */
.photo-band {
  position: relative;
  height: clamp(300px, 46vw, 520px);
  overflow: hidden;
  background: var(--maroon-deep);
}
.photo-band img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: var(--sepia);
}
.photo-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(67,22,18,0.42) 0%, rgba(67,22,18,0.10) 40%, rgba(67,22,18,0.55) 100%);
}
.photo-band .ghost {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-head);
  font-size: clamp(48px, 12vw, 168px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  pointer-events: none;
}
.photo-band .band-cap {
  position: absolute; left: 0; right: 0; bottom: 22px;
  z-index: 2; text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---------- THE PLATES — photographic record section ---------- */
.plates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 38px;
}
.plates figure {
  margin: 0;
  position: relative;
  background: var(--white);
  padding: 12px 12px 0;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(67, 22, 18, 0.16);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.45s ease;
}
.plates figure:nth-child(3n+1) { transform: rotate(-1.5deg); }
.plates figure:nth-child(3n+2) { transform: rotate(0.8deg) translateY(18px); }
.plates figure:nth-child(3n+3) { transform: rotate(1.9deg); }
.plates figure:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.02);
  box-shadow: 0 26px 54px rgba(67, 22, 18, 0.26);
  z-index: 3;
}
.plates img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 2px;
  filter: var(--sepia);
  transition: filter 0.45s ease;
}
.plates figure:hover img { filter: none; }
.plates figcaption {
  padding: 14px 4px 16px;
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--ink-soft);
  text-align: center;
}
.plates .plate-no {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(67, 22, 18, 0.78); color: var(--gold-soft);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}

/* ---------- Frames collage ---------- */
.frames {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.frames figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.frames figure img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.frames figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(43, 35, 32, 0.82));
  color: #fff; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.frames .f-tall { grid-row: span 2; }
.frames .f-tall img { aspect-ratio: 3 / 4; height: 100%; }

/* ---------- Method split with monochrome plate ---------- */
.split-media { position: relative; }
.split-media img {
  width: 100%; display: block; border-radius: var(--radius);
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover;
}
.split-media.mono img { filter: grayscale(1) contrast(1.08); transition: filter 0.6s ease; }
.split-media.mono:hover img { filter: grayscale(0) contrast(1); }
.split-media .media-note {
  position: absolute; right: -14px; bottom: -18px;
  background: var(--gold); color: var(--maroon-deep);
  font-family: var(--font-hand); font-size: 20px;
  padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(67, 22, 18, 0.26);
}

/* ---------- Before / after with real photographs ---------- */
.ba .ba-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-caption {
  text-align: center; margin-top: 16px;
  font-size: 13.5px; color: var(--ink-soft);
}

/* ---------- Section head refinements ---------- */
.section-head.center { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.rule-arc { display: block; margin: 22px auto 0; width: 260px; height: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .plates { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topbar-contacts { gap: 14px; font-size: 12px; }
  .hero-photos { padding-left: 0; }
  .hero-photos .hp-inset { width: 40%; left: 0; }
  .hero-photos .hp-badge { right: 8px; }
  .frames { grid-template-columns: repeat(2, 1fr); }
  .plates figure,
  .plates figure:nth-child(3n+1),
  .plates figure:nth-child(3n+2),
  .plates figure:nth-child(3n+3) { transform: none; }
  .split-media .media-note { right: 8px; bottom: -14px; font-size: 17px; }
}
@media (max-width: 560px) {
  .plates { grid-template-columns: 1fr; gap: 28px; }
  .photo-band .ghost { font-size: 15vw; }
  .lang-menu { width: min(272px, calc(100vw - 32px)); }
}


/* ==========================================================================
   HOMEPAGE POLISH LAYER
   Motion, depth and a few extra components. No new colours, no new fonts —
   everything below reuses the existing tokens.
   ========================================================================== */

/* ---------- Scroll reveal (only armed once JS confirms support) ---------- */
html.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
html.has-reveal [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.has-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 200; pointer-events: none;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 245, 230, 0.22);
  background: var(--maroon); color: var(--gold-soft);
  font-size: 17px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(67, 22, 18, 0.32);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--maroon-dark); }

/* ---------- Card & tile depth on hover (existing components) ---------- */
.card { transition: transform 0.4s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.4s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(67, 22, 18, 0.18); }

.feature { transition: transform 0.4s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.4s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.icon-tile { transition: transform 0.4s cubic-bezier(0.2,0.7,0.3,1); }
.card:hover .icon-tile { transform: rotate(-6deg) scale(1.06); }

/* ---------- Steps (five stages) ---------- */
.step { transition: transform 0.4s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.4s ease; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-rail {
  position: relative;
}
.step-rail::before {
  content: "";
  position: absolute; left: 6%; right: 6%; top: 52px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--sand-dark) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step-rail .steps { position: relative; z-index: 1; }

/* ---------- Materials tiles ---------- */
.mat-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.4s ease;
}
.mat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mat-tile h3 { font-size: 19px; margin-bottom: 10px; }
.mat-tile p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }
.mat-tile .mat-mark {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--sand); color: var(--maroon);
  margin-bottom: 14px; font-size: 18px;
}

/* ---------- Gallery strip ---------- */
.gallery-item .ph { aspect-ratio: 4 / 3; }
.gallery-item img { transition: transform 0.65s cubic-bezier(0.2,0.7,0.3,1); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: "\2295";
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(67, 22, 18, 0.62); color: var(--gold-soft);
  display: grid; place-items: center; font-size: 15px;
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; transform: none; }

/* ---------- Founder card ---------- */
.founder {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 38px;
  align-items: center;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px;
}
.founder-photo {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 4px; }
.founder .founder-role {
  display: block; color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px;
}
.founder p { color: var(--ink-soft); margin-bottom: 12px; }
.founder-facts {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; list-style: none; padding: 0;
}
.founder-facts li {
  background: var(--sand); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px;
}

/* ---------- Marquee of place names ---------- */
.places {
  overflow: hidden;
  border-top: 1px solid var(--sand-dark);
  border-bottom: 1px solid var(--sand-dark);
  padding: 16px 0;
  background: var(--cream);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.places-track {
  display: flex; gap: 44px; width: max-content;
  animation: place-scroll 42s linear infinite;
}
.places:hover .places-track { animation-play-state: paused; }
.places-track span {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--ink-soft);
  white-space: nowrap;
  display: flex; align-items: center; gap: 44px;
}
.places-track span::after { content: "\2726"; color: var(--gold); font-size: 12px; }
@keyframes place-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .places-track { animation: none; }
}

/* ---------- Section divider motif ---------- */
.divider-motif {
  display: flex; align-items: center; gap: 16px;
  max-width: 260px; margin: 0 auto;
}
.divider-motif::before,
.divider-motif::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand-dark), transparent);
}
.divider-motif span { color: var(--gold); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .step-rail::before { display: none; }
}
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; padding: 26px; gap: 24px; }
  .founder-photo { max-width: 220px; }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

.mat-mark svg { width: 20px; height: 20px; display: block; }

/* Third-level flyouts open leftward: at desktop widths the Works dropdown sits
   right of centre, so a right-opening submenu pushed the document ~170px wide. */
.nav-sub-menu {
  left: auto;
  right: 100%;
  border-left: 0;
  border-right: 3px solid var(--gold);
  transform: translateX(6px);
}
.nav-sub:hover > .nav-sub-menu,
.nav-sub:focus-within > .nav-sub-menu { transform: translateX(0); }


/* ==========================================================================
   HERO REFINEMENT
   Depth and detail only — the gradient, palette and type are untouched.
   ========================================================================== */

.hero { padding: 100px 0 150px; }
.hero-inner { position: relative; z-index: 2; }

/* Faint terracotta lattice over the gradient */
.hero-pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23e3c766' stroke-width='1'%3E%3Cpath d='M24 4 L44 24 L24 44 L4 24 Z'/%3E%3Cpath d='M24 16 L32 24 L24 32 L16 24 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 48px 48px;
}

/* Draw the eye to the centre */
.hero-vignette {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 28%, transparent 42%, rgba(40, 10, 8, 0.5) 100%);
}

/* Temple skyline rising out of the stats band below */
.hero-skyline {
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: auto; z-index: 1;
  display: block; pointer-events: none;
}

/* Eyebrow gains a small gold rule */
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 13px;
}
.hero .eyebrow::before {
  content: ""; width: 36px; height: 1px; flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* Photographs: offset gold hairline, handwritten note, slow drift */
.hero-photos .hp-main { position: relative; z-index: 1; }
.hp-frame {
  position: absolute; top: -18px; right: -16px;
  width: 68%; height: 66%;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: var(--radius);
  z-index: 0; pointer-events: none;
}
.hp-note {
  position: absolute; right: 4px; bottom: -2px; z-index: 3;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--gold-soft);
  transform: rotate(-3deg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-photos .hp-main img {
    animation: hp-drift 26s ease-in-out infinite alternate;
    transform-origin: 52% 45%;
  }
  @keyframes hp-drift {
    from { transform: scale(1); }
    to   { transform: scale(1.075); }
  }

  /* Staggered entrance */
  .hero-copy > * { animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.45s; }
  .hero-photos { animation: hero-fade 1.15s 0.3s cubic-bezier(0.2, 0.7, 0.3, 1) both; }

  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes hero-fade {
    from { opacity: 0; transform: translateY(28px) scale(0.985); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 860px) {
  .hero { padding: 64px 0 110px; }
  .hp-frame { display: none; }
  .hp-note { font-size: 17px; right: 2px; }
}

.hero-skyline { color: var(--maroon-deep); }
.hero-skyline g { fill: currentColor; }

/* Badge must clear the photo now that .hp-main is a stacking layer */
.hero-photos .hp-badge { z-index: 4; }
.hero-photos .hp-inset { z-index: 2; }


/* ==========================================================================
   DETAIL LAYER
   One small ornament per component, drawn from four shared motifs:
   diamond · corner bracket · hairline · lattice.
   Existing tokens only — no new colours, no new type.
   ========================================================================== */

:root {
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23e3c766' stroke-width='1'%3E%3Cpath d='M24 4 L44 24 L24 44 L4 24 Z'/%3E%3Cpath d='M24 16 L32 24 L24 32 L16 24 Z'/%3E%3C/g%3E%3C/svg%3E");
  --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='11' viewBox='0 0 132 11'%3E%3Cpath d='M0 5.5 H50' stroke='%23e2d5bf' stroke-width='1'/%3E%3Cpath d='M82 5.5 H132' stroke='%23e2d5bf' stroke-width='1'/%3E%3Cpath d='M66 1 L70.5 5.5 L66 10 L61.5 5.5 Z' fill='%23c9a227'/%3E%3C/svg%3E");
}

/* ---- 1. Every centred section head closes with the same ornament ---- */
.section-head.center { position: relative; }
.section-head.center::after {
  content: "";
  display: block;
  width: 132px; height: 11px;
  margin: 22px auto 0;
  background: var(--ornament) center / 132px 11px no-repeat;
}

/* ---- 2. Stats band: lattice wash + hairline dividers ---- */
.stats-band { position: relative; overflow: hidden; }
.stats-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--lattice);
  background-size: 48px 48px;
  opacity: 0.06; pointer-events: none;
}
.stats-grid { position: relative; z-index: 1; }
.stat { position: relative; }
.stats-grid .stat + .stat::before {
  content: ""; position: absolute; left: -12px; top: 12%; bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(227,199,102,0.35), transparent);
}

/* ---- 3. Photographic band: hairline edges ---- */
.photo-band {
  border-top: 1px solid rgba(201,162,39,0.45);
  border-bottom: 1px solid rgba(201,162,39,0.45);
}
.photo-band .band-cap::before {
  content: "\2726"; color: var(--gold); margin-right: 10px; font-size: 10px;
}
.photo-band .band-cap::after {
  content: "\2726"; color: var(--gold); margin-left: 10px; font-size: 10px;
}

/* ---- 4. Frame collages: corner tick on the tall plate ---- */
.frames .f-tall { position: relative; }
.frames .f-tall::after {
  content: ""; position: absolute; left: 12px; top: 12px; z-index: 2;
  width: 22px; height: 22px;
  border-top: 2px solid rgba(227,199,102,0.85);
  border-left: 2px solid rgba(227,199,102,0.85);
}

/* ---- 5. Temple USP band: lattice + corner bracket ---- */
.usp-band { position: relative; overflow: hidden; }
.usp-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--lattice);
  background-size: 48px 48px;
  opacity: 0.07; pointer-events: none;
}
.usp-band > * { position: relative; z-index: 1; }
.usp-band::after {
  content: ""; position: absolute; right: 26px; bottom: 24px; z-index: 1;
  width: 30px; height: 30px;
  border-right: 2px solid rgba(227,199,102,0.5);
  border-bottom: 2px solid rgba(227,199,102,0.5);
  border-bottom-right-radius: 5px;
  pointer-events: none;
}

/* ---- 6. Steps: diamond marker, and a gold node on the rail ---- */
.step { position: relative; }
.step::after {
  content: ""; position: absolute; right: 16px; top: 18px;
  width: 6px; height: 6px; background: var(--gold);
  opacity: 0.5; transform: rotate(45deg);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.step:hover::after { opacity: 1; transform: rotate(45deg) scale(1.25); }

/* ---- 7. Plates: diamond before each handwritten caption ---- */
.plates figcaption::before {
  content: "\2726";
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 9px;
  vertical-align: middle;
  margin-right: 9px;
}

/* ---- 8. Before / after: inset hairline frame ---- */
.ba::after {
  content: ""; position: absolute; inset: 10px; z-index: 4;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 6px; pointer-events: none;
}

/* ---- 9. Method plate: corner bracket ---- */
.split-media { }
.split-media::after {
  content: ""; position: absolute; left: -9px; top: -9px; z-index: 2;
  width: 28px; height: 28px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  border-top-left-radius: 5px;
  pointer-events: none;
}

/* ---- 10. Material tiles + 11. Why-choose features: matching diamond ---- */
.mat-tile, .feature { position: relative; }
.mat-tile::after,
.feature::after {
  content: ""; position: absolute; right: 16px; bottom: 16px;
  width: 6px; height: 6px; background: var(--gold);
  opacity: 0.45; transform: rotate(45deg);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mat-tile:hover::after,
.feature:hover::after { opacity: 1; transform: rotate(45deg) scale(1.3); }

/* ---- 12. Cards: gold underline that draws in on hover ---- */
.card { position: relative; }
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover::after { transform: scaleX(1); }

/* ---- 13. Gallery: corner brackets fade in with the zoom cue ---- */
.gallery-item::before {
  content: ""; position: absolute; inset: 10px; z-index: 2;
  border: 1px solid rgba(227,199,102,0.75);
  border-radius: 4px;
  opacity: 0; transform: scale(1.02);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.gallery-item:hover::before { opacity: 1; transform: none; }

/* ---- 14. Testimonials: gold hairline foot ---- */
.quote-card::after {
  content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.6;
}

/* ---- 15. Founder: offset hairline behind the portrait ---- */
.founder { position: relative; }
.founder-photo { position: relative; }
/* .founder-photo clips its overflow, so this hairline sits inside the frame */
.founder-photo::after {
  content: ""; position: absolute; inset: 8px; z-index: 2;
  border: 1px solid rgba(227,199,102,0.55);
  border-radius: 8px;
  pointer-events: none;
}
.founder::after {
  content: ""; position: absolute; right: 22px; top: 22px;
  width: 26px; height: 26px;
  border-top: 2px solid rgba(201,162,39,0.45);
  border-right: 2px solid rgba(201,162,39,0.45);
  border-top-right-radius: 5px;
  pointer-events: none;
}

/* ---- 16. CTA band: lattice wash ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--lattice);
  background-size: 48px 48px;
  opacity: 0.16; pointer-events: none;
  filter: brightness(0.35);
}
.cta-band > * { position: relative; z-index: 1; }

/* ---- 17. Footer: gold hairline above, rule under each heading ---- */
footer { border-top: 2px solid var(--gold); }
.footer-main h4 { position: relative; padding-bottom: 10px; }
.footer-main h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---- 18. Brand mark: inner gold ring ---- */
.brand-mark { position: relative; }
.brand-mark::after {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid rgba(227,199,102,0.35);
  border-radius: 6px;
  pointer-events: none;
}

/* ---- 19. Chips: hairline edge ---- */
.chip { border: 1px solid rgba(201,162,39,0.35); }

/* ---- Reduced motion: keep the ornaments, drop the movement ---- */
@media (prefers-reduced-motion: reduce) {
  .card::after { transition: none; }
  .step::after,
  .mat-tile::after,
  .feature::after,
  .gallery-item::before { transition: none; }
}

@media (max-width: 860px) {
  .stats-grid .stat + .stat::before { display: none; }
  .usp-band::after { right: 14px; bottom: 14px; }
  .founder::after { display: none; }
}

/* ==========================================================================
   BRAND LOGO
   logo.png is dark ink + bronze on transparency: it sits as-is on the white
   navbar, and is knocked out to white for the maroon footer.
   ========================================================================== */
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.footer-brand { align-items: baseline; gap: 10px; }
.footer-logo {
  height: 46px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}
.footer-legal {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 860px) {
  .brand-logo { height: 42px; }
  .footer-logo { height: 40px; }
}
@media (max-width: 400px) {
  .brand-logo { height: 36px; }
}

/* ==========================================================================
   GOOGLE TRANSLATE CHROME
   Ported from css/style.css — modern.css was missing it, so the widget's own
   "Select Language" box rendered on this page.
   Hidden by displacement, NOT display:none: the widget must actually render
   its <select> for main.js to drive it.
   ========================================================================== */
#google_translate_element {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate { display: none !important; visibility: hidden !important; }
body { top: 0 !important; position: static !important; }
.goog-te-gadget-icon { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }

/* Google wraps translated text nodes in <font> tags — force inheritance so
   the type styling survives translation. */
font {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  background: none !important;
  vertical-align: inherit !important;
}

/* Indic scripts have no case and their conjuncts break when letter-spaced. */
html:is(.translated-ltr, .translated-rtl) h1,
html:is(.translated-ltr, .translated-rtl) h2,
html:is(.translated-ltr, .translated-rtl) h3,
html:is(.translated-ltr, .translated-rtl) .eyebrow,
html:is(.translated-ltr, .translated-rtl) .founder-role,
html:is(.translated-ltr, .translated-rtl) .footer-main h4,
html:is(.translated-ltr, .translated-rtl) .band-cap,
html:is(.translated-ltr, .translated-rtl) .hp-badge,
html:is(.translated-ltr, .translated-rtl) .ph-tag,
html:is(.translated-ltr, .translated-rtl) .chip {
  letter-spacing: 0.015em;
  text-transform: none;
  line-height: 1.45;
}

/* ---------- "Talk to Us" nav button ---------- */
.nav > a.nav-cta {
  background: var(--maroon);
  border-radius: 999px;
  border-bottom: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.nav > a.nav-cta:hover,
.nav > a.nav-cta.active { background: var(--maroon-dark); color: #fff; }

/* ---------- Footer bottom links (Developed by) ---------- */
.footer-bottom a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
.footer-bottom a:hover { color: var(--gold-soft); }
