/* joshtimonen.com — mobile-first. Breakpoints: 720px (tablet), 1024px (desktop). */

:root {
	--bg: #0d0d0e;
	--bg-alt: #151517;
	--surface: #1c1c1f;
	--line: #2b2b30;
	--text: #ecebe8;
	--muted: #a3a19c;
	--accent: #e4b363;        /* warm "golden hour" amber */
	--accent-ink: #1a1408;
	--radius: 14px;
	--wrap: 1160px;
	--gutter: 20px;
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

/* Offset anchor jumps so the sticky header doesn't cover section titles */
[id] { scroll-margin-top: 80px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
	padding-bottom: 64px; /* room for mobile contact bar */
}

img, iframe { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
h3, h4 { font-family: var(--sans); }

p { margin: 0 0 1em; }

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

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

.lede { font-size: 18px; color: var(--muted); max-width: 40em; }

.text-link {
	color: var(--accent);
	font-weight: 500;
	text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font: 600 15px/1 var(--sans);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f0c57e; }

.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

.cta-row { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Top bar ---------- */

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(13, 13, 14, 0.88);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
	font: 600 22px/1 var(--serif);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	margin-right: auto;
}
.nav { display: none; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.topbar .btn { display: none; }

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

.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 36px; }
.hero h1 { font-size: clamp(36px, 8vw, 60px); margin-bottom: 18px; }
.hero .lede { margin-bottom: 28px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hero-reel .card { background: transparent; border: 0; }
.hero-reel .card-body { padding: 14px 2px 0; }
.hero-reel .card-body p:empty { display: none; }

/* ---------- Credits ---------- */

.credits { border-block: 1px solid var(--line); background: var(--bg-alt); padding: 28px 0; }
.credits-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.credits-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.credits-list li { display: flex; flex-direction: column; gap: 2px; }
.credits-list strong { font: 600 19px/1.2 var(--serif); }
.credits-list span { font-size: 13px; color: var(--muted); }

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

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 36px; max-width: 46em; }
.section-head h2 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 12px; }
.section-head p:last-child { color: var(--muted); margin: 0; }

/* Services */
.services { display: grid; gap: 16px; }
.service {
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.service h3 { font-size: 18px; margin-bottom: 8px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* Work */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1) 40px; padding-inline: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
	flex: none;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 14px;
	color: var(--muted);
	text-decoration: none;
}
.chips a:hover { color: var(--text); border-color: var(--muted); }

.work-group + .work-group { margin-top: 56px; }
.group-head { margin-bottom: 22px; max-width: 46em; }
.group-head h3 { font: 600 28px/1.2 var(--serif); margin-bottom: 8px; }
.group-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 20px; }

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.card-body { padding: 18px 20px 22px; }
.card h4 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .role { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* Video thumbnail / player (16:9) */
.video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	padding: 0;
	margin: 0;
	background: #000;
	cursor: pointer;
	overflow: hidden;
	border-radius: var(--radius) var(--radius) 0 0;
}
.hero-reel .video { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .9; }
.video:hover img { transform: scale(1.03); opacity: 1; }
.play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(0,0,0,.55);
	border: 1px solid rgba(255,255,255,.35);
	display: grid;
	place-items: center;
	transition: background-color .2s, transform .2s;
}
.play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.video:hover .play { background: var(--accent); transform: scale(1.06); }
.video:hover .play svg { fill: var(--accent-ink); }
.video:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Mid-page CTA */
.cta-band { padding: 56px 0; background: linear-gradient(135deg, #2a2113, #17140f); border-bottom: 1px solid var(--line); }
.cta-band-inner { display: grid; gap: 24px; }
.cta-band h2 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin: 0; }

/* About */
.about { display: grid; gap: 36px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.about-copy h2 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 18px; }
.about-copy > p { color: #cfcdc8; }

.kit { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 28px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.kit dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kit dd { margin: 2px 0 0; font-size: 15px; }

/* Contact */
.contact { text-align: center; }
.contact-inner { max-width: 820px; }
.contact h2 { font-size: clamp(38px, 8vw, 64px); margin-bottom: 16px; }
.contact .lede { margin: 0 auto 36px; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 28px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.contact-icon svg { width: 22px; height: 22px; fill: var(--accent-ink); }
.contact-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: 18px; font-weight: 600; word-break: break-word; }

.elsewhere { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.elsewhere a { color: var(--muted); text-decoration: none; font-size: 15px; }
.elsewhere a:hover { color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: grid; gap: 6px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Mobile contact bar */
.mobile-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 30;
	display: grid;
	grid-template-columns: 1fr 1fr 1.4fr;
	gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	background: rgba(13, 13, 14, 0.95);
	border-top: 1px solid var(--line);
}
.mobile-bar a {
	display: grid;
	place-items: center;
	min-height: 46px;
	border-radius: 999px;
	border: 1px solid var(--line);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.mobile-bar a.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
	:root { --gutter: 32px; }
	body { padding-bottom: 0; }
	.mobile-bar { display: none; }
	.topbar .btn { display: inline-flex; }

	.cta-row { flex-direction: row; flex-wrap: wrap; }
	.credits-list { grid-template-columns: repeat(3, 1fr); }
	.services { grid-template-columns: 1fr 1fr; }
	.grid { grid-template-columns: 1fr 1fr; }
	.contact-cards { grid-template-columns: 1fr 1fr; }
	.footer-inner { grid-template-columns: 1fr auto; }
	.section { padding: 88px 0; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
	.nav { display: flex; }
	.hero { padding: 80px 0 88px; }
	.hero-grid { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; }
	.credits-list { grid-template-columns: repeat(5, 1fr); }
	.services { grid-template-columns: repeat(4, 1fr); }
	.grid { grid-template-columns: repeat(3, 1fr); }
	.cta-band-inner { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
	.about { grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; }
	.about-photo { position: sticky; top: 96px; }
	.chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
