/* Section */
.sectionCS {
  padding: 3rem 3rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
  background: #fff;
  color: rgb(0, 6, 36);
}

.sectionCS h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: rgb(0, 6, 36);
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.case-study-page .nav-links a:hover {
  color: #3898ec9c;
}

.case-study-page .dropdown-menu a:hover {
  color: #3898ec;
}

.case-study {
	padding-top: 3rem;
}

.case-intro {
	max-width: 60ch;
	margin: 0 auto 7rem;
}

.case-intro-text {
	font-size: 1.15rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

.study-image {
  flex: 1 1 50%;
  text-align: center;
}

.study-image img {
  max-width: 100%;
  height: auto;
}

.case-contrast .contrast-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.contrast-block {
	padding: 2rem;
	border-radius: 14px;
}

.contrast-block.before {
	background: rgba(0, 0, 0, 0.04);
}

.contrast-block.after {
	background: #3898ec1c;
}

.contrast-block h3 {
	margin-bottom: 1rem;
}

.decision-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.decision-card {
	padding: 1.75rem;
	border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: white;
}

.case-pause-text {
	font-size: 3rem;
	max-width: 40ch;
	margin: 0 auto;
	opacity: 0.85;
	text-align: center;
	padding: 3rem;
}

.proof-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.proof-card {
	padding: 1.75rem;
	border-radius: 14px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: white;
}

.outcome-list {
	max-width: 40ch;
	margin: 0 auto;
	font-size: 1.1rem;
	line-height: 1.8;
}

.case-reflection {
	text-align: center;
	margin: 0 auto;
	opacity: 0.85;
}

.case-exit {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.case-transition {
	margin: 6rem 0;
	text-align: center;
}

.transition-lede {
	margin-bottom: 2.5rem;
	font-size: 1.1rem;
	opacity: 0.75;
}

.transition-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 2.5rem;
	align-items: center;
}

.transition-card {
	text-align: left;
}

.transition-card ul {
	margin: 0;
	padding-left: 1.2rem;
	line-height: 1.7;
}

/* THEN — intentionally outdated */
.transition-card.before {
  	font-family: courier;
	padding: 1.75rem;
	background: #f2f2f2;
	border: 1px dashed rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	color: rgba(0, 0, 0, 0.7);
	filter: saturate(0.6);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.transition-card.before li {
	opacity: 0.85;
}

/* NOW — modern, calm, confident */
.transition-card.after {
	padding: 2.5rem;
	background-image: url("/static/assets/images/AfterCard.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 18px;
	box-shadow:
    	0px 0px 60px rgba(0, 72, 255, 0.455),        /* outer glow */
    	inset 0 5px 15px white; /* inner highlight */
}

.transition-label {
	display: inline-block;
	margin-bottom: 1rem;
	font-weight: bold;
	letter-spacing: 0.02em;
	font-size: 0.85rem;
	opacity: 0.7;
}

.glass-panel{
  margin-bottom: 5px;
  position: relative;
  border-radius: 14px;
  max-width: 100%;
  padding: .5rem;
  isolation: isolate; /* keeps z-index predictable */
}

/* GLASS + BLUR layer */
.glass-panel::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;

  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,.55) 0%,
    rgba(160, 200, 255, 0.267) 35%,
    rgba(160, 200, 255, 0.072) 60%,
    rgba(160,200,255,0) 100%
  );

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Diagonal fade */
  mask-image: linear-gradient(
	to bottom right,
	#000 0%,
	#000 15%,
	rgba(0,0,0,.35) 75%,
	transparent 100%);

  -webkit-mask-image: linear-gradient(
	to bottom right,
	#000 0%,
	#000 15%,
	rgba(0,0,0,.35) 75%,
	transparent 100%);

  z-index: 0;
  pointer-events:none;
}

/* BORDER layer (this is the key) */
.glass-panel::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  z-index: 0;

  /* Gradient border that naturally fades */
  border: 1px solid transparent;
  background:
    linear-gradient(transparent, transparent) padding-box,
    linear-gradient(
      to bottom right,
      rgba(255,255,255,.55) 0%,
      rgba(255,255,255,.25) 35%,
      rgba(255,255,255,.10) 60%,
      rgba(255,255,255,0) 100%
    ) border-box;

  /* SAME diagonal fade as the glass */
  mask-image: linear-gradient(to bottom right, #000 0%, #000 25%, rgba(0, 0, 0, 0.144) 100%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom right, #000 0%, #000 25%, rgba(0,0,0,.144) 100%, transparent 100%);
}

/* content stays above */
.glass-content{
  position: relative;
  z-index: 1;
}

.transition-label-after {
  color: #c7832f;
  font-size: 18px;
  opacity: unset;
}

#after-outcome {
  font-size: 16px;
}

.transition-divider {
	font-size: 2rem;
	opacity: 0.35;
}

.case-decisions {
	text-align: center;
}

.decision-intro {
	margin-bottom: 2.5rem;
	font-size: 1.1rem;
	opacity: 0.75;
}

/* Card base */
.decision-card {
	position: relative;
	padding: 2.25rem;
	border-radius: 0;
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

/* Subtle accent line */
.decision-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: #3898ec9c;
	border-top-left-radius: 16px;
	border-top-right-radius: 16px;
	opacity: 0.6;
}

/* Hover polish */
.decision-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Typography refinement */
.decision-card h4 {
	margin-bottom: 0.5rem;
	font-size: 1.2rem;
}

.decision-card p {
	opacity: 0.8;
	line-height: 1.6;
}

.case-proof {
	text-align: center;
}

.proof-intro {
	margin-bottom: 3rem;
	font-size: 1.1rem;
	opacity: 0.75;
}

/* Proof cards */
.proof-card {
	position: relative;
	padding: 2.25rem;
	border-radius: 0;
	border-bottom-left-radius: 6px;
	border-top-left-radius: 6px;
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Subtle vertical accent */
.proof-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 4px;
	background: rgba(56, 152, 236, 0.35);
	border-top-left-radius: 16px;
	border-bottom-left-radius: 16px;
}

/* Hover polish */
.proof-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.proof-card h4 {
	margin-bottom: 0.75rem;
	font-size: 1.2rem;
}

.proof-card ul {
	margin: 0;
	padding-left: 1.2rem;
	line-height: 1.7;
	opacity: 0.85;
}



/* Invisible content */

#h2Phone {
	display: none;
}

html, body {
  overflow-x: hidden;
}

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

	.transition-divider {
		display: none;
	}

  	.contrast-grid,
	.decision-grid,
	.proof-grid {
		grid-template-columns: 1fr;
	}

	.transition-card.after {
    	box-shadow:0px 0px 15px rgba(0, 72, 255, 0.3), inset 0 5px 15px white;
	}

	#h2Phone {
		display: block;
	}

	#h2Comp {
		display: none;
	}
}

@media (max-width: 768px) {
  .sectionCS {
    padding: 2rem 1rem;
  }

  .about-container {
    gap: 2rem;
  }

  .transition-grid {
    gap: 1.5rem;
  }
}