/* ===== Reset & base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== Typography ===== */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --color-text: #0a0a0a;
  --color-text-muted: #444;
  --color-bg: #f5f5f3;
  --color-border: #1a1a1a;
  --color-accent: #fff;
  --text-shadow-pop: 0 1px 2px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.2);
  --max-width: 1200px;
  --space-unit: 1rem;
  --space-s: calc(var(--space-unit) * 1.5);
  --space-m: calc(var(--space-unit) * 3);
  --space-l: calc(var(--space-unit) * 5);
  --space-xl: calc(var(--space-unit) * 8);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.1;
}

/* SEO: hide from visual layout, keep for screen readers and crawlers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Layout container ===== */
.header-inner,
main .section-inner,
.project-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}

/* ===== LA Clock ===== */
.page-home .site-clock {
  display: none;
}

.site-clock {
  position: fixed;
  top: 50%;
  left: var(--space-s);
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  z-index: 20;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
  white-space: nowrap;
}

/* ===== Header ===== */
.site-header {
  padding: var(--space-m) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.site-header--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: none;
  background: transparent;
  padding: var(--space-s) var(--space-m);
  transition: transform 0.25s ease;
  overflow: visible;
}

.page-home .site-header--overlay.is-scrolled-down {
  transform: translateY(-100%);
}

.site-header--overlay .logo {
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

.site-header .header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s) var(--space-m);
}

.site-header .logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  text-shadow: var(--text-shadow-pop);
}

.site-header .logo:hover {
  text-decoration: underline;
}

.site-header .tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}

.site-header .main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-m);
  position: relative;
}

.site-header .main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header--overlay .main-nav a {
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

/* Desktop: cinematic top vignette on every page */
@media (min-width: 1025px) {
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: clamp(7rem, 20vh, 12rem);
    pointer-events: none;
    z-index: 8;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0.06) 38%,
      rgba(0, 0, 0, 0.02) 65%,
      rgba(0, 0, 0, 0) 100%
    );
  }

  body.page-home::before,
  body.page-bio::before,
  body.page-contact::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.52) 0%,
      rgba(0, 0, 0, 0.26) 36%,
      rgba(0, 0, 0, 0.09) 64%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

/* Hamburger: always visible top right */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.menu-toggle span:nth-child(1) {
  width: 50%;
  margin-left: auto;
}

.menu-toggle span:nth-child(2) {
  width: 75%;
  margin-left: auto;
}

.menu-toggle span:nth-child(3) {
  width: 100%;
}

/* When menu open: hide hamburger, show options in same place */
.main-nav.is-open .menu-toggle {
  display: none;
}

/* Options replace hamburger in same place (top right) */
.nav-dropdown {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  gap: 0.25rem;
}

.main-nav.is-open .nav-dropdown {
  display: flex;
}

.nav-dropdown a {
  display: block;
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
  padding: 0.25rem 0;
  white-space: nowrap;
  text-align: right;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.nav-dropdown a:not(:last-child) {
  margin-bottom: 0.25rem;
}

.nav-dropdown a:last-child {
  text-decoration: none;
  margin-top: 0.25rem;
}

/* All pages: menu panel overlays — same in-flow slot as burger (logo/title never shifts; no page push) */
.site-header .nav-dropdown {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
}

.site-header .main-nav.is-open {
  min-height: 28px;
  width: 28px;
}

/* Bio page: same styling (already black/red) */
.site-header--bio .menu-toggle {
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

/* ===== Full-screen video modal ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-close:hover {
  opacity: 0.8;
}

.video-modal-player {
  position: relative;
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-modal-video,
.video-modal-overlay,
.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-video,
.video-modal-player iframe {
  object-fit: contain;
  background: #000;
}

.video-modal-video {
  z-index: 1;
  display: none;
}

.video-modal.is-open .video-modal-video.is-active {
  display: block;
}

.video-modal-overlay {
  z-index: 2;
  object-fit: cover;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  background: #000;
}

.video-modal-overlay.is-faded {
  opacity: 0;
  visibility: hidden;
}

body.modal-grid-paused .project-card .project-video-preview,
body.modal-grid-paused .project-card .project-vimeo-preview {
  visibility: hidden;
  pointer-events: none;
}

.video-modal:not(.is-open) .video-modal-placeholder {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.video-modal-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1rem;
  padding: 2rem;
  text-align: center;
  pointer-events: none;
}

.video-modal.is-open .video-modal-placeholder.is-visible {
  display: flex;
  visibility: visible;
  pointer-events: auto;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 0;
  padding: var(--space-l) var(--space-m);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.site-footer a:hover {
  color: var(--color-text);
}

.site-footer p {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===== Main with grid (home) ===== */
.page-home {
  background-color: #000;
}

.main--grid {
  padding-top: 0;
}

/* ===== Hero (used on other pages if needed) ===== */
.hero {
  padding: var(--space-xl) var(--space-m);
  text-align: center;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0 0 var(--space-s);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-m);
  font-style: italic;
}

.cta-showreel {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75em 1.5em;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-showreel:hover {
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
}

/* ===== Section title ===== */
.section-title {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-m);
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}

.projects {
  padding-bottom: 0;
}

.projects.collage-grid {
  padding: 0;
}

.projects .section-title {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ===== Collage grid: Section 1 = LOWE'S left + Pinterest/Microsoft right; Section 2 = J&J + Logitech; then rest ===== */
.project-grid.live-grid.collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-auto-rows: 28vh;
  grid-auto-flow: row;
  gap: 0;
  row-gap: 0;
  column-gap: 0;
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
}

.grid-cell {
  min-height: 28vh;
}

/* Section 1: one big left (LOWE'S), two blocks right (Pinterest, Microsoft) */
.project-grid.live-grid.collage .project-card:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}
.project-grid.live-grid.collage .project-card:nth-child(2) {
  grid-column: 5 / 7;
  grid-row: 1;
}
.project-grid.live-grid.collage .project-card:nth-child(3) {
  grid-column: 5 / 7;
  grid-row: 2;
}

/* Section 2: two blocks — Johnson & Johnson, Logitech */
.project-grid.live-grid.collage .project-card:nth-child(4) {
  grid-column: 1 / 4;
  grid-row: 3;
}
.project-grid.live-grid.collage .project-card:nth-child(5) {
  grid-column: 4 / 7;
  grid-row: 3;
}

/* LOGITECH Legend Born: full width, 3 rows */
.project-grid.live-grid.collage .project-card:nth-child(6) {
  grid-column: 1 / 7;
  grid-row: 4 / 7;
}

/* Big = 3x2 (half grid) — used by cards 7+ */
.grid-cell--big {
  grid-column: span 3;
  grid-row: span 2;
}

/* Small = 2x1 (third of row) */
.grid-cell--small {
  grid-column: span 2;
  grid-row: span 1;
}

/* Narrow = 1x1 */
.grid-cell--narrow {
  grid-column: span 1;
  grid-row: span 1;
}

/* One big full-width = 6x2 */
.grid-cell--full-big {
  grid-column: span 6;
  grid-row: span 2;
}

/* Full-width tall = 6x3 (overridden for card 6 above) */
.grid-cell--full-big-tall {
  grid-column: span 6;
  grid-row: span 3;
}

/* Wide = 3x2 */
.grid-cell--wide {
  grid-column: span 3;
  grid-row: span 2;
}

.project-grid.collage .grid-cell {
  margin: -1px;
}

/* Mobile & tablet: see css/responsive.css (desktop layout above is unchanged) */

.project-card {
  border: none;
  transition: none;
  overflow: hidden;
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.project-card-link:hover {
  text-decoration: none;
}

/* Media fills the grid cell */
.project-grid.collage .project-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: var(--color-border);
}


.project-grid.collage .project-media-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #d0d0ce 0%, #b8b8b6 100%);
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.project-grid.collage .project-media-placeholder.is-poster-hidden {
  opacity: 0;
}

.grid-cell--showreel .project-media-placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.grid-cell--showreel .project-overlay-sub {
  color: rgba(255, 255, 255, 0.7);
}

/* Custom GIF preview (e.g. Moto G) */
.project-grid.collage .project-gif-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.project-vimeo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.project-card-link:hover .project-vimeo-preview,
.project-card.is-in-view .project-vimeo-preview {
  opacity: 1;
}

.project-grid.collage .project-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 1;
}

.project-video-preview.is-loaded {
  opacity: 1;
}

.project-card-link:hover .project-video-preview.is-loaded,
.project-card-link:focus .project-video-preview.is-loaded,
.project-card.is-in-view .project-video-preview.is-loaded {
  opacity: 1;
}

/* LOGITECH + Soup: scale up over cover to crop top/bottom letterboxing */
.project-card-link[data-project-name="LOGITECH"] .project-video-preview,
.project-card-link[data-project-name="Soup"] .project-video-preview {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  transform-origin: center center;
}

.project-card-link[data-project-name="LOGITECH"] .project-video-preview {
  transform: scale(1.42);
}

.project-card-link[data-project-name="Soup"] .project-video-preview {
  transform: scale(1.58);
}

.project-card-link[data-project-name="LOGITECH"] .project-media,
.grid-cell--soup,
.project-card-link[data-project-name="Soup"] .project-media {
  overflow: hidden;
}

/* LOGITECH Legend Born: stay on top so SOUP thumbnail doesn't overlap it */
.grid-cell--logitech-dragon {
  position: relative;
  z-index: 1;
}

/* Cursor-following title (full viewport, follows mouse) */
.cursor-title {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: transform;
}

.cursor-title.is-visible {
  opacity: 1;
}

.cursor-title-main {
  font-family: var(--font-sans);
  font-size: clamp(2.21rem, 8.84vw, 6.63rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 3px var(--color-accent);
  text-stroke: 3px var(--color-accent);
  text-shadow: var(--text-shadow-pop);
  line-height: 1.05;
  display: block;
  white-space: nowrap;
}

.cursor-title-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--color-text);
  text-shadow: var(--text-shadow-pop);
  margin-top: 0.25em;
  display: block;
}

/* Home desktop: main project name only (no subtitle on hover) */
@media (min-width: 1025px) {
  .page-home .cursor-title-sub {
    display: none;
  }
}

/* Per-card overlay hidden (title now follows cursor) */
.project-overlay {
  display: none;
}

/* Non-collage live grid (equal cells) */
.project-grid.live-grid:not(.collage) .project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
  overflow: hidden;
}

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
  overflow: hidden;
}

.project-media-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8e8e6 0%, #e0e0de 100%);
}

.project-video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card .project-info {
  display: block;
  padding: var(--space-s) var(--space-m);
  max-width: none;
  margin: 0;
}

.project-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.project-credits {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Legacy list-style project grid (if used elsewhere) */
.project-grid:not(.live-grid) {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}

.project-grid:not(.live-grid) .project-card {
  border-top: 1px solid var(--color-border);
  border-right: none;
  border-bottom: none;
}

.project-grid:not(.live-grid) .project-card:hover {
  background: rgba(0, 0, 0, 0.02);
}

.project-grid:not(.live-grid) .project-card .project-info {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem var(--space-m);
  align-items: baseline;
  padding: var(--space-m);
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-grid:not(.live-grid) .project-link {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
}

/* ===== Contact page ===== */
.contact-main {
  padding: var(--space-xl) var(--space-m);
  min-height: 50vh;
}

.contact-section {
  max-width: 560px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 var(--space-m);
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-m);
}

.contact-email,
.contact-social {
  margin: 0 0 var(--space-s);
}

.contact-email a:hover,
.contact-section a:hover {
  text-decoration: underline;
}

/* Contact page: matches bio/other pages (black bg, red text) */
.page-contact {
  background-color: #000;
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

.page-contact a {
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

.page-contact a:hover {
  text-decoration: underline;
}

.contact-main {
  min-height: 60vh;
}

.contact-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-m) var(--space-m) 0;
}

/* Contact page: title scrolls with hero, no overlap when scrolling */
.page-contact .cursor-title--contact {
  position: absolute;
  top: calc(50% + 1rem);
  left: 50%;
  transform: translate(-50%, -50%);
}

.contact-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 3px var(--color-accent);
  text-stroke: 3px var(--color-accent);
  line-height: 1.05;
  margin: 0;
}

.contact-email-bottom {
  margin: 0 0 var(--space-s) 0;
  font-size: 1.1rem;
  padding-top: 0;
}

.contact-reps-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-m) var(--space-xl);
}

.contact-reps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 75px;
  row-gap: var(--space-m);
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

.contact-rep {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-rep-region {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-rep-company {
  font-size: 1rem;
  font-weight: 600;
}

.contact-rep-person {
  font-size: 0.95rem;
  opacity: 0.95;
}

.contact-divider {
  width: 65%;
  max-width: 400px;
  height: 1.4px;
  background: var(--color-accent);
  margin: var(--space-xl) 0 4px 0;
}

.contact-social-links {
  display: flex;
  gap: var(--space-m);
  margin-top: var(--space-m);
  margin-bottom: var(--space-xl);
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

.contact-social-link:hover {
  opacity: 0.85;
}

.contact-social-link svg {
  width: 24px;
  height: 24px;
}

/* ===== Project detail page ===== */
.project-main {
  padding: var(--space-m) var(--space-m) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  margin-bottom: var(--space-m);
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.project-detail-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 var(--space-m);
}

.project-video {
  aspect-ratio: 16 / 9;
  background: var(--color-border);
  margin-bottom: var(--space-m);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.project-detail-credits {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.project-detail-credits p {
  margin: 0 0 0.5rem;
}

.project-detail-credits strong {
  color: var(--color-text);
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .site-header .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .main-nav {
    margin-left: 0;
  }

  .site-header--overlay .header-inner {
    flex-direction: row;
    align-items: center;
  }

  .site-header:not(.site-header--overlay) .header-inner {
    flex-direction: row;
    align-items: center;
  }

  .site-header:not(.site-header--overlay) .main-nav {
    margin-left: auto;
  }

  .project-card .project-info {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .project-link {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }
}

/* ===== Bio page (Ice Cream style: black bg, red text) ===== */
.page-bio {
  background-color: #000;
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

.page-bio a {
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

.page-bio a:hover {
  text-decoration: underline;
}

.site-header--bio .logo,
.site-header--bio .main-nav a {
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

.site-header--bio {
  position: relative;
  z-index: 50;
  padding: var(--space-s) var(--space-m);
  border-bottom: none;
  background: transparent;
}

.bio-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-m);
  min-height: 60vh;
}

.bio-hero {
  display: grid;
  grid-template-columns: minmax(200px, 350px) 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-xl);
}

.bio-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  align-items: center;
}

.bio-photo-wrap {
  position: relative;
  background: #000;
}

.bio-photo {
  width: 100%;
  height: auto;
  display: block;
}

.bio-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  will-change: transform;
}

.bio-contact-line {
  margin-top: var(--space-s);
}

.bio-section {
  margin-bottom: var(--space-xl);
}

.bio-contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 640px) {
  .bio-contact-cols {
    grid-template-columns: 1fr;
  }
}

.bio-role {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  color: var(--color-accent);
}

.bio-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.bio-contact {
  margin: 0;
  font-size: 1rem;
}

.bio-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 42em;
}

.bio-social {
  display: flex;
  gap: var(--space-m);
}

.bio-social-link {
  display: inline-flex;
  color: var(--color-accent);
}

.bio-social-link:hover {
  opacity: 0.85;
}

.site-footer--bio {
  background-color: #000;
  border-top: none;
  padding: var(--space-l) var(--space-m);
}

.site-footer--bio p,
.site-footer--bio a {
  color: var(--color-accent);
  text-shadow: var(--text-shadow-pop);
}

.site-footer--bio a:hover {
  color: var(--color-accent);
}

.site-footer-copyright {
  margin-top: var(--space-s);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
  text-shadow: var(--text-shadow-pop);
}

.site-footer--bio .site-footer-copyright {
  color: var(--color-accent);
}
