/* ============================================
   Stink Studios–inspired • Easy to modify
   Edit this file to change colors, fonts, spacing
   ============================================ */

:root {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-text-muted: #999;
  --color-accent: #ffffff;
  --color-border: #333;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --max-width: 1400px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a:hover {
  text-decoration: underline;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.875rem;
  transition: top var(--transition);
  border: 1px solid var(--color-text);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  z-index: 100;
  background: transparent;
  border-bottom: none;
  transition: background var(--transition);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.8;
}

.site-header__profile {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ----- Main (offset for fixed header) ----- */
main {
  padding-top: 0;
  min-height: 100vh;
}

/* ----- Hero (home) ----- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero-content::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-showreel {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: absolute;
  top: var(--space-xl);
  left: var(--space-xl);
  z-index: 3;
  margin: 0;
  font-weight: 500;
}

.hero-bottom {
  position: absolute;
  bottom: var(--space-2xl);
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2xl);
  padding: 0 var(--space-xl);
  z-index: 3;
}

.hero-description {
  max-width: 800px;
  color: #fff;
}

.hero-description__title {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 var(--space-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-description__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  margin: 0 0 var(--space-sm);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-description__text {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-description__details {
  font-family: var(--font-sans);
  font-size: clamp(0.8125rem, 1.25vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-description__details p {
  margin: var(--space-sm) 0;
}

.hero-description__details strong {
  font-weight: 600;
  color: #fff;
}

.hero-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex-shrink: 0;
}

.hero-contacts__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

.hero-contacts__link:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.hero-contacts__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* ----- Mini Showcase ----- */
.mini-showcase {
  width: 100%;
  padding: 0;
  background: var(--color-bg);
  overflow: hidden;
}


.mini-showcase__container {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.mini-showcase__video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-border);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.mini-showcase__video-wrap:last-child {
  border-right: none;
}

.mini-showcase__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  background: var(--color-border);
  pointer-events: none;
}

.mini-showcase__video-wrap:hover .mini-showcase__video {
  transform: scale(1.08);
}

/* ----- Filters ----- */
.filters {
  padding: 0 var(--space-xl) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.filter-pill {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.filter-pill:hover,
.filter-pill.is-active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
}

/* ----- Project grid ----- */
.work-preview,
.work-full {
  padding: 0 var(--space-xl) var(--space-4xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.project-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.project-card:hover .project-card__image {
  transform: scale(1.02);
}

.project-card__image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-border);
  margin-bottom: var(--space-md);
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Video support */
.project-card__video-wrap {
  position: relative;
}

.project-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__video {
  transform: scale(1.02);
}

.project-card__video-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover .project-card__video-wrap::after {
  opacity: 1;
}

.project-card__video-wrap::before {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover .project-card__video-wrap::before {
  opacity: 1;
}

.project-card__client {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.project-card__title {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.project-card__tag {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.work-cta {
  margin-top: var(--space-2xl);
  text-align: center;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.btn--outline {
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
}

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

/* ----- News ----- */
.news-preview {
  padding: var(--space-3xl) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.news-list--page {
  margin-top: var(--space-xl);
}

.news-item {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: var(--space-lg);
  align-items: baseline;
}

.news-item a {
  text-decoration: none;
}

.news-item a:hover {
  text-decoration: underline;
}

.news-item__date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.news-item__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
}

.news-item__tags {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.news-cta {
  margin-top: var(--space-xl);
}

.link-arrow {
  font-weight: 500;
}

/* ----- Page hero (work) ----- */
.page-hero {
  padding: var(--space-3xl) var(--space-xl) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0;
  max-width: 20ch;
}

.view-toggle {
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
}

.view-toggle:hover {
  color: var(--color-text);
}

/* ----- Content pages ----- */
.content-page {
  padding: var(--space-3xl) var(--space-xl);
}

.content-block {
  max-width: 60ch;
  margin: 0 auto;
}

.content-block h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0 0 var(--space-lg);
}

.content-block p {
  margin: 0 0 var(--space-md);
}

.content-block code {
  font-size: 0.9em;
  background: var(--color-border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* ----- Footer ----- */
.site-footer {
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--color-border);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xl);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-legal,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a,
.footer-social a {
  color: inherit;
}

.footer-legal a:hover,
.footer-social a:hover {
  color: var(--color-text);
}

/* ----- List view (work page) ----- */
.project-grid.project-grid--list {
  grid-template-columns: 1fr;
  gap: 0;
}

.project-grid.project-grid--list .project-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.project-grid.project-grid--list .project-card__image-wrap {
  display: none;
}

.project-grid.project-grid--list .project-card__client {
  margin-bottom: 0;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    padding: 0;
  }

  .site-header__profile {
    width: 40px;
    height: 40px;
  }

  .hero-content::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 22%, rgba(0, 0, 0, 0.2) 48%, transparent 72%);
  }

  .hero-bottom {
    bottom: var(--space-lg);
    padding: 0 var(--space-md);
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-contacts {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .mini-showcase__video-wrap {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mini-showcase__video-wrap:last-child {
    border-bottom: none;
  }

  .hero-video-wrap::after {
    background: rgba(0, 0, 0, 0.3);
  }


  .news-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .project-grid.project-grid--list .project-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .mini-showcase__video {
    display: none;
  }

  .hero-video-wrap::after {
    background: var(--color-bg);
  }

  .hero-title,
  .hero-tagline {
    color: var(--color-text);
    text-shadow: none;
  }

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

  .mini-showcase__video-wrap {
    background: var(--color-border);
    min-height: 200px;
  }
}
