/* =========================================================================
   Page "Success Stories" — Figma "Frame 1734": 1378×1234 scroll frame,
   grid 1249px wide (5 × 211.4px, 48px apart), rows 250.87px apart,
   tiles radius 27px.
   ========================================================================= */

/* Banner: dark with cyan outline triangles and a rule underneath */
.aw-stories__banner {
	position: relative;
	padding: clamp(24px, 2.5vw, 40px) 20px clamp(28px, 3vw, 48px);
	text-align: center;
	border-bottom: 1px solid rgba(160, 200, 230, 0.45);
	background:
		url('../images/stories-triangles.webp') center 45% / auto 140% repeat-x,
		#050b14;
	overflow: hidden;
}
.aw-stories__banner h1 {
	position: relative;
	margin: 0;
	color: #fff;
	font-size: clamp(3rem, 7.5vw, 120px);
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
}
/* "Success" / "Stories" on two lines, the second one shifted right */
.aw-stories__banner h1 span { display: block; }
.aw-stories__banner h1 span + span { padding-left: 1.4em; }

/* Logo wall ---------------------------------------------------------------- */
.aw-stories__wall {
	padding: clamp(24px, 3.8vw, 61px) 20px clamp(32px, 4vw, 64px);
	background:
		url('../images/stories-network.webp') center bottom / cover no-repeat,
		linear-gradient(180deg, #020312 0%, #03063a 100%);
}
.aw-stories__frame { max-width: 1378px; margin-inline: auto; }

.aw-stories__grid {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1249px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px 8px;
}

/* Tiles are the Figma exports (white, rounded) — the image fills the cell */
.aw-story-tile {
	display: block;
	aspect-ratio: 211.4 / 183.87;
	border-radius: clamp(10px, 1.7vw, 27px);
	background: #ffffff;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.aw-story-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aw-story-tile--text {
	color: #1b1f2a;
	font-weight: 800;
	font-size: clamp(0.8rem, 1vw, 16px);
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}
.aw-story-tile:hover {
	transform: translateY(-6px) scale(1.03);
	box-shadow: 0 0 0 3px #00bfff, 0 16px 40px rgba(0, 191, 255, 0.35);
}

@media (min-width: 640px) {
	.aw-stories__grid { gap: 24px 20px; }
}

@media (min-width: 1024px) {
	/* one line on desktop, as in the Figma */
	.aw-stories__banner h1 { display: block; }
	.aw-stories__banner h1 span { display: inline; }
	.aw-stories__banner h1 span + span { padding-left: 0; }

	/* Figma: fixed-height frame with its own scroll */
	.aw-stories__frame {
		max-height: 1234px;
		overflow-y: auto;
		/* room so a hovered tile (lift + zoom + glow) isn't clipped by the frame */
		padding: 24px 64px 32px;
		scrollbar-width: thin;
		scrollbar-color: #1684ff transparent;
	}
	.aw-stories__frame::-webkit-scrollbar { width: 8px; }
	.aw-stories__frame::-webkit-scrollbar-thumb { background: #1684ff; border-radius: 8px; }
	.aw-stories__grid {
		grid-template-columns: repeat(5, minmax(0, 211.4px));
		justify-content: space-between;
		row-gap: clamp(40px, 4.2vw, 67px);
		column-gap: 0;
	}
}
