/* ============================================
   EVAN SMITH — VIDEO EDITOR
   evansmithedits.com
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1a1a1a;
  --bg-header: #1a1a1a;
  --text-primary: #e8e8e8;
  --text-secondary: #888888;
  --text-hover: #ffffff;
  --overlay-bg: rgba(0, 0, 0, 0.52);
  --header-height: 86px;
  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gap: 0px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  cursor: default;
}

a, button, [role="button"], .grid-item, .nav-link, .site-name, .back-link, .info-email {
  cursor: default;
}

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

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.site-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.site-name:hover {
  color: #ffffff;
}

.site-role {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
}

/* --- Main Grid --- */
main {
  padding-top: var(--header-height);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.grid-item {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background: #111;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.thumb-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--hover-color, #fff);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: color 0.2s;
}

.thumb-category {
  font-size: 11px;
  color: var(--hover-color, rgba(255,255,255,0.6));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.grid-item:hover .thumb-overlay {
  opacity: 1;
}

.grid-item:hover .thumb-wrap img {
  transform: scale(1.02);
}

/* --- Project Page: Horizontal --- */

.project-body {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex-shrink: 0;
  padding-top: var(--header-height);
  box-sizing: border-box;
}

.vimeo-wrap {
  position: relative;
  height: 100%;
  width: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vimeo-wrap iframe {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: var(--video-ar, 16 / 9);
  border: none;
  display: block;
}

/* Project footer - UPDATED FOR SIDE-BY-SIDE CREDITS */
.project-footer {
  padding: 32px 32px 64px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  scroll-snap-align: start;
  flex-shrink: 0;
  background: var(--bg);
}

.project-meta-left, .project-meta-right {
  display: flex;
  flex-direction: column;
}

.project-meta-right {
  text-align: right;
}

.project-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0px; /* Flattened margin to look cleaner side-by-side */
}

.back-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
  padding-top: 24px; /* Gives spacing below the split metadata row */
}

.back-link:hover {
  color: var(--text-primary);
}

/* --- Scroll Hint --- */
.scroll-hint {
  position: fixed;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 200;
}

.scroll-hint.visible {
  opacity: 1;
}

.scroll-hint.dimmed {
  opacity: 0.2 !important;
}

.scroll-hint.dimmed svg {
  animation: none !important;
}

.scroll-hint.hidden {
  opacity: 0 !important;
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Project Page: Vertical --- */
.project-body-vertical {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.video-section-vertical {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex-shrink: 0;
  padding-top: var(--header-height);
  box-sizing: border-box;
}

.video-section-vertical iframe {
  width: auto;
  height: calc(100vh - var(--header-height) - 40px);
  max-height: 85vh;
  border: none;
  display: block;
}

.project-footer-vertical {
  padding: 32px 32px 64px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  scroll-snap-align: start;
  flex-shrink: 0;
  background: var(--bg);
}

/* --- Info Page --- */
.info-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.info-col-photo {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

.info-col-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.info-col-text {
  padding: 48px 48px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.info-email {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
  margin-top: 8px;
}

.info-email:hover {
  color: var(--text-primary);
}

/* --- Responsive Layout Rules --- */
@media (max-width: 768px) {
  header {
    padding: 0 16px;
  }

  .header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .site-name {
    font-size: 13px;
  }

  .site-role {
    font-size: 11px;
  }

  nav {
    gap: 18px;
  }

  .nav-link {
    font-size: 13px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .thumb-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.75) 100%);
    align-items: flex-end;
    justify-content: flex-start;
    padding: 16px;
  }

  .thumb-title {
    align-items: flex-start;
    text-align: left;
  }

  .thumb-category {
    opacity: 0.85;
  }

  /* Keep footer split left/right on narrow mobile viewports */
  .project-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
  }

  .project-meta-right {
    text-align: right;
  }

  .info-two-col {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .info-col-photo {
    position: relative;
    height: 60vw;
    top: 0;
    order: 1;
  }

  .info-col-text {
    padding: 32px 20px 60px;
    order: 2;
    justify-content: flex-start;
  }

  .info-text {
    font-size: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .thumb-wrap img,
  .thumb-overlay {
    transition: none;
  }
}
/* --- Resume Page --- */
.resume-page {
  padding-top: var(--header-height);
  max-width: 760px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  padding-bottom: 100px;
}

.resume-header {
  padding-top: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2a2a2a;
}

.resume-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.resume-contact {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  line-height: 1.8;
}

.resume-contact a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.resume-contact a:hover {
  color: var(--text-primary);
}

.resume-bio {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-secondary);
  padding-top: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid #2a2a2a;
}

.resume-section {
  padding-top: 36px;
  padding-bottom: 8px;
}

.resume-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
}

.resume-subsection-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-top: 24px;
  margin-bottom: 4px;
}

.credit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid #222;
  gap: 24px;
}

.credit-item:last-child {
  border-bottom: none;
}

.credit-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.credit-details {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-align: right;
  line-height: 1.6;
}

.resume-skills {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-secondary);
}

.resume-skills strong {
  color: var(--text-primary);
  font-weight: 600;
}

.resume-note {
  font-size: 11px;
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .resume-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .credit-item {
    flex-direction: column;
    gap: 4px;
  }

  .credit-details {
    text-align: left;
  }
}
