/* Sean Garcia — portfolio styles */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --surface: #efede8;
  --text: #121212;
  --muted: #6f6d69;
  --line: rgba(18, 18, 18, .1);
  --focus: #121212;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::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);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01";
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.is-scrolled .site-header { border-bottom-color: var(--line); }
.header-hidden .site-header { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.brand-role { font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 15px; }
.nav a { position: relative; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 480px) {
  .brand-role { display: none; }
  .header-inner { height: 60px; }
}

/* ---------- Home ---------- */
.hero { padding: clamp(56px, 11vw, 150px) var(--gutter) clamp(40px, 6vw, 80px); }
.hero--home {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px;
  padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(28px, 3vw, 44px);
}
.hero--home .hero-title { max-width: 20ch; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.05; }
.hero--home .hero-sub { margin-top: 0; text-align: right; line-height: 1.7; }
@media (max-width: 800px) { .hero--home .hero-sub { text-align: left; } }
.hero--center { min-height: 55vh; display: flex; flex-direction: column; justify-content: center; }
.hero-title {
  max-width: 16ch;
  font-size: clamp(38px, 6.4vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.hero-sub { margin-top: 24px; font-size: clamp(15px, 1.4vw, 18px); color: var(--muted); }
.hero-sub a { color: var(--text); border-bottom: 1px solid var(--line); transition: border-color .2s; }
.hero-sub a:hover { border-color: var(--text); }

.reel { margin-bottom: clamp(72px, 10vw, 140px); }
.reel-caption { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; color: var(--muted); }
.reel-caption a:hover { color: var(--text); }

.work-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font: inherit; font-size: 14px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
  transition: color .2s, background-color .25s var(--ease), border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.chip-count { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.2vw, 48px) clamp(16px, 2vw, 28px);
  padding-bottom: clamp(80px, 10vw, 140px);
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.card { display: block; }
.card.is-hidden { display: none; }
.card-media {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--surface);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
}
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.card-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.card-kind { flex-shrink: 0; font-size: 13px; color: var(--muted); }
@media (hover: hover) {
  .grid:has(.card:hover) .card:not(:hover) .card-media img { filter: saturate(.3) brightness(.92); }
  .card:hover .card-media img { transform: scale(1.04); }
}

/* ---------- Video players ---------- */
.player {
  position: relative;
  aspect-ratio: var(--ratio, 1.777);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player--square { max-width: 720px; margin: 0 auto; width: 100%; }

/* ---------- Project page ---------- */
.project { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(64px, 8vw, 120px); }
.back { display: inline-block; font-size: 14px; color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.back:hover { color: var(--text); transform: translateX(-3px); }
.project-head { padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.project-title {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.045em;
  max-width: 18ch;
}
.project-meta { margin-top: 18px; font-size: 15px; color: var(--muted); }
.project-intro { margin-top: 8px; font-size: 15px; }

.spot + .spot { margin-top: clamp(56px, 7vw, 96px); }
.spot-media--vertical {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.spot-media--vertical .player { max-width: 360px; }
.spot-caption {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.still { width: 100%; border-radius: var(--radius); }

.next { padding-bottom: clamp(64px, 8vw, 120px); }
.next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.next-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.next-title { font-size: clamp(28px, 4vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.next-title .arrow { display: inline-block; transition: transform .4s var(--ease); }
.next-media { flex: 0 0 min(38%, 420px); overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; }
.next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.next-link:hover .arrow { transform: translateX(8px); }
.next-link:hover .next-media img { transform: scale(1.04); }
@media (max-width: 700px) {
  .next-link { flex-direction: column-reverse; align-items: stretch; }
  .next-media { flex-basis: auto; }
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(80px, 10vw, 140px);
  align-items: start;
}
.about-photo { position: sticky; top: 100px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.about-title { font-size: clamp(34px, 4.6vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: -.045em; }
.about-sub { margin: 20px 0 28px; color: var(--muted); }
.about .section-label { display: block; margin-top: clamp(48px, 6vw, 80px); margin-bottom: 8px; }
.button {
  display: inline-flex; align-items: center;
  padding: 12px 20px;
  border: 1px solid var(--text); border-radius: 999px;
  font-size: 15px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.button:hover { background: var(--text); color: var(--bg); }
.rows .row {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.rows .row > :last-child { text-align: right; }
.rows .row--award { justify-content: flex-start; }
.row--award > :first-child { flex: 0 0 56px; font-variant-numeric: tabular-nums; }
.rows .row--award > :last-child { text-align: left; }
.row strong { font-weight: 600; }
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 420px; }
  .rows .row:not(.row--award) { flex-direction: column; gap: 2px; }
  .rows .row:not(.row--award) > :last-child { text-align: left; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 128px) 0 32px; }
.footer-kicker { font-size: 15px; color: var(--muted); }
.footer-email {
  display: inline-flex; align-items: flex-start; gap: .2em;
  margin-top: 12px;
  font-size: clamp(26px, 5.2vw, 72px); font-weight: 500; letter-spacing: -.045em; line-height: 1.1;
  word-break: break-word;
}
.footer-email .arrow { font-size: .5em; transition: transform .4s var(--ease); }
.footer-email:hover .arrow { transform: translate(4px, -4px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: clamp(56px, 8vw, 112px);
  font-size: 14px; color: var(--muted);
}
.footer-social { display: flex; gap: 24px; }
.footer-social a { transition: color .2s; }
.footer-social a:hover { color: var(--text); }

/* ---------- Motion ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
main { animation: fade-in .5s var(--ease) both; }
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.card.is-entering { animation: card-in .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 40ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

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

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px);
  padding-top: clamp(48px, 8vw, 120px);
  padding-bottom: clamp(80px, 10vw, 140px);
  align-items: start;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
.contact-links a { color: var(--muted); transition: color .2s; }
.contact-links a:hover { color: var(--text); }
.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface);
  border: 1px solid transparent; border-radius: 8px;
  transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); background: var(--bg); }
.field.has-error input, .field.has-error textarea { border-color: #c2412d; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.button { font: inherit; background: transparent; color: var(--text); cursor: pointer; }
.button--solid { justify-self: start; padding: 14px 26px; background: var(--text); color: var(--bg); border-color: var(--text); }
.button--solid:hover { background: transparent; color: var(--text); }
.button[disabled] { opacity: .5; cursor: progress; }
.form-status { min-height: 1.6em; font-size: 15px; }
.form-status.is-ok { color: #2f7d4f; }
.form-status.is-error { color: #c2412d; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
.site-footer--compact { padding-top: 32px; }
.site-footer--compact .footer-bottom { margin-top: 0; }

/* ---------- Click-to-play video stills ---------- */
a.player { display: block; cursor: pointer; }
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.play {
  position: absolute; left: 50%; top: 50%;
  width: clamp(48px, 5vw, 66px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  transition: transform .4s var(--ease), background-color .3s;
}
.play svg { display: block; width: 50%; height: 50%; fill: #121212; }
.player--vertical .play { width: 52px; }
a.player:hover img { transform: scale(1.03); }
a.player:hover .play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.player.is-playing { cursor: default; }
