/* =========================================================================
   HOMEPAGE — Intro · What We Do · What We Provide · Rent Now
   Loaded only on index.html. Motion is driven by js/home.js.
   ========================================================================= */

.home{ position: relative; }

/* ---------------------------------------------------------------------
   1. INTRO
   A beam of light opens like a shutter onto the city photos, the name
   rises letter by letter, the photos drift and cross-fade behind it.
   --------------------------------------------------------------------- */
.intro{
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.intro-media{
  position: absolute;
  inset: 0;
  z-index: -2;
  clip-path: inset(50% 0 50% 0);
  transform: scale(var(--im-s, 1)) translate3d(0, var(--im-y, 0), 0);
}
.intro-open .intro-media{
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.6s cubic-bezier(.77,0,.18,1) .55s;
}
.intro-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.intro-slide.is-active{ opacity: 1; }
.intro-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 60%;
  transform: scale(1.18);
}
.intro-slide.is-active img{ animation: drift 9s linear forwards; }
@keyframes drift{
  from{ transform: scale(1.18) translateX(1.5%); }
  to{ transform: scale(1.06) translateX(-1.5%); }
}
.intro-shade{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.55) 100%),
    linear-gradient(90deg, rgba(0,0,0,.7), transparent 60%);
  opacity: var(--sh-o, 1);
}

/* the headlight beam: a hairline of light that flares, then splits
   open as the shutter edge */
.intro-beam{
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  z-index: 3;
  height: 2px;
  margin-top: -1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,236,190,.95) 30%, #fff 50%, rgba(255,236,190,.95) 70%, transparent);
  box-shadow: 0 0 30px 6px rgba(232,201,124,.55), 0 0 120px 30px rgba(232,201,124,.18);
  transform: scaleX(0);
  opacity: 0;
}
.intro-open .intro-beam{ animation: beam 2.2s cubic-bezier(.77,0,.18,1) forwards; }
@keyframes beam{
  0%  { transform: scaleX(0); opacity: 1; }
  25% { transform: scaleX(1); opacity: 1; }
  45% { transform: scaleX(1) scaleY(1); opacity: 1; }
  100%{ transform: scaleX(1) scaleY(.2); opacity: 0; }
}

.intro-content{
  position: relative;
  padding-bottom: clamp(1rem, 4vh, 3rem);
  transform: translate3d(0, var(--ct-y, 0), 0);
  opacity: var(--ct-o, 1);
}
.intro-title{
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  font-size: clamp(2.6rem, 7.2vw, 8rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: #fff;
}
.intro-word{ display: block; overflow: hidden; padding-bottom: .04em; }
.intro-word .wd{ display: inline-block; white-space: nowrap; }
.intro-word-gold{
  font-size: .82em;
  letter-spacing: -.02em;
  margin-top: .08em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-light);
}
.intro-word .ch{
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  opacity: 0;
}
.intro-open .intro-word .ch{
  animation: chUp 1.2s cubic-bezier(.19,1,.22,1) forwards;
  animation-delay: calc(1.25s + var(--i) * .045s);
}
@keyframes chUp{ to{ transform: none; opacity: 1; } }

.intro-lede{
  margin-top: 1.6rem;
  max-width: 46ch;
  color: rgba(244,240,232,.8);
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
}
.intro-cta{ margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.intro-up{
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
}
.intro-open .intro-up{
  transition: opacity 1.1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s), filter 1.1s var(--ease-out) var(--d, 0s);
  opacity: 1;
  transform: none;
  filter: none;
}

.intro-foot{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0 1.6rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.intro-facts{
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 2.4rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244,240,232,.6);
}
.intro-facts b{
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--gold-light);
  margin-right: .35em;
}
.intro-scroll{
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(244,240,232,.65);
}
.intro-scroll i{
  position: relative;
  width: 1px; height: 38px;
  background: rgba(255,255,255,.2);
  overflow: hidden;
}
.intro-scroll i::after{
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 40%;
  background: var(--gold-light);
  animation: drip 2s var(--ease-in-out) infinite;
}
.intro-pillars{ align-items: center; gap: .4rem 1.6rem; }
.intro-pillars span{
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .14em;
  color: var(--gold-light);
}
.intro-pillars span + span::before{
  content: '';
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232,201,124,.6);
}
@media (max-width: 640px){
  .intro-pillars{ gap: .3rem .9rem; }
  .intro-pillars span{ gap: .9rem; font-size: .66rem; letter-spacing: .1em; }
}
@keyframes drip{ from{ transform: translateY(-100%); } to{ transform: translateY(260%); } }

/* ---------------------------------------------------------------------
   2. WHAT WE DO
   --------------------------------------------------------------------- */
.about{
  padding: clamp(6rem, 12vw, 10rem) 0;
  overflow: hidden;
}
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}
.about-visual{
  position: relative;
  aspect-ratio: 1 / 1.02;
}
.about-frame{
  position: absolute;
  left: 0; top: 0;
  width: 78%;
  height: 76%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9);
  clip-path: inset(0 0 100% 0 round 24px);
  transition: clip-path 1.4s cubic-bezier(.77,0,.18,1);
}
.about-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25) translate3d(0, var(--py, 0), 0);
  transition: transform 1.8s var(--ease-out);
}
.about-frame-small{
  left: auto; top: auto;
  right: 0; bottom: 0;
  width: 54%;
  height: 44%;
  transition-delay: .3s;
  border: 6px solid var(--bg);
}
.about-visual.is-visible .about-frame{ clip-path: inset(0 0 0 0 round 24px); }
.about-visual.is-visible .about-frame img{ transform: scale(1.06) translate3d(0, var(--py, 0), 0); }
.about-badge{
  position: absolute;
  left: 8%; bottom: 10%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  color: #0a0906;
  box-shadow: 0 20px 40px -12px rgba(201,161,74,.55);
  transform: scale(0) rotate(-30deg);
  transition: transform 1s cubic-bezier(.34,1.56,.64,1) .9s;
}
.about-badge b{ font-family: var(--font-display); font-stretch: 125%; font-size: 2.4rem; line-height: 1; }
.about-badge small{ font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.about-visual.is-visible .about-badge{ transform: none; }

.about-copy h2{
  margin-top: 1rem;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.about-copy h2 .accent{ display: block; font-size: .78em; margin-top: .15em; }
.about-copy > p{ margin-top: 1.5rem; max-width: 50ch; color: var(--text-muted); font-size: 1.02rem; }
.about-stats{
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.stat{ padding: 1.4rem 1rem 0 0; display: flex; flex-direction: column; gap: .5rem; }
.stat + .stat{ padding-left: 1rem; border-left: 1px solid var(--border); }
.stat-num{
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat-num small{ font-size: .4em; color: var(--gold); margin-right: .15em; vertical-align: .9em; letter-spacing: 0; }
.stat-label{ font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }

/* ---------------------------------------------------------------------
   3. WHAT WE PROVIDE
   --------------------------------------------------------------------- */
.provide{
  padding: clamp(6rem, 11vw, 9rem) 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(70% 50% at 20% 0%, rgba(201,161,74,.07), transparent 70%);
}
.provide-layout{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.provide-side{
  position: sticky;
  top: calc(var(--nav-h) + 3rem);
}
.provide-side h2{
  margin-top: 1rem;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.provide-side h2 .accent{ display: block; font-size: .78em; margin-top: .15em; }
.provide-side > p{ margin-top: 1.4rem; max-width: 38ch; color: var(--text-muted); }
.provide-counter{
  margin-top: 2.4rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}
.pc-num{
  height: 1em;
  overflow: hidden;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.pc-roll{
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--pc, 0) * -1em));
  transition: transform .9s cubic-bezier(.77,0,.18,1);
}
.pc-roll b{
  display: block;
  height: 1em;
  font-weight: 800;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pc-of{
  margin-bottom: .9rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pc-title{
  margin-top: .6rem;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.pc-title.is-swap{ animation: pcSwap .7s var(--ease-out); }
@keyframes pcSwap{ from{ opacity: 0; transform: translateY(10px); filter: blur(5px); } to{ opacity: 1; transform: none; filter: none; } }
.provide-progress{
  margin: 1.6rem 0 0;
  height: 2px;
  max-width: 280px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.provide-progress i{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform-origin: left;
  transform: scaleX(var(--pp, 0));
}

.provide-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pv{
  --mx: 50%; --my: 50%;
  will-change: transform, opacity;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  padding: 2rem 2rem 2.1rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #131314, #0d0d0e);
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px) scale(.96);
  filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out), border-color .5s, background-color .5s;
}
.pv.is-in{ opacity: 1; transform: none; filter: none; }
.pv::before{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(232,201,124,.12), transparent 60%);
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.pv::after{
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .8s var(--ease-out);
}
.pv.is-current{
  border-color: rgba(232,201,124,.38);
  background: linear-gradient(180deg, #17150f, #0e0d0b);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(232,201,124,.06), 0 0 40px -10px rgba(232,201,124,.18);
}
.pv.is-in.is-current{ transform: translateX(-10px) scale(1.015); }
.provide-list.has-current .pv.is-in:not(.is-current){ opacity: .55; }
/* the icon draws itself in gold as the card arrives */
.pv-icon svg *{
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  transition: stroke-dashoffset 1.6s var(--ease-out) .3s;
}
.pv.is-in .pv-icon svg *{ stroke-dashoffset: 0; }
.pv.is-current .pv-icon{ background: var(--gold); color: #0a0906; border-color: var(--gold); transition: background-color .5s, color .5s; }
.pv.is-current::after{ transform: scaleY(1); }
.pv:hover::before,
.pv.is-current::before{ opacity: 1; }
.pv-num{
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,201,124,.55);
  transition: color .6s, -webkit-text-stroke-color .6s;
}
.pv.is-current .pv-num{ color: var(--gold-light); -webkit-text-stroke-color: var(--gold-light); }
.pv-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(232,201,124,.3);
  background: linear-gradient(140deg, rgba(232,201,124,.16), rgba(232,201,124,.02));
  color: var(--gold-light);
}
.pv-icon svg{ width: 22px; height: 22px; }
.pv h3{ margin-top: 1.1rem; font-size: 1.3rem; font-stretch: 108%; }
.pv p{ margin-top: .6rem; font-size: .94rem; color: var(--text-muted); line-height: 1.65; max-width: 52ch; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 960px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-visual{ max-width: 520px; width: 100%; margin-inline: auto; }
  .provide-layout{ grid-template-columns: 1fr; }
  .provide-side{ position: static; }
}
@media (max-width: 640px){
  .intro-title{ font-size: clamp(2.3rem, 12vw, 3.6rem); }
  .intro-word-gold{ font-size: .72em; }
  .intro-slide img{ object-position: 72% 60%; }
  .intro-facts{ gap: .3rem 1.2rem; font-size: .62rem; }
  .intro-scroll span{ display: none; }
  .pv{ grid-template-columns: 1fr; gap: .8rem; padding: 1.5rem; }
  .pv.is-in.is-current{ transform: none; }
  .provide-counter, .pc-title{ display: none; }
  .pv-num{ font-size: 1.8rem; }
  .about-stats{ grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3){ padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3){ border-top: 1px solid var(--border); margin-top: 1.2rem; }
  .about-badge{ width: 92px; height: 92px; }
  .about-badge b{ font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce){
  .intro-media{ clip-path: none; }
  .intro-word .ch, .intro-up, .pv{ opacity: 1; transform: none; filter: none; animation: none; }
  .about-frame{ clip-path: none; }
  .about-badge{ transform: none; }
}

/* Tamil words are long — a smaller headline so it fits the photo */
html.lang-ta .intro-title{ font-size: clamp(2rem, 4.6vw, 5rem); line-height: 1.15; }
html.lang-ta .intro-word{ padding-bottom: .12em; }
