/* ==========================================================
   Front page — design-canvas portfolio
   ========================================================== */

.home {
	overflow-x: clip;
}

.home h1,
.home h2,
.home h3 {
	margin: 0;
}

/* ---------- Shared: cursors ---------- */
.cursor {
	position: absolute;
	display: inline-flex;
	align-items: flex-start;
	color: var(--cursor, var(--c-blue));
	pointer-events: none;
	z-index: 3;
	animation: cursor-drift 9s ease-in-out infinite;
}

.cursor__arrow {
	flex-shrink: 0;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.cursor__label {
	margin: 14px 0 0 -2px;
	padding: 0.2rem 0.55rem;
	background: currentColor;
	border-radius: 0.4rem 0.4rem 0.4rem 0.15rem;
	font-size: 0.8rem;
	font-weight: 600;
	white-space: nowrap;
}

.cursor__label {
	color: #fff;
	/* text sits on currentColor background */
	background: var(--cursor, var(--c-blue));
}

@keyframes cursor-drift {
	0%, 100% { transform: translate(0, 0); }
	25% { transform: translate(18px, -12px); }
	50% { transform: translate(-10px, 14px); }
	75% { transform: translate(12px, 8px); }
}

/* ---------- Shared: comments ---------- */
.comment {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	max-width: 19rem;
	padding: 0.7rem 0.9rem 0.75rem 0.7rem;
	background: #fff;
	border-radius: 1.1rem 1.1rem 1.1rem 0.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.comment__avatar {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	background: var(--color-text);
	color: #fff;
	border-radius: 50%;
	font-size: 0.65rem;
	font-weight: 700;
}

.comment__meta {
	display: block;
	color: var(--color-muted);
	font-size: 0.75rem;
	line-height: 1.3;
}

.comment__meta strong {
	color: var(--color-text);
	font-weight: 600;
	margin-right: 0.25rem;
}

.comment__text {
	margin: 0.15rem 0 0;
	color: var(--color-text);
	font-size: 0.9rem;
	line-height: 1.4;
}

/* ---------- Shared: halftone texture ---------- */
.halftone {
	position: relative;
	overflow: hidden;
	background: color-mix(in srgb, var(--tone, var(--c-blue)) 8%, #fff);
}

.halftone::before {
	content: "";
	position: absolute;
	inset: -20%;
	background-image: radial-gradient(circle, var(--tone, var(--c-blue)) 1.4px, transparent 1.9px);
	background-size: 9px 9px;
	-webkit-mask-image: radial-gradient(ellipse at var(--hx, 70%) var(--hy, 30%), #000 0%, rgba(0, 0, 0, 0.55) 35%, transparent 70%);
	mask-image: radial-gradient(ellipse at var(--hx, 70%) var(--hy, 30%), #000 0%, rgba(0, 0, 0, 0.55) 35%, transparent 70%);
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.halftone::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, var(--tone, var(--c-blue)) 2.6px, transparent 3.1px);
	background-size: 18px 18px;
	background-position: 4px 4px;
	-webkit-mask-image: radial-gradient(circle at var(--hx, 70%) var(--hy, 30%), #000 0%, transparent 30%);
	mask-image: radial-gradient(circle at var(--hx, 70%) var(--hy, 30%), #000 0%, transparent 30%);
	opacity: 0.9;
}

.halftone--dark {
	--tone: #fff;
	background: transparent;
}

/* ---------- Hero ---------- */
.home-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: min(calc(100svh - 4rem), 58rem);
	padding: 4rem var(--space);
	overflow: hidden;
	background:
		radial-gradient(circle, #e2e2e7 1px, transparent 1.2px) 0 0 / 24px 24px,
		#fff;
}

.home-hero::after {
	/* fade the dot grid toward the edges */
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, transparent 30%, #fff 78%);
	pointer-events: none;
}

.home-hero__canvas {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.home-hero__content {
	position: relative;
	z-index: 4;
	text-align: center;
}

.home-hero__eyebrow,
.home-hero__location {
	margin: 0;
	color: var(--color-muted);
	font-family: var(--font-mono);
	font-size: clamp(0.8rem, 1.2vw, 0.95rem);
	letter-spacing: 0.02em;
}

.home-hero__title {
	margin: 0.75rem 0 !important;
	font-size: clamp(2.5rem, 13vw, 11.5rem);
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.055em;
	white-space: nowrap;
}

.home-hero__title .dot {
	color: var(--color-accent);
}

/* Floating "frames" */
.frame {
	position: absolute;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 0.9rem;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
	animation: float 12s ease-in-out infinite;
}

.frame--dashboard {
	top: 14%;
	left: 4%;
	width: clamp(10rem, 18vw, 16rem);
	transform: rotate(-4deg);
}

.frame__bar {
	display: flex;
	gap: 0.3rem;
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--color-border);
}

.frame__bar span {
	width: 0.5rem;
	height: 0.5rem;
	background: var(--color-border);
	border-radius: 50%;
}

.frame__body {
	padding: 0.9rem;
}

.mock-row i {
	display: block;
	width: var(--w);
	height: 0.45rem;
	margin: 0.2rem 0 0.7rem;
	background: var(--color-surface);
	border-radius: 1rem;
}

.mock-bars {
	display: flex;
	align-items: flex-end;
	gap: 0.4rem;
	height: 4.5rem;
}

.mock-bars i {
	flex: 1;
	height: var(--h);
	background: color-mix(in srgb, var(--c-blue) 70%, #fff);
	border-radius: 0.25rem 0.25rem 0 0;
}

.mock-bars i:nth-child(even) {
	background: color-mix(in srgb, var(--c-violet) 60%, #fff);
}

.frame--code {
	right: 5%;
	bottom: 16%;
	padding: 0.9rem 1.1rem;
	background: #1d1d1f;
	border-color: #1d1d1f;
	transform: rotate(3deg);
	animation-delay: -4s;
}

.frame--code pre {
	margin: 0;
	padding: 0;
	background: none;
	color: #d4d4d8;
	font-size: clamp(0.62rem, 0.9vw, 0.8rem);
	line-height: 1.7;
}

.tok-k { color: var(--c-pink); }
.tok-f { color: var(--c-yellow); }

.frame--tile {
	top: 16%;
	right: 9%;
	display: flex;
	flex-direction: column;
	padding: 1rem 1.25rem;
	transform: rotate(5deg);
	animation-delay: -7s;
}

.frame--tile strong {
	color: var(--color-text);
	font-size: 2rem;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.tile-label,
.tile-sub {
	color: var(--color-muted);
	font-size: 0.75rem;
}

.chip {
	position: absolute;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 0.7rem;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	color: var(--color-muted);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	animation: float 10s ease-in-out infinite;
}

.chip--1 { top: 30%; left: 30%; animation-delay: -2s; }
.chip--2 { top: 24%; right: 30%; animation-delay: -5s; }
.chip--3 { bottom: 26%; left: 20%; animation-delay: -1s; }
.chip--4 { bottom: 14%; left: 50%; animation-delay: -6s; }

@keyframes float {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -14px; }
}

.cursor--1 { top: 34%; left: 16%; animation-delay: 0s; }
.cursor--2 { top: 10%; left: 42%; animation-delay: -3s; }
.cursor--3 { bottom: 30%; right: 22%; animation-delay: -5s; }
.cursor--4 { bottom: 12%; left: 30%; animation-delay: -2s; }
.cursor--5 { top: 42%; right: 6%; animation-delay: -6s; }
.cursor--6 { bottom: 22%; left: 6%; animation-delay: -4s; }

.comment--hero {
	position: absolute;
	z-index: 3;
	animation: float 11s ease-in-out infinite;
}

.comment--1 { top: 62%; left: 9%; animation-delay: -3s; }
.comment--2 { top: 30%; right: 16%; animation-delay: -8s; }

@media (max-width: 900px) {
	.frame--dashboard,
	.frame--tile,
	.chip--1,
	.chip--2,
	.cursor--2,
	.cursor--5,
	.comment--2 {
		display: none;
	}

	.comment--1 { top: auto; bottom: 8%; left: 50%; transform: translateX(-50%); }
	.frame--code { bottom: auto; top: 10%; right: 50%; translate: 50% 0; }
}

/* ---------- Statement (word reveal) ---------- */
.home-quote {
	padding: clamp(5rem, 14vw, 11rem) var(--space);
}

.home-quote__text {
	max-width: 62rem;
	margin: 0 auto;
	color: var(--color-text);
	font-size: clamp(1.75rem, 4.2vw, 3.4rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.035em;
	text-align: center;
}

.js-quote-word {
	opacity: var(--o, 0.15);
	transition: opacity 0.25s linear;
}

.no-js .js-quote-word,
.js-quote.is-static .js-quote-word {
	--o: 1;
}

/* ---------- Services ---------- */
.home-services {
	padding-bottom: clamp(4rem, 10vw, 8rem);
}

.home-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

@media (max-width: 960px) {
	.home-services__grid {
		grid-template-columns: 1fr;
	}
}

.service-card {
	display: flex;
	flex-direction: column;
}

.service-card .halftone {
	aspect-ratio: 4 / 3;
	border-radius: 1.5rem 1.5rem 0 0;
}

.service-card:hover .halftone::before {
	transform: scale(1.08) rotate(2deg);
}

.service-card__body {
	flex: 1;
	padding: 1.75rem;
	background: var(--color-surface);
	border-radius: 0 0 1.5rem 1.5rem;
}

.service-card__title {
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	line-height: 1.1;
}

.service-card__text {
	margin: 1rem 0 0;
	font-size: 1rem;
}

.service-card__below {
	margin: 1.25rem 0.5rem 0;
	color: var(--color-muted);
	font-size: 0.9rem;
}

/* ---------- Dark block ---------- */
.home-dark {
	padding-bottom: clamp(4rem, 10vw, 8rem);
}

.home-dark__panel {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 2rem;
	padding: clamp(2rem, 5vw, 4.5rem);
	background: #000;
	color: #a1a1a6;
	border-radius: 2rem;
}

@media (max-width: 900px) {
	.home-dark__panel {
		grid-template-columns: 1fr;
	}
}

.home-dark__eyebrow {
	margin: 0 0 1rem;
	color: var(--c-blue);
	font-family: var(--font-mono);
	font-size: 0.85rem;
}

.home-dark__title {
	color: #fff !important;
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	line-height: 1;
	letter-spacing: -0.05em;
}

.home-dark__text {
	margin: 1.5rem 0 0;
	color: #f5f5f7;
	font-size: 1.25rem;
	line-height: 1.5;
}

.home-dark__secondary {
	margin: 1rem 0 2rem;
}

.home-dark__button {
	display: inline-block;
	padding: 0.8rem 1.4rem;
	background: #fff;
	color: #000;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.home-dark__button:hover {
	background: var(--color-accent);
	color: #fff;
}

.home-dark__visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 20rem;
	border-radius: 1.25rem;
	overflow: hidden;
	background: #111;
}

.home-dark__visual .halftone {
	position: absolute;
	inset: 0;
	--hx: 50%;
	--hy: 50%;
	opacity: 0.35;
}

.home-dark__features {
	position: relative;
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-dark__features li {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.75rem 1.1rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	color: #fff;
	font-weight: 500;
	backdrop-filter: blur(6px);
	translate: calc(var(--i) * 1.25rem) 0;
}

@media (max-width: 520px) {
	.home-dark__features li {
		translate: calc(var(--i) * 0.5rem) 0;
		font-size: 0.95rem;
	}
}

.pulse {
	width: 0.55rem;
	height: 0.55rem;
	background: var(--c-green);
	border-radius: 50%;
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-green) 60%, transparent);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	70% { box-shadow: 0 0 0 0.6rem transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

.home-dark__footer {
	grid-column: 1 / -1;
	margin: 1rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.9rem;
}

/* ---------- Experience ---------- */
.home-experience {
	padding-block: clamp(4rem, 10vw, 8rem);
	background: var(--color-surface);
}

.home-experience__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}

@media (max-width: 900px) {
	.home-experience__inner {
		grid-template-columns: 1fr;
	}
}

.home-experience__people {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

@media (max-width: 520px) {
	.home-experience__people {
		grid-template-columns: repeat(2, 1fr);
	}
}

.person {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.5rem 0.75rem;
	background: #fff;
	border-radius: 1.25rem;
	text-align: center;
	transition: transform 0.3s;
}

.person:hover {
	transform: translateY(-4px);
}

.person__avatar {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	margin-bottom: 0.75rem;
	background: var(--tone);
	color: #fff;
	border-radius: 50%;
	font-size: 1.35rem;
	font-weight: 700;
}

.person--current .person__avatar {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tone);
}

.person__name {
	color: var(--color-text);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.25;
}

.person__role {
	display: inline-block;
	margin-top: 0.4rem;
	padding: 0.15rem 0.55rem;
	background: color-mix(in srgb, var(--tone) 14%, #fff);
	color: color-mix(in srgb, var(--tone) 70%, #000);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
}

.home-experience__title {
	font-size: clamp(2.25rem, 4.5vw, 3.75rem);
	line-height: 1.02;
	letter-spacing: -0.045em;
}

.home-experience__comments {
	display: grid;
	gap: 0.75rem;
	margin: 2rem 0;
}

.home-experience__comments .comment:nth-child(2) {
	margin-left: 2.5rem;
}

.pill-button {
	display: inline-block;
	padding: 0.8rem 1.4rem;
	background: var(--color-ink);
	color: #fff;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}

.pill-button:hover {
	background: var(--color-accent);
}

/* ---------- Details / speaking ---------- */
.home-details {
	padding-block: clamp(5rem, 12vw, 10rem) clamp(3rem, 6vw, 5rem);
}

.home-details__title {
	display: flex;
	flex-direction: column;
	font-size: clamp(2.75rem, 8vw, 6.5rem);
	line-height: 0.95;
	letter-spacing: -0.055em;
}

.home-details__title span:last-child {
	color: var(--color-muted);
}

.home-details__text {
	max-width: 34rem;
	margin: 2rem 0 3rem;
	font-size: 1.2rem;
}

.home-details__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: 1.25rem;
}

.detail-card {
	padding: 2rem;
	border: 1px solid var(--color-border);
	border-radius: 1.5rem;
	transition: border-color 0.2s;
}

.detail-card:hover {
	border-color: var(--color-text);
}

.detail-card__title {
	font-size: 1.5rem;
}

.detail-card__title a {
	color: inherit;
	text-decoration: none;
}

.detail-card p {
	margin: 0.75rem 0 0;
}

.home-details__projects {
	margin: 3rem 0 2rem;
}

/* ---------- Logos marquee ---------- */
.home-logos {
	padding-block: 3rem;
	border-block: 1px solid var(--color-border);
}

.home-logos__label {
	margin: 0 0 1.5rem;
	color: var(--color-muted);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	text-align: center;
}

.marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 40s linear infinite;
}

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

.marquee__item {
	padding-inline: clamp(1.5rem, 4vw, 3.5rem);
	color: #a1a1a6;
	font-size: clamp(1.4rem, 2.6vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	white-space: nowrap;
	transition: color 0.2s;
}

.marquee__item:hover {
	color: var(--color-text);
}

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

/* ---------- News ---------- */
.home-news {
	padding-block: clamp(4rem, 10vw, 8rem);
}

.home-news__title {
	margin-bottom: 2.5rem !important;
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	letter-spacing: -0.045em;
}

.home-news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

@media (max-width: 960px) {
	.home-news__grid {
		grid-template-columns: 1fr;
	}
}

.news-card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.news-card .halftone {
	aspect-ratio: 16 / 10;
	margin-bottom: 1.25rem;
	border-radius: 1.25rem;
	--hx: 30%;
	--hy: 70%;
}

.news-card:hover .halftone::before {
	transform: scale(1.08) rotate(-2deg);
}

.news-card__title {
	color: var(--color-text);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.news-card:hover .news-card__title {
	color: var(--color-accent);
}

.news-card p {
	margin: 0.6rem 0 0;
	color: var(--color-muted);
	font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.home-contact {
	position: relative;
	padding: clamp(6rem, 14vw, 11rem) var(--space);
	overflow: hidden;
	background: var(--color-surface);
	text-align: center;
}

.home-contact__aa {
	position: absolute;
	top: 18%;
	left: 12%;
	display: grid;
	place-items: center;
	width: 6rem;
	height: 6rem;
	background: #fff;
	border: 1.5px solid var(--c-blue);
	color: var(--color-text);
	font-size: 2.5rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	transform: rotate(-8deg);
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
	will-change: transform;
}

.home-contact__aa::before,
.home-contact__aa::after {
	content: "";
	position: absolute;
	width: 0.5rem;
	height: 0.5rem;
	background: #fff;
	border: 1.5px solid var(--c-blue);
}

.home-contact__aa::before { top: -0.3rem; left: -0.3rem; }
.home-contact__aa::after { bottom: -0.3rem; right: -0.3rem; }

.cursor--contact {
	top: 26%;
	right: 16%;
}

.home-contact__title {
	position: relative;
	display: flex;
	flex-direction: column;
	font-size: clamp(2.75rem, 8vw, 6.5rem);
	line-height: 0.95;
	letter-spacing: -0.055em;
}

.home-contact__text {
	position: relative;
	max-width: 34rem;
	margin: 2rem auto 2.5rem;
	font-size: 1.2rem;
}

.home-contact__button {
	position: relative;
	display: inline-block;
	padding: 1rem 2.25rem;
	background: var(--color-ink);
	color: #fff;
	border-radius: 999px;
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
}

.home-contact__button:hover {
	background: var(--color-accent);
	transform: scale(1.04);
}

@media (max-width: 720px) {
	.home-contact__aa {
		top: 6%;
		left: 6%;
		width: 4rem;
		height: 4rem;
		font-size: 1.6rem;
	}

	.cursor--contact {
		top: 8%;
		right: 8%;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.cursor,
	.frame,
	.chip,
	.comment--hero,
	.marquee__track,
	.pulse {
		animation: none !important;
	}

	.js-quote-word {
		--o: 1 !important;
	}
}
