/* ============================================================
   sv-portfolio.css — Securevision Portfolio Stylesheet

   VERSION HISTORY
   -------------------------------------------------------
   v1.0  May 2026    Extracted from sv-shared.css.
                     Consolidates all portfolio-specific rules
                     previously scattered across Sections 27,
                     the condominium additions block (lines
                     6146–7115), and Section 37 of sv-shared.

   v1.1  May 2026    Recovered two classes missed during extraction:
                     .comparison-table (full rule set including
                     .feature-col, .before-col, .after-col) —
                     used in Transformation section of portfolio
                     pages. .snapshot-explore-card — right column
                     variant of portfolio-snapshot-grid.
                     Both were in sv-shared Section 27 but not
                     carried into this file at v1.0.

                     Duplicated selectors resolved:
                       .portfolio-hero          — merged (bg-image
                         variant takes precedence; gradient-only
                         still works via background-color fallback)
                       .portfolio-stat-grid     — merged (auto-fit
                         + border-top from condo v2.1)
                       .portfolio-stat-value    — merged (#fff wins
                         — all stats live inside dark hero)
                       .portfolio-stat-label    — merged
                       .portfolio-kicker        — merged
                       .portfolio-overview-table — merged (adds
                         border-collapse from condo v2.1)
                       .portfolio-system-grid   — merged (auto-fit
                         from condo v2.1; more flexible)
                       .portfolio-system-card   — merged
                       .related-project-*       — merged (v7115
                         canonical with !important centre fix)
                       .final-cta / .cta-subtext — REMOVED from
                         portfolio block; these are global classes
                         already canonical in sv-shared.css
                       .sv-trust-bar / .trust-inner — REMOVED;
                         both marked SUPERSEDED in sv-shared

                     Dead classes removed:
                       .portfolio-section-narrow — no-op (1080px
                         same as .container; marked for deletion)

                     Classes confirmed global (stay in sv-shared):
                       .section-header, .mt-16, .mt-24,
                       .section-spacing, .no-bottom-spacing,
                       .bg-white, .bg-light, .border-top,
                       .comparison-table, .snapshot-explore-card

   v1.3  June 2026   hero-compact migration: legacy .portfolio-hero
                     class marked for retirement. Migration comment
                     added above block. Card content clamp rules
                     added for 4-column index grid.

   v1.4  June 2026   .portfolio-meta svg rule added — removes
                     inline icon styles from kicker location
                     spans across all 52 portfolio pages.

   v1.2  May 2026    Added .grid-3 utility class (Section 14) and
                     sv-sys-* card rules (Section 15) so portfolio
                     pages render systems-block.js cards correctly
                     without loading sv-systems.css.

   Link tag for all portfolio HTML pages:
   <link rel="stylesheet" href="/sv-portfolio.css">
   Place AFTER sv-shared.css, BEFORE </head>
   ============================================================ */


/* ============================================================
   SECTION 1 — HERO
   Supports two variants:
     A. Gradient-only  (no .hero-image child — background-color
        shows through)
     B. Background image  (.hero-image + .hero-overlay children
        present; image sits behind the overlay)
   ============================================================ */

/* ── PORTFOLIO HERO — LEGACY CLASS ──────────────────────────
   This class is being retired across all 52 portfolio pages.
   Pages are migrating to: hero hero-compact hero-high-impact hero-[slug]
   governed by sv-shared.css hero height system.
   Once all 52 pages are confirmed migrated, remove this entire
   block including .portfolio-hero::before, .portfolio-hero .hero-image,
   .portfolio-hero .hero-overlay, and .portfolio-hero .container.
   Migration started: June 2026
─────────────────────────────────────────────────────────────── */
.portfolio-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #070d16;           /* fallback / gradient-only base */
  padding: 120px 0 80px;
  color: #fff;
}

/* Subtle radial highlight for gradient-only variant */
.portfolio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(91, 158, 225, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Background image — positioned behind overlay */
.portfolio-hero .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Dark overlay on top of hero image */
.portfolio-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 13, 22, 0.82) 0%,
    rgba(7, 13, 22, 0.72) 50%,
    rgba(7, 13, 22, 0.82) 100%
  );
  z-index: 2;
}

/* Hero content sits above overlay */
.portfolio-hero .container {
  position: relative;
  z-index: 3;
}

/* ── 1a. Kicker row (sector badge + meta text) ── */

.portfolio-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.portfolio-meta {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Portfolio kicker location icon ──
   Removes inline style="width:14px..." from SVG pin icons
   inside .portfolio-meta spans across all portfolio pages.   */
.portfolio-meta svg {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}

/* ── 1b. Hero typography ── */

.portfolio-hero-title {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
  margin-bottom: 24px;
  color: #fff !important;
}

.portfolio-hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  max-width: 800px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 48px;
}

/* ── 1c. Taxonomy chips (optional — use when sub-sector or system
         type adds clarity to the hero) ── */

.portfolio-taxonomy {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.portfolio-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* ── 1d. Hero stat grid ── */

.portfolio-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 32px;
}

.portfolio-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--radius-card);
  text-align: center;
}

.portfolio-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #fff !important;    /* always on dark hero bg */
  margin-bottom: 4px;
}

.portfolio-stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 700;
}


/* ============================================================
   SECTION 2 — PROJECT SNAPSHOT
   Two-column layout: main overview left, tech/systems card right.
   ============================================================ */

.portfolio-snapshot {
  padding: 80px 0;
}

.portfolio-snapshot-grid,
.portfolio-image-text-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 60px;
  align-items: start;
}

.snapshot-main {
  align-self: start;
}

/* ── 2a. Overview table ── */

.portfolio-overview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.portfolio-overview-table th,
.portfolio-overview-table td {
  padding: 18px 0;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 15px;
}

.portfolio-overview-table th {
  width: 35%;
  color: var(--primary-blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

.portfolio-overview-table td {
  font-weight: 600;
  color: var(--text-dark);
}

/* ── 2b. Technologies Implemented card (right column)
         Links to /brands/ pages only.
         Do not merge with snapshot-systems-card — different
         visual treatment intentional. ── */

.snapshot-tech-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 0 28px 28px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: fit-content;
  align-self: start;
}

.snapshot-tech-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-tech-stack {
  display: grid;
  gap: 12px;
}

.portfolio-tech-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 20px;
  border-radius: calc(var(--border-radius) - 2px);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary-blue);
  background: var(--white);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.portfolio-tech-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  border-left-color: var(--dark-blue);
}

.tech-brand-name {
  display: block;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.3;
}

.tech-brand-desc {
  display: block;
  font-family: var(--display-font);
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── 2c. Security Systems Implemented card (right column)
         Links to /systems/ pages only.
         Neutral — no left accent border. ── */

.snapshot-systems-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 0 28px 28px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: fit-content;
  align-self: start;
}

.portfolio-systems-stack {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.portfolio-system-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 18px;
  border-radius: calc(var(--border-radius) - 2px);
  border: 1px solid var(--border-light);
  background: var(--white);
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-system-item:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.system-item-label {
  display: block;
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.3;
}

.system-item-spec {
  display: block;
  font-family: var(--display-font);
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── 2d. "What this project represents" block ── */

.portfolio-represents {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}


/* ============================================================
   SECTION 3 — CHALLENGE
   ============================================================ */

.portfolio-challenge {
  padding: 80px 0;
}

/* Full-width prose variant (no image column) */
.challenge-copy {
  max-width: 880px;
}

.challenge-copy h2 {
  margin-bottom: 20px;
}

.challenge-copy p {
  font-family: var(--display-font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.challenge-copy p:last-child {
  margin-bottom: 0;
}

/* Two-column variant: 1.2fr prose + 1fr image */
.portfolio-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
}


/* ============================================================
   SECTION 4 — BODY PROSE SECTIONS
   (Transformation, Decision Point, Our Approach, The Solution)
   ============================================================ */

.portfolio-body h2 {
  margin-bottom: 32px;
}

.portfolio-body h3 {
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.portfolio-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 24px;
}

/* ── 4a. Decision box ── */

.decision-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary-blue);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 28px 0;
}

.decision-box p {
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ── 4b. Zone grid (2-col approach cards in Our Approach) ── */

.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.zone-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 24px;
  background: #fff;
}

.zone-card .zone-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.zone-card h4 {
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.zone-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ── 4c. Inline images and callouts ── */

.portfolio-image {
  margin: 48px 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.portfolio-image img {
  width: 100%;
}

.portfolio-image figcaption,
.portfolio-context-image figcaption {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 10px;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
  padding: 16px 24px;
  background: var(--bg-light);
}

.portfolio-callout {
  background: #f0f7ff;
  border-left: 4px solid var(--primary-blue);
  padding: 32px;
  border-radius: 0 12px 12px 0;
  margin: 48px 0;
}

.portfolio-callout h4 {
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.portfolio-callout p {
  font-size: 15px !important;
  margin-bottom: 0 !important;
}


/* ============================================================
   SECTION 5 — SECURITY LAYER CARDS
   Four-card grid: Intrusion / Surveillance / Visitor / Entry.
   Uses .grid-4 for the outer grid (defined in sv-shared.css).
   ============================================================ */

.portfolio-layer-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-layer-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.portfolio-layer-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.portfolio-layer-card h3 {
  font-family: var(--display-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.portfolio-layer-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.layer-link,
.system-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--display-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.layer-link:hover,
.system-link:hover {
  text-decoration: underline;
}


/* ============================================================
   SECTION 6 — EQUIPMENT DEPLOYED
   System cards grid with spec lists.
   ============================================================ */

.portfolio-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.portfolio-system-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.portfolio-system-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.portfolio-system-card h3 {
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

/* Spec list inside equipment cards —
   scoped so .spec-list doesn't restyle other <ul> elements */
.portfolio-system-card .spec-list {
  font-size: 0.9rem;
  color: var(--text-light);
  padding-left: 18px;
  margin-top: 8px;
  margin-bottom: 0;
  list-style: disc;
}

.portfolio-system-card .spec-list li {
  margin-bottom: 4px;
  line-height: 1.55;
}

.portfolio-system-card .spec-list li:last-child {
  margin-bottom: 0;
}


/* ============================================================
   SECTION 7 — RESULTS & IMPACT
   ============================================================ */

.portfolio-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 48px 0;
}

.portfolio-result-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  border-top: 3px solid #38a169;
  padding: 28px;
  text-align: left;
}

.portfolio-result-title {
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 700;
  color: #38a169;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.3;
}

.portfolio-result-text {
  font-family: var(--display-font);
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Large numeric stat variant */
.portfolio-result-value {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

/* Hard stat — used in Format A result layout */
.result-stat-value {
  font-family: var(--display-font);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.result-stat-desc {
  font-family: var(--display-font);
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
}

/* Prose inside result cards */
.portfolio-results-grid p {
  font-size: 15px !important;
  line-height: 1.6 !important;
}


/* ============================================================
   SECTION 8 — SECUREVISION INSIGHT PULLQUOTE
   Quiet editorial treatment. Centred, no filled background.
   Decorative quote mark via ::before.
   v1.8 canonical definition.
   ============================================================ */

.portfolio-insight-section {
  padding: 80px 0;
}

.portfolio-insight {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 48px;
  text-align: center;
  position: relative;
}

.portfolio-insight::before {
  content: '"';
  display: block;
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: var(--primary-blue);
  opacity: 0.18;
  margin-bottom: -48px;
}

.portfolio-insight h2 {
  font-family: var(--display-font);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--dark-blue);
  line-height: 1.4;
  margin-bottom: 16px;
}

.portfolio-insight p {
  font-family: var(--display-font);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
}


/* ============================================================
   SECTION 9 — DISCOVERY PATH
   4-col desktop / 2-col tablet / 1-col mobile.
   Image + centred title + left-aligned description.
   ============================================================ */

.portfolio-link-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.portfolio-link-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portfolio-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--border-subtle);
  border-color: var(--primary-blue);
}

.portfolio-link-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.portfolio-link-card-body {
  padding: 20px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-link-card strong {
  display: block;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 8px;
}

.portfolio-link-card span {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}


/* ============================================================
   SECTION 10 — RELATED PROJECTS
   card + card-clickable + related-project-card pattern.
   ============================================================ */

.related-projects {
  padding: 80px 0;
}

.related-project-card {
  text-decoration: none;
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.related-project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.related-project-body {
  padding: 24px;
  text-align: center;
}

/* Base badge — defaults to condo colour.
   Use modifier classes below for other sectors. */
.related-project-badge {
  background: var(--c-condos-light);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sector badge colour modifiers */
.related-project-badge--homes       { background: var(--c-homes) !important; }
.related-project-badge--condos      { background: var(--c-condos-light) !important; }
.related-project-badge--commercial  { background: var(--c-commercial) !important; }
.related-project-badge--industrial  { background: var(--c-industrial) !important; }
.related-project-badge--institutions{ background: var(--c-institutions) !important; }
.related-project-badge--healthcare  { background: var(--c-healthcare) !important; }

.related-project-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-dark);
  text-align: center !important;
}

/* Force centre regardless of parent alignment */
.related-project-body .related-project-title,
.related-project-body h3.related-project-title {
  text-align: center !important;
}

.related-project-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

.related-project-link {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}


/* ============================================================
   SECTION 11 — UTILITIES
   ============================================================ */

/* Dead class — retained for backward compat only.
   max-width matches .container so it has no visual effect.
   Do not use on new pages. */
.portfolio-section-narrow {
  max-width: 1080px;
}

/* Generic section spacing for portfolio pages */
.portfolio-section {
  padding: 56px 0;
}

.no-bottom-spacing {
  padding-bottom: 0 !important;
}


/* ============================================================
   SECTION 12 — RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .portfolio-link-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .portfolio-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portfolio-snapshot-grid,
  .portfolio-image-text-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portfolio-system-grid,
  .portfolio-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-snapshot,
  .portfolio-challenge,
  .portfolio-insight-section,
  .related-projects {
    padding: 56px 0;
  }

  .zone-grid {
    grid-template-columns: 1fr;
  }

  .challenge-copy {
    max-width: 100%;
  }

  .snapshot-tech-card,
  .snapshot-systems-card {
    padding: 24px;
  }

  .portfolio-tech-item,
  .portfolio-system-item {
    padding: 14px 16px;
  }

  .portfolio-layer-card {
    padding: 24px 20px;
  }
}

@media (max-width: 600px) {
  .portfolio-link-stack {
    grid-template-columns: 1fr;
  }

  .portfolio-system-grid,
  .portfolio-results-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   SECTION 13 — RECOVERED CLASSES
   These were in sv-shared Section 27 but not carried into
   sv-portfolio.css during extraction. Added v1.1.
   ============================================================ */

/* Comparison table — Before/After upgrade layout
   Used in Transformation section of portfolio pages.         */
.comparison-table {
  width: 100%;
  margin-top: 24px;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--dark-blue);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.comparison-table .feature-col {
  font-weight: 600;
  color: var(--text-secondary);
  width: 30%;
}

/* feature-col in header row must be white — overrides grey body colour */
.comparison-table th.feature-col {
  color: #ffffff;
}

.comparison-table .before-col {
  color: #e53e3e;
  width: 35%;
}

.comparison-table .after-col {
  color: #38a169;
  font-weight: 600;
  width: 35%;
}

/* Snapshot explore card — right column of snapshot grid
   when page uses the explore/links variant instead of
   tech-card or systems-card.                                  */
.snapshot-explore-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: fit-content;
  align-self: start;
}

/* ── END sv-portfolio.css ───────────────────────────────────── */

/* ============================================================
   SECTION 14 — GRID UTILITIES
   .grid-3 used by systems-block.js when data-cols="3"
   ============================================================ */

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

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ── END SECTION 14 ───────────────────────────────────────── */

/* ============================================================
   SECTION 15 — SYSTEMS BLOCK CARDS (sv-sys-*)
   Copied from sv-systems.css Section 37 so that portfolio
   pages (which load sv-portfolio.css but NOT sv-systems.css)
   render systems-block.js cards correctly — no underlines,
   correct typography, hover states intact.

   v1.2  May 2026   Added. Source: sv-systems.css Section 37.
   ============================================================ */

.sv-systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.sv-sys-card--platform {
    border-top-color: #003d82;
}

.sv-sys-badge {
    display: inline-block;
    font-family: var(--display-font);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #003d82;
    background: #e6f0fa;
    padding: 3px 10px;
    border-radius: 4px;
    margin: 12px 20px 0;
    align-self: flex-start;
}

.sv-sys-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    border-top: 3px solid var(--primary-blue);
    padding: 0;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    overflow: hidden;
}

.sv-sys-card:hover {
    box-shadow: 0 8px 28px var(--border-subtle);
    transform: translateY(-4px);
    background: #fff;
}

.sv-sys-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

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

.sv-sys-card h3 {
    font-size: 15px;
    font-family: var(--display-font);
    font-weight: 700;
    margin: 16px 20px 8px;
    color: var(--text-dark);
    text-decoration: none;
}

.sv-sys-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
    margin: 0 20px 16px;
    text-decoration: none;
}

.sv-sys-link {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--display-font);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
    padding: 0 20px 20px;
    text-decoration: none;
}

.sv-sys-platform {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    border-top: 3px solid var(--dark-blue);
    text-decoration: none;
    color: var(--text-dark);
    overflow: hidden;
    transition: 0.3s;
}

.sv-sys-platform:hover {
    box-shadow: 0 8px 28px var(--border-subtle);
    transform: translateY(-4px);
    background: #fff;
}

.sv-sys-platform-img {
    width: 280px;
    min-width: 280px;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    flex-shrink: 0;
}

.sv-sys-platform-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sv-sys-platform-body {
    flex: 1;
    padding: 24px 32px 24px 0;
    min-width: 0;
}

.sv-sys-platform-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--display-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-blue);
    background: #e6f0fa;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.sv-sys-platform-body h3 {
    font-size: 18px;
    font-family: var(--display-font);
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-dark);
    text-decoration: none;
}

.sv-sys-platform-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 16px;
    text-decoration: none;
}

.sv-sys-platform-body .sv-sys-link {
    padding: 0;
    color: var(--dark-blue);
}

@media (max-width: 768px) {
    .sv-systems-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .sv-systems-grid { grid-template-columns: 1fr; }
}

/* ── END SECTION 15 ───────────────────────────────────────── */




/* ============================================================
   sv-portfolio.css — SECTION 16: Inline Style Extraction
   Wave 2 CSS Fix — June 2026

   PURPOSE:
   Extracts repeating inline style patterns found across
   portfolio/index.html and all 52 portfolio case study pages.
   These classes replace inline style= attributes — they must
   be added to sv-portfolio.css BEFORE the HTML is updated.

   APPEND this block to the END of sv-portfolio.css,
   after the final line of Section 15.

   VERSION: Add to sv-portfolio.css as v1.3
   ============================================================ */


/* ============================================================
   SECTION 16A — Portfolio Index: Filter Card Inline Patterns

   Replaces these inline styles on portfolio/index.html:
     <svg style="width:14px; height:14px; display:inline-block;
       vertical-align:middle; margin-right:4px;">
     <p style="font-size:0.8rem; color:#3182ce; font-weight:700;
       margin-top:12px;">
   These appear once per portfolio card (~52 instances each).
   ============================================================ */

/* Small icon inside portfolio filter cards and sector tags */
.portfolio-card-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Sector label text below portfolio card image */
.portfolio-card-tag {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-top: 12px;
    display: block;
}


/* ============================================================
   SECTION 16B — Portfolio Index: Hero Section

   Replaces inline styles on the portfolio/index.html hero:
     <section style="padding:160px 0 100px; background:linear-gradient(...)
       url('/images/portfolio-hero.webp'); background-size:cover;
       background-position:center; color:#fff; text-align:left;">
     <span style="color:var(--text-accent); font-weight:700; text-transform:uppercase;
       letter-spacing:2px; display:block; margin-bottom:20px;">
     <h1 style="font-family: var(--display-font); font-size:clamp(...);">
     <p style="font-size:1.5rem; font-weight:600; margin-bottom:24px;
       color:var(--border-subtle); max-width:800px; margin-left:0;">
     <p style="font-size:1.15rem; opacity:0.95; max-width:900px;
       margin:0 0 48px; line-height:1.8; color:var(--border-subtle);">
     <div style="display:flex; justify-content:flex-start; gap:20px;">
   ============================================================ */

/* Portfolio index hub hero — full dark gradient with background image */
.portfolio-hub-hero {
    padding: 160px 0 100px;
    background-color: #0E1A2B;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: left;
    position: relative;
}

/* Eyebrow label inside portfolio hub hero */
.portfolio-hub-eyebrow {
    color: var(--text-accent);
    font-family: var(--display-font);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 20px;
}

/* H1 inside portfolio hub hero */
.portfolio-hub-title {
    font-family: var(--display-font);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 900px;
    text-align: left;
    color: #fff;
    line-height: 1.1;
}

/* Subtitle line 1 — bold descriptor */
.portfolio-hub-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--border-subtle);
    max-width: 800px;
    margin-left: 0;
    text-align: left;
    padding: 0;
    font-family: var(--display-font);
}

/* Subtitle line 2 — supporting description */
.portfolio-hub-desc {
    font-family: var(--display-font);
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 900px;
    margin: 0 0 48px;
    line-height: 1.8;
    color: var(--border-subtle);
    text-align: left;
}

/* CTA button row inside portfolio hub hero */
.portfolio-hub-cta-row {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}


/* ============================================================
   SECTION 16C — Portfolio Case Study Pages: Common Patterns

   Replaces inline styles repeated across all 52 case study pages.
   ============================================================ */

/* Two-column layout: overview table left, systems deployed right.
   Replaces: style="display:grid; grid-template-columns:1fr 1fr;
   gap:64px; align-items:start;" */
.portfolio-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Systems deployed link list — vertical stack of system links.
   Replaces: style="margin-top:24px; display:flex;
   flex-direction:column; gap:12px;" */
.portfolio-systems-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual system link item.
   Replaces: style="display:flex; align-items:center; gap:12px;
   padding:16px 20px; background:var(--bg-light); border-radius: var(--radius-card);
   text-decoration:none; color:var(--text-dark); font-weight:600;
   font-size:14px; border:1px solid var(--border-light);
   transition:0.2s;" */
.portfolio-system-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-card);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border-light);
    transition: border-color 0.2s;
}

.portfolio-system-link:hover {
    border-color: var(--primary-blue);
    text-decoration: none;
    color: var(--text-dark);
}

/* Result stat grid — 3 columns of measurable outcomes.
   Replaces: style="display:grid; grid-template-columns:repeat(3,1fr);
   gap:28px; margin:48px 0;" */
.portfolio-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 48px 0;
}

/* Result stat value — the large number.
   Replaces: style="font-family: var(--display-font); font-size:48px;
   font-weight:800; color:var(--primary-blue); margin-bottom:8px;" */
.portfolio-result-stat {
    font-family: var(--display-font);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
    display: block;
    text-align: center;
}

/* Related project card — sector badge inside.
   Replaces: style="display:block; text-decoration:none;" on <a> wrapper */
.portfolio-related-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.portfolio-related-link:hover {
    text-decoration: none;
}

/* Read more link inside related project card.
   Replaces: style="color:var(--primary-blue); font-weight:600;
   font-size:13px; margin-top:16px; display:block;" */
.portfolio-read-more {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 13px;
    margin-top: 16px;
    display: block;
}


/* ============================================================
   SECTION 16D — Responsive overrides for new Section 16 classes
   ============================================================ */

@media (max-width: 768px) {
    .portfolio-overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portfolio-result-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-hub-hero {
        padding: 120px 0 80px;
    }

    .portfolio-hub-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .portfolio-hub-subtitle {
        font-size: 1.15rem;
    }

    .portfolio-hub-cta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .portfolio-result-stat {
        font-size: 36px;
    }
}

/* ── END SECTION 16 ──────────────────────────────────────── */

/* ── PORTFOLIO INDEX — CARD CONTENT CLAMP ───────────────────
   Prevents uneven card heights in the 4-column index grid.
   Applied to .project-card elements in portfolio/index.html.
   3 lines for description, 2 lines for key outcome.
─────────────────────────────────────────────────────────────── */
.project-card .desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card .card-body > p:last-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════
   Transformation — Before / After comparison cards
   Used in portfolio case study pages.
   .compare-wrap        2-col grid wrapper
   .compare-card        individual card (negative / positive)
══════════════════════════════════════════════════════════════════ */

.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.compare-card {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
}

.compare-card.negative { border-top: 4px solid #c53030; }
.compare-card.positive { border-top: 4px solid var(--primary-blue, #0056b3); }

.compare-card h3 { margin-bottom: 20px; font-size: 20px; }

.compare-card ul { list-style: none; padding: 0; }

.compare-card li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
}

.compare-card.negative li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #c53030;
  font-weight: 700;
}

.compare-card.positive li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-blue, #0056b3);
  font-weight: 700;
}

/* ── Mobile: stack to single column ── */
@media (max-width: 768px) {
  .compare-wrap {
    grid-template-columns: 1fr;
  }
}

/* ── END Transformation ─────────────────────────────────────── */

/* ============================================================
   FAQ Component
   Defined in sv-solutions.css — duplicated here so
   portfolio pages render it correctly.
   ============================================================ */

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
    border-color: var(--page-accent, var(--primary-blue));
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.faq-grid--single {
    grid-template-columns: 1fr;
}

.faq-grid .faq-item {
    padding: 28px 32px;
}

.faq-grid .faq-question {
    font-family: var(--display-font);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    padding-left: 34px;
}

.faq-grid .faq-question::before {
    content: 'Q';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--page-accent, var(--primary-blue));
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--display-font);
    text-align: center;
    line-height: 24px;
    margin-left: -34px;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

.faq-grid .faq-answer {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
    padding-left: 34px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-grid .faq-item {
        padding: 24px;
    }
}

/* ── END FAQ Component ──────────────────────────────────────── */
