/* ==========================================================================
   "Apple-style" top of /saansad: one huge line, lots of air, one large image,
   quiet controls. Light base (CLAUDE.md §11.9 bans dark-as-default); the only dark
   tile is the Watch band. Public Sans 800 + Mukta, no new typeface.

   - Scoped under .pg so it never leaks into other pages.
   - Motion only under html.rd-motion, transform/opacity only, reduced-motion safe.
   - Devanagari gets NO negative letter-spacing (it breaks conjuncts); only English is tightened.
   ========================================================================== */
.pg.ap-hero, .pg.ap-sec, .pg.ap-finder-sec, .pg.ap-watch { --ap-ink: #0b1b33; --ap-sub: #475569; --ap-blue: #1d4ed8; background: #fff; }

.ap-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .ap-wrap { padding: 0 32px; } }

/* The one huge line. The bible's 56px cap is lifted for ONE headline per section (needs SD approval). */
html .pg h1.ap-display {
  font-size: clamp(40px, 9.2vw, 92px) !important; font-weight: 800; letter-spacing: 0; line-height: 1.14; color: var(--ap-ink);
  text-wrap: balance; margin: 0 auto; max-width: 14ch;
}
html[data-lang="en"] .pg h1.ap-display { letter-spacing: -.035em; line-height: 1.04; max-width: 13ch; }
.pg h2.ap-h2 {
  font-size: clamp(34px, 7vw, 72px) !important; font-weight: 800; letter-spacing: 0; line-height: 1.14; color: var(--ap-ink);
  text-wrap: balance; margin: 0 auto; max-width: 16ch; text-align: center;
}
html[data-lang="en"] .pg h2.ap-h2 { letter-spacing: -.03em; line-height: 1.05; }
.ap-eyebrow { display: block; font-size: 15px; font-weight: 700; color: var(--ap-blue); margin: 0 0 14px; letter-spacing: .02em; }
html[data-lang="en"] .ap-eyebrow { text-transform: none; }
.ap-sub { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; color: var(--ap-sub); max-width: 34em; margin: 22px auto 0; text-wrap: balance; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.ap-hero { padding: 56px 0 0; text-align: center; overflow: hidden; }
@media (min-width: 900px) { .ap-hero { padding: 96px 0 0; } }
.ap-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 30px; }
.pg a.ap-pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--ap-blue); color: #fff !important; font: 700 17px var(--pst-font); text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.pg a.ap-pill:hover { background: #1e40af; }
.pg a.ap-pill:active { transform: scale(.97); }
.pg a.ap-textlink { font: 700 17px var(--pst-font); color: var(--ap-blue) !important; text-decoration: none; }
.pg a.ap-textlink::after { content: ' ›'; }
.pg a.ap-textlink:hover { text-decoration: underline; }

.ap-shot { margin: 56px auto 0; max-width: 1240px; padding: 0 16px; }
.ap-shot-frame { position: relative; border-radius: 28px; overflow: hidden; background: #0b2545; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -30px rgba(11, 37, 69, .45); }
@media (max-width: 700px) { .ap-shot-frame { aspect-ratio: 4 / 5; border-radius: 22px; } }
.ap-shot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ap-credit { margin: 12px 0 0; font-size: 14px; color: #64748b; text-align: center; }

/* Image grows into place as it enters (transform only), and settles with a slow scroll-linked zoom. */
.rd-motion .ap-hero .ap-shot-frame { transform: scale(.94); opacity: .6; animation: ap-grow 1s cubic-bezier(.2, .7, .2, 1) .15s forwards; }
@keyframes ap-grow { to { transform: none; opacity: 1; } }
@supports (animation-timeline: view()) {
  .rd-motion .ap-hero .ap-shot-frame { animation: none; transform: none; opacity: 1; }
  .rd-motion .ap-hero .ap-shot-frame img { animation: ap-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes ap-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
}
.rd-motion .ap-hero .ap-eyebrow, .rd-motion .ap-hero .ap-display, .rd-motion .ap-hero .ap-sub, .rd-motion .ap-hero .ap-links, .rd-motion .ap-hero .ap-facts {
  opacity: 0; transform: translateY(18px); animation: ap-in .9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.rd-motion .ap-hero .ap-display { animation-delay: .08s; }
.rd-motion .ap-hero .ap-sub { animation-delay: .18s; }
.rd-motion .ap-hero .ap-links { animation-delay: .28s; }
.rd-motion .ap-hero .ap-facts { animation-delay: .38s; }
@keyframes ap-in { to { opacity: 1; transform: none; } }

.ap-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 15px; color: #64748b; }
.ap-facts b { color: var(--ap-ink); font-weight: 800; }

/* ── Photo hero: chamber photo covers the whole section (behind the headline AND
   the finder / latest-sitting card below it), not just a band at the top ─────── */
.ap-hero--photo { position: relative; overflow: hidden; padding: 64px 0 40px; background: #0b1b33; }
.ap-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(28, 40, 51, .94) 0%, rgba(27, 79, 78, .82) 50%, rgba(27, 79, 78, .45) 100%), var(--hero-img) center/cover no-repeat, #1C2833;
}
@media (max-width: 700px) {
  .ap-hero-bg { background: linear-gradient(90deg, rgba(28, 40, 51, .94) 0%, rgba(27, 79, 78, .82) 50%, rgba(27, 79, 78, .45) 100%), var(--hero-img-sm, var(--hero-img)) center/cover no-repeat, #1C2833; }
}
.ap-hero-top { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.ap-hero--photo .ap-eyebrow { color: #fbbf24; }
.pg.ap-hero--photo h1.ap-display {
  color: #fff; margin: 0 auto 14px;
  font-size: clamp(28px, 5.4vw, 50px) !important; line-height: 1.2; max-width: 16ch;
}
.ap-hero--photo .ap-sub { color: rgba(255, 255, 255, .9); margin: 0 auto; font-size: clamp(15px, 1.8vw, 18px); max-width: 44em; }
.ap-hero--photo .ap-credit { position: relative; z-index: 2; margin: 8px 0 0; text-align: right; color: rgba(255, 255, 255, .65); font-size: 12px; }

.ap-hero-grid.sn-homegrid { position: relative; z-index: 2; margin-top: 32px; padding: 0 20px; gap: 16px; text-align: left; }
.ap-hero-finder.sn-card, .ap-hero-card.sn-latest { background: #fff; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .5); }
.ap-hero-finder.sn-card { position: relative; }

/* The results bar stays a single line in flow; the variable-height MP list itself lives in
   #sn-finder-modal (below), so loading it never shifts this page. */
.sn-finder-bar:empty { margin-top: 0; min-height: 0; }
.sn-finder-bar .sn-myarea { margin-top: 12px; }
.sn-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; }

/* ── MP finder results: a focused centre-screen overlay (never clipped by the hero's own
   overflow:hidden, which an anchored dropdown was). A solid, non-blurred scrim pulls focus
   onto a crisp white card — deliberately NOT glassmorphism (CLAUDE.md §11.9 bans frosted/
   blurred/translucent panels outright); the "glass" feel comes from elevation and motion only. */
.sn-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sn-modal[hidden] { display: none; }
.sn-modal-backdrop { position: absolute; inset: 0; background: rgba(11, 27, 51, .6); animation: sn-fade-in .2s ease both; }
@keyframes sn-fade-in { from { opacity: 0; } to { opacity: 1; } }
.sn-modal-panel { position: relative; z-index: 1; width: 100%; max-width: 620px; max-height: min(82vh, 680px); overflow-y: auto; background: #fff; border-radius: 22px; box-shadow: 0 50px 100px -24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); animation: sn-pop-in .22s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sn-pop-in { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.sn-modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; background: #fff; border-bottom: 1px solid #e2e8f0; border-radius: 22px 22px 0 0; }
.sn-modal-head h2 { font-size: 19px !important; font-weight: 800; margin: 0; }
.sn-modal-x { width: 36px; height: 36px; border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc; font-size: 20px; line-height: 1; color: #475569; cursor: pointer; }
.sn-modal-x:hover { background: #e2e8f0; }
.sn-modal-panel .sn-finder-out { padding: 18px 24px 24px; }
/* Two MP cards per row inside this panel, regardless of .sn-grid's usual column count elsewhere. */
.sn-modal-panel .sn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .sn-modal-panel .sn-grid { grid-template-columns: 1fr; } }
body.sn-modal-open { overflow: hidden; }

/* ── Finder card: floats up over the image ─────────────────────────────────── */
.ap-finder-sec { padding: 0 0 72px; }
.ap-finder { position: relative; z-index: 2; max-width: 760px; margin: -56px auto 0; padding: 0 16px; }
@media (max-width: 700px) { .ap-finder { margin-top: -28px; } }
.ap-finder-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: 26px; box-shadow: 0 24px 50px -24px rgba(11, 37, 69, .35); text-align: left; }
.pg .ap-finder-card h2 { font-size: 24px !important; font-weight: 800; color: var(--ap-ink); }
.ap-finder-card .pst-small { color: #64748b; margin: 4px 0 0; }
.ap-finder-card label { display: block; font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.ap-finder-card select { width: 100%; min-height: 52px; border: 1.5px solid #cbd5e1; border-radius: 14px; padding: 0 14px; font: 17px var(--pst-font); background: #fff; color: #0f172a; }
.ap-finder-card select:disabled { background: #f1f5f9; color: #64748b; }
.ap-finder-card .pst-fields { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 640px) { .ap-finder-card .pst-fields { grid-template-columns: 1fr 1fr; } }
.ap-finder-card .pst-btn { width: 100%; margin-top: 18px; min-height: 52px; border-radius: 999px; font-size: 17px; }
.ap-finder-card .sn-finder-out { margin-top: 16px; max-height: 320px; overflow: auto; }
.ap-finder-card .sn-finder-out a { color: var(--pst-n800); }

/* ── Big-headline section ───────────────────────────────────────────────────── */
.ap-sec { padding: 40px 0 96px; text-align: center; background: #f5f7fb !important; }
@media (min-width: 900px) { .ap-sec { padding: 96px 0 128px; } }
.ap-sec .pst-wrap { max-width: 1200px; }
.ap-sec .ap-sub { margin-bottom: 48px; }
.ap-sec .pst-hemi { text-align: left; }
.ap-sec .pst-link { display: inline-block; margin-top: 28px; }

/* ── Watch tile ─────────────────────────────────────────────────────────────── */
.pg.ap-watch { background: #fff; padding: 24px 0 96px; }
.ap-tile { position: relative; overflow: hidden; border-radius: 32px; background: #0b2545; color: #fff; display: grid; min-height: 520px; }
@media (min-width: 900px) { .ap-tile { min-height: 640px; } }
.ap-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.ap-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 37, 69, .45) 0%, rgba(11, 37, 69, .8) 45%, rgba(11, 37, 69, .96) 100%); }
.ap-tile-in { position: relative; z-index: 1; align-self: end; padding: 28px 24px 36px; }
@media (min-width: 900px) { .ap-tile-in { padding: 56px; max-width: 720px; } }
.pg .ap-tile h2 { font-size: clamp(32px, 6vw, 64px) !important; font-weight: 800; line-height: 1.14; color: #fff !important; max-width: 14ch; text-wrap: balance; }
html[data-lang="en"] .pg .ap-tile h2 { letter-spacing: -.03em; line-height: 1.05; }
.pg .ap-tile p { color: #dbe5f3; font-size: 18px; max-width: 34em; margin: 16px 0 0; }
.pg .ap-tile .ap-eyebrow { color: #93c5fd; }
.pg a.ap-play { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; min-height: 52px; padding: 0 26px 0 14px; border-radius: 999px; background: #fff; color: var(--ap-ink) !important; font: 700 17px var(--pst-font); text-decoration: none; transition: transform .2s ease; }
.pg a.ap-play:hover { transform: scale(1.03); }
.ap-play svg { flex: none; }
.ap-tile-note { font-size: 14px !important; color: #a9b9d1 !important; }

@media (prefers-reduced-motion: reduce) {
  .ap-hero *, .ap-watch * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Optional looping footage in the hero (SANSAD_HERO_VIDEO=true + files in public/video/). Poster-first, muted, no audio. */
.ap-shot-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* ==========================================================================
   rev 15 — "painted" display headlines, and the Apple treatment for the rest of /saansad.
   Real text (searchable, translatable, screen-reader friendly), never an image: Yatra One (already
   loaded site-wide; it has proper Devanagari AND Latin) + a rough-edge SVG filter + a brush stroke
   under the line. Filter and stroke are decoration only; if the filter is unsupported the text is
   simply clean Yatra One.
   ========================================================================== */
.pg { --ap-brush: 'Yatra One', 'Mukta', 'Public Sans', serif; --ap-swash: #dc2626; }

html .pg h1.ap-display,
html .pg h2.ap-h2,
html .pg .pst-sechead h2,
html .pg .ap-tile h2,
html .pg.pst-watch h2 {
  font-family: var(--ap-brush) !important; font-weight: 400 !important; font-synthesis: none;
  filter: url(#ap-brush); -webkit-text-stroke: .018em currentColor; text-align: center; margin-left: auto; margin-right: auto; text-wrap: balance;
}
html .pg h1.ap-display { font-size: clamp(38px, 8.6vw, 88px) !important; line-height: 1.22; letter-spacing: 0; max-width: 15ch; }
html[data-lang="en"] .pg h1.ap-display { letter-spacing: -.01em; line-height: 1.12; max-width: 14ch; }
html .pg h2.ap-h2, html .pg .pst-sechead h2, html .pg.pst-watch h2 { font-size: clamp(32px, 6.4vw, 64px) !important; line-height: 1.22; letter-spacing: 0; max-width: 18ch; }
html[data-lang="en"] .pg h2.ap-h2, html[data-lang="en"] .pg .pst-sechead h2 { letter-spacing: -.01em; line-height: 1.12; }
html .pg .ap-tile h2 { text-align: left; margin-left: 0; font-size: clamp(32px, 6vw, 60px) !important; line-height: 1.2; }

/* the brush stroke under each painted line */
html .pg h1.ap-display::after, html .pg h2.ap-h2::after, html .pg .pst-sechead h2::after, html .pg .ap-tile h2::after, html .pg.pst-watch h2::after {
  content: ''; display: block; width: min(62%, 360px); height: 28px; margin: 14px auto 0; background: var(--ap-swash);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15C30 6 72 12 122 8S232 3 292 9s90-1 106 5c-2 3-8 3-14 3-60 3-120 0-190 4S58 23 13 19C7 18 4 17 3 15Z'/%3E%3Cpath d='M30 4c50-3 120 0 180-1' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15C30 6 72 12 122 8S232 3 292 9s90-1 106 5c-2 3-8 3-14 3-60 3-120 0-190 4S58 23 13 19C7 18 4 17 3 15Z'/%3E%3Cpath d='M30 4c50-3 120 0 180-1' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
html .pg .ap-tile h2::after { margin-left: 0; --ap-swash: #fca5a5; }
html .pg.pst-section--navy .pst-sechead h2::after, html .pg.pst-watch h2::after { --ap-swash: #fca5a5; }
.pg h2.ap-h2::after, .pg .pst-sechead h2::after { transform-origin: left center; }
.rd-motion .pg h1.ap-display::after, .rd-motion .pg h2.ap-h2::after, .rd-motion .pg .pst-sechead h2::after {
  transform: scaleX(0); animation: ap-stroke .9s cubic-bezier(.3, .7, .2, 1) .35s forwards;
}
@keyframes ap-stroke { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .pg h1.ap-display::after, .pg h2.ap-h2::after, .pg .pst-sechead h2::after { animation: none !important; transform: none !important; } }

/* ── Section rhythm and surfaces ───────────────────────────────────────────── */
.pg.pst-section, .pg.pst-story, .pg.pst-houses { --ap-gap: 72px; padding-top: var(--ap-gap); padding-bottom: var(--ap-gap); }
@media (min-width: 900px) { .pg.pst-section, .pg.pst-story, .pg.pst-houses { --ap-gap: 120px; } }
.pg .pst-sechead { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.pg .pst-sechead .pst-eyebrow, .pg .pst-eyebrow { color: var(--ap-blue, #1d4ed8); text-transform: none; letter-spacing: .02em; font-size: 15px; }
.pg.pst-section--navy .pst-eyebrow { color: #93c5fd; }
.pg .pst-lede { font-size: clamp(17px, 2vw, 22px); line-height: 1.5; margin-left: auto; margin-right: auto; max-width: 34em; }
.pg .pst-sechead-row { display: block; text-align: center; margin-bottom: 48px; }
.pg .pst-sechead-row .pst-sechead { margin: 0 auto 20px; }

/* the people section becomes one rounded tile */
.pg.pst-section--navy { margin: 0 12px; border-radius: 28px; overflow: hidden; }
@media (min-width: 900px) { .pg.pst-section--navy { margin: 0 24px; border-radius: 40px; } }

.pg.pst-story { background: #fff; }
.pst-m { border-radius: 28px; border-color: #e8edf5; box-shadow: 0 24px 50px -32px rgba(11, 37, 69, .35); }
.pg .pst-step h3 { font-size: clamp(22px, 2.6vw, 30px) !important; }
.pst-house { border-radius: 28px; overflow: hidden; }

.pg.pst-track { background: #f5f7fb; }
.pst-tcard { border: 0; border-radius: 28px; padding: 28px; box-shadow: 0 1px 0 rgba(11, 37, 69, .04); transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) { .pst-tcard:hover { transform: translateY(-3px); box-shadow: 0 26px 46px -30px rgba(11, 37, 69, .4); } }
.pst-prev { border-radius: 18px; }
.pg .pst-tcard h3 { font-size: 24px !important; }

.pst-honest { background: #fff; border: 0; padding: 72px 0; }
.pst-honest-i { background: #f5f7fb; border-radius: 24px; padding: 22px; }
.pst-btn, .sn-btn, .pg .sn-btn { border-radius: 999px; min-height: 50px; padding-left: 28px; padding-right: 28px; }
.pst-btnrow { justify-content: center; }
.pg .pst-sechead + .pst-btnrow { margin-top: 0; }

.pg .ap-textlink, .pg a.pst-link { transition: color .2s ease; }

@media (max-width: 700px) {
  /* phone: tracker cards become a swipe rail, one card and a peek of the next */
  .pst-track-grid { display: flex; gap: 12px; margin: 0 -16px; padding: 4px 16px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pst-track-grid::-webkit-scrollbar { display: none; }
  .pst-tcard { flex: 0 0 86%; scroll-snap-align: start; padding: 22px; }
  .pst-honest-grid { gap: 12px; }
  .pg .pst-sechead { margin-bottom: 32px; }
  .pst-btnrow { flex-direction: column; align-items: stretch; }
  .pst-btnrow > * { width: 100%; text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .pst-tcard:active, .pg a.ap-pill:active, .pst-btn:active, .sn-btn:active { transform: scale(.98); }
}

/* ── Photo seat chart: dots over the real chamber ──────────────────────────── */
.pst-hemi-pan { border-radius: 28px; overflow: hidden; background: #0b2545; box-shadow: 0 30px 60px -30px rgba(11, 37, 69, .45); }
.pst-hemi:not(.pst-hemi--photo) .pst-hemi-pan { border-radius: 0; overflow: visible; background: none; box-shadow: none; }
.pst-hemi--photo .pst-seat circle { stroke: #fff; stroke-width: 1.3; paint-order: stroke; }
.pst-hemi--photo .pst-seat--empty circle { stroke: #fff; stroke-dasharray: 3 2.5; fill: rgba(255, 255, 255, .2); }
.pst-hemi--photo .pst-hemi-card { position: static; transform: none; width: auto; max-width: 440px; min-height: 120px; margin: 16px auto 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 14px 18px; }
.pst-hemi-honest { max-width: 640px; margin: 14px auto 0; font-size: 15px; color: #64748b; text-align: center; }
@media (max-width: 700px) {
  /* phone: pan the photograph sideways like a map instead of shrinking 275 dots to specks */
  .pst-hemi--photo .pst-hemi-pan { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 22px; }
  .pst-hemi--photo .pst-hemi-pan::-webkit-scrollbar { display: none; }
  .pst-hemi--photo .pst-hemi-svg { width: 820px; max-width: none; }
}
