/* Ishaan Garg brand tokens (brand-system/ishaan-brand-system.png) */
:root {
  --midnight: #0B1428;
  --midnight-2: #111C36;
  --midnight-3: #18264A;
  --gold: #D4A94C;
  --gold-soft: rgba(212, 169, 76, 0.14);
  --pearl: #F0E6D2;
  --pearl-dim: rgba(240, 230, 210, 0.72);
  --steel: #5B6B85;
  --line: rgba(91, 107, 133, 0.35);
  --head: "Poppins", system-ui, sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--midnight); color: var(--pearl); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.gold { color: var(--gold); }
.small { font-size: .88rem; color: var(--pearl-dim); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.eyebrow { font: 600 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-block; background: var(--gold); color: var(--midnight); font: 600 1rem/1 var(--body); padding: 16px 26px; border-radius: 999px; text-decoration: none; border: 1px solid var(--gold); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(212,169,76,.6); }
.btn:hover::after { transform: translateX(120%); }
.btn-small { padding: 10px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--gold); }
.link-arrow { color: var(--pearl); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.link-arrow::after { content: " \2193"; color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11,20,40,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font: 700 1.05rem/1.1 var(--head); color: var(--pearl); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.brand span { display: block; font: 500 .7rem/1.4 var(--body); color: var(--steel); letter-spacing: .12em; }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { color: var(--pearl-dim); text-decoration: none; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--gold); }
@media (max-width: 760px) { .nav { display: none; } .header-inner .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 72px 0 96px; background: radial-gradient(1000px 520px at 80% 20%, var(--midnight-3), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--pearl-dim); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin: 28px 0 14px; }
.hero-in { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--d) * .14s + .2s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-visual { position: relative; height: 480px; }
.portrait { position: absolute; top: 0; left: 0; width: 330px; aspect-ratio: 1; }
.portrait img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: cover; border-radius: 50%; opacity: 0; transform: scale(.94); animation: pop 1s var(--ease) .3s forwards; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 604; stroke-dashoffset: 604; animation: draw 1.6s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; transform: none; } }
.book { position: absolute; right: 0; bottom: 0; width: 210px; text-decoration: none; opacity: 0; animation: pop 1s var(--ease) .9s forwards, float 6s ease-in-out 2s infinite; }
.book img { border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px var(--line); }
.book-tag { position: absolute; top: -12px; left: -12px; background: var(--gold); color: var(--midnight); font: 600 .78rem/1 var(--body); padding: 8px 12px; border-radius: 999px; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 360px; max-width: 420px; }
  .portrait { width: 250px; }
  .book { width: 160px; }
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--midnight-2); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--pearl-dim); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Area explorer: photo cards */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.area-card { position: relative; display: block; height: 380px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--midnight-2); color: var(--pearl); text-align: left; font: inherit; transition-delay: calc(var(--d) * 70ms); }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.area-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,40,.05) 20%, rgba(11,20,40,.75) 58%, rgba(11,20,40,.97) 100%); }
.area-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 14px; }
.area-name { font: 700 1.45rem/1.1 var(--head); }
.area-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.area-stats b { display: block; font: 700 1.15rem/1.2 var(--head); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.area-stats small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pearl-dim); }
.area-tags { display: flex; gap: 6px; }
.area-tags span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(240,230,210,.1); border: 1px solid rgba(240,230,210,.18); font-size: 1rem; }
.area-open { position: absolute; top: 16px; right: 16px; background: var(--gold); color: var(--midnight); font: 600 .78rem/1 var(--body); padding: 8px 14px; border-radius: 999px; opacity: 0; transform: translateY(-6px); transition: all .35s var(--ease); }
.area-card:hover img, .area-card:focus-visible img { transform: scale(1.08); }
.area-card:hover, .area-card:focus-visible { border-color: var(--gold); outline: none; }
.area-card:hover .area-open, .area-card:focus-visible .area-open { opacity: 1; transform: none; }
@media (hover: none) { .area-open { opacity: 1; transform: none; } }

/* Area drawer */
body.locked { overflow: hidden; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(5,10,22,.7); backdrop-filter: blur(3px); opacity: 0; transition: opacity .4s var(--ease); }
.drawer-backdrop.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(720px, 100%); background: var(--midnight); border-left: 1px solid var(--line); overflow-y: auto; transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.open { transform: none; }
.drawer-close { position: sticky; top: 14px; float: right; margin: 14px 14px -58px 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11,20,40,.75); color: var(--pearl); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.drawer-close:hover { border-color: var(--gold); color: var(--gold); }
.d-hero { position: relative; height: 260px; overflow: hidden; }
.d-hero img { width: 100%; height: 100%; object-fit: cover; }
.d-hero-text { position: absolute; left: 28px; right: 28px; bottom: 22px; }
.d-hero-text .eyebrow { margin-bottom: .4rem; }
.d-hero-text h2 { margin-bottom: .4rem; }
.d-inner { padding: 26px 28px 40px; }
.d-inner h3 { margin: 34px 0 6px; }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.d-stats div { background: var(--midnight-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.d-stats b { display: block; font: 700 clamp(1.15rem, 2.6vw, 1.6rem)/1.15 var(--head); color: var(--gold); font-variant-numeric: tabular-nums; }
.d-stats small { color: var(--pearl-dim); font-size: .8rem; }
.hint { font-size: .85rem; color: var(--steel); margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { position: relative; min-height: 112px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--midnight-2); color: var(--pearl); cursor: pointer; font: inherit; text-align: left; perspective: 800px; }
.tile:hover { border-color: var(--gold); }
.tile-front, .tile-back { position: absolute; inset: 0; padding: 14px; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.tile-front { display: flex; flex-direction: column; justify-content: space-between; font: 600 .98rem/1.3 var(--head); }
.tile-back { font-size: .84rem; line-height: 1.45; color: var(--pearl-dim); opacity: 0; transform: rotateX(-70deg); overflow: auto; }
.tile.flipped { border-color: var(--gold); background: var(--midnight-3); }
.tile.flipped .tile-front { opacity: 0; transform: rotateX(70deg); }
.tile.flipped .tile-back { opacity: 1; transform: none; }
.tile-ic { font-size: 1.5rem; line-height: 1; }
.who { display: grid; gap: 10px; margin-top: 12px; }
.who-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--midnight-2); border: 1px solid var(--line); }
.who-item b { display: block; font-weight: 600; }
.who-item small { color: var(--pearl-dim); font-size: .84rem; }
.minis { display: flex; gap: 12px; overflow-x: auto; padding: 12px 0 18px; margin-bottom: 18px; scroll-snap-type: x mandatory; }
.mini { flex: 0 0 210px; scroll-snap-align: start; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.mini-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.mini-name { font: 600 .95rem/1.3 var(--head); margin: 10px 0 2px; }
.mini-price { color: var(--gold); font-size: .88rem; margin: 0; }
.mini.enter { opacity: 0; transform: translateX(20px); }

/* Placeholder when there is no official photo */
.ph { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 50% 0%, var(--midnight-3), var(--midnight)); overflow: hidden; }
.ph span { font: 500 .75rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); text-align: center; padding: 0 16px; margin-bottom: 18%; }
.ph svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38%; fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--midnight); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s, opacity .35s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card.enter { opacity: 0; transform: translateY(16px) scale(.98); }
.card-media { position: relative; overflow: hidden; }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img { transform: scale(1.06); }
.card-chip { position: absolute; top: 12px; left: 12px; background: rgba(11,20,40,.8); backdrop-filter: blur(6px); color: var(--pearl); font: 600 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 2px; }
.card-dev { color: var(--steel); font-size: .88rem; margin-bottom: 12px; }
.card-price { font: 700 1.35rem/1.2 var(--head); color: var(--gold); margin-bottom: 14px; }
.card-price small { font: 500 .78rem var(--body); color: var(--pearl-dim); text-transform: uppercase; letter-spacing: .1em; }
.card-note { display: block; font: 400 .8rem/1.4 var(--body); color: var(--pearl-dim); margin-top: 4px; }
.facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts li { background: var(--midnight-2); border-radius: 10px; padding: 9px 10px; font-size: .84rem; line-height: 1.3; }
.facts span { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 3px; }
.card-more { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; font-size: .88rem; }
.card-more summary { cursor: pointer; color: var(--gold); list-style: none; }
.card-more summary::-webkit-details-marker { display: none; }
.card-more summary::after { content: " +"; }
.card-more[open] summary::after { content: " \2013"; }
.card-more p { margin: 10px 0 0; color: var(--pearl-dim); }
.card-more p span { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }

/* Filters */
.filters { margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 24px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 18px; }
.filter { display: grid; gap: 8px; }
.filter-label { font: 600 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: transparent; color: var(--pearl-dim); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 500 .92rem/1 var(--body); cursor: pointer; transition: all .25s var(--ease); }
.chip:hover { border-color: var(--gold); color: var(--pearl); }
.chip.active { background: var(--gold); color: var(--midnight); border-color: var(--gold); }
select, input[type="number"] { background: var(--midnight); color: var(--pearl); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font: 500 1rem var(--body); min-width: 200px; }
select:focus, input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.result-count { color: var(--pearl-dim); font-size: .92rem; }
.result-count strong { color: var(--gold); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.calc-inputs, .calc-out { background: var(--midnight-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .9rem; color: var(--pearl-dim); transition: all .25s var(--ease); }
.seg input:checked + span { background: var(--gold-soft); border-color: var(--gold); color: var(--pearl); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.field { display: grid; gap: 6px; margin-bottom: 16px; font-size: .92rem; color: var(--pearl-dim); }
.field input { width: 100%; min-width: 0; }
.field small { color: var(--steel); }
.fees { border-top: 1px solid var(--line); padding-top: 14px; }
.fees summary { cursor: pointer; color: var(--gold); margin-bottom: 14px; font-size: .92rem; }
.calc.offplan .ready-only { display: none; }
.out-label { font-size: .85rem; color: var(--pearl-dim); margin: 0 0 4px; }
.out-big { font: 700 clamp(2rem, 4.4vw, 3rem)/1.1 var(--head); color: var(--gold); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.out-mid { font: 700 1.35rem/1.2 var(--head); color: var(--pearl); font-variant-numeric: tabular-nums; }
.out-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--midnight); }
.bar span { display: block; height: 100%; transition: width .8s var(--ease); }
.bar-price { background: var(--steel); }
.bar-fees { background: var(--gold); }
.bar-legend { font-size: .85rem; color: var(--pearl-dim); margin-top: 10px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 10px; }
.dot:first-child { margin-left: 0; }
.dot-price { background: var(--steel); }
.dot-fees { background: var(--gold); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .out-grid { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq-group { color: var(--gold); margin: 40px 0 10px; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 600 1.08rem/1.4 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; color: var(--gold); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.answer { overflow: hidden; color: var(--pearl-dim); }
.answer p { padding-bottom: 20px; margin: 0; max-width: 46em; }
.faq-more { margin-top: 18px; color: var(--pearl-dim); }
.sources { margin: 0; padding-left: 1.2em; color: var(--pearl-dim); }
.sources li { margin-bottom: .5em; }

/* Footer */
.footer { padding: 110px 0 50px; text-align: center; background: radial-gradient(800px 400px at 50% 0%, var(--midnight-3), var(--midnight) 70%); border-top: 1px solid var(--line); }
.footer h2 { max-width: 760px; margin-inline: auto; }
.footer-inner > p { color: var(--pearl-dim); margin-bottom: 30px; }
.footer-inner > .credit { margin: 28px 0 0; font-size: .78rem; color: rgba(240, 230, 210, .5); }
.credit a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.credit a:hover { color: var(--gold); }
.contact-card { max-width: 460px; margin: 56px auto 28px; padding: 26px 28px; text-align: left; background: var(--midnight-2); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.contact-name { margin: 0; font: 700 1.3rem/1.2 var(--head); }
.contact-role { margin: 4px 0 18px; font-size: .92rem; color: var(--gold); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 7px 0; border-top: 1px solid var(--line); }
.contact-list span { flex: 0 0 84px; font-size: .78rem; line-height: 1.9; letter-spacing: .08em; text-transform: uppercase; color: var(--pearl-dim); }
.contact-list a { min-width: 0; overflow-wrap: anywhere; color: var(--pearl); text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
.disclaimer { max-width: 760px; margin: 0 auto; font-size: .8rem; color: var(--steel); }

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-in, .reveal, .portrait img, .book { opacity: 1 !important; transform: none !important; }
  .ring circle { stroke-dashoffset: 0; }
}
.map-link { color: var(--pearl); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.map-link::after { content: " \2197"; color: var(--gold); }
.area-projects { margin: 8px 0 18px; }
.show-all { display: block; margin: 28px auto 0; }
.show-all[hidden] { display: none; }
@media (max-width: 600px) {
  .d-inner { padding: 22px 18px 36px; }
  .d-hero-text { left: 18px; right: 18px; }
  .d-stats { gap: 8px; }
  .d-stats div { padding: 12px 10px; }
  .d-stats b { font-size: 1.05rem; }
  .d-stats small { display: block; font-size: .72rem; line-height: 1.3; margin-top: 4px; }
  .tile { min-height: 104px; }
  .tile-front { font-size: .9rem; }
  .tile-back { font-size: .78rem; padding: 10px; }
}
