/* Matthew Lucero portfolio — recreation */
:root {
  --black: #000;
  --white: #fff;
  --gray: #f5f5f5;
  --ink: #111;
  --muted: #666;
  --font-head: 'Anton', Impact, sans-serif;
  --font-body: 'Epilogue', -apple-system, 'Segoe UI', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--black); color: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 2.5rem;
}
.wordmark {
  font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; color: var(--white);
}
.socials { display: flex; gap: 1.1rem; }
.socials a { display: inline-flex; opacity: .92; transition: opacity .2s; }
.socials a:hover { opacity: 1; transform: translateY(-1px); }
.socials svg { width: 20px; height: 20px; fill: var(--white); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  background: var(--black); color: var(--white);
  padding: 7rem 1.5rem 4rem; position: relative; overflow: hidden;
}
.hero-logo { max-width: min(420px, 70vw); margin-bottom: 2.2rem; }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .22em; font-size: clamp(.8rem, 1.6vw, 1.05rem);
  margin-bottom: 1.2rem; opacity: .95;
}
.hero-title {
  font-family: var(--font-head); text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 1.02;
  letter-spacing: .01em; max-width: 20ch;
}
.hero-video { width: min(960px, 92vw); margin-top: 3rem; }

/* home hero */
.home-hero { padding: 0; justify-content: flex-end; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.12) 55%, rgba(0,0,0,.28)); }
.marquee {
  position: relative; z-index: 2; overflow: hidden; white-space: nowrap;
  width: 100%; padding-bottom: 4vh;
}
.marquee-track { display: inline-flex; animation: scroll 22s linear infinite; }
.marquee-track span {
  font-family: var(--font-head); text-transform: uppercase;
  font-size: clamp(3.4rem, 11vw, 9rem); line-height: 1; padding-right: .35em;
  color: var(--white);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.light { background: var(--white); color: var(--ink); }
section.dark { background: var(--black); color: var(--white); }
.content-sec { padding: clamp(3.5rem, 8vw, 7rem) 1.5rem; }
.prose { max-width: 780px; margin: 0 auto; }
.headline {
  font-family: var(--font-head); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: .01em;
  margin: 0 0 1.4rem;
}
.prose .headline:not(:first-child) { margin-top: 3.2rem; }
.body-copy { font-size: 1.06rem; line-height: 1.75; margin-bottom: 1.3rem; max-width: 68ch; }
section.dark .body-copy { color: #e8e8e8; }
section.light .body-copy { color: #333; }
.media { margin: 2.4rem auto; max-width: 1080px; }
.media img, .media video { width: 100%; border-radius: 2px; }
.video-wrap video { background: #0a0a0a; }

/* galleries */
.gallery-sec { padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem); }
.gallery-grid {
  display: grid; gap: clamp(.8rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  max-width: 1400px; margin: 0 auto; align-items: start;
}
.gallery-grid figure { overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.025); }

/* slideshow */
.slideshow-sec { padding: clamp(2.5rem, 6vw, 5rem) 1.5rem; }
.slideshow { position: relative; max-width: 1100px; margin: 0 auto; }
.slides { display: flex; overflow: hidden; border-radius: 2px; }
.slide { min-width: 100%; transition: transform .45s ease; }
.slide img { width: 100%; }
.slideshow .prev, .slideshow .next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.slideshow .prev { left: 14px; } .slideshow .next { right: 14px; }
.slideshow .prev:hover, .slideshow .next:hover { background: rgba(0,0,0,.8); }
.dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #bbb; cursor: pointer; padding: 0; }
.dots button.active { background: currentColor; }

/* home project grid */
.home-grid-sec { padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem); }
.home-grid {
  display: grid; gap: clamp(.8rem, 2vw, 1.6rem);
  grid-template-columns: repeat(3, 1fr); max-width: 1400px; margin: 0 auto;
}
.home-grid .tile { display: block; overflow: hidden; aspect-ratio: 4/3; background: #111; }
.home-grid .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.home-grid .tile:hover img { transform: scale(1.04); }

/* related projects */
.related { background: var(--black); padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem); }
.related-grid {
  display: grid; gap: clamp(.8rem, 2vw, 1.4rem);
  grid-template-columns: repeat(3, 1fr); max-width: 1400px; margin: 0 auto;
}
.related .tile { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; background: #111; }
.related .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.related .tile span {
  position: absolute; inset: auto 0 0 0; padding: 2.2rem 1.2rem .9rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: 1.05rem;
}
.related .tile:hover img { transform: scale(1.04); }

/* ---------- footer ---------- */
.site-footer { background: #fff; color: #111; padding: 4.5rem 1.5rem 3rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand { font-family: var(--font-head); text-transform: uppercase; font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1; margin-bottom: 1.2rem; color: #111; }
.footer-contact { color: #111; margin-bottom: .4rem; font-size: 1.05rem; }
.footer-contact a { color: #111; text-decoration: none; border-bottom: 1px solid #999; }
.footer-contact a:hover { border-bottom-color: #111; }
.footer-socials { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.fsq { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: #111; border-radius: 6px; }
.fsq svg { width: 22px; height: 22px; fill: #fff; }
.fsq:hover { background: #333; }

@media (max-width: 720px) {
  .home-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .site-header { padding: 1.1rem 1.2rem; }
}
@media (max-width: 460px) {
  .home-grid, .related-grid { grid-template-columns: 1fr; }
}
