/* ============================================================
   STARTPAGE — hero, services, process, marquee, work, cta
   ============================================================ */

a{
	text-decoration: none;
}

main.start{
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 6%;
	overflow: visible;
}

/* section scroll-reveal (section-appear.js adds .visible) */
main.start section{
	padding: 110px 0 0 0;
	opacity: 0;
	transform: translateY(60px);
	transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
main.start section.visible{
	opacity: 1;
	transform: translateY(0);
}
main.start section:last-of-type{
	padding-bottom: 120px;
}

@media (prefers-reduced-motion: reduce){
	main.start section{
		opacity: 1;
		transform: none;
	}
}

/* section head */
.section-head{
	margin-bottom: 48px;
}
.section-head h2{
	font-size: clamp(46px, 6.5vw, 84px);
	font-weight: 500;
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--ink);
	margin: 6px 0 10px 0;
}
.section-sub{
	max-width: 560px;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-soft);
}

/* ============================================================
   HERO
   ============================================================ */

@keyframes riseIn{
	from{
		opacity: 0;
		transform: translateY(40px);
	}
	to{
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes markerSwipe{
	from{ background-size: 0% 88%; }
	to{ background-size: 100% 88%; }
}

#hero{
	min-height: calc(100vh - var(--nav-height));
	min-height: calc(100svh - var(--nav-height));
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 60px 0 50px 0;
	position: relative;
}
/* crosshair corner details */
#hero::before,
#hero::after{
	font-family: Handjet, monospace;
	font-size: 28px;
	color: var(--periwinkle);
	opacity: 0.55;
	position: absolute;
}
#hero::before{
	content: "+";
	top: 40px;
	right: 0;
}
#hero::after{
	content: "+";
	bottom: 36px;
	left: 0;
}

#hero .eyebrow{
	animation: riseIn 0.7s ease-out both;
}

.hero-title{
	font-size: clamp(52px, 10vw, 148px);
	font-weight: 500;
	line-height: 0.86;
	text-transform: uppercase;
	color: var(--ink);
	margin: 18px 0 36px 0;
	display: flex;
	flex-direction: column;
}
.hero-title .reveal-line{
	display: block;
	animation: riseIn 0.8s ease-out both;
}
.hero-title .reveal-line:nth-child(1){ animation-delay: 0.08s; }
.hero-title .reveal-line:nth-child(2){ animation-delay: 0.2s; }
.hero-title .reveal-line:nth-child(3){ animation-delay: 0.32s; }

/* the highlighted word */
.hero-title .marker{
	font-style: normal;
	background-image: linear-gradient(var(--accent), var(--accent));
	background-repeat: no-repeat;
	background-position: 0% 78%;
	background-size: 100% 88%;
	animation: markerSwipe 0.9s ease-out 0.75s backwards;
	padding: 0 0.06em;
	margin: 0 -0.06em;
}

.hero-lower{
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	flex-wrap: wrap;
	animation: riseIn 0.8s ease-out 0.45s both;
}
.hero-sub{
	max-width: 540px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink-soft);
}
.hero-actions{
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.hero-stats{
	display: flex;
	gap: clamp(40px, 8vw, 110px);
	margin-top: 72px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	animation: riseIn 0.8s ease-out 0.6s both;
}
.hero-stats div{
	display: flex;
	align-items: baseline;
	gap: 12px;
}
.hero-stats dt{
	font-size: clamp(44px, 6vw, 72px);
	font-weight: 500;
	line-height: 1;
	color: var(--ink);
}
.hero-stats dt::after{
	content: "+";
	color: var(--periwinkle);
	font-size: 0.55em;
	vertical-align: super;
}
.hero-stats dd{
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

/* ============================================================
   SERVICE CARDS — connected ruled block
   ============================================================ */

.service-cards{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border: 1px solid var(--line);
	background-color: var(--line);
	gap: 1px; /* hairline joints */
}
.service-card{
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--card);
	padding: 38px 32px 30px 32px;
	min-height: 280px;
	overflow: hidden;
	transition: transform 0.3s ease;
}
/* accent wash sweeps up on hover */
.service-card::before{
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--accent), var(--accent-soft));
	transform: translateY(101%);
	transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
	z-index: 0;
}
.service-card:hover::before{
	transform: translateY(0%);
}
.service-card > *{
	position: relative;
	z-index: 1;
}
.card-index{
	position: absolute;
	top: 18px;
	right: 22px;
	font-size: 64px;
	font-weight: 400;
	line-height: 1;
	color: var(--accent);
	transition: color 0.35s;
	z-index: 0;
}
.service-card:hover .card-index{
	color: var(--periwinkle);
}
.service-card h3{
	font-size: 38px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: 14px;
}
.service-card p{
	font-size: 15px;
	line-height: 1.65;
	color: var(--ink-soft);
	margin-bottom: 28px;
}
.card-more{
	margin-top: auto;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink);
	transition: transform 0.3s ease;
}
.service-card:hover .card-more{
	transform: translateX(6px);
}

/* ============================================================
   PROCESS — numbered steps
   ============================================================ */

.process{
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 36px;
}
.process li{
	border-top: 1px solid var(--ink);
	padding-top: 18px;
	position: relative;
}
.process li::before{
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 0%;
	height: 1px;
	background-color: var(--periwinkle);
	transition: width 0.5s ease;
}
.process li:hover::before{
	width: 100%;
}
.step-index{
	display: block;
	font-size: 30px;
	font-weight: 500;
	color: var(--periwinkle);
	margin-bottom: 10px;
}
.process h3{
	font-size: 30px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: 10px;
}
.process p{
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--ink-soft);
}

/* guarantee note — a selling point, marker-highlighted */
.guarantee{
	display: inline-block;
	margin-top: 44px;
	font-size: 21px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--ink);
	background-image: linear-gradient(var(--accent), var(--accent));
	background-repeat: no-repeat;
	background-size: 100% 55%;
	background-position: 0% 90%;
	padding: 0 6px;
}

/* ============================================================
   TECH MARQUEE
   ============================================================ */

@keyframes marquee{
	from{ transform: translateX(0); }
	to{ transform: translateX(-50%); }
}

.marquee{
	overflow: hidden;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 34px 0;
	/* soft fade at the edges */
	-webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
	mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee-track{
	display: flex;
	align-items: center;
	gap: clamp(48px, 7vw, 96px);
	width: max-content;
	padding-right: clamp(48px, 7vw, 96px);
	animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track{
	animation-play-state: paused;
}
.marquee-track img{
	height: 42px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.55;
	transition: filter 0.3s, opacity 0.3s;
}
.marquee-track img:hover{
	filter: grayscale(0);
	opacity: 1;
}
.tech-note{
	margin-top: 22px;
	font-size: 19px;
	letter-spacing: 0.12em;
	color: var(--periwinkle);
}

/* ============================================================
   SELECTED WORK
   ============================================================ */

.work-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.work-card{
	display: block;
}
.work-img{
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--line);
	background-color: var(--card);
	position: relative;
}
.work-img::after{
	content: "→";
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--ink);
	background-color: var(--accent);
	opacity: 0;
	transform: translate(-8px, 8px);
	transition: opacity 0.3s, transform 0.3s;
}
.work-card:hover .work-img::after{
	opacity: 1;
	transform: translate(0, 0);
}
.work-img img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.work-card:hover .work-img img{
	transform: scale(1.045);
}
.work-tag{
	display: inline-block;
	margin: 16px 0 4px 0;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--periwinkle);
}
.work-card h3{
	font-size: 32px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	color: var(--ink);
	display: inline-block;
	background-image: linear-gradient(var(--accent), var(--accent));
	background-repeat: no-repeat;
	background-size: 0% 38%;
	background-position: 0% 88%;
	transition: background-size 0.4s ease;
}
.work-card:hover h3{
	background-size: 100% 38%;
}
.work-actions{
	margin-top: 44px;
}

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band{
	background-color: var(--deep);
	/* light grid on dark */
	background-image:
		linear-gradient(to right, rgba(231, 235, 255, 0.06) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(231, 235, 255, 0.06) 1px, transparent 1px);
	background-size: 56px 56px;
	padding: clamp(56px, 9vw, 110px) clamp(28px, 6vw, 90px);
	position: relative;
	overflow: hidden;
}
.cta-band::after{
	content: "+";
	position: absolute;
	top: 22px;
	right: 28px;
	font-family: Handjet, monospace;
	font-size: 28px;
	color: var(--accent);
	opacity: 0.6;
}
.cta-band .eyebrow{
	color: var(--accent);
}
.cta-band h2{
	font-size: clamp(58px, 10vw, 130px);
	font-weight: 500;
	line-height: 0.9;
	text-transform: uppercase;
	color: #ffffff;
	margin: 10px 0 16px 0;
}
.cta-text{
	max-width: 480px;
	font-size: 17px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 38px;
}

/* ============================================================
   MOBILE
   ============================================================ */

@media screen and (max-width: 1024px){
	.service-cards{
		grid-template-columns: 1fr;
	}
	.service-card{
		min-height: 0;
	}
	.process{
		grid-template-columns: repeat(2, 1fr);
	}
	.work-grid{
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media screen and (max-width: 650px){
	main.start section{
		padding-top: 90px;
	}
	#hero{
		padding-top: 30px;
	}
	.hero-title{
		margin-bottom: 28px;
	}
	.hero-stats{
		margin-top: 54px;
		gap: 0;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	.hero-stats div{
		flex-direction: column;
		gap: 4px;
	}
	.hero-actions{
		width: 100%;
	}
	.hero-actions .btn{
		flex: 1 1 auto;
		text-align: center;
		padding: 18px 20px;
	}
	.process{
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.work-actions .btn{
		display: block;
		text-align: center;
		padding: 18px 20px;
	}
	.cta-band .btn{
		display: block;
		text-align: center;
		padding: 18px 20px;
	}
}
