/* ============================================
   TMT THEME — PORTFOLIO PAGE
   File: assets/css/portfolio.css
   Namespace: ph- (Portfolio Hero)

   ARCHITECTURE
   ─────────────
   All animations are CSS-native @keyframes with
   animation-delay stagger. Zero JS dependency.
   If GSAP is available (it is, site-wide), the
   inline <script> in page-portfolio.php can
   override these — but CSS handles it alone.

   ANIMATION PHILOSOPHY
   ─────────────────────
   Elements start with opacity:0 / translateY via
   their initial @keyframes `from` state.
   animation-fill-mode: both; locks the end state.
   animation-play-state: paused on
   prefers-reduced-motion.
   ============================================ */


/* ============================================
   SECTION SHELL
   ============================================ */

.ph-section {
  position: relative;
  min-height: 100svh;         /* full viewport, respects mobile bar */
  display: flex;
  align-items: center;
  background-color: var(--color-bg-main);
  overflow: hidden;
  padding-top: 5rem;           /* clears fixed nav */
  padding-bottom: 0;           /* proof strip sits at bottom */
}


/* ============================================
   BACKGROUND
   Three layers, all GPU-composite only
   ============================================ */

.ph-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Mesh gradient — slow breathing */
.ph-bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 90% 70% at 50% -10%,
      rgba(69, 123, 157, 0.14) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 15% 80%,
      rgba(168, 218, 220, 0.06) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 60% at 85% 90%,
      rgba(69, 123, 157, 0.08) 0%,
      transparent 55%
    );
  animation: phMeshBreathe 12s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes phMeshBreathe {
  from { opacity: 0.7; }
  to   { opacity: 1;   }
}

/* Vignette — darkens edges to focus center */
.ph-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    transparent 40%,
    rgba(11, 19, 43, 0.55) 100%
  );
}

/* Fine dot grid */
.ph-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(168, 218, 220, 0.035) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}


/* ============================================
   CONTAINER — centered column
   ============================================ */

.ph-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);   /* 1260px from design tokens */
  margin-inline: auto;
  padding-inline: var(--container-px);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  /* Vertical rhythm — proof strip stays at bottom */
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: 0;
}


/* ============================================
   EYEBROW
   ============================================ */

.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);

  /* CSS animation — animates in first */
  opacity: 0;
  animation: phFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.ph-eyebrow__line {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-accent)
  );
  /* Draws itself in */
  transform: scaleX(0);
  transform-origin: left center;
  animation: phLineGrow 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes phLineGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.ph-eyebrow__text {
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}


/* ============================================
   HEADING — H1
   Two lines, each animates independently
   ============================================ */

.ph-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: var(--weight-bold);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--color-text-primary);
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);

  display: flex;
  flex-direction: column;
  gap: 0.1em;
  align-items: center;
}

/* Individual heading lines for stagger */
.ph-heading__line {
  display: block;
  
}

.ph-heading__line--1 {
  opacity: 0;
  animation: phFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.ph-heading__line--2 {
  opacity: 0;
  animation: phFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

/* Accent word — italic, teal */
.ph-heading__accent {
  font-style: normal;
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

/* Underline — draws in after heading appears */
.ph-heading__accent::after {
  content: '';
  position: absolute;
  bottom: -0.1em;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    rgba(168, 218, 220, 0.25)
  );
  transform: scaleX(0);
  transform-origin: left center;
  animation: phLineGrow 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}

/* Line break control — shows on mobile */
.ph-heading__br { display: none; }


/* ============================================
   HORIZONTAL RULE — draws itself in
   ============================================ */

.ph-rule {
  width: min(480px, 80%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 218, 220, 0.25) 20%,
    rgba(168, 218, 220, 0.25) 80%,
    transparent
  );
  margin-bottom: clamp(1.5rem, 3vw, 2rem);

  transform: scaleX(0);
  transform-origin: center;
  animation: phRuleGrow 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

@keyframes phRuleGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}


/* ============================================
   SUBTEXT
   ============================================ */

.ph-subtext {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 54ch;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);

  opacity: 0;
  animation: phFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}


/* ============================================
   CTA BUTTON WRAP
   ============================================ */

.ph-cta-wrap {
  margin-bottom: clamp(3rem, 6vw, 5rem);

  opacity: 0;
  animation: phFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.66s both;
}

.ph-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9375rem 2rem;
  border: 1px solid rgba(168, 218, 220, 0.28);
  border-radius: var(--border-radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  text-decoration: none;
  background-color: rgba(168, 218, 220, 0.05);
  position: relative;
  overflow: hidden;
  isolation: isolate;

  /* GPU-only transition */
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.2s ease;
}

/* Fill layer slides in from left */
.ph-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-accent);
  border-radius: inherit;
  transform: translateX(-101%);
  transition: transform 0.44s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: -1;
}

.ph-cta:hover::before { transform: translateX(0); }

.ph-cta:hover {
  color: #0B132B;
  border-color: var(--color-accent);
  box-shadow:
    0 0 0 1px rgba(168, 218, 220, 0.15),
    0 6px 28px rgba(168, 218, 220, 0.2);
  transform: translateY(-2px);
}

.ph-cta:active  { transform: translateY(0); }

.ph-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.ph-cta__arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.ph-cta:hover .ph-cta__arrow { transform: translateX(4px); }


/* ============================================
   PROOF STRIP — bottom of hero
   Sits flush to the viewport bottom, separated
   by a hairline border top
   ============================================ */

.ph-proof {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;

  padding: clamp(1.25rem, 2.5vw, 1.875rem) 0;
  border-top: 1px solid var(--color-border);
  margin-top: auto;

  opacity: 0;
  animation: phFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.82s both;
}

.ph-proof__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
}

.ph-proof__value {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}

.ph-proof__sup {
  color: var(--color-accent);
  font-size: 0.65em;
  vertical-align: super;
  letter-spacing: 0;
}

.ph-proof__label {
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Vertical separator */
.ph-proof__sep {
  width: 1px;
  height: clamp(2rem, 4vw, 3rem);
  background-color: var(--color-border);
  flex-shrink: 0;
}


/* ============================================
   SHARED KEYFRAME
   Used by: eyebrow, heading lines, subtext, CTA
   ============================================ */

@keyframes phFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================ */

@media (max-width: 1024px) {
  .ph-proof__item {
    padding: 0 clamp(1rem, 3vw, 2rem);
  }
}


/* ============================================
   RESPONSIVE — MOBILE LANDSCAPE + TABLET (≤ 768px)
   ============================================ */

@media (max-width: 768px) {
  .ph-section {
    padding-top: 4.5rem;
    min-height: 100svh;
  }

  .ph-heading {
    letter-spacing: -0.035em;
  }

  /* Show line break to prevent widow words */
  .ph-heading__br { display: inline; }

  .ph-proof {
    flex-wrap: wrap;
    row-gap: 1.25rem;
  }

  .ph-proof__sep {
    display: none;
  }

  .ph-proof__item {
    flex: 0 0 50%;
    padding: 0.75rem 1rem;
    position: relative;
  }

  /* Right border on left items — manual grid divider */
  .ph-proof__item:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  /* Top border on bottom row */
  .ph-proof__item:nth-child(3),
  .ph-proof__item:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }
}


/* ============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================ */

@media (max-width: 480px) {
  .ph-cta {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .ph-subtext {
    max-width: 38ch;
  }

  .ph-proof__value {
    font-size: 1.5rem;
  }
}


/* ============================================
   REDUCED MOTION
   Snap all animated elements visible instantly.
   No transitions, no animations — content first.
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .ph-eyebrow,
  .ph-heading__line--1,
  .ph-heading__line--2,
  .ph-subtext,
  .ph-cta-wrap,
  .ph-proof {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .ph-eyebrow__line,
  .ph-rule,
  .ph-heading__accent::after {
    transform: scaleX(1) !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .ph-bg__mesh {
    animation: none !important;
  }

  .ph-cta,
  .ph-cta__arrow,
  .ph-cta::before {
    transition: color 0.15s ease,
                border-color 0.15s ease !important;
  }
}

/* ============================================
   TMT THEME — PORTFOLIO GRID SECTION v2
   Namespace: pg-
   Append to: assets/css/portfolio.css
   (replaces ALL previous pg- styles)

   FILTER SYSTEM: Pure CSS radio pattern
   ─────────────────────────────────────
   Hidden <input type="radio"> inputs act as state.
   The :checked pseudo-class + general sibling
   combinator (~) controls card visibility and
   active tab styles — zero JavaScript required.

   BROWSER SUPPORT: All modern browsers.
   :has() used only for progressive enhancement.
   Core filter logic uses ~ combinator (100% support).
   ============================================ */


/* ============================================
   SECTION SHELL
   ============================================ */

.pg-section {
  background-color: var(--color-bg-main);
  padding-block: var(--space-section);
  position: relative;
  /* Subtle separator from hero */
  border-top: 1px solid var(--color-border);
}

.pg-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* Accessibility — visually hidden heading */
.pg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ============================================
   FILTER ROOT — CSS scope container
   Radio inputs must be direct children of this
   so ~ combinator reaches .pg-grid siblings
   ============================================ */

.pg-filter-root {
  position: relative;
}


/* ============================================
   HIDE RADIO INPUTS — visually + from AT
   ============================================ */

.pg-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  /* Keep in DOM for :checked to work */
}


/* ============================================
   FILTER BAR — Typographic tab strip
   ============================================ */

.pg-filters {
  margin-bottom: 3rem;
  position: relative;
}

/* Full-width bottom border */
.pg-filters::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-border);
  z-index: 0;
}

.pg-filters__track {
  display: flex;
  align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  z-index: 1;
}

.pg-filters__track::-webkit-scrollbar { display: none; }

/* Filter label — acts as tab button */
.pg-filter-label {
  position: relative;
  padding: 0.75rem 1.375rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  /* GPU transitions */
  transition: color 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.pg-filter-label:hover {
  color: var(--color-text-secondary);
}

.pg-filter-label:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  border-radius: 4px 4px 0 0;
}

/* Count badge on "All Work" tab */
.pg-filter-label__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  background-color: var(--color-border);
  border-radius: 999px;
  line-height: 1;
  vertical-align: middle;
  transition: background-color 0.25s ease, color 0.25s ease;
}


/* ============================================
   ACTIVE FILTER TAB — CSS :checked states
   Each radio makes its corresponding label active
   ============================================ */

#f-all:checked   ~ .pg-filters [data-for="all"],
#f-web:checked   ~ .pg-filters [data-for="web"],
#f-perf:checked  ~ .pg-filters [data-for="perf"],
#f-social:checked~ .pg-filters [data-for="social"],
#f-brand:checked ~ .pg-filters [data-for="brand"],
#f-video:checked ~ .pg-filters [data-for="video"] {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-accent);
}

/* Active "All" badge — accent colour */
#f-all:checked ~ .pg-filters [data-for="all"] .pg-filter-label__count {
  background-color: var(--color-accent);
  color: #0B132B;
}


/* ============================================
   PROJECT GRID — CSS Grid
   ============================================ */

.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  min-height: 400px;
  align-content: start;
}

/* Featured card spans 2 columns */
.pg-card--featured {
  grid-column: span 2;
}


/* ============================================
   FILTER LOGIC — CSS ~ combinator
   ─────────────────────────────────────────────
   Default: ALL cards visible (f-all checked).
   When a category radio is checked, hide ALL
   cards, then show only matching category.

   Pattern:
   #f-web:checked ~ .pg-grid .pg-card           { hide all }
   #f-web:checked ~ .pg-grid
     .pg-card[data-category="website-development"] { show }
   ============================================ */

/* ALL cards visible by default */
.pg-grid .pg-card {
  display: flex; /* block for grid items */
}

/* ── When "Web Dev" is active ── */
#f-web:checked ~ .pg-grid .pg-card {
  display: none;
}
#f-web:checked ~ .pg-grid .pg-card[data-category="website-development"] {
  display: flex;
}

/* ── When "Performance" is active ── */
#f-perf:checked ~ .pg-grid .pg-card {
  display: none;
}
#f-perf:checked ~ .pg-grid .pg-card[data-category="performance-marketing"] {
  display: flex;
}

/* ── When "Social" is active ── */
#f-social:checked ~ .pg-grid .pg-card {
  display: none;
}
#f-social:checked ~ .pg-grid .pg-card[data-category="social-media"] {
  display: flex;
}

/* ── When "Branding" is active ── */
#f-brand:checked ~ .pg-grid .pg-card {
  display: none;
}
#f-brand:checked ~ .pg-grid .pg-card[data-category="branding"] {
  display: flex;
}

/* ── When "Video" is active ── */
#f-video:checked ~ .pg-grid .pg-card {
  display: none;
}
#f-video:checked ~ .pg-grid .pg-card[data-category="video-editing"] {
  display: flex;
}

/*
 * FEATURED CARD COLUMN FIX
 * When filtering shows only 1 card (the featured),
 * remove the span so it doesn't leave a ghost column.
 */
#f-web:checked   ~ .pg-grid .pg-card--featured,
#f-perf:checked  ~ .pg-grid .pg-card--featured,
#f-social:checked~ .pg-grid .pg-card--featured,
#f-brand:checked ~ .pg-grid .pg-card--featured,
#f-video:checked ~ .pg-grid .pg-card--featured {
  grid-column: span 1;
}

/* Re-apply span if featured matches the active filter */
#f-perf:checked ~ .pg-grid
  .pg-card--featured[data-category="performance-marketing"] {
  grid-column: span 2;
}


/* ============================================
   EMPTY STATE
   Shown when filtered category has no cards.
   Uses :not(:has()) with a fallback.
   ============================================ */

.pg-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: none;
  margin: 0;
}

/* Show empty if grid has no visible cards.
   :has() progressive enhancement — won't break
   browsers without support. */
.pg-grid:not(:has(.pg-card:not([style*="display: none"]))) + .pg-empty {
  display: block;
}


/* ============================================
   PROJECT CARD — BASE
   ============================================ */

.pg-card {
  position: relative;
  border-radius: var(--card-radius-lg);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  flex-direction: column;

  /* Scroll reveal stagger — CSS custom property --i */
  opacity: 0;
  transform: translateY(28px);
  animation:
    pgReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.09s + 0.15s);

  /* Hover transitions — GPU only */
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

@keyframes pgReveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pg-card:hover {
  border-color: rgba(168, 218, 220, 0.32);
  box-shadow:
    0 0 0 1px rgba(168, 218, 220, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(168, 218, 220, 0.04);
  transform: translateY(-4px);
}

.pg-card:focus-within {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}


/* ============================================
   CARD MEDIA
   ============================================ */

.pg-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-secondary);
  flex-shrink: 0;
}

.pg-card--featured .pg-card__media {
  aspect-ratio: 16 / 9;
}

.pg-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.pg-card:hover .pg-card__img {
  transform: scale(1.05);
}

/* Gradient tint — always present */
.pg-card__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 19, 43, 0.75) 0%,
    rgba(11, 19, 43, 0.2) 45%,
    transparent 100%
  );
  pointer-events: none;
}


/* ============================================
   CARD FOOTER — default visible state
   Fades out on hover to reveal overlay
   ============================================ */

.pg-card__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pg-card:hover .pg-card__footer {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.pg-card__cat {
  font-size: 0.65rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.pg-card__title {
  font-family: var(--font-heading);
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  margin: 0;
}

.pg-card--featured .pg-card__title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}


/* ============================================
   HOVER OVERLAY — CSS only
   visibility: hidden prevents layout bleed.
   opacity + visibility transition together.
   ============================================ */

.pg-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11, 19, 43, 0.97) 0%,
    rgba(28, 37, 65, 0.99) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.75rem 1.5rem;
  /* CRITICAL: visibility:hidden prevents content bleed */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.38s ease,
    visibility 0.38s ease;
  z-index: 3;
}

.pg-card:hover .pg-card__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pg-card__overlay-inner {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
  transform: translateY(14px);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}

.pg-card:hover .pg-card__overlay-inner {
  transform: translateY(0);
}

/* Result metric */
.pg-card__result {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pg-card__result-value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  letter-spacing: -0.04em;
  line-height: 1;
  /* Scales in as overlay opens */
  transform: scale(0.88);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.pg-card:hover .pg-card__result-value {
  transform: scale(1);
}

.pg-card__result-sub {
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Problem line */
.pg-card__problem {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: none;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(168, 218, 220, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pg-card__problem-label {
  font-size: 0.58rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.7;
  display: block;
}

/* CTA — visual only inside overlay (real link is .pg-card__link) */
.pg-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  border: 1px solid rgba(168, 218, 220, 0.22);
  border-radius: var(--border-radius-full);
  padding: 0.5rem 1rem;
  align-self: flex-start;
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.pg-card:hover .pg-card__cta {
  color: var(--color-accent);
  border-color: rgba(168, 218, 220, 0.5);
  background-color: rgba(168, 218, 220, 0.06);
}

.pg-card__cta svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.pg-card:hover .pg-card__cta svg {
  transform: translateX(3px);
}

/* Full-card accessible link */
.pg-card__link {
  position: absolute;
  inset: 0;
  z-index: 4;
  font-size: 0;
  color: transparent;
  border-radius: inherit;
}

.pg-card__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}


/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================ */

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

  .pg-card--featured {
    grid-column: 1 / -1;
  }

  .pg-card--featured .pg-card__media {
    aspect-ratio: 16 / 7;
  }

  /* All filtered featured cards full-width on tablet */
  #f-web:checked   ~ .pg-grid .pg-card--featured[data-category="website-development"],
  #f-perf:checked  ~ .pg-grid .pg-card--featured[data-category="performance-marketing"],
  #f-social:checked~ .pg-grid .pg-card--featured[data-category="social-media"],
  #f-brand:checked ~ .pg-grid .pg-card--featured[data-category="branding"],
  #f-video:checked ~ .pg-grid .pg-card--featured[data-category="video-editing"] {
    grid-column: 1 / -1;
  }
}


/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   No hover. Persistent footer. Single column.
   ============================================ */

@media (max-width: 768px) {
  .pg-section {
    padding-block: var(--space-section-sm);
  }

  .pg-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pg-card--featured {
    grid-column: 1 / -1;
  }

  .pg-card--featured .pg-card__media {
    aspect-ratio: 4 / 3;
  }

  /* Overlay completely removed on mobile */
  .pg-card__overlay {
    display: none !important;
  }

  /* Footer always visible on mobile */
  .pg-card__footer {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 1rem 1.25rem 1.25rem;
  }

  /* No image zoom on touch */
  .pg-card:hover .pg-card__img {
    transform: none;
  }

  /* No lift on touch */
  .pg-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-border);
  }

  /* Filter label sizing */
  .pg-filter-label {
    padding: 0.625rem 1rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Fix: on mobile filtered featured cards reset span */
  #f-web:checked   ~ .pg-grid .pg-card--featured,
  #f-perf:checked  ~ .pg-grid .pg-card--featured,
  #f-social:checked~ .pg-grid .pg-card--featured,
  #f-brand:checked ~ .pg-grid .pg-card--featured,
  #f-video:checked ~ .pg-grid .pg-card--featured {
    grid-column: 1 / -1;
  }
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .pg-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .pg-card__img,
  .pg-card__overlay,
  .pg-card__overlay-inner,
  .pg-card__result-value,
  .pg-card__footer,
  .pg-card__cta,
  .pg-card__cta svg {
    transition: none !important;
    transform: none !important;
  }

  .pg-card:hover {
    transform: none !important;
  }

  .pg-card:hover .pg-card__overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* ============================================
   TMT THEME — FEATURED PROJECT SECTION v1
   Namespace: fp- (Featured Project)
   Append to: assets/css/portfolio.css
   (after all pg- styles)

   CONCEPT: "The Proof Panel"
   ─────────────────────────────────────────────
   A full-bleed editorial statement section that
   breaks the grid pattern of the hero and pg-
   sections above it. Asymmetric layout.
   Large typographic metric dominates.
   Diagonal image mask on desktop.
   CSS-only interactions: clip-path reveal,
   opacity/transform stagger on :hover.

   INTERACTIONS (zero JS):
   • Parent .fp-panel:hover reveals detail layer
   • Image clip-path animates on hover
   • Result value scales + glows on hover
   • CTA draw-in via ::after pseudo border
   • Scroll-in animation via @keyframes + delay

   BROWSER SUPPORT:
   • clip-path: all modern browsers
   • @property (for animated gradient): Chrome/Edge
     progressive enhancement — fallback included
   ============================================ */


/* ============================================
   SECTION SHELL
   ============================================ */

.fp-section {
  position: relative;
  background-color: var(--color-bg-secondary); /* #1C2541 — contrast from pg- above */
  overflow: hidden;
  padding-block: var(--space-section);
  /* Top separator — different from pg- border */
  border-top: 1px solid transparent;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border) 20%,
    var(--color-accent) 50%,
    var(--color-border) 80%,
    transparent 100%
  ) 1;
}


/* ============================================
   BACKGROUND — Ambient glow layers
   GPU-composite only (opacity + will-change)
   ============================================ */

.fp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 65% 50%,
      rgba(69, 123, 157, 0.09) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 80% at 0% 50%,
      rgba(168, 218, 220, 0.04) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
  animation: fpGlowPulse 10s ease-in-out infinite alternate;
  will-change: opacity;
}

@keyframes fpGlowPulse {
  from { opacity: 0.75; }
  to   { opacity: 1; }
}

/* Fine cross-hatch texture — distinct from ph-section dot grid */
.fp-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 218, 220, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 218, 220, 0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}


/* ============================================
   CONTAINER
   ============================================ */

.fp-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}


/* ============================================
   EYEBROW + SECTION LABEL
   ============================================ */

.fp-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);

  opacity: 0;
  animation: fpFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.fp-label__number {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.22em;
  color: var(--color-accent);
  opacity: 0.6;
}

.fp-label__rule {
  flex: 1;
  max-width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: fpScaleX 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

@keyframes fpScaleX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.fp-label__text {
  font-size: 1.20rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}


/* ============================================
   PANEL — the interactive core
   Two children: .fp-content + .fp-visual
   Desktop: CSS Grid side by side
   Hover on .fp-panel triggers child animations
   ============================================ */

.fp-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 0;
  border-radius: var(--card-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;

  /* Scroll-in */
  opacity: 0;
  animation: fpReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;

  /* Hover border glow */
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.fp-panel:hover {
  border-color: rgba(168, 218, 220, 0.35);
  box-shadow:
    0 0 0 1px rgba(168, 218, 220, 0.05),
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(168, 218, 220, 0.05);
}

@keyframes fpReveal {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================
   LEFT — CONTENT PANEL
   ============================================ */

.fp-content {
  position: relative;
  background-color: var(--color-bg-card);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  z-index: 2;
  overflow: hidden;
}

/* Accent vertical bar — left edge detail */
.fp-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-accent) 30%,
    var(--color-accent) 70%,
    transparent 100%
  );
  opacity: 0.55;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-panel:hover .fp-content::before {
  transform: scaleY(1);
}


/* ── Content top section ── */

.fp-content__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(168, 218, 220, 0.2);
  border-radius: var(--border-radius-full);
  font-size: 0.62rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: rgba(168, 218, 220, 0.05);
  align-self: flex-start;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.fp-panel:hover .fp-eyebrow {
  background-color: rgba(168, 218, 220, 0.1);
  border-color: rgba(168, 218, 220, 0.35);
}

.fp-eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-accent);
  animation: fpDotBlink 2.5s ease-in-out infinite;
}

@keyframes fpDotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.fp-title {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
  margin: 0;
}

.fp-title__accent {
  color: var(--color-accent);
}

/* Story — problem/solution toggle via CSS */
.fp-story {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.fp-story__block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fp-story__label {
  font-size: 0.58rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.fp-story__text {
  font-size: clamp(0.875rem, 1.4vw, 0.9375rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 42ch;
}


/* ── Content middle: metrics ── */

.fp-metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: 1.5rem;
}

.fp-metrics__row {
  display: flex;
  gap: 0;
}

.fp-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.625rem 1rem;
  position: relative;
  transition: background-color 0.3s ease;
}

.fp-metric + .fp-metric {
  border-left: 1px solid var(--color-border);
}

.fp-panel:hover .fp-metric {
  background-color: rgba(168, 218, 220, 0.02);
}

.fp-metric__value {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-accent);
  /* Scale up on panel hover */
  transform: scale(1);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease;
}

.fp-panel:hover .fp-metric__value {
  transform: scale(1.06);
  color: #C8ECEE; /* slightly brighter */
}

.fp-metric__label {
  font-size: 0.6rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Animated underline per metric on hover */
.fp-metric::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.5;
}

.fp-panel:hover .fp-metric:nth-child(1)::after { transform: scaleX(1); transition-delay: 0s; }
.fp-panel:hover .fp-metric:nth-child(2)::after { transform: scaleX(1); transition-delay: 0.08s; }
.fp-panel:hover .fp-metric:nth-child(3)::after { transform: scaleX(1); transition-delay: 0.16s; }


/* ── Content bottom: CTA ── */

.fp-content__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fp-client {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fp-client__name {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.fp-client__industry {
  font-size: 0.62rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* CTA — draw-in border via clip-path + pseudo */
.fp-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: #0B132B;
  background-color: var(--color-accent);
  border: none;
  border-radius: var(--border-radius-full);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex-shrink: 0;
  /* GPU transitions */
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.2s ease;
}

/* Shimmer sweep on hover */
.fp-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 1;
}

.fp-cta:hover::before {
  transform: translateX(100%);
}

.fp-cta:hover {
  background-color: #8ECAD0;
  box-shadow: 0 6px 32px rgba(168, 218, 220, 0.28);
  transform: translateY(-2px);
}

.fp-cta:active {
  transform: translateY(0);
}

.fp-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.fp-cta__label { position: relative; z-index: 2; }

.fp-cta__arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.fp-cta:hover .fp-cta__arrow { transform: translateX(4px); }


/* ============================================
   RIGHT — VISUAL PANEL
   Diagonal clip-path reveal on hover
   ============================================ */

.fp-visual {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-secondary);
  min-height: 480px;
}

/* The diagonal mask — static base state */
.fp-visual__mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: var(--color-bg-secondary);
  clip-path: polygon(0 0, 10% 0, 0 100%);
  pointer-events: none;
  transition: clip-path 0.0s; /* static shape, not animated */
}

.fp-visual__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition:
    transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.6s ease;
  will-change: transform, filter;
  filter: brightness(0.75) saturate(0.85);
}

.fp-panel:hover .fp-visual__image {
  transform: scale(1.06);
  filter: brightness(0.88) saturate(1);
}

/* Gradient tint over image */
.fp-visual__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(11, 19, 43, 0.7) 0%,
    rgba(28, 37, 65, 0.45) 50%,
    rgba(11, 19, 43, 0.3) 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.fp-panel:hover .fp-visual__tint {
  opacity: 0.7;
}


/* ── LARGE STAT OVERLAY — sits on image ── */
.fp-visual__stat {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem 2rem;
  z-index: 3;
  background: linear-gradient(
    to top,
    rgba(11, 19, 43, 0.92) 0%,
    rgba(11, 19, 43, 0.6) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  transform: translateY(8px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-panel:hover .fp-visual__stat {
  transform: translateY(0);
}

/* The hero number */
.fp-visual__stat-number {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: var(--color-text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.1em;

  /* Start slightly translucent, becomes full on hover */
  opacity: 0.92;
  transition: opacity 0.4s ease;
}

.fp-panel:hover .fp-visual__stat-number {
  opacity: 1;
}

.fp-visual__stat-sup {
  font-size: 0.4em;
  color: var(--color-accent);
  align-self: flex-start;
  margin-top: 0.15em;
  letter-spacing: 0;
}

.fp-visual__stat-label {
  font-size: 0.72rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(168, 218, 220, 0.75);
}

/* Category tag on image */
.fp-visual__tag {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  z-index: 3;
  padding: 0.35rem 0.875rem;
  background-color: rgba(11, 19, 43, 0.75);
  border: 1px solid rgba(168, 218, 220, 0.22);
  border-radius: var(--border-radius-full);
  font-size: 0.6rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transform: translateY(-4px);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    opacity 0.4s ease 0.05s;
}

.fp-panel:hover .fp-visual__tag {
  transform: translateY(0);
  opacity: 1;
}

/* "Explore" arrow that appears on hover center-screen */
.fp-visual__explore {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(168, 218, 220, 0.12);
  border: 1px solid rgba(168, 218, 220, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  opacity: 0;
  transition:
    opacity 0.4s ease 0.1s,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
  pointer-events: none;
}

.fp-panel:hover .fp-visual__explore {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}


/* ============================================
   DETAIL STRIP — appears on hover
   Hidden by default via translateY + opacity
   ============================================ */

.fp-detail-strip {
  grid-column: 1 / -1;
  background-color: rgba(11, 19, 43, 0.55);
  border-top: 1px solid var(--color-border);
  padding: 1.375rem clamp(2rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex-wrap: wrap;

  /* Hidden until hover */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity 0.45s ease,
    max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-panel:hover .fp-detail-strip {
  opacity: 1;
  max-height: 120px;
}

.fp-detail-strip__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;

  transform: translateY(6px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.fp-panel:hover .fp-detail-strip__item:nth-child(1) { transform: translateY(0); transition-delay: 0.05s; }
.fp-panel:hover .fp-detail-strip__item:nth-child(2) { transform: translateY(0); transition-delay: 0.1s;  }
.fp-panel:hover .fp-detail-strip__item:nth-child(3) { transform: translateY(0); transition-delay: 0.15s; }
.fp-panel:hover .fp-detail-strip__item:nth-child(4) { transform: translateY(0); transition-delay: 0.2s;  }

.fp-detail-strip__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: rgba(168, 218, 220, 0.08);
  border: 1px solid rgba(168, 218, 220, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.fp-detail-strip__label {
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.fp-detail-strip__value {
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
}

.fp-detail-strip__sep {
  width: 1px;
  height: 1.5rem;
  background-color: var(--color-border);
  flex-shrink: 0;
}


/* ============================================
   SHARED KEYFRAME
   ============================================ */

@keyframes fpFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================ */

@media (max-width: 1024px) {
  .fp-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .fp-visual {
    min-height: 360px;
    order: -1; /* Image on top on tablet */
  }

  .fp-visual__stat-number {
    font-size: clamp(3rem, 8vw, 4.5rem);
  }

  .fp-content {
    gap: 1.75rem;
  }

  .fp-detail-strip {
    gap: 1.25rem;
  }
}


/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   Touch = no hover. Make content always visible.
   ============================================ */

@media (max-width: 768px) {
  .fp-section {
    padding-block: var(--space-section-sm);
  }

  .fp-panel {
    grid-template-columns: 1fr;
    /* No hover effects needed — remove panel-level transition */
    transition: none;
  }

  .fp-panel:hover {
    border-color: var(--color-border);
    box-shadow: none;
  }

  .fp-visual {
    min-height: 280px;
    order: -1;
  }

  /* On mobile — always show tag + stat */
  .fp-visual__tag {
    opacity: 1;
    transform: translateY(0);
  }

  .fp-visual__stat {
    transform: translateY(0);
  }

  .fp-visual__stat-number {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  /* Always show detail strip on mobile (no hover) */
  .fp-detail-strip {
    opacity: 1;
    max-height: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }

  .fp-detail-strip__item { transform: none !important; }
  .fp-detail-strip__sep  { display: none; }

  /* Content side bar not visible on mobile */
  .fp-content::before { display: none; }

  /* Always-on metric scales */
  .fp-metric__value {
    transform: scale(1) !important;
  }

  .fp-content__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .fp-cta {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .fp-metrics__row {
    gap: 0;
  }

  .fp-story__text {
    max-width: none;
  }
  
  .fp-label__text{
      font-size: 0.8rem !important;
  }
}


/* ============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================ */

@media (max-width: 480px) {
  .fp-metrics__row {
    flex-direction: column;
  }

  .fp-metric + .fp-metric {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .fp-visual {
    min-height: 240px;
  }
  
  .fp-label__text{
      font-size: 0.8rem !important;
  }
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .fp-label,
  .fp-panel {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .fp-label__rule {
    transform: scaleX(1) !important;
    animation: none !important;
  }

  .fp-eyebrow__dot {
    animation: none !important;
  }

  .fp-visual__image,
  .fp-visual__stat,
  .fp-visual__tag,
  .fp-visual__explore,
  .fp-metric__value,
  .fp-content::before,
  .fp-detail-strip,
  .fp-detail-strip__item,
  .fp-cta,
  .fp-cta__arrow,
  .fp-cta::before {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  /* Show detail strip by default — no hover needed */
  .fp-detail-strip {
    opacity: 1 !important;
    max-height: none !important;
  }

  .fp-visual__tag {
    opacity: 1 !important;
  }

  .fp-section::before {
    animation: none !important;
  }

  .fp-bg__mesh { animation: none !important; }
}

/* ============================================
   TMT THEME — TRUST STRIP SECTION v2 (FIXED)
   Namespace: ts-
   FULL REPLACEMENT — delete ALL previous ts- CSS
   and paste this entire block in its place.

   FIXES vs v1:
   ─────────────────────────────────────────────
   1. .ts-logo-svg — width/height controlled on
      the <svg> element itself (not a <span>).
      CSS only sets max-width safety + display.
   2. .ts-logo-cell — removed overflow:hidden
      that was clipping SVG paths; sizing is now
      correct so clipping is not needed.
   3. Marquee architecture replaces static flex row:
      • .ts-marquee-wrap — overflow:hidden, mask
      • .ts-marquee — flex row, animates translateX
      • @keyframes tsMarquee — 0% → -50% → 0%
      • Pause on :hover via animation-play-state
   4. No stagger animation on individual cells —
      the marquee itself fades in as one unit.
   5. Reduced motion: marquee stopped, logos shown
      in a wrapping static grid instead.
   ============================================ */


/* ============================================
   SECTION SHELL
   ============================================ */

.ts-section {
  position: relative;
  background-color: var(--color-bg-main);
  padding-block: clamp(3.5rem, 6vw, 5rem);
  overflow: hidden; /* critical — clips marquee */
}

/* Hairline top border */
.ts-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border) 15%,
    rgba(168, 218, 220, 0.18) 50%,
    var(--color-border) 85%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}


/* ============================================
   CONTAINER
   ============================================ */

.ts-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}


/* ============================================
   CREDIBILITY HEADLINE
   ============================================ */

.ts-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;

  opacity: 0;
  animation: tsFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.ts-headline__part {
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.ts-headline__part--accent {
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  padding-inline: 0.5em;
}

.ts-headline__dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: rgba(168, 218, 220, 0.35);
  margin-inline: 0.75rem;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
  top: -1px;
}


/* ============================================
   MARQUEE WRAPPER
   overflow:hidden clips the scrolling track.
   mask-image fades edges to create infinite feel.
   Hover on THIS element pauses the animation.
   ============================================ */

.ts-marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;

  /* Edge gradient mask — both ends fade out */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );

  /* Section-level: fade in as one unit */
  opacity: 0;
  animation: tsFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}


/* ============================================
   MARQUEE TRACK
   Width: auto (content-driven — will be 2× the
   set width). translateX(-50%) moves exactly one
   full set, creating the seamless loop.

   SPEED: 30s for one full cycle.
   Slower = more premium feel.
   Adjust animation-duration to taste.
   ============================================ */

.ts-marquee {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
  animation: tsMarquee 30s linear infinite;
}


/* PAUSE on hover of the wrapper */
.ts-marquee-wrap:hover .ts-marquee {
  animation-play-state: paused;
}

@keyframes tsMarquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(-1 * (6 * (160px + 28px))), 0, 0); }
}
/* -50% = exactly one set width, snaps back to 0
     invisibly because set 2 is identical to set 1 */


/* ============================================
   MARQUEE SET
   One complete set of logos.
   Two of these sit side by side inside .ts-marquee.
   ============================================ */

.ts-marquee-set {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
  /* Each set is exactly 6 cells × (160px width + 28px margin) = 1128px */
  width: calc(6 * (160px + 28px));
}

/* ============================================
   LOGO CELL
   Each cell is a fixed-size bordered box.
   The SVG inside is constrained by CSS on the
   <svg> element (width + height attributes in HTML).

   IMPORTANT: No overflow:hidden here — that was
   clipping the SVG paths in v1.
   ============================================ */

.ts-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;                    /* CRITICAL — prevent flex compression */
  width: 160px;
  height: 72px;
  margin-inline: 14px;              /* gap between cells */
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  position: relative;
  isolation: isolate;

  /* GPU transitions */
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* Glow sweep on cell hover */
.ts-logo-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 80% 60% at 50% 110%,
    rgba(168, 218, 220, 0.07) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Hover state — triggered when marquee is paused
   AND user hovers a specific cell */
.ts-logo-cell:hover {
  border-color: rgba(168, 218, 220, 0.32);
  box-shadow:
    0 0 0 1px rgba(168, 218, 220, 0.04),
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(168, 218, 220, 0.07);
}

.ts-logo-cell:hover::before {
  opacity: 1;
}


/* ============================================
   SVG LOGO ELEMENT
   The <svg> element has explicit width + height
   attributes set in HTML — CSS only adds safety.

   filter: opacity controls the dimmed rest state.
   color: currentColor makes fill respond to color.

   KEY FIX: display:block + flex-shrink:0 prevent
   the SVG from being squeezed by flex parents.
   ============================================ */

.ts-logo-svg {
  display: block;
  flex-shrink: 0;
  max-width: 130px;
  max-height: 34px;
  
  /* Default: dimmed + desaturated */
  color: var(--color-text-secondary);
  fill: currentColor;
  filter: opacity(0.42);

  transition:
    filter 0.4s ease,
    color 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: filter, transform;
}

/* Logo brightens when its cell is hovered
   (works because marquee is paused on wrap hover) */
.ts-logo-cell:hover .ts-logo-svg {
  filter: opacity(1);
  color: var(--color-accent);
  transform: scale(1.06);
}

/* img fallback — for real logo images */
.ts-logo-img {
  display: block;
  flex-shrink: 0;
  max-width: 110px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;

  filter: grayscale(100%) brightness(1.5) opacity(0.42);
  transition:
    filter 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: filter, transform;
}

.ts-logo-cell:hover .ts-logo-img {
  filter: grayscale(0%) brightness(1) opacity(1);
  transform: scale(1.06);
}


/* ============================================
   SCREEN-READER ONLY LOGO LIST
   Accessible list that AT users can read.
   Visually hidden — the marquee is aria-hidden.
   ============================================ */

.ts-sr-logos {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}


/* ============================================
   FOOTNOTE
   ============================================ */

.ts-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: clamp(2rem, 4vw, 3rem);

  opacity: 0;
  animation: tsFadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

.ts-footnote__line {
  width: clamp(1.5rem, 3vw, 2.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border));
}

.ts-footnote__line--right {
  background: linear-gradient(90deg, var(--color-border), transparent);
}

.ts-footnote__text {
  font-size: 0.6875rem;
  font-weight: var(--weight-regular);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  opacity: 0.7;
  white-space: nowrap;
}

.ts-footnote__text strong {
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
}


/* ============================================
   SHARED KEYFRAME
   ============================================ */

@keyframes tsFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   Cells slightly smaller — still one row
   ============================================ */

@media (max-width: 1024px) {
  .ts-logo-cell {
    width: 140px;
    height: 64px;
    margin-inline: 10px;
  }
}


/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   Marquee still runs — just smaller cells.
   Works perfectly on mobile too.
   ============================================ */

@media (max-width: 768px) {
  /* Narrower mask — less edge fade on small screens */
  .ts-marquee-wrap {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 6%,
      #000 94%,
      transparent 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 6%,
      #000 94%,
      transparent 100%
    );
  }

  /* Smaller cells on mobile */
  .ts-logo-cell {
    width: 120px;
    height: 58px;
    margin-inline: 8px;
  }
  
  .ts-marquee-set {
    width: calc(6 * (120px + 16px));
  }
  @keyframes tsMarquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-1 * (6 * (120px + 16px))), 0, 0); }
  }

  /* Slightly faster on mobile — smaller viewport shows fewer */
  .ts-marquee {
    animation-duration: 22s;
  }

  .ts-headline {
    flex-direction: column;
    gap: 0.375rem;
  }

  .ts-headline__dot { display: none; }

  .ts-headline__part {
    white-space: normal;
    text-align: center;
  }

  .ts-footnote__text { white-space: normal; text-align: center; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================ */

@media (max-width: 480px) {
  .ts-logo-cell {
    width: 100px;
    height: 52px;
    margin-inline: 6px;
  }
  
  .ts-marquee-set {
    width: calc(6 * (100px + 12px));
  }
  @keyframes tsMarquee {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-1 * (6 * (100px + 12px))), 0, 0); }
  }

  .ts-marquee {
    animation-duration: 18s;
  }
}


/* ============================================
   REDUCED MOTION
   Stop marquee. Show logos in static grid.
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .ts-headline,
  .ts-marquee-wrap,
  .ts-footnote {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  /* Stop the marquee */
  .ts-marquee {
    animation: none !important;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding-inline: var(--container-px);
  }

  /* Hide second set — no need for the duplicate */
  .ts-marquee-set:last-child {
    display: none;
  }

  .ts-marquee-set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
  }

  .ts-logo-cell {
    margin-inline: 0;
  }

  .ts-logo-svg,
  .ts-logo-img,
  .ts-logo-cell,
  .ts-logo-cell::before {
    transition: none !important;
  }
}

/* ============================================
   TMT THEME — FINAL CTA SECTION v1
   Namespace: fc- (Final CTA)
   Append to: assets/css/portfolio.css
   (after all ts- styles)

   CONCEPT: "The Threshold"
   ─────────────────────────────────────────────
   The closing experience. A full-bleed section
   with a slowly breathing radial spotlight at
   center. Content sits inside the light. The
   world outside it is dark. This creates the
   psychological effect of stepping forward.

   CSS TECHNIQUES:
   • @keyframes: spotlight breathe, ambient drift
   • ::before / ::after: corner ornaments (pure CSS)
   • Layered radial-gradient backgrounds
   • Liquid-fill button via translateX on ::before
   • Shimmer sweep via ::after pseudo-element
   • Text gradient on headline accent word
   • animation-fill-mode: both on all reveals
   • GPU: transform + opacity + filter only
   • No JS. No layout shift. No repaints.
   ============================================ */


/* ============================================
   SECTION SHELL
   ============================================ */

.fc-section {
  position: relative;
  background-color: var(--color-bg-main);
  overflow: hidden;
  padding-block: clamp(6rem, 12vw, 10rem);

  /* Top separator — accent-center gradient rule */
  border-top: 1px solid transparent;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-border) 20%,
    rgba(168, 218, 220, 0.22) 50%,
    var(--color-border) 80%,
    transparent 100%
  ) 1;
}


/* ============================================
   BACKGROUND — layered glow system
   All GPU-composited (opacity + will-change)
   ============================================ */

/* Layer 1 — Primary spotlight: center breathing radial */
.fc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 65% 55% at 50% 50%,
      rgba(69, 123, 157, 0.16) 0%,
      rgba(69, 123, 157, 0.06) 45%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 35% at 50% 50%,
      rgba(168, 218, 220, 0.07) 0%,
      transparent 60%
    );
  animation: fcSpotBreathe 8s ease-in-out infinite alternate;
  will-change: opacity, transform;
  pointer-events: none;
  z-index: 0;
}

@keyframes fcSpotBreathe {
  from { opacity: 0.65; transform: scale(0.97); }
  to   { opacity: 1;    transform: scale(1.03); }
}

/* Layer 2 — Ambient drift: slow-moving off-center glows */
.fc-section::after {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      ellipse 50% 40% at 20% 80%,
      rgba(69, 123, 157, 0.07) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 45% 38% at 80% 20%,
      rgba(168, 218, 220, 0.04) 0%,
      transparent 55%
    );
  animation: fcAmbientDrift 14s ease-in-out infinite alternate;
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 0;
}

@keyframes fcAmbientDrift {
  from { transform: translate(-1%, 1%);  opacity: 0.7; }
  to   { transform: translate(1%, -1%);  opacity: 1; }
}


/* ============================================
   CONTAINER
   ============================================ */

.fc-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--container-px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


/* ============================================
   CORNER ORNAMENTS — pure CSS L-brackets
   Top-left and bottom-right frame the content.
   Built entirely from ::before + ::after.
   Zero images. Zero SVG files.
   ============================================ */

.fc-ornament {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 1;

  opacity: 0;
  animation: fcFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.fc-ornament--tl {
  top: clamp(2rem, 5vw, 4rem);
  left: clamp(2rem, 5vw, 4rem);
}

.fc-ornament--br {
  bottom: clamp(2rem, 5vw, 4rem);
  right: clamp(2rem, 5vw, 4rem);
  transform: rotate(180deg);
  animation-delay: 0.95s;
}

/* Vertical arm of L-bracket */
.fc-ornament::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 36px;
  background-color: rgba(168, 218, 220, 0.2);
  border-radius: 1px;
}

/* Horizontal arm of L-bracket */
.fc-ornament::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 1px;
  background-color: rgba(168, 218, 220, 0.2);
  border-radius: 1px;
}


/* ============================================
   EYEBROW
   ============================================ */

.fc-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);

  opacity: 0;
  animation: fcFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.fc-eyebrow__line {
  display: block;
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent));
  transform: scaleX(0);
  transform-origin: left center;
  animation: fcLineGrow 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.fc-eyebrow__line--right {
  background: linear-gradient(90deg, var(--color-accent), transparent);
  transform-origin: right center;
}

@keyframes fcLineGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.fc-eyebrow__text {
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}


/* ============================================
   HEADLINE — H2
   Large, tight, powerful.
   One accent word with gradient + underline.
   ============================================ */

.fc-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: var(--weight-bold);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  max-width: 16em;

  opacity: 0;
  animation: fcFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

/* Gradient accent word */
.fc-heading__accent {
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    rgba(168, 218, 220, 0.65) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
  position: relative;
  display: inline-block;
}

/* Underline draws in under accent */
.fc-heading__accent::after {
  content: '';
  position: absolute;
  bottom: -0.08em;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--color-accent),
    rgba(168, 218, 220, 0.2)
  );
  transform: scaleX(0);
  transform-origin: left center;
  animation: fcLineGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
}


/* ============================================
   SUPPORTING TEXT
   ============================================ */

.fc-subtext {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);

  opacity: 0;
  animation: fcFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}


/* ============================================
   CTA GROUP — button + secondary link
   ============================================ */

.fc-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;

  opacity: 0;
  animation: fcFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}


/* ============================================
   PRIMARY BUTTON
   Liquid-fill from left via ::before
   Shimmer sweep via ::after
   ============================================ */

.fc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.0625rem 2.375rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  text-decoration: none;
  background-color: transparent;
  border: 1px solid rgba(168, 218, 220, 0.35);
  border-radius: var(--border-radius-full);
  position: relative;
  overflow: hidden;
  isolation: isolate;

  transition:
    color 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    transform 0.2s ease;
}

/* Liquid fill — slides in from left */
.fc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  border-radius: inherit;
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: -1;
}

/* Shimmer sweep — passes across on hover */
.fc-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 75%
  );
  transform: translateX(-100%);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1) 0.05s;
  z-index: 0;
}

.fc-btn:hover::before { transform: translateX(0); }
.fc-btn:hover::after  { transform: translateX(100%); }

.fc-btn:hover {
  color: #0B132B;
  border-color: var(--color-accent);
  box-shadow:
    0 0 0 1px rgba(168, 218, 220, 0.12),
    0 8px 40px rgba(168, 218, 220, 0.22);
  transform: translateY(-2px);
}

.fc-btn:active { transform: translateY(0); }

.fc-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.fc-btn__label {
  position: relative;
  z-index: 1;
  transition: color 0.45s ease;
}

.fc-btn__arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.fc-btn:hover .fc-btn__arrow { transform: translateX(4px); }


/* ============================================
   SECONDARY LINK
   Underline draws in from left on hover
   ============================================ */

.fc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.fc-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-link:hover { color: var(--color-text-secondary); }
.fc-link:hover::after { transform: scaleX(1); }

.fc-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.fc-link__arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.fc-link:hover .fc-link__arrow { transform: translateX(3px); }


/* ============================================
   BOTTOM TRUST LINE
   Three micro-stats — anchors confidence
   ============================================ */

.fc-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  flex-wrap: wrap;
  width: 100%;

  opacity: 0;
  animation: fcFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;

  /* Hairline top rule */
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--color-border);
}

.fc-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0 clamp(1.5rem, 3.5vw, 2.75rem);
}

.fc-trust__value {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text-primary);
}

.fc-trust__sup {
  color: var(--color-accent);
  font-size: 0.55em;
  vertical-align: super;
  letter-spacing: 0;
}

.fc-trust__label {
  font-size: 0.62rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.fc-trust__sep {
  width: 1px;
  height: clamp(1.75rem, 3.5vw, 2.5rem);
  background-color: var(--color-border);
  flex-shrink: 0;
}


/* ============================================
   SHARED KEYFRAME
   ============================================ */

@keyframes fcFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================ */

@media (max-width: 1024px) {
  .fc-ornament {
    width: 60px;
    height: 60px;
  }
  .fc-ornament::before { height: 28px; }
  .fc-ornament::after  { width: 28px; }
}


/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */

@media (max-width: 768px) {
  .fc-section {
    padding-block: clamp(4rem, 10vw, 6rem);
  }

  .fc-ornament { display: none; }

  .fc-heading { letter-spacing: -0.035em; }

  .fc-btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .fc-trust { flex-wrap: wrap; row-gap: 0; }
  .fc-trust__sep { display: none; }

  .fc-trust__item {
    flex: 0 0 50%;
    padding: 1rem 1rem;
    position: relative;
  }

  .fc-trust__item:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .fc-trust__item:nth-child(3),
  .fc-trust__item:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }
}


/* ============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================ */

@media (max-width: 480px) {
  .fc-subtext { max-width: 36ch; }

  .fc-trust__item {
    flex: 0 0 100%;
    border-right: none !important;
    border-top: 1px solid var(--color-border);
  }

  .fc-trust__item:first-child { border-top: none; }
}


/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .fc-section::before,
  .fc-section::after {
    animation: none !important;
  }

  .fc-eyebrow,
  .fc-heading,
  .fc-subtext,
  .fc-cta-group,
  .fc-trust,
  .fc-ornament {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .fc-eyebrow__line,
  .fc-heading__accent::after {
    transform: scaleX(1) !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .fc-btn,
  .fc-btn::before,
  .fc-btn::after,
  .fc-btn__arrow,
  .fc-link,
  .fc-link::after,
  .fc-link__arrow {
    transition:
      color 0.15s ease,
      border-color 0.15s ease !important;
  }
}