/* ============================================================
   Kshitij Infra Innovations — Design System
   Palette & character verified from reference (daftardecor.com):
   dark #161511 · light #f8f5f1 · bronze #c6a47e
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/manrope-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-italic-var.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --dark: #161511;
  --dark-2: #100f0c;
  --dark-3: #0b0a08;
  --light: #f8f5f1;
  --light-2: #f0eae1;
  --bronze: #c6a47e;
  --bronze-deep: #7a5c3c;
  --bronze-soft: rgba(198, 164, 126, 0.14);
  --paper: #f6f2ea;
  --paper-66: rgba(246, 242, 234, 0.66);
  --paper-45: rgba(246, 242, 234, 0.56);
  --ink: #17140f;
  --ink-64: rgba(23, 20, 15, 0.68);
  --ink-45: rgba(23, 20, 15, 0.62);
  --line-d: rgba(198, 164, 126, 0.22);
  --line-d-strong: rgba(198, 164, 126, 0.4);
  --line-l: rgba(23, 20, 15, 0.14);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --container: 1440px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --radius-lg: 28px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 650; }
::selection { background: var(--bronze); color: var(--dark); }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .section--dark :focus-visible, .site-footer :focus-visible, .site-header :focus-visible {
  outline-color: var(--paper);
}

/* ---------- Base type ---------- */
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
.h2 { font-size: clamp(1.9rem, 4.2vw, 3.6rem); }
.h3 { font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; }
.muted-dark { color: var(--paper-66); }
.muted-light { color: var(--ink-64); }
.bronze-text { color: var(--bronze); }
.on-light .bronze-text { color: var(--bronze-deep); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--bronze);
  flex: none;
}
.on-light .eyebrow, .section--light .eyebrow { color: var(--bronze-deep); }
.on-light .eyebrow::before, .section--light .eyebrow::before { background: var(--bronze-deep); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { position: relative; padding-block: clamp(5rem, 10vw, 9rem); }
.section--dark { background: var(--dark); color: var(--paper); }
.section--dark-2 { background: var(--dark-2); color: var(--paper); }
.section--light { background: var(--light); color: var(--ink); }
.section--light-2 { background: var(--light-2); color: var(--ink); }
.section__head { max-width: 820px; }
.section__head .display { margin-top: 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-fill: var(--paper);
  --btn-fill-fg: var(--dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 2.2rem;
  border: 1px solid rgba(246, 242, 234, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); border-color: var(--btn-fill); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
/* Solid dark button (light sections) */
.btn--dark { color: var(--light); background: var(--ink); border-color: var(--ink); --btn-fill: var(--bronze); --btn-fill-fg: var(--dark); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--dark); }
/* Solid bronze button — visible on dark AND light backgrounds */
.btn--bronze {
  color: var(--dark);
  background: var(--bronze);
  border-color: var(--bronze);
  --btn-fill: var(--paper);
  --btn-fill-fg: var(--dark);
}
.btn--bronze:hover, .btn--bronze:focus-visible { color: var(--dark); }
.on-light .btn { color: var(--ink); border-color: rgba(23, 20, 15, 0.35); }
.on-light .btn:hover, .on-light .btn:focus-visible { color: var(--btn-fill-fg); }
.on-light .btn--bronze { color: var(--dark); border-color: var(--bronze); }
/* .on-light .btn above outranks .btn--dark (0,2,0 vs 0,1,0) — restore the dark button's light text */
.on-light .btn--dark { color: var(--light); background: var(--ink); border-color: var(--ink); }
.on-light .btn--dark:hover, .on-light .btn--dark:focus-visible { color: var(--dark); border-color: var(--bronze); }

/* Button groups */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Animated underline links */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
}
.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.link:hover::after { transform: scaleX(0.35); }
.link span.arrow { transition: transform 0.4s var(--ease); }
.link:hover span.arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--paper);
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 12, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  border-bottom: 1px solid rgba(246, 242, 234, 0.07);
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.header__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.85rem; }
.brand__mark { width: 34px; height: 34px; flex: none; border-radius: 50%; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  font-size: 1.18rem;
  font-weight: 560;
  letter-spacing: 0.14em;
}
.brand__sub {
  margin-top: 0.24rem;
  font-size: 0.53rem;
  font-weight: 650;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--bronze);
}
.nav { display: none; }
@media (min-width: 1025px) {
  .nav { display: block; }
}
.nav__list { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem); }
.nav__link {
  position: relative;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-66);
  padding-block: 0.5rem;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover, .nav__link[aria-current='page'] { color: var(--paper); }
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); }
.header__cta { display: none; }
@media (min-width: 1025px) {
  .header__cta { display: inline-flex; padding: 0.78rem 1.6rem; }
}

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 12px;
  border: 1px solid rgba(246, 242, 234, 0.28);
  border-radius: 999px;
}
@media (min-width: 1025px) {
  .menu-toggle { display: none; }
}
.menu-toggle span {
  display: block;
  height: 1.6px;
  width: 100%;
  background: var(--paper);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--dark-3);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--pad) 3rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  font-weight: 460;
  line-height: 1.35;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.mobile-menu__link .idx {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  color: var(--bronze);
}
.mobile-menu__link:hover { color: var(--bronze); }
.mobile-menu__footer {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-d);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--paper-66);
}
.mobile-menu__footer a:hover { color: var(--bronze); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--paper);
  overflow: hidden;
  background: var(--dark-3);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
}
.hero__slide.is-active img { animation: kenburns 9s var(--ease) forwards; }
@keyframes kenburns {
  from { transform: scale(1.15); }
  to { transform: scale(1.02); }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 8, 0.62) 0%, rgba(11, 10, 8, 0.38) 42%, rgba(11, 10, 8, 0.88) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) var(--pad) 7.5rem;
}
.hero__eyebrow { color: var(--bronze); }
.hero h1 { margin-top: 1.6rem; max-width: 16ch; }
.hero__sub {
  margin-top: 1.8rem;
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--paper-66);
}
.hero__ctas { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__rail {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  right: var(--pad);
  bottom: 2rem;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.hero__progress { display: flex; gap: 0.55rem; align-items: center; }
.hero__tick {
  width: 34px;
  height: 2px;
  background: rgba(246, 242, 234, 0.22);
  overflow: hidden;
  border-radius: 2px;
}
.hero__tick i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero__tick.is-done i { transform: scaleX(1); }
.hero__tick.is-active i { animation: tickfill 6.5s linear forwards; }
@keyframes tickfill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  /* keep the cue a comfortable tap target on phones */
  min-height: 44px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-66);
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--bronze), transparent);
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 640px) {
  /* The 44px scroll line overflows the viewport on small screens — drop it and pad for notches */
  .hero__scroll::after { display: none; }
  .hero__scroll { letter-spacing: 0.24em; padding-right: 0.24em; color: var(--paper-66); }
  .hero__rail {
    bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    gap: 1rem;
  }
  .hero__tick { width: 24px; }
  .hero__inner { padding-bottom: 6.5rem; }
}
@media (max-width: 480px) {
  .hero__ctas, .cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__ctas .btn, .cta__actions .btn, .btn-row .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
}

/* ---------- Reveal system (JS-gated) ---------- */
.js [data-reveal] { opacity: 0; }
.js [data-reveal='up'] { transform: translateY(30px); }
.js [data-reveal='fade'] { transform: none; }
.js [data-split],
.js [data-hero-reveal] { opacity: 0; }
.js [data-stagger] > * { opacity: 0; }
.js.reduced [data-reveal],
.js.reduced [data-split],
.js.reduced [data-hero-reveal],
.js.reduced [data-stagger] > * {
  opacity: 1 !important;
  transform: none !important;
}
.js.reduced .split-line > * { transform: none !important; opacity: 1 !important; }

/* Split-text masks */
.split-mask { overflow: hidden; }
.split-line { display: block; overflow: hidden; }
.split-line > span, .split-line > * { display: inline-block; will-change: transform; }

/* ---------- Manifesto / intro ---------- */
.manifesto__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 1025px) {
  .manifesto__grid { grid-template-columns: 1.1fr 0.9fr; }
}
.manifesto__copy p + p { margin-top: 1.2rem; }
.manifesto__list { border-top: 1px solid var(--line-l); }
.manifesto__item {
  display: flex;
  gap: 1.4rem;
  padding: 1.5rem 0.2rem;
  border-bottom: 1px solid var(--line-l);
  align-items: baseline;
}
.manifesto__item .num {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  color: var(--bronze-deep);
  flex: none;
}
.manifesto__item p { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.45; max-width: 30ch; }

/* ---------- Full-bleed statement scene ---------- */
.scene-full {
  position: relative;
  min-height: min(88svh, 860px);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--dark-2);
}
.scene-full__media { position: absolute; inset: -12% 0; }
.scene-full__media img { width: 100%; height: 100%; object-fit: cover; }
.scene-full__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 8, 0.3) 0%, rgba(11, 10, 8, 0.12) 40%, rgba(11, 10, 8, 0.86) 100%);
}
.scene-full__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--pad) var(--pad) clamp(2.6rem, 6vw, 4.5rem);
}
.scene-full__caption {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-d-strong);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze);
  background: rgba(11, 10, 8, 0.35);
  backdrop-filter: blur(8px);
}
.scene-full h2 { max-width: 21ch; }

/* ---------- Services stack (sticky scenes) ---------- */
.stack { position: relative; }
.stack__intro { padding-block: clamp(4rem, 8vw, 7rem) clamp(2rem, 4vw, 3rem); }
.stack-scene {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.stack-scene:nth-child(odd) { background: var(--dark); }
.stack-scene:nth-child(even) { background: var(--dark-2); }
.stack-scene__inner {
  position: relative;
  display: grid;
  gap: 2.2rem;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 1025px) {
  .stack-scene__inner {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  .stack-scene:nth-child(even) .stack-scene__inner { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .stack-scene:nth-child(even) .stack-scene__media { order: 2; }
}
.stack-scene__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
@media (min-width: 1025px) {
  .stack-scene__media { aspect-ratio: auto; height: min(70svh, 640px); }
}
.stack-scene__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}
.stack-scene__media:hover img { transform: scale(1.1); }
.stack-scene__body .eyebrow { margin-bottom: 1.3rem; }
.stack-scene__body .h2 { max-width: 24ch; }
.stack-scene__body p { margin-top: 1.4rem; color: var(--paper-66); max-width: 52ch; }
.stack-scene__body .link { margin-top: 2rem; color: var(--bronze); }
.stack-scene__index {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  right: var(--pad);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-d-strong);
  pointer-events: none;
  user-select: none;
}

/* ---------- Quote scene ---------- */
.quote__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1025px) {
  .quote__grid { grid-template-columns: 1fr 1fr; }
}
.quote__mark { font-family: var(--font-display); color: var(--bronze-deep); font-size: 4rem; line-height: 0.6; display: block; margin-bottom: 1.6rem; }
.quote__text { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-style: italic; font-weight: 420; }
.quote__body { margin-top: 1.8rem; max-width: 54ch; }
.quote__author { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; }
.quote__author::before { content: ''; width: 44px; height: 1px; background: var(--bronze-deep); }
.quote__author strong { font-weight: 650; display: block; }
.quote__author span { font-size: 0.82rem; color: var(--ink-64); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.quote__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.quote__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
@media (min-width: 1025px) {
  .quote__media img { aspect-ratio: 4 / 4.6; }
}

/* ---------- Horizontal strip (word strip + states rail) ---------- */
.hstrip { position: relative; overflow: hidden; }
.hstrip__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding-inline: var(--pad);
}
@media (max-width: 1024.98px) {
  .hstrip__track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
  }
  .hstrip__track::-webkit-scrollbar { display: none; }
  .hstrip__track > * { scroll-snap-align: center; }
}
.hstrip__panel {
  position: relative;
  flex: none;
  width: min(78vw, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-2);
}
@media (min-width: 1025px) {
  .hstrip { padding-block: 3rem; }
  .hstrip[data-hscroll] { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 2rem; }
  .hstrip[data-hscroll] .hstrip__track { align-items: center; }
  .hstrip__panel { width: min(42vw, 560px); }
  .hstrip__panel--wide { width: min(56vw, 760px); }
}
@media (max-width: 1024.98px) {
  .hstrip .state-card { flex: none; width: min(78vw, 340px); }
}
.hstrip__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 1.1s var(--ease);
}
.hstrip__panel:hover img { transform: scale(1.06); }
.hstrip__panel--media { aspect-ratio: 4 / 3; }
.hstrip__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.8rem 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(11, 10, 8, 0.85));
  color: var(--paper);
}
.hstrip__body h3 { margin-bottom: 0.5rem; }
.hstrip__body p { color: var(--paper-66); font-size: 0.95rem; max-width: 34ch; }
.hstrip__num {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  color: var(--bronze);
  margin-bottom: 0.7rem;
}

/* State rail cards (presence teaser + presence grid) — per-state gradient tiles */
.state-card {
  --sc-1: #1d3a52; --sc-2: #142837; --sc-num: #7fb2d9;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: space-between;
  min-height: 300px;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(246, 242, 234, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--sc-1) 0%, var(--sc-2) 62%);
  color: var(--paper);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
/* Diagonal striped pattern overlay */
.state-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 13px,
    rgba(246, 242, 234, 0.045) 13px 14px
  );
  transition: opacity 0.5s var(--ease);
  opacity: 0.9;
}
/* Soft radial glow in the corner */
.state-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sc-num), transparent 70%);
  opacity: 0.16;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.state-card:hover {
  border-color: var(--sc-num);
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}
.state-card:hover::before { opacity: 1; }
.state-card:hover::after { opacity: 0.26; transform: scale(1.15); }
.state-card__num { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.26em; color: var(--sc-num); }
.state-card__name { font-family: var(--font-display); font-variation-settings: 'SOFT' 0, 'WONK' 0; font-size: 1.7rem; font-weight: 500; line-height: 1.15; color: var(--paper); }
.state-card__line { color: rgba(246, 242, 234, 0.78); font-size: 0.95rem; }
.state-card__desc { color: rgba(246, 242, 234, 0.72); font-size: 0.92rem; line-height: 1.6; }
.state-card .link { color: var(--sc-num); }
/* Pointer-driven pixie dust (canvas is injected on first hover) */
.state-card__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.state-card:hover .state-card__dust { opacity: 1; }
/* Per-state palettes (order matches both the home rail and the presence grid) */
.state-card:nth-child(1)  { --sc-1: #1d3a52; --sc-2: #142837; --sc-num: #8fbadf; } /* J&K — glacier blue */
.state-card:nth-child(2)  { --sc-1: #4a3220; --sc-2: #2e1f13; --sc-num: #d9a86e; } /* Delhi — sandstone */
.state-card:nth-child(3)  { --sc-1: #4d2a1e; --sc-2: #31180f; --sc-num: #e08a5f; } /* Rajasthan — terracotta */
.state-card:nth-child(4)  { --sc-1: #1d4032; --sc-2: #122b21; --sc-num: #74c49b; } /* UP — emerald */
.state-card:nth-child(5)  { --sc-1: #333d1a; --sc-2: #212811; --sc-num: #b3c46e; } /* Haryana — moss */
.state-card:nth-child(6)  { --sc-1: #332447; --sc-2: #221731; --sc-num: #ab8ed6; } /* Karnataka — royal purple */
.state-card:nth-child(7)  { --sc-1: #47202f; --sc-2: #2f1420; --sc-num: #d97fa0; } /* Telangana — rose */
.state-card:nth-child(8)  { --sc-1: #4a3417; --sc-2: #30210d; --sc-num: #dbb061; } /* Maharashtra — saffron */
.state-card:nth-child(9)  { --sc-1: #232c4d; --sc-2: #161d35; --sc-num: #8d9cd9; } /* MP — indigo */
.state-card:nth-child(10) { --sc-1: #173d3d; --sc-2: #0f2929; --sc-num: #6fc2bf; } /* Gujarat — teal */
.state-card:nth-child(11) { --sc-1: #1e3a2a; --sc-2: #13271c; --sc-num: #7cc296; } /* Uttarakhand — pine */
@media (min-width: 1025px) {
  .hstrip .state-card { width: min(26vw, 340px); flex: none; }
}

/* ---------- Partners ---------- */
.partners { text-align: center; }
.partners__row {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.partner-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--line-l);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-64);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.partner-chip:hover { border-color: var(--bronze-deep); color: var(--ink); transform: translateY(-3px); }

/* ---------- Stats ---------- */
.stats__grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr;
  margin-top: 3.4rem;
}
@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 5rem); }
}
.stat { border-top: 1px solid var(--line-l); padding-top: 1.6rem; }
.stat__num {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 460;
  line-height: 1;
  color: var(--bronze-deep);
}
.stat__label { margin-top: 1rem; font-size: 0.98rem; color: var(--ink-64); max-width: 30ch; }
.stat__label strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.3rem; font-weight: 650; }

/* ---------- Careers band ---------- */
.careers__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1025px) {
  .careers__inner { grid-template-columns: 1.2fr auto; }
}
.careers p { margin-top: 1rem; color: var(--paper-66); max-width: 56ch; }

/* ---------- Closing CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--dark-2);
}
.cta__media { position: absolute; inset: -14% 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 8, 0.68), rgba(11, 10, 8, 0.82)); }
.cta__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(6rem, 12vw, 10rem);
  max-width: 900px;
}
.cta h2 { margin-top: 1.3rem; }
.cta p { margin-top: 1.5rem; color: var(--paper-66); max-width: 48ch; }
.cta__actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-3);
  color: var(--paper);
  padding-top: clamp(4rem, 8vw, 6rem);
  font-size: 0.95rem;
}
.footer__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
}
.footer__blurb { margin-top: 1.6rem; color: var(--paper-45); max-width: 36ch; font-size: 0.92rem; }
.footer__col h3 {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.4rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col a { color: var(--paper-66); transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--bronze); }
.footer__contact a { display: block; margin-bottom: 0.6rem; color: var(--paper-66); }
.footer__contact a:hover { color: var(--bronze); }
.footer__contact p { color: var(--paper-45); margin-top: 0.8rem; font-size: 0.9rem; }
.footer__states { columns: 2; column-gap: 1.4rem; }
.footer__bottom {
  border-top: 1px solid rgba(246, 242, 234, 0.08);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--paper-45);
}
.footer__bottom a { color: var(--paper-66); }
.footer__bottom a:hover { color: var(--bronze); }

/* ---------- Floating contact button ---------- */
.float-mail {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bronze);
  color: var(--dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.float-mail:hover { transform: scale(1.08); background: var(--paper); }
.float-mail svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .float-mail { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* ---------- Subpage hero ---------- */
.page-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--dark-2);
}
.page-hero__media { position: absolute; inset: -10% 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 8, 0.66) 0%, rgba(11, 10, 8, 0.4) 45%, rgba(11, 10, 8, 0.9) 100%); }
.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: calc(var(--header-h) + 4.5rem) var(--pad) clamp(2.6rem, 6vw, 4rem);
}
.page-hero h1 { margin-top: 1.2rem; max-width: 20ch; }
.page-hero__sub { margin-top: 1.4rem; max-width: 62ch; color: var(--paper-66); }

/* ---------- Prose (about/privacy) ---------- */
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.35rem; }
.prose p:last-child { margin-bottom: 0; }
.prose .display { margin-bottom: 1.6rem; }
.prose-lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.65; }

/* About: invest lines */
.invest-lines { border-top: 1px solid var(--line-l); margin-top: 2.6rem; }
.invest-lines li {
  display: grid;
  gap: 0.4rem 1.6rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-l);
  grid-template-columns: 1fr;
  align-items: baseline;
}
@media (min-width: 768px) {
  .invest-lines li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.invest-lines .dont { color: var(--ink-45); font-size: 1.05rem; }
.invest-lines .do { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; }
.invest-lines .do em { font-style: italic; color: var(--bronze-deep); }

/* Leadership */
.leader__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
.leader__card {
  border: 1px solid var(--line-l);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  background: var(--light-2);
  position: static; /* sticky only on desktop — see below */
}
@media (min-width: 1025px) {
  .leader__grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .leader__card { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.leader__name { font-family: var(--font-display); font-size: 1.9rem; font-weight: 520; margin-top: 0.2rem; }
.leader__role { margin-top: 0.5rem; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze-deep); }
.leader__message p { margin-bottom: 1.35rem; }
.leader__closing { border-top: 1px solid var(--line-l); padding-top: 1.6rem; margin-top: 2rem; }

/* Values grid */
.values__grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 768px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}
.value-card {
  border: 1px solid var(--line-l);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  background: #fff;
}
.value-card h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 540; margin-bottom: 0.7rem; }
.value-card p { font-size: 0.95rem; color: var(--ink-64); }
.value-card .num { display: block; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.26em; color: var(--bronze-deep); margin-bottom: 1rem; }

/* ---------- Services page ---------- */
.services-layout { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; }
@media (min-width: 1025px) {
  .services-layout { grid-template-columns: 260px minmax(0, 1fr); }
}
.services-index { display: none; }
@media (min-width: 1025px) {
  .services-index {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
    border-left: 1px solid var(--line-l);
    padding-left: 1.6rem;
  }
}
.services-index a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-45);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.services-index a:hover, .services-index a.is-active { color: var(--bronze-deep); padding-left: 0.5rem; }
.service-block { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid var(--line-l); scroll-margin-top: calc(var(--header-h) + 2rem); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block__media { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 2.2rem; }
.service-block__media img { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; transition: transform 1.1s var(--ease); }
.service-block__media--natural img { aspect-ratio: auto; height: auto; }
.service-block__media:hover img { transform: scale(1.04); }
.service-block .h2 { margin-top: 1.2rem; }
.service-block__tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--bronze-deep); margin-top: 0.8rem; }
.service-block__body { margin-top: 1.6rem; color: var(--ink-64); max-width: 66ch; }
.service-block__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.service-chip {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-l);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-64);
}

/* ---------- Projects gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.4rem; }
.filter-btn {
  padding: 0.68rem 1.35rem;
  border: 1px solid var(--line-l);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-64);
  transition: all 0.35s var(--ease);
}
.filter-btn:hover { border-color: var(--bronze-deep); color: var(--ink); }
.filter-btn[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--light); }
.gallery {
  margin-top: 2.6rem;
  columns: 1;
  column-gap: 1.2rem;
}
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1025px) { .gallery { columns: 3; } }
.gallery__item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--light-2);
}
.gallery__item.is-hidden { display: none; }
.gallery__item button { display: block; width: 100%; text-align: left; }
.gallery__item img { width: 100%; transition: transform 1s var(--ease); }
.gallery__item:hover img { transform: scale(1.045); }
.gallery__item figcaption {
  padding: 1rem 1.4rem 1.5rem; /* extra bottom/side padding keeps text clear of the rounded clip */
  font-size: 0.84rem;
  color: var(--ink-64);
  background: #fff;
  line-height: 1.45;
}
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1.2rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(11, 10, 8, 0.78));
  color: var(--paper);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  pointer-events: none;
}
.gallery__caption .tag { font-size: 0.62rem; font-weight: 650; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); }
.gallery__empty { padding: 3rem 0; color: var(--ink-64); }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1200px);
  width: 100%;
  margin: auto;
}
.lightbox::backdrop { background: rgba(8, 7, 6, 0.88); backdrop-filter: blur(6px); }
.lightbox__frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; display: block; margin: 0 auto; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0.2rem 0;
  color: var(--paper);
  font-size: 0.92rem;
}
.lightbox__close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 242, 234, 0.3);
  border-radius: 999px;
  color: var(--paper);
  flex: none;
}
.lightbox__close:hover { background: var(--paper); color: var(--dark); }

/* ---------- Presence page ---------- */
.presence-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 768px) { .presence-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .presence-grid { grid-template-columns: repeat(3, 1fr); } }
.presence-card {
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  background: linear-gradient(165deg, rgba(198, 164, 126, 0.08), rgba(198, 164, 126, 0.01) 60%);
  scroll-margin-top: calc(var(--header-h) + 2rem);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.presence-card:hover { border-color: var(--line-d-strong); transform: translateY(-4px); }
.presence-card h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 520; margin: 0.7rem 0 0.4rem; }
.presence-card .tagline { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); }
.presence-card p { color: var(--paper-66); font-size: 0.94rem; margin-top: 0.9rem; }
.presence-card .num { font-size: 0.68rem; font-weight: 650; letter-spacing: 0.26em; color: var(--paper-45); }

/* Network svg decorative */
.network { opacity: 0.5; pointer-events: none; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  gap: clamp(2.2rem, 4vw, 3.4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 1025px) {
  .contact-layout { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
}

.contact-panel { display: flex; flex-direction: column; align-items: flex-start; }
.contact-panel h2 { margin-top: 1.1rem; max-width: 15ch; }
.contact-panel__lede { margin-top: 1.1rem; max-width: 46ch; color: var(--ink-64); font-size: 1.02rem; }

.contact-channels { display: grid; margin-top: 2.4rem; width: 100%; border-top: 1px solid var(--line-l); }
.contact-channel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-l);
}
.contact-channel__icon {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(198, 164, 126, 0.32);
  background: var(--bronze-soft);
  color: var(--bronze-deep);
}
.contact-channel__icon svg { width: 20px; height: 20px; }
.contact-channel__label {
  grid-column: 2;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}
.contact-channel__value {
  grid-column: 2;
  display: inline-block;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}
a.contact-channel__value { min-height: 44px; transition: color 0.3s var(--ease); }
a.contact-channel__value:hover, a.contact-channel__value:focus-visible { color: var(--bronze-deep); }
.contact-channel__hint { grid-column: 2; color: var(--ink-64); font-size: 0.86rem; }

/* Mini map — decorative facade until the user asks for Google */
.map-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-l);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 20, 15, 0.08);
}
.map-card__frame {
  position: relative;
  aspect-ratio: 21 / 8;
  min-height: 300px;
  background: var(--dark-2);
  overflow: hidden;
}
@media (max-width: 767px) {
  .map-card__frame { aspect-ratio: 4 / 3; min-height: 240px; }
}
.map-card__facade { position: absolute; inset: 0; }
.map-card__art, .map-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-card__pin {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 2;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -100%) rotate(-45deg);
  border-radius: 50% 50% 50% 4px;
  background: var(--bronze);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.map-card__pin::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dark-2);
}
.map-card__pulse {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 1;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(198, 164, 126, 0.7);
  animation: mapPulse 2.8s var(--ease) infinite;
}
@keyframes mapPulse {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(3.4); opacity: 0; }
}
.map-card__load {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  z-index: 3;
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--dark);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.map-card__load svg { width: 16px; height: 16px; flex: none; }
.map-card__load:hover, .map-card__load:focus-visible { background: var(--paper); border-color: var(--paper); color: var(--dark); }
.map-card__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #e9e4db; }
.map-card__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.2rem;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--line-l);
}
.map-card__addr { font-size: 0.88rem; line-height: 1.55; color: var(--ink-64); }
.map-card__addr strong { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.map-card__bar .link { color: var(--bronze-deep); flex: none; }
.map-card__note { padding: 0 1.25rem 1.1rem; font-size: 0.76rem; color: var(--ink-45); }

/* Compose-by-email card (no backend — it prepares a mailto) */
.compose-card {
  padding: clamp(1.35rem, 3vw, 2.3rem);
  border: 1px solid var(--line-l);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 20, 15, 0.08);
}
.compose-card h3 { margin-top: 0.9rem; max-width: 22ch; }
.compose-card__lede { margin-top: 0.75rem; max-width: 44ch; font-size: 0.94rem; color: var(--ink-64); }

.compose__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 1.1rem; margin-top: 1.7rem; }
@media (min-width: 560px) { .compose__form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.64rem; font-weight: 650; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-l);
  border-radius: 12px;
  background: var(--light);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field select {
  padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--bronze-deep) 50%), linear-gradient(135deg, var(--bronze-deep) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(122, 92, 60, 0.45); background: #fff; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  background: #fff;
  border-color: var(--bronze-deep);
  box-shadow: 0 0 0 3px var(--bronze-soft);
}
.field ::placeholder { color: var(--ink-45); opacity: 1; }

.compose__send {
  width: 100%;
  min-height: 56px;
  margin-top: 0.5rem;
  padding-inline: 1.5rem;
  font-size: 0.8rem;
}
.compose__send svg { width: 17px; height: 17px; flex: none; }
.compose__send .compose__plane { transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.compose__send:hover .compose__plane { transform: translate(3px, -3px); }
.compose__send.is-sending { pointer-events: none; }
.compose__send.is-sending .compose__plane { animation: planeFly 0.9s var(--ease) forwards; }
@keyframes planeFly {
  0% { transform: translate(0, 0); opacity: 1; }
  45% { transform: translate(10px, -10px) rotate(6deg); opacity: 1; }
  100% { transform: translate(30px, -30px) rotate(12deg); opacity: 0; }
}

.compose__note { margin-top: 0.75rem; font-size: 0.78rem; line-height: 1.55; color: var(--ink-45); }
.compose__status { font-size: 0.82rem; line-height: 1.5; color: var(--bronze-deep); }

.compose__sent {
  display: none;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(122, 92, 60, 0.3);
  border-radius: 14px;
  background: var(--light-2);
}
.compose__sent.is-on { display: flex; animation: sentIn 0.45s var(--ease) both; }
@keyframes sentIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.compose__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--bronze);
  color: var(--dark);
}
.compose__check svg { width: 18px; height: 18px; }
.compose__check svg path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.compose__sent.is-on .compose__check svg path { animation: checkDraw 0.5s 0.12s var(--ease) forwards; }
@keyframes checkDraw { to { stroke-dashoffset: 0; } }
.compose__sent-title { font-size: 0.92rem; font-weight: 650; color: var(--ink); }
.compose__sent-text { margin-top: 0.2rem; font-size: 0.85rem; line-height: 1.55; color: var(--ink-64); }
.compose__sent-text a { color: var(--bronze-deep); text-decoration: underline; text-underline-offset: 3px; }
.compose__copy {
  padding: 0.25rem 0;
  margin: -0.25rem 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--bronze-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.compose__copy:hover, .compose__copy:focus-visible { color: var(--ink); }
.compose__copy.is-done { color: var(--ink); text-decoration: none; }

/* Map band — full width beneath the two columns */
.map-band { margin-top: clamp(2.6rem, 5vw, 4rem); }
@media (max-width: 639px) {
  .compose-card { padding: 1.25rem 1.15rem; }
  .compose__form { margin-top: 1.35rem; }
}

/* ---------- Legal (privacy) ---------- */
.legal__layout { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1025px) {
  .legal__layout { grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
}
.legal__aside { display: grid; gap: 1.3rem; }
@media (min-width: 1025px) {
  .legal__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.legal__updated { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.8; color: var(--ink-45); }
.legal__updated strong { color: var(--bronze-deep); font-weight: 650; letter-spacing: 0.18em; }
.legal__toc-details { padding-top: 0.9rem; border-top: 1px solid var(--line-l); }
.legal__toc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze-deep);
}
.legal__toc-summary::-webkit-details-marker { display: none; }
.legal__toc-summary::after { content: '+'; font-size: 1.1rem; letter-spacing: 0; line-height: 1; }
.legal__toc-details[open] .legal__toc-summary::after { content: '–'; }
.legal__toc-count { margin-left: auto; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--ink-45); }
.legal__toc-title { display: none; }
@media (min-width: 1025px) {
  .legal__toc-details { padding-top: 0; border-top: 0; }
  .legal__toc-summary { display: none; }
  .legal__toc-details > .legal__toc { display: block; }
  .legal__toc-title { display: block; }
}

.legal__toc-title { font-size: 0.66rem; font-weight: 650; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bronze-deep); margin-bottom: 0.7rem; }
.legal__toc ol { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.legal__toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-l);
  border-radius: 999px;
  font-size: 0.79rem;
  line-height: 1.3;
  color: var(--ink-64);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.legal__toc a:hover, .legal__toc a:focus-visible { border-color: var(--bronze-deep); color: var(--ink); }
.legal__toc a.is-active { border-color: var(--bronze-deep); color: var(--bronze-deep); background: var(--bronze-soft); }
.legal__toc-num { font-size: 0.64rem; font-weight: 650; letter-spacing: 0.12em; color: var(--bronze-deep); opacity: 0.85; }
@media (min-width: 1025px) {
  .legal__toc ol { flex-direction: column; flex-wrap: nowrap; gap: 0; border-left: 1px solid var(--line-l); }
  .legal__toc a {
    min-height: 0;
    padding: 0.62rem 0 0.62rem 1rem;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    margin-left: -1px;
    font-size: 0.86rem;
  }
  .legal__toc a.is-active { background: linear-gradient(90deg, var(--bronze-soft), rgba(198, 164, 126, 0) 85%); }
}
.legal__help { display: grid; gap: 0.3rem; padding-top: 1.1rem; border-top: 1px solid var(--line-l); }
.legal__help p { font-size: 0.8rem; color: var(--ink-45); }
.legal__help a { font-size: 0.92rem; color: var(--bronze-deep); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

.legal__body { min-width: 0; }

.legal__summary {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line-l);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}.legal__chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.legal__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-l);
  border-radius: 999px;
  background: var(--light-2);
  font-size: 0.79rem;
  color: var(--ink);
}
.legal__chips li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze-deep); flex: none; }

.prose--legal { max-width: 70ch; counter-reset: legal; }
.legal__section { counter-increment: legal; scroll-margin-top: calc(var(--header-h) + 2rem); }
.legal__section > h2 {
  margin: clamp(2.2rem, 4vw, 3rem) 0 1rem;
  padding-top: clamp(1.4rem, 2.5vw, 2rem);
  border-top: 1px solid var(--line-l);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 520;
  line-height: 1.2;
}
.legal__section:first-of-type > h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__section > h2::before {
  content: counter(legal, decimal-leading-zero);
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  color: var(--bronze-deep);
}
.prose--legal p { margin-bottom: 1.1rem; }
.prose--legal strong { color: var(--ink); }
.prose--legal ul { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.prose--legal ul li { position: relative; padding-left: 1.45rem; }
.prose--legal ul li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bronze-deep);
}
.prose--legal a { color: var(--bronze-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose--legal a:hover { color: var(--ink); }

.legal__callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
  margin-top: 1.6rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line-l);
  border-radius: var(--radius);
  background: var(--light-2);
}
.legal__callout p { margin: 0; font-size: 0.9rem; color: var(--ink-64); }
.legal__callout .btn { flex: none; }
@media (max-width: 639px) {
  .legal__callout { flex-direction: column; align-items: stretch; }
  .contact-channel__value { font-size: 1.05rem; }
}

/* ---------- 404 ---------- */
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--paper); }
.error-page .code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 11rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-d-strong); }
.error-page h1 { margin-top: 1.4rem; }
.error-page p { margin-top: 1.2rem; color: var(--paper-66); max-width: 46ch; }
.error-page .btn { margin-top: 2.4rem; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--pad);
  z-index: 200;
  padding: 0.9rem 1.5rem;
  background: var(--bronze);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 0 0 12px 12px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Page-specific additions
   ============================================================ */

/* Presence page — state cards in a grid */
.state-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 768px) { .state-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1025px) { .state-grid { grid-template-columns: repeat(3, 1fr); } }
.state-grid .state-card {
  width: auto;
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.state-grid .state-card p { font-size: 0.92rem; }

/* Projects — featured initiative band */
.featured__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; margin-top: 2.6rem; align-items: center; }
@media (min-width: 1025px) { .featured__grid { grid-template-columns: 1fr 1fr; } }
.featured__media { border-radius: var(--radius-lg); overflow: hidden; }
.featured__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Lightbox caption inherits bar typography */
.lightbox__caption { font-size: 0.92rem; color: var(--paper); }

/* Reduced motion — stop the slideshow ken burns */
@media (prefers-reduced-motion: reduce) {
  .hero__slide img { animation: none !important; transform: none !important; }
  .hero__tick i { animation: none !important; }
  .map-card__pulse { animation: none !important; opacity: 0; }
  .compose__sent.is-on, .compose__sent.is-on .compose__check svg path { animation: none !important; }
  .compose__sent.is-on .compose__check svg path { stroke-dashoffset: 0; }
  .compose__send.is-sending .compose__plane { animation: none !important; }
}
