@font-face {
  font-family: 'HelveticaNeue Medium';
  src: url('fonts/HelveticaNeue Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HelveticaNeue Light';
  src: url('fonts/HelveticaNeue Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HelveticaNeue Bold';
  src: url('fonts/Helvetica Neu Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  text-transform: lowercase;
}

/* Optimize rendering performance */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  will-change: scroll-position;
}

:root {
  /* Color Variables */
  --primary-orange: #ff4500;
  --text-black: #222;
  --text-gray: #B0B8BF;
  --text-dark-gray: #404040;
  --border-gray: #ccc;
}

.main-header {
  font-family: 'HelveticaNeue Bold';
  font-size: 2.5rem;
  line-height: 1.1em;
  letter-spacing: -.06em;
  color: var(--text-black);
  text-decoration: none;
}

/* Base grid styles */
p {
  line-height: 1.3;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

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

  border: 1px solid var(--border-gray);
  text-align: center;
}

/* Each image item */
.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background-color: #f5f5f5;
  min-height: 200px;
}

/* Simplified loading effects - only for images */
img[loading="lazy"]:not([src*="data:"]) {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Optimize grid performance */
.image-grid {
  contain: layout style;
}

.grid-item {
  contain: layout;
  will-change: transform;
}

.grid-item:hover img {
  opacity: 1;
}

.grid-item::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 400ms cubic-bezier(.33,0,.2,1);
  font-size: 16px;
  font-family: 'HelveticaNeue Medium';
  pointer-events: none;
}

/* Touch/mobile overlay states */
.grid-item.show-overlay::after {
  opacity: 1;
  pointer-events: auto;
}

.grid-item:hover::after {
  opacity: 0.8;
}

/* Desktop: 2 images per row */
@media (min-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Basic reset */
body {
  margin: 0;
  font-family: sans-serif;
  /* padding: 1.25rem; */
  font-family: "HelveticaNeue Medium";
}

/* Top nav */
.top-nav {
  padding: 0rem 1rem 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.header-subtext {
  color: var(--primary-orange);
}

.header-subtext {
  font-family: 'HelveticaNeue Bold';
  color: var(--primary-orange);
  font-size: 1rem;
  line-height: 1em;
  letter-spacing: -.04em;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 3vw;
  padding-right: 3vw;
  margin: 3vw auto;
}

.head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.head-right a {
  transition: color 0.3s ease;
  font-size: 1rem;
  color: var(--text-gray);
  text-decoration: none;
  /* margin-left: 8px; */
  font-family: 'HelveticaNeue Bold';
  letter-spacing: -.01em;
  line-height: 1em;
}



.head-right a.active {
  color: var(--text-black);
}

.head-right a:hover {
  color: var(--text-black);
} */

.work-list .active {
  color: var(--primary-orange);
}

.nav-left, .nav-right {
  display: flex;
  gap: 1rem;
}

.nav-left {
  justify-content: flex-start;
}
.nav-right {
  justify-content: flex-end;
}

/* .secondary-nav a {
  text-decoration: none;
  color: inherit;
  padding: 0 0.5rem;
} */

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--text-black);
  margin: 3px 0;
  transition: 0.3s;
  font-family: 'HelveticaNeue Bold';
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #F8F8F8;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  gap: 2rem;
}

.mobile-menu-content a {
  font-family: 'HelveticaNeue Bold';
  font-size: 2rem;
  color: var(--text-black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu-content a:hover,
.mobile-menu-content a.active {
  color: var(--primary-orange);
}

/* Responsive: mobile navigation */
@media (max-width: 768px) {
  .site-nav {
    justify-content: space-between;
    align-items: flex-start;
    padding: 2vw 4vw;
  }

  .head-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .head-right {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-top: 0.5rem;
  }
}

/* project pages */

.content-grid {
  margin-bottom: 3vw;
  padding-right: 3vw;
  padding-left: 3vw;
}

.project-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 3vw;
}

@media (min-width: 768px) {
  .project-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-headings {
  color: var(--text-dark-gray);
}

.project-content {
  font-family: 'HelveticaNeue Light';
}

.info-header {
  font-family: 'HelveticaNeue Medium';
  color: var(--text-dark-gray);
}

.video-block {
  margin-top: 2.5rem;
}

.video-div {
  padding: 2vw 3vw;
}

.audio-content {
  padding: 1.5rem 0rem;
}

.recognition {
  padding: 0 3vw;
}

.recognition-list {
  list-style: none;
  line-height: 1.6;
  padding: 0;
}

.project-footer {
  color: var(--text-gray);
  padding: 2vw 3vw;
}

.project-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  text-decoration: none;
}

.project-footer ul a {
  color: inherit;
  text-decoration: none;
}

.project-footer ul a:hover {
  color: var(--primary-orange);
}

.brand-list ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.about-intro {
  font-size: 0.9rem;
}


.spotify-mobile-player {
      background: linear-gradient(135deg, #ED462F, #bd6a5f);
      border-radius: 16px;
      padding: 20px;
      color: white;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      width: 320px;
      max-width: 90%;
      margin-top: 16px;
    }

    .album-art-large {
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 24px;
      height: 350px;
    }

    .album-art-large img {
      width: 100%;
      object-fit: cover;
    }

    .track-info-mobile {
      margin-bottom: 24px;
    }

    .track-info-mobile h3 {
      font-size: 24px;
      font-weight: 700;
      margin: 0 0 8px;
    }

    .track-info-mobile p {
      color: rgba(255,255,255,0.8);
      font-size: 16px;
      margin: 0;
    }

    .progress-container-mobile {
      width: 100%;
      margin-bottom: 24px;
    }

    .progress-bar-mobile {
      width: 100%;
      height: 6px;
      background: rgba(255,255,255,0.2);
      border-radius: 3px;
      position: relative;
      cursor: pointer;
      margin-bottom: 12px;
    }

    .progress-fill {
      height: 100%;
      background: white;
      border-radius: 3px;
      width: 0%;
      transition: width 0.1s linear;
    }

    .time-stamps {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: rgba(255,255,255,0.8);
      font-family: monospace;
    }

    .controls-mobile {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 32px;
      margin-bottom: 16px;
    }

    .control-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
    }

    .control-btn svg {
      fill: white;
      opacity: 0.9;
      transition: opacity 0.2s;
    }

    .control-btn:hover svg {
      opacity: 1;
    }

    .play-btn-mobile {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: #0000003b;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }

    .play-btn-mobile svg {
      fill: white;
    }

    .tooltip-container {
      position: relative;
      display: inline-block;
    }

    .tooltip {
      visibility: hidden;
      width: 70px;
      background: white;
      color: black;
      text-align: center;
      border-radius: 20px;
      padding: 8px 12px;
      position: absolute;
      z-index: 1000;
      bottom: 120%;
      left: 50%;
      margin-left: -35px;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.3s ease;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.5px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      font-family: 'HelveticaNeue Medium', Arial, sans-serif;
    }

    .tooltip::after {
      content: "";
      position: absolute;
      top: 100%;
      left: 50%;
      margin-left: -6px;
      border-width: 6px;
      border-style: solid;
      border-color: white transparent transparent transparent;
      filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

    .tooltip-container:hover .tooltip {
      visibility: visible;
      opacity: 1;
      transform: translateY(0);
    }

    .bottom-controls {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      padding: 0 16px;
    }

    .active svg {
      fill: #fff !important;
    }

