/* ==========================================================================
   Mahendra Kadia — design system (shared template, from the Thota Vaikuntam site)
   Plain CSS, no preprocessor. Sections:
   1 tokens · 2 fonts/reset · 3 typography · 4 layout · 5 header/nav
   6 footer · 7 components (section-head, grid, card, figure, feature, split,
   bleed, hero, btn, quote, prevnext, parrot) · 8 reveal/motion · 9 lightbox
   10 utilities/a11y · 11 dark theme
   ========================================================================== */

/* ------------------------------------------------------------ 1 tokens */
:root {
  --ff: "Montserrat", system-ui, sans-serif;
  --fw: 300;
  --fs-meta: max(11px, 1.15rem);
  --fs-nav: max(11px, 1.25rem);
  --fs-foot: max(11px, 1rem);
  --track: .16em;

  --white: #fff;
  --ink: #010101;
  --ink-2: #151515;
  --grey-1: #585858;
  --grey-2: #737373;
  --hairline: #EBEBEB;
  --bg-soft: #F6F6F6;
  --red: #EC951A;          /* the amber of the Lines of Flight title page */
  --ochre: #C99A3B;
  --vermilion: #D3452A;
  --indigo: #1E2A5A;
  --gold-hw: #C9A96E;

  --container: 1660px;
  --gutter: 80px;
  --gap-x: 40px;
  --gap-y: 50px;
  --cap-gap: 20px;
  /* vertical rhythm (owner spacing review, 2026-09-20) — every page uses these and nothing else:
     section block 60 + 60 = 120 between the content of two sections and above the footer line;
     --gap-y 50 under a section head and between grid rows; --cap-gap 20 image → caption;
     eyebrow → heading 1.2em (13px); heading → its sub-line .6em (12px); page title → first
     block 1.2em (25px); h2 → text .8em (16px); paragraph → whatever follows --para (23px);
     closing strip (prev/next, notes, back links): 60 → hairline → 30 */
  --section-y: 60px;
  --para: 2.32rem;
  --row-h: 420px;
  --feature: 640px;
  --header-h: 115px;

  --ease-reveal: cubic-bezier(.18, 1, .21, 1);
  --t-reveal: 900ms;
  --ease-header: cubic-bezier(.65, .06, .19, .96);
  --t-header: 600ms;
  --t-hover: 500ms;
  --t-menu: 900ms;
  --ease-menu: cubic-bezier(.015, .85, .225, 1);
}
@media (max-width: 1280px) { :root { --gutter: 40px; } }
@media (max-width: 1024px) { :root { --gutter: 30px; --header-h: 90px; } }
@media (max-width: 768px)  { :root { --row-h: 340px; } }
@media (max-width: 460px)  { :root { --gutter: 15px; } }

/* ------------------------------------------------------------ 2 fonts / reset */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/assets/fonts/montserrat-300-latin.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 9.75px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);   /* anchors and keyboard focus stop below the sticky header (WCAG 2.4.11) */
}
body {
  margin: 0;
  font-family: var(--ff);
  font-weight: var(--fw);
  font-size: 1.45rem;
  line-height: 3.1rem;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
picture img { width: 100%; }
a { color: inherit; text-decoration: none; }
/* running-text links underline; :where() keeps specificity at 0,0,1 so any classed link (.card__link,
   .exh-list__link, .site-footer a …) can opt out with a single class rule */
:where(p) a, :where(li:not(.nav__list li):not(.nav-overlay__list li)) > a:where(:not(.btn)) { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 40px 0; }
::selection { background: var(--ink-2); color: var(--white); }

/* ------------------------------------------------------------ 3 typography */
h1, h2, h3, .eyebrow, .card__title, .btn, .nav, .site-footer__meta, .site-footer__social,
.figcaption, .card__meta, .section-head__link, .prevnext__dir, .hero__credit, .menu-btn, .cart-link {
  text-transform: uppercase;
  letter-spacing: var(--track);
}
h1, h2, h3, h4 { font-weight: var(--fw); margin: 0 0 .8em; color: var(--ink); }
h1 { font-size: 2.1rem; line-height: 1.5; margin-bottom: 1.2em; }   /* never larger; 25px to the first block on every page */
h2 { font-size: 2.1rem; line-height: 1.5; }        /* same cap as h1: the scale never inverts */
h3 { font-size: 1.65rem; line-height: 1.6; }
h4 { font-size: 1.45rem; line-height: 1.6; text-transform: uppercase; letter-spacing: var(--track); }
h1, h2, h3, h4, .prevnext__title { text-wrap: balance; }   /* a wrapped heading never leaves one word alone on its last line; same line count */
p { margin: 0 0 var(--para); }
.prose, .lede, .feature__body p, .split__body p, main > .section p { max-width: 62ch; }
.lede { font-size: 1.65rem; line-height: 3.2rem; }
.eyebrow { font-size: var(--fs-meta); color: var(--grey-1); margin-bottom: 1.2em; }
.meta, .card__meta, .figcaption { font-size: var(--fs-meta); line-height: 2.1rem; color: var(--grey-1); }
small, .small { font-size: var(--fs-meta); }
strong { font-weight: 500; }

blockquote, .quote {
  font-size: 2.4rem;
  line-height: 3.4rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
  border-left: 1px solid var(--red);   /* the one expressive gesture */
  padding-left: 30px;
  width: 85%;
  margin: 2em 0;
}
blockquote p { margin: 0; max-width: none; }
blockquote cite {
  display: block;
  font-style: normal;
  font-size: var(--fs-meta);
  line-height: 2.1rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--grey-1);
  margin-top: 1.4em;
}
@media (max-width: 768px) { blockquote, .quote { width: 100%; padding-left: 20px; } }

/* ------------------------------------------------------------ 4 layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
/* a full-bleed hero has no block padding of its own: the section under it supplies both halves */
.hero + .section, .hero-figure + .section { padding-top: calc(2 * var(--section-y)); }
/* the last block of a text column carries no trailing margin, so a column taller than its image
   does not push the next section 23px further away */
.split__body > :last-child, .feature__body > :last-child { margin-bottom: 0; }
/* a section that is only a pull quote: the blockquote's prose margin would add to the block */
.section--quote .quote { margin: 0; }
.section--soft { background: var(--bg-soft); }
/* short pages (empty cart, 404): the footer rests on the bottom of the window instead of floating
   a fixed 60vh down the page; every other page is taller than the window and is unaffected */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
main { flex: 1 0 auto; }
main:focus { outline: none; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-x);
  padding-bottom: 18px;
  margin-bottom: var(--gap-y);
  border-bottom: 1px solid var(--hairline);
}
.section-head h2, .section-head h3 { margin: 0; }
.section-head__link { font-size: var(--fs-meta); color: var(--grey-1); white-space: nowrap; padding-bottom: .2em; }

/* grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap-x);
  row-gap: var(--gap-y);
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1280px) { .grid, .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px)  { .grid, .grid--3, .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .grid, .grid--3, .grid--2, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* art grid: fixed row height, images sit on the bottom edge */
.grid--art .card__img { height: var(--row-h); }
.grid--art .card__img picture, .grid--art .figure__media picture { position: absolute; inset: 0; }
.grid--art .card__img img, .grid--art .figure__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom;
  background: transparent !important;
}

/* split (text + sticky media) */
.split { display: grid; grid-template-columns: 1fr; gap: var(--gap-y) var(--gap-x); align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split__media { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* full-bleed */
.bleed {
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;
  max-width: 100vw;
}

/* ------------------------------------------------------------ 5 header / nav */
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 200;
  padding: 10px 16px;
  background: var(--ink-2); color: var(--white);
  font-size: var(--fs-meta); letter-spacing: var(--track); text-transform: uppercase;
  transform: translateY(-120%);
}
.skip-link:focus { transform: none; outline: none; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  min-height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--hairline);
  transition: transform var(--t-header) var(--ease-header),
              box-shadow var(--t-header) var(--ease-header),
              border-color var(--t-header) var(--ease-header);
  will-change: transform;
}
.site-header.is-hidden { transform: translate3d(0, -150%, 0); }
.site-header.is-scrolled { border-color: transparent; box-shadow: 0 0 8px rgba(0, 0, 0, .18); }
.nav-open .site-header { transform: none; box-shadow: none; z-index: 130; background: transparent; border-color: transparent; }
.nav-open .site-logo img { filter: brightness(0) invert(1); }
.nav-open .cart-link { visibility: hidden; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: 100%; }
.site-logo { flex: 0 0 auto; display: block; }
.site-logo img { width: 160px; height: auto; }
@media (max-width: 1024px) { .site-logo img { width: 130px; } }   /* 72px tall in the 90px header: ~9px clear above the bindi and above the rule */

.nav { font-size: var(--fs-nav); line-height: 1; }
.nav__list { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav__list li { margin-left: 25px; }
@media (max-width: 1100px) { .nav__list li { margin-left: 20px; } }   /* 1025–1100 with a cart badge: Contact stays on the one line */
.nav__list a { color: var(--grey-1); padding: 8px 0; display: inline-block; }
.nav__list a.is-active { color: var(--ink); }
.nav__list a:hover { color: var(--grey-1); }   /* no hover colour change */
.nav__list a.is-active:hover { color: var(--ink); }

.site-header__tools { display: flex; align-items: center; gap: 25px; font-size: var(--fs-nav); line-height: 1; flex: 0 0 auto; }
.cart-link { color: var(--grey-1); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 0; } /* 44px hit area, label size unchanged */
.cart-link.is-empty { visibility: hidden; }   /* empty cart: link hidden but its space kept, so the nav stays where it was */
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: var(--ink-2); color: var(--white);
  font-size: 10px; letter-spacing: 0; line-height: 1;
}
.menu-btn { display: none; align-items: center; min-height: 44px; color: var(--ink); position: relative; z-index: 130; padding: 8px 0; } /* 44px hit area; no side padding keeps the gutter edge */
.menu-btn__close { display: none; }
.nav-open .menu-btn { color: #fff; }
.nav-open .menu-btn__open { display: none; }
.nav-open .menu-btn__close { display: inline; }
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* overlay menu */
.nav-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0, 0, 0, .96);            /* opaque enough that hero type does not ghost through */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-header) var(--ease-header), visibility 0s linear var(--t-header);
  overscroll-behavior: contain;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-open .nav-overlay { opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-open { overflow: hidden; }
.nav-overlay__nav { margin: auto; padding: calc(var(--header-h) + 10px) 0 30px; }
.nav-overlay__list { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 20px; }
.nav-overlay__list li {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity var(--t-menu) var(--ease-menu), transform var(--t-menu) var(--ease-menu);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.nav-open .nav-overlay__list li { opacity: 1; transform: none; }
.nav-overlay__list a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 1.6rem; line-height: 1.6;
  text-transform: uppercase; letter-spacing: var(--track);
  color: rgba(255, 255, 255, .6);
}
.nav-overlay__list a.is-active { color: #fff; }
.nav-overlay .cart-count { background: #fff; color: var(--ink); }

/* ------------------------------------------------------------ 6 footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 30px 0;
  margin-top: var(--section-y);
  font-size: var(--fs-foot);
  line-height: 2rem;
  color: var(--grey-1);
}
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 30px; }   /* one line: © | Instagram + email | legal */
.site-footer p { margin: 0; }
.site-footer__official { display: block; color: var(--grey-1); }   /* under the ©, on its own line */
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 20px; margin: 0; }
.site-footer__social { display: flex; align-items: center; justify-content: center; gap: 25px; }
.site-footer__ig { display: inline-flex; line-height: 0; }
.site-footer__ig svg { width: 18px; height: 18px; }
/* tap targets (audit 2026-10-30): an invisible ::after grows each link's hit area, so the link box, its focus ring and
   the layout stay as they were. The Instagram glyph everywhere (44 px); the text links on phones only (wider, the legal
   list can wrap with no row gap). On phones the two stacked rows are 14 px apart, so the edges that face each other
   grow by about 7 px only and no hit area overlaps another. The legal links stay inline, so their focus ring still hugs
   the text; their hit areas are measured from the li (the 19.5 px line), because engines size an inline box differently
   (WebKit 13.4 px starting 3 px in, Chromium 14 px starting 2 px in). Browsers hit-test about 1 px past a box, so 1 px
   is left between neighbouring areas. If the legal list wraps on a phone (257 px wide or less, e.g. zoomed), a 19 px
   row gap keeps the rows' hit areas apart. */
.site-footer__ig, .site-footer__social a { position: relative; }
.site-footer__ig::after { content: ""; position: absolute; inset: -13px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
@media (max-width: 768px) { .site-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 14px; } .site-footer__social { justify-content: flex-start; } .site-footer__legal { justify-content: flex-start; } }
@media (max-width: 768px) {
  .site-footer__ig::after { bottom: -7px; }
  .site-footer__social a:not(.site-footer__ig)::after { content: ""; position: absolute; inset: -12px 0 -7px; }
  .site-footer__legal { row-gap: 19px; }
  .site-footer__legal li { position: relative; }
  .site-footer__legal a::after { content: ""; position: absolute; inset: -6px 0 -11.5px; }   /* 1 px under the email's 7 px reach; 1.5 px between wrapped rows */
}

/* ------------------------------------------------------------ 7 components */
/* card */
.card { position: relative; }
.card__link { display: block; color: inherit; }
.card__img { position: relative; overflow: hidden; background: transparent; }
.card__img picture { width: 100%; }
.card__img--alt {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--t-hover) ease;
  pointer-events: none;
}
.card__img--alt img { width: 100%; height: 100%; object-fit: inherit; object-position: inherit; }
.card:hover .card__img--alt, .card:focus-within .card__img--alt { opacity: 1; }
.card__body { padding-top: var(--cap-gap); }
.card__title { font-size: 1.65rem; line-height: 2.4rem; margin: 0 0 .3em; color: var(--ink); }
.card__meta { margin: 0; }
.card__meta--sub { color: var(--grey-2); }
.card .eyebrow { margin-bottom: .4em; }

/* figure */
.figure { position: relative; }
.figure__media { position: relative; }
.figure__media[data-lightbox] { cursor: zoom-in; }
.figcaption { display: flex; flex-wrap: wrap; gap: 0 14px; padding-top: var(--cap-gap); }
.figcaption__credit { color: var(--grey-2); }

/* feature (50/50) */
.feature { display: grid; grid-template-columns: 1fr; gap: var(--gap-y) 0; align-items: center; }
.feature__media { width: 100%; max-width: var(--feature); }
.feature__media .figure__media { aspect-ratio: 1 / 1; overflow: hidden; }
.feature__media .figure__media picture, .feature__media .figure__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { align-self: center; }
.feature--flip .feature__media { order: 2; }
@media (min-width: 1025px) {
  .feature { grid-template-columns: minmax(0, var(--feature)) minmax(0, 1fr); }
  .feature__body { padding-left: 50px; }
  .feature--flip { grid-template-columns: minmax(0, 1fr) minmax(0, var(--feature)); }
  .feature--flip .feature__body { padding-left: 0; padding-right: 50px; }
}

/* hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: var(--ink-2);
  color: var(--white);
}
.hero__media, .hero > picture { position: absolute; inset: 0; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__overlay {
  position: absolute; bottom: 0;
  padding: 40px var(--gutter);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
  z-index: 2;
}
.hero__overlay--left { left: 0; max-width: 60%; }
.hero__overlay--top { top: 0; left: 0; bottom: auto; max-width: 60%; }
.hero__overlay--right { right: 0; text-align: right; }
.hero h1, .hero h2, .hero p { color: var(--white); }
.hero h1 { margin-bottom: .6em; }
.hero__tagline { font-size: var(--fs-meta); letter-spacing: var(--track); text-transform: uppercase; margin: 0; }
.hero__credit { font-size: var(--fs-foot); letter-spacing: var(--track); color: rgba(255, 255, 255, .75); }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero__overlay--left { max-width: 100%; }
  .hero__overlay--right { position: absolute; top: auto; bottom: 12px; padding-block: 0; }
  .hero__overlay--left { padding-bottom: 50px; }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;                        /* touch target; .btn--small keeps this floor */
  font-size: var(--fs-meta);               /* 11px floor */
  line-height: 1.4;
  padding: 13px 22px;
  border: 1px solid var(--ink-2);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  transition: background var(--t-hover) ease, color var(--t-hover) ease;
  margin: 0;
}
/* button rows wrap as a flex line, so a button adds nothing to the gap above or below it */
p:has(> .btn) { display: flex; flex-wrap: wrap; gap: 8px 12px; }
@supports not selector(:has(*)) { .btn { margin: 0 8px 8px 0; } }
.btn:hover, .btn:focus-visible { background: var(--ink-2); color: var(--white); }
.btn--solid { background: var(--ink-2); color: var(--white); }
.btn--solid:hover, .btn--solid:focus-visible { background: transparent; color: var(--ink); }
.btn--light { border-color: var(--white); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); }

/* prev / next */
.prevnext {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: var(--gap-x);   /* start: Previous/Next share a line when their titles wrap differently */
  border-top: 1px solid var(--hairline);
  padding-top: 30px; margin-top: var(--section-y);
}
.prevnext__next { text-align: right; }
.prevnext a { display: inline-block; }
.prevnext__dir { display: block; font-size: var(--fs-meta); color: var(--grey-2); }
.prevnext__title { display: block; font-size: 1.65rem; line-height: 2.4rem; text-transform: uppercase; letter-spacing: var(--track); color: var(--ink); }
.prevnext__up { font-size: var(--fs-meta); letter-spacing: var(--track); text-transform: uppercase; color: var(--grey-1); align-self: center; }
@media (max-width: 460px) { .prevnext { grid-template-columns: 1fr 1fr; } .prevnext__up { grid-column: 1 / -1; order: 3; } }

/* decorative parrot */
.parrot {
  position: absolute;
  width: clamp(120px, 12vw, 220px);
  pointer-events: none;
  user-select: none;
  z-index: 3;
}
.parrot img { width: 100%; height: auto; }
.parrot--tl { top: 0; left: 0; }
.parrot--tr { top: 0; right: 0; }
.parrot--bl { bottom: 0; left: 0; }
.parrot--br { bottom: 0; right: 0; }
.parrot--flip { transform: scaleX(-1); }

/* ------------------------------------------------------------ 8 reveal / motion */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, -50px, 0);
  transition: opacity var(--t-reveal) var(--ease-reveal), transform var(--t-reveal) var(--ease-reveal);
  transition-delay: var(--stagger, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal]:focus-within { opacity: 1; transform: none; transition: none; }   /* keyboard focus never lands on a block still at opacity 0 */

.no-anim [data-reveal], .no-anim .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-anim .hero { height: 800px; }
.no-anim .site-header, .no-anim .nav-overlay, .no-anim .nav-overlay__list li, .no-anim .card__img--alt { transition: none !important; }
.no-anim html { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .site-header, .nav-overlay, .nav-overlay__list li, .card__img--alt, .btn { transition: none !important; }
  .nav-overlay__list li { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ 9 lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: transparent;
  color: var(--white);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 60px var(--gutter) 90px; }
.lightbox picture, .lightbox img { max-width: 100%; max-height: min(92vh, calc(100vh - 150px)); width: auto; height: auto; object-fit: contain; }
.lightbox picture img { width: auto; }
.lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px var(--gutter);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: var(--fs-meta); line-height: 2.1rem; letter-spacing: var(--track); text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.lightbox__text {   /* the caption is alt text: sentence case, at most two lines */
  text-transform: none; letter-spacing: 0; font-size: 1.3rem;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.lightbox__credit { color: rgba(255, 255, 255, .55); }
.lightbox__count { color: rgba(255, 255, 255, .55); }
.lightbox__btn {
  position: absolute; z-index: 2;
  font-size: var(--fs-meta); letter-spacing: var(--track); text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  padding: 14px 18px;
  background: rgba(0, 0, 0, .35);
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { color: #fff; }
.lightbox__close { top: 16px; right: var(--gutter); }
.lightbox__prev { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--gutter); top: 50%; transform: translateY(-50%); }
.lightbox__btn[disabled] { opacity: .3; cursor: default; }
@media (max-width: 768px) {
  /* phones: image, caption and the Prev · count · Next row stack without overlapping;
     dvh keeps that row above Safari's toolbar */
  .lightbox { height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; }
  .lightbox__stage { flex-direction: column; padding-bottom: 60px; }
  .lightbox.is-single .lightbox__stage { padding-bottom: 18px; }
  .lightbox picture { flex: 1 1 0; min-height: 0; width: 100%; max-height: none; display: flex; align-items: center; justify-content: center; }
  .lightbox picture img { max-height: 100%; }
  .lightbox__caption { position: static; flex: 0 0 auto; width: 100%; padding: 12px 0 0; gap: 2px 20px; }
  .lightbox__btn { padding: 7px 18px; }   /* 44px tall */
  .lightbox__close { top: 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
  .lightbox__count { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); line-height: 44px; }
}

/* ------------------------------------------------------------ 10 utilities / a11y */
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 3px; }
.hero :focus-visible, .nav-overlay :focus-visible, .lightbox :focus-visible { outline-color: var(--white); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--gap-y); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ 11 dark theme */
.theme-dark {
  --white: #0A0A0A;
  --ink: #F5F0E8;
  --ink-2: #F5F0E8;
  --grey-1: #B0B0B0;
  --grey-2: #8C8C8C;
  --hairline: #262626;
  --bg-soft: #141414;
}
.theme-dark ::selection { background: var(--ink-2); color: var(--white); }
.theme-dark .site-header.is-scrolled { box-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.theme-dark .site-logo img { filter: invert(1); }
.theme-dark .cart-count { background: var(--ink-2); color: var(--white); }

/* ------------------------------------------------------------ 12 Mahendra Kadia pages */
/* wordmark in place of a logo */
.site-logo--text { font-size: 1.65rem; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); padding: 10px 0; white-space: nowrap; }
.nav-open .site-logo--text { color: #fff; }
@media (max-width: 460px) { .site-logo--text { font-size: 1.4rem; letter-spacing: .18em; } }
.site-footer__legal li { color: var(--grey-1); }

/* home hero: one canvas, whole, never cropped to fill the window */
.home-hero { padding-top: 40px; }
.home-hero__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; margin-bottom: 25px; }
.home-hero__head h1, .home-hero__head .eyebrow { margin: 0; }
.home-hero__figure img { width: 100%; height: auto; }
.home-hero__figure a { display: block; }

/* image beside text; the image keeps its own shape */
.duo { display: grid; grid-template-columns: 1fr; gap: var(--gap-y) var(--gap-x); align-items: center; }
.duo__media img { width: 100%; height: auto; }
.duo__media .figcaption { margin: 0; }
.duo__body > :last-child { margin-bottom: 0; }
@media (min-width: 1025px) {
  .duo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; }
  .duo--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .duo--flip .duo__media { order: 2; }
}
.book-cover { box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }

/* kinds of work */
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-y) var(--gap-x); align-items: end; }
.group-grid--index { margin-top: var(--gap-y); }
.group-card__img { display: flex; align-items: flex-end; aspect-ratio: 4 / 3; }
.group-card__img img { width: auto; height: auto; max-width: 100%; max-height: 100%; }   /* never drawn larger than the plate itself */
@media (max-width: 768px) { .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } }
.group-nav { margin: 0 0 20px; border-bottom: 1px solid var(--hairline); }
.group-nav ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.group-nav a { display: inline-block; padding: 10px 0 14px; font-size: var(--fs-meta); letter-spacing: var(--track); text-transform: uppercase; color: var(--grey-1); text-decoration: none; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.group-nav a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 768px) {   /* one line that scrolls sideways, so the grid starts high on a phone */
  .group-nav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .group-nav ul::-webkit-scrollbar { display: none; }
  .group-nav a { white-space: nowrap; padding-block: 14px; }
}
.works-count { margin-bottom: var(--gap-y); }
.eyebrow a { text-decoration: none; }

/* the works: every plate whole, rows resting on a common base line */
.works-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap-y) var(--gap-x); align-items: end; }
@media (max-width: 1400px) { .works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; } }
@media (max-width: 600px)  { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 15px; } }
.work { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.work__media { display: block; cursor: zoom-in; }
.work__media img { width: 100%; height: auto; }
.work__cap { padding-top: 12px; min-height: calc(12px + 4.2rem); align-content: flex-start; }
.figure__media img { width: 100%; height: auto; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--hairline); padding-top: 30px; margin-top: var(--section-y); }
.pager__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.pager__list a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: var(--fs-meta); letter-spacing: var(--track); color: var(--grey-1); text-decoration: none; }
.pager__list a.is-active { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.btn--off { visibility: hidden; }
@media (max-width: 600px) { .pager { flex-wrap: wrap; } .pager__list { order: 3; width: 100%; } }

/* home: six works, one of each kind, each whole */
.six-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-y) var(--gap-x); align-items: end; }
.six-grid .work__media img, .essay__plates .work__media img, .essay__plates .figure__media img { width: auto; max-width: 100%; }   /* never drawn larger than the plate */
@media (max-width: 768px) { .six-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 15px; } }

/* essay and facts */
.essay p { max-width: none; }
.essay__source { margin-bottom: var(--gap-y); }
.essay__next { margin-top: var(--section-y); }
/* the essay in parts. Phones and tablets: text, then its plates. Wide screens: the text in two columns with the
   plates beside it, so each part fits about one window and nobody scrolls down one column and back up the next */
.essay-part { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin-bottom: var(--gap-y); }
.essay-part__text { max-width: 72ch; }
.essay-part__text > :last-child { margin-bottom: 0; }
.essay-part__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; align-items: end; }
.essay-part__side--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.essay-part__side .work__media img, .essay-part__side .figure__media img { width: auto; max-width: 100%; }   /* never drawn larger than the plate */
.essay-part__side .work__cap { min-height: 0; }
.essay-part__side .quote { width: 100%; margin: 0; }
@media (min-width: 1100px) {
  .essay-part { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 70px; align-items: start; margin-bottom: 70px; }
  .essay-part__text { max-width: none; columns: 2; column-gap: 50px; orphans: 3; widows: 3; }
  .essay-part__side .quote { font-size: 2rem; line-height: 3rem; padding-left: 24px; }
}
.facts { margin: 0 0 var(--para); border-top: 1px solid var(--hairline); }
.facts > div { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.facts dt { font-size: var(--fs-meta); letter-spacing: var(--track); text-transform: uppercase; color: var(--grey-1); }
.facts dd { margin: 0; }
.photo-row { align-items: end; }
@media (max-width: 768px) { .photo-row { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------ 13 the publication reader (from the Sculpted India site) */
:root { --reader-accent: #B0B0B0; }
/* ---------- the reader (assets/js/reader.js): a publication opened on the page ---------- */
html.reader-open { overflow: hidden; }
.reader {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: 100vw; max-height: 100vh; max-height: 100dvh;
  background: transparent; color: #e4e9e5;
  font-family: var(--ff);
  overscroll-behavior: contain;
}
.reader::backdrop { background: #151a18; }   /* --stone-dark as a literal: before Safari 17.4 ::backdrop cannot read custom properties */
.reader[open] { display: flex; flex-direction: column; }
.reader__bar, .reader__foot {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.reader__bar { padding-top: max(6px, env(safe-area-inset-top)); }
.reader__foot { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.reader__title {
  margin: 0; min-width: 0; max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--ff); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(228, 233, 229, .85);
}
.reader__tools { display: flex; gap: 4px; flex: 0 0 auto; }
.reader__btn, .reader__stage { -webkit-tap-highlight-color: transparent; }
.reader__btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
  padding: 0 14px; background: transparent; border: 0; text-decoration: none; cursor: pointer;
  font-family: var(--ff); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(228, 233, 229, .85);
}
.reader__btn:focus-visible { color: #fff; outline: 1px solid var(--reader-accent); outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) { .reader__btn:hover { color: #fff; } }
.reader__btn[disabled] { opacity: .3; cursor: default; }
.reader__count { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--reader-accent); }
.reader__stage {
  position: relative; flex: 1 1 0; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 4px var(--gutter);
  touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none;
}
.reader__stage.is-zoomed { touch-action: auto; }   /* pinched in: the page can be moved in every direction */
.reader__stage:focus { outline: none; }
.reader__sheet { display: flex; align-items: center; justify-content: center; }
.reader__sheet canvas, .reader__sheet img { display: block; max-width: none; }
.reader__stage.has-cover.is-loading::after { content: none; }   /* the cover is already showing */
.reader__stage.is-loading::after {   /* a quiet line while a page is fetched */
  content: ""; position: absolute; left: 50%; top: 50%; width: 48px; height: 1px; margin-left: -24px;
  background: rgba(228, 233, 229, .55); animation: reader-wait 1.2s ease-in-out infinite;
}
@keyframes reader-wait { 0%, 100% { opacity: .15; transform: scaleX(.3); } 50% { opacity: .8; transform: scaleX(1); } }
.reader__msg { position: absolute; inset: auto var(--gutter); max-width: none; text-align: center; color: rgba(228, 233, 229, .85); margin: 0; }
.reader__msg a { color: #fff; }
.reader__hint {
  position: absolute; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); margin: 0; max-width: none; text-align: center;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--reader-accent);
  pointer-events: none;
}
/* a phone held upright: the page gets nearly the full width */
@media (max-width: 640px) {
  .reader__stage { padding: 4px 8px; }
  .reader__hint { padding: 0 var(--gutter); letter-spacing: 0.12em; }
}
/* a phone turned sideways: little height, so the page gets all of it; Prev and Next sit either side of the book */
@media (orientation: landscape) and (max-height: 560px) {
  .reader__bar { padding-top: 0; padding-bottom: 0; }
  .reader__bar .reader__btn { min-height: 40px; }
  .reader__stage { padding: 0 64px; padding-left: max(64px, env(safe-area-inset-left)); padding-right: max(64px, env(safe-area-inset-right)); }
  .reader__foot { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 0; pointer-events: none; }
  .reader__foot .reader__btn { pointer-events: auto; padding: 0 10px; min-height: 64px; }
  .reader__foot .reader__prev { padding-left: max(10px, env(safe-area-inset-left)); }
  .reader__foot .reader__next { padding-right: max(10px, env(safe-area-inset-right)); }
  .reader__count { display: none; }
}


/* the book on the exhibition page: its cover opens the reader */
.book-link { display: block; }
.book-link:hover .book-cover, .book-link:focus-visible .book-cover { box-shadow: 0 14px 36px rgba(0, 0, 0, .18); }
.book-cover { transition: box-shadow var(--t-hover) ease; }

/* ============================================================ 14. Contact page and its form (from the Thota Vaikuntam site) */
.field { display: block; margin-bottom: 22px; }
.field__label { display: block; font-size: var(--fs-meta); letter-spacing: var(--track); text-transform: uppercase; color: var(--grey-1); margin-bottom: 8px; }
.field__opt { text-transform: none; letter-spacing: 0; color: var(--grey-2); }
.field__hint { display: block; font-size: var(--fs-meta); line-height: 2rem; color: var(--grey-2); margin-top: 6px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  display: block; width: 100%;
  font: inherit; color: var(--ink);
  font-size: max(16px, 1em); /* never below 16px: iOS Safari zooms the page into any smaller control */
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 0;
  padding: 12px 14px;
  line-height: 1.6;
  transition: border-color var(--t-hover) ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--grey-1) 50%), linear-gradient(135deg, var(--grey-1) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field__error { display: block; font-size: var(--fs-meta); line-height: 2rem; color: var(--red); margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 var(--gap-x); }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid__full { grid-column: 1 / -1; }
}
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ notices */
.notice {
  font-size: 1.45rem; line-height: 2.6rem;
  border-left: 1px solid var(--ink-2);
  padding: 10px 0 10px 20px;
  margin: 0 0 24px;
  max-width: 62ch;
}
.notice--info { border-color: var(--grey-2); color: var(--grey-1); }
.notice--error { border-color: var(--red); color: var(--red); }
.notice--ok { border-color: var(--ink-2); color: var(--ink); }
.contact__actions { margin: 0 0 var(--para); }
.contact__media picture { width: 100%; }
.contact__media img { width: 100%; height: auto; }
.contact__form { margin-top: 0; }
.contact__form > :last-child, .contact__done > :last-child { margin-bottom: 0; }
/* closing strip, as .prevnext: 60 → hairline → 30 (the split's own 50px row gap + 10) */
.contact__links { margin-top: 10px; padding-top: 30px; border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px 40px; }
.contact__group > :last-child { margin-bottom: 0; }
.contact__address { font-style: normal; }
.contact__ids { margin-top: 12px; }
.contact__list li { margin-bottom: .4em; }
.contact__list li:last-child { margin-bottom: 0; }
/* desktop: photograph with the links beneath it | heading and form. Both columns start and end on the
   same lines at any width — the message box takes up the slack when the photograph column is the
   taller one, the links drop to the foot of their column when the form is */
@media (min-width: 1024px) {
  .split.contact { grid-template-rows: auto 1fr; row-gap: 0; align-items: stretch; }
  .contact__media { grid-column: 1; grid-row: 1; position: static; }
  .contact__links { grid-column: 1; grid-row: 2; align-self: end; margin-top: var(--section-y); }
  .contact__body { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; }
  .contact__form { flex: 1 1 auto; display: flex; flex-direction: column; }
  .contact__form .form-grid { flex: 1 1 auto; grid-template-rows: auto auto 1fr; }
  .contact__form .field--message { display: flex; flex-direction: column; }
  .contact__form .field--message textarea { flex: 1 1 auto; }
}
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--grey-1); text-decoration: underline; }
