/* ===========================
   CSS RESET & BASE STYLES
   =========================== */

/* ibm-plex-mono-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Newake - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Newake';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/Newake-Font-Regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg-light: #f5f5f5;
  --color-bg-dark: #1b1b1b;
  --color-text-light: #f5f5f5;
  --color-text-dark: #1b1b1b;
  --color-accent: rgba(255, 255, 255, 0.6);
  --font-primary: 'Newake', sans-serif;
  --font-secondary: 'IBM Plex Mono', monospace;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 1;
}

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


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

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

h1, h2 {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text-dark);
  line-height: 1;
  transition: opacity var(--transition-smooth);
  text-transform: uppercase;
}

blockquote {
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-text-dark);
  line-height: 1;
  margin-bottom: .5rem;
  text-align: center;
  padding-bottom: 4rem;
  max-width:560px;
  margin:0 auto;
}

blockquote footer {
    font-family: var(--font-secondary);
    font-size:1rem;
    font-weight:400;
    letter-spacing: 0;
  text-transform: none;
    margin-top:.5rem;
    color: var(--color-text-dark);
    line-height: 1.6;
}


/* ===========================
   MAIN NAVIGATION (Fixed)
   =========================== */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  mix-blend-mode: difference;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  transition: opacity var(--transition-smooth);
}

.nav-logo:hover {
  opacity: 0.6;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 1rem;
  color: var(--color-text-light);
  transition: opacity var(--transition-smooth);
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  opacity: 0.6;
}

/* ===========================
   MAINTENANCE PAGE
   =========================== */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background-color:#000;
}

#video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* ===========================
   HOME PAGE
   =========================== */

.home-page {
  min-height: 100vh;
  background-color: var(--color-bg-light);
  position: relative;
}

/* Background Media */
.bg-media {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background-color: #000000;
  transition: background-color 0.6s ease;
}

.bg-media.has-default-media {
  background-color: transparent;
}

.bg-media video,
.bg-media img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.bg-media video.active,
.bg-media img.active {
  opacity: 1;
}

.bg-media video.default,
.bg-media img.default {
  opacity: 0.7;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Project List Container */
.project-list-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 3rem 8rem;
}

.project-list {
  list-style: none;
  width: 100%;
  max-width: 750px;
}

.project-item {
  border-bottom: 1px solid rgb(61, 61, 61);
  transition: all var(--transition-smooth);
  opacity: 1;
}

/* When hovering over the list, dim non-hovered items */
.project-list:hover .project-item {
  opacity: 0;
}

/* Restore full opacity to the hovered item */
.project-list:hover .project-item:hover {
  opacity: 1;
}

/* Mobile: Always show all items at full opacity */
@media (max-width: 768px) {
  .project-list:hover .project-item {
    opacity: 1 !important;
  }
  
  .project-list:hover .project-item:hover {
    opacity: 1 !important;
  }
}

.project-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  position: relative;
  /* transition: padding-left var(--transition-smooth); */
}

/* .project-item:hover .project-link {
  padding-left: 1.5rem;
} */

.project-title {
 font-family: var(--font-primary);
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text-light);
  line-height: 1;
  transition: opacity var(--transition-smooth);
  text-transform: uppercase;
}

.project-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 1);
  margin-left: auto;
  white-space: nowrap;
}

.project-date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 1);
  margin-left: auto;
}

.project-item:hover .project-title {
  opacity: 1;
}


/* ===========================
   FILTER NAVIGATION (Fixed Bottom)
   =========================== */

.filter-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  mix-blend-mode: difference;
}

.filter-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  opacity: 0.6;
}

.filter-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.filter-link {
  font-size: 0.9rem;
  color: var(--color-text-light);
  transition: opacity var(--transition-smooth);
  cursor: pointer;
  opacity: 0.6;
}

.filter-link:hover,
.filter-link.active {
  opacity: 1;
}


/* ===========================
   PROJECT SINGLE PAGE
   =========================== */

.project-page {
  min-height: 100vh;
  background-color: var(--color-bg-light);
  position: relative;
}

.project-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 3rem;
  z-index: 1000;
}

.project-nav .nav-logo {
  color: var(--color-text-dark);
}

/* Project Pagination (Fixed Bottom Right) */
.project-pagination {
  position: fixed;
  bottom: 2rem;
  right: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1000;
  font-size: 0.9rem;
}

.pagination-link {
  color: var(--color-text-dark);
  transition: opacity var(--transition-smooth);
}

.pagination-link:hover:not(.disabled) {
  opacity: 0.6;
}

.pagination-link.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.pagination-separator {
  opacity: 0.3;
}

/* Project Content */
.project-content {
  max-width: 870px;
  margin: 0 auto;
  padding: 8rem 3rem;
}

.project-header {
  margin-bottom: 4rem;
}

.project-content figure {
    margin-bottom: 4rem;
}

.project-content a {
    color: inherit;
    text-decoration: underline;
}

.project-content a:hover {
    text-decoration: none;
}

.project-content .project-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-text-dark);
  line-height: 1;
  margin-bottom: .5rem;
  text-align:center;
}

.project-content .project-subtitle {
  font-size: 1rem;
  color: rgba(0, 0, 0, 1);
  margin-bottom: 2rem;
  line-height: 1.4;
  text-align:center;
}

.project-meta {
  display: flex;
  justify-content:center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  line-height:0;
  color: rgba(0, 0, 0, 0.6);
}

.meta-item {
  position: relative;
}

.meta-item:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -1.05rem;
}

/* Project Body */
.project-body {
  color: var(--color-text-dark);
}

.project-body p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 4rem;
  /* max-width: 65ch; */
}

.project-body h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: .8rem 0;
  letter-spacing: -0.02em;
}

.project-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

/* Responsive Videos */
.project-body video {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
  border-radius: 4px;
}

/* Video wrapper for maintaining aspect ratio */
.project-body .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 4px;
}

.project-body .video-wrapper video,
.project-body .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive iframes (for embedded videos) */
.project-body iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 2rem 0;
  border-radius: 4px;
}

/* Embed block styling */
.block-embed {
  margin: 3rem 0;
}

.embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
}

.block-embed figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  font-style: italic;
  text-align: center;
}

/* ===========================
   2-COLUMN LAYOUT BLOCK
   =========================== */

.block-columns {
  display: grid;
  margin: 0 0 4rem 0;
  width: 100%;
}

/* Column gaps */
.block-columns.gap-small {
  gap: 1rem;
}

.block-columns.gap-medium {
  gap: 2rem;
}

.block-columns.gap-large {
  gap: 3rem;
}

/* Desktop column ratios */
@media (min-width: 769px) {
  .block-columns {
    grid-template-columns: 1fr 1fr;
  }
  
  .block-columns.ratio-5050 {
    grid-template-columns: 1fr 1fr;
  }
  
  .block-columns.ratio-6040 {
    grid-template-columns: 1.5fr 1fr;
  }
  
  .block-columns.ratio-4060 {
    grid-template-columns: 1fr 1.5fr;
  }
  
  .block-columns.ratio-7030 {
    grid-template-columns: 2.33fr 1fr;
  }
  
  .block-columns.ratio-3070 {
    grid-template-columns: 1fr 2.33fr;
  }
}

/* Mobile: Single column with order control */
@media (max-width: 768px) {
  .block-columns {
    grid-template-columns: 1fr;
  }
  
  /* Default: Left column first */
  .block-columns.mobile-order-leftfirst .column-left {
    order: 1;
  }
  
  .block-columns.mobile-order-leftfirst .column-right {
    order: 2;
  }
  
  /* Right column first */
  .block-columns.mobile-order-rightfirst .column-left {
    order: 2;
  }
  
  .block-columns.mobile-order-rightfirst .column-right {
    order: 1;
  }
}

/* Column styling */
.block-columns .column {
  min-width: 0; /* Prevent overflow */
}

/* Nested content spacing */
.block-columns .column > * {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.block-columns .column > *:last-child {
  margin-bottom: 0;
}

/* Ensure nested blocks don't have excessive margin */
.block-columns .column .project-figure,
.block-columns .column .block-embed,
.block-columns .column .block-video {
  margin: 1.5rem 0;
}

.block-columns .column .project-figure:first-child,
.block-columns .column .block-embed:first-child,
.block-columns .column .block-video:first-child {
  margin-top: 0;
}

.block-columns .column .project-figure:last-child,
.block-columns .column .block-embed:last-child,
.block-columns .column .block-video:last-child {
  margin-bottom: 0;
}

/* ===========================
   AUDIO PLAYER BLOCK
   =========================== */

.block-audio {
  margin: 3rem 0;
}

.audio-player {
  background: var(--color-bg-dark);
  border-radius: 8px;
  overflow: hidden;
}

/* Horizontal Layout (default) */
.block-audio.layout-horizontal .audio-player {
  display: flex;
  align-items: center;
}

.block-audio.layout-horizontal .audio-cover {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
}

.block-audio.layout-horizontal .audio-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.block-audio.layout-horizontal .audio-content {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Vertical Layout */
.block-audio.layout-vertical .audio-player {
  display: flex;
  flex-direction: column;
}

.block-audio.layout-vertical .audio-cover {
  width: 100%;
  height: 350px;
}

.block-audio.layout-vertical .audio-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.block-audio.layout-vertical .audio-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Minimal Layout (no cover) */
.block-audio.layout-minimal .audio-player {
  padding: 2rem;
}

.block-audio.layout-minimal .audio-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Audio Info */
.audio-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.audio-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-light);
  line-height: 1.3;
}

.audio-artist {
  font-size: 1rem;
  color: var(--color-accent);
}

/* Audio Controls */
.audio-controls {
  width: 100%;
}

.audio-controls audio {
  width: 100%;
  height: 40px;
  outline: none;
}

/* Custom audio player styling */
.audio-controls audio::-webkit-media-controls-panel {
  background-color: #fff;
}

/* Description */
.audio-description {
  margin-top: 1rem;
  padding: 0 1rem;
  font-size: 0.95rem;
  color: rgba(0, 0, 0);
  line-height: 1.6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Force horizontal to vertical on mobile */
  .block-audio.layout-horizontal .audio-player {
    flex-direction: column;
  }
  
  .block-audio.layout-horizontal .audio-cover {
    width: 100%;
    height: 250px;
  }
  
  .block-audio.layout-horizontal .audio-content {
    padding: 1.5rem;
  }
  
  .block-audio.layout-vertical .audio-cover {
    height: 250px;
  }
  
  .block-audio.layout-vertical .audio-content {
    padding: 1.5rem;
  }
  
  .block-audio.layout-minimal .audio-player {
    padding: 1.5rem;
  }
  
  .audio-title {
    font-size: 1.1rem;
  }
  
  .audio-artist {
    font-size: 0.9rem;
  }
}


.project-figure {
  margin: 3rem 0;
}

.project-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.project-figure video {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.project-figure figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  font-style: italic;
}

/* Bandcamp embed styling */
.embed-wrapper iframe[src*="bandcamp.com"] {
  position: static;
  width: 100% !important;
  max-width: 700px;
  height: auto;
  min-height: 350px;
  margin: 0 auto;
  display: block;
}

.project-figure {
  margin: 3rem 0;
}

.project-figure img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.project-figure video {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.project-figure figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  font-style: italic;
}

/* ===========================
   ABOUT PAGE
   =========================== */

.about-page, .main {
  min-height: 100vh;
  background-color: var(--color-bg-light);
}

.about-content, .page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 3rem;
}

.about-title, .page-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

.about-body, .page-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
}

.about-body p, .page-body p {
  margin-bottom: 2.5rem;
}

.about-body a, .page-body a {
    color: inherit;
    text-decoration: underline;
}

.about-body a:hover, .page-body a:hover {
    text-decoration: none;
}

/* ===========================
   TOOLTIP
   =========================== */

.tooltip {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-text-dark);
  color: var(--color-text-light);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ===========================
   CUSTOM CURSOR (Optional)
   =========================== */

.custom-cursor {
  position: fixed;
  width: 50px;
  height: 50px;
  border: 2px solid var(--color-text-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999999 !important;
  /* mix-blend-mode: difference; */
  transition: width 0.3s ease, height 0.3s ease, border-width 0.3s ease;
  /* transform: translate(-50%, -50%); */
  display: none; /* Hidden by default */
  background:red !important;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block !important /* Show on desktop */
  }
  /* body.custom-cursor-enabled,
  body.custom-cursor-enabled * {
    cursor: none !important;
  } */
}


/* Ensure normal cursor is visible by default */
body {
  cursor: auto;
}

a, button, .project-item {
  cursor: pointer;
}


/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
  .main-nav,
  .filter-nav {
    padding: 1.5rem;
  }

  .project-list-container {
    padding: 6rem 1.5rem 6rem;
  }

  .project-title {
    font-size: 1.8rem;
  }

  .project-subtitle,
  .project-date {
    font-size: 0.85rem;
  }

  .project-content {
    padding: 6rem 1.5rem;
  }

  .project-content .project-title {
    font-size: 2.5rem;
  }

  .project-content .project-subtitle {
    font-size: 1.2rem;
  }

  .project-body p {
    font-size: 1rem;
  }

  .about-content {
    padding: 6rem 1.5rem;
  }

  .about-title {
    font-size: 2.5rem;
  }

  .about-body {
    font-size: 1.1rem;
  }

  .project-pagination {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .filter-links {
    gap: 1rem;
  }
}