:root {
  --paper: #ebebe8;
  /* faint paper grain, background surfaces only */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --white: #ffffff;
  --ink: #111111;
  --green: #1f6b40;
  --mint: #7fd6a2;
  --wa: #25d366;
  --muted: #4a4a44;

  --display: "Anton", "Noto Sans Telugu", sans-serif;
  --display-te: "Ramabhadra", "Noto Sans Telugu", sans-serif;
  --sans: "Archivo", "Noto Sans Telugu", system-ui, sans-serif;
  --te: "Noto Sans Telugu", sans-serif;
  --hand: "Timmana", "Noto Sans Telugu", sans-serif;   /* pen handwriting */
  --serif: "Noto Serif Telugu", "Noto Sans Telugu", serif;

  --header-h: 78px;
  --gutter: 56px;
}

/* English: same design, two plain Latin faces.
   Anton (the marquee face) for big statements, Archivo for everything else. No script or serif faces. */
:root[lang="en"] {
  --sans: "Archivo", system-ui, sans-serif;
  --te: "Archivo", system-ui, sans-serif;
  --display-te: "Anton", sans-serif;
  --hand: "Archivo", system-ui, sans-serif;
  --serif: "Archivo", system-ui, sans-serif;
}
:root[lang="en"] .rows { text-transform: uppercase; letter-spacing: .01em; }
:root[lang="en"] .intro-text,
:root[lang="en"] .problems-head h2,
:root[lang="en"] .how-head h2,
:root[lang="en"] .letter-head h2 { letter-spacing: .01em; }
:root[lang="en"] .card-claim h1 { font-family: var(--display-te); font-weight: 400; font-size: clamp(34px, 3vw, 46px); line-height: 1.12; letter-spacing: .01em; }
:root[lang="en"] .paper-line { font-size: 15.5px; font-weight: 500; }
:root[lang="en"] .letter p { font-size: 21px; line-height: 1.75; }
:root[lang="en"] .letter .letter-greet { font-size: 22px; font-weight: 600; }
:root[lang="en"] .sig-close { font-size: 17px; font-weight: 500; }
:root[lang="en"] .sig-name { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }   /* rotated paper and photos must never cause sideways scroll; clip keeps sticky working */
body { margin: 0; background: var(--grain), var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  background: var(--grain), var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.masthead-name { display: inline-flex; align-items: center; gap: 12px; min-width: 0; font-family: var(--display); font-size: 26px; letter-spacing: .02em; white-space: nowrap; }
.masthead-mark { width: 44px; height: 44px; flex-shrink: 0; }
.masthead-nav { position: relative; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 28px; font-family: var(--te); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--green); }

.wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s ease;
}
.wa-pill:hover { transform: translateY(-1px); }
.wa-pill-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.wa-pill-icon svg { width: 18px; height: 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; }

/* small laptops / landscape tablets: four links + the pill, slightly closer, and a slightly smaller logo + name, so nothing crowds */
@media (min-width: 901px) and (max-width: 1100px) {
  .masthead-nav, .nav-links { gap: 20px; }
  .masthead-name { font-size: 22px; gap: 10px; }
  .masthead-mark { width: 38px; height: 38px; }
}

/* menu jumps land below the fixed header (the honours board sets its own, larger offset for its medal) */
:where(#problems, #contact, #press) { scroll-margin-top: calc(var(--header-h) + 24px); }
/* "back to top" and the name link target <main>, which starts below the sticky header: offset by the header so they land at the very top */
#top { scroll-margin-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  height: clamp(720px, calc(100svh - var(--header-h)), 1000px);
}

.hero-label {
  position: absolute;
  z-index: 6;
  left: var(--gutter);
  top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--te);
  font-size: 14px;
  font-weight: 600;
}
.hero-label-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.hero-label-icon svg { width: 14px; height: 14px; }

/* Marquee rows */
.rows {
  position: absolute;
  left: 0; right: 0;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--display-te);
  font-size: clamp(56px, 7.2vw, 116px);
  line-height: 1.32;
  white-space: nowrap;
}
.row { overflow: hidden; }
.row.outline { color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
.row.band { background: var(--green); color: var(--paper); }
.track {
  display: inline-flex;
  will-change: transform;            /* own compositing layer: smooth on Chrome, Safari, Firefox */
  backface-visibility: hidden;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
/* the gap lives inside each copy, so moving by exactly half loops without a jump */
.track > span { flex: none; padding-right: .55em; }
.to-left  { animation-name: to-left;  animation-duration: 64s; }
.to-right { animation-name: to-right; animation-duration: 72s; }
@keyframes to-left  { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes to-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }

/* Portrait + stamp */
.portrait {
  --pw: min(42vw, 66svh, 640px);
  position: absolute;
  z-index: 3;
  width: var(--pw);
  left: calc(50% + 9vw);
  bottom: calc(var(--pw) * -0.1);
  transform: translateX(-50%);
  container-type: inline-size;
}
.portrait img {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.stamp {
  position: absolute;
  left: 22%;
  top: 73.6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.3cqw 3.7cqw 1.7cqw;
  border: .85cqw solid var(--green);
  border-radius: 2.3cqw;
  color: var(--green);
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 .5cqw var(--paper), inset 0 0 0 .85cqw var(--green);
  transform: rotate(-9deg);
  white-space: nowrap;
}
.stamp-en { font-family: var(--display); font-size: 9cqw; line-height: 1; letter-spacing: .06em; }
.stamp-te { font-family: var(--te); font-weight: 800; font-size: 3.4cqw; letter-spacing: .08em; margin-top: .7cqw; }
.stamp-te:empty { display: none; }

/* Cards */
.card { position: absolute; z-index: 5; bottom: 48px; }
.card-claim {
  left: var(--gutter);
  width: clamp(390px, 34vw, 480px);
  padding: 30px 30px 32px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
}
.card-claim h1 { font-family: var(--te); font-weight: 800; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.38; margin-bottom: 14px; }
.card-claim h1 span { color: var(--mint); }
.card-claim > p { font-family: var(--te); font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .78); margin-bottom: 16px; }
.card-claim > p b { color: #fff; font-weight: 700; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--te);
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.cta-icon svg { width: 20px; height: 20px; }

/* "Now" block inside the black card: what he advises on today */
.now { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 16px; margin-bottom: 24px; }
.now-head { font-family: var(--te); font-size: 15px; font-weight: 600; line-height: 1.6; color: var(--paper); margin-bottom: 12px; }
.now-tag { display: inline-block; padding: 1px 10px; margin-right: 4px; border-radius: 999px; background: var(--mint); color: var(--ink); font-size: 12.5px; font-weight: 700; vertical-align: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 12px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 999px; color: var(--paper); font-family: var(--te); font-size: 14px; font-weight: 600; }
.chips .chip-more { border-style: dashed; color: rgba(255, 255, 255, .8); font-weight: 500; }

/* ---------- Entrance motion ---------- */
@keyframes rise  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rise-x { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes slam {
  0%   { opacity: 0; transform: rotate(-9deg) scale(2.6); }
  55%  { opacity: 1; transform: rotate(-9deg) scale(.92); }
  75%  { transform: rotate(-9deg) scale(1.04); }
  100% { opacity: 1; transform: rotate(-9deg) scale(1); }
}
@keyframes emerge { from { opacity: 0; transform: scale(.82); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes jolt { 0%, 100% { transform: none; } 30% { transform: translate(2px, -1px); } 60% { transform: translate(-2px, 1px); } }

/* Everything starts hidden. Without JS it plays straight away; with JS it waits
   for the intro line to fly into the pill, then .hero gets .play. */
.row, .portrait, .hero-label, .card, .stamp { opacity: 0; }
:is(html:not(.js) .hero, .hero.play) .row { animation: emerge 1s cubic-bezier(.2, .7, .2, 1) forwards; }
:is(html:not(.js) .hero, .hero.play) .row-1 { animation-delay: .05s; }
:is(html:not(.js) .hero, .hero.play) .row-2 { animation-delay: .2s; }
:is(html:not(.js) .hero, .hero.play) .row-3 { animation-delay: .35s; }
:is(html:not(.js) .hero, .hero.play) .row-4 { animation-delay: .5s; }
:is(html:not(.js) .hero, .hero.play) .portrait { animation: rise-x 1.1s cubic-bezier(.2, .7, .2, 1) .4s forwards; }
:is(html:not(.js) .hero, .hero.play) .card { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .9s forwards; }
:is(html:not(.js) .hero, .hero.play) .stamp { animation: slam .5s cubic-bezier(.3, 1.4, .5, 1) 1.9s forwards; }
html:not(.js) .hero-label { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .9s forwards; }
.hero.play { animation: jolt .25s ease 2.15s 1; }

/* Intro line: big centred statement that shrinks into the black pill */
.intro-line { display: none; }
.js .intro-line {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(100%, calc(100svh - var(--header-h)));
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.intro-text {
  display: inline-block;
  max-width: 18em;
  text-align: center;
  font-family: var(--display-te);
  font-size: clamp(38px, 6vw, 92px);
  line-height: 1.3;
  transform-origin: center;
}
.intro-text em { font-style: normal; color: var(--green); display: block; }
.intro-big { display: block; font-size: 1.3em; line-height: 1.25; }
.intro-word { display: inline-block; opacity: 0; }

/* ---------- Responsive ---------- */

/* Tablet landscape / small laptops: same layout, tighter so card and stamp fit */
@media (max-width: 1180px) and (min-width: 901px) {
  .portrait { bottom: 0; }
  .stamp { top: 70%; }
  .card { bottom: 32px; }
  .card-claim { width: 380px; padding: 24px 24px 26px; }
  .card-claim h1 { font-size: 27px; margin-bottom: 10px; }
  .card-claim > p { font-size: 14.5px; line-height: 1.7; margin-bottom: 12px; }
  .now { padding-top: 12px; margin-bottom: 18px; }
  .now-head { font-size: 14px; margin-bottom: 10px; }
  .chips { gap: 6px; }
  .chips li { font-size: 13px; padding: 3px 10px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; --gutter: 16px; }
  .masthead-name { font-size: 20px; gap: 10px; }
  .masthead-mark { width: 36px; height: 36px; }
  .masthead-nav { gap: 10px; }
  .wa-pill { padding: 0; background: none; }
  .wa-pill-label { display: none; }
  .wa-pill-icon { width: 44px; height: 44px; }
  .wa-pill-icon svg { width: 22px; height: 22px; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1.5px solid var(--ink);
    border-radius: 18px;
    background: var(--paper);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; padding: 13px 14px; border-radius: 12px; font-size: 16px; }
  .nav-links a:hover { background: rgba(17, 17, 17, .06); }

  .hero {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 16px 0 28px;
  }
  .hero-label { position: relative; left: auto; top: auto; align-self: flex-start; margin: 0 var(--gutter) 12px; font-size: 13px; }
  /* upright tablets: all four rows, a little smaller so the card still fits */
  .rows { position: relative; top: auto; font-size: clamp(42px, 7.6vw, 72px); }

  .portrait {
    --pw: min(76vw, 420px);
    position: relative;
    left: auto; bottom: auto;
    transform: none;
    margin: -26vw auto 0;
    animation-name: rise;
  }
  .portrait img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%), linear-gradient(180deg, #000 70%, transparent 100%);
            mask-composite: intersect;
  }
  .stamp { left: 22%; top: 68.5%; }

  .card { position: relative; bottom: auto; margin: 0 var(--gutter); }
  .card-claim { left: auto; width: min(100% - 32px, 600px); margin: -46px auto 0; padding: 22px 20px 24px; }
  :is(html:not(.js) .hero, .hero.play) .portrait { animation-name: rise; }
  .card-claim h1 { font-size: 28px; }
  :root[lang="en"] .card-claim h1 { font-size: 34px; }
  .card-claim > p { font-size: 15px; }
}

/* upright tablets: slightly smaller portrait so all four rows + the card's WhatsApp button fit the first screen */
@media (min-width: 641px) and (max-width: 900px) {
  .portrait { --pw: min(56vw, 370px); }
}
/* phones: show only the two strongest rows (row 3: DRO, Addl. Joint Collector, ADM · row 4: state-level OSDs) */
@media (max-width: 640px) {
  .rows { font-size: clamp(42px, 11.5vw, 96px); }
  .row-1, .row-2 { display: none; }
}

/* ---------- Problems: "is this your problem?" ---------- */
.problems { position: relative; overflow: clip; }
.problems-track { position: relative; }
.stage { max-width: 1320px; margin: 0 auto; padding: 88px var(--gutter) 24px; }
.problems-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.problems-head h2 { font-family: var(--display-te); font-weight: 400; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.25; }
.problems-head p { font-family: var(--te); font-size: 16.5px; line-height: 1.7; color: var(--muted); margin-top: 8px; }

.problems-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.problems-col { display: flex; flex-direction: column; gap: 14px; }
.problem {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(17, 17, 17, .06), 0 14px 32px -20px rgba(17, 17, 17, .3);
  font-family: var(--te);
}
.problem-says { font-size: 16.5px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.problem-is { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--green); }
.problem-is svg { width: 16px; height: 16px; flex-shrink: 0; }
.problem-why { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(17, 17, 17, .18); font-size: 15px; line-height: 1.65; color: var(--muted); }

.stage-portrait { position: relative; align-self: end; justify-self: center; width: 100%; max-width: 480px; }
.stage-disc {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  transform: translateX(-50%) scale(.55);
  opacity: 0;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .5s ease;
}
.problems.arrived .stage-disc { transform: translateX(-50%) scale(1); opacity: 1; }
.stage-portrait img, .traveler {
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 98%);
          mask-image: linear-gradient(180deg, #000 74%, transparent 98%);
}
.stage-portrait img { position: relative; width: 100%; }
.traveler { position: fixed; z-index: 4; left: 0; top: 0; margin: 0; pointer-events: none; display: none; }

.cta-dark { background: var(--ink); color: var(--white); }

/* cards reveal as they come into view (JS adds .in) */
.js .problem { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .problems.choreo .col-left .problem { transform: translateX(-40px); }
.js .problems.choreo .col-right .problem { transform: translateX(40px); }
.js .problems .problem.in,
.js .problems.choreo .col-left .problem.in,
.js .problems.choreo .col-right .problem.in { opacity: 1; transform: none; }

/* Desktop choreography: section pins, photo lands in the middle, cards arrive left/right */
.problems.choreo .problems-track { height: 380svh; }
.problems.choreo .stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
.problems.choreo .problems-head { margin-bottom: 20px; transition: opacity .6s ease, transform .6s ease; }
.problems.choreo:not(.head-in) .problems-head { opacity: 0; transform: translateY(20px); }
.problems.choreo .stage-portrait { width: min(100%, calc((100svh - var(--header-h) - 210px) / 1.313)); }
.problems.choreo .stage-portrait img { opacity: 0; }

/* Desktop: bigger, easier-to-read problem cards (his note: "increase size of six boxes").
   While pinned, all six cards must fit one screen, so text steps with the space available:
   width sets how much the cards wrap, height how many lines fit. Each tier was measured to fit in both languages. */
@media (min-width: 1200px) {
  .stage { max-width: 1480px; }
  .problems-grid { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr) minmax(0, 1.35fr); gap: 24px; }
  .problems-col { gap: 16px; }
  .problem { padding: 20px 26px; border-radius: 22px; }
  .problem-says { font-size: 18.5px; line-height: 1.45; }
  .problem-is { font-size: 15px; margin-top: 10px; }
  .problem-is svg { width: 18px; height: 18px; }
  .problem-why { font-size: 15.5px; line-height: 1.55; margin-top: 12px; padding-top: 12px; }
}
/* typical laptop / desktop (1440 × 900 and up) */
@media (min-width: 1440px) and (min-height: 900px) {
  .problem-says { font-size: 20px; }
  .problem-is { font-size: 15.5px; }
  .problem-why { font-size: 16px; }
}
/* large monitors */
@media (min-width: 1600px) and (min-height: 1050px) {
  .problems-col { gap: 18px; }
  .problem { padding: 24px 30px; }
  .problem-says { font-size: 22px; }
  .problem-is { font-size: 16.5px; }
  .problem-why { font-size: 17px; }
}
/* narrower desktops: slimmer portrait column so the cards keep their width; English runs longer, so a step smaller */
@media (min-width: 1200px) and (max-width: 1399px) {
  .problems-grid { grid-template-columns: minmax(0, 1.45fr) minmax(240px, .7fr) minmax(0, 1.45fr); gap: 20px; }
  :root[lang="en"] .problem-says { font-size: 17.5px; }
  :root[lang="en"] .problem-why { font-size: 15px; }
}
/* shorter laptop screens: tighter head and cards so all six still fit while pinned */
@media (min-width: 1200px) and (max-height: 880px) {
  .problems.choreo .problems-head { margin-bottom: 12px; }
  .problems-head h2 { line-height: 1.1; }
  .problems-head p { margin-top: 4px; line-height: 1.55; }
  .problems-col { gap: 10px; }
  .problem { padding: 14px 22px; }
  .problem-says { font-size: 18px; line-height: 1.42; }
  .problem-is { font-size: 15px; margin-top: 7px; }
  .problem-why { font-size: 15.5px; line-height: 1.5; margin-top: 8px; padding-top: 8px; }
}
@media (min-width: 1200px) and (max-height: 800px) {
  .problems.choreo .problems-head { margin-bottom: 10px; }
  .problems.choreo .problems-head h2 { font-size: min(4.6vw, 7vh); }
  .problems.choreo .problems-head p { font-size: 15.5px; }
  .problems-col { gap: 8px; }
  .problem { padding: 12px 20px; }
  .problem-says { font-size: 17px; line-height: 1.4; }
  .problem-is { font-size: 14.5px; margin-top: 6px; }
  .problem-why { font-size: 14.5px; line-height: 1.45; margin-top: 7px; padding-top: 7px; }
}

/* Cards never get squeezed: 2 columns only when each card can be ~350px+, otherwise stack */
@media (max-width: 1199px) {
  .stage { padding-top: 64px; }
  .problems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; max-width: 900px; margin: 0 auto; }
  .problems-col { display: contents; }
  .stage-portrait { display: none; }
}
@media (max-width: 759px) {
  .problems-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 640px) {
  .stage { padding-top: 56px; }
  .problems-head { margin-bottom: 24px; }
  .problems-head h2 { font-size: 40px; }
  .problems-head p { font-size: 16.5px; }
  .problem { padding: 16px 18px; }
  .problem-says { font-size: 17px; }
}

/* ---------- How it works ---------- */
.how {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  border-radius: 40px;
  background: var(--green);
  color: var(--white);
}
/* on desktop the green disc grows to fill the screen, so the edge must be invisible */
.problems.choreo + .how {
  margin-top: -45svh;   /* slide up over the already-green stage so the heading arrives sooner */
  border-radius: 0 0 40px 40px;
  background: linear-gradient(180deg, transparent 0 45svh, var(--green) 45svh);
}
.how-inner { max-width: 1240px; margin: 0 auto; padding: 110px var(--gutter) 120px; }
.how-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.how-eyebrow { display: inline-block; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--mint); font-family: var(--te); font-size: 15px; font-weight: 600; }
.how-head h2 { font-family: var(--display-te); font-weight: 400; font-size: clamp(40px, 4.8vw, 72px); line-height: 1.25; margin-top: 16px; }
.how-head p { font-family: var(--te); font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, .82); margin-top: 10px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { position: relative; font-family: var(--te); }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 120px;
  right: -26px;
  width: 20px;
  border-top: 2px dashed rgba(255, 255, 255, .45);
}
.step-visual {
  position: relative;
  height: 240px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.step-when { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--mint); color: var(--ink); font-size: 14.5px; font-weight: 700; }
.step h3 { font-size: 24px; font-weight: 800; line-height: 1.4; margin: 12px 0 8px; }
.step p { font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, .82); }

/* step 1: a ruled sheet with what to write, in a pen hand */
.paper {
  width: 250px;
  padding: 18px 20px 20px;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(31, 107, 64, .2) 31px 32px), #fffef8;
  box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .5);
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
}
.paper-line { font-family: var(--hand); font-size: 17px; line-height: 32px; color: #1d3a8c; white-space: nowrap; }

/* step 2: the photo of that sheet, sent in a chat */
.chat {
  width: 240px;
  height: 196px;
  padding: 16px;
  border-radius: 18px;
  background: #ece5dd;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.chat-bubble { padding: 6px 6px 4px; border-radius: 12px 12px 3px 12px; background: #d9fdd3; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); transform-origin: bottom right; }
.chat-photo {
  width: 126px;
  height: 118px;
  padding: 16px 14px;
  border-radius: 8px;
  background: repeating-linear-gradient(180deg, transparent 0 21px, rgba(31, 107, 64, .18) 21px 22px), #fffef8;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.chat-photo span { height: 3px; border-radius: 2px; background: rgba(29, 58, 140, .65); }
.chat-photo span:nth-child(1) { width: 80%; } .chat-photo span:nth-child(2) { width: 58%; }
.chat-photo span:nth-child(3) { width: 92%; } .chat-photo span:nth-child(4) { width: 46%; }
.chat-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 4px; font-family: var(--te); font-size: 11px; color: #667781; }
.chat-meta svg { width: 17px; height: 11px; color: #8696a0; transition: color .3s ease; }

/* step 3: he calls you back */
.call {
  position: relative;
  width: 210px;
  height: 200px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--te);
}
.call img { position: relative; width: 66px; height: 66px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; margin-bottom: 8px; }
.call-ring { position: absolute; top: 28px; left: 50%; width: 66px; height: 66px; margin-left: -33px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; }
.call-name { font-size: 17px; font-weight: 700; }
.call-status { font-size: 12px; color: rgba(255, 255, 255, .65); }
.call-btn { width: 44px; height: 44px; margin-top: 10px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.call-btn svg { width: 20px; height: 20px; }

.how-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 72px; }
.how-cta .cta { font-size: 17px; padding: 7px 7px 7px 26px; }
.how-cta .cta-icon { width: 48px; height: 48px; }
.how-number { display: flex; align-items: baseline; gap: 10px; font-family: var(--te); font-size: 15.5px; color: rgba(255, 255, 255, .75); }
.how-number a { font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: .02em; color: var(--white); white-space: nowrap; }

/* reveal + little moments when each step comes into view */
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes buzz { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }

.js .step { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .step.in { opacity: 1; transform: none; }
.js .step:nth-child(2) { transition-delay: .15s; }
.js .step:nth-child(3) { transition-delay: .3s; }
.js .paper-line { clip-path: inset(0 100% 0 0); }
.js .step.in .paper-line { animation: write .6s ease-out forwards; }
.js .step.in .paper-line:nth-child(1) { animation-delay: .5s; }
.js .step.in .paper-line:nth-child(2) { animation-delay: .9s; }
.js .step.in .paper-line:nth-child(3) { animation-delay: 1.3s; }
.js .step.in .paper-line:nth-child(4) { animation-delay: 1.7s; }
.js .step.in .paper-line:nth-child(5) { animation-delay: 2.1s; }
.js .chat-bubble { opacity: 0; }
.js .step.in .chat-bubble { animation: pop .5s cubic-bezier(.3, 1.4, .5, 1) .9s forwards; }
.js .step.in .chat-meta svg { color: #53bdeb; transition-delay: 1.9s; }
.js .step.in .call-ring { animation: ring 1.6s ease-out 1.2s infinite; }
.js .step.in .call-btn { animation: buzz .7s ease 1.2s 3; }

/* Desktop: larger step label, heading and text for easier reading (cards keep their size) */
@media (min-width: 901px) {
  .step-when { font-size: 15px; padding: 3px 14px; }
  .step h3 { font-size: 28px; margin: 14px 0 10px; }
  .step p { font-size: 18.5px; line-height: 1.75; }
  .how-number { font-size: 16.5px; }
}
@media (max-width: 1179px) {
  .steps { grid-template-columns: 1fr; gap: 48px; max-width: 560px; margin: 0 auto; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 900px) {
  .how-inner { padding: 80px var(--gutter) 90px; }
  .how-head { margin-bottom: 44px; }
  .steps { gap: 44px; max-width: 520px; }
  .step-visual { height: 220px; }
  .how-cta { margin-top: 56px; }
}
@media (max-width: 640px) {
  .how { border-radius: 28px; }
  .how-head h2 { font-size: 38px; }
  .how-head p { font-size: 16.5px; }
  .step h3 { font-size: 22px; }
  .how-number { flex-direction: column; align-items: center; gap: 2px; }
}

/* ---------- Letter: in his own words ---------- */
.letter-sec { padding: 120px var(--gutter) 130px; }
.letter-head { text-align: center; margin-bottom: 52px; }
.letter-eyebrow { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-family: var(--te); font-size: 15px; font-weight: 600; }
.letter-head h2 { font-family: var(--display-te); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 1.2; margin-top: 14px; }

.letter-wrap { position: relative; max-width: 840px; margin: 0 auto; }
.letter {
  position: relative;
  padding: 104px 76px 60px;
  border-radius: 6px;
  background: #fffef8;
  box-shadow: 0 1px 0 rgba(17, 17, 17, .05), 0 34px 70px -34px rgba(17, 17, 17, .5);
  transform: rotate(-.6deg);
  font-family: var(--serif);
  color: #2a2a26;
}
.letter p { font-size: 22px; line-height: 1.95; margin-bottom: 22px; }
.letter .letter-greet { font-family: var(--hand); font-size: 28px; line-height: 1.4; color: #1d3a8c; margin-bottom: 14px; }

.letter-photo { position: absolute; top: -34px; right: -26px; width: 140px; margin: 0; padding: 8px 8px 22px; background: var(--white); box-shadow: 0 16px 30px -12px rgba(17, 17, 17, .45); transform: rotate(5deg); }
.letter-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 26%; }
.letter-photo .clip { position: absolute; top: -18px; left: 30px; width: 20px; height: 54px; border: 3px solid #9aa0a6; border-radius: 10px; z-index: 2; }

.letter-sign { display: flex; flex-direction: column; margin-top: 34px; }
.sig-close { font-family: var(--hand); font-size: 24px; color: #1d3a8c; }
.sig-name { font-family: var(--hand); font-size: 44px; line-height: 1.3; color: #1d3a8c; }
.sig-meta { font-family: var(--te); font-size: 17px; color: var(--muted); margin-top: 6px; }

/* letter arrives: sheet rises and settles, photo drops on, signature writes itself */
.js .letter { opacity: 0; transform: translateY(60px) rotate(-3deg); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.js .letter-wrap.in .letter { opacity: 1; transform: rotate(-.6deg); }
.js .letter-photo { opacity: 0; transform: translateY(-30px) rotate(14deg); transition: opacity .5s ease .7s, transform .7s cubic-bezier(.3, 1.4, .5, 1) .7s; }
.js .letter-wrap.in .letter-photo { opacity: 1; transform: rotate(5deg); }
.js .sig-name { clip-path: inset(0 100% 0 0); }
.js .letter-wrap.in .sig-name { animation: write 1.4s ease-out 1.3s forwards; }

/* ---------- In the news: him speaking up, on camera ----------
   Same head as the letter (ink pill + display heading); cards like the problem cards.
   Thumbnail first, the YouTube player loads only on play. */
.press { padding: 0 var(--gutter) 130px; }
.press-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.press-eyebrow { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--ink); color: var(--white); font-family: var(--te); font-size: 15px; font-weight: 600; }
.press-head h2 { font-family: var(--display-te); font-weight: 400; font-size: clamp(40px, 5vw, 76px); line-height: 1.2; margin-top: 14px; }
.press-head p { font-family: var(--te); font-size: 18px; line-height: 1.75; color: var(--muted); margin-top: 12px; }

.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1240px; margin: 0 auto; }
/* the launch of his service leads the section: one wide card, video beside its story */
.clips .vid-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.clips .vid-feature .clip-play, .clips .vid-feature .clip-frame { aspect-ratio: auto; height: 100%; min-height: 360px; }
.clips .vid-feature .clip-body { display: flex; flex-direction: column; justify-content: center; padding: 32px 36px; }
.clips .vid-feature .clip-body h3 { font-size: 26px; }
.vid {
  display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(17, 17, 17, .06), 0 20px 44px -26px rgba(17, 17, 17, .4);
  font-family: var(--te);
}
.clip-play, .clip-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--ink); }
.clip-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; }
.clip-play::after { content: ""; position: absolute; inset: 0; background: rgba(17, 17, 17, .08); }
.clip-btn {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--ink);
  box-shadow: 0 10px 30px rgba(17, 17, 17, .35);
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.clip-btn svg { width: 32px; height: 32px; margin-left: 4px; }
.clip-play:hover img { transform: scale(1.03); }
.clip-play:hover .clip-btn, .clip-play:focus-visible .clip-btn { transform: scale(1.08); background: var(--green); color: var(--white); }
.clip-play:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }

.clip-body { flex: 1; padding: 22px 24px 26px; }
.clip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.clip-source { font-family: var(--sans); font-size: 14.5px; font-weight: 600; color: var(--muted); }
.clip-source::before { content: "▶ "; font-size: .7em; color: #c4302b; vertical-align: .15em; }
.clip-tag { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--green); color: var(--white); font-size: 14.5px; font-weight: 700; }
.clip-body h3 { margin: 12px 0 8px; font-size: 21px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.clip-body p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.clip-body .clip-people { margin-top: 10px; font-size: 15px; line-height: 1.6; }
.clip-press { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.clip-press:hover { color: var(--ink); }
:root[lang="en"] .clip-body h3 { font-family: var(--sans); font-size: 20.5px; font-weight: 700; line-height: 1.35; }

/* below ~1180px: one column; the featured card stacks like the others */
@media (max-width: 1179px) {
  .clips { grid-template-columns: 1fr; max-width: 680px; gap: 28px; }
  .clips .vid-feature { display: flex; }
  .clips .vid-feature .clip-play, .clips .vid-feature .clip-frame { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .clips .vid-feature .clip-body { padding: 22px 24px 26px; }
  .clips .vid-feature .clip-body h3 { font-size: 21px; }
}
@media (max-width: 900px) {
  .press { padding-bottom: 100px; }
}
@media (max-width: 640px) {
  .press-head { margin-bottom: 36px; }
  .press-head p { font-size: 16.5px; }
  .vid { border-radius: 18px; }
  .clip-btn { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .clip-btn svg { width: 26px; height: 26px; }
  .clip-body { padding: 20px 20px 24px; }
  .clip-body h3 { font-size: 20.5px; }
  :root[lang="en"] .clip-body h3 { font-size: 20px; }
  .clip-body p { font-size: 16.5px; }
}

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: var(--white); font-family: var(--te); }
.foot-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 40px;
  align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-mark { width: 64px; height: 64px; flex-shrink: 0; }   /* logo E: engraved MJ, honours-board gold */
@media (max-width: 400px) {
  .foot-brand { gap: 12px; }
  .foot-mark { width: 48px; height: 48px; }   /* small phones: keep "M.Com., B.L." on one line */
}
.foot-brand > div { display: flex; flex-direction: column; }
.foot-name { font-family: var(--display); font-size: 24px; letter-spacing: .02em; }
.foot-te { font-size: 16px; font-weight: 600; margin-top: 2px; }
.foot-te .nw { white-space: nowrap; }   /* if it wraps, break at the dot, never inside "M.Com., B.L." */
.foot-meta { font-size: 15px; color: rgba(255, 255, 255, .7); }
.to-top { justify-self: center; display: inline-flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); font-size: 15px; font-weight: 600; color: var(--white); transition: box-shadow .2s ease; }
.to-top:hover { box-shadow: inset 0 0 0 1.5px var(--mint); }
.to-top-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; transition: transform .25s ease; }
.to-top-icon svg { width: 18px; height: 18px; }
.to-top:hover .to-top-icon { transform: translateY(-3px); }
.foot-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.foot-number { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }   /* the number never splits across lines */
.foot-base {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px var(--gutter) 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
}

/* note for visitors who knew the old site: its own line above the disclaimer and copyright */
.foot-moved { flex-basis: 100%; color: rgba(255, 255, 255, .78); }
.foot-moved .nw { white-space: nowrap; }

@media (max-width: 900px) {
  .letter-sec { padding: 90px var(--gutter) 100px; }
  .foot-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 52px; }
  .foot-contact { align-items: flex-start; }
  .to-top { justify-self: start; }
}
@media (max-width: 640px) {
  .letter-head { margin-bottom: 40px; }
  .letter { padding: 92px 22px 36px; }
  .letter p { font-size: 19px; line-height: 1.9; }
  :root[lang="en"] .letter p { font-size: 18.5px; }
  .letter .letter-greet { font-size: 24px; }
  .letter-photo { width: 104px; top: -26px; right: -8px; padding: 6px 6px 16px; }
  .sig-name { font-size: 36px; }
  .sig-meta { font-size: 15.5px; }
  .foot-base { flex-direction: column; }
}

/* ---------- Honours board: every post he held, like the name board in a government office ----------
   Wood frame, deep green panel, gold lettering. Four tiers climb mandal → division → district → state,
   each marked with its number, and the board closes on "Advocate · now".
   Two columns (tiers 1–2 | 3–4) when there is room, one column in order otherwise. */
.board {
  --b-wood: #3d2314;
  --b-panel: #0d2a1b;
  --b-gold: #d9b96e;
  --b-gold-soft: rgba(217, 185, 110, .72);
  --b-line: rgba(217, 185, 110, .32);
  --b-text: #f3ead6;
  --b-face: "Cinzel", "Noto Serif Telugu", serif;
  max-width: 1120px;
  margin: 150px auto 0;
  scroll-margin-top: calc(var(--header-h) + 90px);   /* nav link lands with the medal clear of the header */
}
.board-frame {
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5a3520, var(--b-wood) 45%, #2a160b 75%, #4a2a17);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 150, .16), 0 40px 80px -30px rgba(17, 17, 17, .6);
}
.board-panel {
  position: relative;
  padding: 92px 56px 40px;
  border: 2px solid #a6833e;
  outline: 1px solid rgba(166, 131, 62, .5);
  outline-offset: -9px;
  background:
    repeating-linear-gradient(178deg, rgba(255, 255, 255, .014) 0 3px, transparent 3px 9px),
    radial-gradient(80% 60% at 50% 0%, #15402a, transparent 70%),
    var(--b-panel);
  color: var(--b-text);
  text-align: center;
}

.board-medal { position: absolute; left: 50%; top: -66px; width: 112px; margin: 0; transform: translateX(-50%); }
.board-medal img {
  width: 112px; height: 132px; object-fit: cover; object-position: 50% 24%;
  border-radius: 50%;
  border: 4px solid #c9a95f;
  box-shadow: 0 0 0 3px var(--b-wood), 0 0 0 5px #8a6d33, 0 16px 30px rgba(0, 0, 0, .5);
}
.board-eyebrow { font-family: var(--b-face); font-size: 14px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--b-gold-soft); }
.board-title {
  margin: 10px auto 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.35;
  color: var(--b-text);
  text-wrap: balance;
}
.board-count {
  display: inline-grid; place-items: center;
  min-width: 1.6em; height: 1.6em; padding: 0 .3em;
  border-radius: 999px;
  background: var(--b-gold); color: var(--b-panel);
  font-family: var(--b-face); font-size: .6em; font-weight: 700;
  vertical-align: .35em;
}
.board-name span { white-space: nowrap; }   /* narrow screens break at the dot, never inside "B.L." */
:root[lang="te"] .board-eyebrow { font-family: var(--te); letter-spacing: .04em; font-size: 16px; }
.board-name { margin-top: 12px; font-family: var(--b-face); font-size: 15px; font-weight: 700; letter-spacing: .3em; color: var(--b-gold); }

.board-grid { display: flex; align-items: flex-start; gap: 0 52px; margin-top: 44px; text-align: left; }
.board-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 38px; }

/* tier header: number + level, then the post */
.tier { container-type: inline-size; }
.tier-head {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--b-line);
}
.tier-tag { font-family: var(--b-face); font-size: 13.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--b-gold); }
:root[lang="te"] .tier-tag > span:last-child { font-family: var(--te); letter-spacing: .02em; font-size: 15.5px; }
.tier-no { opacity: .65; }
.tier-head h4 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.35; color: var(--b-text); }

/* rows: post, then where. Stacked by default; post ···· place once the tier is wide enough */
.tier ul { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; font-family: var(--serif); font-size: 18.5px; line-height: 1.55; color: var(--b-text); }
.tier li em { display: block; font-style: normal; font-size: .92em; color: var(--b-gold-soft); }
/* (Telugu only: the English engraved capitals run too wide to sit side by side, so English stays stacked) */
@container (min-width: 440px) {
  :root[lang="te"] .tier li { display: flex; align-items: baseline; }
  :root[lang="te"] .tier li::after { content: ""; order: 1; flex: 1 1 18px; min-width: 18px; margin: 0 10px; border-bottom: 1px dotted var(--b-line); transform: translateY(-.3em); }
  :root[lang="te"] .tier li em { order: 2; flex: 0 1 auto; max-width: 48%; text-align: right; }
}
/* mandal tier lists places only: lay them out as a compact grid */
.lvl-1 ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(130px, 30%), 1fr)); gap: 10px 18px; }   /* 6 places: 3, 2 or 1 per row */
:root[lang="en"] .lvl-1 ul { grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 210px), 30%), 1fr)); }
.tier li { overflow-wrap: break-word; }
.lvl-1 li { display: block !important; padding-left: 16px; position: relative; }
.lvl-1 li::after { display: none; }
.lvl-1 li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--b-gold); transform: rotate(45deg); }

/* English: engraved capitals, like the board in the concept */
:root[lang="en"] .tier ul { font-family: var(--b-face); font-size: 16.5px; letter-spacing: .03em; line-height: 1.55; }
:root[lang="en"] .tier-head h4,
:root[lang="en"] .board-title { font-family: var(--b-face); letter-spacing: .02em; }
:root[lang="en"] .board-title { max-width: 26ch; }

.board-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 40px; padding-top: 20px;
  border-top: 2px solid #a6833e;
  text-align: left;
}
.board-now { order: 2; padding: 3px 14px; border-radius: 999px; background: var(--b-gold); color: var(--b-panel); font-family: var(--te); font-size: 15.5px; font-weight: 700; }
.board-adv { order: 1; font-family: var(--b-face); font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: .14em; color: var(--b-gold); }
:root[lang="te"] .board-adv { font-family: var(--serif); letter-spacing: 0; }
.board-bar { order: 3; flex-basis: 100%; font-family: var(--te); font-size: 16px; color: var(--b-gold-soft); }
:root[lang="en"] .board-bar { font-family: var(--b-face); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }

/* each tier's rows are painted on, one after another, as the tier scrolls into view */
@keyframes paint { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .js .board .tier li,
  .js .board .board-foot { clip-path: inset(0 100% 0 0); }
  .js .board .tier.in li { animation: paint .5s ease-out forwards; animation-delay: calc(.15s + var(--i, 0) * 70ms); }
  .js .board .board-foot.in { animation: paint .7s ease-out .5s forwards; }
}

/* two columns: mandals one per line, like the posts, so both columns run the same length */
@media (min-width: 1200px) {
  .lvl-1 ul, :root[lang="en"] .lvl-1 ul { grid-template-columns: 1fr; gap: 12px; }
}
/* one column below 1200px (two columns there would be too narrow for post ···· place): tiers stack 01 → 04 */
@media (max-width: 1199px) {
  .board { margin-top: 130px; max-width: 760px; }
  .board-grid { flex-direction: column; align-items: stretch; gap: 38px; }
  .board-col { display: contents; }
}
@media (max-width: 640px) {
  .board { margin-top: 110px; }
  .board-frame { padding: 8px; border-radius: 6px; }
  .board-panel { padding: 70px 18px 26px; outline-offset: -6px; }
  .board-medal { top: -52px; width: 88px; }
  .board-medal img { width: 88px; height: 104px; }
  .board-eyebrow { font-size: 12.5px; letter-spacing: .2em; }
  .board-name { font-size: 12.5px; letter-spacing: .16em; }
  .board-grid { margin-top: 32px; gap: 32px; }
  .tier-head h4 { font-size: 21.5px; }
  .tier ul { font-size: 17.5px; gap: 14px; }
  :root[lang="en"] .tier ul { font-size: 15.5px; }
  .lvl-1 ul { gap: 8px 12px; }
  .board-foot { margin-top: 32px; }
}

/* ---------- Language switch (floating, bottom-right, like a chat button) ---------- */
.lang {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35), 0 14px 34px -12px rgba(17, 17, 17, .55);   /* light ring keeps it visible over dark areas */
}
.lang-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--mint);
  transition: transform .35s cubic-bezier(.3, 1.3, .5, 1);
}
:root[lang="en"] .lang-thumb { transform: translateX(100%); }
.lang-btn {
  position: relative;
  min-width: 48px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .75);
  font-family: "Noto Sans Telugu", sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: color .25s ease;
}
.lang-btn[lang="en"] { font-family: "Archivo", sans-serif; font-size: 14px; letter-spacing: .04em; }
.lang-btn:hover { color: var(--white); }
.lang-btn[aria-pressed="true"] { color: var(--ink); }
@media (max-width: 640px) {
  .lang { right: 14px; bottom: 16px; padding: 4px; }
  .lang-thumb { top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); }
  .lang-btn { min-width: 44px; height: 38px; padding: 0 12px; }
}

/* Keep the footer's last line clear of the floating language switch (bottom-right) */
@media (min-width: 641px) {
  .foot-base { padding-right: max(var(--gutter), 170px); }   /* switch: 24px from the edge, ~120px wide */
}
@media (max-width: 640px) {
  .foot-base { padding-bottom: 96px; }                        /* switch: 16px from the bottom, ~46px tall */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; }
  .row, .portrait, .hero-label, .card, .stamp, .hero, .hero.play,
  :is(html:not(.js) .hero, .hero.play) :is(.row, .portrait, .card, .stamp) { animation: none !important; opacity: 1; }
  .js .intro-line { display: none; }
  .js .problem { opacity: 1; transform: none; transition: none; }
  .js .step, .js .chat-bubble { opacity: 1; transform: none; transition: none; animation: none; }
  .js .paper-line { clip-path: none; animation: none; }
  .js .letter, .js .letter-photo { opacity: 1; transition: none; }
  .js .letter { transform: rotate(-.6deg); }
  .js .letter-photo { transform: rotate(5deg); }
  .js .sig-name { clip-path: none; animation: none; }
  .lang-thumb { transition: none; }
  .js .step.in .call-ring, .js .step.in .call-btn { animation: none; }
  .stage-disc { opacity: 1; transform: translateX(-50%); transition: none; }
}

/* smallest phones (320–380px): logo + name + two round buttons only just fit, so tighten a little.
   Kept last so it wins over the general phone header rules above. */
@media (max-width: 380px) {
  .masthead { gap: 12px; }
  .masthead-name { font-size: 17px; gap: 8px; }
  .masthead-mark { width: 32px; height: 32px; }
}
