/* Jose S. Garza Cantu — Director of Photography */

:root {
	--bg: #0b0b0c;
	--surface: #141416;
	--line: #26262a;
	--text: #ece8e1;
	--muted: #9b968e;
	--accent: #d9a35b;
	--accent-ink: #1a1307;
	--serif: "Instrument Serif", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gutter: clamp(16px, 4vw, 48px);
	--max: 1320px;
	--header-h: 72px;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.eyebrow {
	font-size: 12px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 16px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); }

.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 24px;
	border: 1px solid var(--text);
	border-radius: 999px;
	background: transparent;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--text); border-color: var(--text); }
.btn svg { width: 14px; height: 14px; fill: currentColor; }

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

/* Header */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	height: var(--header-h);
	display: flex;
	align-items: center;
	transition: background .3s, border-color .3s;
	border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(11, 11, 12, .92); backdrop-filter: blur(8px); border-color: var(--line); }
.site-header:not(.is-solid) { text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.site-header:not(.is-solid) .nav a, .site-header:not(.is-solid) .brand span { color: rgba(236, 232, 225, .88); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	white-space: nowrap;
}
.brand span { color: var(--muted); font-weight: 400; }

.nav { display: flex; gap: 32px; }
.nav a {
	text-decoration: none;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-color: var(--accent); }

.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--text); margin: 6px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 760px) {
	.brand span { display: none; }
	.menu-btn { display: block; }
	.nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		flex-direction: column;
		gap: 0;
		padding: 24px var(--gutter);
		background: var(--bg);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s, transform .25s, visibility .25s;
	}
	.nav a { font-family: var(--serif); font-size: 40px; letter-spacing: 0; text-transform: none; color: var(--text); padding: 10px 0; border: 0; }
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
	.nav-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
	.nav-open .site-header { background: var(--bg); }
}

/* Page heading (inner pages) */
.page-head { padding: calc(var(--header-h) + clamp(48px, 9vw, 120px)) 0 clamp(32px, 5vw, 64px); }
.page-head h1 { font-size: clamp(48px, 8vw, 112px); }
.page-head .lede { margin: 20px 0 0; }

section { padding: clamp(64px, 9vw, 128px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.link-arrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.link-arrow:hover { color: var(--accent); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 0; overflow: hidden; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero img { animation: drift 24s ease-out both; object-position: 72% 50%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; background: #2a1d0c; }
.hero .role span { white-space: nowrap; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11,11,12,.7) 0%, rgba(11,11,12,0) 28%, rgba(11,11,12,.2) 55%, rgba(11,11,12,.92) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 9vh, 96px); }
.hero h1 { font-size: clamp(40px, 5.6vw, 84px); line-height: 1; letter-spacing: -.005em; }
.hero .role { margin: 20px 0 32px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--text); opacity: .85; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Reel */
.reel { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 4px; }
.reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55));
	border: 0;
	cursor: pointer;
}
.reel-play .disc {
	width: clamp(72px, 9vw, 112px);
	aspect-ratio: 1;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(236, 232, 225, .12);
	border: 1px solid rgba(236, 232, 225, .6);
	backdrop-filter: blur(6px);
	transition: background .25s, transform .25s;
}
.reel-play .disc svg { width: 28%; fill: var(--text); margin-left: 6%; }
.reel-play:hover .disc { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.reel-play:hover .disc svg { fill: var(--accent-ink); }
.reel:hover img { transform: scale(1.02); }
.reel-caption { position: absolute; left: 24px; bottom: 20px; text-align: left; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.reel-caption small { display: block; color: var(--muted); letter-spacing: .1em; margin-top: 4px; }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.project { text-decoration: none; display: block; }
.project .frame { aspect-ratio: 2.39 / 1; overflow: hidden; background: var(--surface); border-radius: 3px; }
.project .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .frame img { transform: scale(1.04); }
.project h3 { margin-top: 16px; }
.project .meta { margin: 6px 0 0; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.project .logline { margin: 10px 0 0; font-size: 15px; color: #c9c4bb; max-width: 48ch; }
.project[data-video] .frame, .project[data-open-reel] .frame, .project[data-mp4] .frame { position: relative; }
.project[data-video] .frame::after, .project[data-open-reel] .frame::after, .project[data-mp4] .frame::after {
	content: "";
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(236, 232, 225, .7);
	background: rgba(11, 11, 12, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23ece8e1'/%3E%3C/svg%3E") 55% 50% / 12px no-repeat;
	transition: background-color .25s, border-color .25s;
}
.project[data-video]:hover .frame::after, .project[data-open-reel]:hover .frame::after, .project[data-mp4]:hover .frame::after { background-color: var(--accent); border-color: var(--accent); }
.lightbox .lb-video video { width: 100%; height: 100%; background: #000; }

/* A project page of short videos: 16:9 tiles, each plays on its own */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 36px) clamp(16px, 2vw, 24px); }
.promo-grid .frame { aspect-ratio: 16 / 9; }
.promo-grid .project h3 { margin-top: 12px; }
.back-link { display: inline-block; margin-bottom: 28px; }

/* Placeholders the owner still has to fill in */
.todo {
	border: 1px dashed var(--accent);
	background: repeating-linear-gradient(135deg, rgba(217,163,91,.06) 0 12px, transparent 12px 24px);
	color: var(--accent);
}
.project .frame.todo { display: grid; place-items: center; text-align: center; padding: 16px; font-size: 13px; letter-spacing: .08em; }
.todo-note { padding: 16px 20px; border-radius: 3px; font-size: 14px; line-height: 1.5; }

/* Stills */
.stills-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stills-strip a { aspect-ratio: 4 / 5; overflow: hidden; display: block; }
.stills-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; }
.stills-strip a:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .stills-strip { grid-template-columns: repeat(2, 1fr); } }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
	background: none;
	border: 0;
	border-bottom: 1px solid transparent;
	margin-bottom: -1px;
	padding: 12px 0;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	cursor: pointer;
	white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.tabs button span { color: var(--muted); margin-left: 6px; letter-spacing: 0; }

.masonry { columns: 3 320px; column-gap: 12px; }
.masonry figure { margin: 0 0 12px; break-inside: avoid; cursor: zoom-in; overflow: hidden; background: var(--surface); }
.masonry img { width: 100%; transition: transform .6s, opacity .4s; }
.masonry figure:hover img { transform: scale(1.03); }
.masonry[hidden] { display: none; }

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: #050506;
	display: grid;
	grid-template-columns: 64px 1fr 64px;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { grid-column: 2; grid-row: 1; margin: 0; height: 100svh; display: grid; place-items: center; padding: 56px 0; min-width: 0; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lightbox img { max-height: calc(100svh - 112px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox .lb-video { width: min(100%, calc((100svh - 112px) * 16 / 9)); aspect-ratio: 16 / 9; }
.lightbox .lb-video iframe { width: 100%; height: 100%; border: 0; }
.lb-btn { background: none; border: 0; cursor: pointer; padding: 12px; color: var(--muted); font-size: 28px; line-height: 1; }
.lb-btn:hover { color: var(--text); }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--muted); }
@media (max-width: 760px) {
	.lightbox { grid-template-columns: 0 1fr 0; }
	.lb-prev, .lb-next { position: absolute; bottom: 4px; z-index: 1; }
	.lb-prev { left: 8px; } .lb-next { right: 8px; }
}

/* About */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.portrait-frame { aspect-ratio: 4 / 5; border-radius: 3px; display: grid; place-items: center; text-align: center; padding: 24px; font-size: 14px; }
.portrait-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 100%; border-radius: 3px; }
.prose p { margin: 0 0 1.2em; font-size: 18px; color: #d6d1c9; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.facts h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-list span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea {
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 14px 16px;
	color: var(--text);
	font: inherit;
	font-size: 16px;
	letter-spacing: 0;
	text-transform: none;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; }
.form-note { min-height: 1.5em; margin: 0; font-size: 14px; }
.form-note.ok { color: #8fc79a; }
.form-note.err { color: #e48a7c; }

/* Call to action band */
.cta { text-align: center; border-top: 1px solid var(--line); }
.cta h2 { max-width: 16ch; margin: 0 auto 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.socials { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.socials a { text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.socials a:hover { color: var(--text); }

/* Fade in as you scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
