/* ------------------------------------------------------------
   Maitri Group — brand tokens
   Navy is the anchor, Leaf green is the single action colour.
   ------------------------------------------------------------ */
:root {
  --navy: #1E2F53;
  --navy-deep: #16233F;
  --navy-soft: #EEF1F7;
  --leaf: #A6CE38;
  --leaf-dark: #6E9A1E;
  --leaf-tint: #F1F7DF;
  --white: #FFFFFF;
  --paper: #F7F7F4;
  --ink: #23262E;
  --muted: #667085;
  --line: #E4E6E1;
  --whatsapp: #25D366;

  --font-latin: "Poppins", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-gu: "Hind Vadodara", "Noto Sans Gujarati", "Shruti", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(30, 47, 83, 0.10);
  --shadow-lg: 0 18px 50px rgba(22, 35, 63, 0.28);
  --max: 1080px;
  --gutter: 16px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
html:lang(gu) body { font-family: var(--font-gu); }
html:lang(gu) h1, html:lang(gu) h2, html:lang(gu) h3, html:lang(gu) .btn { font-family: var(--font-gu); }
html:lang(hi) body, html:lang(hi) h1, html:lang(hi) h2 { line-height: 1.65; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 44px; }
.section-title {
  font-size: 1.5rem; font-weight: 600; line-height: 1.25; margin: 0 0 18px;
  color: var(--navy); text-wrap: balance;
}
.section-sub { margin: -12px 0 20px; color: var(--muted); font-size: 0.95rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-leaf { background: var(--leaf); color: var(--navy-deep); }
.btn-leaf:hover { background: #B4D94A; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-white { background: var(--white); color: var(--navy); border: 1.5px solid var(--line); }
.btn-white:hover { border-color: var(--navy); }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #1FBE5B; }
.btn-ghost { color: var(--navy); border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px; color: var(--leaf-dark);
  font-weight: 600; font-size: 0.95rem; min-height: 44px;
}
.link-more svg { width: 18px; height: 18px; transition: transform .2s; }
.link-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand img { height: 30px; width: auto; }
.header-right { display: flex; align-items: center; gap: 10px; }
.nav { display: none; gap: 26px; font-weight: 500; font-size: 0.95rem; color: var(--navy); }
.nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--leaf); }

.lang {
  display: inline-flex; align-items: center; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
}
.lang button {
  min-width: 42px; height: 34px; padding: 0 10px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.lang button[lang="gu"] { font-family: var(--font-gu); }
.header-call { display: none; }

/* Hero -------------------------------------------------------- */
.hero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; opacity: .7; animation: kenburns 24s ease-out both; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.js .hero h1, .js .hero p, .js .hero-actions { animation: rise-in .7s cubic-bezier(.2,.7,.2,1) both; }
.js .hero p { animation-delay: .15s; }
.js .hero-actions { animation-delay: .3s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,35,63,.25) 0%, rgba(22,35,63,.62) 55%, rgba(22,35,63,.92) 100%);
}
.hero-inner { position: relative; padding-block: 88px 56px; max-width: 640px; }
.hero h1 { font-size: clamp(1.9rem, 6.2vw, 3rem); line-height: 1.15; font-weight: 600; margin: 0 0 12px; text-wrap: balance; }
.hero p { font-size: 1.05rem; margin: 0 0 26px; color: rgba(255,255,255,.85); max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-width: 150px; }
.leaf-bg { position: relative; overflow: hidden; }
.leaf-bg::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  background: url("../logos/leaf-white.svg") no-repeat center / contain; opacity: .06; z-index: 1;
  width: 420px; height: 420px; right: -120px; bottom: -140px; transform: rotate(-12deg);
}
.leaf-bg > .wrap { position: relative; z-index: 2; }
.hero.leaf-bg::before { opacity: .08; width: 520px; height: 520px; right: -160px; bottom: -200px; }
.site-footer.leaf-bg::before { width: 300px; height: 300px; right: -80px; bottom: -110px; }

/* Key figures ------------------------------------------------- */
.figures { background: var(--white); border-bottom: 1px solid var(--line); }
.figures-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.figure { padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure:nth-child(2n) { border-right: 0; }
.figure:nth-child(n+3) { border-bottom: 0; }
.figure b { display: block; font-size: 1.9rem; font-weight: 600; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.figure b small { font-size: 0.9rem; font-weight: 500; color: var(--leaf-dark); margin-left: 2px; }
.figure > span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* Tabs -------------------------------------------------------- */
.tabs { display: flex; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 20px; width: fit-content; max-width: 100%; }
.tab { flex: 1; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--muted); white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }

/* Project cards ----------------------------------------------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  display: block; width: 100%; text-align: left; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(30,47,83,.16); }
.card-img { aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--navy-soft); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-loc {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(22,35,63,.85); color: var(--white); font-size: 0.78rem; font-weight: 500;
  padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card-loc svg { width: 14px; height: 14px; }
.card-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.card-body h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.card-body p { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); }
.card-body .chev { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--leaf-tint); color: var(--leaf-dark); display: grid; place-items: center; }
.card-body .chev svg { width: 18px; height: 18px; }

/* Upcoming tiles */
.tiles { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tile {
  background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 22px 20px;
  display: flex; align-items: center; gap: 16px; min-height: 96px;
  background-image: radial-gradient(circle at 100% 0%, rgba(166,206,56,.22), transparent 55%);
}
.tile .ico { width: 46px; height: 46px; flex: none; border-radius: 12px; background: rgba(255,255,255,.10); display: grid; place-items: center; }
.tile .ico svg { width: 24px; height: 24px; color: var(--leaf); }
.tile h3 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.tile span { display: block; font-size: 0.8rem; color: var(--leaf); font-weight: 500; margin-top: 4px; }

/* Completed chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 0.88rem; color: var(--navy); font-weight: 500; }
.chips-note { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }

/* Why ---------------------------------------------------------- */
.why { background: var(--white); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.why-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.why-item summary {
  list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer;
  font-weight: 600; color: var(--navy); min-height: 60px;
}
.why-item summary::-webkit-details-marker { display: none; }
.why-item .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--leaf-tint); color: var(--leaf-dark); display: grid; place-items: center; }
.why-item .ico svg { width: 22px; height: 22px; }
.why-item summary .plus { margin-left: auto; width: 26px; height: 26px; color: var(--muted); transition: transform .2s; }
.why-item[open] summary .plus { transform: rotate(45deg); }
.why-item p { margin: 0; padding: 0 16px 16px 72px; color: var(--muted); font-size: 0.95rem; }

/* Story --------------------------------------------------------- */
.story-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.story-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.story-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--leaf-tint); }
.story-head h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.story-head span { display: block; font-size: 0.85rem; color: var(--leaf-dark); font-weight: 500; }
.story-card p { margin: 0 0 12px; font-size: 0.97rem; }
.story-more p { color: var(--muted); }
.person { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--paper); border-radius: var(--radius-sm); margin: 4px 0 14px; }
.person .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 600; flex: none; }
.person b { display: block; color: var(--navy); font-size: 0.95rem; }
.person small { display: block; color: var(--leaf-dark); font-weight: 500; font-size: 0.8rem; }
.person p { margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); }
.story-figure { margin: 20px 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story-figure img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.story-figure figcaption { background: var(--navy); color: var(--white); font-size: 0.85rem; padding: 10px 14px; }

/* CSR ----------------------------------------------------------- */
.csr { background: var(--navy); color: var(--white); }
.csr .section-title { color: var(--white); }
.csr .section-sub { color: rgba(255,255,255,.72); }
.csr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.csr-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.csr-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.csr-item .noimg { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; background: rgba(166,206,56,.14); }
.csr-item .noimg svg { width: 40px; height: 40px; color: var(--leaf); }
.csr-item div.txt { padding: 12px 12px 14px; }
.csr-item h3 { margin: 0; font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.csr-item p { margin: 4px 0 0; font-size: 0.82rem; color: rgba(255,255,255,.72); }

/* Contact ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-card, .form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.contact-card h3, .form-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--navy); }
.contact-card address { font-style: normal; color: var(--ink); margin: 0 0 6px; line-height: 1.5; }
.contact-card .hours { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }
.contact-lines { display: grid; gap: 8px; margin-bottom: 16px; }
.contact-lines a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); font-weight: 500; }
.contact-lines svg { width: 20px; height: 20px; color: var(--leaf-dark); flex: none; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--navy); }
.field input, .field select {
  font: inherit; min-height: 50px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--navy); outline: none; background: var(--white); }
.form-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); text-align: center; }
.form-error { margin: 0 0 12px; font-size: 0.88rem; color: #B42318; background: #FEF3F2; padding: 10px 12px; border-radius: var(--radius-sm); }

/* Footer -------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding-block: 36px 28px; }
.footer-row { display: grid; gap: 18px; }
.site-footer img { height: 34px; width: auto; }
.footer-tag { color: var(--white); font-weight: 500; font-size: 1.05rem; margin: 12px 0 0; }
.footer-legal { font-size: 0.8rem; margin: 0; }
.footer-legal + .footer-legal { margin-top: 4px; }

/* Sticky bottom bar (mobile) ----------------------------------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
}
.bottom-bar .btn { min-height: 46px; }

/* Project sheet (modal) ----------------------------------------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(22,35,63,.55); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto;
  background: var(--white); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
  animation: rise .25s ease-out; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); z-index: 2;
}
.sheet-close svg { width: 20px; height: 20px; }
.sheet-img { aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--navy-soft); }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: 18px var(--gutter) 6px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sheet-top h2 { margin: 0; font-size: 1.35rem; color: var(--navy); line-height: 1.2; }
.sheet-top img { height: 44px; width: auto; max-width: 120px; object-fit: contain; }
.sheet-type { margin: 0 0 4px; color: var(--leaf-dark); font-weight: 600; }
.sheet-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.92rem; margin: 0 0 16px; }
.sheet-loc svg { width: 16px; height: 16px; }
.sheet h4 { margin: 0 0 8px; font-size: 0.8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sheet ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.sheet li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; }
.sheet li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); flex: none; margin-top: 8px; }
.sheet-rera { font-size: 0.82rem; color: var(--muted); margin: 0 0 18px; padding: 10px 12px; background: var(--paper); border-radius: var(--radius-sm); }
.sheet-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sheet-actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.no-scroll { overflow: hidden; }

/* Icons */
.i { width: 20px; height: 20px; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet-panel { animation: none; }
  .card, .btn { transition: none; }
  .hero-media img, .hero h1, .hero p, .hero-actions { animation: none; }
}

/* ---------------------------------------------------------------
   Tablet and up
   --------------------------------------------------------------- */
@media (min-width: 640px) {
  .section { padding-block: 64px; }
  .section-title { font-size: 1.85rem; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { flex-direction: column; align-items: flex-start; min-height: 150px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-item p { padding-left: 16px; }
  .csr-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .figures-grid { grid-template-columns: repeat(4, 1fr); }
  .figure { border-bottom: 0; border-right: 1px solid var(--line); }
  .figure:last-child { border-right: 0; }
  .figure b { font-size: 2.2rem; }
  .hero-inner { padding-block: 120px 80px; }
  .sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100% - 32px)); max-height: 90vh; border-radius: 20px; animation: none; }
  .sheet-body { padding-inline: 28px; }
  .sheet-actions { grid-template-columns: 1fr 1fr; }
  .sheet-actions .row { grid-column: 1 / -1; }
  .footer-row { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-bar { display: none; }
  .nav { display: flex; }
  .header-call { display: inline-flex; min-height: 42px; padding-inline: 18px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .brand img { height: 34px; }
}

/* ---------------------------------------------------------------
   Our story: timeline strip on the page + full-screen story viewer
   --------------------------------------------------------------- */
.story-strip {
  display: flex; align-items: flex-start; gap: 0; margin: 18px 0 20px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
}
@media (min-width: 640px) { .story-strip { -webkit-mask-image: none; mask-image: none; } }
.story-strip::-webkit-scrollbar { display: none; }
.story-strip button {
  flex: 1 0 auto; min-width: 72px; display: grid; justify-items: center; gap: 8px;
  position: relative; padding: 4px 6px 0; font-size: 0.78rem; font-weight: 600; color: var(--navy); white-space: nowrap;
}
.story-strip button::before {
  content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line);
}
.story-strip button:first-child::before { left: 50%; }
.story-strip button:last-child::before { right: 50%; }
.story-strip button i {
  position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--leaf); box-sizing: border-box; transition: transform .15s;
}
.story-strip button:hover i { transform: scale(1.25); }
.story-strip button:last-child i { background: var(--leaf); }

.story-viewer {
  position: fixed; inset: 0; z-index: 70; display: none; background: var(--navy-deep); color: var(--white);
  padding-top: env(safe-area-inset-top, 0px);
}
.story-viewer.open { display: block; }
.sv-progress {
  position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; z-index: 5;
  display: flex; gap: 5px;
}
.sv-progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.sv-progress i::after { content: ""; display: block; height: 100%; width: 0; background: var(--leaf); transition: width .35s ease; }
.sv-progress i.done::after { width: 100%; }
.sv-progress i.now::after { width: 100%; background: var(--white); }
.sv-close {
  position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 6;
  width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px);
}
.sv-close svg { width: 20px; height: 20px; }
.sv-stage { position: absolute; inset: 0; }
.sv-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.sv-card .bg { position: absolute; inset: 0; z-index: 0; }
.sv-card .bg img { width: 100%; height: 100%; object-fit: cover; animation: sv-drift 12s ease-out both; transform-origin: 50% 50%; }
@keyframes sv-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.sv-card .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,35,63,.35) 0%, rgba(22,35,63,.15) 35%, rgba(22,35,63,.85) 70%, rgba(22,35,63,.98) 100%);
}
.sv-card.plain .bg { background: radial-gradient(circle at 80% 20%, rgba(166,206,56,.25), transparent 50%), var(--navy); }
.sv-card.plain .bg::after { background: none; }
.sv-card.plain .bg::before {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 480px; height: 480px;
  background: url("../logos/leaf-white.svg") no-repeat center / contain; opacity: .08; transform: rotate(-12deg);
}
.sv-body {
  position: relative; z-index: 1; padding: 0 var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px));
  max-width: 640px; width: 100%; margin-inline: auto;
  animation: rise-in .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: .1s;
}
.sv-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.25); margin-bottom: 18px; }
.sv-year { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); margin-bottom: 10px; }
.sv-body h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.1; font-weight: 600; text-wrap: balance; }
.sv-body p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: rgba(255,255,255,.86); max-width: 44ch; }
.sv-hint { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; font-size: 0.78rem; color: rgba(255,255,255,.55); z-index: 1; pointer-events: none; }
.sv-figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 20px; }
.sv-figures div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 12px; }
.sv-figures b { display: block; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sv-figures b small { font-size: .8rem; color: var(--leaf); }
.sv-figures span { font-size: .75rem; color: rgba(255,255,255,.7); }
.sv-body .btn { position: relative; z-index: 3; }
.sv-zone { position: absolute; top: 0; bottom: 0; width: 38%; z-index: 2; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sv-zone:focus-visible { outline: none; }
.sv-zone-prev { left: 0; }
.sv-zone-next { right: 0; width: 62%; }
.sv-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; place-items: center; backdrop-filter: blur(6px); }
.sv-arrow svg { width: 26px; height: 26px; }
.sv-arrow-prev { left: 20px; } .sv-arrow-next { right: 20px; }
.sv-arrow[disabled] { opacity: .25; cursor: default; }
@media (min-width: 900px) {
  .sv-arrow { display: grid; }
  .sv-zone { display: none; }
  .sv-body { padding-bottom: 110px; }
  .sv-hint { display: none; }
  .sv-figures { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .sv-card .bg img, .sv-body { animation: none; }
  .sv-progress i::after { transition: none; }
}

/* Around Motera map ------------------------------------------- */
.map-section { background: var(--navy-deep); color: var(--white); }
.map-section .section-title { color: var(--white); }
.map-section .section-sub { color: rgba(255,255,255,.72); }
.map-frame { border-radius: var(--radius); overflow: hidden; background: radial-gradient(ellipse at 50% 60%, #22355F 0%, var(--navy-deep) 70%); border: 1px solid rgba(255,255,255,.08); }
.map-frame canvas { display: block; width: 100%; }
.map-note { margin: 10px 0 0; font-size: 0.78rem; color: rgba(255,255,255,.5); text-align: right; }

/* Completed projects in the tab ------------------------------ */
.cp-featured { margin-bottom: 16px; }
.cp-featured .card-img { aspect-ratio: 16 / 8; }
.cp-cards { margin-bottom: 18px; }
.cp-cards .card-img { aspect-ratio: 4 / 3; }

/* Project page ------------------------------------------------ */
.pp-hero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.pp-hero-media { position: absolute; inset: 0; z-index: 0; }
.pp-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.pp-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,35,63,.35) 0%, rgba(22,35,63,.2) 40%, rgba(22,35,63,.92) 100%); }
.pp-hero-inner { position: relative; z-index: 1; padding-block: 18px 30px; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; }
.pp-back { position: absolute; top: 16px; left: var(--gutter); display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px; background: rgba(22,35,63,.55); color: #fff; font-size: 0.88rem; font-weight: 500; backdrop-filter: blur(6px); }
.pp-back svg { width: 18px; height: 18px; }
.pp-label { font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--leaf); }
.pp-hero h1 { margin: 6px 0 8px; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.15; font-weight: 600; text-wrap: balance; }
.pp-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,.85); }
.pp-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--leaf); display: inline-block; }
.pp-story .wrap { max-width: 720px; }
.pp-story p { margin: 0 0 14px; font-size: 1.02rem; line-height: 1.65; }
.pp-lead { font-size: 1.15rem !important; color: var(--navy); font-weight: 500; }
.pp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pp-photo { display: block; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border-radius: var(--radius-sm); background: var(--navy-soft); box-shadow: var(--shadow); }
.pp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pp-photo:hover img { transform: scale(1.04); }
.pp-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.pp-action-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 1fr; gap: 10px; box-shadow: var(--shadow); }
.pp-more-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.pp-more-row::-webkit-scrollbar { display: none; }
.pp-more-card { flex: 0 0 200px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.pp-more-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pp-more-card span { display: block; padding: 10px 12px; }
.pp-more-card b { display: block; font-size: 0.92rem; color: var(--navy); }
.pp-more-card small { color: var(--muted); font-size: 0.8rem; }
.project-page .section { padding-block: 32px; }
@media (min-width: 640px) {
  .pp-hero-inner { min-height: 440px; padding-bottom: 44px; }
  .pp-grid { grid-template-columns: repeat(3, 1fr); }
  .pp-photo:first-child { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
  .pp-action-card { grid-template-columns: auto auto; justify-content: start; }
  .project-page .section { padding-block: 48px; }
}

/* Lightbox ---------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(12,20,38,.95); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 86vh; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lb-close svg { width: 22px; height: 22px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lb-nav svg { width: 24px; height: 24px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-count { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* 3D map ------------------------------------------------------- */
.map-3d { position: relative; overflow: hidden; }
.map-3d .map-canvas { display: block; width: 100%; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-label { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,.7); transition: opacity .3s; letter-spacing: .02em; }
.map-label.river { color: rgba(170,205,240,.75); }
.map-label.place { color: var(--leaf); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 0.68rem; }
.map-label.spot { font-size: 0.8rem; font-weight: 600; color: #fff; background: rgba(22,35,63,.85); border: 1px solid rgba(166,206,56,.7); border-radius: 999px; padding: 5px 11px; }
.map-label.spot::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: translateX(-50%); }
.map-stage { position: absolute; left: 16px; top: 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); pointer-events: none; }
.map-stage.pop { animation: rise-in .5s cubic-bezier(.2,.7,.2,1) both; }
.map-legend { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 14px; font-size: 0.72rem; color: rgba(255,255,255,.7); pointer-events: none; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.map-legend i.leaf { background: #C6FF3A; box-shadow: 0 0 8px #C6FF3A; } .map-legend i.grey { background: #9FB0CC; }
.map-legend em { font-style: normal; }
.map-replay { position: absolute; right: 14px; top: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 0.78rem; font-weight: 500; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.map-replay svg { width: 15px; height: 15px; }
.map-replay:hover { background: rgba(255,255,255,.18); }
@media (max-width: 639px) { .map-legend { display: none; } }

.map-credit { position: absolute; left: 14px; bottom: 10px; font-size: 0.62rem; color: rgba(255,255,255,.4); pointer-events: none; }
@media (max-width: 639px) { .map-legend { display: flex; right: 12px; bottom: 10px; } }

.map-label.landmark { font-size: 0.8rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 4px 10px; backdrop-filter: blur(4px); }

.map-label.metro { color: #FFB547; font-weight: 600; }
.map-legend i.metro { background: #FFB547; }
