/* ============================================================================
   NorthBangalore.co.in — styles.css
   Design language: "urban atlas / aviation chart" — editorial, sourced, calm.
   Type: Newsreader (serif headings) + Manrope (UI/body) + IBM Plex Mono (data).
   ========================================================================== */

/* ---------- Tokens -------------------------------------------------------- */
:root{
  /* palette (disciplined subset) */
  --graphite:#20262b;
  --graphite-2:#2b333a;
  --navy:#12314c;            /* aviation navy — brand primary */
  --navy-2:#1b436a;
  --steel:#3f6b86;           /* secondary / map strokes */
  --forest:#274b3a;          /* verified/positive */
  --limestone:#e9e2d3;
  --ivory:#faf7f0;           /* page bg */
  --paper:#fffdf8;
  --bronze:#7d6136;          /* accent — text-safe on light (5.4:1) */
  --bronze-light:#c9a86b;    /* same accent, for dark backgrounds (6.8:1) */
  --amber:#c8862f;           /* airport / caution signal */
  --amber-light:#dda044;     /* amber for small text on dark surfaces */
  --terracotta:#b25a3c;      /* rare accent */

  /* semantic */
  --bg:var(--ivory);
  --surface:var(--paper);
  --text:#232a2f;
  --text-2:#4f5a61;
  --muted:#646d74;           /* 4.9:1 on ivory — was #7c858c at 3.5:1 */
  --on-dark:#9aa3a9;         /* body text on graphite (6.0:1) */
  --on-dark-2:#8b949a;       /* secondary text on graphite (5.0:1) */
  --line:#e0d9c9;
  --line-2:#d2c9b5;

  /* fact-confidence signal colours */
  --verified:var(--forest);
  --caution:var(--amber);
  --critical:#a23a2a;
  --pending:#756a56;         /* 5.2:1 on paper — was #8a7f6a at 3.9:1 */

  /* status colours — all >=4.5:1 on --surface at the sizes used */
  --st-operational:#2f6b4f;
  --st-construction:#8f5f13;
  --st-approved:#3f6b86;
  --st-proposed:#646d74;
  --st-unclear:#7d6136;

  --serif:"Newsreader",Georgia,"Times New Roman",serif;
  --sans:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;

  --wrap:1300px;
  --gutter:clamp(1rem,4vw,2.6rem);
  --sec-y:clamp(3.2rem,7vw,6rem);
  --radius:4px;
  --radius-lg:8px;
  --shadow-sm:0 1px 2px rgba(18,24,30,.05),0 3px 10px rgba(18,24,30,.05);
  --shadow-md:0 12px 34px rgba(18,24,30,.12);
  --shadow-lg:0 26px 70px rgba(18,24,30,.20);
  --ease:cubic-bezier(.2,.6,.35,1);
  --nav-h:66px;
}

/* ---------- Reset --------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
/* clears the sticky header only — was 120px when a 52px sub-nav sat under it */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:82px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;font-family:var(--sans);background:var(--bg);color:var(--text);font-size:16px;line-height:1.62;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  /* clip, not hidden: overflow-x:hidden turns body into a scroll container and
     can break the sticky header. clip contains the overflow without doing that. */
  overflow-x:hidden;overflow-x:clip}
img,svg{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit}
ul{margin:0;padding:0;list-style:none}
h1,h2,h3,h4{margin:0;line-height:1.1;color:var(--graphite);font-weight:600}
p{margin:0 0 1em}

/* ---------- Type ---------------------------------------------------------- */
h1,.display{font-family:var(--serif);font-weight:500;letter-spacing:-.01em}
h1{font-size:clamp(2.5rem,6vw,5rem)}
h2{font-family:var(--serif);font-weight:500;font-size:clamp(1.9rem,3.6vw,3rem);letter-spacing:-.005em}
h3{font-family:var(--serif);font-weight:600;font-size:clamp(1.25rem,2vw,1.6rem)}
.serif{font-family:var(--serif)}
.lede{font-size:clamp(1.08rem,1.5vw,1.32rem);line-height:1.55;color:var(--text-2)}
.eyebrow{font-family:var(--mono);font-size:.7rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;color:var(--steel);margin:0 0 1rem}
.kicker{font-family:var(--mono);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.muted{color:var(--muted)}
.mono{font-family:var(--mono)}

/* ---------- Layout -------------------------------------------------------- */
.wrap{width:min(100% - (var(--gutter)*2),var(--wrap));margin-inline:auto}
.section{padding-block:var(--sec-y)}
.section-head{margin-bottom:2.4rem;max-width:64ch}
/* The eyebrow labels the h2, so it must sit closer to it than the deck below —
   the global 1rem left it further away than the paragraph, reading as detached. */
.section-head .eyebrow{margin-bottom:.15rem}
.section-head h2{margin:.4rem 0}
.section-head p{margin:0;color:var(--text-2)}
.rule{height:1px;background:var(--line);border:0;margin:0}
.bg-navy{background:var(--navy);color:var(--limestone)}
.bg-navy h2,.bg-navy h3,.bg-navy h4{color:var(--paper)}
.bg-navy .eyebrow{color:#9db6c9}
.bg-graphite{background:var(--graphite);color:var(--limestone)}
.bg-graphite h2,.bg-graphite h3{color:var(--paper)}
.bg-limestone{background:var(--limestone)}

/* ---------- A11y ---------------------------------------------------------- */
.skip-link{position:absolute;left:1rem;top:-60px;z-index:3000;background:var(--navy);color:#fff;padding:.7rem 1.2rem;border-radius:var(--radius);transition:top .2s}
.skip-link:focus{top:1rem}
:focus-visible{outline:2px solid var(--steel);outline-offset:3px;border-radius:2px}
/* --steel only reaches 2.7:1 on the dark sections — below the 3:1 a focus
   indicator needs. Swap to amber wherever the ground is dark. */
.bg-navy :focus-visible,.bg-graphite :focus-visible,.site-footer :focus-visible,
.mm-card :focus-visible,.compare-tray :focus-visible,
.finder-out :focus-visible{outline-color:var(--amber-light)}
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- Buttons ------------------------------------------------------- */
.btn{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--sans);font-weight:600;font-size:.88rem;
  padding:.82rem 1.4rem;border-radius:var(--radius);border:1px solid transparent;letter-spacing:.01em;
  transition:background .25s var(--ease),color .25s,border-color .25s,transform .12s}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:var(--navy-2)}
.btn-outline{border-color:var(--graphite);color:var(--graphite)}
.btn-outline:hover{background:var(--graphite);color:var(--paper)}
.btn-light{border-color:rgba(250,247,240,.45);color:var(--paper)}
.btn-light:hover{background:var(--paper);color:var(--navy)}
.btn-sm{padding:.55rem 1rem;font-size:.8rem}
.btn-block{display:flex;width:100%;justify-content:center}
.link-arrow{font-family:var(--sans);font-weight:600;font-size:.85rem;display:inline-flex;align-items:center;gap:.4rem;color:var(--steel)}
.link-arrow::after{content:"→";transition:transform .2s var(--ease)}
.link-arrow:hover::after{transform:translateX(4px)}
.bg-navy .link-arrow,.bg-graphite .link-arrow{color:#9db6c9}

/* ---------- Source & status badges --------------------------------------- */
.badge{display:inline-flex;align-items:center;gap:.35rem;font-family:var(--mono);font-size:.6rem;font-weight:500;
  letter-spacing:.08em;text-transform:uppercase;padding:.22rem .5rem;border-radius:2px;border:1px solid var(--line-2);color:var(--text-2);white-space:nowrap}
.badge::before{content:"";width:6px;height:6px;border-radius:1px;background:currentColor}
.badge.developer{color:var(--steel)}
.badge.authority{color:var(--forest)}
.badge.editorial{color:var(--bronze)}
.badge.market{color:var(--navy)}
.badge.pending{color:var(--pending);border-style:dashed}
.status{display:inline-flex;align-items:center;gap:.4rem;font-family:var(--mono);font-size:.66rem;font-weight:500;letter-spacing:.06em;text-transform:uppercase}
.status::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.status[data-s="Operational"]{color:var(--st-operational)}
.status[data-s="Under Construction"]{color:var(--st-construction)}
.status[data-s="Approved"]{color:var(--st-approved)}
.status[data-s="Proposed"],.status[data-s="Announced"]{color:var(--st-proposed)}
.status[data-s="Delayed"]{color:var(--critical)}
.status[data-s="Status Unclear"]{color:var(--st-unclear)}

/* ---------- Header -------------------------------------------------------- */
.site-header{position:sticky;top:0;z-index:1000;background:rgba(250,247,240,.92);backdrop-filter:saturate(140%) blur(12px);
  -webkit-backdrop-filter:saturate(140%) blur(12px);border-bottom:1px solid transparent;transition:border-color .3s,box-shadow .3s}
.site-header.scrolled{border-bottom-color:var(--line);box-shadow:0 2px 16px rgba(18,24,30,.05)}
/* min-height, not height: a fixed height means any wrapping child overflows the
   bar instead of growing it. */
.topbar{min-height:var(--nav-h);display:flex;align-items:center;justify-content:space-between;gap:1.2rem;transition:min-height .3s var(--ease);
  width:min(100% - (var(--gutter)*2),1520px);margin-inline:auto}
.site-header.scrolled .topbar{min-height:58px}
.brand{display:flex;flex-direction:column;justify-content:center;min-height:44px;line-height:1}
.brand b{font-family:var(--serif);font-weight:600;font-size:1.28rem;color:var(--navy);letter-spacing:.01em}
.brand small{font-family:var(--mono);font-size:.54rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-top:3px}
.mainnav{display:flex;align-items:center;gap:clamp(.7rem,1.4vw,1.5rem)}
.mainnav a{font-size:.82rem;font-weight:500;color:var(--text);padding:.3rem 0;position:relative}
.mainnav a::after{content:"";position:absolute;left:0;bottom:-2px;height:1.5px;width:0;background:var(--steel);transition:width .25s var(--ease)}
.mainnav a:hover::after{width:100%}
.hdr-actions{display:flex;align-items:center;gap:.5rem}
/* flex:0 0 auto — without it the toggle is squeezed to 24px when the header
   runs out of room, which is exactly when it matters most. */
.icon-btn{flex:0 0 auto;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:var(--graphite)}
.icon-btn:hover{background:var(--limestone)}
.nav-toggle{display:none}
@media(max-width:1080px){.mainnav{display:none}.nav-toggle{display:inline-flex}}
/* Below this the two header CTAs wrap to two and three lines and force a 439px
   minimum page width — narrower than any phone. Both already live in the
   drawer, so drop them here and leave the toggle. */
@media(max-width:760px){.hdr-actions .btn{display:none}}

/* project sub-nav */

/* mobile drawer */
.drawer{position:fixed;inset:0 0 0 auto;width:min(86%,360px);background:var(--paper);z-index:2000;transform:translateX(100%);
  visibility:hidden;transition:transform .35s var(--ease),visibility .35s;overflow-y:auto;padding:1.4rem;box-shadow:var(--shadow-lg)}
.drawer.open{transform:none;visibility:visible}
/* Scoped to nav: as `.drawer a` this outranked .btn/.btn-primary (0,1,1 vs
   0,1,0) and repainted the drawer's two CTA buttons — graphite text on navy,
   serif face, block display and a stray bottom rule. */
.drawer nav a{display:block;font-family:var(--serif);font-size:1.4rem;padding:.55rem 0;border-bottom:1px solid var(--line);color:var(--graphite)}
.backdrop{position:fixed;inset:0;background:rgba(18,24,30,.5);z-index:1500;opacity:0;visibility:hidden;transition:opacity .3s}
.backdrop.open{opacity:1;visibility:visible}
.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}

/* ---------- Hero ---------------------------------------------------------- */
/* Full-bleed image plate with a solid card lifted over its lower edge — the
   bandrabay.co pattern. All type sits on --surface, so contrast never depends
   on which photograph is used. No padding-top: this header is sticky and
   therefore already in flow, unlike bandrabay's fixed one. */
.hero{padding-bottom:clamp(1.5rem,4vw,3.5rem)}
.hero-media{position:relative;background:var(--navy);overflow:hidden;
  /* Width-driven so the plate grows with the viewport, capped by height so it
     never eats a short screen. min() picks whichever limit binds first. */
  height:clamp(240px,min(42vw,56vh),640px);height:clamp(240px,min(42vw,56svh),640px)}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center 58%}
/* Depth at the lower edge so the card reads as lifted off the plate */
.hero-media::after{content:"";position:absolute;top:auto;right:0;bottom:0;left:0;height:55%;pointer-events:none;
  background:linear-gradient(0deg,rgba(12,22,34,.55),transparent)}
.hero-coords{position:absolute;top:clamp(.8rem,2vw,1.4rem);right:clamp(1rem,3vw,2rem);z-index:1;margin:0;
  font-family:var(--mono);font-size:clamp(.6rem,1.4vw,.68rem);letter-spacing:.16em;text-transform:uppercase;
  /* .74 keeps white text >=4.5:1 even where the sky behind is blown out */
  color:#fff;background:rgba(14,26,40,.74);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  padding:.4rem .75rem;border-radius:100px}

/* The lift lives on the wrapper, not the card, so it can't be swallowed by
   margin collapsing between the card and its container. */
.hero>.wrap{position:relative;z-index:2;margin-top:clamp(-11rem,-12vw,-2rem)}
/* Single centred column, narrower than the wrap, every child measure-capped so
   the centred text keeps a readable line length. */
.hero-card{max-width:56rem;margin-inline:auto;text-align:center;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  padding:clamp(1.6rem,3.4vw,3rem) clamp(1.4rem,3.2vw,3.4rem)}
.hero .eyebrow{color:var(--bronze);margin-bottom:.7rem}
.hero h1{color:var(--navy);margin:0;font-size:clamp(1.8rem,4vw,2.9rem);text-wrap:balance}
/* --amber is only 3.0:1 on paper; --bronze is its light-ground counterpart. */
.hero h1 em{font-style:normal;color:var(--bronze);display:block}
.hero-sub{font-size:clamp(1rem,1.5vw,1.22rem);color:var(--text-2);line-height:1.55;
  max-width:54ch;margin:clamp(.8rem,2vw,1.15rem) auto clamp(1.4rem,3vw,1.9rem)}
.hero-cta{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center}
.hero-cta .btn{flex:0 1 auto;min-width:13rem}

/* At-a-glance strip, ruled off beneath the CTAs */
.hero-facts{margin:clamp(1.4rem,3vw,2rem) 0 0;padding-top:clamp(1rem,2.4vw,1.4rem);border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;justify-content:center;gap:.9rem clamp(1.1rem,3vw,2.4rem);font-family:var(--mono)}
.hero-facts>div{display:flex;flex-direction:column;gap:.22rem}
.hero-facts dt{font-size:.56rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.hero-facts dd{margin:0;font-size:.72rem;letter-spacing:.03em;color:var(--graphite)}

@media(max-width:760px){.hero-cta .btn{flex:1 1 100%;min-width:0}}
@media(max-width:400px){
  .hero-media{height:clamp(200px,34vh,300px);height:clamp(200px,34svh,300px)}
  .hero>.wrap{margin-top:-2rem}
  .hero-card{border-radius:var(--radius)}
}
/* Short landscape viewports: shrink the plate so the card stays reachable */
@media(max-height:560px) and (orientation:landscape){
  .hero-media{height:clamp(160px,40vh,260px);height:clamp(160px,40svh,260px)}
  .hero>.wrap{margin-top:-2rem}
}
/* Ultra-wide: cap the plate so it doesn't become a letterbox strip */
@media(min-width:1800px){.hero-media{height:clamp(480px,40vh,620px);height:clamp(480px,40svh,620px)}}


/* ---------- Intro strip --------------------------------------------------- */
.intro-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.intro-grid h2{margin-bottom:1rem}
.intro-note{font-family:var(--mono);font-size:.72rem;color:var(--muted);border-left:2px solid var(--bronze);padding-left:.9rem}
@media(max-width:820px){.intro-grid{grid-template-columns:1fr}}

/* ---------- Signature atlas ---------------------------------------------- */
.atlas{position:relative}
.atlas-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:start}
.atlas-sticky{position:sticky;top:calc(var(--nav-h) + 1rem);height:fit-content}
.map-frame{border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--graphite-2);background:var(--graphite);box-shadow:var(--shadow-md);position:relative}
/* A fixed min-height combined with an aspect-ratio implies a min-WIDTH
   (380 * 4/4.2 = 362px), which the grid track cannot shrink below — that alone
   forced the whole page to 380px minimum. Scale the floor with the viewport. */
#atlas-map{width:100%;aspect-ratio:4/4.2;min-height:clamp(260px,80vw,380px);background:var(--graphite)}
.leaflet-container{background:var(--graphite)!important;font-family:var(--sans)!important}
.map-legend{display:flex;flex-wrap:wrap;gap:.8rem;padding:.8rem;font-family:var(--mono);font-size:.64rem;color:var(--text-2);border-top:1px solid var(--line);background:var(--surface)}
.map-legend span{display:inline-flex;align-items:center;gap:.35rem}
.map-legend i{width:9px;height:9px;border-radius:50%}
.map-cap{font-size:.74rem;color:var(--muted);margin-top:.7rem}
.atlas-steps{display:flex;flex-direction:column;gap:.9rem}
/* Active step is emphasised by elevation, not by dimming its neighbours —
   fading the inactive steps drops their body text to ~2.8:1. */
.atlas-step{background:transparent;border:1px solid var(--line);border-left:3px solid var(--line-2);border-radius:var(--radius);padding:1.2rem 1.3rem;
  transition:border-color .3s,box-shadow .3s,background .3s var(--ease),transform .3s var(--ease)}
.atlas-step.active{background:var(--surface);border-left-color:var(--amber);border-left-width:4px;padding-left:calc(1.3rem - 1px);box-shadow:var(--shadow-md)}
.atlas-step.active .n{color:var(--st-construction)}
.atlas-step .n{font-family:var(--mono);font-size:.66rem;color:var(--steel);letter-spacing:.1em;transition:color .3s}
.atlas-step h3{font-size:1.3rem;margin:.2rem 0 .4rem}
.atlas-step .mat{font-family:var(--mono);font-size:.62rem;text-transform:uppercase;letter-spacing:.08em;color:var(--bronze)}
.atlas-step p{font-size:.92rem;color:var(--text-2);margin:.5rem 0 .6rem}
.atlas-step .facts{display:grid;gap:.25rem;font-size:.8rem;color:var(--text-2)}
.atlas-step .facts b{color:var(--graphite);font-weight:600}
.atlas-places{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1rem}
.atlas-places li{font-family:var(--mono);font-size:.66rem;background:var(--surface);border:1px solid var(--line);border-radius:100px;padding:.3rem .65rem;color:var(--text-2)}
@media(max-width:860px){.atlas-grid{grid-template-columns:1fr}.atlas-sticky{position:relative;top:0;margin-bottom:1.4rem}}

/* ---------- Micro-markets ------------------------------------------------- */
.mm-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.3rem}
/* Typographic cards — no photography. Content runs top-down and the actions are
   pushed to the foot with margin-top:auto so every card in a row ends level. */
.mm-card{display:flex;flex-direction:column;padding:1.4rem 1.45rem 1.35rem;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);transition:box-shadow .3s var(--ease),transform .3s var(--ease),border-color .3s var(--ease)}
.mm-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--line-2)}
@media (prefers-reduced-motion:reduce){.mm-card:hover{transform:none}}
.mm-card .tag{font-family:var(--mono);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--bronze);margin-bottom:.5rem}
.mm-card h3{color:var(--navy);font-size:1.35rem;margin-bottom:.45rem}
.mm-card p{font-size:.88rem;color:var(--text-2);margin:0 0 1rem}
.mm-meta{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:1.1rem}
.mm-meta span{font-family:var(--mono);font-size:.6rem;letter-spacing:.05em;padding:.24rem .5rem;border:1px solid var(--line-2);border-radius:2px;color:var(--muted)}
.mm-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:auto}
.mm-compare{font-family:var(--sans);font-size:.72rem;font-weight:600;color:var(--text-2);
  border:1px solid var(--line-2);border-radius:var(--radius);padding:.5rem .8rem;
  transition:background .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease)}
.mm-compare:hover{border-color:var(--steel);color:var(--text)}
.mm-compare[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:var(--paper)}
.mm-compare[aria-pressed="true"]::before{content:"✓ ";font-weight:700}
.mm-compare[aria-pressed="true"]:hover{background:var(--navy-2);border-color:var(--navy-2);color:var(--paper)}
@media(max-width:1080px){.mm-grid{grid-template-columns:repeat(2,1fr)}}

/* ---------- Why matters --------------------------------------------------- */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.why-card{padding:1.4rem 0;border-top:2px solid var(--navy)}
.why-card .badge{margin-bottom:.7rem}
.why-card h3{font-size:1.3rem;margin-bottom:.5rem}
.why-card p{font-size:.92rem;color:var(--text-2);margin:0}
@media(max-width:1080px){.why-grid{grid-template-columns:repeat(2,1fr)}}

/* ---------- Market pulse -------------------------------------------------- */
.pulse-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.pulse-cell{background:var(--surface);padding:1.4rem}
.pulse-cell .k{font-family:var(--mono);font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.pulse-cell .v{font-family:var(--serif);font-size:1.3rem;color:var(--pending);margin:.4rem 0 .3rem;display:flex;align-items:center;gap:.5rem}
.pulse-cell .v .dot{width:8px;height:8px;border-radius:50%;background:var(--pending)}
.pulse-cell .note{font-size:.78rem;color:var(--text-2);margin:0}
@media(max-width:900px){.pulse-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.pulse-grid{grid-template-columns:1fr}}

/* ---------- Infrastructure tracker --------------------------------------- */
.infra-filter{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.6rem}
.infra-filter button{display:inline-flex;align-items:center;min-height:40px;font-family:var(--mono);font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;padding:.45rem .95rem;border:1px solid var(--line-2);border-radius:100px;color:var(--text-2);
  transition:background .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease)}
.infra-filter button.active,.infra-filter button:hover{background:var(--graphite);color:var(--paper);border-color:var(--graphite)}
.infra-list{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.infra-row{background:var(--surface);padding:1.4rem 1.5rem;display:grid;grid-template-columns:1.5fr 2fr auto;gap:1.5rem;align-items:start}
.infra-row .cat{font-family:var(--mono);font-size:.64rem;letter-spacing:.08em;text-transform:uppercase;color:var(--steel);margin-bottom:.3rem}
.infra-row h3{font-size:1.15rem;margin-bottom:.5rem}
.infra-row .auth{font-size:.78rem;color:var(--muted)}
.infra-row p{font-size:.9rem;color:var(--text-2);margin:0 0 .6rem}
.infra-row .rel{font-size:.82rem;color:var(--text-2);border-left:2px solid var(--line-2);padding-left:.7rem}
.infra-meta{display:flex;flex-direction:column;gap:.5rem;align-items:flex-end;text-align:right;min-width:150px}
.infra-conf{font-family:var(--mono);font-size:.64rem;color:var(--muted);max-width:22ch}
.infra-checked{font-family:var(--mono);font-size:.62rem;color:var(--muted)}
/* Three columns stop fitting well before the old 860px cut — drop the meta
   rail onto its own row first, then collapse fully. */
@media(max-width:1150px){
  .infra-row{grid-template-columns:1fr 1.4fr;gap:1.1rem 1.5rem}
  .infra-meta{grid-column:1/-1;min-width:0;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;
    text-align:left;gap:.6rem 1.1rem;border-top:1px solid var(--line);padding-top:.85rem}
  .infra-conf{max-width:none}
}
@media(max-width:860px){.infra-row{grid-template-columns:1fr}.infra-meta{align-items:flex-start;text-align:left}}

/* ---------- Finder -------------------------------------------------------- */
.finder{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.5rem,4vw,3rem);align-items:start}
.finder-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:clamp(1.4rem,3vw,2rem);box-shadow:var(--shadow-sm)}
.field{margin-bottom:1.1rem}
.field label{display:block;font-size:.8rem;font-weight:600;color:var(--text-2);margin-bottom:.4rem}
.field select,.field input{width:100%;padding:.7rem .8rem;border:1px solid var(--line-2);border-radius:var(--radius);font-family:var(--sans);font-size:.92rem;background:var(--paper);color:var(--text)}
.field select:focus,.field input:focus{outline:none;border-color:var(--steel);box-shadow:0 0 0 3px rgba(63,107,134,.14)}
.chip-row{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{display:inline-flex;align-items:center;min-height:40px;font-size:.8rem;padding:.5rem .95rem;border:1px solid var(--line-2);border-radius:100px;color:var(--text-2);
  transition:background .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease)}
.chip:hover{border-color:var(--steel);color:var(--text)}
.chip[aria-pressed="true"]{background:var(--navy);color:var(--paper);border-color:var(--navy)}
.chip[aria-pressed="true"]:hover{background:var(--navy-2);border-color:var(--navy-2);color:var(--paper)}
.finder-out{background:var(--graphite);color:var(--limestone);border-radius:var(--radius-lg);padding:clamp(1.4rem,3vw,2rem);min-height:280px}
.finder-out h3{color:var(--paper)}
.finder-placeholder{color:var(--on-dark);font-size:.92rem}
.finder-result{background:var(--graphite-2);border:1px solid #3a434a;border-radius:var(--radius);padding:1rem 1.1rem;margin-bottom:.8rem;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.finder-result h4{color:var(--paper);font-family:var(--serif);font-size:1.15rem;margin:0 0 .2rem}
.finder-result .why{font-size:.8rem;color:#aeb6bc;margin:0}
.finder-result .match{font-family:var(--mono);font-size:.7rem;color:var(--amber-light);white-space:nowrap}
@media(max-width:820px){.finder{grid-template-columns:1fr}}

/* ---------- Compare ------------------------------------------------------- */
.compare-tray{position:fixed;left:50%;bottom:1rem;transform:translate(-50%,140%);z-index:1200;background:var(--graphite);color:var(--paper);
  border-radius:100px;padding:.55rem .6rem .55rem 1.3rem;display:flex;align-items:center;gap:1rem;box-shadow:var(--shadow-lg);
  visibility:hidden;transition:transform .35s var(--ease),visibility .35s;width:min(94%,540px);justify-content:space-between}
.compare-tray.show{transform:translate(-50%,0);visibility:visible}
.compare-tray .c-count{font-size:.85rem}
.compare-modal{position:fixed;inset:0;z-index:2400;background:rgba(18,24,30,.6);backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;padding:1rem}
.compare-modal.open{display:flex}
.compare-panel{background:var(--paper);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:min(96%,1000px);max-height:88vh;overflow:auto;padding:1.6rem}
.compare-panel .head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.ctable{width:100%;border-collapse:collapse;font-size:.86rem;min-width:520px}
.ctable th,.ctable td{padding:.7rem .8rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.ctable thead th{background:var(--navy);color:var(--paper);font-family:var(--sans);font-weight:600}
.ctable tbody th{font-family:var(--mono);font-size:.68rem;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.ctable td .badge{margin-top:.3rem}

/* ---------- Person -------------------------------------------------------- */
.person{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
/* The inset vignette that used to sit here existed only to make the name plate
   legible over the photo; with the plate gone it was an unexplained shadow. */
.person-portrait{border-radius:var(--radius-lg);overflow:hidden;background:var(--limestone);border:1px solid var(--line-2);max-width:360px}
.person-portrait picture{display:block}
.person-portrait img{width:100%;aspect-ratio:4/5;object-fit:cover;filter:grayscale(.15) contrast(1.02)}
.person-name{font-family:var(--serif);font-weight:500;font-size:clamp(1.7rem,3vw,2.3rem);line-height:1.05;color:var(--navy);margin:0}
.person-role{font-size:clamp(.98rem,1.4vw,1.1rem);color:var(--text-2);margin:.5rem 0 1.4rem}

/* Verified facts as a ruled register rather than loose chips */
.person-stats{margin:0;padding:1.05rem 0;border-block:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:1rem clamp(1.2rem,3.2vw,2.6rem);font-family:var(--mono)}
.person-stats>div{display:flex;flex-direction:column;gap:.3rem}
.person-stats dt{font-size:.56rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.person-stats dd{margin:0;font-size:.78rem;letter-spacing:.03em;color:var(--graphite)}

.person-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.3rem;margin-top:1.6rem}
@media(max-width:820px){.person{grid-template-columns:1fr}.person-portrait{max-width:280px}}

/* ---------- Editorial ----------------------------------------------------- */
.art-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.art-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;transition:box-shadow .3s,transform .3s}
.art-card:hover{box-shadow:var(--shadow-md);transform:translateY(-3px)}
.art-card .thumb{aspect-ratio:16/10;overflow:hidden}
.art-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.art-card:hover .thumb img{transform:scale(1.05)}
.art-body{padding:1.2rem 1.3rem 1.4rem;display:flex;flex-direction:column;flex:1}
.art-body .cat{font-family:var(--mono);font-size:.64rem;letter-spacing:.08em;text-transform:uppercase;color:var(--steel);margin-bottom:.4rem}
.art-body h3{font-size:1.2rem;margin-bottom:.6rem}
.art-body .foot{margin-top:auto;font-family:var(--mono);font-size:.68rem;color:var(--muted)}
@media(max-width:1000px){.art-grid{grid-template-columns:repeat(2,1fr)}}
@media (prefers-reduced-motion:reduce){.art-card:hover{transform:none}.art-card:hover .thumb img{transform:none}}

/* ---------- Small-screen carousels ---------------------------------------
   Four card grids swap from a stacked column to a snap-scrolling row, so a
   phone shows one card at a time instead of a very long vertical list. Declared
   after all four grids so it wins on source order at equal specificity.
   Note: the atlas observer in script.js re-roots itself to the scroller at this
   same breakpoint, otherwise every step intersects at once and the active node
   (and the map fly-to) becomes arbitrary. Keep the two values in step. */
@media(max-width:640px){
  .mm-grid,.atlas-steps,.why-grid,.art-grid{
    display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:1rem;
    scroll-snap-type:x mandatory;scroll-padding-inline:0;padding-bottom:1rem;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:none}
  .mm-grid::-webkit-scrollbar,.atlas-steps::-webkit-scrollbar,
  .why-grid::-webkit-scrollbar,.art-grid::-webkit-scrollbar{display:none}
  .mm-card,.atlas-step,.why-card,.art-card{flex:0 0 84%;scroll-snap-align:start}
  /* these two carry no card background, so give them a little breathing room */
  .why-card{padding-top:1.1rem}
  .atlas-step{margin:0}
}

/* ---------- Report CTA ---------------------------------------------------- */
.report{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1.5rem,4vw,3rem);align-items:center}
.report-form{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1.2rem}
.report-form input{flex:1;min-width:220px;padding:.8rem .9rem;border:1px solid rgba(250,247,240,.3);background:rgba(255,255,255,.06);color:var(--paper);border-radius:var(--radius);font-size:.92rem}
.report-form input::placeholder{color:rgba(250,247,240,.6)}
.report-form input:focus{outline:none;border-color:var(--amber);box-shadow:0 0 0 3px rgba(200,134,47,.3)}
.report ul{display:grid;gap:.5rem;margin-top:1rem}
.report li{font-size:.9rem;color:rgba(250,247,240,.85);padding-left:1.3rem;position:relative}
.report li::before{content:"→";position:absolute;left:0;color:var(--amber-light)}
@media(max-width:820px){.report{grid-template-columns:1fr}}

/* ---------- FAQ ----------------------------------------------------------- */
.faq-item{border-bottom:1px solid var(--line)}
.faq-q{width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem 0;font-family:var(--serif);font-size:clamp(1.1rem,1.7vw,1.35rem);color:var(--graphite);
  transition:color .2s var(--ease)}
.faq-q:hover{color:var(--navy)}
.faq-q:hover .pm::before,.faq-q:hover .pm::after{background:var(--amber)}
.faq-q[aria-expanded="true"]{color:var(--navy)}
.faq-q .pm{flex:0 0 auto;width:22px;height:22px;position:relative}
.faq-q .pm::before,.faq-q .pm::after{content:"";position:absolute;background:var(--steel);transition:transform .3s}
.faq-q .pm::before{top:10px;left:1px;right:1px;height:2px}
.faq-q .pm::after{left:10px;top:1px;bottom:1px;width:2px}
.faq-q[aria-expanded="true"] .pm::after{transform:scaleY(0)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s var(--ease)}
.faq-a p{padding-bottom:1.2rem;color:var(--text-2);max-width:80ch;margin:0}

/* ---------- Person modal (Jithuu Sangram verified record) ----------------
   Treated as an archival record rather than a bio: a charted navy head, a
   numbered register of verified fields, and the unconfirmed fields drawn as
   literal blanks. The design carries the interest so the copy never has to
   overstate what is actually known about a real person. */
.person-modal{position:fixed;inset:0;z-index:2500;background:rgba(18,24,30,.62);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  display:none;align-items:center;justify-content:center;padding:clamp(.6rem,2vw,1.4rem)}
.person-modal.open{display:flex}
.person-panel{position:relative;background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  width:min(96%,940px);max-height:92vh;max-height:92svh;overflow:auto;overscroll-behavior:contain}
.person-close{position:absolute;top:.7rem;right:.7rem;z-index:3;color:var(--paper);
  background:rgba(9,14,20,.42);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.person-close:hover{background:rgba(9,14,20,.72)}

/* --- Head --------------------------------------------------------------- */
.pm-head{position:relative;background:var(--navy);color:var(--paper);
  padding:clamp(1.5rem,4vw,2.4rem) clamp(1.3rem,3.4vw,2.4rem);
  display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr);gap:clamp(1.1rem,3vw,2rem);align-items:center}
/* Chart-paper grid, echoing the aviation-chart language of the atlas */
.pm-head::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(0deg,rgba(250,247,240,.05) 0 1px,transparent 1px 40px),
             repeating-linear-gradient(90deg,rgba(250,247,240,.05) 0 1px,transparent 1px 40px);
  mask-image:linear-gradient(180deg,#000,transparent 85%);-webkit-mask-image:linear-gradient(180deg,#000,transparent 85%)}
.pm-head>*{position:relative;z-index:1}
.pm-head .eyebrow{color:#9db6c9;margin-bottom:.5rem}
.pm-portrait{margin:0;border:1px solid rgba(250,247,240,.25);border-radius:var(--radius);overflow:hidden}
.pm-portrait img{width:100%;aspect-ratio:4/5;object-fit:cover;filter:grayscale(.15) contrast(1.02)}
.pm-name{margin:0;color:#fff;font-family:var(--serif);font-weight:500;line-height:1;letter-spacing:-.015em;
  font-size:clamp(1.9rem,4.4vw,2.9rem)}
.pm-name em{font-style:normal;color:var(--amber-light)}
.pm-legal{margin:.7rem 0 .25rem;font-family:var(--mono);font-size:.64rem;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(250,247,240,.66)}
.pm-role{margin:0 0 1.1rem;font-size:.96rem;color:rgba(250,247,240,.92);max-width:38ch}
.btn-paper{background:var(--paper);color:var(--navy)}
.btn-paper:hover{background:#fff;color:var(--navy-2)}

/* --- Body --------------------------------------------------------------- */
.pm-body{padding:clamp(1.4rem,3.4vw,2.2rem) clamp(1.3rem,3.4vw,2.4rem) clamp(1.6rem,3.4vw,2.4rem)}
.pm-sec+.pm-sec{margin-top:clamp(1.8rem,4vw,2.6rem);padding-top:clamp(1.5rem,3.4vw,2.2rem);border-top:1px solid var(--line)}
.pm-sec h3{font-size:clamp(1.15rem,2.4vw,1.5rem);margin:.55rem 0 .5rem}
.pm-sec>p{font-size:.92rem;color:var(--text-2);max-width:62ch}
.pf-seal{display:inline-flex;align-items:center;gap:.45rem;font-family:var(--mono);font-size:.6rem;
  letter-spacing:.16em;text-transform:uppercase;color:var(--st-operational)}
.pf-seal::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}

.pf-record{list-style:none;margin:1.1rem 0 0;padding:0;border-top:1px solid var(--line)}
.pf-record li{display:grid;grid-template-columns:2.2rem minmax(0,9.5rem) minmax(0,1fr);gap:.3rem clamp(.7rem,2vw,1.4rem);
  padding:.85rem .6rem;margin-inline:-.6rem;border-bottom:1px solid var(--line);align-items:baseline;
  transition:background .2s var(--ease)}
.pf-record li:hover{background:var(--bg)}
.pf-record .n{font-family:var(--mono);font-size:.6rem;letter-spacing:.1em;color:var(--bronze)}
.pf-record .k{font-family:var(--mono);font-size:.63rem;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.pf-record .v{font-size:.95rem;color:var(--text)}
.pf-record .v .muted{font-size:.86rem}

/* Footer entry that opens the modal, matching the surrounding links */
.as-link{font:inherit;color:inherit;padding:0;text-align:left}
.as-link:hover{color:var(--paper)}

@media(max-width:720px){
  .pm-head{grid-template-columns:1fr;text-align:left}
  .pm-portrait{max-width:132px}
  .pf-record li{grid-template-columns:2rem minmax(0,1fr);gap:.15rem .7rem}
  .pf-record .k,.pf-record .v{grid-column:2}
}

/* ---------- Trust strip --------------------------------------------------- */
.trust{display:flex;flex-wrap:wrap;gap:1.4rem;justify-content:center;padding:1.4rem 0;border-block:1px solid var(--line);font-family:var(--mono);font-size:.72rem}
.trust a{color:var(--muted);transition:color .2s var(--ease)}
.trust a:hover{color:var(--navy)}

/* ---------- Footer -------------------------------------------------------- */
.site-footer{background:var(--graphite);color:var(--on-dark);padding-top:clamp(3rem,6vw,5rem)}
.site-footer a{color:var(--on-dark);transition:color .2s var(--ease)}
.site-footer a:hover{color:var(--paper)}
.foot-top{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:2rem;padding-bottom:2.4rem;border-bottom:1px solid #363d43}
.foot-brand b{font-family:var(--serif);font-size:1.4rem;color:var(--paper)}
.foot-brand small{font-family:var(--mono);font-size:.58rem;letter-spacing:.16em;text-transform:uppercase;color:var(--bronze-light);display:block;margin:.3rem 0 1rem}
.foot-brand p{font-size:.86rem;max-width:34ch}
.foot-col h4{font-family:var(--mono);color:var(--limestone);font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:.9rem}
.foot-col li{padding:.26rem 0;font-size:.86rem}
.foot-disc{padding:1.6rem 0;border-bottom:1px solid #363d43;font-size:.76rem;color:var(--on-dark-2);line-height:1.6}
.foot-bottom{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1.5rem 0;font-size:.78rem;color:var(--on-dark-2)}
.foot-bottom .l{display:flex;gap:1.1rem;flex-wrap:wrap}
@media(max-width:1080px){.foot-top{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:600px){.foot-top{grid-template-columns:1fr 1fr}.foot-brand{grid-column:1/-1}}

/* ---------- Back to top + toast ------------------------------------------ */
.to-top{position:fixed;right:1.1rem;bottom:1.1rem;width:46px;height:46px;border-radius:50%;background:var(--navy);color:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:var(--shadow-md);opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .3s,transform .3s;z-index:900}
.to-top.show{opacity:1;visibility:visible;transform:none}
.toast{position:fixed;left:50%;bottom:1.3rem;transform:translate(-50%,150%);background:var(--graphite);color:var(--paper);padding:.85rem 1.3rem;border-radius:var(--radius);box-shadow:var(--shadow-lg);font-size:.88rem;z-index:2600;transition:transform .35s var(--ease);max-width:90%}
.toast.show{transform:translate(-50%,0)}

/* ---------- Reveal / motion ---------------------------------------------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.reveal.in{opacity:1;transform:none}
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
  .reveal{opacity:1;transform:none}
}
.no-js .reveal{opacity:1;transform:none}
