/* ============================================
   MICHAEL KANARI — Main Stylesheet
   ============================================ */

:root {
  --black:      #0a0a0a;
  --white:      #ffffff;
  --text-grey:  #757575;
  --grey-300:   rgba(255,255,255,0.85);
  --grey-500:   rgba(255,255,255,0.65);
  --grey-700:   rgba(255,255,255,0.3);
  --font-serif: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-height: 80px;
  --transition: 0.3s ease;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--text-grey);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; }
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

.hero-content,
.hero-content > * {
  min-width: 0;
}

.hero-tags,
.hero-tags li {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}


/* ── Navigation ─────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-grey);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-grey);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--white);
  border-bottom: 1px solid var(--white);
}
.nav-socials {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.nav-socials a {
  color: var(--text-grey);
  transition: color var(--transition);
  display: flex;
}
.nav-socials a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-grey);
  transition: var(--transition);
}

/* ── Hero (Home) ───────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-1%);
}
.hero-name {
  font-family: var(--font-serif);
  font-weight: 270;
  font-size: clamp(2.6rem, 6.8vw, 5.2rem);
  line-height: 1.12;
  letter-spacing: 0.12em;
  color: var(--text-grey);
  text-align: center;
  margin-left: 1rem;
}
.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  text-align: left;
}
.hero-tags li {
  font-size: 1.25rem;
  font-weight: 200;
  letter-spacing: 0.78em;
  text-transform: uppercase;
  color: var(--text-grey);
  white-space: nowrap;
}

.hero-footer-mini {
  position: absolute;
  bottom: 1.75rem;
  left: 0; right: 0;
  z-index: 1;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-grey);
}

/* ── Hero entrance animation ───────────────── */
@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(14px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
  }
}

.hero-name {
  opacity: 0;
  animation: blurIn 2.0s cubic-bezier(0.4,0,0.2,1) 1.50s forwards;
}

.hero-tags {
  opacity: 0;
  animation: blurIn 2.0s cubic-bezier(0.4,0,0.2,1) 1.50s forwards;
}

.hero-tags-link {
  opacity: 0;
  animation: blurIn 2.0s cubic-bezier(0.4,0,0.2,1) 1.75s forwards;
}

.hero-footer-mini {
  opacity: 0;
  animation: blurIn 2.0s cubic-bezier(0.4,0,0.2,1) 2.00s forwards;
}

/* ── Portfolio ──────────────────────────── */
.portfolio-page-wrap {
  position: relative;
  background-image: url('MK6.png');
  background-size: cover;
  background-position: center 22%;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.08) 30%,
    rgba(0,0,0,0.08) 70%,
    rgba(0,0,0,0.4) 100%
  );
}

.portfolio-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  box-sizing: border-box;
}

.portfolio-card {
  position: relative;
  display: block;
  width: clamp(200px, 26vw, 560px);
  height: 62vh;
  min-height: 400px;
  overflow: hidden;
  border-radius: 5%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 25px 70px rgba(0,0,0,0.35);
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: brightness(0.65);
}
.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 55%);
  pointer-events: none;
  opacity: 1;
}
.portfolio-card-label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.78em;
}

/* ── Portfolio card hover-reveal (mouse/trackpad only) ── */
@media (hover: hover) and (pointer: fine) {
  .portfolio-card {
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), border-color 0.5s ease, box-shadow 0.5s ease;
  }
  .portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.05);
    box-shadow: 0 25px 70px rgba(0,0,0,0.55);
  }
  .portfolio-card img {
    opacity: 0;
    filter: none;
    transition: opacity 0.3s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1), filter 0.4s ease;
  }
  .portfolio-card:hover img {
    opacity: 1;
    transform: scale(1.05);
    filter: brightness(0.65);
  }
  .portfolio-card::after {
    opacity: 0;
    transition: opacity 0.9s ease;
  }
  .portfolio-card:hover::after {
    opacity: 1;
  }
}

/* ── Gallery / Category Pages ──────────────── */
.gallery-page {
  padding-bottom: 3rem;
}

.gallery-heading {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(.8rem, 1vw, 2.4rem);
  color: var(--white);
  margin: calc(var(--nav-height) + 1.5rem) 4rem 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.78em;
}

.masonry-grid {
  column-count: 2;
  column-gap: 5.5rem;
  margin: 0 4rem;
}

.masonry-grid img {
  width: 100%;
  display: block;
  margin-bottom: 5.5rem;
  border-radius: 25px;
  break-inside: avoid;
}

/* ── Films: Feature + BTS Grid ─────────────── */
.film-feature {
  max-width: 900px;
  margin: 3rem auto 5rem;
  padding: 0 4rem;
  box-sizing: border-box;
}

.film-feature-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--black);
}

.gallery-subheading {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(.7rem, 0.9vw, 1.6rem);
  color: var(--white);
  margin: 5rem 4rem 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.6em;
}

.bts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 5.5rem;
  margin: 0 4rem;
}

.bts-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--black);
  border-radius: 10%;
}

.video-caption {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(.55rem, 0.7vw, 0.85rem);
  color: var(--grey-500);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  margin-top: 1.1rem;
}

/* ── Next Project Button ───────────────────── */
.next-project {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin: 3rem 4rem 2rem;
  padding-bottom: 1rem;
}

.next-project-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--grey-300);
  transition: color var(--transition), gap var(--transition);
}

.next-project-link:hover {
  color: var(--white);
  gap: 0.9rem;
}

.next-project-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Lightbox ──────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 90vh;
}

.lightbox-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2.2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  padding: 1rem;
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }


/* ── Footer (non-home pages) ───────────────── */
.site-footer {
  padding: 2rem 0;
  text-align: center;
}
.site-footer p {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-grey);
}

/* ── Home Page (new design) ─────────────────── */
.about-page-wrap {
  position: relative;
  background-image: url('MK0.JPG');
  background-size: cover;
  background-position: center center;
}

.about-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  box-sizing: border-box;
}



.about-hero-name {
  position: absolute;
  left: 19%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: var(--font-serif);
  font-weight: 270;
  font-size: clamp(5rem, 4.2vw, 4rem);
  line-height: 1.15;
  letter-spacing: 0.1em;
  color: var(--text-grey);
  text-align: center;
  opacity: 0;
  animation: blurIn 2.0s cubic-bezier(0.4,0,0.2,1) 0.3s forwards;
  margin-left: 2.5rem;
}

.about-bg-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 4rem;
  box-sizing: border-box;
  margin-left: 25rem;
  margin-bottom: 6rem;
}

.about-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  color: var(--grey-300);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition);
  animation: blurIn 2.0s cubic-bezier(0.4,0,0.2,1) 0.3s forwards;
}
.about-toggle:hover {
  color: var(--white);
}
.about-toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.35s ease;
}
.about-toggle[aria-expanded="true"] .about-toggle-icon {
  transform: rotate(180deg);
}

.about-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}
.about-details.open {
  grid-template-rows: 1fr;
}
.about-details-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  width: 44%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-grey);
}

.about-headline {
  font-family: var(--font-serif);
  text-transform: uppercase;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.2vw, 2.8rem);
  animation: blurIn 2.0s cubic-bezier(0.4,0,0.2,1) 0.3s forwards;
  line-height: 1.2;
  color: var(--text-grey);
  letter-spacing: 0.3em
}

.about-bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--grey-300);
  max-width: 520px;
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.about-subheading{
  font-size: 0.9rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--white);
}

.about-subheading-2{
  font-size: 0.9rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: left;
}

.about-block-text {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--grey-300);
}

.about-clients {
  font-size: 0.87rem;
  letter-spacing: 0.02em;
  color: var(--grey-300);
  text-decoration: none;
  letter-spacing: 0.38em;
  text-align: left;
}

.about-clients-note {
  font-size: 0.7rem;
  color: var(--text-grey);
}

/* ── Contact Page ──────────────────────────── */

.contact-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-grey);
  margin-bottom: 0.75rem;
}

.contact-headline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.25;
  color: var(--grey-300);
  margin-top: 7rem;
}

.contact-icons {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.contact-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.488);
  border-radius: 50%;
  color: var(--text-grey);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.contact-icon-link svg {
  width: 26px;
  height: 26px;
}

.contact-icon-link:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-3px);
}

.contact-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  min-height: calc(100vh - var(--nav-height));
}

.contact-page > * {
  position: relative;
  z-index: 1;
}

/* ── Contact page: dark nav text for light background ── */
.contact-bg .nav-logo,
.contact-bg .nav-links a,
.contact-bg .nav-socials a {
  color: var(--grey-300);
}
.contact-bg .nav-links a:hover,
.contact-bg .nav-socials a:hover {
  color: var(--white);
}
.contact-bg .nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.contact-description {
  font-size: 0.95rem;
  color: var(--grey-300);
  margin-top: 1rem;
}

.contact-page::before {
  content: '';
  position: absolute;
  inset: -100px;
  background-image: url('home.png');
  background-size: cover;
  background-position: center;
  filter: blur(08px) brightness(0.5);
  z-index: 0;
}
.site-footer {
  position: relative;
  z-index: 1;
}

@media (min-width: 901px) and (max-width: 1300px) {
  .about-bg-content {
    margin-left: 8rem;
    padding: 2.5rem;
  }
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-socials { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(0,0,0,0.95);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    z-index: 999;
  }

 .hero-name {
    display: none;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .hero-tags {
    width: 100%;
    gap: 2.25rem;
  }

  .hero-tags li {
    width: 100%;
    text-align: center;
    font-size: 100%;
    font-weight: 300;
    letter-spacing: 0.78em;
    color: var(--text-grey);
    white-space: nowrap;
  }

  .gallery-heading {
    margin: 1.5rem 1.5rem 1.5rem;
  }

  .next-project {
    margin: 2rem 1.5rem 1.5rem;
  }

  .masonry-grid {
    column-count: 1;
    margin: 0 1.5rem;
  }

  .film-feature {
    padding: 0 1.5rem;
    margin: 1.5rem auto 3rem;
  }
  .gallery-subheading {
    margin: 0 1.5rem 1.5rem;
  }
  .bts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 1.5rem;
  }
  .about-page-wrap {
    background-position: center top;
  }
  .about-page {
    align-items: flex-end;
    padding-bottom: 3rem;
  }
  .about-hero-name {
    display: none;
  }
  .about-bg-content {
    padding: 2rem 1.5rem;
    justify-content: flex-start;
    margin-left: 0;
    margin-bottom: 0;
  }
  .about-text {
    width: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 1.75rem;
    box-sizing: border-box;
  }

  .contact-icons {
    gap: 1.5rem;
  }
  .contact-icon-link {
    width: 56px;
    height: 56px;
  }
  .portfolio-page-wrap {
    background-position: center 15%;
  }
  .portfolio-grid {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  .portfolio-card {
    width: 100%;
    height: 38vh;
    min-height: 260px;
  }
 }

/* ── Cookie Banner ──────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 2.5rem;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--grey-300);
  margin: 0;
}
.cookie-banner a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 400;
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.cookie-btn-accept {
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
}
.cookie-btn-accept:hover {
  background: var(--grey-300);
}
.cookie-btn-decline {
  color: var(--grey-300);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
}
.cookie-btn-decline:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}