/* ============================================================
   PROJECT SINGLE PAGE — project-single.css
   Orchid Business Group PLC
   ============================================================ */

/* ─── Design tokens (mirrors style.css) ─── */
:root {
  --ps-dark:      #0D182B;
  --ps-navy:      #192B54;
  --ps-blue:      #2A388B;
  --ps-blue-v:    #3D91F9;
  --ps-pink:      #DF3894;
  --ps-gold:      #C9922A;
  --ps-white:     #FFFFFF;
  --ps-off:       #F6F8FC;
  --ps-text:      #1a2540;
  --ps-muted:     #5a6a8a;
  --ps-border:    rgba(13,24,43,.10);
  --ps-r:         16px;
  --ps-r-lg:      24px;
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.ps-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
}
.ps-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 50%;
  transform-origin: center;
  animation: psKenBurns 22s ease-in-out infinite alternate;
}
@keyframes psKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}
.ps-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    175deg,
    rgba(13,24,43,.35)  0%,
    rgba(13,24,43,.70) 45%,
    rgba(13,24,43,.97) 100%
  );
}
.ps-hero-particles {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1; overflow: hidden;
}
.ps-hero-inner {
  position: relative; z-index: 2;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* Breadcrumb */
.ps-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.7);
  padding: 140px 0 32px;
  opacity: 0;
  animation: psFadeSlide .6s .2s ease forwards;
}
.ps-breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.ps-breadcrumb a:hover { color: #fff; }
.ps-breadcrumb span { color: #fff; }
.ps-breadcrumb i { font-size: .65rem; color: rgba(255,255,255,.4); }

/* Tags */
.ps-hero-tags {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px;
  opacity: 0;
  animation: psFadeSlide .6s .35s ease forwards;
}
.ps-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid currentColor;
}
.ps-tag--infra  { color: var(--ps-blue-v); border-color: var(--ps-blue-v); }
.ps-tag--intl   { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }
.ps-tag--active { color: #4ade80; border-color: #4ade80; }
.ps-tag--done   { color: #4ade80; border-color: #4ade80; }

/* Hero title */
.ps-hero-title {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 24px;
}
.ps-title-line {
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: psTitleReveal .9s ease forwards;
}
.ps-title-line:nth-child(2) { animation-delay: .15s; }
.ps-title-line:nth-child(3) { animation-delay: .30s; }
.ps-title-line--accent      { color: var(--ps-pink); }

@keyframes psTitleReveal {
  to { clip-path: inset(0 0% 0 0); }
}
@keyframes psFadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero sub */
.ps-hero-sub {
  max-width: 640px;
  font-size: 1.1rem; line-height: 1.7;
  color: rgba(255,255,255,.82);
  margin-bottom: 0;
  opacity: 0;
  animation: psFadeSlide .7s .5s ease forwards;
}

/* Hero stats strip */
.ps-hero-stats {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.10);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  margin-top: 40px;
  padding: 24px 32px;
  gap: 0;
  opacity: 0;
  animation: psFadeSlide .7s .7s ease forwards;
}
.ps-hs-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 16px;
}
.ps-hs-num {
  font-size: 2rem; font-weight: 900;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
}
.ps-hs-lbl {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
}
.ps-hs-sep {
  width: 1px;
  background: rgba(255,255,255,.15);
  margin: 4px 0;
  flex-shrink: 0;
}

/* Scroll indicator */
.ps-scroll-indicator {
  position: absolute; bottom: 0; right: 60px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  z-index: 5;
  padding-bottom: 8px;
}
.ps-scroll-line {
  width: 1.5px; height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: psScrollPulse 2s ease-in-out infinite;
}
@keyframes psScrollPulse {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.15); }
}


/* ══════════════════════════════════════════════════════════
   OVERVIEW SECTION
   ══════════════════════════════════════════════════════════ */
.ps-overview {
  padding: 100px 0;
  background: var(--ps-white);
}
.ps-overview-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

/* Section typography */
.ps-section-eyebrow {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ps-pink);
  margin-bottom: 14px;
}
.ps-section-eyebrow--light  { color: rgba(255,255,255,.6); }
.ps-section-eyebrow--pink   { color: var(--ps-pink); }
.ps-section-eyebrow--blue   { color: var(--ps-blue-v); }

.ps-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900; letter-spacing: -.03em;
  color: var(--ps-dark); line-height: 1.12;
  margin: 0 0 20px;
}
.ps-section-title--light { color: #fff; }

.ps-section-sub {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--ps-muted);
  max-width: 680px;
  margin: 0 auto;
}
.ps-section-sub--light { color: rgba(255,255,255,.7); }

.ps-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.ps-body-lead {
  font-size: 1.18rem; line-height: 1.8;
  color: var(--ps-text);
  font-weight: 500;
  margin-bottom: 22px;
}
.ps-body {
  font-size: 1rem; line-height: 1.82;
  color: var(--ps-muted);
  margin-bottom: 20px;
}

/* Quote highlight */
.ps-highlight-box {
  position: relative;
  background: var(--ps-off);
  border-left: 4px solid var(--ps-pink);
  border-radius: 0 12px 12px 0;
  padding: 28px 28px 28px 36px;
  margin-top: 36px;
}
.ps-quote-icon {
  font-size: 2.4rem;
  color: var(--ps-pink);
  opacity: .15;
  position: absolute; top: 16px; left: 16px;
}
.ps-highlight-box blockquote {
  font-size: 1.05rem; line-height: 1.75;
  font-style: italic; color: var(--ps-text);
  margin: 0 0 10px;
}
.ps-highlight-box cite {
  font-size: .82rem; font-weight: 700;
  color: var(--ps-muted);
  font-style: normal;
  letter-spacing: .04em;
}

/* Sidebar */
.ps-sidebar { position: sticky; top: 100px; }

.ps-sidebar-card {
  background: var(--ps-off);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-r-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.ps-sidebar-card--accent {
  background: var(--ps-dark);
  border-color: rgba(255,255,255,.08);
}
.ps-sidebar-heading {
  font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ps-muted);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ps-border);
}

.ps-fact-list { list-style: none; padding: 0; margin: 0; }
.ps-fact-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--ps-border);
}
.ps-fact-item:last-child { border-bottom: none; }
.ps-fact-item dt {
  display: flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ps-muted);
  margin-bottom: 4px;
}
.ps-fact-item dt i { color: var(--ps-blue-v); font-size: 1rem; }
.ps-fact-item dd {
  font-size: .92rem; font-weight: 600;
  color: var(--ps-text);
  margin: 0; padding-left: 0;
  line-height: 1.5;
}

/* Badge */
.ps-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 100px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.ps-badge--done { background: rgba(74,222,128,.15); color: #16a34a; }
.ps-badge--prog { background: rgba(61,145,249,.12); color: var(--ps-blue-v); }

/* Significance list */
.ps-sidebar-card--accent .ps-sidebar-heading { color: rgba(255,255,255,.45); border-color: rgba(255,255,255,.08); }
.ps-sidebar-card--accent h4 {
  font-size: .82rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 8px;
}
.ps-sidebar-card--accent h4 i { color: var(--ps-gold); }
.ps-sig-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.ps-sig-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; color: rgba(255,255,255,.8);
  line-height: 1.5;
}
.ps-sig-list li i { color: #4ade80; margin-top: 2px; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════
   FULL-BLEED IMAGE BREAK
   ══════════════════════════════════════════════════════════ */
.ps-image-break {
  position: relative; overflow: hidden;
  height: clamp(300px, 50vw, 600px);
}
.ps-break-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  transition: transform 6s ease-out;
}
.ps-image-break:hover .ps-break-img { transform: scale(1.04); }
.ps-break-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 40px;
  background: linear-gradient(transparent, rgba(13,24,43,.75));
  color: rgba(255,255,255,.85);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}


/* ══════════════════════════════════════════════════════════
   SCOPE OF WORK
   ══════════════════════════════════════════════════════════ */
.ps-scope {
  padding: 100px 0;
  background: var(--ps-off);
}
.ps-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
/* Two-card layout: both horizontal, side by side */
.ps-scope-grid--two {
  grid-template-columns: 1fr 1fr;
}
.ps-scope-grid--two .ps-scope-card--hero {
  grid-column: auto;
}

/* Hero card spans full width */
.ps-scope-card--hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  border-radius: var(--ps-r-lg);
  overflow: hidden;
  background: var(--ps-dark);
  box-shadow: 0 20px 60px rgba(13,24,43,.18);
}
.ps-scope-card--hero .ps-scope-img-wrap {
  position: relative;
  overflow: hidden;
}
.ps-scope-card--hero .ps-scope-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}
.ps-scope-card--hero:hover .ps-scope-img-wrap img { transform: scale(1.06); }
.ps-scope-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--ps-dark) 100%);
}
.ps-scope-card--hero .ps-scope-body {
  padding: 40px 40px 40px 32px;
  display: flex; flex-direction: column; justify-content: center;
}

/* Fix cascade: .ps-scope-card (white) is declared after --hero (dark) so needs override */
.ps-scope-card.ps-scope-card--hero,
.ps-scope-card.ps-scope-card--hero .ps-scope-body { background: #0D182B; }

/* Standard scope cards */
.ps-scope-card {
  background: var(--ps-white);
  border-radius: var(--ps-r-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13,24,43,.07);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
  border: 1px solid var(--ps-border);
}
.ps-scope-card:not(.ps-scope-card--hero) .ps-scope-img-wrap {
  height: 180px; overflow: hidden; position: relative;
}
.ps-scope-card:not(.ps-scope-card--hero) .ps-scope-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 5s ease;
}
.ps-scope-card:not(.ps-scope-card--hero) .ps-scope-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,24,43,.6) 0%, transparent 60%);
}
.ps-scope-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(13,24,43,.13); }
.ps-scope-card:hover .ps-scope-img-wrap img { transform: scale(1.06); }

.ps-scope-body {
  padding: 28px;
}
.ps-scope-num {
  font-size: .72rem; font-weight: 900;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ps-pink);
  margin-bottom: 12px;
}
.ps-scope-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(61,145,249,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--ps-blue-v);
  margin-bottom: 16px;
}
.ps-scope-card--hero .ps-scope-icon { background: rgba(223,56,148,.15); color: var(--ps-pink); }
.ps-scope-card--hero .ps-scope-num  { color: rgba(255,255,255,.4); }
.ps-scope-card--hero .ps-scope-body h3 { color: #fff; }
.ps-scope-card--hero .ps-scope-body p  { color: rgba(255,255,255,.7); }
.ps-scope-card--hero .ps-scope-bullets { border-top-color: rgba(255,255,255,.1); }
.ps-scope-card--hero .ps-scope-bullets li { color: rgba(255,255,255,.75); }
.ps-scope-card--hero .ps-scope-bullets i { color: var(--ps-pink); }

.ps-scope-body h3 {
  font-size: 1.18rem; font-weight: 800;
  color: var(--ps-dark); line-height: 1.25;
  margin: 0 0 12px;
}
.ps-scope-body p {
  font-size: .92rem; line-height: 1.72;
  color: var(--ps-muted);
  margin: 0 0 16px;
}
.ps-scope-bullets {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--ps-border);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.ps-scope-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .86rem; line-height: 1.5;
  color: var(--ps-text);
  font-weight: 500;
}
.ps-scope-bullets li i { color: var(--ps-blue-v); font-size: .7rem; margin-top: 4px; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════
   KEY NUMBERS — Dark cinematic
   ══════════════════════════════════════════════════════════ */
.ps-numbers {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  color: #fff;
}
.ps-numbers-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: psKenBurns 25s ease-in-out infinite alternate;
}
.ps-numbers-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,24,43,.93) 0%, rgba(42,56,139,.88) 100%);
}
.ps-numbers-particles {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.ps-numbers-inner { position: relative; z-index: 2; }

.ps-numbers-header {
  text-align: center;
  margin-bottom: 72px;
}

.ps-numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  justify-content: center;
}
.ps-num-item {
  text-align: center;
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: background .3s ease;
}
.ps-num-item:last-child { border-right: none; }
.ps-num-item:hover { background: rgba(255,255,255,.05); }
.ps-num-value {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  font-weight: 900; letter-spacing: -.05em;
  color: #fff; line-height: 1;
  margin-bottom: 2px;
}
.ps-num-unit {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ps-pink);
  margin-bottom: 12px;
}
.ps-num-label {
  font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}
.ps-num-label small {
  display: block;
  color: rgba(255,255,255,.35);
  font-size: .7rem;
  margin-top: 3px;
}


/* ══════════════════════════════════════════════════════════
   PHOTO GALLERY
   ══════════════════════════════════════════════════════════ */
.ps-gallery {
  padding: 100px 0;
  background: var(--ps-white);
}
.ps-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}
.ps-gallery-item--wide { grid-column: span 2; }
.ps-gallery-item--tall { grid-row: span 2; }

.ps-gallery-img-wrap {
  position: relative; overflow: hidden; height: 100%;
  border-radius: 12px;
  cursor: zoom-in;
}
.ps-gallery-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
  display: block;
}
.ps-gallery-img-wrap:hover img { transform: scale(1.07); }
.ps-gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(13,24,43,.8));
  color: rgba(255,255,255,.9);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .04em;
  opacity: 0;
  transition: opacity .35s ease;
}
.ps-gallery-img-wrap:hover .ps-gallery-caption { opacity: 1; }


/* ══════════════════════════════════════════════════════════
   CHALLENGE & SOLUTION — Split full-width panels
   ══════════════════════════════════════════════════════════ */
.ps-challenge { }
.ps-challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}
.ps-challenge-panel {
  position: relative;
  padding: 80px 60px;
  overflow: hidden;
  display: flex; align-items: center;
}
.ps-challenge-panel--dark { background: var(--ps-dark); color: #fff; }
.ps-challenge-panel--light { background: var(--ps-off); }

.ps-challenge-panel-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ps-challenge-panel-overlay {
  position: absolute; inset: 0;
  background: rgba(13,24,43,.82);
}
.ps-challenge-content { position: relative; z-index: 2; max-width: 520px; }

.ps-challenge-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 900; letter-spacing: -.03em;
  color: #fff; line-height: 1.15;
  margin: 0 0 36px;
}
.ps-challenge-title--dark { color: var(--ps-dark); }

.ps-challenge-points { display: flex; flex-direction: column; gap: 24px; }
.ps-challenge-points--dark .ps-cp-item strong { color: var(--ps-dark); }
.ps-challenge-points--dark .ps-cp-item p { color: var(--ps-muted); }

.ps-cp-item {
  display: flex; gap: 18px; align-items: flex-start;
}
.ps-cp-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(223,56,148,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--ps-pink);
}
.ps-cp-icon--blue { background: rgba(61,145,249,.12); color: var(--ps-blue-v); }
.ps-cp-item strong {
  display: block;
  font-size: .95rem; font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.3;
}
.ps-cp-item p {
  font-size: .88rem; line-height: 1.7;
  color: rgba(255,255,255,.65);
  margin: 0;
}


/* ══════════════════════════════════════════════════════════
   EQUIPMENT DEPLOYED
   ══════════════════════════════════════════════════════════ */
.ps-equipment {
  padding: 100px 0 0;
  background: var(--ps-dark);
  overflow: hidden;
}
.ps-equipment .ps-section-eyebrow { color: var(--ps-pink); }

.ps-equip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--ps-r-lg);
  overflow: hidden;
  margin-bottom: 40px;
}
.ps-equip-item {
  padding: 32px 28px;
  background: var(--ps-dark);
  transition: background .3s ease;
}
.ps-equip-item:hover { background: rgba(255,255,255,.04); }
.ps-equip-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(61,145,249,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--ps-blue-v);
  margin-bottom: 18px;
}
.ps-equip-item h4 {
  font-size: .95rem; font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
}
.ps-equip-item p {
  font-size: .84rem; line-height: 1.7;
  color: rgba(255,255,255,.5);
  margin: 0;
}

/* Equipment image */
.ps-equip-image {
  position: relative; overflow: hidden;
  height: 420px;
  border-radius: var(--ps-r-lg) var(--ps-r-lg) 0 0;
}
.ps-equip-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  transition: transform 6s ease;
}
.ps-equip-image:hover img { transform: scale(1.04); }
.ps-equip-img-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 32px;
  background: linear-gradient(transparent, rgba(13,24,43,.85));
  color: rgba(255,255,255,.7);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .05em;
}


/* ══════════════════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════════════════ */
.ps-timeline {
  padding: 100px 0;
  background: var(--ps-white);
}
.ps-timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-top: 16px;
}
.ps-timeline-track::before {
  content: '';
  position: absolute;
  top: 20px; left: calc(100% / 12); right: calc(100% / 12);
  height: 2px;
  background: linear-gradient(to right, var(--ps-blue-v), var(--ps-pink));
  z-index: 0;
}
/* Recalculate line endpoints for non-6-item timelines */
.ps-timeline-track:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}
.ps-timeline-track:has(> :nth-child(3):last-child)::before {
  left: calc(100% / 6); right: calc(100% / 6);
}
.ps-timeline-track:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(4, 1fr);
}
.ps-timeline-track:has(> :nth-child(4):last-child)::before {
  left: calc(100% / 8); right: calc(100% / 8);
}
.ps-timeline-track:has(> :nth-child(5):last-child) {
  grid-template-columns: repeat(5, 1fr);
}
.ps-timeline-track:has(> :nth-child(5):last-child)::before {
  left: calc(100% / 10); right: calc(100% / 10);
}
.ps-timeline-item {
  position: relative; z-index: 1;
  padding: 0 12px;
  text-align: center;
}
.ps-tl-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ps-blue-v);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--ps-blue-v);
  margin: 0 auto 20px;
  transition: transform .3s ease;
}
.ps-tl-dot--accent {
  background: var(--ps-pink);
  box-shadow: 0 0 0 3px var(--ps-pink);
}
.ps-tl-dot--gold {
  background: var(--ps-gold);
  box-shadow: 0 0 0 3px var(--ps-gold);
}
.ps-timeline-item:hover .ps-tl-dot { transform: scale(1.4); }
.ps-tl-year {
  font-size: .8rem; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ps-pink);
  margin-bottom: 10px;
}
.ps-tl-content h4 {
  font-size: .88rem; font-weight: 800;
  color: var(--ps-dark); line-height: 1.3;
  margin: 0 0 8px;
}
.ps-tl-content p {
  font-size: .78rem; line-height: 1.65;
  color: var(--ps-muted);
  margin: 0;
}


/* ══════════════════════════════════════════════════════════
   SECOND GALLERY — 2×3 editorial grid
   ══════════════════════════════════════════════════════════ */
.ps-gallery2 {
  background: var(--ps-off);
}
.ps-gallery2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 360px;
  gap: 4px;
}
.ps-g2-item {
  position: relative; overflow: hidden;
}
.ps-g2-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
  display: block;
}
.ps-g2-item:hover img { transform: scale(1.07); }
.ps-g2-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 20px;
  background: linear-gradient(transparent, rgba(13,24,43,.8));
  color: rgba(255,255,255,.85);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .04em;
  opacity: 0;
  transition: opacity .3s ease;
}
.ps-g2-item:hover .ps-g2-label { opacity: 1; }

/* Text panels */
.ps-g2-item--text {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
}
.ps-g2-item--dark { background: var(--ps-dark); }
.ps-g2-item--pink { background: var(--ps-pink); }

.ps-g2-text-content {
  max-width: 360px;
}
.ps-g2-item--dark  .ps-g2-text-content { color: #fff; }
.ps-g2-item--pink  .ps-g2-text-content { color: #fff; }
.ps-g2-item--dark  .ps-g2-text-content .ps-section-eyebrow { color: rgba(255,255,255,.5); }
.ps-g2-item--dark  .ps-g2-text-content h3 {
  font-size: 1.4rem; font-weight: 900; line-height: 1.2;
  margin: 10px 0 18px; letter-spacing: -.02em;
}
.ps-g2-item--dark  .ps-g2-text-content p {
  font-size: .9rem; line-height: 1.7;
  color: rgba(255,255,255,.65);
  margin-bottom: 12px;
}
.ps-g2-item--pink  .ps-g2-text-content .ps-g2-bignum {
  display: block;
  font-size: 5rem; font-weight: 900; line-height: 1;
  letter-spacing: -.06em; color: #fff;
}
.ps-g2-item--pink  .ps-g2-text-content .ps-g2-bignumlbl {
  display: block;
  font-size: 1.1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: rgba(255,255,255,.8);
  margin-bottom: 16px;
}
.ps-g2-item--pink  .ps-g2-text-content p {
  font-size: .92rem; line-height: 1.7; color: rgba(255,255,255,.8);
  margin: 0;
}


/* ══════════════════════════════════════════════════════════
   CLIENT & PARTNERS
   ══════════════════════════════════════════════════════════ */
.ps-partners {
  padding: 100px 0;
  background: var(--ps-white);
}
.ps-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ps-partner-card {
  display: flex; gap: 20px;
  padding: 32px 28px;
  background: var(--ps-off);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-r-lg);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.ps-partner-card:hover {
  border-color: var(--ps-blue-v);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(61,145,249,.12);
}
.ps-partner-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 16px;
  background: rgba(61,145,249,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--ps-blue-v);
}
.ps-partner-info h4 {
  font-size: .98rem; font-weight: 800;
  color: var(--ps-dark); margin: 0 0 8px;
  line-height: 1.3;
}
.ps-partner-info p {
  font-size: .84rem; line-height: 1.7;
  color: var(--ps-muted); margin: 0 0 12px;
}
.ps-partner-role {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(61,145,249,.1);
  color: var(--ps-blue-v);
}


/* ══════════════════════════════════════════════════════════
   RELATED PROJECTS
   ══════════════════════════════════════════════════════════ */
.ps-related {
  padding: 100px 0;
  background: var(--ps-off);
}
.ps-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ps-related-card {
  background: var(--ps-white);
  border-radius: var(--ps-r-lg);
  overflow: hidden;
  border: 1px solid var(--ps-border);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.ps-related-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(13,24,43,.12); }
.ps-related-link { display: block; text-decoration: none; color: inherit; height: 100%; }

.ps-related-img {
  height: 200px; overflow: hidden;
}
.ps-related-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.ps-related-card:hover .ps-related-img img { transform: scale(1.07); }

.ps-related-body {
  padding: 24px;
}
.ps-related-cat {
  display: inline-block;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ps-pink);
  margin-bottom: 10px;
}
.ps-related-body h3 {
  font-size: 1rem; font-weight: 800;
  color: var(--ps-dark); line-height: 1.3;
  margin: 0 0 10px;
}
.ps-related-body p {
  font-size: .86rem; line-height: 1.68;
  color: var(--ps-muted); margin: 0 0 18px;
}
.ps-related-arrow {
  font-size: .82rem; font-weight: 700;
  color: var(--ps-blue-v);
  display: flex; align-items: center; gap: 8px;
  transition: gap .25s ease;
}
.ps-related-card:hover .ps-related-arrow { gap: 12px; }


/* ══════════════════════════════════════════════════════════
   PROJECT NAV — Full-panel image cards
   ══════════════════════════════════════════════════════════ */
.ps-project-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 240px;
}

/* Prev / Next image panels */
.ps-pnav-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  overflow: hidden;
  color: #fff;
}
.ps-pnav-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.ps-pnav-card:hover .ps-pnav-bg { transform: scale(1.07); }
.ps-pnav-overlay {
  position: absolute; inset: 0;
  background: rgba(13,24,43,.72);
  transition: background .4s ease;
}
.ps-pnav-card:hover .ps-pnav-overlay { background: rgba(13,24,43,.55); }
.ps-pnav-content {
  position: relative; z-index: 2;
  padding: 32px 36px;
  width: 100%;
}
.ps-pnav-dir {
  display: flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
  transition: color .3s ease;
}
.ps-pnav-card:hover .ps-pnav-dir { color: rgba(255,255,255,.8); }
.ps-pnav-dir i { font-size: .85rem; color: var(--ps-pink); }
.ps-pnav-cat {
  display: inline-block;
  font-size: .65rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ps-pink);
  margin-bottom: 6px;
}
.ps-pnav-content h4 {
  font-size: 1.15rem; font-weight: 900;
  color: #fff; line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.ps-pnav-content p {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin: 0;
  line-height: 1.5;
}

/* Right panel flips alignment */
.ps-pnav-card--next .ps-pnav-content { text-align: right; }
.ps-pnav-card--next .ps-pnav-dir { justify-content: flex-end; flex-direction: row-reverse; }

/* Divider middle pill */
.ps-pnav-mid {
  display: flex; align-items: center; justify-content: center;
  width: 60px;
  background: var(--ps-dark);
  position: relative; z-index: 5;
}
.ps-pnav-mid a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
  color: rgba(255,255,255,.4);
  font-size: .6rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  transition: color .25s ease;
  padding: 12px 0;
}
.ps-pnav-mid a:hover { color: rgba(255,255,255,.9); }
.ps-pnav-mid a i { font-size: 1.1rem; }
/* Pink accent line between panels */
.ps-pnav-mid::before,
.ps-pnav-mid::after {
  content: '';
  position: absolute; left: 50%; width: 1px;
  background: rgba(255,255,255,.08);
  transform: translateX(-50%);
}
.ps-pnav-mid::before { top: 0; bottom: 50%; }
.ps-pnav-mid::after  { top: 50%; bottom: 0; }


/* ══════════════════════════════════════════════════════════
   CTA SECTION — Project single version
   ══════════════════════════════════════════════════════════ */
.ps-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.ps-cta-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: psKenBurns 20s ease-in-out infinite alternate;
}
.ps-cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(13,24,43,.96) 0%,
    rgba(42,56,139,.90) 50%,
    rgba(13,24,43,.96) 100%
  );
}
.ps-cta-particles {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
}
.ps-cta-inner {
  position: relative; z-index: 2;
  max-width: 720px; margin: 0 auto;
}
.ps-cta-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ps-pink);
  border: 1px solid rgba(223,56,148,.35);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 28px;
  background: rgba(223,56,148,.08);
}
.ps-cta-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900; letter-spacing: -.04em;
  color: #fff; line-height: 1.08;
  margin: 0 0 24px;
}
.ps-cta-title--accent { color: var(--ps-pink); }
.ps-cta-sub {
  font-size: 1.08rem; line-height: 1.75;
  color: rgba(255,255,255,.65);
  max-width: 540px; margin: 0 auto 44px;
}
.ps-cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
/* Divider line accent under eyebrow */
.ps-cta-divider {
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--ps-pink), var(--ps-blue-v));
  border-radius: 100px;
  margin: 0 auto 32px;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ps-overview-grid { grid-template-columns: 1fr; }
  .ps-sidebar { position: static; }
  .ps-numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .ps-equip-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-scope-card--hero { grid-template-columns: 1fr; }
  .ps-scope-card--hero .ps-scope-img-wrap { height: 240px; }
  .ps-scope-img-overlay { background: linear-gradient(0deg, var(--ps-dark) 0%, transparent 60%); }
}

@media (max-width: 900px) {
  .ps-hero-stats { flex-wrap: wrap; gap: 16px; }
  .ps-hs-sep { display: none; }
  .ps-hs-item { width: calc(50% - 8px); }
  .ps-scope-grid { grid-template-columns: 1fr; }
  .ps-scope-card--hero { grid-column: 1; }
  .ps-gallery-grid { grid-template-columns: 1fr 1fr; }
  .ps-gallery-item--wide { grid-column: span 2; }
  .ps-numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-challenge-grid { grid-template-columns: 1fr; }
  .ps-challenge-panel { padding: 60px 32px; }
  /* Force single column for every timeline length — overrides the
     :has() multi-column rules that otherwise cause horizontal overflow */
  .ps-timeline-track,
  .ps-timeline-track:has(> :nth-child(3):last-child),
  .ps-timeline-track:has(> :nth-child(4):last-child),
  .ps-timeline-track:has(> :nth-child(5):last-child) {
    grid-template-columns: 1fr;
  }
  /* Re-purpose the connector line as a single vertical spine */
  .ps-timeline-track::before,
  .ps-timeline-track:has(> :nth-child(3):last-child)::before,
  .ps-timeline-track:has(> :nth-child(4):last-child)::before,
  .ps-timeline-track:has(> :nth-child(5):last-child)::before {
    display: block;
    top: 10px;
    bottom: 28px;
    left: 8px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, var(--ps-blue-v), var(--ps-pink));
  }
  .ps-timeline-item {
    text-align: left;
    display: flex;
    gap: 18px;
    padding: 0 0 28px;
  }
  .ps-timeline-item:last-child { padding-bottom: 0; }
  .ps-tl-dot { margin: 2px 0 0; flex-shrink: 0; }
  .ps-tl-year { margin-bottom: 6px; }
  .ps-tl-content h4 { font-size: .95rem; }
  .ps-tl-content p { font-size: .82rem; }
  .ps-gallery2-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 280px; }
  .ps-partners-grid { grid-template-columns: 1fr; }
  .ps-related-grid { grid-template-columns: 1fr; }
  .ps-project-nav { grid-template-columns: 1fr; min-height: unset; }
  .ps-pnav-card { min-height: 180px; }
  .ps-pnav-mid { flex-direction: row; min-height: 56px; padding: 0 24px; gap: 16px; }
  .ps-pnav-mid::before, .ps-pnav-mid::after { display: none; }
  .ps-pnav-card--next .ps-pnav-content { text-align: left; }
  .ps-pnav-card--next .ps-pnav-dir { justify-content: flex-start; flex-direction: row; }
}

@media (max-width: 640px) {
  .ps-hero-stats { padding: 18px 20px; }
  .ps-hs-num { font-size: 1.5rem; }
  .ps-challenge-panel { padding: 48px 24px; }
  .ps-gallery-grid { grid-template-columns: 1fr; }
  .ps-gallery-item--wide { grid-column: span 1; }
  .ps-numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-num-item { padding: 20px 12px; }
  .ps-gallery2-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .ps-equip-grid { grid-template-columns: 1fr; }
  .ps-partner-card { flex-direction: column; }
  .ps-pnav-content h4 { font-size: 1rem; }
  .ps-pnav-content p { display: none; }
  .ps-scope-card--hero .ps-scope-body { padding: 24px; }
}
