:root {
	--bg: #13303B;
	--ink: #F0F0F0;
	--yellow: #FBC127;
	--rust: #C04624;
	--ink-dim: rgba(240, 240, 240, 0.7);
	--ink-faint: rgba(240, 240, 240, 0.45);
	--line: rgba(240, 240, 240, 0.2);
	--pad: clamp(20px, 5vw, 72px);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--bg);
	color: var(--ink);
	font-family: 'Familjen Grotesk', system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a {
	color: inherit;
	text-decoration: none;
}

sup {
	font-size: 0.5em;
}

/* ---------- Type system ---------- */

.display-md,
.display-sm,
.giant {
	font-family: 'Familjen Grotesk', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: -0.01em;
}

.display-md {
	font-size: clamp(2rem, 4.5vw, 3.4rem);
}

.display-sm {
	font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.giant {
	font-size: clamp(3.6rem, 12vw, 9.5rem);
	line-height: 0.95;
}

.accent {
	color: var(--yellow);
}

.micro {
	font-size: 0.68rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--ink-faint);
}

.num {
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	color: var(--yellow);
}

.lede {
	color: var(--ink-dim);
	font-size: clamp(0.95rem, 1.4vw, 1.1rem);
	max-width: 44ch;
}

/* ---------- Top bar (sticky, hides on scroll down) ---------- */

.topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 18px var(--pad);
	border-bottom: 1px solid var(--line);
	background: var(--bg);
	transition: transform 0.4s ease;
}

.topbar.hidden {
	transform: translateY(-101%);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand-mark {
	width: 34px;
	height: 44px;
}

.brand-word {
	font-weight: 700;
	font-size: 1.12rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.topnav {
	display: flex;
	align-items: center;
	gap: 26px;
	font-size: 0.7rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

.topnav a:not(.nav-cta) {
	color: var(--ink-dim);
	position: relative;
	padding-bottom: 4px;
	transition: color 0.2s;
}

.topnav a:not(.nav-cta)::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: var(--yellow);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}

.topnav a:not(.nav-cta):hover {
	color: var(--ink);
}

.topnav a:not(.nav-cta):hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.topnav .nav-cta {
	color: var(--bg);
	background: var(--yellow);
	padding: 12px 20px;
	transition: background 0.2s, transform 0.2s;
}

.topnav .nav-cta:hover {
	background: var(--ink);
	transform: translateY(-1px);
}

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

.hero {
	padding: clamp(40px, 7vh, 90px) var(--pad) clamp(56px, 9vh, 110px);
	position: relative;
}

.hero-top {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: clamp(30px, 5vh, 56px);
}

.hero-top .micro {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--yellow);
	animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

.hero-display {
	display: flex;
	flex-direction: column;
	font-family: 'Familjen Grotesk', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	font-size: clamp(3rem, 10vw, 8.5rem);
	line-height: 0.94;
	letter-spacing: -0.015em;
}

.hero-line {
	display: block;
	overflow: hidden;
}

.hero-line em {
	display: inline-block;
	font-style: normal;
	animation: riseIn 0.9s cubic-bezier(0.19, 1, 0.22, 1) both;
	animation-delay: calc(var(--l, 0) * 0.14s + 0.1s);
}

@keyframes riseIn {
	from {
		transform: translateY(110%);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
	}
}

.hero-line-mid {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.5vw, 36px);
	margin-left: clamp(24px, 8vw, 140px);
}

.hero-mark {
	width: clamp(44px, 6.5vw, 96px);
	height: auto;
	flex: 0 0 auto;
	animation: fadeIn 1.4s ease 0.5s both;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.hero-line-end {
	align-self: flex-end;
	text-align: right;
}

.hero-foot {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 28px;
	flex-wrap: wrap;
	padding-top: clamp(36px, 6vh, 64px);
	animation: fadeIn 1s ease 0.7s both;
}

.btn-row {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.btn {
	display: inline-block;
	border: 0;
	cursor: pointer;
	padding: 15px 28px;
	font-family: inherit;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-solid {
	background: var(--yellow);
	color: var(--bg);
}

.btn-solid:hover {
	background: var(--ink);
}

.btn-line {
	border: 1px solid var(--line);
	color: var(--ink);
	background: transparent;
}

.btn-line:hover {
	border-color: var(--ink);
}

.btn-big {
	padding: 17px 34px;
	font-size: 0.75rem;
}

/* ---------- Clients band ---------- */

.band {
	display: flex;
	align-items: stretch;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.band-label {
	flex: 0 0 auto;
	padding: 16px var(--pad);
	border-right: 1px solid var(--line);
	font-size: 0.62rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--ink-faint);
	line-height: 1.5;
	display: flex;
	align-items: center;
}

.marquee {
	overflow: hidden;
	flex: 1;
	display: flex;
	align-items: center;
}

.marquee-track {
	display: flex;
	align-items: center;
	gap: 34px;
	white-space: nowrap;
	padding: 20px 0;
	animation: marquee 36s linear infinite;
	font-family: 'Familjen Grotesk', sans-serif;
	font-size: 1.3rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-dim);
}

.marquee:hover .marquee-track {
	animation-play-state: paused;
}

.marquee-track i {
	font-style: normal;
	font-size: 0.7rem;
	color: var(--rust);
}

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

/* ---------- Sections ---------- */

.section {
	padding: clamp(64px, 11vh, 120px) var(--pad);
}

.section-center {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.giant {
	margin-bottom: clamp(28px, 5vh, 60px);
}

.marker {
	margin-bottom: 22px;
}

.marker span {
	display: block;
	width: 1px;
	height: 44px;
	background: var(--ink-faint);
	margin: 0 auto;
	transform-origin: top;
}

.reveal.in .marker span,
.marker.reveal.in span {
	animation: growDown 0.8s ease both;
}

@keyframes growDown {
	from { transform: scaleY(0); }
	to { transform: scaleY(1); }
}

/* ---------- Reveal animation ---------- */

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.hero-line em,
	.hero-mark,
	.hero-foot {
		animation: none;
	}
	.marquee-track {
		animation: none;
	}
	.dot {
		animation: none;
	}
	html {
		scroll-behavior: auto;
	}
}

/* ---------- Projects ---------- */

.project {
	display: grid;
	grid-template-columns: 180px 1fr minmax(260px, 360px);
	align-items: start;
	gap: 34px;
	padding: 42px 0;
	border-top: 1px solid var(--line);
}

.project:last-of-type {
	border-bottom: 1px solid var(--line);
}

.project-meta {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.project-body {
	max-width: 62ch;
}

.project-body p {
	color: var(--ink-dim);
	font-size: 0.92rem;
}

.project-body .display-sm {
	color: var(--ink);
	margin-bottom: 6px;
}

.tags {
	font-size: 0.65rem !important;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--ink-faint) !important;
	margin-bottom: 16px;
}

.outcome {
	color: var(--yellow) !important;
	margin-top: 14px;
	font-weight: 500;
}

.project-link {
	display: inline-block;
	margin-top: 18px;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
	padding-bottom: 4px;
	transition: color 0.2s, border-color 0.2s;
}

.project-link:hover {
	color: var(--yellow);
	border-color: var(--yellow);
}

.project-snap {
	display: block;
	border: 1px solid var(--line);
	overflow: hidden;
	transition: border-color 0.25s;
}

.project-snap:hover {
	border-color: var(--ink-faint);
}

.project-snap img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.5s ease;
}

.project-snap:hover img {
	transform: scale(1.04);
}

/* ---------- Services offer box ---------- */

.section-center .display-md {
	margin-bottom: clamp(32px, 5vh, 54px);
}

.offer-box {
	width: 100%;
	max-width: 980px;
	border: 1px solid var(--line);
}

.offer-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.offer {
	padding: 38px 24px 44px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	transition: background 0.3s;
}

.offer:hover {
	background: rgba(240, 240, 240, 0.03);
}

.offer + .offer {
	border-left: 1px solid var(--line);
}

.offer .num::after {
	content: '';
	display: block;
	width: 1px;
	height: 26px;
	background: var(--ink-faint);
	margin: 14px auto 0;
}

.offer h3 {
	font-family: 'Familjen Grotesk', sans-serif;
	font-weight: 600;
	font-size: 1.25rem;
	text-transform: uppercase;
	line-height: 1.15;
	letter-spacing: 0.02em;
}

.offer-desc {
	color: var(--ink-faint);
	font-size: 0.78rem;
	max-width: 24ch;
}

.offer-foot {
	border-top: 1px solid var(--line);
	padding: 34px clamp(24px, 6vw, 90px) 40px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

.process {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 38px;
}

.step {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-family: 'Familjen Grotesk', sans-serif;
	font-weight: 500;
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ---------- Studio ---------- */

.studio-copy {
	max-width: 58ch;
	color: var(--ink-dim);
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	line-height: 1.8;
	margin-bottom: 26px;
}

.studio-copy strong {
	color: var(--ink);
}

.mission {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	max-width: 52ch;
	margin: 14px 0 30px;
	padding: 30px clamp(20px, 4vw, 44px);
	border: 1px solid var(--line);
	font-family: 'Familjen Grotesk', sans-serif;
	font-weight: 500;
	font-size: clamp(1.1rem, 1.9vw, 1.4rem);
	text-transform: uppercase;
	line-height: 1.4;
	letter-spacing: 0.03em;
}

.mission em {
	font-style: normal;
	color: var(--yellow);
}

/* ---------- Contact form ---------- */

.contact {
	border-top: 1px solid var(--line);
}

.contact-lede {
	margin: 0 auto 40px;
}

.contact-form {
	width: 100%;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 26px;
	text-align: left;
}

.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.field input,
.field textarea {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line);
	padding: 10px 2px;
	color: var(--ink);
	font-family: inherit;
	font-size: 0.95rem;
	border-radius: 0;
	resize: vertical;
	transition: border-color 0.3s;
}

.field input::placeholder,
.field textarea::placeholder {
	color: var(--ink-faint);
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-bottom-color: var(--yellow);
}

.contact-form .btn-big {
	align-self: center;
	margin-top: 8px;
}

.contact-alt {
	margin-top: 30px;
}

.contact-alt a {
	color: var(--ink-dim);
	border-bottom: 1px solid var(--line);
	transition: color 0.2s, border-color 0.2s;
}

.contact-alt a:hover {
	color: var(--yellow);
	border-color: var(--yellow);
}

/* ---------- Footer ---------- */

.footer {
	display: flex;
	flex-wrap: wrap;
	border-top: 1px solid var(--line);
	font-size: 0.62rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--ink-faint);
}

.foot-cell {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 18px;
}

.foot-cell + .foot-cell {
	border-left: 1px solid var(--line);
}

.foot-cell a {
	color: var(--ink-dim);
	transition: color 0.2s;
}

.foot-cell a:hover {
	color: var(--yellow);
}

.foot-social {
	gap: 22px;
}

.foot-social a {
	display: inline-flex;
	transition: color 0.2s, transform 0.2s;
}

.foot-social a:hover {
	color: var(--yellow);
	transform: translateY(-2px);
}

.foot-social svg {
	width: 19px;
	height: 19px;
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
	.offer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.offer:nth-child(3) {
		border-left: none;
	}
	.offer:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}
	.project {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.project-meta {
		flex-direction: row;
		align-items: center;
		gap: 18px;
	}
	.project-snap {
		order: -1;
		max-width: 520px;
	}
	.hero-top-right {
		display: none;
	}
}

@media (max-width: 560px) {
	.topnav {
		display: none;
	}
	.hero-display {
		font-size: clamp(2.9rem, 12.5vw, 3.6rem);
	}
	.hero-line-mid {
		margin-left: 0;
		gap: 12px;
	}
	.hero-line-mid .hero-mark {
		width: clamp(40px, 11vw, 52px);
	}
	.hero-line-end {
		align-self: flex-start;
		text-align: left;
	}
	.hero-foot {
		flex-direction: column;
		align-items: stretch;
	}
	.btn-row {
		flex-direction: column;
	}
	.hero-foot .btn {
		width: 100%;
		text-align: center;
	}
	.offer-grid {
		grid-template-columns: 1fr;
	}
	.offer + .offer {
		border-left: none;
		border-top: 1px solid var(--line);
	}
	.band-label {
		display: none;
	}
	.field-row {
		grid-template-columns: 1fr;
	}
	.foot-cell {
		flex: 1 1 100%;
		border-left: none !important;
	}
	.foot-cell + .foot-cell {
		border-top: 1px solid var(--line);
	}
	.hero-line-mid {
		margin-left: 6vw;
	}
}
