/* ============================================
   JOSH SOUTER — PORTFOLIO
   Bold / editorial static site styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  --black: #0a0a0a;
  --near-black: #131313;
  --white: #f7f5f2;
  --gray: #8a8a86;
  --line: #2a2a28;
  --accent: #ff4429;
  --accent-2: #d6ff3f;
  --max: 1400px;
  --gutter: clamp(20px, 4vw, 64px);
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: 'Archivo Black', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 0.95;
}

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

/* ---------- NAV ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.nav-logo{
  font-family: 'Archivo Black', sans-serif;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-logo span{ color: var(--accent); }
.nav-links{
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a{
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active{
  border-color: var(--accent);
}
.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    inset: 61px 0 0 0;
    background: var(--black);
    flex-direction: column;
    padding: 32px var(--gutter);
    gap: 22px;
    transform: translateY(-110%);
    transition: transform .3s ease;
  }
  .nav-links.open{ transform: translateY(0); }
  .nav-toggle{ display: block; }
}

/* ---------- HERO ---------- */
.hero{
  padding: clamp(60px, 12vw, 140px) var(--gutter) clamp(40px, 8vw, 90px);
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.hero h1{
  font-size: clamp(48px, 10vw, 128px);
  margin-bottom: 24px;
}
.hero-roles{
  font-size: clamp(18px, 2.4vw, 28px);
  color: var(--gray);
  font-weight: 500;
  max-width: 780px;
  margin-bottom: 32px;
}
.hero-roles strong{ color: var(--white); font-weight: 700; }
.btn-row{ display: flex; gap: 16px; flex-wrap: wrap; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--white);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover{ background: var(--white); color: var(--black); }
.btn.primary{ background: var(--accent); border-color: var(--accent); color: var(--black); }
.btn.primary:hover{ background: var(--white); border-color: var(--white); }

/* ---------- SECTION LABELS ---------- */
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 60px var(--gutter) 30px;
  max-width: var(--max);
  margin: 0 auto;
}
.section-head h2{ font-size: clamp(30px, 5vw, 56px); }
.section-num{
  font-size: 13px;
  color: var(--gray);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ---------- HOME SPLIT TILES ---------- */
.split-tiles{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.tile{
  position: relative;
  min-height: 60vh;
  overflow: hidden;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.tile:last-child{ border-right: none; }
.tile img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(45%) brightness(0.55);
  transition: filter .4s ease, transform .5s ease;
}
.tile:hover img{ filter: grayscale(0%) brightness(0.75); transform: scale(1.04); }
.tile-label{
  position: relative;
  z-index: 2;
}
.tile-label .tag{
  display:block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.tile-label h3{ font-size: clamp(32px, 5vw, 56px); color: var(--white); }
.tile-label p{ color: var(--gray); margin-top: 10px; font-size: 15px; }

@media (max-width: 720px){
  .split-tiles{ grid-template-columns: 1fr; }
  .tile{ border-right: none; border-bottom: 1px solid var(--line); min-height: 50vh; }
}

/* ---------- BRAND STRIP ---------- */
.brand-strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px var(--gutter);
}
.brand-strip ul{
  max-width: var(--max);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  justify-content: center;
}
.brand-strip li{
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(14px, 2vw, 20px);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- GALLERY GRID (editorial masonry) ---------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 11vw;
  grid-auto-flow: dense;
  gap: 3px;
  padding: 0 var(--gutter) 100px;
  max-width: var(--max);
  margin: 0 auto;
}
.gallery-item{
  position: relative;
  grid-column: span 2;
  grid-row: span 3;
  overflow: hidden;
  cursor: pointer;
  background: var(--near-black);
}
.gallery-item.feature{ grid-column: span 4; grid-row: span 4; }
.gallery-item.wide{ grid-column: span 4; grid-row: span 2; }
.gallery-item.tall{ grid-column: span 2; grid-row: span 5; }

.gallery-item-inner{
  position: absolute;
  left: 0; right: 0;
  top: -10%; bottom: -10%;
  will-change: transform;
}
.gallery-item-inner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover .gallery-item-inner img{ transform: scale(1.07); }
.gallery-item .idx{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  background: rgba(10,10,10,0.7);
  padding: 4px 8px;
  letter-spacing: 0.05em;
}

/* Scroll-triggered reveal: desaturated + settling in, then blooms to full color */
.gallery .reveal{
  opacity: 0;
  transform: scale(0.92);
  filter: grayscale(1) brightness(0.6);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.3,1), filter 1.1s ease;
  transition-delay: var(--d, 0ms);
}
.gallery .reveal.in{
  opacity: 1;
  transform: scale(1);
  filter: grayscale(0) brightness(1);
}

@media (max-width: 900px){
  .gallery{ grid-template-columns: repeat(4, 1fr); grid-auto-rows: 22vw; }
  .gallery-item{ grid-column: span 2; grid-row: span 3; }
  .gallery-item.feature{ grid-column: span 4; grid-row: span 4; }
  .gallery-item.wide{ grid-column: span 4; grid-row: span 2; }
  .gallery-item.tall{ grid-column: span 2; grid-row: span 4; }
}
@media (max-width: 560px){
  .gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 2px; }
  .gallery-item, .gallery-item.feature, .gallery-item.wide, .gallery-item.tall{
    grid-column: span 1; grid-row: span 1;
  }
}

/* ---------- VIDEO GRID ---------- */
.video-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 0 var(--gutter) 100px;
  max-width: var(--max);
  margin: 0 auto;
}
.video-card{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: var(--near-black);
}
.video-card.feature{ grid-column: 1 / -1; aspect-ratio: 21/9; }
.video-card.vertical{ aspect-ratio: 9/16; }
.video-card.vertical img{ object-position: center top; }
.video-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform .5s ease, filter .3s ease;
}
.video-card:hover img{ transform: scale(1.05); filter: brightness(0.5); }
.video-card .meta{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}
.video-card .meta .tag{
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent-2); text-transform: uppercase; display:block; margin-bottom: 6px;
}
.video-card .meta h3{ font-size: clamp(18px, 2.4vw, 26px); color: var(--white); }
.play-btn{
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.video-card:hover .play-btn{ background: var(--accent); border-color: var(--accent); transform: translate(-50%,-50%) scale(1.08); }
.play-btn::after{
  content: '';
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 4px;
}

@media (max-width: 720px){
  .video-grid{ grid-template-columns: 1fr; }
}

/* ---------- LIGHTBOX / MODAL ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(6,6,6,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open{ display: flex; }
.lightbox img, .lightbox video{
  max-width: 100%;
  max-height: 88vh;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close{
  position: absolute;
  top: 24px; right: 32px;
  font-size: 32px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  padding: 10px 18px;
  transition: color .2s;
}
.lightbox-nav:hover{ color: var(--accent); }
.lightbox-prev{ left: 8px; }
.lightbox-next{ right: 8px; }
.lightbox-caption{
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- ABOUT ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  padding: 20px var(--gutter) 100px;
  max-width: var(--max);
  margin: 0 auto;
}
.about-bio p{
  font-size: clamp(17px, 2vw, 21px);
  color: #d8d6d1;
  margin: 0 0 22px;
  max-width: 640px;
}
.about-side h4{
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.about-side ul{
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border-top: 1px solid var(--line);
}
.about-side li{
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--gray);
  display: flex;
  justify-content: space-between;
}
.about-side li span{ color: var(--white); }

@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- CONTACT / FOOTER ---------- */
.contact{
  border-top: 1px solid var(--line);
  padding: clamp(60px, 10vw, 110px) var(--gutter);
  text-align: center;
}
.contact h2{ font-size: clamp(32px, 7vw, 72px); margin-bottom: 24px; }
.contact-email{
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  display: inline-block;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 4px;
  margin-bottom: 30px;
  word-break: break-all;
}
.contact-links{
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.contact-links a:hover{ color: var(--accent); }

.site-footer{
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* ---------- REVEAL ANIM ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }
