/* ============================================================
   KAVIN BUILDERS — Master Stylesheet
   Dark Luxury Theme · Charcoal + Gold
   ============================================================ */

/* ---------- 1. RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img, svg, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

/* ---------- 2. TOKENS ---------- */
:root {
  /* surfaces */
  --ink:        #08090C;
  --coal:       #0D0F14;
  --panel:      #13161D;
  --panel-2:    #191D26;
  --line:       rgba(255, 255, 255, .09);
  --line-soft:  rgba(255, 255, 255, .05);

  /* brand */
  --gold:       #D9A93C;
  --gold-lt:    #F3D889;
  --gold-dk:    #A87D1E;
  --gold-glow:  rgba(217, 169, 60, .22);
  --gold-film:  rgba(217, 169, 60, .09);

  /* fonts */
  --f-display:  'Playfair Display', 'Times New Roman', Georgia, serif;
  --f-body:     'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* type */
  --text:       #EFEDE8;
  --muted:      #9DA0A8;
  --faint:      #6B6E77;

  /* metrics */
  --nav-h:      84px;
  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1260px;
  --gut:        clamp(20px, 5vw, 56px);

  /* motion */
  --ease:       cubic-bezier(.22, 1, .36, 1);
  --ease-out:   cubic-bezier(.16, 1, .3, 1);

  --shadow:     0 28px 70px -24px rgba(0, 0, 0, .85);
  --shadow-gold:0 22px 60px -22px rgba(217, 169, 60, .45);
}

/* ---------- 3. BASE ---------- */
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.012em;
  color: #fff;
}

.tamil { font-family: 'Noto Sans Tamil', var(--f-body); }

::selection { background: var(--gold); color: #0A0A0A; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-dk), var(--gold));
  border-radius: 20px;
  border: 2px solid var(--ink);
}

/* ---------- 4. LAYOUT HELPERS ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 90px) 0; }
/* first section on a page with no hero banner — clears the fixed header */
.section--below-nav { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 86px)); }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 5. TYPE COMPONENTS ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow--center::after {
  content: '';
  width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.h-xl { font-size: clamp(2.45rem, 6.6vw, 4.9rem); font-weight: 700; }
.h-lg { font-size: clamp(1.95rem, 4.3vw, 3.3rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
.h-sm { font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-weight: 700; }

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--muted);
  max-width: 62ch;
}

.gold { color: var(--gold); }
.gold-grad {
  background: linear-gradient(105deg, var(--gold-lt), var(--gold) 45%, var(--gold-dk));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 64px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: 20px; }

/* ---------- 6. BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: .87rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .45s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold {
  background: linear-gradient(115deg, var(--gold-lt), var(--gold) 50%, var(--gold-dk));
  color: #100D04;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { transform: translateY(-3px); filter: brightness(1.08); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, .02);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

.btn--wa { background: linear-gradient(120deg, #2FC04C, #128C7E); color: #fff; box-shadow: 0 20px 50px -20px rgba(37,211,102,.6); }
.btn--wa:hover { transform: translateY(-3px); filter: brightness(1.08); }

.btn--lg { padding: 18px 38px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- 7. PRELOADER ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity .7s var(--ease), visibility .7s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark { text-align: center; }
.loader-mark svg { width: 64px; height: 64px; margin-inline: auto; }
.loader-mark svg path, .loader-mark svg rect {
  stroke: var(--gold);
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 1.7s var(--ease) infinite alternate;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-mark span {
  display: block;
  margin-top: 20px;
  font-size: .7rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .35 } 50% { opacity: 1 } }

/* ---------- 8. SCROLL PROGRESS ---------- */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0%;
  z-index: 1200;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt));
  box-shadow: 0 0 14px var(--gold-glow);
  transition: width .1s linear;
}

/* ---------- 9. HEADER / NAV ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.stuck {
  height: 70px;
  background: rgba(8, 9, 12, .82);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.head-in {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* logo */
.logo { display: flex; align-items: center; gap: 13px; }
.logo svg { width: 40px; height: 40px; flex: none; transition: transform .6s var(--ease); }
.logo:hover svg { transform: rotate(-6deg) scale(1.06); }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-txt b {
  font-family: var(--f-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: #fff;
}
.logo-txt i {
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}

/* desktop nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 10px 17px;
  font-size: .87rem;
  font-weight: 400;
  color: var(--muted);
  border-radius: 100px;
  transition: color .3s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 17px; right: 17px; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.active { color: var(--gold); }
.nav a.active::after { transform: scaleX(1); }

.head-cta { display: flex; align-items: center; gap: 14px; }
.head-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  color: var(--text);
  padding-right: 4px;
}
.head-phone svg { width: 15px; height: 15px; color: var(--gold); }
.head-phone:hover { color: var(--gold); }

/* burger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  z-index: 1002;
}
.burger span {
  position: absolute;
  left: 13px;
  width: 20px; height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: all .4s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22.5px; width: 13px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 22.5px; transform: rotate(45deg); background: var(--gold); }
.burger.open span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.burger.open span:nth-child(3) { top: 22.5px; transform: rotate(-45deg); background: var(--gold); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--coal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gut) 50px;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .8s var(--ease);
  overflow-y: auto;
}
.drawer.open { clip-path: circle(155% at calc(100% - 44px) 44px); }
.drawer::before {
  content: '';
  position: absolute;
  inset: auto -20% -25% auto;
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--gold-film), transparent 68%);
}
.drawer nav { display: flex; flex-direction: column; gap: 4px; position: relative; }
.drawer nav a {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 8.4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transform: translateY(26px);
  transition: color .3s, opacity .6s var(--ease), transform .6s var(--ease);
}
.drawer.open nav a { opacity: 1; transform: none; }
.drawer.open nav a:nth-child(1) { transition-delay: .18s; }
.drawer.open nav a:nth-child(2) { transition-delay: .25s; }
.drawer.open nav a:nth-child(3) { transition-delay: .32s; }
.drawer.open nav a:nth-child(4) { transition-delay: .39s; }
.drawer nav a:hover, .drawer nav a.active { color: var(--gold); }
.drawer-foot {
  position: relative;
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.drawer-foot a.mini { font-size: .9rem; color: var(--muted); }
.drawer-foot a.mini:hover { color: var(--gold); }

/* ---------- 10. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
}
.hero-slide.on { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: saturate(.92) contrast(1.05);
}
.hero-slide.on img { animation: kb 9s linear forwards; }
@keyframes kb { from { transform: scale(1.12) } to { transform: scale(1.0) } }

.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,9,12,.85) 0%, rgba(8,9,12,.22) 32%, rgba(8,9,12,.7) 70%, var(--ink) 100%),
    linear-gradient(95deg, rgba(8,9,12,.88) 0%, rgba(8,9,12,.38) 46%, rgba(8,9,12,.05) 78%, transparent 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: .5;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 108px);
}

.hero-in { padding-bottom: clamp(46px, 8vw, 90px); padding-top: calc(var(--nav-h) + 40px); width: 100%; }
.hero h1 { max-width: 15ch; margin-bottom: 26px; }
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  display: block;
  background: linear-gradient(100deg, var(--gold-lt), var(--gold) 40%, var(--gold-dk));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero-tag b {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #0A0A0A;
  font-size: .62rem;
}

/* hero dots */
.hero-dots {
  position: absolute;
  right: var(--gut);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 13px;
  z-index: 3;
}
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  transition: all .45s var(--ease);
}
.hero-dots button.on { background: var(--gold); height: 30px; border-radius: 6px; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--faint);
}
.scroll-cue i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2.1s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(.3); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } }

/* ---------- 11. STAT STRIP ---------- */
.stats {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--coal), var(--ink));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(30px, 4vw, 48px) clamp(14px, 2.4vw, 30px);
  text-align: center;
  border-right: 1px solid var(--line-soft);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat b {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1;
  display: block;
  background: linear-gradient(160deg, #fff, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat b sup { font-size: .46em; color: var(--gold); -webkit-text-fill-color: var(--gold); margin-left: 2px; }
.stat span {
  display: block;
  margin-top: 12px;
  font-size: .73rem;
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- 12. MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--coal);
  padding: 17px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%) } }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-inline: 24px;
  font-family: var(--f-body);
  font-size: clamp(.9rem, 1.5vw, 1.12rem);
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.marquee-track span::after { content: '◆'; font-size: .5em; color: var(--gold); }

/* ---------- 13. CARDS / SERVICES ---------- */
.card {
  position: relative;
  background: linear-gradient(165deg, var(--panel), var(--coal));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .5s, box-shadow .6s;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px auto auto -1px;
  width: 150px; height: 150px;
  background: radial-gradient(circle at top left, var(--gold-film), transparent 70%);
  opacity: 0;
  transition: opacity .6s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(217,169,60,.36); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card-num {
  font-family: var(--f-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold-dk);
  transition: color .4s;
}
.card:hover .card-num { color: var(--gold); }

.card-ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(217,169,60,.07);
  margin: 20px 0 22px;
  transition: all .55s var(--ease);
}
.card-ico svg { width: 25px; height: 25px; color: var(--gold); }
.card:hover .card-ico { background: var(--gold); border-color: var(--gold); transform: rotate(-7deg); }
.card:hover .card-ico svg { color: #0D0B05; }

.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { font-size: .96rem; color: var(--muted); }

.card-list { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.card-list li {
  font-size: .74rem;
  letter-spacing: .04em;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--faint);
}

/* 8-card services grid — tighter padding so four columns stay readable */
.services-grid .card { padding: clamp(22px, 2.2vw, 30px); }
.services-grid .card-ico { width: 50px; height: 50px; margin: 17px 0 19px; }
.services-grid .card-ico svg { width: 22px; height: 22px; }
.services-grid .card h3 { font-size: 1.1rem; }
.services-grid .card p { font-size: .92rem; }
.services-grid .card-list { margin-top: 17px; gap: 7px; }
.services-grid .card-list li { font-size: .7rem; padding: 4px 11px; }

/* ---------- 13b. VIDEO STRIP ---------- */
.vid-strip {
  display: grid;
  grid-template-columns: minmax(200px, 268px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  margin-top: clamp(34px, 4vw, 54px);
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--panel), var(--coal));
  position: relative;
  overflow: hidden;
}
.vid-strip::before {
  content: '';
  position: absolute;
  top: -140px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--gold-film), transparent 70%);
  pointer-events: none;
}
.vid-strip > * { position: relative; }

.vid-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}
.vid-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 478 / 850;
  object-fit: cover;
  background: #000;
}

.vid-copy h3 { margin-bottom: 14px; }
.vid-copy .lede { margin-bottom: 26px; }
.vid-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 14. FEATURE / SPLIT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split--rev .split-media { order: 2; }

.media-stack { position: relative; }
.media-stack img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
}
.media-stack .m1 { aspect-ratio: 4/3.1; }
.media-stack .m2 {
  position: absolute;
  right: -7%; bottom: -12%;
  width: 46%;
  aspect-ratio: 1/1.05;
  box-shadow: var(--shadow);
  border: 4px solid var(--ink);
}
.media-badge {
  position: absolute;
  left: -4%; top: 9%;
  padding: 16px 22px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  color: #100D04;
  box-shadow: var(--shadow-gold);
}
.media-badge b { display: block; font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.media-badge span { font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }

.tick { display: grid; gap: 15px; margin: 30px 0 34px; }
.tick li { display: flex; gap: 14px; align-items: flex-start; font-size: .98rem; color: var(--muted); }
.tick li svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 4px; }
.tick li b { color: var(--text); font-weight: 500; }

/* ---------- 15. PROJECT CARDS ---------- */
.proj {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}
.proj-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.proj-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .7s;
  filter: saturate(.9);
}
.proj:hover .proj-img img { transform: scale(1.09); filter: saturate(1.05); }
.proj-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(8,9,12,.55) 64%, rgba(8,9,12,.96));
}
.proj-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(20px, 2.6vw, 30px);
  z-index: 2;
}
.proj-cat {
  display: inline-block;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 9px;
}
.proj-body h3 { font-size: clamp(1.05rem, 1.7vw, 1.32rem); }
.proj-meta { font-size: .84rem; color: var(--muted); margin-top: 7px; }
.proj-go {
  position: absolute;
  right: 18px; top: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8,9,12,.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  z-index: 2;
  opacity: 0;
  transform: translateY(-8px) scale(.85);
  transition: all .5s var(--ease);
}
.proj-go svg { width: 17px; height: 17px; color: var(--gold); }
.proj:hover .proj-go { opacity: 1; transform: none; background: var(--gold); border-color: var(--gold); }
.proj:hover .proj-go svg { color: #0D0B05; }

.proj--tall .proj-img { aspect-ratio: 3/4; }
.proj--wide .proj-img { aspect-ratio: 16/10; }

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}
.filters button {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--muted);
  transition: all .4s var(--ease);
}
.filters button:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.filters button.on {
  background: linear-gradient(115deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  border-color: transparent;
  color: #100D04;
  font-weight: 600;
}

/* Gallery grid — uniform tiles so every row aligns top and bottom */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
}
.masonry > * { margin: 0; }
.masonry .proj { height: 100%; }
.masonry .proj-img,
.masonry .proj--tall .proj-img,
.masonry .proj--wide .proj-img { aspect-ratio: 4 / 3; height: 100%; }
/* portrait source images: frame nearer the top so the building crown is kept */
.masonry .proj--tall .proj-img img { object-position: center 30%; }

.proj.hide { display: none; }

/* ---------- 16. PROCESS ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(20px, 4vw, 54px);
  padding: clamp(28px, 3.4vw, 42px) 0;
  border-top: 1px solid var(--line-soft);
  transition: background .5s;
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-film), transparent 50%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.step:hover::before { opacity: 1; }
.step-n {
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 4.2vw, 3.3rem);
  font-weight: 700;
  line-height: .95;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217,169,60,.45);
  transition: all .5s var(--ease);
}
.step:hover .step-n { -webkit-text-stroke-color: var(--gold); color: rgba(217,169,60,.14); }
.step-body h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); margin-bottom: 11px; }
.step-body p { color: var(--muted); max-width: 68ch; font-size: .98rem; }

/* ---------- 17. QUOTES ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.quote {
  background: linear-gradient(165deg, var(--panel), var(--coal));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  position: relative;
  transition: transform .6s var(--ease), border-color .5s;
}
.quote:hover { transform: translateY(-7px); border-color: rgba(217,169,60,.3); }
.quote-mark { font-family: var(--f-display); font-size: 3.4rem; line-height: .6; color: var(--gold); opacity: .35; }
.quote p { margin: 18px 0 24px; color: var(--muted); font-size: .99rem; }
.quote-by { display: flex; align-items: center; gap: 13px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold), var(--gold-dk));
  color: #0D0B05;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1rem;
  flex: none;
}
.quote-by b { display: block; font-size: .93rem; font-weight: 500; color: var(--text); }
.quote-by span { font-size: .78rem; color: var(--faint); }
.stars { display: flex; gap: 3px; margin-top: 4px; }
.stars svg { width: 13px; height: 13px; color: var(--gold); }

/* ---------- 18. CTA BAND ---------- */
.cta-band {
  position: relative;
  border-radius: clamp(20px, 3vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(217,169,60,.26);
  background: linear-gradient(140deg, #16120A, var(--coal) 55%, #100D06);
  padding: clamp(40px, 6vw, 74px) clamp(26px, 5vw, 66px);
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -55%; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, var(--gold-glow), transparent 64%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { margin-inline: auto; margin-bottom: 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 19. PAGE HERO (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(60px, 9vw, 118px)) 0 clamp(52px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero img.bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.55) brightness(.5);
  transform: scale(1.05);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,9,12,.92), rgba(8,9,12,.72) 45%, var(--ink));
}
.crumbs { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--faint); margin-top: 20px; }
.crumbs a:hover { color: var(--gold); }
.crumbs i { font-style: normal; color: var(--gold); }

/* ---------- 20. CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }

.info-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--panel), var(--coal));
  transition: all .5s var(--ease);
}
.info-card:hover { border-color: rgba(217,169,60,.34); transform: translateX(5px); }
.info-ico {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(217,169,60,.1);
  border: 1px solid var(--line);
}
.info-ico svg { width: 20px; height: 20px; color: var(--gold); }
.info-card h4 { font-family: var(--f-body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.info-card p, .info-card a { font-size: .99rem; color: var(--text); line-height: 1.6; }
.info-card a:hover { color: var(--gold); }

/* form */
.form-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--panel), var(--coal));
  padding: clamp(26px, 3.6vw, 46px);
  overflow: hidden;
}
.form-panel::before {
  content: '';
  position: absolute;
  top: -180px; right: -140px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold-film), transparent 68%);
  pointer-events: none;
}
.form-panel > * { position: relative; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.field label em { font-style: normal; color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,.028);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 17px;
  font-size: .97rem;
  font-weight: 300;
  color: var(--text);
  transition: all .35s var(--ease);
  outline: none;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: rgba(217,169,60,.05);
  box-shadow: 0 0 0 4px rgba(217,169,60,.1);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9A93C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 17px;
  padding-right: 46px;
  cursor: pointer;
}
.field select option { background: #15181F; color: var(--text); }

.field.bad input, .field.bad select, .field.bad textarea { border-color: #E2574C; background: rgba(226,87,76,.06); }
.err { display: none; margin-top: 7px; font-size: .78rem; color: #E2574C; }
.field.bad .err { display: block; }

.phone-wrap { position: relative; }
.phone-wrap .cc {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
  color: var(--gold);
  pointer-events: none;
  border-right: 1px solid var(--line);
  padding-right: 11px;
}
.phone-wrap input { padding-left: 74px; }

.form-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: .82rem;
  color: var(--faint);
  line-height: 1.6;
}
.form-note svg { width: 16px; height: 16px; flex: none; color: var(--gold); margin-top: 3px; }

.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translate(-50%, 130%);
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 100px;
  background: linear-gradient(120deg, #2FC04C, #128C7E);
  color: #fff;
  font-size: .92rem;
  font-weight: 500;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  opacity: 0;
  visibility: hidden;
  transition: transform .7s var(--ease), opacity .5s, visibility .5s;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast svg { width: 19px; height: 19px; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(.35) contrast(1.05) brightness(.88);
  transition: filter .6s;
}
.map-frame:hover { filter: none; }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- 21. FOOTER ---------- */
.site-foot {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--coal), #06070A);
  padding-top: clamp(52px, 6vw, 86px);
  position: relative;
  overflow: hidden;
}
.site-foot::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(217,169,60,.07), transparent 66%);
  pointer-events: none;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.2fr;
  gap: clamp(26px, 4vw, 52px);
  position: relative;
  padding-bottom: clamp(38px, 5vw, 58px);
}
.foot-col h5 {
  font-family: var(--f-body);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.foot-col ul { display: grid; gap: 12px; }
.foot-col a, .foot-col p { font-size: .93rem; color: var(--muted); }
.foot-col a:hover { color: var(--gold); }
.foot-brand p { margin: 20px 0 24px; max-width: 42ch; font-size: .95rem; }
.foot-tamil { font-size: 1.05rem; color: var(--gold-lt); margin-bottom: 4px; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: all .45s var(--ease);
}
.socials a svg { width: 17px; height: 17px; color: var(--muted); transition: color .4s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-4px); }
.socials a:hover svg { color: #0D0B05; }

.foot-bar {
  border-top: 1px solid var(--line-soft);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.foot-bar p, .foot-bar a { font-size: .82rem; color: var(--faint); }
.foot-bar a:hover { color: var(--gold); }

/* ---------- 22. FLOATING ACTIONS ---------- */
.fab-wa {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3AD16A, #128C7E);
  box-shadow: 0 16px 40px -12px rgba(37,211,102,.7);
  transition: transform .5s var(--ease);
}
.fab-wa svg { width: 29px; height: 29px; color: #fff; }
.fab-wa:hover { transform: scale(1.09) rotate(6deg); }
.fab-wa::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(58,209,106,.55);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .8 } 100% { transform: scale(1.75); opacity: 0 } }

.fab-top {
  position: fixed;
  right: 22px; bottom: 92px;
  z-index: 899;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: rgba(19,22,29,.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .5s var(--ease);
}
.fab-top.on { opacity: 1; visibility: visible; transform: none; }
.fab-top svg { width: 17px; height: 17px; color: var(--gold); }
.fab-top:hover { border-color: var(--gold); }

/* ---------- 23. LIGHTBOX ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(5, 6, 8, .96);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 60px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.lb.on { opacity: 1; visibility: visible; }
.lb figure { max-width: 1100px; width: 100%; text-align: center; }
.lb img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line);
  transform: scale(.94);
  transition: transform .6s var(--ease);
}
.lb.on img { transform: scale(1); }
.lb figcaption { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.lb figcaption b { display: block; color: var(--text); font-family: var(--f-display); font-size: 1.1rem; margin-bottom: 4px; }
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: rgba(19,22,29,.8);
  transition: all .4s var(--ease);
}
.lb-btn svg { width: 19px; height: 19px; color: var(--text); }
.lb-btn:hover { background: var(--gold); border-color: var(--gold); }
.lb-btn:hover svg { color: #0D0B05; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close { top: 20px; right: 20px; transform: none; }
.lb-count { position: absolute; top: 28px; left: 24px; font-size: .82rem; letter-spacing: .16em; color: var(--faint); }

/* ---------- 24. REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-38px); }
[data-reveal="right"] { transform: translateX(38px); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal].in { transform: none; }

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

/* ---------- 25. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav, .head-phone { display: none; }
  .burger { display: block; }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--rev .split-media { grid-template-columns: 1fr; order: 0; }
  .media-stack .m2 { width: 40%; right: 0; bottom: -8%; }
  .hero-dots { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 760px) {
  .vid-strip { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .vid-copy { min-width: 0; }
  .vid-actions .btn { white-space: normal; text-align: center; line-height: 1.35; }
  .vid-frame { max-width: 300px; }
  .vid-copy .lede { margin-inline: auto; }
  .vid-actions { justify-content: center; }
  .vid-copy .eyebrow::after {
    content: '';
    width: 34px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
  }
}

@media (max-width: 680px) {
  :root { --nav-h: 72px; }
  body { font-size: 16px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .head-cta .btn { display: none; }
  .media-badge { left: 0; padding: 12px 17px; }
  .media-stack .m2 { display: none; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-btn { width: 42px; height: 42px; }
  .fab-wa { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .fab-top { right: 19px; bottom: 80px; }
}
