/*
 * Stone Cliff Digital — Tri-State Web Design (local landing page)
 * Page-specific layout/decoration only. Colors, type, spacing, radii, and
 * motion all come from tokens.css; surfaces/typography/eyebrow/CTA come
 * from components.css. Shared sections (hero, why it matters, services,
 * why Stone Cliff Digital, process, after launch, our work, final CTA)
 * reuse front-page.css's own `home-*` / `service-card` / `cta-final`
 * classes directly, so only the dedicated Tri-State/local-availability
 * section needs page-specific rules here. Loaded only on
 * page-tri-state-web-design.php, alongside front-page.css.
 */

.tsw-main {
	overflow-x: hidden;
}

/* -------------------------------------------------------------------- */
/* Tri-State / local availability                                       */
/* -------------------------------------------------------------------- */

.tsw-local {
	position: relative;
	overflow: hidden;
	padding: 140px 0;
}

.tsw-local::before {
	content: "";
	position: absolute;
	right: -160px;
	top: -200px;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--sc-blue) 0%, transparent 70%);
	opacity: 0.14;
	pointer-events: none;
}

.tsw-local__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 60px;
}

.tsw-local__copy {
	max-width: 620px;
	flex-shrink: 0;
}

.tsw-local__heading {
	margin: 16px 0 26px;
	max-width: 560px;
	color: var(--sc-text-ondark);
}

.tsw-local__lede {
	margin: 0 0 22px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--sc-text-ondark-mute);
}

.tsw-local__body {
	margin: 0 0 40px;
	font-size: 15px;
	line-height: 1.75;
	color: var(--sc-text-ondark-mute);
}

.tsw-local__region {
	margin: 0 0 20px;
	font-family: var(--sc-font-mono);
	font-size: 13px;
	letter-spacing: 0.6px;
	color: var(--sc-text-ondark);
	padding-top: 24px;
	border-top: 1px solid var(--sc-ink-4);
}

.tsw-local__note {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--sc-text-ondark-mute);
}

/* Local availability artwork: a networked hub with three location chips,
   standing in for the Tri-State without a literal map. Decorative — the
   same city names already appear as real text in the copy beside it. */

.tsw-local__art {
	flex: 1;
	min-width: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.tsw-local__system {
	position: relative;
	width: 420px;
	height: 420px;
	flex-shrink: 0;
}

.tsw-local__glow {
	position: absolute;
	inset: 8%;
	border-radius: 50%;
	background: radial-gradient(ellipse, var(--sc-blue) 0%, transparent 68%);
	opacity: 0.32;
	mix-blend-mode: screen;
	pointer-events: none;
}

.tsw-local__ring {
	position: absolute;
	border: 1px solid rgba(108, 134, 255, 0.22);
	border-radius: 50%;
}

.tsw-local__ring--1 {
	inset: 18%;
	animation: tsw-local-ring-spin 60s linear infinite;
}

.tsw-local__ring--2 {
	inset: 32%;
	border-color: rgba(108, 134, 255, 0.32);
	animation: tsw-local-ring-spin 44s linear infinite reverse;
}

@keyframes tsw-local-ring-spin {
	to {
		transform: rotate(360deg);
	}
}

.tsw-local__web {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.tsw-local__strand {
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	animation: tsw-local-strand-draw 1.8s ease-out 0.2s forwards;
}

@keyframes tsw-local-strand-draw {
	to {
		stroke-dashoffset: 0;
	}
}

.tsw-local__core {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle, #fff 0%, var(--sc-blue-light) 70%);
	box-shadow: 0 0 0 8px rgba(108, 134, 255, 0.16), 0 0 40px rgba(108, 134, 255, 0.55);
	transform: translate(-50%, -50%);
}

.tsw-local__chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 8px;
	transform: translate(-50%, -50%);
	background: rgba(16, 18, 21, 0.72);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(108, 134, 255, 0.3);
	border-radius: 30px;
	padding: 9px 16px 9px 12px;
	font-family: var(--sc-font-mono);
	font-size: 11px;
	letter-spacing: 0.4px;
	color: var(--sc-text-ondark);
	white-space: nowrap;
	box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6);
	animation: tsw-local-chip-float 5s ease-in-out infinite;
}

.tsw-local__chip:nth-of-type(2) {
	animation-delay: 0.6s;
}

.tsw-local__chip:nth-of-type(3) {
	animation-delay: 1.1s;
}

.tsw-local__chip-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sc-blue-light);
	box-shadow: 0 0 8px var(--sc-blue-light);
	flex-shrink: 0;
}

@keyframes tsw-local-chip-float {
	0%, 100% {
		margin-top: 0;
	}
	50% {
		margin-top: -6px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsw-local__ring--1,
	.tsw-local__ring--2 {
		animation: none;
	}

	.tsw-local__strand {
		animation: none;
		stroke-dashoffset: 0;
	}

	.tsw-local__chip {
		animation: none;
	}
}

/* -------------------------------------------------------------------- */
/* Responsive — tablet (<=1024px)                                       */
/* -------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.tsw-local {
		padding: 96px 0 100px;
	}

	.tsw-local__inner {
		flex-direction: column;
		gap: 56px;
	}

	.tsw-local__copy {
		max-width: 100%;
	}

	.tsw-local__heading {
		font-size: 34px;
		max-width: 100%;
	}

	.tsw-local__system {
		width: 340px;
		height: 340px;
	}
}

/* -------------------------------------------------------------------- */
/* Responsive — phone (<=600px)                                         */
/* -------------------------------------------------------------------- */

@media (max-width: 600px) {
	.tsw-local {
		padding: 72px 0 80px;
	}

	.tsw-local__heading {
		font-size: 28px;
	}

	.tsw-local__system {
		width: 280px;
		height: 280px;
	}

	.tsw-local__chip {
		font-size: 9.5px;
		padding: 7px 12px 7px 9px;
	}
}

/* -------------------------------------------------------------------- */
/* Responsive — small phone (<=480px)                                   */
/* -------------------------------------------------------------------- */

@media (max-width: 480px) {
	.tsw-local__heading {
		font-size: 25px;
	}

	.tsw-local__system {
		width: 230px;
		height: 230px;
	}

	.tsw-local__chip {
		font-size: 8.5px;
		padding: 6px 10px 6px 8px;
		gap: 6px;
	}
}
