/* akandil.com. Dark only, amber accent. Sections: tokens, base, layout, components, pages, home. */

/* ---------- Tokens ---------- */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
	--bg: #0b0a09;
	--surface: #14120f;
	--surface-2: #1c1915;
	--border: rgb(255 255 255 / 0.08);
	--border-strong: rgb(255 255 255 / 0.16);
	--text: #e7e5e4;
	--heading: #f5f5f4;
	--muted: #a8a29e;
	--faint: #8c847e;
	--accent: #fbbf24;
	--accent-strong: #f59e0b;
	--accent-soft: rgb(251 191 36 / 0.12);

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
	--radius: 16px;
	--radius-sm: 10px;
	--gutter: 24px;
	--navbar-space: 96px;

	color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--heading);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	color: var(--accent-strong);
}

strong {
	color: var(--heading);
	font-weight: 600;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

main:focus {
	outline: none;
}

::selection {
	background: var(--accent);
	color: var(--bg);
}

.skip-link {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 100;
	transform: translateY(-200%);
	border-radius: var(--radius-sm);
	background: var(--accent);
	padding: 8px 16px;
	color: var(--bg);
	font-weight: 600;
}

.skip-link:focus,
.skip-link:focus-visible {
	transform: none;
	color: var(--bg);
}

/* ---------- Layout ---------- */

.container {
	margin-inline: auto;
	padding-inline: var(--gutter);
	width: 100%;
	max-width: calc(1120px + 2 * var(--gutter));
}

@media (max-width: 479px) {
	:root {
		--gutter: 16px;
	}
}

/* ---------- Components ---------- */

.icon {
	display: inline-block;
	flex: none;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
	background-color: currentColor;
	width: 1.25em;
	height: 1.25em;
	vertical-align: -0.2em;
}

.btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 0.5em;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0.65em 1.4em;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	white-space: nowrap;
}

.btn--primary {
	background: var(--accent);
	color: var(--bg);
}

.btn--primary:hover {
	background: var(--accent-strong);
	color: var(--bg);
}

.btn--ghost {
	border-color: var(--border-strong);
	color: var(--text);
}

.btn--ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	padding: 24px;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-2);
	padding: 0.3em 0.8em;
	color: var(--muted);
	font-size: 0.8rem;
	line-height: 1.3;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--accent);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* <details> styled as an expandable card: FAQ answers, experience roles. */
.disclosure,
.prose details {
	margin: 0 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.disclosure > summary,
.prose details > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	padding: 18px 24px;
	color: var(--heading);
	font-weight: 600;
	list-style: none;
}

.disclosure > summary::-webkit-details-marker,
.prose details > summary::-webkit-details-marker {
	display: none;
}

.disclosure > summary::after,
.prose details > summary::after {
	flex: none;
	-webkit-mask: url("../img/icons/chevron-down.svg") center / contain no-repeat;
	mask: url("../img/icons/chevron-down.svg") center / contain no-repeat;
	background-color: var(--faint);
	width: 20px;
	height: 20px;
	content: "";
}

.disclosure[open] > summary::after,
.prose details[open] > summary::after {
	transform: rotate(180deg);
	background-color: var(--accent);
}

.disclosure > summary:hover::after,
.prose details > summary:hover::after {
	background-color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
	.disclosure > summary::after,
	.prose details > summary::after {
		transition: transform 0.2s;
	}
}

.prose details > :not(summary) {
	margin-inline: 24px;
	color: var(--muted);
}

.prose details > :last-child {
	margin-bottom: 20px;
}

/* ---------- Navbar ---------- */

.navbar {
	display: flex;
	position: fixed;
	top: 16px;
	left: 50%;
	align-items: center;
	gap: 4px;
	z-index: 50;
	transform: translateX(-50%);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 8px 32px rgb(0 0 0 / 0.35);
	border: 1px solid var(--border);
	border-radius: 999px;
	background: rgb(20 18 15 / 0.72);
	padding: 6px;
	max-width: calc(100% - 2 * var(--gutter));
}

.navbar-home {
	display: grid;
	flex: none;
	place-items: center;
	border-radius: 999px;
	background: var(--accent-soft);
	width: 36px;
	height: 36px;
	color: var(--accent);
	font-weight: 800;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
}

.navbar-links {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.navbar-links::-webkit-scrollbar {
	display: none;
}

.navbar-links a {
	display: block;
	border-radius: 999px;
	padding: 8px 14px;
	color: var(--muted);
	font-weight: 500;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}

.navbar-links a:hover,
.navbar-links a[aria-current="page"] {
	background: var(--surface-2);
	color: var(--heading);
}

/* Home page: hidden while the hero is on screen (site.js sets data-visible). */
.navbar[data-visible="false"] {
	transform: translate(-50%, -8px);
	visibility: hidden;
	opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.navbar {
		transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
	}
}

/* Where the hero side menu doesn't fit (see .hero-nav), the navbar is always there. */
@media (max-width: 959px), (max-height: 700px) {
	.navbar[data-visible="false"] {
		transform: translateX(-50%);
		visibility: visible;
		opacity: 1;
	}
}

@media (max-width: 767px) {
	/* The links scroll sideways here; fade the edge so that reads as scrollable. */
	.navbar-links {
		-webkit-mask-image: linear-gradient(to right, black 85%, transparent);
		mask-image: linear-gradient(to right, black 85%, transparent);
		padding-right: 24px;
	}

	.navbar-links a {
		padding: 8px 10px;
	}
}

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

.site-footer {
	margin-top: 96px;
	border-top: 1px solid var(--border);
	padding-block: 32px;
	color: var(--faint);
	font-size: 0.85rem;
	text-align: center;
}

.site-footer p {
	margin: 0;
}

/* ---------- Pages ---------- */

.page {
	padding-top: calc(var(--navbar-space) + 32px);
	max-width: calc(760px + 2 * var(--gutter));
}

.page-header {
	margin-bottom: 32px;
}

.page h1 {
	font-weight: 800;
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.prose > p {
	color: var(--muted);
}

.prose h2 {
	margin: 1.6em 0 0.6em;
	font-size: 1.5rem;
}

.prose a {
	text-decoration: underline;
	text-decoration-color: rgb(251 191 36 / 0.4);
	text-underline-offset: 0.2em;
}

.prose a:hover {
	text-decoration-color: currentColor;
}

.prose code {
	border-radius: 6px;
	background: var(--surface-2);
	padding: 0.1em 0.35em;
	font-size: 0.9em;
	font-family: var(--font-mono);
}

.prose img {
	border-radius: var(--radius);
}

.notfound .btn {
	margin-top: 16px;
}

/* Links page */
.linkspage {
	padding-top: calc(var(--navbar-space) + 32px);
	max-width: calc(480px + 2 * var(--gutter));
	text-align: center;
}

.linkspage-avatar {
	margin: 0 auto 20px;
	box-shadow: 0 0 0 4px var(--accent-soft);
	border-radius: 50%;
	width: 112px;
	height: 112px;
	object-fit: cover;
}

.linkspage-title {
	font-weight: 800;
	font-size: 1.75rem;
}

.linkspage-subtitle {
	margin-top: 4px;
	color: var(--accent);
	font-size: 0.8rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.linkspage-list {
	display: grid;
	gap: 12px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.linkspage-btn {
	width: 100%;
	padding-block: 0.9em;
	font-size: 1rem;
}

/* ---------- Home: hero ---------- */

.hero {
	display: grid;
	position: relative;
	place-items: center;
	align-content: center;
	row-gap: 40px;
	padding: 96px var(--gutter) 120px;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
}

/* Warm glow in the lower right corner. */
.hero::after {
	position: absolute;
	right: -20vw;
	bottom: -30vh;
	z-index: 0;
	background: radial-gradient(closest-side, rgb(251 191 36 / 0.1), transparent);
	width: 70vw;
	height: 70vh;
	content: "";
	pointer-events: none;
}

.hero-nav,
.hero-social,
.hero-scroll {
	z-index: 1;
}

.hero-nav {
	position: absolute;
	top: 24px;
	left: 28px;
}

.hero-nav ul,
.hero-social,
.hero-meta {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero-nav a {
	display: block;
	padding: 2px 0;
	color: var(--muted);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hero-nav a:hover {
	color: var(--accent);
}

.hero-social {
	display: flex;
	position: absolute;
	top: 20px;
	right: 24px;
	gap: 12px;
}

.hero-social a {
	display: grid;
	place-items: center;
	color: var(--heading);
	font-size: 1.75rem;
}

.hero-social a:hover {
	color: var(--accent);
}

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 820px;
	text-align: center;
}

.hero-name {
	-webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(90deg, var(--heading) 0%, var(--heading) 35%, var(--accent) 100%);
	color: transparent;
	font-weight: 800;
	font-size: clamp(2.25rem, 9.5vw, 5.5rem);
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.hero-role {
	margin: 20px 0 0;
	color: var(--accent);
	font-weight: 500;
	font-size: clamp(0.85rem, 2.4vw, 1.25rem);
	letter-spacing: 0.35em;
	text-transform: uppercase;
}

.hero-tagline {
	margin: 24px auto 0;
	max-width: 620px;
	color: var(--muted);
	font-size: clamp(1rem, 2vw, 1.125rem);
}

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 28px;
	color: var(--faint);
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.hero-meta li + li::before {
	margin-inline: 14px;
	color: var(--border-strong);
	content: "|";
}

.hero-scroll {
	position: absolute;
	bottom: 40px;
	left: 50%;
	translate: -50% 0;
	color: var(--accent);
	font-size: 1.75rem;
	line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.hero-scroll .icon {
		animation: hero-bounce 1.8s ease-in-out infinite;
	}
}

@keyframes hero-bounce {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(8px);
	}
}

/* The corner menu only fits beside the name on wide, tall windows. Elsewhere (phones,
   landscape phones, short laptop windows) the navbar takes over and the social links
   join the normal flow under the pitch. */
@media (max-width: 959px), (max-height: 700px) {
	.hero-nav {
		display: none;
	}

	.hero {
		padding-top: 112px;
	}

	.hero-social {
		position: static;
		order: 1;
	}
}

/* ---------- Home: sections ---------- */

#main > section:not(.hero) {
	scroll-margin-top: var(--navbar-space);
}

.section {
	padding-top: 120px;
}

.section-heading {
	display: flex;
	position: relative;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 48px;
	padding-bottom: 16px;
	font-weight: 800;
	font-size: clamp(2rem, 5vw, 3rem);
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.section-heading::after {
	position: absolute;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, var(--accent), transparent);
	width: 96px;
	height: 2px;
	content: "";
}

.section-number {
	color: var(--accent);
	font-weight: 500;
	font-size: 0.95rem;
	font-family: var(--font-mono);
	letter-spacing: 0.1em;
}

.icon-tile {
	display: grid;
	flex: none;
	place-items: center;
	border: 1px solid rgb(251 191 36 / 0.2);
	border-radius: var(--radius-sm);
	background: var(--accent-soft);
	width: 40px;
	height: 40px;
	color: var(--accent);
	font-size: 1.1rem;
}

.icon-tile--large {
	margin-bottom: 20px;
	width: 48px;
	height: 48px;
	font-size: 1.35rem;
}

/* ---------- Home: about ---------- */

.about-grid {
	display: grid;
	gap: 48px;
}

@media (min-width: 960px) {
	.about-grid {
		grid-template-columns: 1.25fr 1fr;
		gap: 64px;
	}
}

.about-pitch {
	margin-bottom: 28px;
	color: var(--heading);
	font-weight: 700;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.about-pitch em {
	color: var(--accent);
	font-style: normal;
}

.about-bio p {
	color: var(--muted);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 32px;
	padding: 0;
	list-style: none;
}

.chips .pill {
	padding: 0.45em 0.9em;
	color: var(--text);
	font-size: 0.85rem;
}

.chips .icon {
	color: var(--accent);
}

.about-photo {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	width: 100%;
}

.features {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.feature {
	display: flex;
	gap: 16px;
	transition: border-color 0.2s;
}

.feature:hover {
	border-color: rgb(251 191 36 / 0.3);
}

.feature h4 {
	margin: 6px 0 6px;
	font-size: 1.05rem;
}

.feature p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.stats {
	display: grid;
	gap: 16px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.stats {
		grid-template-columns: repeat(3, 1fr);
	}
}

.stat {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: linear-gradient(160deg, var(--surface-2), var(--surface));
}

.stat-value {
	color: var(--accent);
	font-weight: 800;
	font-size: 2.5rem;
	line-height: 1;
	letter-spacing: -0.02em;
}

.stat-label {
	color: var(--muted);
	font-size: 0.92rem;
}

/* ---------- Home: expertise ---------- */

.expertise-cards {
	display: grid;
	gap: 16px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

@media (min-width: 960px) {
	.expertise-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.expertise-card {
	padding: 28px;
}

.expertise-card h3 {
	margin-bottom: 10px;
	font-size: 1.3rem;
}

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

.skills {
	padding: 28px;
}

.skills-group {
	margin: 24px 0 12px;
	color: var(--muted);
	font-weight: 500;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.skills .eyebrow + .skills-group {
	margin-top: 8px;
}

.tech-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tech-tile {
	display: flex;
	align-items: center;
	gap: 10px;
	transition: border-color 0.2s, color 0.2s;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	padding: 10px 12px;
	color: var(--text);
	font-size: 0.88rem;
	line-height: 1.3;
}

.tech-tile .tech-logo {
	color: var(--muted);
	font-size: 1.2rem;
	transition: color 0.2s;
}

.tech-tile:hover {
	border-color: rgb(251 191 36 / 0.35);
}

.tech-tile:hover .tech-logo {
	color: var(--accent);
}

/* ---------- Home: experience ---------- */

.role > summary {
	align-items: flex-start;
	padding: 22px 28px;
}

.role-heading {
	display: grid;
	flex: 1;
	gap: 6px;
}

.role-title {
	font-size: 1.15rem;
}

.role-sep {
	color: var(--faint);
	font-weight: 400;
}

.role-position {
	color: var(--accent);
	font-weight: 600;
}

.role-summary {
	color: var(--muted);
	font-weight: 400;
	font-size: 0.95rem;
}

.role-dates {
	flex: none;
	padding-top: 4px;
	color: var(--faint);
	font-weight: 400;
	font-size: 0.85rem;
	font-family: var(--font-mono);
	white-space: nowrap;
}

.role-body {
	border-top: 1px solid var(--border);
	padding: 20px 28px 24px;
}

.role-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-bottom: 16px;
	color: var(--muted);
	font-size: 0.9rem;
}

.role-meta > * {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.role-meta .icon {
	color: var(--accent);
}

.role-bullets {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.role-bullets li {
	position: relative;
	padding-left: 22px;
	color: var(--muted);
}

.role-bullets li::before {
	position: absolute;
	left: 0;
	color: var(--accent);
	content: "–";
}

@media (max-width: 639px) {
	.role > summary {
		flex-wrap: wrap;
		padding: 18px 20px;
	}

	.role-heading {
		order: 1;
		flex-basis: calc(100% - 40px);
	}

	.role-dates {
		order: 3;
		padding-top: 0;
	}

	.role > summary::after {
		order: 2;
	}

	.role-body {
		padding-inline: 20px;
	}
}

/* ---------- Home: projects ---------- */

.cases {
	display: grid;
	gap: 28px;
}

.case {
	display: grid;
	gap: 32px;
	align-items: center;
	padding: 16px;
}

@media (min-width: 960px) {
	.case {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	/* Alternate the media side, like a magazine spread. */
	.case:nth-child(even) .case-media {
		order: 2;
	}
}

.case-media {
	position: relative;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.case-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
}

/* Photographer credit for photos that need one, over the bottom edge of the image. */
.case-credit {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
	background: linear-gradient(to top, rgb(0 0 0 / 0.75), transparent);
	padding: 24px 12px 8px;
	color: #d6d3d1;
	font-size: 0.72rem;
	text-align: right;
}

.case-media--contain img {
	padding: 12%;
	object-fit: contain;
	object-position: center;
}

/* Work projects have no public screenshot: a decorative panel with the name instead. */
.case-abstract {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 25% 30%, rgb(251 191 36 / 0.18), transparent 45%),
		radial-gradient(circle at 80% 75%, rgb(245 158 11 / 0.12), transparent 50%),
		radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px) 0 0 / 18px 18px,
		var(--surface-2);
	padding: 24px;
	width: 100%;
	height: 100%;
}

.case-abstract span {
	color: rgb(245 245 244 / 0.16);
	font-weight: 800;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-align: center;
	text-transform: uppercase;
}

.case-body {
	padding: 8px 12px 12px;
}

@media (min-width: 960px) {
	.case-body {
		padding: 16px 16px 16px 0;
	}

	.case:nth-child(even) .case-body {
		padding: 16px 0 16px 16px;
	}
}

.case-badge {
	margin: 0 0 14px;
	color: var(--accent);
}

.case-title {
	margin-bottom: 8px;
	font-size: 1.6rem;
}

.case-title a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--heading);
}

.case-title a:hover {
	color: var(--accent);
}

.case-title .icon {
	color: var(--faint);
	font-size: 1.1rem;
}

.case-summary {
	color: var(--text);
}

.case-story {
	display: grid;
	gap: 14px;
	margin: 20px 0;
}

.case-story > div {
	border-left: 2px solid var(--border-strong);
	padding-left: 16px;
}

.case-story dt {
	margin-bottom: 4px;
	color: var(--accent);
	font-weight: 600;
	font-size: 0.7rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.case-story dd {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tags .tech-logo {
	font-size: 0.95rem;
}

.case-link {
	margin-top: 24px;
}

.case-link .icon,
.side-project h4 .icon {
	font-size: 0.95em;
}

.more-title {
	margin: 64px 0 20px;
	font-size: 1.4rem;
}

.side-projects {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.side-project {
	display: flex;
	flex-direction: column;
	padding: 12px 12px 20px;
}

.side-media {
	margin-bottom: 16px;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.side-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.side-media--contain img {
	padding: 10%;
	object-fit: contain;
}

.side-project h4,
.side-project p,
.side-project .tags {
	margin-inline: 8px;
}

.side-project h4 {
	margin-bottom: 6px;
	font-size: 1.1rem;
}

.side-project h4 a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--heading);
}

.side-project h4 a:hover {
	color: var(--accent);
}

.side-project p {
	flex: 1;
	color: var(--muted);
	font-size: 0.92rem;
}

/* ---------- Home: contact ---------- */

.contact {
	position: relative;
	background:
		radial-gradient(circle at 100% 0%, rgb(251 191 36 / 0.1), transparent 45%),
		var(--surface);
	padding: clamp(28px, 5vw, 56px);
	overflow: hidden;
}

.contact h3 {
	margin-bottom: 16px;
	font-weight: 800;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	letter-spacing: -0.02em;
}

.contact p {
	max-width: 640px;
	color: var(--muted);
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.contact-email {
	margin: 20px 0 0;
	font-size: 0.85rem;
	font-family: var(--font-mono);
}

/* ---------- Motion: reveal on scroll ---------- */

/* Only with JS (site.js adds .js and reveals) and only when motion is welcome. */
@media screen and (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	}

	.js [data-reveal]:not(.is-visible) {
		transform: translateY(16px);
		opacity: 0;
	}
}
