/* ==========================================================
   I Support Tarun Chugh
   Tokens, base, components. Plain CSS, no build step.
   ========================================================== */

:root {
  /* Palette */
  --saffron: #EE6A1A;
  --saffron-deep: #C9530B;
  --marigold: #FFB31F;
  --saffron-tint: #FBEADB;
  --saffron-tint-2: #F6DCC4;
  --green: #1E4A3B;
  --green-soft: #2B5D4B;
  --ink: #16203A;
  --ink-soft: #4A5268;
  --paper: #FBFBF8;
  --paper-2: #F1F0EA;
  --line: #DEDCD3;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Anek Latin", "Anek Devanagari", "Arial Narrow", sans-serif;
  --font-hindi: "Anek Devanagari", "Mukta", sans-serif;
  --font-body: "Mukta", "Anek Devanagari", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.5vw, 4.75rem);

  /* Space */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);
  --max: 1200px;

  --radius-s: 6px;
  --radius-m: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.05; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
}

.section__title {
  font-size: var(--step-4);
  font-weight: 750;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede { font-size: var(--step-1); line-height: 1.55; }

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 var(--step-0)/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }

.btn--line { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .25s, box-shadow .25s;
}

.site-header.is-scrolled {
  background: rgba(251, 251, 248, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  line-height: 1;
}

.brand__mark {
  display: block;
  width: 34px;
  height: auto;
  aspect-ratio: 40 / 48;
  flex: none;
}

.brand__text { display: flex; flex-direction: column; gap: .15rem; }

.brand__pre {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .01em;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  font-variation-settings: "wdth" 78;
  letter-spacing: -0.005em;
  line-height: .9;
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  padding-block: .4rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .25s var(--ease);
}
.site-nav a:hover { background-size: 100% 2px; }

.site-nav .site-nav__cta {
  padding: .5rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
}
.site-nav .site-nav__cta:hover { background: #000; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(255, 179, 31, .22), transparent 70%),
    var(--saffron-tint);
  color: var(--ink);
  padding-top: calc(68px + clamp(1.5rem, .5rem + 3vw, 3.5rem));
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
}

/* Faint sun rays behind the portrait */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 48%;
  right: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter) + 190px);
  width: 1300px;
  height: 1300px;
  transform: translate(50%, -50%);
  background: repeating-conic-gradient(rgba(238, 106, 26, .09) 0 4deg, transparent 4deg 12deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 90%);
  mask-image: radial-gradient(closest-side, #000 15%, transparent 90%);
  pointer-events: none;
}

/* Amritsar skyline along the foot of the hero */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  height: clamp(70px, 2rem + 7vw, 140px);
  background: url("../assets/patterns/hero-skyline.svg") center bottom / auto 100% repeat-x;
  opacity: .13;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.5rem;
  padding: .4rem .9rem .4rem .7rem;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(22, 32, 58, .1);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 500;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(238, 106, 26, .18);
}

.hero__name {
  font-size: clamp(3.5rem, 1rem + 7vw, 7.25rem);
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  line-height: .9;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero__title {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  font-variation-settings: "wdth" 90;
  color: var(--saffron-deep);
}

.hero__roles {
  max-width: 32rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* Portrait with floating cards */
.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

.hero__portrait { margin: 0; }

/* The arch: a temple doorway, echoing Durgiana Tirath and Harmandir Sahib */
.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 20px 20px;
  overflow: hidden;
  background: var(--saffron);
  box-shadow: 0 0 0 8px var(--white), 0 30px 60px -30px rgba(120, 60, 10, .45);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem .6rem .6rem;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  box-shadow: 0 12px 32px -12px rgba(22, 32, 58, .28);
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -14px rgba(22, 32, 58, .35); }

.hero-card img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.hero-card__icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: var(--saffron-tint);
  color: var(--saffron-deep);
  flex: none;
}

.hero-card__text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-card__label { font-size: .75rem; color: var(--ink-soft); }
.hero-card__title { font-weight: 700; font-size: .95rem; }

.hero-card--yatra { left: -22%; bottom: 12%; }
.hero-card--ig { right: -14%; top: 14%; }

/* One orchestrated entrance: copy rises, arch opens, cards settle in */
@media (prefers-reduced-motion: no-preference) {
  .hero__note,
  .hero__name,
  .hero__title,
  .hero__roles,
  .hero__actions {
    animation: rise .8s var(--ease) both;
  }
  .hero__note { animation-delay: .05s; }
  .hero__name { animation-delay: .12s; }
  .hero__title { animation-delay: .22s; }
  .hero__roles { animation-delay: .3s; }
  .hero__actions { animation-delay: .38s; }

  .arch { animation: arch-open 1.1s .15s var(--ease) both; }
  .arch img { animation: settle 1.5s .15s var(--ease) both; }
  .hero-card { animation: card-in .7s var(--ease) both; }
  .hero-card--ig { animation-delay: .75s; }
  .hero-card--yatra { animation-delay: .9s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(.4em); }
  to { opacity: 1; transform: none; }
}
@keyframes arch-open {
  from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); }
  to { clip-path: inset(-40px -40px -80px -40px round 0); }
}
@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- Quote ---------- */

.quote { background: var(--paper); }

.quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.quote__block { margin: 0; }

.quote__hi {
  font-family: var(--font-hindi);
  font-size: var(--step-4);
  font-weight: 700;
  font-stretch: 85%;
  font-variation-settings: "wdth" 85;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

.quote__en {
  margin-top: 1.25rem;
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 32ch;
}

.quote__source {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--saffron);
  font-weight: 500;
}

.quote__image {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 9 / 14;
}
.quote__image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */

.about { background: var(--paper-2); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.about__body { max-width: 40rem; }

.roles {
  margin: 2.5rem 0 0;
  border-top: 2px solid var(--ink);
}

.roles__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.roles dt { font-weight: 700; }
.roles dd { margin: 0; color: var(--ink-soft); }

/* ---------- Yatra ---------- */

.yatra {
  background: var(--green);
  color: var(--paper);
}

.yatra__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.yatra__copy { max-width: 36rem; }

.yatra__kicker {
  font-family: var(--font-hindi);
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--marigold);
  margin-bottom: .5rem;
}

.yatra .section__title { margin-bottom: 1.5rem; }

.yatra__quote {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--green-soft);
  border-left: 4px solid var(--marigold);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: var(--step-1);
  line-height: 1.5;
}

.yatra__reel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.5rem, .3rem + 1vw, 1rem);
}

/* Stagger the three phone-shaped frames, like a strip of stories */
.reel { margin: 0; }
.reel:nth-child(2) { transform: translateY(2.5rem); }
.reel:nth-child(3) { transform: translateY(5rem); }

.reel__open,
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.reel__open { aspect-ratio: 9 / 16; }

.reel__open img,
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.reel__open:hover img,
.gallery button:hover img { transform: scale(1.04); }

.reel figcaption {
  margin-top: .6rem;
  font-size: var(--step--1);
  opacity: .85;
}

/* ---------- Moments ---------- */

.moments__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.moments__head p { max-width: 30rem; color: var(--ink-soft); }

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(9rem, 6rem + 8vw, 14rem);
  gap: clamp(.75rem, .5rem + 1vw, 1.25rem);
}

.gallery__item {
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  grid-row: span 2;
  min-height: 0;
}

.gallery__item--wide { grid-column: span 8; grid-row: span 2; }
.gallery__item--tall { grid-column: span 4; grid-row: span 3; }

.gallery button { flex: 1; min-height: 0; }

.gallery__cap {
  margin: .6rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.gallery__cap time { display: block; color: var(--ink); font-weight: 500; }

/* ---------- Follow ---------- */

.follow { background: var(--paper-2); }

.follow__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.follow__grid .section__title { margin-bottom: 1.25rem; }
.follow__grid > div p { max-width: 30rem; color: var(--ink-soft); }

.channels {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.channels a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem .25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .2s, padding .25s var(--ease);
}

.channels a:hover { background: var(--white); padding-inline: 1rem; }

.channels__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  font-variation-settings: "wdth" 85;
}

.channels__handle { color: var(--ink-soft); text-align: right; }

/* ---------- Contact ---------- */

.contact {
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(255, 179, 31, .18), transparent 70%),
    var(--saffron-tint);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}

.contact__intro { max-width: 30rem; }
.contact__intro .section__title { margin-bottom: 1.25rem; }

.contact__note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--saffron-tint-2);
  color: var(--ink-soft);
}
.contact__note a { color: var(--ink); text-underline-offset: .2em; }

/* The letter: an airmail envelope front */
.letter {
  position: relative;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  padding-top: clamp(4.5rem, 3rem + 4vw, 6rem);
  padding-bottom: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  border: 9px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    repeating-linear-gradient(-45deg,
      var(--saffron-deep) 0 14px, var(--paper) 14px 22px,
      var(--green) 22px 36px, var(--paper) 36px 44px) border-box;
  box-shadow: 0 1px 0 rgba(22, 32, 58, .06), 0 24px 48px -28px rgba(120, 60, 10, .35);
}

.letter__stamp {
  position: absolute;
  top: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  right: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  display: flex;
  align-items: center;
}

.stamp {
  width: 74px;
  height: auto;
  transform: rotate(3deg);
  filter: drop-shadow(0 1px 1.5px rgba(22, 32, 58, .25));
}

.stamp__text {
  font: 700 7.5px var(--font-body);
  letter-spacing: .12em;
  fill: var(--paper);
}

.postmark {
  order: -1;
  width: 118px;
  height: auto;
  margin-right: -38px;
  color: rgba(22, 32, 58, .42);
  position: relative;
  z-index: 1;
  transform: rotate(-8deg);
}
.postmark__ring { font: 600 7.4px var(--font-body); letter-spacing: .08em; fill: currentColor; }
.postmark__date { font: 700 11px var(--font-body); fill: currentColor; }

.letter__to {
  margin: 0 0 .35rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.letter__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, .9rem + 2.2vw, 2.4rem);
  font-weight: 700;
  font-variation-settings: "wdth" 82;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.letter__email:hover { color: var(--saffron-deep); }

.letter__to--phone { margin-top: 1.1rem; }

.letter__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, .9rem + 1.2vw, 1.7rem);
  font-weight: 700;
  font-variation-settings: "wdth" 82;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}
.letter__phone:hover { color: var(--saffron-deep); }

/* Address lines, like the ruled lines on an envelope */
.letter__rule {
  height: 18px;
  margin: 1rem 0 1.75rem;
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 9px);
  max-width: 70%;
}

.letter__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.contact__status { min-height: 1.6em; margin: .75rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #C9CDD8;
  padding-block: 3rem;
  font-size: var(--step--1);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 1.5rem 3rem;
}

.site-footer__brand {
  grid-column: 1 / -1;
  justify-self: start;
  padding-bottom: 1.75rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid rgba(251, 251, 248, .14);
  width: 100%;
  color: var(--paper);
}
.site-footer__brand .brand__mark { width: 42px; }
.site-footer__brand .brand__pre { font-size: .9rem; color: #C9CDD8; }
.site-footer__brand .brand__name { font-size: 1.8rem; }

.site-footer__disclaimer { max-width: 42rem; margin: 0; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-content: start;
}
.site-footer__links a { color: var(--white); text-underline-offset: .2em; }

.site-footer__copy { margin: 0; opacity: .7; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  overflow: visible;
}

.lightbox::backdrop { background: rgba(10, 14, 28, .88); }

.lightbox[open] { animation: lb-in .3s var(--ease); }

@keyframes lb-in {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: none; }
}

.lightbox__figure { margin: 0; text-align: center; }

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  margin-inline: auto;
  border-radius: var(--radius-s);
}

.lightbox__cap { margin-top: .9rem; font-size: var(--step-0); }

.lightbox__close-form { display: flex; justify-content: flex-end; margin-bottom: .6rem; }

.lightbox__close {
  min-height: 40px;
  padding: .4rem 1rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 500 var(--step--1)/1 var(--font-body);
  cursor: pointer;
}
.lightbox__close:hover { background: var(--paper); color: var(--ink); }

/* ---------- Legal pages ---------- */

.legal {
  padding-top: calc(68px + 3rem);
  padding-bottom: var(--section-y);
}

.legal__head {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--ink);
}

.legal__head .section__title { margin-bottom: .75rem; }
.legal__head p { color: var(--ink-soft); }

.legal__body { max-width: 44rem; }
.legal__body h2 {
  margin: 2.5rem 0 .75rem;
  font-size: var(--step-2);
  font-weight: 700;
  font-variation-settings: "wdth" 90;
}
.legal__body ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal__body li { margin-bottom: .35rem; }
.legal__body a { text-underline-offset: .2em; }

.site-header--solid {
  background: rgba(251, 251, 248, .94);
  box-shadow: 0 1px 0 var(--line);
}

/* ---------- Background art ----------
   Decorative SVGs behind flat sections. All sit on z-index -1 inside an
   isolated section, so they never cover content or catch clicks. */

.quote::before,
.about::before,
.yatra::before,
.moments::before,
.moments::after,
.follow::before,
.legal::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
}

/* Rangoli mandala haloing the rally poster */
.quote::before {
  top: 50%;
  right: calc(max(0px, (100vw - var(--max)) / 2) - 140px);
  width: 760px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background-image: url("../assets/patterns/mandala.svg");
  background-size: contain;
  opacity: .2;
}

/* Jaali lattice fading out from the heading side */
.about::before {
  inset: 0;
  background-image: url("../assets/patterns/jaali.svg");
  background-repeat: repeat;
  background-size: 48px 56px;
  opacity: .09;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 0% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 0% 40%, #000 10%, transparent 75%);
}

/* Yatra route through the villages, with Punjab wheat */
.yatra::before {
  inset: 0;
  background-image: url("../assets/patterns/yatra-route.svg");
  background-position: center;
  background-size: cover;
  opacity: .4;
}

/* Marigolds and diyas in opposite corners of the gallery */
.moments::before {
  top: 0;
  right: 0;
  width: clamp(240px, 32vw, 460px);
  aspect-ratio: 420 / 320;
  background-image: url("../assets/patterns/marigolds-top.svg");
  background-size: contain;
  opacity: .32;
}
.moments::after {
  bottom: 0;
  left: 0;
  width: clamp(220px, 28vw, 420px);
  aspect-ratio: 420 / 320;
  background-image: url("../assets/patterns/marigolds-bottom.svg");
  background-size: contain;
  opacity: .32;
}

/* Signal waves spreading from the channel list */
.follow::before {
  left: -40px;
  bottom: -30px;
  width: clamp(340px, 44vw, 640px);
  aspect-ratio: 640 / 600;
  background-image: url("../assets/patterns/signal.svg");
  background-size: contain;
  opacity: .16;
}

/* Jaali behind the legal page headings */
.legal { position: relative; isolation: isolate; overflow: hidden; }
.legal::before {
  top: 0;
  right: 0;
  width: min(60%, 640px);
  height: 460px;
  background-image: url("../assets/patterns/jaali.svg");
  background-repeat: repeat;
  background-size: 48px 56px;
  opacity: .08;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 100% 0%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 100% 0%, #000 15%, transparent 75%);
}

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

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem; }
  .hero-card--yatra { left: -6%; bottom: -5%; }
  .hero-card--ig { right: -8%; top: 6%; }

  .quote__grid,
  .about__grid,
  .yatra__grid,
  .follow__grid,
  .contact__grid,
  .moments__head { grid-template-columns: 1fr; }

  .quote__image { max-width: 320px; aspect-ratio: 4 / 5; }

  .hero::before { top: auto; bottom: -300px; right: 50%; width: 1000px; height: 1000px; }
  .quote::before { top: auto; bottom: -120px; right: -220px; width: 560px; transform: none; }
  .about::before { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 0% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 90% 50% at 0% 0%, #000 10%, transparent 75%); }
  .yatra::before { background-size: auto 38%; background-position: right bottom; opacity: .3; }

  .yatra__reel { padding-bottom: 5rem; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 11rem; }
  .gallery__item,
  .gallery__item--wide,
  .gallery__item--tall { grid-column: span 1; grid-row: span 2; }
  .gallery__item--wide { grid-column: span 2; }

  .site-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--paper);
    box-shadow: 0 12px 24px rgba(22, 32, 58, .12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity .2s, transform .25s var(--ease);
  }

  .site-nav a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-1);
    background: none;
  }

  .site-nav .site-nav__cta {
    margin-top: 1rem;
    padding: .9rem 1rem;
    text-align: center;
    border-bottom: 0;
  }

  .site-header.nav-open { background: var(--paper); }

  .brand__mark { width: 30px; }
  .brand__name { font-size: 1.3rem; }
}

@media (max-width: 680px) {
  .hero { padding-top: calc(68px + 1.25rem); padding-bottom: 3rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero__note { margin-bottom: 1rem; }
  .hero__title { font-size: 1.3rem; margin-top: .6rem; }
  .hero__roles { font-size: var(--step-0); margin-top: .75rem; }
  .hero__actions { margin-top: 1.5rem; gap: .6rem; flex-wrap: nowrap; }
  .hero__actions .btn { padding-inline: 1.1rem; font-size: .95rem; white-space: nowrap; }
  .hero__visual { width: min(60%, 250px); }
  .hero-card { padding: .45rem .75rem .45rem .45rem; gap: .55rem; }
  .hero-card img, .hero-card__icon { width: 36px; height: 36px; }
  .hero-card__title { font-size: .85rem; }
  .hero-card--yatra { left: -34%; bottom: 8%; }
  .hero-card--ig { right: -40%; top: 10%; }
}

@media (max-width: 520px) {
  .roles__row { grid-template-columns: 1fr; gap: .15rem; }
  .gallery { grid-auto-rows: 9rem; }
  .channels__handle { font-size: var(--step--1); }
  .postmark { display: none; }
  .stamp { width: 60px; }
  .letter__rule { max-width: 100%; }
  .letter { padding-inline: 1.25rem; }
  .letter__email { font-size: clamp(1.1rem, .35rem + 4.6vw, 1.45rem); overflow-wrap: normal; white-space: nowrap; }
  .letter__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
