/* =========================================================
   MATT'S WEB STUDIO — HOMEPAGE HERO
========================================================= */

.mws-hero {
	position: relative;
	overflow: hidden;
	min-height: calc(100svh - var(--mws-header-height, 94px));
	color: var(--mws-ink, #090909);
	background:
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.13),
			transparent 45%,
			rgba(255, 255, 255, 0.08)
		),
		#f8f2e9;
	border-bottom: 1px solid rgba(9, 9, 9, 0.22);
	isolation: isolate;
}

.mws-hero::before {
	position: absolute;
	inset: 0;
	z-index: -5;
	background-image:
		linear-gradient(rgba(25, 20, 15, 0.018) 1px, transparent 1px),
		linear-gradient(90deg, rgba(25, 20, 15, 0.018) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	pointer-events: none;
}

.mws-hero > .mws-container {
	width: min(1500px, calc(100% - 96px));
	max-width: none;
	margin-inline: auto;
}

/* =========================================================
   SUN ASSET
========================================================= */

.mws-hero__sun {
	--mws-sun-x: 0px;
	--mws-sun-y: 0px;
	--mws-sun-scale: 1;

	position: absolute;
	z-index: -2;
	top: 50%;
	left: 51%;
	width: clamp(620px, 56vw, 940px);
	aspect-ratio: 1;
	pointer-events: none;
	transform:
		translate(
			calc(-50% + var(--mws-sun-x)),
			calc(-50% + var(--mws-sun-y))
		)
		scale(var(--mws-sun-scale));
	transform-origin: center;
	filter:
		saturate(1)
		brightness(1);
	transition: filter 600ms ease;
	will-change: transform;
}

.mws-hero__sun::after {
	position: absolute;
	inset: 7%;
	z-index: -1;
	border-radius: 50%;
	background:
		radial-gradient(
			circle,
			rgba(255, 200, 30, 0.32) 0%,
			rgba(255, 105, 0, 0.22) 46%,
			rgba(255, 38, 0, 0.08) 68%,
			transparent 78%
		);
	filter: blur(42px);
	opacity: 0.72;
	content: "";
	transition:
		opacity 600ms ease,
		filter 600ms ease,
		transform 600ms ease;
}

.mws-hero__sun img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	transform-origin: center;
	animation: mws-sun-rotation 110s linear infinite;
	will-change: transform;
}

.mws-hero__sun--active {
	filter:
		saturate(1.12)
		brightness(1.06);
}

.mws-hero__sun--active::after {
	opacity: 1;
	filter: blur(52px);
	transform: scale(1.06);
}

@keyframes mws-sun-rotation {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

.mws-hero__grid {
	position: relative;
	z-index: 2;
	min-height: 150px;
	padding-top: 160px;
	padding-bottom: clamp(72px, 7vw, 112px);
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.66fr);
	gap: clamp(45px, 5vw, 90px);
	align-items: center;
	box-sizing: border-box;
}

/* =========================================================
   LEFT CONTENT
========================================================= */

.mws-hero__content {
	position: relative;
	z-index: 5;
	width: 100%;
	min-width: 0;
}

.mws-hero h1 {
	width: max-content;
	max-width: none;
	margin: 0;
	color: #080808;
	font-family:
		var(--mws-display, Impact),
		"Arial Narrow",
		Arial,
		sans-serif;
	font-size: clamp(5.4rem, 8.6vw, 9rem);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.045em;
	text-transform: uppercase;
}

.mws-hero__heading-line {
	display: block;
	white-space: nowrap;
}

.mws-hero__heading-line--outline {
	position: relative;
	color: transparent;
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: 2px #ffbd28;
	text-stroke: 2px #ffbd28;
	paint-order: stroke fill;
	text-shadow: none;
}

.mws-hero__heading-line--outline::before,
.mws-hero__heading-line--outline::after {
	position: absolute;
	inset: 0;
	display: block;
	color: #ff9a1a;
	content: attr(data-text);
	pointer-events: none;
	-webkit-text-fill-color: #ff9a1a;
	-webkit-text-stroke: 0;
	text-stroke: 0;
	will-change: opacity;
}

.mws-hero__heading-line--outline::before {
	filter: url("#mws-hero-outer-glow");
	opacity: 0.72;
	animation: mws-hero-glow-near-pulse 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.mws-hero__heading-line--outline::after {
	filter: url("#mws-hero-outer-glow-expanded");
	opacity: 0.06;
	animation: mws-hero-glow-wide-pulse 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes mws-hero-glow-near-pulse {
	0%,
	100% {
		opacity: 0.58;
	}

	50% {
		opacity: 0.92;
	}
}

@keyframes mws-hero-glow-wide-pulse {
	0%,
	100% {
		opacity: 0.06;
	}

	50% {
		opacity: 0.78;
	}
}

.mws-hero__lead {
	position: relative;
	z-index: 6;
	max-width: 460px;
	margin: clamp(24px, 2vw, 34px) 0 0;
	padding-right: 12px;
	color: #161616;
	background: linear-gradient(
		90deg,
		rgba(248, 242, 233, 0.76),
		rgba(248, 242, 233, 0)
	);
	font-family: var(--mws-mono, "Courier New", monospace);
	font-size: clamp(0.96rem, 1vw, 1.08rem);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: -0.015em;
}

.mws-hero__button {
	position: relative;
	min-height: 58px;
	margin-top: clamp(25px, 2.5vw, 36px);
	padding: 0 28px;
	display: inline-flex;
	gap: 22px;
	align-items: center;
	justify-content: center;
	border: 1px solid #0a0a0a;
	color: #0a0a0a;
	background: transparent;
	font-family: var(--mws-mono, "Courier New", monospace);
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	isolation: isolate;
	transition:
		color 180ms ease,
		transform 180ms ease;
}

.mws-hero__button::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(
		110deg,
		#ff4b31 0%,
		#ff8a1f 52%,
		#ffd43b 100%
	);
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
}

.mws-hero__button:hover {
	color: #0a0a0a;
	background: transparent;
	transform: translateY(-3px);
}

.mws-hero__button:hover::before,
.mws-hero__button:focus-visible::before {
	opacity: 1;
}

/* =========================================================
   RIGHT PROJECT COMPOSITION
========================================================= */

.mws-hero__visual {
	position: relative;
	z-index: 6;
	width: 100%;
	max-width: 546px;
	min-height: clamp(651px, 48vw, 746px);
	justify-self: end;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	isolation: isolate;
	transform: translateX(24px);
}

.mws-project-card__backdrop {
	position: absolute;
	z-index: -1;
	top: 8%;
	right: -7%;
	width: 87%;
	height: 88%;
	border: 1px solid rgba(120, 87, 0, 0.35);
	background:
		linear-gradient(
			135deg,
			rgba(255, 238, 141, 0.8),
			rgba(255, 199, 45, 0.5)
		);
	box-shadow: 20px 25px 65px rgba(215, 139, 0, 0.11);
}

.mws-project-showcase {
	position: relative;
	z-index: 3;
	width: min(100%, 420px);
	min-height: 704px;
	overflow: hidden;
	border: 1px solid rgba(15, 15, 15, 0.22);
	background: rgba(249, 244, 235, 0.96);
	box-shadow: 0 24px 55px rgba(63, 43, 17, 0.1);
	box-sizing: border-box;
	transition:
		transform 350ms ease,
		box-shadow 350ms ease;
}

.mws-hero__visual:hover .mws-project-showcase {
	box-shadow: 0 32px 70px rgba(63, 43, 17, 0.16);
	transform: translateY(-7px);
}

/* =========================================================
   PROJECT CARD HEADER
========================================================= */

.mws-project-showcase__top {
	min-height: 55px;
	padding: 0 22px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 15px;
	align-items: center;
	color: #161616;
	font-family: var(--mws-mono, "Courier New", monospace);
	font-size: 0.66rem;
	font-weight: 700;
	text-transform: uppercase;
}

.mws-project-showcase__top > span:nth-child(2) {
	justify-self: center;
}

.mws-project-showcase__menu {
	width: 22px;
	justify-self: end;
	display: grid;
	gap: 4px;
}

.mws-project-showcase__menu i {
	width: 100%;
	height: 1px;
	display: block;
	background: #111;
}

/* =========================================================
   PROJECT CARD INTRO
========================================================= */

.mws-project-showcase__intro {
	padding: 4px 32px 10px;
}

.mws-project-showcase__intro p {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.5rem, 3.5vw, 3.5rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.05em;
	text-transform: uppercase;
}

.mws-project-showcase__intro span {
	margin-top: 3px;
	display: block;
	font-family: var(--mws-mono, "Courier New", monospace);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* =========================================================
   PROJECT HOUSE IMAGE
========================================================= */

.mws-project-showcase__image {
	width: 100%;
	height: clamp(300px, 26vw, 383px);
	overflow: hidden;
	background: #d7c4a5;
}

.mws-project-showcase__image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: 84% center;
	transform: scale(1.08);
	transition: transform 600ms ease;
}

.mws-hero__visual:hover .mws-project-showcase__image img {
	transform: scale(1.12);
}

/* =========================================================
   PROJECT LINKS
========================================================= */

.mws-project-showcase__links {
	padding: 20px 25px 18px;
	display: grid;
	gap: 5px;
}

.mws-project-showcase__links a {
	width: max-content;
	color: #171717;
	font-family: var(--mws-mono, "Courier New", monospace);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	text-transform: uppercase;
}

.mws-project-showcase__links a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* =========================================================
   PROJECT CARD FOOTER
========================================================= */

.mws-project-showcase__footer {
	margin: 0 20px;
	padding: 13px 2px;
	display: flex;
	justify-content: space-between;
	border-top: 1px solid rgba(15, 15, 15, 0.22);
	color: #333;
	font-family: var(--mws-mono, "Courier New", monospace);
	font-size: 0.58rem;
	font-weight: 700;
	text-transform: uppercase;
}

/* =========================================================
   SELECTED WORK LABEL
========================================================= */

.mws-hero__selected-work {
	position: absolute;
	right: -44%;
	bottom: 2%;
	width: 145px;
	padding: 13px 0;
	border-block: 1px solid rgba(15, 15, 15, 0.72);
	color: #0d0d0d;
	font-family: var(--mws-mono, "Courier New", monospace);
	text-transform: uppercase;
}

.mws-hero__selected-work span {
	display: block;
	font-size: 0.72rem;
}

.mws-hero__selected-work strong {
	margin-top: 5px;
	display: block;
	font-family:
		var(--mws-display, Impact),
		"Arial Narrow",
		Arial,
		sans-serif;
	font-size: 2.9rem;
	font-weight: 600;
	line-height: 1;
}

/* =========================================================
   ORBIT DECORATION
========================================================= */

.mws-hero__orbit {
	position: absolute;
	z-index: 1;
	top: 19%;
	right: 8%;
	width: 430px;
	height: 580px;
	border: 1px dotted rgba(30, 30, 30, 0.42);
	border-left-color: transparent;
	border-radius: 50%;
	pointer-events: none;
}

.mws-hero__orbit-dot {
	position: absolute;
	top: 24%;
	right: 6%;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #111;
}

.mws-hero__orbit-cross {
	position: absolute;
	right: 2%;
	bottom: 27%;
	width: 68px;
	height: 68px;
}

.mws-hero__orbit-cross::before,
.mws-hero__orbit-cross::after {
	position: absolute;
	background: rgba(15, 15, 15, 0.55);
	content: "";
}

.mws-hero__orbit-cross::before {
	top: 50%;
	left: 0;
	width: 100%;
	height: 1px;
}

.mws-hero__orbit-cross::after {
	top: 0;
	left: 50%;
	width: 1px;
	height: 100%;
}

/* =========================================================
   BOTTOM SERVICE RAIL
========================================================= */

.mws-hero__service-rail {
	position: relative;
	z-index: 7;
	min-height: 72px;
	padding: 0;
	display: block;
	border-block: 1px solid rgba(15, 15, 15, 0.55);
	color: #282828;
	font-family: var(--mws-mono, "Courier New", monospace);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	box-sizing: border-box;
	overflow: hidden;
}

.mws-hero__button > span {
	position: relative;
	z-index: 2;
}

.mws-hero__button-tracer {
	position: absolute;
	z-index: 3;
	inset: -2px;
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	overflow: visible;
	pointer-events: none;
}

.mws-hero__button-tracer-line {
	fill: none;
	stroke: url(#mws-hero-cta-gradient);
	stroke-width: 2.25;
	stroke-linecap: round;
	stroke-dasharray: 17 83;
	stroke-dashoffset: 0;
	filter: drop-shadow(0 0 4px rgba(255, 122, 24, 0.72));
	opacity: 0.94;
}

.mws-hero__service-rail > .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.mws-hero__service-rail span {
	position: relative;
}

.mws-hero__service-rail span:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: -19px;
	content: "•";
	transform: translateY(-50%);
}

/* =========================================================
   LARGE LAPTOPS
========================================================= */

@media (max-width: 1380px) {

	.mws-hero > .mws-container {
		width: calc(100% - 64px);
	}

	.mws-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(360px, 0.6fr);
		gap: 42px;
	}

	.mws-hero h1 {
		font-size: clamp(4.8rem, 8.2vw, 7.5rem);
	}

	.mws-hero__visual {
		max-width: 483px;
		transform: none;
	}

	.mws-project-showcase {
		width: 378px;
		min-height: 656px;
	}

	.mws-project-showcase__image {
		height: 341px;
	}

	.mws-hero__selected-work {
		display: none;
	}

	.mws-hero__sun {
		left: 52%;
		width: clamp(580px, 58vw, 800px);
	}
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

	.mws-hero__grid {
		min-height: auto;
		padding-top: 75px;
		padding-bottom: 75px;
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 35px;
	}

	.mws-hero h1 {
		font-size: clamp(4.2rem, 8.3vw, 6.5rem);
	}

	.mws-project-showcase {
		width: 330px;
		min-height: 590px;
	}

	.mws-project-showcase__image {
		height: 290px;
	}

	.mws-hero__visual {
		min-height: 610px;
	}

	.mws-hero__selected-work {
		display: none;
	}

	.mws-hero__orbit {
		right: -18%;
	}
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

	.mws-hero > .mws-container {
		width: calc(100% - 36px);
	}

	.mws-hero {
		min-height: auto;
	}

	.mws-hero__grid {
		padding-top: 65px;
		padding-bottom: 65px;
		grid-template-columns: 1fr;
		gap: 80px;
	}

	.mws-hero__content {
		width: 100%;
	}

	.mws-hero h1 {
		width: 100%;
		font-size: clamp(3.6rem, 16vw, 5.5rem);
		line-height: 0.87;
	}

	.mws-hero__heading-line {
		white-space: normal;
	}

	.mws-hero__heading-line--outline {
		-webkit-text-stroke-width: 2px;
		text-stroke-width: 2px;
	}

	.mws-hero__lead {
		max-width: 440px;
		font-size: 0.9rem;
		line-height: 1.55;
	}

	.mws-hero__button {
		min-height: 52px;
		padding-inline: 20px;
		font-size: 0.76rem;
	}

	.mws-hero__sun {
		top: 59%;
		left: 50%;
		width: 720px;
		max-width: none;
		opacity: 0.92;
	}

	.mws-hero__visual {
		width: 100%;
		max-width: 410px;
		min-height: 620px;
		margin-inline: auto;
		justify-self: center;
		justify-content: center;
	}

	.mws-project-showcase {
		width: min(100%, 350px);
		min-height: 605px;
	}

	.mws-project-showcase__image {
		height: 305px;
	}

	.mws-project-card__backdrop {
		top: 7%;
		right: -4%;
		width: 90%;
		height: 90%;
	}

	.mws-hero__orbit {
		display: none;
	}

	.mws-hero__service-rail {
		min-height: 64px;
		padding-block: 18px;
		flex-wrap: wrap;
		gap: 12px 28px;
		font-size: 0.63rem;
	}

	.mws-hero__service-rail span:not(:last-child)::after {
		right: -17px;
	}
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

	.mws-hero__grid {
		gap: 65px;
	}

	.mws-hero h1 {
		font-size: clamp(3.25rem, 15.8vw, 4.5rem);
	}

	.mws-hero__sun {
		top: 57%;
		width: 630px;
	}

	.mws-hero__visual {
		min-height: 570px;
	}

	.mws-project-showcase {
		width: min(100%, 315px);
		min-height: 560px;
	}

	.mws-project-showcase__intro {
		padding-inline: 24px;
	}

	.mws-project-showcase__image {
		height: 275px;
	}

	.mws-project-showcase__links {
		padding: 17px 22px 14px;
	}

	.mws-project-showcase__footer {
		margin-inline: 17px;
	}
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

	.mws-project-showcase,
	.mws-project-showcase__image img,
	.mws-hero__button,
	.mws-hero__heading-line--outline::before,
	.mws-hero__heading-line--outline::after,
	.mws-hero__sun,
	.mws-hero__sun::after,
	.mws-hero__sun img {
		transition: none;
		animation: none;
	}

	.mws-hero__heading-line--outline::after {
		opacity: 0;
	}

	.mws-hero__sun {
		--mws-sun-x: 0px;
		--mws-sun-y: 0px;
		--mws-sun-scale: 1;

		will-change: auto;
	}

	.mws-hero__sun img {
		will-change: auto;
	}

	.mws-hero__button-tracer-line {
		stroke-dasharray: 100 0;
		filter: none;
		opacity: 0.8;
	}
}

/* =========================================================
   CONTINUOUS SERVICE MARQUEE
========================================================= */

.mws-hero__service-rail {
	padding: 0;
	display: block;
	overflow: hidden;
}

@media (min-width: 768px) {
	.mws-hero {
		display: flex;
		flex-direction: column;
	}

	.mws-hero > .mws-hero__service-rail {
		width: 100%;
		max-width: none;
		margin-top: auto;
		margin-inline: 0;
	}
}

.mws-hero__service-viewport {
	width: 100%;
	min-height: 70px;
	overflow: hidden;
	display: flex;
	align-items: center;
	mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}

.mws-hero__service-track {
	width: max-content;
	display: flex;
	align-items: center;
	will-change: transform;
	animation: mws-service-marquee 42s linear infinite;
}

.mws-hero__service-rail:hover .mws-hero__service-track {
	animation-play-state: paused;
}

.mws-hero__service-group {
	padding-right: 42px;
	display: flex;
	flex-shrink: 0;
	gap: 42px;
	align-items: center;
}

.mws-hero__service-group span {
	position: relative;
	flex-shrink: 0;
	white-space: nowrap;
	line-height: 1;
	transform: none;
}

.mws-hero__service-group span::after,
.mws-hero__service-group span:last-child::after {
	position: absolute;
	top: 50%;
	right: -25px;
	color: #f04a27;
	content: "•";
	transform: translateY(-52%);
}

.mws-hero__service-rail .mws-hero__service-group span::after {
	right: -25px;
	color: #f04a27;
	content: "\2022";
	transform: translateY(-52%);
}

@keyframes mws-service-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 767px) {

	.mws-hero__service-rail {
		min-height: 72px;
		padding-block: 0;
		display: block;
		font-size: 25px;
	}

	.mws-hero__service-viewport {
		min-height: 70px;
	}

	.mws-hero__service-track {
		animation-duration: 34s;
	}

	.mws-hero__service-group {
		padding-right: 32px;
		gap: 32px;
	}

	.mws-hero__service-group span::after,
	.mws-hero__service-group span:last-child::after {
		right: -20px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.mws-hero__service-track {
		animation: none;
		transform: none;
		will-change: auto;
	}

	.mws-hero__service-group:nth-child(2) {
		display: none;
	}
}
