body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background-color: #0B0B0C;
  color: #F2EFE9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.font-mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 12px;
}

/* Heading clamp scales per specification from reference/styles.css */
.hero-heading {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(30px, 9.5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
}
@media (min-width: 768px) {
  .hero-heading {
    font-size: clamp(34px, 6.2vw, 84px);
    letter-spacing: -0.03em;
  }
}
.page-heading {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-heading {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.card-heading {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Buttons */
.btn-cinema-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-color: #C9A24B;
  color: #0B0B0C;
  border: 1px solid #C9A24B;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 250ms ease;
}
.btn-cinema-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-color: #141416;
  color: #F2EFE9;
  border: 1px solid #2A2A2D;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 250ms ease;
}
@media (hover: hover) and (min-width: 768px) {
  .btn-cinema-primary:hover {
    background-color: #E2BC6A;
    border-color: #E2BC6A;
    transform: translateY(-1px);
  }
  .btn-cinema-secondary:hover {
    border-color: #C9A24B;
    color: #C9A24B;
    transform: translateY(-1px);
  }
  .project-card {
    transition: border-color 300ms ease, transform 300ms ease;
  }
  .project-card:hover {
    border-color: #C9A24B;
    transform: translateY(-3px);
  }
  .chip:hover {
    border-color: #C9A24B;
    color: #F2EFE9;
  }
}

/* Keyboard focus ring on every interactive element */
*:focus-visible {
  outline: 2px solid #C9A24B !important;
  outline-offset: 3px !important;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0B0B0C; }
::-webkit-scrollbar-thumb { background: #2A2A2D; }
::-webkit-scrollbar-thumb:hover { background: #A09A90; }

/* Animated text link underline */
.text-link-animated {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: color 250ms ease;
}
.text-link-animated::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #C9A24B;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}
.text-link-animated:hover::after,
.text-link-animated:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Video media hover lift & zoom */
.project-media-wrap {
  position: relative;
  overflow: hidden;
}
.project-media {
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), filter 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover .project-media,
.group:focus-within .project-media {
  transform: scale(1.025);
  filter: brightness(1.06);
}

/* Play indicator overlay for video cards */
.play-indicator {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 250ms ease, transform 250ms ease;
}
.group:hover .play-indicator,
.group:focus-within .play-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Subtler film grain */
#film-grain-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9999;
  mix-blend-mode: overlay;
  opacity: 0.04;
}

/* Background video scaling */
.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  pointer-events: none;
  border: 0;
}

/* Photography: Justified Rows (Desktop) & 2-Column Masonry (Mobile) */
.series {
  padding-bottom: 72px;
}
.series-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: end;
  border-bottom: 1px solid #2A2A2D;
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.numeral {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: #C9A24B;
}
.series-title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  color: #F2EFE9;
}
.series-desc {
  color: #A09A90;
  font-size: 14px;
  margin-top: 6px;
}
.series-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #A09A90;
}
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.photo-item {
  padding: 0;
  border: 1px solid #2A2A2D;
  background-color: #141416;
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  border-radius: 2px;
}
.photo-item picture {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}
@media (hover: hover) and (min-width: 768px) {
  .photo-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.08);
  }
}
@media (max-width: 767px) {
  .series {
    padding-bottom: 48px;
  }
  .series-head {
    grid-template-columns: auto 1fr;
    row-gap: 6px;
  }
  .series-head .series-count {
    grid-column: 2;
  }
  .numeral {
    font-size: 28px;
  }
  .photo-gallery {
    display: block !important;
    column-count: 2 !important;
    column-gap: 8px !important;
  }
  .photo-item {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 8px !important;
    break-inside: avoid !important;
    aspect-ratio: var(--ar) !important;
  }
}

/* Mobile Sticky CTA Bar (<768px) */
.mbar {
  display: none;
}
@media (max-width: 767px) {
  .mbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px;
    background: linear-gradient(180deg, rgba(11, 11, 12, 0) 0%, rgba(11, 11, 12, 0.95) 35%, rgba(11, 11, 12, 1) 100%);
    transition: opacity 300ms ease, transform 300ms ease;
  }
  .mbar .btn-cinema-primary {
    width: 100%;
    min-height: 48px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  }
  .mbar.off {
    display: none !important;
  }
  .mbar.wait {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
  }
  footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* SPA View Transitions */
.page-view {
  animation: fadeIn 0.4s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Horizontal filter row: scroll without a visible scrollbar */
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* Keep anchored sections clear of the sticky header */
#contact { scroll-margin-top: 80px; }

/* Touch screens have no hover: keep the external project link visible as a corner button */
@media (hover: none) {
  .touch-visible-link {
    opacity: 1 !important;
    background: transparent !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    padding: 12px;
  }
  .touch-visible-link > span {
    background-color: rgba(11, 11, 12, 0.8);
  }
}
