/* ==========================================================================
   JBCooper.me — 2026 redesign
   Self-contained. Does not depend on Bootstrap, Themify, or the 2017 theme.
   ========================================================================== */

/* ---------- tokens ---------- */

:root {
	--bg:         #0b0c0f;
	--bg-2:       #101319;
	--surface:    #16191f;
	--surface-2:  #1d212a;
	--line:       #272c36;
	--line-soft:  #1e222b;
	--text:       #f2f4f7;
	--text-2:     #a8b0bd;
	--text-3:     #737c8a;
	--accent:     #ff6b35;
	--accent-2:   #ffab3d;
	--accent-ink: #16100c;
	--accent-dim: rgba(255, 107, 53, .14);
	--shadow:     0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.7);
	--shadow-lg:  0 2px 4px rgba(0,0,0,.4), 0 32px 64px -24px rgba(0,0,0,.8);

	--font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--gutter: clamp(1.25rem, 4vw, 3rem);
	--maxw: 1240px;
	--radius: 14px;
	--radius-lg: 22px;

	--ease: cubic-bezier(.22, .61, .36, 1);
	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg:         #ffffff;
	--bg-2:       #f5f7fa;
	--surface:    #ffffff;
	--surface-2:  #f1f4f8;
	--line:       #e0e5ec;
	--line-soft:  #eaeef3;
	--text:       #12151a;
	--text-2:     #4e5763;
	--text-3:     #7b848f;
	--accent:     #d9491a;
	--accent-2:   #e08300;
	--accent-ink: #ffffff;
	--accent-dim: rgba(217, 73, 26, .10);
	--shadow:     0 1px 2px rgba(16,24,40,.06), 0 12px 28px -14px rgba(16,24,40,.24);
	--shadow-lg:  0 2px 4px rgba(16,24,40,.06), 0 32px 60px -28px rgba(16,24,40,.34);
	color-scheme: light;
}

/* ---------- reset ---------- */

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

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

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

img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

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

.skip-link {
	position: absolute;
	left: 1rem; top: -100px;
	z-index: 200;
	background: var(--accent);
	color: var(--accent-ink);
	padding: .7rem 1.2rem;
	border-radius: 0 0 10px 10px;
	font-weight: 600;
	text-decoration: none;
	transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- layout helpers ---------- */

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tint { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line-soft); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-family: var(--font-mono);
	font-size: .74rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 1.1rem;
	font-weight: 500;
}
.eyebrow::before {
	content: "";
	width: 26px; height: 1px;
	background: currentColor;
	opacity: .7;
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
.section-head .lede {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	color: var(--text-2);
	margin-top: 1rem;
}

/* ---------- buttons ---------- */

.btn {
	--btn-bg: var(--accent);
	--btn-fg: var(--accent-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .9rem 1.6rem;
	background: var(--btn-bg);
	color: var(--btn-fg);
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .98rem;
	letter-spacing: -.01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s var(--ease), background-color .18s var(--ease),
	            border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(255,107,53,.6); }
.btn:active { transform: translateY(0); }

.btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--text);
	border-color: var(--line);
	backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--text-3); background: var(--surface-2); box-shadow: none; }

.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.link-arrow:hover { border-bottom-color: currentColor; gap: .7rem; }

/* ==========================================================================
   header / nav
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	border-bottom: 1px solid transparent;
	transition: background-color .3s var(--ease), border-color .3s var(--ease),
	            backdrop-filter .3s var(--ease);
}
.site-header.is-stuck {
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom-color: var(--line-soft);
}

.nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	height: 74px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	text-decoration: none;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -.02em;
	margin-right: auto;
	white-space: nowrap;
}
.brand__mark {
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: var(--accent-ink);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: -.03em;
	flex: none;
}
.brand__name { font-size: 1.02rem; }
.brand__name span { color: var(--text-3); font-weight: 500; }

.nav__links {
	display: flex;
	align-items: center;
	gap: .35rem;
	list-style: none;
	margin: 0; padding: 0;
}
.nav__links a {
	display: block;
	padding: .5rem .85rem;
	border-radius: 999px;
	font-size: .94rem;
	font-weight: 500;
	color: var(--text-2);
	text-decoration: none;
	transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }

.nav__actions { display: flex; align-items: center; gap: .6rem; }

.icon-btn {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--text-2);
	cursor: pointer;
	transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--text-3); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav__toggle { display: none; }
.nav__resume { display: none; } /* desktop uses the button in .nav__actions */

@media (max-width: 860px) {
	.nav__toggle { display: grid; }
	.nav__links {
		position: fixed;
		inset: 74px 0 auto;
		flex-direction: column;
		align-items: stretch;
		gap: .2rem;
		padding: 1rem var(--gutter) 1.6rem;
		background: var(--bg);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-lg);
		transform: translateY(-120%);
		visibility: hidden;
		transition: transform .32s var(--ease), visibility .32s;
	}
	.nav__links.is-open { transform: translateY(0); visibility: visible; }
	.nav__links a { padding: .8rem .6rem; font-size: 1.05rem; }
	.nav__actions .btn { display: none; }
	.nav__resume { display: block; }
	.nav__resume a { color: var(--accent); font-weight: 600; }
}

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: min(88svh, 900px);
	padding-block: clamp(4rem, 12vw, 8rem);
	overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: 72% 38%;
	opacity: .62;
	filter: saturate(.82);
}
:root[data-theme="light"] .hero__media img { opacity: .42; filter: saturate(.9) contrast(1.02); }

/* keep the left column readable without flattening the photo on the right */
.hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(100deg,
			var(--bg) 0%,
			color-mix(in srgb, var(--bg) 92%, transparent) 30%,
			color-mix(in srgb, var(--bg) 45%, transparent) 55%,
			transparent 78%),
		linear-gradient(to top, var(--bg) 1%, transparent 30%);
}

@media (max-width: 860px) {
	.hero__media img { object-position: 68% 25%; opacity: .38; }
	.hero__scrim {
		background:
			linear-gradient(to bottom,
				color-mix(in srgb, var(--bg) 70%, transparent) 0%,
				color-mix(in srgb, var(--bg) 90%, transparent) 45%,
				var(--bg) 92%);
	}
}

.hero__inner { position: relative; }

.status {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .42rem .95rem .42rem .7rem;
	margin-bottom: 1.75rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 70%, transparent);
	backdrop-filter: blur(10px);
	font-size: .84rem;
	font-weight: 500;
	color: var(--text-2);
}
.status__dot {
	position: relative;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #35d07f;
	flex: none;
}
.status__dot::after {
	content: "";
	position: absolute; inset: -4px;
	border-radius: 50%;
	border: 1px solid #35d07f;
	opacity: .6;
	animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
	0%   { transform: scale(.6); opacity: .8; }
	70%  { transform: scale(1.5); opacity: 0; }
	100% { transform: scale(1.5); opacity: 0; }
}

.hero h1 {
	font-size: clamp(2.6rem, 7.2vw, 5.1rem);
	letter-spacing: -.035em;
	margin-bottom: 1.4rem;
}
.hero h1 .accent {
	background: linear-gradient(100deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__lede {
	font-size: clamp(1.1rem, 1.9vw, 1.35rem);
	color: var(--text-2);
	max-width: 54ch;
	margin-bottom: 2.4rem;
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(1.5rem, 5vw, 3.5rem);
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}
.stat__num {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1;
}
.stat__label {
	display: block;
	margin-top: .45rem;
	font-size: .82rem;
	color: var(--text-3);
	letter-spacing: .02em;
}

/* ---------- marquee ---------- */

.marquee {
	position: relative;
	overflow: hidden;
	padding-block: 1.15rem;
	border-block: 1px solid var(--line-soft);
	background: var(--bg-2);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
	display: flex;
	width: max-content;
	gap: 2.6rem;
	animation: scroll 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
	font-family: var(--font-mono);
	font-size: .82rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-3);
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 2.6rem;
}
.marquee__track span::after {
	content: "";
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--accent);
	opacity: .55;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ==========================================================================
   work / portfolio
   ========================================================================== */

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 2.5rem;
	padding: 0; list-style: none;
}
.filter {
	padding: .5rem 1.05rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--text-2);
	font-size: .88rem;
	font-weight: 500;
	cursor: pointer;
	transition: all .18s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--text-3); }
.filter[aria-pressed="true"] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
}

.work-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
	gap: clamp(1rem, 2vw, 1.6rem);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	text-align: left;
	padding: 0;
	cursor: pointer;
	transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover {
	transform: translateY(-5px);
	border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
	box-shadow: var(--shadow-lg);
}

.card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--surface-2);
}
.card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform .5s var(--ease), filter .3s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }

.card__body {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	padding: 1.1rem 1.2rem 1.25rem;
	border-top: 1px solid var(--line-soft);
}
.card__title {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.3;
	margin: 0;
}
.card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	font-family: var(--font-mono);
	font-size: .68rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-3);
}
.card__tags i { font-style: normal; }
.card__tags i + i::before { content: "·"; margin-right: .35rem; opacity: .6; }

.card__badge {
	position: absolute;
	top: .8rem; right: .8rem;
	padding: .28rem .6rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	backdrop-filter: blur(8px);
	border: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: .64rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text-2);
}

.card[hidden] { display: none; }

.work-more { margin-top: 2.75rem; text-align: center; }
.work-count { color: var(--text-3); font-size: .9rem; margin-bottom: 1rem; }

/* ==========================================================================
   modal
   ========================================================================== */

dialog.modal {
	width: min(920px, calc(100vw - 2rem));
	max-height: min(88svh, 820px);
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--text);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
dialog.modal::backdrop {
	background: rgba(4, 5, 8, .72);
	backdrop-filter: blur(5px);
}
dialog.modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in {
	from { opacity: 0; transform: translateY(14px) scale(.985); }
	to   { opacity: 1; transform: none; }
}

.modal__scroll { overflow-y: auto; max-height: inherit; }

.modal__close {
	position: absolute;
	top: .85rem; right: .85rem;
	z-index: 3;
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--bg) 75%, transparent);
	backdrop-filter: blur(8px);
	color: var(--text);
	cursor: pointer;
	transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.modal__close:hover { background: var(--surface-2); transform: rotate(90deg); }

.modal__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) {
	.modal__grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
	.modal__media { position: sticky; top: 0; }
}

.modal__media {
	background: var(--surface-2);
	border-bottom: 1px solid var(--line-soft);
	max-height: 340px;
	overflow: hidden;
}
@media (min-width: 760px) {
	.modal__media { max-height: none; border-bottom: 0; border-right: 1px solid var(--line-soft); }
}
.modal__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.modal__body { padding: clamp(1.5rem, 3vw, 2.4rem); }
.modal__body h3 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: .5rem;
}
.modal__tags {
	font-family: var(--font-mono);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 1.4rem;
}
.modal__body p { color: var(--text-2); }
.modal__note {
	margin-top: 1.2rem;
	padding: .8rem 1rem;
	border-left: 2px solid var(--line);
	border-radius: 0 8px 8px 0;
	background: var(--surface-2);
	font-size: .9rem;
	color: var(--text-3);
}
.modal__links {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem 1.5rem;
	margin-top: 1.8rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--line-soft);
}

/* ---------- résumé gate ---------- */

dialog.modal--narrow { width: min(520px, calc(100vw - 2rem)); }

.gate-options {
	display: grid;
	gap: .65rem;
	margin: 1.8rem 0 1.4rem;
}

.gate-option {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--text);
	text-align: left;
	cursor: pointer;
	transition: border-color .18s var(--ease), transform .18s var(--ease), background-color .18s var(--ease);
}
.gate-option:hover {
	transform: translateX(3px);
	border-color: var(--accent);
	background: var(--accent-dim);
}

.gate-option__icon {
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	flex: none;
	border-radius: 10px;
	background: var(--accent-dim);
	color: var(--accent);
}
.gate-option__icon svg { width: 20px; height: 20px; }

.gate-option__text { display: grid; gap: .1rem; }
.gate-option__text strong {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -.01em;
}
.gate-option__text small { font-size: .85rem; color: var(--text-3); }

.gate-note {
	font-size: .82rem;
	color: var(--text-3);
	margin: 0;
}

/* ==========================================================================
   about
   ========================================================================== */

.about {
	display: grid;
	gap: clamp(2.5rem, 6vw, 4.5rem);
	align-items: start;
}
@media (min-width: 900px) {
	.about { grid-template-columns: 1fr 1fr; }
	/* the copy column is much taller — let the portrait ride along */
	.about__portrait { position: sticky; top: 106px; }
}

.about__portrait {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
}
.about__portrait img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.about__copy p { color: var(--text-2); }
.about__copy p:first-of-type { font-size: 1.15rem; color: var(--text); }

.facts {
	display: grid;
	gap: 0;
	margin-top: 2rem;
	border-top: 1px solid var(--line-soft);
}
.fact {
	display: grid;
	grid-template-columns: minmax(90px, 130px) 1fr;
	gap: 1rem;
	padding: .85rem 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: .95rem;
}
.fact dt {
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-3);
	padding-top: .25rem;
}
.fact dd { margin: 0; color: var(--text-2); }

/* ==========================================================================
   capabilities
   ========================================================================== */

.cap-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 2vw, 1.5rem);
}
/* four cards read better as a 2x2 block than as a 3 + 1 orphan row */
@media (min-width: 720px) {
	.cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cap {
	position: relative;
	padding: clamp(1.5rem, 2.6vw, 2rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
	transition: border-color .28s var(--ease), transform .28s var(--ease);
}
.cap::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s var(--ease);
}
.cap:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.cap:hover::before { transform: scaleX(1); }

.cap__icon {
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	margin-bottom: 1.2rem;
	border-radius: 12px;
	background: var(--accent-dim);
	color: var(--accent);
}
.cap__icon svg { width: 22px; height: 22px; }
.cap h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.cap p { color: var(--text-2); font-size: .97rem; margin-bottom: 1.1rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.chips li {
	padding: .25rem .6rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-family: var(--font-mono);
	font-size: .7rem;
	letter-spacing: .04em;
	color: var(--text-3);
}

/* ==========================================================================
   resume
   ========================================================================== */

.resume-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.resume-card {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	padding: clamp(1.4rem, 2.5vw, 1.9rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
}
.resume-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
	box-shadow: var(--shadow-lg);
}
.resume-card__thumb {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--surface-2);
	aspect-ratio: 8.5 / 11;
	max-height: 300px;
}
.resume-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.resume-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.resume-card p { color: var(--text-2); font-size: .95rem; flex: 1; }

/* ==========================================================================
   contact
   ========================================================================== */

.contact {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4rem);
	align-items: start;
}
@media (min-width: 900px) { .contact { grid-template-columns: .85fr 1.15fr; } }

.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .9rem; }
.contact__list a {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	color: var(--text);
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: color .18s var(--ease), border-color .18s var(--ease);
}
.contact__list a:hover { color: var(--accent); border-bottom-color: currentColor; }
.contact__list svg { width: 17px; height: 17px; color: var(--text-3); flex: none; }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field label {
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-3);
}
.field input, .field textarea {
	width: 100%;
	padding: .85rem 1rem;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--text);
	font-size: 1rem;
	transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-dim);
}
.field textarea { resize: vertical; min-height: 130px; }
.field.has-error input, .field.has-error textarea { border-color: #f2544b; }
.field__error { font-size: .82rem; color: #f2544b; display: none; }
.field.has-error .field__error { display: block; }

.form__row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form__status {
	padding: .85rem 1.1rem;
	border-radius: 10px;
	font-size: .93rem;
	display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-ok { background: rgba(53, 208, 127, .12); color: #35d07f; border: 1px solid rgba(53,208,127,.3); }
.form__status.is-bad { background: rgba(242, 84, 75, .1); color: #f2544b; border: 1px solid rgba(242,84,75,.3); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn[data-loading="true"] { pointer-events: none; opacity: .75; }

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer {
	border-top: 1px solid var(--line-soft);
	background: var(--bg-2);
	padding-block: 3rem 2.5rem;
}
.footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
	justify-content: space-between;
}
.footer__meta { color: var(--text-3); font-size: .88rem; }
.footer__meta a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__meta a:hover { color: var(--accent); }
.social { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   reveal on scroll
   ========================================================================== */

.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ==========================================================================
   preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.reveal { opacity: 1; transform: none; }
	.marquee__track { animation: none; }
}

@media print {
	.site-header, .marquee, .hero__media, .hero__scrim, .site-footer, dialog { display: none !important; }
	body { background: #fff; color: #000; }
}
