/* Chanakya International Centre, Kurukshetra
   A campus of the Chanakya International Council. Same register as chanakyacouncil.org:
   parchment + ink + one ochre accent, with drawing-office details (mono labels, hairlines). */

:root {
  --parchment:      oklch(0.965 0.012 85);
  --parchment-deep: oklch(0.935 0.018 82);
  --paper:          oklch(0.985 0.008 95);
  --ink:            oklch(0.225 0.012 60);
  --ink-deep:       oklch(0.185 0.014 58);
  --ink-soft:       oklch(0.36 0.014 62);
  --stone:          oklch(0.46 0.012 65);
  --ochre:          oklch(0.60 0.115 66);
  --ochre-bright:   oklch(0.54 0.13 64);
  --terra:          oklch(0.50 0.12 40);
  --hair:           oklch(0.225 0.012 60 / 0.16);
  --hair-soft:      oklch(0.225 0.012 60 / 0.09);
  --hair-on-ink:    oklch(0.965 0.012 85 / 0.18);

  /* masterplan zone colours */
  --z-learn:  oklch(0.52 0.10 45);
  --z-sacred: oklch(0.62 0.12 70);
  --z-guest:  oklch(0.60 0.07 140);
  --z-staff:  oklch(0.55 0.02 70);
  --z-land:   oklch(0.74 0.08 125);
  --z-arrive: oklch(0.78 0.02 80);
  --z-farm:   oklch(0.56 0.08 95);

  --serif: "EB Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", var(--serif);

  --measure: 64ch;
  --wrap: 76rem;
  --section: clamp(4.5rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--parchment);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ochre-bright); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
::selection { background: var(--ochre); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ochre-bright); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
@media (max-width: 40rem) { .wrap { width: min(var(--wrap), 100% - 2rem); } }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- type primitives ---------- */
.eyebrow {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ochre-bright);
  margin: 0 0 1.3rem;
}
.deva { font-family: var(--deva); text-transform: none; letter-spacing: 0; font-size: 1.35em; vertical-align: -0.06em; }
.eyebrow .deva::before { content: "\00B7"; margin: 0 0.5em 0 0.3em; color: var(--stone); }
.section-title {
  font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.07;
  letter-spacing: -0.012em; margin: 0 0 1.4rem; max-width: 21ch; text-wrap: balance;
}
.lead { font-size: clamp(1.2rem, 1.7vw, 1.42rem); line-height: 1.5; color: var(--ink-soft); max-width: var(--measure); margin: 0 0 1.2rem; text-wrap: pretty; }
p { text-wrap: pretty; }
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--stone);
}

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--hair-soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { margin: 0; }
@media (max-width: 56rem) { .section-head { grid-template-columns: 1fr; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklch, var(--parchment) 90%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.2rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .seal { width: 2.4rem; }
.brand-name { font-size: 1.14rem; font-weight: 500; line-height: 1.1; letter-spacing: 0.005em; }
.brand-sub { display: block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); margin-top: 0.2rem; }
.nav { display: flex; gap: 1.6rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.06em; }
.nav a { color: var(--ink-soft); text-decoration: none; padding-block: 0.4rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ochre); }
.nav-toggle { display: none; background: none; border: 1px solid var(--hair); color: var(--ink); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 0.8rem; cursor: pointer; }
@media (max-width: 60rem) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--parchment); border-bottom: 1px solid var(--hair); padding: 0.5rem 1.25rem 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--hair-soft); }
  .brand-sub { display: none; }
}

/* ---------- seal ---------- */
.seal { width: 100%; height: auto; }
.seal-ring-outer, .seal-ring-inner { fill: none; stroke: var(--ink); }
.seal-ring-outer { stroke-width: 1.2; }
.seal-ring-inner { stroke-width: 0.7; stroke: var(--hair); }
.seal-text { font-family: var(--sans); font-size: 11.3px; font-weight: 500; letter-spacing: 2.1px; fill: var(--ink); }
.seal-star path { fill: none; stroke: var(--ochre); stroke-width: 1.2; stroke-linejoin: round; }
.seal-star .seal-star-inner { stroke: var(--ink); stroke-width: 0.8; }
.seal-star .seal-dot { fill: var(--ochre); stroke: none; }
.seal-spin { transform-box: view-box; transform-origin: 120px 120px; animation: seal-turn 150s linear infinite; }
@keyframes seal-turn { to { transform: rotate(360deg); } }
.brand .seal-text { display: none; }
.brand .seal-ring-outer { stroke-width: 5; }
.brand .seal-star path { stroke-width: 7; }
.brand .seal-star .seal-star-inner { stroke-width: 5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95rem 1.4rem; text-decoration: none; border: 1px solid var(--ink); color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--ochre-bright); border-color: var(--ochre-bright); color: var(--paper); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 60rem); display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--hair); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--parchment) 0%, color-mix(in oklch, var(--parchment) 88%, transparent) 30%, color-mix(in oklch, var(--parchment) 20%, transparent) 62%, transparent 80%),
    linear-gradient(0deg, var(--parchment) 0%, transparent 32%);
}
.hero-body { position: relative; padding-block: 8rem 3rem; }
.hero-title { font-weight: 500; font-size: clamp(2.9rem, 7.4vw, 6.4rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 1.6rem; max-width: 11ch; }
.hero-title em { font-style: italic; color: var(--ochre-bright); }
.hero .lead { color: var(--ink-soft); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--ink); }
.stat { padding: 1.1rem 1.4rem 0.2rem 0; }
.stat + .stat { padding-left: 1.4rem; border-left: 1px solid var(--hair); }
.stat-num { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; font-weight: 500; font-variant-numeric: lining-nums; }
.stat-label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); margin-top: 0.55rem; }
@media (max-width: 52rem) {
  .hero { min-height: auto; }
  .hero-media { position: relative; height: 56vw; min-height: 15rem; }
  .hero-scrim { background: linear-gradient(0deg, var(--parchment) 0%, transparent 40%); height: 56vw; min-height: 15rem; }
  .hero-body { padding-block: 0 2.5rem; margin-top: -3rem; }
  .hero { display: block; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (prefers-reduced-motion: reduce) { .hero-media img, .seal-spin { animation: none; } }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.principle { padding: 1.4rem 1.6rem 0 0; }
.principle + .principle { padding-left: 1.6rem; border-left: 1px solid var(--hair); }
.principle h3 { font-size: 1.28rem; font-weight: 500; margin: 0.5rem 0 0.5rem; line-height: 1.2; }
.principle p { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }
@media (max-width: 60rem) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { margin-top: 1.6rem; border-top: 1px solid var(--hair); }
}
@media (max-width: 36rem) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding-left: 0; border-left: 0; }
  .principle + .principle { margin-top: 1.4rem; border-top: 1px solid var(--hair); }
}

/* ---------- interactive masterplan ---------- */
.plan { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(16rem, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.plan-figure { margin: 0; background: var(--paper); border: 1px solid var(--ink); padding: clamp(0.6rem, 1.5vw, 1.2rem); position: relative; }
.plan-svg { width: 100%; height: auto; font-family: var(--mono); }
.plan-svg .zone { cursor: pointer; transition: opacity 0.25s, filter 0.25s; }
.plan-svg .zone:focus { outline: none; }
.plan-svg .zone:focus-visible .shape { stroke: var(--ochre-bright); stroke-width: 1.4; }
.plan-svg.has-active .zone:not(.is-active) { opacity: 0.32; }
.plan-svg .zlabel { font-size: 4px; letter-spacing: 0.25px; fill: var(--ink); pointer-events: none; text-anchor: middle; }
.plan-svg .zlabel.on-dark { fill: var(--paper); }
.plan-svg .zlabel.small { font-size: 3.2px; }
.plan-caption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.7rem; }
.legend { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.legend li { border-bottom: 1px solid var(--hair); }
.legend button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 0.9rem 1fr; gap: 0.2rem 0.9rem;
  padding: 0.95rem 0.2rem; align-items: baseline;
}
.legend button:focus-visible { outline: 2px solid var(--ochre-bright); outline-offset: -2px; }
.legend .sw { width: 0.8rem; height: 0.8rem; border-radius: 2px; transform: translateY(0.1rem); }
.legend .lt { font-size: 1.12rem; font-weight: 500; line-height: 1.25; }
.legend .ld { grid-column: 2; font-size: 0.98rem; color: var(--ink-soft); line-height: 1.45; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, margin 0.35s; }
.legend li.is-active .ld { max-height: 12rem; margin-top: 0.35rem; }
.legend li.is-active .lt { color: var(--ochre-bright); }
@media (max-width: 60rem) { .plan { grid-template-columns: 1fr; } }

/* ---------- the axis walk ---------- */
.walk-band { background: var(--ink-deep); color: var(--parchment); }
.walk-band .eyebrow { color: var(--ochre); }
.walk-band .lead { color: oklch(0.965 0.012 85 / 0.74); }
.walk-band .section-title { color: var(--parchment); }
.walk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.walk li { counter-increment: step; }
.walk figure { margin: 0; }
.walk .frame { aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--hair-on-ink); }
.walk img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.walk li:hover img { transform: scale(1.04); }
.walk figcaption { padding-top: 1rem; }
.walk .step { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ochre); }
.walk .step::before { content: "0" counter(step) " \00B7 "; }
.walk h3 { font-weight: 500; font-size: 1.3rem; margin: 0.35rem 0 0.4rem; line-height: 1.15; }
.walk p { margin: 0; font-size: 0.98rem; color: oklch(0.965 0.012 85 / 0.7); line-height: 1.5; }
.walk-rule { height: 1px; background: var(--hair-on-ink); margin: 0 0 1.4rem; position: relative; }
.walk-rule::after { content: "SOUTH \2192 NORTH"; position: absolute; right: 0; top: -1.4rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; color: oklch(0.965 0.012 85 / 0.5); }
@media (max-width: 64rem) {
  .walk { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
  .walk li { scroll-snap-align: start; }
}

/* ---------- precincts ---------- */
.precinct { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.precinct.flip .precinct-media { order: 2; }
.precinct + .precinct { margin-top: clamp(4rem, 8vw, 7rem); }
.precinct-media { margin: 0; }
.precinct-media .frame { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--hair); background: var(--parchment-deep); }
.precinct-media img { width: 100%; height: 100%; object-fit: cover; }
.precinct-media figcaption, .ref figcaption { font-family: var(--sans); font-size: 0.78rem; color: var(--stone); margin-top: 0.7rem; line-height: 1.5; }
.precinct h3 { font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; margin: 0 0 1rem; }
.precinct p { margin: 0 0 1rem; color: var(--ink-soft); }
.facts { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.facts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--hair); font-size: 1.02rem; }
.facts li span:last-child { font-family: var(--mono); font-size: 0.82rem; color: var(--stone); text-align: right; }
.facts li strong { font-weight: 500; }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-top: 0.8rem; }
.thumbs .frame { aspect-ratio: 3 / 2; }
@media (max-width: 56rem) {
  .precinct { grid-template-columns: 1fr; }
  .precinct.flip .precinct-media { order: 0; }
}

/* ---------- reference plate ---------- */
.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.ref { margin: 0; }
.ref img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--hair); }
@media (max-width: 40rem) { .refs { grid-template-columns: 1fr; } }

/* ---------- sizing table ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.sizing { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 44rem; }
.sizing th { font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); text-align: left; padding: 0.9rem 1rem 0.9rem 0; border-bottom: 1px solid var(--hair); }
.sizing td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.sizing td:first-child { font-weight: 500; white-space: nowrap; }
.sizing td.num { font-family: var(--mono); font-size: 0.84rem; white-space: nowrap; color: var(--ink); }
.sizing td.basis { color: var(--ink-soft); font-size: 0.98rem; max-width: 46ch; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.12rem 0.4rem; margin-right: 0.45rem; border: 1px solid currentColor; vertical-align: 0.1em; }
.tag-cited { color: oklch(0.45 0.08 150); }
.tag-assumed { color: var(--terra); }
.sources { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0.8rem 2rem; font-family: var(--sans); font-size: 0.82rem; color: var(--stone); line-height: 1.5; padding: 0; list-style: none; }
.sources li { padding-left: 1.8rem; text-indent: -1.8rem; }
.sources b { font-family: var(--mono); font-weight: 500; color: var(--ink); margin-right: 0.5rem; }

/* ---------- doorway cards ---------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.door { position: relative; display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--ink); background: var(--paper); overflow: hidden; }
.door:hover { color: var(--ink); }
.door .frame { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--ink); background: var(--parchment-deep); }
.door img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.door:hover img { transform: scale(1.035); }
.door-body { padding: 1.4rem 1.6rem 1.6rem; display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; align-items: end; }
.door h3 { margin: 0.3rem 0 0.3rem; font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.door p { margin: 0; color: var(--ink-soft); font-size: 1rem; grid-column: 1; }
.door .go { grid-row: 1 / span 3; grid-column: 2; font-size: 1.6rem; color: var(--ochre-bright); transition: transform 0.2s; }
.door:hover .go { transform: translateX(4px); }
.door .sheet-preview { padding: 1rem; height: 100%; display: grid; place-items: center; background: var(--paper); }
.door .sheet-preview svg { width: 100%; height: 100%; }
@media (max-width: 48rem) { .doors { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--parchment); padding-block: clamp(4rem, 8vw, 6rem) 2.5rem; position: relative; overflow: hidden; }
.site-footer a { color: var(--parchment); }
.site-footer a:hover { color: var(--ochre); }
.footer-mark { position: absolute; right: -2rem; bottom: -3.5rem; font-family: var(--deva); font-size: clamp(8rem, 20vw, 17rem); line-height: 1; color: oklch(0.965 0.012 85 / 0.045); pointer-events: none; user-select: none; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem; position: relative; }
.footer-grid h2 { font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin: 0 0 1rem; max-width: 18ch; }
.footer-grid p { color: oklch(0.965 0.012 85 / 0.7); margin: 0 0 1rem; max-width: 46ch; font-size: 1.04rem; }
.footer-grid .label { color: var(--ochre); display: block; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 0.9rem; }
.footer-grid li { padding: 0.35rem 0; }
.footer-grid li a { text-decoration: none; }
.footer-base { position: relative; margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--hair-on-ink); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--sans); font-size: 0.78rem; color: oklch(0.965 0.012 85 / 0.55); }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- drawings page ---------- */
.page-head { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
.page-title { font-weight: 500; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 1.4rem; max-width: 18ch; }
.sheet-index { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.sheet-index a { font-family: var(--mono); font-size: 0.78rem; padding: 0.55rem 0.85rem; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; background: var(--paper); }
.sheet-index a:hover { background: var(--ink); color: var(--paper); }
.sheet-index a b { font-weight: 500; color: var(--ochre-bright); margin-right: 0.4rem; }
.sheet-index a:hover b { color: var(--ochre); }
.sheets { padding-bottom: var(--section); }
.sheet { background: var(--paper); border: 2px solid var(--ink); margin-bottom: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 5.5rem; box-shadow: 0 1px 0 var(--hair), 0 24px 48px -32px oklch(0.225 0.012 60 / 0.35); }
.sheet { position: relative; overflow: hidden; }
.sheet svg { max-height: 78vh; cursor: zoom-in; }
.sheet table { font-size: 0.86rem; }
.sheet > div:first-of-type { overflow-x: auto; }
.sheet-zoom { position: absolute; z-index: 2; top: 0.8rem; right: 0.8rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; background: var(--paper); border: 1px solid var(--ink); padding: 0.4rem 0.6rem; cursor: pointer; color: var(--ink); }
.sheet-zoom:hover { background: var(--ink); color: var(--paper); }
.title-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); font-size: 0.92rem; }
.title-block > div { padding: 1rem 1.2rem; }
.title-block > div + div { border-left: 1px solid var(--ink); }
.title-block .label { display: block; margin-bottom: 0.45rem; }
.title-block .sched { font-family: var(--mono); font-size: 0.8rem; line-height: 1.75; }
.title-block .notes { font-family: var(--sans); font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft); }
.title-block .notes strong { font-weight: 500; color: var(--terra); }
.title-block .tb-title { font-size: 1.5rem; line-height: 1.1; margin: 0.1rem 0 0.6rem; font-weight: 500; }
.title-block .tb-row { display: flex; justify-content: space-between; gap: 0.6rem; font-family: var(--mono); font-size: 0.74rem; }
.title-block .tb-row b { font-weight: 500; color: var(--ochre-bright); }
.title-block .tb-warn { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--terra); margin-top: 0.6rem; }
@media (max-width: 56rem) {
  .title-block { grid-template-columns: 1fr; }
  .title-block > div + div { border-left: 0; border-top: 1px solid var(--ink); }
}

/* lightbox for sheets */
.lightbox { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: none; }
.lightbox.is-open { display: block; }
.lightbox-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border-bottom: 1px solid var(--ink); background: var(--paper); z-index: 2; font-family: var(--mono); font-size: 0.8rem; }
.lightbox-bar button { font: inherit; background: var(--ink); color: var(--paper); border: 0; padding: 0.5rem 0.8rem; cursor: pointer; }
.lightbox-stage { position: absolute; inset: 3.2rem 0 0; overflow: hidden; cursor: grab; touch-action: none; }
.lightbox-stage:active { cursor: grabbing; }
.lightbox-stage svg { position: absolute; left: 0; top: 0; transform-origin: 0 0; font-family: var(--mono); }
.lightbox-hint { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.72rem; color: var(--stone); background: var(--paper); padding: 0.3rem 0.6rem; border: 1px solid var(--hair); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.thumbs.one { grid-template-columns: 1fr; }
.thumbs.one .frame { aspect-ratio: 16 / 7; }
@media (max-width: 40rem) {
  .brand-name { font-size: 1rem; white-space: nowrap; }
  .brand .seal { width: 2rem; }
  .header-inner { min-height: 3.6rem; }
}
@media (max-width: 22rem) { .brand-name { font-size: 0.9rem; } }

/* ---------- Rev C additions ---------- */
.btn-on-ink { border-color: var(--parchment); color: var(--parchment); }
.btn-on-ink:hover { background: var(--parchment); color: var(--ink); }

.subnav { background: var(--ink-deep); color: var(--parchment); position: sticky; top: 4.2rem; z-index: 25; }
.subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.8rem; flex-wrap: wrap; }
.subnav .label { color: var(--ochre); }
.subnav nav { display: flex; gap: 1.4rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.05em; }
.subnav a { color: oklch(0.965 0.012 85 / 0.75); text-decoration: none; padding-block: 0.3rem; border-bottom: 1px solid transparent; }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--parchment); border-bottom-color: var(--ochre); }
.nav a.nav-delhi { padding-left: 1.4rem; border-left: 1px solid var(--hair); }
@media (max-width: 60rem) { .nav a.nav-delhi { padding-left: 0; border-left: 0; } .subnav { top: 3.6rem; } }

.doors-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 64rem) { .doors-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 48rem) { .doors-3 { grid-template-columns: 1fr; } }
.door h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }

.land-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.2rem, 2.5vw, 2rem); }
.land-card { margin: 0; }
.land-card .frame { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--hair); background: var(--parchment-deep); }
.land-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.land-card:hover img { transform: scale(1.03); }
.land-card figcaption { padding-top: 1rem; }
.land-card h3 { font-weight: 500; font-size: 1.45rem; line-height: 1.15; margin: 0.45rem 0 0.5rem; }
.land-card p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.land-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.land-wide h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
@media (max-width: 52rem) { .land-grid { grid-template-columns: 1fr; } .land-wide { grid-template-columns: 1fr; } }

.materials-band { background: var(--parchment-deep); }
.palette { list-style: none; margin: 0 0 clamp(3rem, 6vw, 4.5rem); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.palette li { display: grid; grid-template-columns: 2.6rem 1fr; grid-template-rows: auto auto auto; column-gap: 0.9rem; padding: 1.1rem 1rem 1.2rem 0; border-bottom: 1px solid var(--hair); }
.palette .chip { grid-row: 1 / span 3; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--hair); box-shadow: inset 0 -6px 10px oklch(0.2 0.02 60 / 0.15); }
.palette .mono { font-size: 0.7rem; color: var(--ochre-bright); letter-spacing: 0.08em; }
.palette strong { font-weight: 500; font-size: 1.12rem; line-height: 1.2; }
.palette li > span:last-child { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.4; margin-top: 0.2rem; }
@media (max-width: 60rem) { .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .palette { grid-template-columns: 1fr; } }
.climate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.climate > div { padding: 1.3rem 1.4rem 0 0; }
.climate > div + div { padding-left: 1.4rem; border-left: 1px solid var(--hair); }
.climate h3 { font-weight: 500; font-size: 1.28rem; line-height: 1.2; margin: 0.5rem 0; }
.climate p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 60rem) {
  .climate { grid-template-columns: 1fr 1fr; }
  .climate > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .climate > div:nth-child(n+3) { margin-top: 1.5rem; border-top: 1px solid var(--hair); }
}
@media (max-width: 34rem) { .climate { grid-template-columns: 1fr; } .climate > div, .climate > div + div { padding-left: 0; border-left: 0; } .climate > div + div { margin-top: 1.4rem; border-top: 1px solid var(--hair); } }

/* drawings page groups */
.sheet-group { margin: clamp(3rem, 6vw, 4.5rem) 0 1.4rem; display: flex; align-items: baseline; gap: 0.6rem 1.4rem; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 1.2rem; scroll-margin-top: 6rem; }
.sheet-group:first-child { margin-top: 0; }
.sheet-group h2 { margin: 0; font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.sheet-group p { margin: 0; font-family: var(--sans); font-size: 0.86rem; color: var(--stone); }

/* delhi */
.hero-delhi .hero-media img { object-position: 60% 45%; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.frame-sheet { aspect-ratio: auto !important; background: var(--paper) !important; border: 1px solid var(--ink) !important; padding: 1rem; }
.frame-sheet img { object-fit: contain !important; }
.facts-lg li { font-size: 1.1rem; padding: 0.9rem 0; }
.note { color: var(--ink-soft); margin-top: 1.4rem; }
@media (max-width: 56rem) { .split { grid-template-columns: 1fr; } }
.rishi { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.rishi-media { margin: 0; }
.rishi-media .frame { aspect-ratio: 16 / 11; overflow: hidden; border: 1px solid var(--hair-on-ink); }
.rishi-media img { width: 100%; height: 100%; object-fit: cover; }
.rishi-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.rishi-sides .label { color: var(--ochre); }
.rishi-sides ol { margin: 0.8rem 0 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--hair-on-ink); }
.rishi-sides li { padding: 0.7rem 0; border-bottom: 1px solid var(--hair-on-ink); font-size: 1.15rem; }
.rishi-sides em { display: block; font-family: var(--mono); font-style: normal; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: oklch(0.965 0.012 85 / 0.5); margin-top: 0.15rem; }
.rishi-sides p { grid-column: 1 / -1; margin: 0; font-size: 0.98rem; color: oklch(0.965 0.012 85 / 0.65); }
@media (max-width: 56rem) { .rishi { grid-template-columns: 1fr; } }
.floors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.floors li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 1.4rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid var(--hair); }
.floor-tag { font-size: 2.2rem; line-height: 1; font-weight: 500; color: var(--ochre-bright); }
.floors h3 { margin: 0 0 0.35rem; font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.floors p { margin: 0; color: var(--ink-soft); max-width: 70ch; }
.floors .mono { font-size: 0.82rem; color: var(--stone); white-space: nowrap; }
@media (max-width: 40rem) { .floors li { grid-template-columns: 3rem minmax(0, 1fr); } .floors .mono { grid-column: 2; } .floor-tag { font-size: 1.7rem; } }
.next-steps { margin-top: 2.5rem; padding: 1.6rem 1.8rem; background: var(--paper); border: 1px solid var(--ink); }
.next-steps ol { margin: 0.8rem 0 0; padding-left: 1.3rem; columns: 2; column-gap: 3rem; }
.next-steps li { margin-bottom: 0.5rem; break-inside: avoid; }
@media (max-width: 48rem) { .next-steps ol { columns: 1; } }

/* Rev C masterplan: full-width plan, legend in columns below */
.plan { grid-template-columns: 1fr; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); column-gap: 1.8rem; }
.legend li { border-bottom: 1px solid var(--hair); }
.legend .ld { max-height: none; margin-top: 0.35rem; font-size: 0.95rem; }
.legend li.is-active { background: linear-gradient(var(--ochre), var(--ochre)) left top / 100% 2px no-repeat; }
.legend button { padding: 1rem 0.2rem 1.1rem; }
.hero-delhi .hero-title { font-size: clamp(2.6rem, 5.4vw, 4.9rem); max-width: 14ch; }
.hero-delhi .hero-scrim { background:
    linear-gradient(90deg, var(--parchment) 0%, color-mix(in oklch, var(--parchment) 90%, transparent) 36%, color-mix(in oklch, var(--parchment) 25%, transparent) 66%, transparent 82%),
    linear-gradient(0deg, var(--parchment) 0%, transparent 32%); }
@media (max-width: 52rem) { .hero-delhi .hero-scrim { background: linear-gradient(0deg, var(--parchment) 0%, transparent 40%); } }

/* Rev D: getting around */
.routes-figure { margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.routes-figure .frame { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--ink); background: var(--parchment-deep); }
.routes-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.routes-figure figcaption { display: flex; justify-content: space-between; gap: 0.6rem 2rem; flex-wrap: wrap; font-family: var(--sans); font-size: 0.8rem; color: var(--stone); margin-top: 0.7rem; line-height: 1.5; }
.route-key { display: inline-flex; align-items: center; gap: 0.35rem 0.5rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.72rem; }
.route-key b { display: inline-block; width: 0.9rem; height: 0.3rem; background: var(--c); margin-left: 0.5rem; }
.route-key b:first-child { margin-left: 0; }
.move-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.move-grid .label { display: block; margin-bottom: 0.8rem; }
.times { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 1rem; }
.times th { font-family: var(--mono); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); text-align: right; padding: 0.7rem 0 0.7rem 0.8rem; border-bottom: 1px solid var(--hair); }
.times th:first-child, .times td:first-child { text-align: left; padding-left: 0; }
.times td { padding: 0.62rem 0 0.62rem 0.8rem; border-bottom: 1px solid var(--hair); text-align: right; font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }
.times td:first-child { font-family: var(--serif); font-size: 1.02rem; white-space: normal; }
.small-note { font-family: var(--sans); font-size: 0.84rem; color: var(--stone); line-height: 1.55; margin: 1rem 0 0; }
.small-note strong { color: var(--ink); font-weight: 500; }
.move-lists { margin: clamp(3rem, 6vw, 4.5rem) 0 0; }
.fixes, .amen { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.fixes li, .amen li { padding: 0.75rem 0; border-bottom: 1px solid var(--hair); color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; }
.fixes b { font-weight: 500; color: var(--ink); }
.amen li { padding-left: 1.4rem; position: relative; }
.amen li::before { content: ""; position: absolute; left: 0.1rem; top: 1.25rem; width: 0.55rem; height: 0.55rem; border: 1.5px solid var(--ochre); transform: rotate(45deg); }
@media (max-width: 56rem) { .move-grid { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .times th:nth-child(4), .times td:nth-child(4) { display: none; } }
