/* ============================================================
   K2 PRODUCTION — Portfolio V2 — Shared Stylesheet
   DA: Dark editorial premium — brand-compliant
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Almarai:wght@300;400;700;800&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TOKENS ── */
:root {
  --cream:      #FFF5D9;
  --grey-blue:  #7B949C;
  --slate:      #536C7C;
  --deep:       #213C4E;
  --night:      #182241;
  --night-mid:  #1e2d52;

  --serif: 'Libre Baskerville', 'Times New Roman', serif;
  --sans:  'Almarai', system-ui, sans-serif;

  --gap:    3px;
  --nav-h:  72px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);

  --section-pad: clamp(80px, 10vw, 140px);
  --container:   1320px;
}

/* ── BASE ── */
body {
  font-family: var(--sans);
  background: var(--night);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
  z-index: 100;
  background: linear-gradient(180deg, rgba(24,34,65,0.9) 0%, rgba(24,34,65,0) 100%);
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}
.nav.scrolled {
  background: rgba(24, 34, 65, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 245, 217, 0.06);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo img {
  height: 32px;
  width: auto;
  display: block;
}
.nav__logo-text {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--cream);
  line-height: 1;
}
.nav__logo-text em {
  display: block;
  font-style: italic;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 3px;
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  font-weight: 400;
}
.nav__link:hover { opacity: 1; }
.nav__back {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--grey-blue);
  transition: color 0.3s ease;
}
.nav__back::before {
  content: '';
  width: 24px; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.nav__back:hover { color: var(--cream); }
.nav__back:hover::before { width: 40px; }

/* ── SECTION LABELS ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey-blue);
  font-weight: 400;
}
.label::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--grey-blue);
  flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--night);
  border-top: 1px solid rgba(255, 245, 217, 0.08);
  padding: 72px clamp(24px, 4vw, 64px);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
}
.footer__cta {
  font-family: var(--serif);
  font-size: clamp(22px, 3.5vw, 40px);
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--cream);
}
.footer__cta em { font-style: italic; color: var(--grey-blue); }
.footer__contact {
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255, 245, 217, 0.55);
}
.footer__contact a {
  color: var(--grey-blue);
  transition: color 0.3s ease;
}
.footer__contact a:hover { color: var(--cream); }
.footer__right {
  text-align: right;
}
.footer__logo img {
  height: 36px;
  margin: 0 0 0 auto;
  opacity: 0.7;
}
.footer__copy {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 245, 217, 0.25);
}

/* ── REVEAL ANIMATIONS ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }
[data-reveal][data-delay="5"] { transition-delay: 0.5s; }
[data-reveal][data-delay="6"] { transition-delay: 0.6s; }

/* ── NEXT CATEGORY CTA ── */
.next-cat {
  display: block;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 4vw, 64px);
  background: var(--deep);
  overflow: hidden;
  position: relative;
  transition: background 0.6s ease;
}
.next-cat:hover { background: var(--night-mid); }
.next-cat__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.next-cat__label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey-blue);
  margin-bottom: 12px;
}
.next-cat__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  color: var(--cream);
  line-height: 1.1;
}
.next-cat__arrow {
  font-size: clamp(32px, 5vw, 56px);
  font-family: var(--serif);
  color: var(--grey-blue);
  transition: transform 0.5s var(--ease), color 0.4s ease;
  flex-shrink: 0;
}
.next-cat:hover .next-cat__arrow {
  transform: translateX(16px);
  color: var(--cream);
}

/* ── VIDEOS ── */
.video-block {
  position: relative;
  overflow: hidden;
  background: #0a0a14;
}
.video-block video,
.video-block iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}
.video-block--16x9 { aspect-ratio: 16/9; }
.video-block--cinema { aspect-ratio: 21/9; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__right { text-align: left; }
  .footer__logo img { margin: 0; }
  .next-cat__inner { flex-direction: column; align-items: flex-start; }
}

/* ── JS NAV SCROLL INIT ── */
