/* Outernetworks — home.css */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.home-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: calc(var(--on-nav-h) + 60px) var(--on-gutter) 110px;
	overflow: hidden;
}

.home-hero__bg { position: absolute; inset: 0; z-index: 0; }
.home-hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
	will-change: transform;
}
.home-hero__glow--a {
	width: 46vw; height: 46vw;
	top: -8vw; left: -6vw;
	background: radial-gradient(circle, rgba(0, 201, 167, 0.28), transparent 70%);
}
.home-hero__glow--b {
	width: 38vw; height: 38vw;
	bottom: -12vw; right: -4vw;
	background: radial-gradient(circle, rgba(0, 201, 167, 0.16), transparent 70%);
}
.home-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(30, 42, 68, 0.5) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(30, 42, 68, 0.5) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 78%);
}

.home-hero__inner { position: relative; z-index: 1; max-width: var(--on-max); margin: 0 auto; width: 100%; }

.home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--on-font-mono);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--on-muted);
	margin-bottom: 34px;
	padding: 8px 16px 8px 12px;
	border: 1px solid var(--on-border);
	border-radius: 999px;
	background: rgba(17, 28, 51, 0.6);
}
.home-hero__pulse {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--on-accent);
	animation: on-pulse 2.4s ease-out infinite;
	flex: none;
}

.home-hero__title {
	font-size: clamp(52px, 13vw, 190px);
	line-height: 0.86;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	margin-bottom: 34px;
}
.home-hero__line { display: block; }
.home-hero__line--accent { color: var(--on-accent); }

.home-hero__sub {
	font-size: clamp(17px, 1.7vw, 22px);
	color: var(--on-muted);
	max-width: 56ch;
	margin-bottom: 42px;
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.home-hero__scroll {
	position: absolute;
	bottom: 32px; left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	font-family: var(--on-font-mono);
	font-size: 10px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--on-muted);
	z-index: 1;
}
.home-hero__scroll-line {
	width: 1px; height: 46px;
	background: linear-gradient(to bottom, var(--on-accent), transparent);
	position: relative;
	overflow: hidden;
}
.home-hero__scroll-line::after {
	content: "";
	position: absolute;
	top: -46px; left: 0;
	width: 1px; height: 46px;
	background: var(--on-text);
	animation: on-scroll-run 2.2s var(--on-ease-io) infinite;
}
@keyframes on-scroll-run {
	0%   { transform: translateY(0); }
	100% { transform: translateY(92px); }
}

@media (max-width: 700px) {
	.home-hero__scroll { display: none; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.home-marquee {
	border-top: 1px solid var(--on-border);
	border-bottom: 1px solid var(--on-border);
	padding: clamp(18px, 3vw, 34px) 0;
	background: var(--on-surface);
}
.home-marquee__viewport { overflow: hidden; }
.home-marquee__track {
	display: flex;
	width: max-content;
	animation: home-marquee-run 34s linear infinite;
	will-change: transform;
}
.home-marquee__set { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px); }
.home-marquee__item {
	font-family: var(--on-font-display);
	font-size: clamp(28px, 5vw, 66px);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: -0.015em;
	white-space: nowrap;
	color: var(--on-text);
}
.home-marquee__dot { color: var(--on-accent); font-size: clamp(20px, 3vw, 40px); }

/* Exactly two identical sets, so -50% lands on a seamless loop point. */
@keyframes home-marquee-run {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   What we do
   -------------------------------------------------------------------------- */

.home-what {
	max-width: var(--on-max);
	margin: 0 auto;
	padding: var(--on-rhythm) var(--on-gutter);
}
.home-what__header { margin-bottom: clamp(40px, 6vw, 72px); }
.home-what__title { font-size: clamp(36px, 6.5vw, 92px); max-width: 16ch; }

.home-what__item { border-top: 1px solid var(--on-border); }
.home-what__item:last-child { border-bottom: 1px solid var(--on-border); }

.home-what__link {
	display: grid;
	grid-template-columns: 68px minmax(0, 1.05fr) minmax(0, 1fr) 44px;
	align-items: center;
	gap: clamp(16px, 3vw, 44px);
	padding: clamp(24px, 3.4vw, 42px) 0;
	transition: padding-left 0.45s var(--on-ease), color 0.35s var(--on-ease);
}
.home-what__num {
	font-family: var(--on-font-mono);
	font-size: 12px;
	color: var(--on-accent);
	letter-spacing: 0.1em;
}
.home-what__name {
	font-family: var(--on-font-display);
	font-size: clamp(24px, 3.6vw, 50px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.home-what__desc { color: var(--on-muted); font-size: 15px; max-width: 42ch; }
.home-what__arrow {
	font-size: 22px;
	color: var(--on-muted);
	justify-self: end;
	transition: transform 0.4s var(--on-ease), color 0.3s var(--on-ease);
}

@media (hover: hover) and (pointer: fine) {
	.home-what__item:hover .home-what__link { padding-left: 20px; }
	.home-what__item:hover .home-what__name { color: var(--on-accent); }
	.home-what__item:hover .home-what__arrow { transform: translateX(10px); color: var(--on-accent); }
}

.home-what__more { margin-top: 44px; }

@media (max-width: 860px) {
	.home-what__link {
		grid-template-columns: 46px 1fr 30px;
		grid-template-areas:
			"num name arrow"
			"num desc desc";
		row-gap: 10px;
	}
	.home-what__num { grid-area: num; align-self: start; padding-top: 6px; }
	.home-what__name { grid-area: name; }
	.home-what__desc { grid-area: desc; }
	.home-what__arrow { grid-area: arrow; align-self: start; }
}

/* --------------------------------------------------------------------------
   Featured work
   -------------------------------------------------------------------------- */

.home-featured { padding: var(--on-rhythm) 0; overflow: hidden; }
.home-featured__header {
	max-width: var(--on-max);
	margin: 0 auto clamp(40px, 6vw, 68px);
	padding: 0 var(--on-gutter);
}
.home-featured__title { font-size: clamp(36px, 6.5vw, 92px); }

.home-featured__viewport { overflow: hidden; }
.home-featured__track {
	display: flex;
	gap: clamp(16px, 2vw, 30px);
	padding: 0 var(--on-gutter);
	will-change: transform;
}
.home-featured__slide { flex: 0 0 clamp(280px, 40vw, 520px); }

.home-featured__card {
	display: block;
	height: 100%;
	background: var(--on-surface);
	border: 1px solid var(--on-border);
	border-radius: var(--on-radius);
	overflow: hidden;
	transition: border-color 0.35s var(--on-ease), transform 0.5s var(--on-ease);
	will-change: transform;
}
.home-featured__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background:
		radial-gradient(circle at 30% 25%, rgba(0, 201, 167, 0.14), transparent 62%),
		linear-gradient(140deg, var(--on-surface-2), var(--on-bg));
	border-bottom: 1px solid var(--on-border);
	position: relative;
}
.home-featured__domain {
	font-family: var(--on-font-mono);
	font-size: clamp(14px, 1.5vw, 20px);
	color: var(--on-accent);
}
.home-featured__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 20px 22px;
	font-family: var(--on-font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.home-featured__sector { color: var(--on-muted); }
.home-featured__view { color: var(--on-accent); }

@media (hover: hover) and (pointer: fine) {
	.home-featured__card:hover { border-color: var(--on-accent); transform: translateY(-6px); }
}

/* Touch: no scroll-jacking. Native scroll-snap does this better than JS. */
@media (max-width: 900px), (pointer: coarse) {
	.home-featured__viewport {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 8px;
	}
	.home-featured__viewport::-webkit-scrollbar { display: none; }
	.home-featured__track { transform: none !important; }
	.home-featured__slide { scroll-snap-align: start; }
}

.home-featured__more { max-width: var(--on-max); margin: 44px auto 0; padding: 0 var(--on-gutter); }

/* --------------------------------------------------------------------------
   Numbers
   -------------------------------------------------------------------------- */

.home-numbers {
	max-width: var(--on-max);
	margin: 0 auto;
	padding: var(--on-rhythm) var(--on-gutter);
	border-top: 1px solid var(--on-border);
	border-bottom: 1px solid var(--on-border);
}
.home-numbers__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(24px, 3vw, 44px);
}
.home-numbers__item { display: flex; flex-direction: column; gap: 10px; }
.home-numbers__value {
	font-family: var(--on-font-display);
	font-size: clamp(38px, 5.5vw, 82px);
	font-weight: 600;
	color: var(--on-accent);
	letter-spacing: -0.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.home-numbers__label {
	font-family: var(--on-font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--on-muted);
}
@media (max-width: 760px) { .home-numbers__list { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.home-testimonials {
	max-width: 1080px;
	margin: 0 auto;
	padding: var(--on-rhythm) var(--on-gutter);
}
.home-testimonials__header { margin-bottom: clamp(36px, 5vw, 60px); }
.home-testimonials__title { font-size: clamp(34px, 6vw, 84px); }

.home-testimonials__slider { position: relative; }
.home-testimonials__slide {
	padding: clamp(28px, 4vw, 52px);
	background: var(--on-surface);
	border: 1px solid var(--on-border);
	border-radius: var(--on-radius);
	position: relative;
}
.home-testimonials__slide::before {
	content: "\201C";
	position: absolute;
	top: -14px; left: 24px;
	font-family: var(--on-font-display);
	font-size: 96px;
	line-height: 1;
	color: var(--on-accent);
	opacity: 0.22;
}
.home-testimonials__slide.is-placeholder { border-style: dashed; }
.home-testimonials__quote p {
	font-family: var(--on-font-display);
	font-size: clamp(20px, 2.7vw, 34px);
	line-height: 1.32;
	letter-spacing: -0.015em;
	margin-bottom: 26px;
	will-change: transform;
}
.home-testimonials__who {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: var(--on-font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.home-testimonials__author { color: var(--on-text); }
.home-testimonials__company { color: var(--on-muted); }
.home-testimonials__todo { color: var(--on-danger); font-size: 11px; }

.home-testimonials__nav { display: flex; gap: 10px; margin-top: 24px; }
.home-testimonials__btn {
	width: 46px; height: 46px;
	border: 1px solid var(--on-border);
	border-radius: 999px;
	color: var(--on-muted);
	transition: border-color 0.3s var(--on-ease), color 0.3s var(--on-ease);
}
.home-testimonials__btn:hover { border-color: var(--on-accent); color: var(--on-accent); }

/* --------------------------------------------------------------------------
   Process timeline
   -------------------------------------------------------------------------- */

.home-process {
	max-width: var(--on-max);
	margin: 0 auto;
	padding: var(--on-rhythm) var(--on-gutter);
}
.home-process__header { margin-bottom: clamp(40px, 6vw, 72px); }
.home-process__title { font-size: clamp(36px, 6.5vw, 92px); }

.home-process__wrap { position: relative; max-width: 780px; margin: 0 auto; padding-left: 52px; }
.home-process__rail {
	position: absolute;
	top: 8px; left: 12px;
	width: 2px;
	height: calc(100% - 16px);
	background: var(--on-border);
	border-radius: 2px;
	overflow: hidden;
}
.home-process__rail-fill {
	display: block;
	width: 100%; height: 100%;
	background: linear-gradient(to bottom, var(--on-accent), #6ff5db);
	transform: scaleY(1);
	transform-origin: 50% 0;
	will-change: transform;
}
/* No-JS: the rail reads as complete rather than empty. */
.on-reveal-ready .home-process__rail-fill { transform: scaleY(0); }

.home-process__phase {
	position: relative;
	padding: clamp(20px, 2.6vw, 32px) 0;
	border-bottom: 1px solid var(--on-border);
}
.home-process__phase:last-child { border-bottom: 0; }
.home-process__phase::before {
	content: "";
	position: absolute;
	left: -46px; top: calc(clamp(20px, 2.6vw, 32px) + 8px);
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--on-bg);
	border: 2px solid var(--on-accent);
	box-shadow: 0 0 0 4px var(--on-bg);
}
.home-process__num {
	display: block;
	font-family: var(--on-font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	color: var(--on-muted);
	margin-bottom: 10px;
}
.home-process__phase-title {
	font-family: var(--on-font-display);
	font-size: clamp(21px, 2.6vw, 32px);
	margin-bottom: 8px;
}
.home-process__phase-body { color: var(--on-muted); max-width: 52ch; }

.home-process__more { margin-top: 44px; text-align: center; }

@media (max-width: 600px) {
	.home-process__wrap { padding-left: 34px; }
	.home-process__rail { left: 4px; }
	.home-process__phase::before { left: -35px; }
}
