:root {
  --ph-gold: #ff9f0a;
  --ph-gold-dark: #d87d00;
  --ph-ink: #07101d;
  --ph-navy: #061226;
  --ph-text: #17202b;
  --ph-muted: #657080;
  --ph-line: rgba(7, 16, 29, .12);
  --ph-soft: #f6f8fb;
  --ph-green: #08795f;
  --ph-shadow: 0 18px 42px rgba(8, 18, 34, .12);
  --ph-hero: url("../images/resorts-hospitality/hero-resort.jpg");
  --ph-font: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.projects-hub-v1,
.projects-hub-v1 * { box-sizing: border-box; }

.projects-hub-v1 {
  overflow: hidden;
  color: var(--ph-text);
  background: #fff;
  font-family: var(--ph-font);
}

.page-template-page-projects .site-footer,
.page-template-archive-projects .site-footer,
.page-template-page-project-locations .site-footer { display: none; }

.ph-shell {
  width: min(100% - 72px, 1450px);
  margin-inline: auto;
}

.ph-hero {
  position: relative;
  min-height: 520px;
  padding: 108px 0 86px;
  color: #fff;
  background: #020713;
}

.ph-hero:before,
.ph-compact-hero:before,
.ph-detail-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(0, 4, 12, .98) 0%, rgba(0, 7, 18, .84) 35%, rgba(0, 7, 18, .2) 72%), linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 8, 16, .72)), var(--ph-hero);
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
  background-position: center, center, right center;
}

.ph-hero .ph-shell,
.ph-compact-hero .ph-shell,
.ph-detail-hero .ph-shell {
  position: relative;
  z-index: 1;
}

.ph-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .9);
  font-size: .78rem;
  font-weight: 800;
}

.ph-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ph-breadcrumb span:last-child,
.ph-breadcrumb span:nth-child(2) { color: var(--ph-gold); }

.ph-hero__copy {
  max-width: 760px;
}

.ph-hero h1,
.ph-compact-hero h1,
.ph-detail-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 5vw, 5.35rem);
  line-height: .98;
  font-weight: 900;
  letter-spacing: 0;
}

.ph-hero h1 span,
.ph-cta h2 span { color: var(--ph-gold); }

.ph-hero__copy > p,
.ph-compact-hero p,
.ph-detail-hero p:not(.ph-eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: 1.04rem;
  line-height: 1.68;
  font-weight: 500;
}

.ph-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, max-content));
  gap: 12px;
  margin-top: 28px;
}

.ph-hero__stats span {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 148px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  color: #fff;
  background: rgba(4, 13, 29, .62);
  font-size: .66rem;
  font-weight: 800;
}

.ph-hero__stats i,
.ph-mini-impact i,
.ph-impact-card i,
.ph-timeline i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ph-gold);
  border-radius: 50%;
  color: var(--ph-gold);
  font-size: .52rem;
  font-style: normal;
  font-weight: 900;
}

.ph-hero__stats strong {
  display: block;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}

.ph-filter-panel {
  position: relative;
  z-index: 4;
  margin-top: -54px;
  padding: 25px 34px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #08182f, #020918);
  box-shadow: 0 20px 50px rgba(0, 9, 22, .22);
}

.projects-archive-v1 .ph-filter-panel { margin-top: -34px; }

.ph-filter-panel h2,
.ph-panel h2,
.ph-section-row h2,
.ph-logo-strip h2,
.ph-delivery h2 {
  margin: 0;
  color: var(--ph-ink);
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.ph-filter-panel h2 {
  margin-bottom: 18px;
  color: #fff;
}

.ph-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr .95fr 160px 170px;
  gap: 16px;
  align-items: end;
}

.ph-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ph-filters label > span {
  color: rgba(255, 255, 255, .8);
  font-size: .68rem;
  font-weight: 900;
}

.ph-filters select,
.ph-filters input,
.ph-modal input,
.ph-modal textarea,
.ph-modal select {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, .03);
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
}

.ph-filters select option { color: #07101d; }
.ph-filters input::placeholder { color: rgba(255, 255, 255, .68); }

.ph-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid var(--ph-line);
  border-radius: 5px;
  color: var(--ph-ink);
  background: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.ph-button--gold {
  border-color: var(--ph-gold);
  background: linear-gradient(135deg, #ffb326, #f28a00);
}

.ph-button--dark {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(1, 9, 22, .88);
}

.ph-button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: transparent;
}

.ph-button--light { background: #fff; }

.ph-button:hover,
.ph-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(9, 18, 31, .16);
  outline: 3px solid rgba(255, 159, 10, .3);
  outline-offset: 3px;
}

.ph-top-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 18px;
  margin-top: 18px;
}

.ph-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 18, 31, .08);
}

.ph-panel__head p,
.ph-products-used p,
.ph-before-after > p {
  margin: 5px 0 0;
  color: var(--ph-text);
  font-size: .78rem;
  font-weight: 600;
}

.ph-map-layout {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 160px;
  gap: 18px;
  align-items: center;
  margin: 14px 0 18px;
}

.ph-india-map {
  position: relative;
  min-height: 286px;
  border-radius: 8px;
  background: radial-gradient(circle at 48% 60%, rgba(255, 159, 10, .16), transparent 38%), #f4f7fb;
}

.ph-map-state {
  position: absolute;
  display: grid;
  width: var(--s, 34px);
  height: var(--s, 34px);
  place-items: center;
  border: 0;
  border-radius: 45% 55% 48% 52%;
  color: #fff;
  background: #44536a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .65), 0 8px 18px rgba(10, 25, 44, .22);
  font-size: .56rem;
  font-weight: 900;
  cursor: pointer;
}

.ph-map-state:after {
  content: "";
  position: absolute;
  inset: auto auto -5px 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ph-gold);
  box-shadow: 0 0 16px rgba(255, 159, 10, .9);
  transform: translateX(-50%);
}

.ph-map-state:hover,
.ph-map-state:focus-visible,
.ph-map-state.is-active { background: #17283f; }

.ph-top-locations h3 {
  margin: 0 0 10px;
  color: var(--ph-ink);
  font-size: .72rem;
}

.ph-top-locations ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ph-top-locations a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ph-text);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
}

.ph-featured {
  display: grid;
  grid-template-columns: minmax(310px, .9fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: center;
}

.ph-eyebrow {
  margin: 0 0 14px;
  color: var(--ph-ink);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ph-featured h2 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 2.6vw, 2.65rem);
  text-transform: none;
}

.ph-location {
  margin: 0 0 12px;
  color: var(--ph-text);
  font-size: .86rem;
  font-weight: 700;
}

.ph-featured__content > p:not(.ph-eyebrow):not(.ph-location) {
  margin: 16px 0;
  color: var(--ph-text);
  font-size: .88rem;
  line-height: 1.68;
}

.ph-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ph-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  color: #6a4a00;
  background: #fff3dc;
  font-size: .66rem;
  font-weight: 900;
}

.ph-mini-impact,
.ph-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ph-mini-impact article,
.ph-impact-card {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-height: 92px;
  padding: 12px 10px;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.ph-mini-impact strong,
.ph-impact-card strong {
  color: var(--ph-green);
  font-size: 1rem;
}

.ph-mini-impact small,
.ph-impact-card small {
  color: var(--ph-text);
  font-size: .62rem;
  font-weight: 800;
}

.ph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.ph-featured__media {
  position: relative;
  min-width: 0;
}

.ph-featured__media > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.14 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #081226;
}

.ph-thumb-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(70px, 1fr);
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ph-thumb-row::-webkit-scrollbar,
.ph-project-grid::-webkit-scrollbar { display: none; }

.ph-thumb-row button {
  height: 66px;
  padding: 0;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 6px;
  background: #081226;
  cursor: pointer;
}

.ph-thumb-row button.is-active { border-color: var(--ph-gold); }
.ph-thumb-row img { width: 100%; height: 100%; object-fit: cover; }

.ph-round-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ph-ink);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.ph-round-nav--prev { left: -12px; }
.ph-round-nav--next { right: -12px; }

.ph-compare-impact {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.ph-comparison {
  --split: 50%;
  position: relative;
  height: 176px;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 7px;
  background: #07101d;
  touch-action: none;
}

.project-detail-v1 .ph-comparison { height: 320px; }

.ph-comparison img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph-comparison__before-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--split);
  overflow: hidden;
}

.ph-comparison__before-wrap img {
  width: calc(100% / (var(--split-num, .5)));
  max-width: none;
  filter: brightness(.58);
}

.ph-comparison__handle {
  position: absolute;
  top: 50%;
  left: var(--split);
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ph-ink);
  background: #fff;
  box-shadow: 0 0 0 999px rgba(255, 255, 255, 0);
  transform: translate(-50%, -50%);
  cursor: grab;
}

.ph-comparison:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 2;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.ph-comparison__label {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 4px;
  color: #fff;
  background: rgba(0, 0, 0, .65);
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ph-comparison__label--before { left: 12px; }
.ph-comparison__label--after { right: 12px; }

.ph-delivery {
  margin-top: 18px;
  padding: 26px 30px;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  text-align: center;
}

.ph-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.ph-timeline article {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--ph-text);
  font-size: .68rem;
  font-weight: 700;
}

.ph-timeline article:not(:last-child):after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 28px);
  width: calc(100% - 36px);
  border-top: 1px dashed rgba(7, 16, 29, .3);
}

.ph-timeline strong { font-size: .76rem; }

.ph-bottom-grid {
  display: grid;
  grid-template-columns: .78fr 1fr .62fr;
  gap: 18px;
  margin-top: 18px;
}

.ph-products-used [data-products-used],
.ph-detail-products [data-products-used] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.ph-product-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--ph-ink);
  font-size: .66rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.ph-product-card img {
  width: 72px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
}

.ph-product-card small {
  display: block;
  color: var(--ph-muted);
  font-size: .58rem;
}

.ph-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.ph-tabs button,
.ph-pagination button {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--ph-ink);
  background: #eef2f6;
  font: inherit;
  font-size: .62rem;
  font-weight: 900;
  cursor: pointer;
}

.ph-tabs button.is-active,
.ph-pagination button.is-active {
  color: #fff;
  background: var(--ph-ink);
}

.ph-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ph-gallery-item {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #081226;
  cursor: pointer;
}

.ph-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-gallery-item--video:after {
  content: "Video";
  position: absolute;
  inset: auto 8px 8px auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .72);
  font-size: .56rem;
  font-weight: 900;
}

.ph-testimonial [data-testimonial-slider] {
  min-height: 250px;
}

.ph-testimonial-card {
  display: grid;
  gap: 18px;
}

.ph-testimonial-card:before {
  content: "\201C";
  color: var(--ph-gold);
  font-size: 4rem;
  line-height: .7;
  font-weight: 900;
}

.ph-testimonial-card blockquote {
  margin: 0;
  color: var(--ph-text);
  font-size: .9rem;
  line-height: 1.6;
}

.ph-testimonial-card footer {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.ph-testimonial-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.ph-testimonial-card strong { display: block; color: var(--ph-ink); }
.ph-testimonial-card small { color: var(--ph-muted); font-size: .68rem; }

.ph-logo-strip {
  margin-top: 18px;
  text-align: center;
}

.ph-logo-strip > div {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  overflow: hidden;
}

.ph-client-logo {
  display: grid;
  min-height: 58px;
  place-items: center;
  color: #294067;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.ph-cta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 28px 34px;
  border-radius: 8px 8px 0 0;
  color: #fff;
  background: linear-gradient(90deg, rgba(4, 11, 25, .96), rgba(7, 18, 36, .9)), url("../images/government-infrastructure/application-roads.jpg") center/cover;
}

.ph-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.1;
}

.ph-cta p {
  max-width: 720px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .86);
}

.ph-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, .78);
  background: #020713;
}

.ph-footer .ph-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.ph-footer strong {
  color: #fff;
  font-size: 1.45rem;
}

.ph-footer p {
  margin: 0;
  line-height: 1.6;
}

.ph-results {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
}

.ph-results--archive { margin-top: 24px; }

.ph-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ph-section-row p {
  margin: 0;
  color: var(--ph-muted);
  font-size: .84rem;
  font-weight: 800;
}

.ph-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ph-project-card {
  overflow: hidden;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 16, 29, .08);
}

.ph-project-card__media {
  position: relative;
  height: 190px;
  background: #081226;
}

.ph-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-project-card__media span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #1b1300;
  background: var(--ph-gold);
  font-size: .62rem;
  font-weight: 900;
}

.ph-project-card__body {
  padding: 18px;
}

.ph-project-card h3 {
  margin: 0 0 8px;
  color: var(--ph-ink);
  font-size: 1.12rem;
}

.ph-project-card p,
.ph-project-card li {
  color: var(--ph-text);
  font-size: .78rem;
  line-height: 1.55;
}

.ph-project-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.ph-project-card li {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f4f8;
  font-weight: 800;
}

.ph-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.ph-no-results {
  padding: 22px;
  border: 1px dashed rgba(255, 159, 10, .7);
  border-radius: 8px;
  color: #724900;
  background: #fff8ea;
  font-weight: 900;
  text-align: center;
}

.ph-compact-hero,
.ph-detail-hero {
  position: relative;
  padding: 116px 0 72px;
  color: #fff;
  background: #020713;
}

.ph-compact-hero h1 { font-size: clamp(2.8rem, 4.6vw, 4.8rem); }

.ph-detail-hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 560px);
  gap: 54px;
  align-items: center;
}

.ph-detail-hero img {
  width: 100%;
  aspect-ratio: 1.24 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--ph-shadow);
}

.ph-detail-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.ph-detail-overview article,
.ph-detail-downloads,
.ph-detail-testimonials,
.ph-detail-faqs,
.ph-related,
.ph-next-prev,
.ph-detail-gallery,
.ph-detail-products {
  padding: 26px;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
}

.ph-detail-overview h2 {
  margin: 0 0 12px;
  color: var(--ph-ink);
}

.ph-detail-overview p:not(.ph-eyebrow) {
  margin: 0;
  color: var(--ph-text);
  line-height: 1.72;
}

.ph-detail-products,
.ph-detail-gallery,
.ph-detail-downloads,
.ph-detail-testimonials,
.ph-detail-faqs,
.ph-related,
.ph-next-prev { margin-top: 22px; }

.ph-download-grid,
.ph-faq-grid,
.ph-next-prev {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ph-download-card,
.ph-faq-card,
.ph-location-card {
  padding: 18px;
  border: 1px solid var(--ph-line);
  border-radius: 8px;
  background: #fff;
}

.ph-location-directory {
  padding: 30px 0 70px;
}

.ph-location-directory > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ph-location-card h3 {
  margin: 0 0 12px;
  color: var(--ph-ink);
}

.ph-location-card a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--ph-text);
  font-weight: 800;
  text-decoration: none;
}

.ph-lightbox,
.ph-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.ph-lightbox {
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 7, 18, .88);
}

.ph-lightbox[hidden],
.ph-modal[hidden] { display: none; }

.ph-lightbox img {
  max-width: min(100%, 1100px);
  max-height: 82vh;
  border-radius: 8px;
}

.ph-lightbox button,
.ph-modal__close {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ph-ink);
  background: #fff;
  cursor: pointer;
}

.ph-modal {
  display: grid;
  place-items: center;
  padding: 22px;
}

.ph-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 18, .72);
  backdrop-filter: blur(8px);
}

.ph-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: 90vh;
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background: #fff;
}

.ph-modal h2 {
  margin: 0 36px 10px 0;
  color: var(--ph-ink);
}

.ph-modal p { color: var(--ph-muted); line-height: 1.6; }

.ph-modal form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ph-modal label {
  display: grid;
  gap: 7px;
  color: var(--ph-ink);
  font-size: .74rem;
  font-weight: 900;
}

.ph-modal input,
.ph-modal textarea,
.ph-modal select {
  color: var(--ph-ink);
  border-color: var(--ph-line);
  background: #fff;
}

.ph-modal textarea,
.ph-modal .ph-modal__wide,
.ph-modal__message,
.ph-modal button[type="submit"] { grid-column: 1 / -1; }

.ph-modal textarea {
  min-height: 100px;
  padding: 12px 14px;
}

.ph-video-modal {
  display: grid;
  gap: 14px;
}

.ph-video-modal img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #081226;
}

.ph-modal__message {
  margin: 0;
  color: var(--ph-green);
  font-weight: 900;
}

.ph-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10001;
  max-width: 420px;
  padding: 15px 18px;
  border-radius: 8px;
  color: #fff;
  background: #092315;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.ph-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-project-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-project-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.projects-hub-v1 :where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid rgba(255, 159, 10, .36);
  outline-offset: 3px;
}

@media (max-width: 1240px) {
  .ph-shell { width: min(100% - 40px, 1450px); }
  .ph-filters { grid-template-columns: repeat(3, 1fr); }
  .ph-top-grid,
  .ph-featured,
  .ph-compare-impact,
  .ph-bottom-grid,
  .ph-detail-hero__grid,
  .ph-detail-overview,
  .ph-cta { grid-template-columns: 1fr; }
  .ph-project-grid,
  .ph-location-directory > div:last-child { grid-template-columns: repeat(2, 1fr); }
  .ph-timeline { grid-template-columns: repeat(3, 1fr); }
  .ph-timeline article:after { display: none; }
}

@media (max-width: 760px) {
  .ph-shell { width: min(100% - 24px, 1450px); }
  .ph-hero,
  .ph-compact-hero,
  .ph-detail-hero { padding-top: 92px; }
  .ph-hero h1,
  .ph-compact-hero h1,
  .ph-detail-hero h1 { font-size: 2.85rem; }
  .ph-hero__stats,
  .ph-filters,
  .ph-map-layout,
  .ph-mini-impact,
  .ph-impact-grid,
  .ph-products-used [data-products-used],
  .ph-detail-products [data-products-used],
  .ph-gallery-grid,
  .ph-project-grid,
  .ph-timeline,
  .ph-download-grid,
  .ph-faq-grid,
  .ph-location-directory > div:last-child,
  .ph-modal form { grid-template-columns: 1fr; }
  .ph-filter-panel {
    margin-top: -34px;
    padding: 18px;
  }
  .ph-panel { padding: 18px; }
  .ph-india-map { min-height: 240px; }
  .ph-comparison { height: 210px; }
  .ph-section-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .ph-cta {
    padding: 24px 18px;
    border-radius: 8px 8px 0 0;
  }
  .ph-modal { padding: 12px; }
  .ph-modal__panel { padding: 24px 16px; }
  .ph-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

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

  [data-project-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
