/* =========================================================
   Sajjad Anwar — Portfolio
   Palette: deep navy + champagne gold + warm ivory
   ========================================================= */
:root {
  --navy-900: #0b1320;
  --navy-800: #111c2e;
  --navy-700: #1a2940;
  --gold: #c9a54c;
  --gold-light: #e3c886;
  --ivory: #faf7f1;
  --sand: #f2ece0;
  --ink: #1b2230;
  --muted: #6b7280;
  --line: rgba(17, 28, 46, .1);
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(11, 19, 32, .35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .6em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.45rem; }
em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section--soft { background: var(--sand); }
.section--dark { background: var(--navy-900); color: #e7eaf0; }
.section--dark .muted { color: #9aa4b5; }

.eyebrow {
  font-size: .75rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section__head { max-width: 720px; margin-bottom: 3.5rem; }
.section__head--row {
  max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap;
}
.section__head--row h2 { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.8rem; border-radius: 999px; font-weight: 500; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-900); box-shadow: 0 10px 30px -10px rgba(201,165,76,.7); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--sm { padding: .6rem 1.2rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--whatsapp { background: #1fae5b; color: #fff; margin-top: 1rem; }
.btn--whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; padding: 18px 0;
  transition: background .4s, padding .4s, box-shadow .4s;
}
.nav.is-scrolled { background: rgba(11,19,32,.92); backdrop-filter: blur(12px); padding: 10px 0; box-shadow: 0 10px 30px -15px rgba(0,0,0,.5); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--gold);
  border: 1px solid rgba(201,165,76,.5); background: rgba(201,165,76,.08);
}
.brand__text { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.brand__text small { display: block; font-family: var(--sans); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: #9aa4b5; margin-top: 5px; font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { color: #d6dbe4; font-size: .9rem; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(660px, 100vh, 980px); display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--navy-900); isolation: isolate;
}
/* Photo sits on the right and dissolves into the navy on the left */
.hero__photo {
  position: absolute; inset: 0 0 0 auto; width: 64%; z-index: -2;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to top, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to top, transparent 0%, #000 22%);
  mask-composite: intersect;
  animation: photoIn 2.2s var(--ease) .1s both;
}
.hero__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 62% 30%);
  filter: saturate(.9) contrast(1.04) brightness(.92);
}
/* Soft-focus layer: blurred copy masked away around the subject => shallow depth of field */
.hero__photo .hero__photo-blur {
  filter: blur(7px) saturate(.85) brightness(.78); transform: scale(1.03);
  -webkit-mask-image: radial-gradient(ellipse 38% 64% at 56% 52%, transparent 58%, #000 100%);
  mask-image: radial-gradient(ellipse 38% 64% at 56% 52%, transparent 58%, #000 100%);
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 20%, rgba(201,165,76,.16), transparent 55%),
    linear-gradient(90deg, var(--navy-900) 0%, rgba(11,19,32,.92) 30%, rgba(11,19,32,.35) 58%, rgba(11,19,32,.1) 100%),
    linear-gradient(to top, rgba(11,19,32,.85), transparent 30%);
}
.hero__inner { position: relative; padding: 130px 0 90px; }
.hero__content { max-width: 600px; }
.hero h1 { font-size: clamp(3.2rem, 7.5vw, 6.2rem); font-weight: 600; margin-bottom: .35em; letter-spacing: -.01em; }
.hero__lead { font-size: 1.08rem; color: #c3cad6; max-width: 540px; font-weight: 300; }
.hero__lead strong { color: #fff; font-weight: 500; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 2.8rem; }
.hero__stats { list-style: none; padding: 1.6rem 0 0; margin: 0; display: flex; gap: 3rem; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.hero__stats strong { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-light); font-weight: 600; line-height: 1; }
.hero__stats span { display: block; font-size: .8rem; color: #9aa4b5; letter-spacing: .05em; margin-top: 6px; }

/* Designation — the headline title */
.designation {
  font: inherit; font-size: 1rem; line-height: 1.3;
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.6rem 1.1rem 1.2rem; margin-bottom: 1.8rem; border-radius: 16px;
  background: linear-gradient(135deg, rgba(201,165,76,.16), rgba(201,165,76,.04));
  border: 1px solid rgba(201,165,76,.45); backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px -24px rgba(201,165,76,.55);
}
.designation::after { /* one-time light sweep */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,240,200,.35) 50%, transparent 70%);
  animation: sweep 1.4s var(--ease) 1.7s both;
}
.designation__icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 0 0 6px rgba(201,165,76,.15);
}
.designation__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy-900); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.designation__role { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); }
.designation__org { display: block; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.15; color: #fff; margin-top: .25rem; }

/* Load animations */
.hero__anim { animation: heroUp 1s var(--ease) var(--d, 0s) both; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes photoIn { from { opacity: 0; transform: scale(1.1) translateX(3%); } to { opacity: 1; transform: none; } }
@keyframes sweep { to { transform: translateX(120%); } }

.hero__scroll { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 20px; animation: heroUp 1s var(--ease) 1.8s both; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--gold); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { to { transform: translateY(14px); opacity: 0; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__card {
  position: absolute; right: -24px; bottom: 40px; background: var(--navy-900); color: #fff;
  padding: 1.4rem 1.6rem; border-radius: 14px; border-left: 3px solid var(--gold);
}
.about__card strong { font-family: var(--serif); font-size: 1.8rem; color: var(--gold-light); display: block; line-height: 1; }
.about__card span { font-size: .8rem; color: #9aa4b5; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; }
.checks li { padding-left: 1.8rem; position: relative; font-size: .93rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(201,165,76,.18); color: var(--gold); font-size: .7rem; display: grid; place-items: center; font-weight: 700; }
.signature { font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--navy-700); margin-top: 1rem; }

/* ---------- Grids / tiles ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  padding: 2rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  transition: transform .4s var(--ease), border-color .4s;
}
.tile:hover { transform: translateY(-6px); border-color: rgba(201,165,76,.5); }
.tile p { color: #9aa4b5; font-size: .92rem; margin: 0; }
.tile__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(201,165,76,.12); margin-bottom: 1.4rem; }
.tile__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Group ---------- */
.group {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center;
  padding: clamp(2rem, 5vw, 4rem); border-radius: 28px; margin-bottom: 3rem;
  background: linear-gradient(135deg, #fff, var(--sand)); border: 1px solid var(--line);
}
.group__intro p { color: var(--muted); max-width: 560px; margin-bottom: 1.8rem; }
.logo-mark { display: grid; justify-items: center; text-align: center; color: var(--navy-900); padding: 2.5rem; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.logo-mark__img { max-width: 180px; max-height: 120px; object-fit: contain; margin-bottom: 1rem; }
.logo-mark svg { width: 110px; color: var(--gold); margin-bottom: 1rem; }
.logo-mark span { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: .12em; }
.logo-mark small { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.service {
  padding: 2.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s;
}
.service::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); transition: width .5s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service:hover::after { width: 100%; }
.service__num { font-family: var(--serif); font-size: 2.6rem; color: rgba(201,165,76,.5); line-height: 1; display: block; margin-bottom: 1rem; }
.service p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Projects ---------- */
.filters { display: flex; gap: .5rem; background: #fff; padding: 6px; border-radius: 999px; border: 1px solid var(--line); }
.filter { border: 0; background: none; padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .85rem; color: var(--muted); transition: .3s; }
.filter.is-active { background: var(--navy-900); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; cursor: pointer; }
.project.is-hidden { display: none; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover img { transform: scale(1.08); }
.project::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,19,32,.9), transparent 55%); z-index: 1; }
.project__info { position: absolute; left: 1.6rem; right: 1.6rem; bottom: 1.4rem; z-index: 2; color: #fff; }
.project__info span { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-light); }
.project__info h3 { margin: .3rem 0 0; font-size: 1.6rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 1rem; }
.g-item { margin: 0; position: relative; overflow: hidden; border-radius: 14px; cursor: zoom-in; }
.g-item--tall { grid-row: span 2; }
.g-item--wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s; filter: grayscale(.2); }
.g-item:hover img { transform: scale(1.06); filter: none; }
.g-item figcaption {
  position: absolute; left: 12px; bottom: 12px; background: rgba(11,19,32,.8); color: #fff;
  font-size: .78rem; padding: .35rem .8rem; border-radius: 999px; opacity: 0; transform: translateY(8px); transition: .4s var(--ease);
}
.g-item:hover figcaption { opacity: 1; transform: none; }

/* ---------- Dream Housing Society + chairman ---------- */
.society { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.society__text p { color: #4b5563; }
.developer { display: inline-flex; align-items: center; gap: .9rem; margin: .6rem 0 1.8rem; padding: .7rem 1.3rem .7rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.developer::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(201,165,76,.18); margin-left: .5rem; }
.developer__logo { height: 38px; width: auto; object-fit: contain; }
.developer:has(.developer__logo)::before { display: none; }
.developer small { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.developer b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.1; }
.checks--one { grid-template-columns: 1fr; margin-bottom: 2rem; }
.chairman { margin: 0; position: relative; border-radius: 26px; overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow); }
.chairman__photo { aspect-ratio: 4/4.6; overflow: hidden; position: relative; }
.chairman__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 25%); filter: saturate(.95) contrast(1.03); transition: transform 1.2s var(--ease); }
.chairman:hover .chairman__photo img { transform: scale(1.04); }
.chairman__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--navy-900) 4%, rgba(11,19,32,.55) 28%, transparent 58%); }
.chairman__caption { position: relative; margin-top: -9.5rem; padding: 0 1.8rem 1.8rem; color: #fff; z-index: 1; }
.chairman:not(:has(.chairman__photo)) .chairman__caption { margin-top: 0; padding-top: 1.8rem; }
.chairman__label { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .5rem; }
.chairman__caption strong { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.05; }
.chairman__role { display: block; margin-top: .3rem; color: var(--gold-light); font-size: .9rem; }
.chairman__caption p { margin: .9rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.14); color: #c3cad6; font-size: .92rem; }
.chairman__caption p strong { display: inline; font-family: inherit; font-size: inherit; font-weight: 600; color: #fff; }

/* ---------- Location / map ---------- */
.location { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.location__info { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.location__list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; width: 100%; }
.location__list li { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.location__list span { font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); font-weight: 600; padding-top: 4px; }
.location__list a:hover { color: var(--gold-light); }
.location__list b { font-weight: 600; color: #fff; }
.map { position: relative; min-height: 420px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(201,165,76,.35); background: var(--navy-800); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8rem; color: #8391a8; font-size: .9rem; }
.map__empty svg { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Testimonials ---------- */
.quote { margin: 0; padding: 2.2rem; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.quote::before { content: "“"; position: absolute; top: -10px; right: 24px; font-family: var(--serif); font-size: 7rem; color: rgba(201,165,76,.2); line-height: 1; }
.quote p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; font-style: italic; }
.quote footer b { display: block; font-size: .95rem; }
.quote footer span { font-size: .8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.faq .section__head { margin-bottom: 2.5rem; }
.faq__list { max-width: 880px; display: grid; gap: .9rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, box-shadow .3s, opacity .9s var(--ease), transform .9s var(--ease); }
.faq__item[open] { border-color: rgba(201,165,76,.6); box-shadow: var(--shadow); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.3rem 1.6rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.35rem; }
.faq__icon { flex: none; position: relative; width: 34px; height: 34px; border-radius: 50%; background: rgba(201,165,76,.15); transition: transform .3s var(--ease), background .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--gold); border-radius: 2px; }
.faq__icon::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq__item[open] .faq__icon::after { transform: none; }
.faq__answer { padding: 0 1.6rem 1.4rem; color: var(--muted); max-width: 70ch; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 1rem; }
.contact__list li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr; gap: 1rem; font-size: .95rem; }
.contact__list span { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); font-weight: 600; padding-top: 3px; }
.form { background: #fff; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 24px; box-shadow: var(--shadow); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .45rem; font-size: .8rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem; color: var(--ink); padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ivory); transition: border-color .3s, box-shadow .3s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,165,76,.15); }
.form .is-invalid { border-color: #d9534f; }
.form__note { font-size: .78rem; color: var(--muted); text-align: center; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #c3cad6; padding: 70px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; align-items: start; padding-bottom: 3rem; }
.footer .muted { color: #8391a8; margin-top: 1rem; font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; font-size: .9rem; }
.footer__links a:hover { color: var(--gold); }
.socials { display: flex; gap: .6rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; transition: .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { display: flex; justify-content: space-between; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: #8391a8; flex-wrap: wrap; gap: .5rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,10,18,.94); display: grid; place-items: center; place-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 80vh; max-width: min(1100px, 100%); border-radius: 12px; }
.lightbox__cap { color: #c3cad6; margin-top: 1rem; text-align: center; font-family: var(--serif); font-size: 1.2rem; }
.lightbox__close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 1.2rem; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: flex-start;
    background: var(--navy-900); padding: 100px 32px 32px; gap: 1.4rem; transform: translateX(100%);
    transition: transform .45s var(--ease); box-shadow: -20px 0 50px rgba(0,0,0,.4);
  }
  .nav__links a:not(.btn) { font-size: 1.05rem; }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__toggle { position: relative; z-index: 2; }

  .hero { align-items: flex-end; min-height: 0; }
  .hero__photo {
    inset: 0 0 auto 0; width: 100%; height: min(72vh, 620px);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 45%); mask-image: linear-gradient(to top, transparent 0%, #000 45%);
  }
  .hero__photo img { object-position: 58% 20%; transform-origin: 100% 28%; }
  .hero__photo img:not(.hero__photo-blur), .hero__photo .hero__photo-blur { transform: scale(var(--zoom, 1.6)); }
  .hero__photo .hero__photo-blur { -webkit-mask-image: radial-gradient(ellipse 48% 60% at 55% 45%, transparent 55%, #000 100%); mask-image: radial-gradient(ellipse 48% 60% at 55% 45%, transparent 55%, #000 100%); }
  .hero__shade { background: linear-gradient(to bottom, rgba(11,19,32,.55) 0%, transparent 16%, transparent 42%, rgba(11,19,32,.8) 64%, var(--navy-900) 78%); }
  .hero__inner { padding: min(64vh, 540px) 0 72px; }
  .about, .contact, .group, .society, .location { grid-template-columns: 1fr; gap: 3rem; }
  .chairman { max-width: 520px; }
  .map { min-height: 380px; }
  .about__card { right: 12px; }
  .grid--3, .projects { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .chairman__photo { aspect-ratio: 4/4.9; }
  .chairman__caption { margin-top: -8.5rem; padding: 0 1.3rem 1.4rem; }
  .location__list li { grid-template-columns: 1fr; gap: .2rem; }
  .map { min-height: 320px; border-radius: 18px; }
  .container { width: calc(100% - 32px); }
  .hero__stats { gap: 1.6rem; }
  .designation { padding: .9rem 1.1rem .9rem .9rem; gap: .9rem; }
  .designation__icon { width: 44px; height: 44px; }
  .hero__stats strong { font-size: 2.2rem; }
  .grid--3, .grid--4, .projects { grid-template-columns: 1fr; }
  .checks, .form__row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .g-item--wide { grid-column: span 2; }
  .project { aspect-ratio: 4/3.6; }
  .filters { width: 100%; justify-content: space-between; }
  .contact__list li { grid-template-columns: 1fr; gap: .2rem; }
  .brand__text small { display: none; }
}

/* Narrow phones: the frame is already tall enough to crop the background, so no extra zoom */
@media (max-width: 480px) {
  .hero__photo { --zoom: 1.04; }
}
