:root {
  --jac: linear-gradient(90deg, #E42121 0%, #EF1443 100%);
  --jac-red: #EF1443;
}

.jac-page {
  --case-accent: var(--jac);
}

.jac-page .site-header { border-bottom: 1px solid rgba(255,255,255,.12); }
.jac-page .case-shell { padding-top: clamp(28px, 4vw, 56px); }
.jac-page .case-layout { position: relative; gap: clamp(24px, 3vw, 52px); align-items: start; }
.jac-page .case-layout::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(var(--case-nav-width) + (var(--case-gap) / 2));
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.62) 18%, rgba(255,255,255,0.18) 100%);
  pointer-events: none;
}

.jac-page .case-side-nav { top: 138px; }
.jac-page .case-side-nav nav { display:flex; flex-direction:column; }
.jac-page .case-side-nav-list { display:grid; gap:16px; }
.jac-page .case-side-nav-gap { height: 8px; }
.jac-page .case-side-nav a { color: rgba(255,255,255,.74); }
.jac-page .case-side-nav a:hover,
.jac-page .case-side-nav a.is-active {
  background: var(--jac);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
}
.jac-page .case-side-nav .case-nav-jump:hover,
.jac-page .case-side-nav .case-nav-jump.is-active {
  color:#FBCB10;
  -webkit-text-fill-color:#FBCB10;
  background:none;
}
.jac-page .case-nav-label {
  margin-top: 10px;
  text-align:right;
  font-size:18px;
  font-weight:300;
  background: var(--jac);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
}
.jac-page .case-nav-jump span { display:block; }

.jac-page .case-section { scroll-margin-top: 124px; }
.jac-page .case-section + .case-section { margin-top: clamp(72px, 8vw, 108px); }
.jac-page .case-section-title,
.jac-page .section-heading h2 {
  margin:0;
  font-size: clamp(2.35rem, 3.8vw, 3.125rem);
  font-weight:200;
  line-height:1.1;
  letter-spacing:-1px;
}
.jac-page .title-base { color:#fff; }
.jac-page .jac-hero-accent,
.jac-page .flip-card--insight .flip-front h3,
.jac-page .flip-back h3 {
  background: var(--jac);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color: transparent;
}
.jac-page .section-subtitle { max-width: 980px; margin-inline:auto; }


/* JAC title shimmer — all .title-accent */
.jac-page .title-accent {
  background-image:
    linear-gradient(90deg, #E42121 0%, #EF1443 100%),
    linear-gradient(110deg,
      transparent      0%,
      rgba(255,160,180,0)   24%,
      rgba(255,200,215,1.0) 48%,
      rgba(255,160,180,0)   72%,
      transparent     100%);
  background-size: 100% 100%, 230% 100%;
  background-position: 0 0, 150% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: jacTitleShimmer 4.8s ease-in-out infinite;
}

@keyframes jacTitleShimmer {
  0%, 68%, 100% { background-position: 0 0, 150% 0; }
  83%           { background-position: 0 0, -35% 0; }
}
.jac-page .section-support,
.jac-page .case-hero-support,
.jac-page .jac-hero-body,
.jac-page .challenge-card p,
.jac-page .system-copy p,
.jac-page .flip-face p,
.jac-page .result-card p { font-weight: 200; }

/* ══ JAC HERO — pulsing glow + light sweep + float ══ */
@keyframes jacHeroGlow {
  0%,100% {
    box-shadow:
      0 0  40px rgba(239,20,67,.13),
      0 0  80px rgba(239,20,67,.05),
      0 18px 56px rgba(0,0,0,.28);
  }
  50% {
    box-shadow:
      0 0  72px rgba(239,20,67,.30),
      0 0 140px rgba(228,33,33,.12),
      0 18px 56px rgba(0,0,0,.28);
  }
}
@keyframes jacHeroSweep {
  0%   { transform: translateX(-180%) skewX(-18deg); opacity:0; }
  4%   { opacity:.52; }
  50%  { opacity:.36; }
  96%  { opacity:.52; }
  100% { transform: translateX(280%)  skewX(-18deg); opacity:0; }
}
@keyframes jacHeroFloat {
  0%,100% { transform: scale(1)     translateY(0);   }
  50%      { transform: scale(1.016) translateY(-5px); }
}

.jac-hero-media {
  position: relative;
  z-index: 1;
  min-height: clamp(320px, 40vw, 710px);
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  animation: jacHeroGlow 4.2s ease-in-out infinite;
}
.jac-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 28%;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0)     0%,
    rgba(255,200,210,.18)  45%,
    rgba(255,210,220,.26)  50%,
    rgba(255,200,210,.18)  55%,
    rgba(255,255,255,0)   100%
  );
  transform: translateX(-180%) skewX(-18deg);
  animation: jacHeroSweep 9s cubic-bezier(.4,0,.2,1) infinite;
  pointer-events: none;
}
.jac-hero-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center center;
  animation: jacHeroFloat 8s ease-in-out infinite;
  transform-origin: center center;
}
.jac-hero-panel {
  position:relative;
  z-index:2;
  margin-top: clamp(-84px, -7vw, -116px);
  min-height: clamp(520px, 39vw, 680px);
  border-radius:0 0 40px 40px;
  background: linear-gradient(187deg, #000 -17.24%, #0D0D0D 46.87%, #292929 94.81%);
  padding: clamp(44px, 5vw, 86px) clamp(24px, 4vw, 54px) clamp(34px, 4vw, 58px);
  box-shadow: var(--shadow-lg);
}
.jac-hero-grid {
  display:grid;
  grid-template-columns:minmax(280px,.44fr) minmax(0,1fr);
  gap: clamp(28px,4vw,72px);
  align-items:end;
}
.jac-hero-left { align-self:end; padding-bottom: 24px; }
.jac-hero-right { display:grid; justify-items:end; text-align:right; }
.jac-hero-right h1 {
  margin:0;
  font-size: clamp(3.9rem, 8vw, 7.2rem);
  font-weight:700;
  letter-spacing: clamp(-3px, -0.4vw, -8px);
  line-height:1.02;
  white-space: nowrap;
}
.jac-hero-right h2 { margin: 18px 0 0; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight:700; line-height:1.1; }
.jac-hero-accent { margin: 18px 0 0; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight:400; line-height:1.2; }
.jac-hero-body { max-width: 860px; margin: 24px 0 0 auto; font-size:18px; line-height:1.45; letter-spacing:.32px; }

.challenge-section .case-section-shell,
.system-card,
.result-card,
.flip-face {
  border-radius: 48px;
  background: linear-gradient(178deg, #000 10.02%, #292929 98.65%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
}
.challenge-section .case-section-shell { padding: clamp(36px,4vw,64px) clamp(18px,2.8vw,34px) clamp(26px,3vw,40px); }
.challenge-heading { margin-bottom: clamp(34px, 4vw, 48px); }
.jac-challenge-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:22px; }
.challenge-card {
  position:relative; min-height: 430px; padding: 28px 28px 32px; border-radius:48px;
  background: transparent; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-md);
}
.challenge-card h3 { margin: 34px 0 0; font-size:24px; font-weight:600; line-height:1.35; }
.challenge-card p { margin: 18px 0 0; font-size:18px; line-height:1.45; }
.challenge-card-icon { min-height: 110px; display:flex; align-items:flex-end; justify-content:center; }
.challenge-card-icon img { width:97px; height:95px; object-fit:contain; filter: brightness(0) saturate(100%) invert(16%) sepia(96%) saturate(3377%) hue-rotate(336deg) brightness(96%) contrast(96%); }

.quote-section--compact .case-quote img { width:min(720px, 72%); height:auto; margin-inline:auto; }

.jac-system-section,
.jac-learning-section,
.jac-insights-section,
.jac-results-section { max-width: 1494px; margin-inline:auto; }
.system-card { padding: 52px 56px 44px; margin-top: 40px; }
.system-card-head { display:flex; justify-content:flex-end; }
.system-step-counter { margin:0 0 20px; font-size:11px; font-weight:600; letter-spacing:.13em; color: rgba(255,255,255,.35); }
.system-current { color: var(--jac-red); }
.system-tabs { display:flex; }
.system-tab {
  position:relative; flex:1; background:transparent; border:0; border-bottom: .5px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.35); font: 600 11px/1 "Inter", sans-serif; letter-spacing:.13em; text-align:left; padding: 0 0 16px; cursor:pointer;
}
.system-tab span { text-transform:none; }
.system-tab.is-active { color: var(--jac-red); }
.system-tab[data-step="0"], .system-dot[data-step="0"] { margin-left:0; }
.system-tab i {
  position:absolute; left:0; bottom:-.75px; height:1.5px; width:0; background: var(--jac-red); display:block;
}
.system-tab.is-active i.is-running { animation: systemLine 4.5s linear forwards; }
@keyframes systemLine { from { width:0; } to { width:100%; } }

.system-content {
  margin-top: 28px; display:grid; grid-template-columns: 1fr 1fr; gap:28px; min-height: 290px; align-items:stretch;
}
.system-media {
  position:relative; border-radius:16px; background: rgba(255,255,255,.03); border:.5px solid rgba(255,255,255,.07); overflow:hidden;
  min-height: 290px;
}
.system-media img { width:100%; height:100%; object-fit:cover; display:block; transition: opacity .5s ease; }
.system-image-label {
  position:absolute; left:18px; bottom:16px; font-size:11px; font-weight:600; letter-spacing:.13em; color: rgba(255,255,255,.35);
}
.system-watermark {
  position:absolute; right:18px; top:16px; font-size:56px; font-weight:200; font-style:italic; color: rgba(239,20,67,.1);
}
.system-copy { display:flex; flex-direction:column; justify-content:center; transition: opacity .4s ease, transform .4s ease; }
.system-phase { display:flex; align-items:center; gap:10px; margin:0 0 16px; color:var(--jac-red); font-size:11px; font-weight:600; letter-spacing:.13em; }
.system-phase span { width:16px; height:1px; background:var(--jac-red); display:inline-block; }
.system-copy h3 { margin:0 0 16px; color:#fff; font-size:30px; font-weight:400; line-height:1.1; }
.system-copy p { margin:0; font-size:18px; line-height:1.4; letter-spacing:.54px; }
.system-bullets { margin: 16px 0 0; padding:0; list-style:none; display:grid; gap:10px; }
.system-bullets li { color:#fff; font-size:18px; font-weight:200; line-height:1.4; letter-spacing:.54px; }
.system-bullets li::before { content:'→'; color: rgba(239,20,67,.7); margin-right:10px; }
.system-credit { margin-top: 14px !important; font-size:11px !important; font-weight:300 !important; font-style:italic; color: rgba(255,255,255,.25) !important; }
.system-footer { margin-top:28px; padding-top:20px; border-top: .5px solid rgba(255,255,255,.08); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.system-dots { display:flex; gap:10px; }
.system-dot { width:5px; height:5px; border-radius:999px; border:0; background: rgba(255,255,255,.18); cursor:pointer; transition: all .3s ease; }
.system-dot.is-active { width:20px; border-radius:2.5px; background: var(--jac-red); }
.system-arrows { display:flex; gap:10px; }
.system-arrow {
  width:36px; height:36px; display:grid; place-items:center; background:transparent; border:.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.4); cursor:pointer; transition: .2s ease;
}
.system-arrow:hover { border-color: var(--jac-red); color: var(--jac-red); }
.system-progress { margin-top:24px; height:.5px; background: rgba(255,255,255,.07); }
.system-progress span { display:block; width:20%; height:100%; background: var(--jac-red); transition: width .4s ease; }
.system-cta-wrap { display:flex; justify-content:center; margin-top:40px; }
.system-cta {
  width:280px; max-width:100%; padding:12px 40px;
  display:flex; align-items:center; justify-content:center; text-align:center;
  font-size:18px; white-space:nowrap;
  color:#fff; border-bottom:2px solid var(--jac-red);
  background:none; -webkit-text-fill-color:#fff;
}
.system-cta::before { background: var(--jac); }
.system-cta:hover {
  transform: translateY(-3px); box-shadow: 0 14px 28px rgba(251,203,16,0.12); filter: brightness(1.1);
  background: linear-gradient(90deg, #ecdd4d 0%, #fe964d 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent;
  border-image: linear-gradient(90deg, #ecdd4d 0%, #fe964d 100%) 1;
}
.system-cta:hover::before { background: linear-gradient(90deg, #ecdd4d 0%, #fe964d 100%); }

.flip-grid { margin-top:42px; display:grid; gap:22px; }
.flip-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.flip-grid--five { grid-template-columns: repeat(5,minmax(0,1fr)); }
.flip-card { perspective: 1200px; min-height: 360px; cursor:pointer; }
.flip-card--insight { min-height: 270px; }
.flip-card-inner {
  position:relative; width:100%; height:100%; min-height: inherit; transform-style: preserve-3d; transition: transform .7s var(--ease);
}
.flip-card:hover .flip-card-inner,
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-face {
  position:absolute; inset:0; padding:34px 28px; backface-visibility:hidden; display:flex; flex-direction:column; justify-content:center;
}
.flip-front::before,
.flip-back::before {
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background: radial-gradient(260px 220px at 50% 24%, rgba(239,20,67,.16), transparent 48%), linear-gradient(180deg, rgba(255,255,255,.06), transparent 28%);
  opacity:.9;
}
.flip-front > *, .flip-back > * { position:relative; z-index:1; }
.flip-front h3, .flip-back h3 { margin:0 0 16px; font-size:24px; line-height:1.2; color:#fff; }
.flip-front p, .flip-back p { margin:0; font-size:18px; line-height:1.45; color:#fff; }
.flip-back { transform: rotateY(180deg); }

/* Flip hint — subtle rotating arrows in bottom-right corner */
.flip-front::after {
  content: "↺";
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 18px;
  color: rgba(255,255,255,.28);
  transition: color .3s ease, transform .3s ease;
  z-index: 2;
  line-height: 1;
}
.flip-card:hover .flip-front::after {
  color: rgba(239,20,67,.72);
  transform: rotate(180deg);
}
.flip-card--insight .flip-front { text-align:center; }
.flip-card--insight .flip-front h3 { margin:0; font-size:26px; }
.flip-card--insight .flip-back { text-align:center; }
.flip-card--insight .flip-back p { font-size:20px; }

.jac-results-box {
  margin-top:40px;
  padding: 36px 28px 28px;
  display:grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
  align-items:stretch;
}
.result-card {
  position: relative;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding: 22px 12px 18px;
  min-height: 368px;
  overflow: hidden;
}
.progress-ring {
  width: 190px;
  height: 190px;
  transform: rotate(-90deg);
  flex: 0 0 auto;
}
.progress-ring__bg { fill:none; stroke: rgba(255,255,255,.08); stroke-width:16; }
.progress-ring__value { fill:none; stroke-width:16; stroke-linecap:round; stroke-dasharray:615.75; stroke-dashoffset:615.75; transition: stroke-dashoffset 1.4s ease; }
.result-center {
  position: absolute;
  top: 116px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  min-height: 86px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap: 6px;
  pointer-events: none;
}
.result-mini {
  color: rgba(255,255,255,.76);
  text-align:center;
  font-size: 12px;
  font-weight:300;
  line-height: 1.1;
  letter-spacing: .1px;
  max-width: 108px;
}
.result-value {
  font-family:'Inter', sans-serif;
  font-size: 40px;
  font-weight:700;
  line-height: 1.1;
  letter-spacing: -.3px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(29deg, #5A61E4 23.88%, #11B0EE 85.35%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent;
}
.result-value--sm { background: linear-gradient(180deg, #EA8625 0%, #FF3516 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent; }
.result-card:nth-child(2) .result-value--sm { background: linear-gradient(180deg, #E42121 0%, #FF2755 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent; }
.result-value--budget {
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -.3px;
  background: linear-gradient(180deg, #BBD143 0%, #5A7A1A 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent;
}
.result-value--award {
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -.3px;
  background: linear-gradient(90deg, #ECDD4D 0%, #FE964D 100%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent;
}
.result-card p {
  width: 100%;
  max-width: 200px;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.35;
  color: #fff;
  text-align: center;
}

/* ── Ring glow colours per card ───────────────────────────── */
.result-card:nth-child(1) .progress-ring { --ring-glow: #EA8625; }
.result-card:nth-child(2) .progress-ring { --ring-glow: #E42121; }
.result-card:nth-child(3) .progress-ring { --ring-glow: #5A61E4; }
.result-card:nth-child(4) .progress-ring { --ring-glow: #BBD143; }
.result-card:nth-child(5) .progress-ring { --ring-glow: #ECDD4D; }

.progress-ring.is-glowing {
  filter: drop-shadow(0 0 2px var(--ring-glow));
}

/* card-glow hover effect for challenge cards */
.card-glow {
  transition: box-shadow .3s ease, transform .3s ease;
}
.card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(239,20,67,.18),
              0 12px 40px rgba(239,20,67,.12),
              0 20px 60px rgba(0,0,0,.28);
}

@media (max-width:1240px) {
  .jac-page .case-layout::after { display:none; }
  .jac-challenge-grid,
  .flip-grid--three,
  .flip-grid--five,
  .jac-results-box { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .system-content { grid-template-columns: 2fr 3fr; gap:20px; min-height:240px; }
  .system-copy h3 { font-size:24px; }
  .system-copy p, .system-bullets li { font-size:15px; }
  .system-watermark { font-size:44px; }
  .system-card { padding:36px 36px 30px; border-radius:32px; }
}

@media (max-width:980px) {
  .jac-hero-panel { margin-top:-68px; }
  .jac-hero-grid { grid-template-columns:1fr; align-items:start; }
  .jac-hero-left, .jac-hero-right { justify-items:start; text-align:left; }
  .jac-hero-body { margin-left:0; }
  .jac-hero-right h1 { white-space: normal; }
  .jac-results-box { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width:820px) {
  .jac-page .case-layout { grid-template-columns:1fr; }
  .jac-page .case-side-nav { display:none; }
  .jac-page .case-shell { padding-top:20px; }
  .jac-hero-media { min-height:260px; border-radius:24px 24px 0 0; }
  .jac-hero-panel { margin-top:-34px; border-radius:0 0 28px 28px; padding-inline:22px; }
  .jac-hero-right h1 { font-size: clamp(3.3rem,13vw,5rem); }
  .jac-hero-right h2 { font-size: clamp(1.4rem,4.8vw,2rem); }
  .jac-hero-accent { font-size: clamp(1rem,4vw,1.3rem); }
  .jac-challenge-grid,
  .flip-grid--three,
  .flip-grid--five,
  .jac-results-box { grid-template-columns:1fr; }
  .challenge-card,
  .system-card,
  .result-card,
  .flip-face { border-radius:28px; }
}

@media (max-width:620px) {
  .quote-section--compact .case-quote img { width:min(560px, 88%); }
  .system-card { padding:24px 20px 20px; border-radius:24px; }
  .system-content { display:flex; flex-direction:column; gap:16px; }
  .system-media { min-height:auto; height:180px; border-radius:12px; }
  .system-watermark { font-size:36px; }
  .system-image-label { left:12px; bottom:10px; }
  .system-copy h3 { font-size:22px; margin-bottom:10px; }
  .system-copy p, .system-bullets li { font-size:14px; }
  .system-footer { margin-top:20px; padding-top:16px; }
  .system-progress { margin-top:16px; }
  .system-arrow { width:30px; height:30px; }
  .system-cta-wrap { margin-top:28px; }
  .system-cta { width:100%; max-width:317px; padding:10px 28px; font-size:16px; }
  .flip-card { min-height: 300px; }
  .flip-card--insight { min-height:220px; }
  .flip-front h3, .flip-back h3 { font-size:22px; }
  .flip-front p, .flip-back p, .flip-card--insight .flip-back p { font-size:16px; }
  .result-card { min-height:auto; }
  .result-center { top: 112px; width: 126px; }
  .result-card p { font-size: 15px; }
}

