/* ============================================================
   VICKRY — CINEMATIC LUXURY DESIGN SYSTEM
   Spacing scale: 8 / 16 / 32 / 64 / 96px
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font:         'IBM Plex Mono', monospace;
  --bg:           #0A0A0A;
  --white:        #FFFFFF;
  --gray-1:       rgba(255,255,255,0.60);
  --gray-2:       rgba(255,255,255,0.35);
  --gray-3:       rgba(255,255,255,0.12);
  --max-width: 1280px;
  --container-padding: var(--s64);

  /* spacing */
  --s8:  8px;
  --s16: 16px;
  --s32: 32px;
  --s64: 64px;
  --s96: 96px;

  /* transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:     0.3s;
  --dur-mid:      0.5s;
  --dur-slow:     1.2s;
  --screen-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

img, video, iframe {
  display: block;
}

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

@supports (height: 100svh) {
  :root {
    --screen-height: 100svh;
  }
}

@media (hover: hover) and (pointer: fine) {
  html,
  .btn,
  .album-toggle-btn {
    cursor: none;
  }
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast) var(--ease),
              height var(--dur-fast) var(--ease),
              opacity var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  opacity: 0;
}

#cursor.active {
  opacity: 1;
}

#cursor.expanded {
  width: 28px;
  height: 28px;
  border-color: rgba(255,255,255,0.85);
}

/* ── NAVIGATION ── */
#navigation {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--s32);

  /* DEFAULT: visible on hero */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;

  /* FASTER + sharper feel */
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#navigation.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
  transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#navigation.hidden {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}


.nav-logo {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: opacity var(--dur-fast) var(--ease);
}

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

.nav-links {
  display: flex;
  gap: var(--s64);
  margin-top: var(--s16);
  pointer-events: auto;
}

.nav-links a {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-1);
  transition: color var(--dur-fast) var(--ease),
              text-shadow var(--dur-mid) var(--ease);
}

.nav-links a:hover {
  color: var(--white);
  text-shadow: 0 0 18px rgba(255,255,255,0.45);
}

.nav-links a.nav-active {
  color: var(--white);
  text-shadow: 0 0 18px rgba(255,255,255,0.35);
}

/* ── UTILITY CLASSES ── */
.fill-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
}

.overlay--30 { background: rgba(0,0,0,0.30); }
.overlay--40 { background: rgba(0,0,0,0.40); }
.overlay--50 { background: rgba(0,0,0,0.50); }
.overlay--60 { background: rgba(0,0,0,0.60); }

/* ── PARALLAX ── */
.parallax-bg {
  will-change: transform;
  transform: translateZ(0); /* removed zoom */
}

.hero-video-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── HERO SECTION ── */
.section-hero {
  position: relative;
  width: 100%;
  height: var(--screen-height);
  min-height: -webkit-fill-available;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.last-word {
  opacity: 0;
  display: inline-block;
  animation: fadeInWord 1s ease forwards;
  animation-delay: 1.2s; /* delay after main title appears */
}

@keyframes fadeInWord {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* ── RESTORING THE CINEMATIC GRADIENT ── */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    /* Bottom Fade: Blends images into the page background */
    linear-gradient(to top, 
      rgba(10, 10, 10, 1) 0%, 
      rgba(10, 10, 10, 0.8) 15%, 
      rgba(10, 10, 10, 0) 50%
    ),
    /* Top Fade: Adds a subtle "expensive" vignette for text pop */
    linear-gradient(to bottom, 
      rgba(10, 10, 10, 0.6) 0%, 
      rgba(10, 10, 10, 0) 30%
    );
}

/* Ensure the slideshow stays in the background */
.hero-slideshow {
  z-index: 1;
}

/* Ensure content stays above the gradient */
.page-hero-content {
  z-index: 10;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s64);
  width: 100%;
  padding: 0 var(--s16);
  padding-left: var(--s32);
  padding-right: var(--s32);
  max-width: 1600px;
  margin: 0 auto;
}


/* Tablet */
@media (min-width: 768px) {
  .hero-content {
    padding-left: var(--s64);
    padding-right: var(--s64);
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .hero-content {
    padding-left: 120px;
    padding-right: 120px;
  }
}

/* Ultra wide (biar “expensive banget”) */
@media (min-width: 1600px) {
  .hero-content {
    padding-left: 160px;
    padding-right: 160px;
  }
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-1);

  opacity: 0;
  text-align: center;
  width: 100%;

  animation: fadeInSub 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 2s;
}

/* ── FULL-SCREEN SECTIONS ── */
.section-full, .parallax-section {
  position: relative;
  width: 100%;
  min-height: var(--screen-height);
  overflow: hidden;
}

.section-caption {
  position: absolute;
  bottom: var(--s64);
  left: var(--s64);
  z-index: 10;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-1);
}

/* ── STATEMENT SECTION ── */
.statement-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--s64);
}

.statement-text {
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
}

/* ── PORTFOLIO SECTION ── */
.section-portfolio {
  background: var(--bg);
  padding: var(--s96) 0 0 0;
}

.portfolio-header {
  padding: 0 var(--s64) var(--s64) var(--s64);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────────
   PORTFOLIO STRIP: HORIZONTAL CAROUSEL
   ───────────────────────────────────────────────────────────── */

/* STRIP WRAPPER — Container with overflow clipping */
.portfolio-strip-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 0;
}

/* STRIP — Horizontal flex track */
.portfolio-strip {
  display: flex;
  width: 100%;
  height: 75vh;
  min-height: 600px;
  gap: 0;
  transition: transform 0.6s var(--ease);
  scroll-behavior: smooth;
  will-change: transform;
}

/* CARD — Individual portfolio item */
.strip-card {
  position: relative;
  min-width: 25%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
}

/* IMAGE — Fills card with cover fit */
.strip-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
  display: block;
}

/* OVERLAY — Subtle darkening on hover */
.strip-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  transition: background var(--dur-mid) var(--ease);
  z-index: 1;
}

/* HOVER STATE — Image scales + overlay fades */
.strip-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.07) contrast(1.04);
}

.strip-card:hover .strip-overlay {
  background: rgba(0, 0, 0, 0);
}

/* NAV BUTTONS — Navigation container and buttons */
.strip-nav {
  position: absolute;
  top: var(--s16);
  right: var(--s16);
  display: flex;
  gap: var(--s8);
  z-index: 10;
}

.strip-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 300;
  cursor: pointer;
  letter-spacing: 0;
  line-height: 1;
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    box-shadow var(--dur-mid) var(--ease);
}

.strip-nav-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.65);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 18px rgba(200, 220, 255, 0.12),
              0 0 36px rgba(200, 220, 255, 0.06);
}

.strip-nav-btn:disabled {
  opacity: 0.18;
  pointer-events: none;
}

/* ── CONTENT SECTIONS (About/Contact) ── */
.section-content {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--s96) var(--s64);
}

.content-block {
  max-width: 840px;
  margin: 0 auto;
  width: 100%;
}

.bio-text {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: calc(var(--s96) * 1.2);
}

.bio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s64);
  padding-top: var(--s64);
  border-top: 1px solid var(--gray-3);
}

.bio-label {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: var(--s16);
}

.bio-value {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--gray-1);
  line-height: 1.7;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s64);
  margin-bottom: var(--s64);
  padding-bottom: var(--s64);
  border-bottom: 1px solid var(--gray-3);
}

.contact-link {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: text-shadow var(--dur-mid) var(--ease);
}

.contact-link:hover {
  text-shadow: 0 0 20px rgba(255,255,255,0.40);
}

.contact-note {
  padding-top: var(--s32);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: var(--gray-1);
  max-width: 560px;
}

/* ── CTA SECTION ── */
.cta-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s32);
  text-align: center;
  padding: var(--s32);
}

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s16) calc(var(--s32) + var(--s8));
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease);
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(180,210,255,0.10) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
}

.btn:hover {
  border-color: rgba(255,255,255,0.70);
  box-shadow: 0 0 24px rgba(200,220,255,0.15),
              0 0 48px rgba(200,220,255,0.07);
}

.btn:hover::after {
  opacity: 1;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpCentered {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 48px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

[data-animate] {
  opacity: 0;
}

[data-animate="fade-up"].visible {
  animation: fadeUp var(--dur-slow) var(--ease) forwards;
}

.hero-content[data-animate="fade-up"].visible {
  animation: fadeInHero 3s ease forwards;
}

@keyframes fadeInHero {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

[data-animate="fade-in"].visible {
  animation: fadeIn 1.5s var(--ease) forwards;
}

.hero-content.visible .hero-sub {
  animation: fadeInSub 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 2s; /* tweak timing here */
}

@keyframes fadeInSub {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .portfolio-strip {
    height: 100vh;
  }

  .nav-links {
    gap: var(--s32);
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: var(--s32);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--s32);
  }

  .section-content {
    padding: var(--s64) var(--s32);
  }

  .portfolio-header {
    padding: 0 var(--s32) var(--s32) var(--s32);
  }

  .section-caption {
    left: var(--s32);
    bottom: var(--s32);
  }

  .statement-content {
    padding: 0 var(--s32);
  }
}

@media (max-width: 600px) {
  .portfolio-strip {
    height: 80vh;
  }

  #navigation {
    padding-top: var(--s16);
  }

  .nav-links {
    gap: var(--s16);
    margin-top: var(--s8);
  }
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: white;
  margin-left: 6px;

  vertical-align: middle;   /* KEY FIX */
  transform: translateY(0px); /* fine-tune this */

  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}

.statement-text {
  letter-spacing: 0.05em;
}

/* ============================================================
   VICKRY — PORTFOLIO EXTENSION
   Only extends. Does not override global design system.
   ============================================================ */




/* Each card keeps fixed width relative to container */




/* ─────────────────────────────────────────────────────────────
   STRIP CARD OVERLAY: VIEW MORE
   ───────────────────────────────────────────────────────────── */

/* VIEW MORE — Central overlay on hover */
.strip-view-more {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition:
    opacity 0.55s var(--ease),
    background 0.55s var(--ease),
    backdrop-filter 0.55s var(--ease);
  text-decoration: none;
}

/* LABEL — Typography for view more text */
.strip-view-label {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  padding-bottom: 4px;
  transition:
    color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

/* CARD HOVER — Show overlay + label */
.strip-card:hover .strip-view-more {
  opacity: 1;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
}

.strip-card:hover .strip-view-label {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.30);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE: PORTFOLIO STRIP
   ───────────────────────────────────────────────────────────── */

/* ============================================================
   PORTFOLIO PAGE (portfolio.html)
   ============================================================ */

/* ── PORTFOLIO PAGE HERO ── */
/* ── THE PERFECT ALIGNMENT RESTORATION ── */
.page-hero {
  position: relative;
  overflow: hidden;
  height: 55vh; /* Balanced height */
  min-height: 420px;
  background-color: #0a0a0a;
  display: flex;
  align-items: flex-end; /* Anchors the text to the bottom area */
  padding-bottom: 4rem; /* Adjusts the gap between title and first album */
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 10;

  width: 100%;
  padding-left: var(--s64);
  padding-right: var(--s64);

  text-align: left;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--s16);
  margin-left: 0;
  display: block;
  width: fit-content;
}

.page-sub {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gray-2);
  display: block;
  width: fit-content;
  margin-left: 0;
  transform: translateX(0);
}

/* ── ALBUMS CONTAINER ── */
.albums-container {
  background: var(--bg);
  padding: var(--s96) 0 var(--s96) 0;
}

/* ── ALBUM BLOCK ── */
.album-block {
  --album-gutter: var(--s64);
  padding: 0 var(--s64);
  margin-bottom: var(--s96);
  position: relative;
}

/* Thin divider between albums */
.album-block + .album-block::before {
  content: '';
  display: block;
  width: calc(100% - var(--s64) * 2);
  margin: 0 var(--s64) var(--s96) var(--s64);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.08) 20%,
    rgba(255,255,255,0.08) 80%,
    transparent
  );
}

.album-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--s32);
  gap: var(--s32);
}

.album-meta {
  max-width: 560px;
}

.album-index {
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: var(--s8);
}

.album-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--s16);
  line-height: 1.1;
}

.album-desc {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.8;
  color: var(--gray-1);
  max-width: 400px;
}

/* ── ALBUM PREVIEW GRID ── */
/* Asymmetric layout: 1 large left + 2 stacked right + 1 wide bottom-right */
.album-preview {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  height: 68vh;
  min-height: 480px;
  overflow: hidden;
}

.preview-img {
  position: relative;
  overflow: hidden;
}

.preview-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.9s var(--ease);
  filter: brightness(0.92);
}

.preview-img:hover img {
  transform: scale(1.04);
  filter: brightness(1.0);
}

/* Card 1: spans 2 rows on first column */
.preview-img:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* Card 2: top-right */
.preview-img:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

/* Card 3: top-far-right */
.preview-img:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

/* Card 4: spans 2 columns bottom-right */
.preview-img:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 2;
}

/* 5th image (optional) */
.preview-img:nth-child(5) {
  display: none;
}

/* ── ALBUM EXPANDED IMAGES ── */
.album-expanded {
  box-sizing: border-box;
  max-height: 0;
  display: block;
  overflow: hidden;
  width: calc(100% + (var(--album-gutter) * 2));
  margin-left: calc(-1 * var(--album-gutter));
  opacity: 0;
  transform-origin: top;
  transform: none;
  filter: none;
  transition:
    max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
}

.album-expanded.open {
  opacity: 1;
  transform: none;
  filter: none;
}

.album-expanded-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2px;
  background: #0A0A0A;

  width: 100%;
  max-width: 100%;

  box-sizing: border-box;
  padding: 0 var(--album-gutter);
}



@media (max-width: 900px) {
  .album-expanded-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .album-expanded-grid {
    grid-template-columns: 1fr;
  }
}

.expanded-img {
  position: relative;
  overflow: hidden;
  background: #0A0A0A;
}

.expanded-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.04) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.expanded-img:hover::after {
  opacity: 1;
}

.expanded-img img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(8px) scale(1.01);
  filter: brightness(0.94) contrast(1.02);
  transition:
    opacity 0.9s var(--ease),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s var(--ease);
}

.album-expanded.open .expanded-img img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.album-expanded.open .expanded-img:hover img {
  transform: translateY(0) scale(1.03);
}

/* Stagger the fade-in */
.album-expanded.open .expanded-img:nth-child(1) img { transition-delay: 0.05s; }
.album-expanded.open .expanded-img:nth-child(2) img { transition-delay: 0.12s; }
.album-expanded.open .expanded-img:nth-child(3) img { transition-delay: 0.19s; }
.album-expanded.open .expanded-img:nth-child(4) img { transition-delay: 0.26s; }
.album-expanded.open .expanded-img:nth-child(5) img { transition-delay: 0.33s; }
.album-expanded.open .expanded-img:nth-child(6) img { transition-delay: 0.40s; }

.expanded-img:hover img {
  transform: translateY(0) scale(1.03);
  filter: brightness(1.05) contrast(1.04);
}

/* ── ALBUM FOOTER (view more / collapse) ── */
.album-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: var(--s32);
  gap: var(--s32);
}

.album-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s8);
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gray-1);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 3px;
  cursor: pointer;
  transition:
    color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    text-shadow var(--dur-mid) var(--ease);
}

.album-toggle-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.30);
}

.album-toggle-btn .toggle-icon {
  display: inline-block;
  transition: transform 0.5s var(--ease);
  font-size: 0.75rem;
  line-height: 1;
}

.album-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

/* ── PAGE FOOTER ── */
.page-footer {
  padding: var(--s64);
  border-top: 1px solid var(--gray-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s32);
}

.footer-logo {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-2);
  transition: color var(--dur-fast) var(--ease);
}

.footer-logo:hover {
  color: var(--white);
}

.footer-note {
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-2);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .album-block {
    --album-gutter: var(--s32);
    padding: 0 var(--s32);
  }

  .album-block + .album-block::before {
    width: calc(100% - var(--s32) * 2);
    margin: 0 var(--s32) var(--s64) var(--s32);
  }

  .album-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--s32);
  }

  .album-preview {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: unset;
  }

  .preview-img:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
    aspect-ratio: 16 / 9;
  }

  .preview-img:nth-child(4) {
    grid-column: 1 / 3;
  }

  .preview-img:nth-child(2),
  .preview-img:nth-child(3) {
    aspect-ratio: 1;
  }

  .page-hero-content {
    padding: 0 var(--s32) var(--s32) var(--s32);
  }

  .page-footer {
    padding: var(--s32);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s16);
  }
}

@media (max-width: 600px) {
  .album-preview {
    grid-template-columns: 1fr;
  }

  .preview-img:nth-child(1),
  .preview-img:nth-child(4) {
    grid-column: 1;
    aspect-ratio: 4/3;
  }

  .preview-img:nth-child(2),
  .preview-img:nth-child(3) {
    grid-column: 1;
    aspect-ratio: 4/3;
  }

  .album-expanded-grid {
    grid-template-columns: 1fr;
  }

}

/* ============================================================
   IMAGE — FAST RIGHT FADE (SEQUENTIAL)
   ============================================================ */

   [data-img] {
    opacity: 0;
    transform: translateX(40px);
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  [data-img].visible {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* stagger delays */
  [data-img]:nth-child(1) { transition-delay: 0.05s; }
  [data-img]:nth-child(2) { transition-delay: 0.12s; }
  [data-img]:nth-child(3) { transition-delay: 0.18s; }
  [data-img]:nth-child(4) { transition-delay: 0.24s; }
  [data-img]:nth-child(5) { transition-delay: 0.30s; }

  /* ── FADE RIGHT (FAST, PREMIUM) ── */
@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

[data-animate="fade-right"] {
  opacity: 0;
}

[data-animate="fade-right"].visible {
  animation: fadeRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


html, body {
  overscroll-behavior: none;
}

body {
  overflow-x: hidden;
}

.section-full,
.section-hero,
.parallax-section,
.page-hero {
  background: #0A0A0A; /* same as body */
}

/* ── SLIDESHOW SYSTEM ── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0;
  transition: opacity 2.5s ease-in-out;

  will-change: transform, opacity;

  /* 🔥 penting */
  transform: scale(1.08);
}

/* slide aktif */
.slide.active {
  opacity: 1;
  animation: slowPan 12s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 🔥 KUNCI: prev tetap jalan animation */
.slide.prev {
  opacity: 0;
  animation: slowPan 12s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* pan lebih halus */
@keyframes slowPan {
  from { transform: scale(1.1) translateX(-1%); }
  to   { transform: scale(1.1) translateX(-2%); }
}

/* ── SEQUENCING SYSTEM ── */
/* These classes ONLY add delay, keeping your original positions intact */

.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }

/* Ensure base data-animate items use the design system's slow duration */
[data-animate] {
  transition-duration: var(--dur-slow); /* 1.2s from your base styles */
  transition-timing-function: var(--ease);
}

/* Ensure the background layers stay anchored */
.hero-slideshow, 
.page-hero-overlay, 
.hero-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slideshow { z-index: 1; }
.page-hero-overlay { z-index: 2; }
.hero-gradient { z-index: 3; }

.page-title {
  letter-spacing: 0.08em;
}

.page-sub {
  margin-bottom: 6px;
  opacity: 0.85;
}






.portfolio-header {
  position: relative;
  z-index: 2; /* 🔥 header tetap di atas */
}

/* CARD */


/* IMAGE */


.portfolio-strip-wrapper {
  position: relative;
  overflow: hidden;
}

/* ============================================================
   TEXT HIGHLIGHT (LABEL STYLE)
   ============================================================ */

   .text-highlight {
    display: inline-block;
    background: rgba(255, 255, 255, 0.706);
    color: #0A0A0A;
  
    padding: 6px 12px;
    line-height: 1;
  
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
  }
  
  /* versi lebih besar (untuk title) */
  .text-highlight--lg {
    padding: 8px 16px;
  }


/*----------------------PATCH MOBILE FRIENDLY----------------------------*/
/* ============================================================
   STABILITY PATCH — SAFE VERSION (NO LAYOUT CHANGE)
   ============================================================ */

/* ── SAFARI VIEWPORT FIX ── */
html, body {
  height: 100%;
}

/* ── HERO VIDEO (LOCK FIX) ── */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: translate(-50%, -50%) scale(1.3);
}

/* prevent parent clipping issue */
.hero-video-shell {
  overflow: hidden;
}

/* ── SAFARI BLUR FIX ── */
.strip-view-more {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ── MOBILE ONLY FIXES ── */
@media (max-width: 768px) {
  .strip-card {
    min-width: 80%;
  }

  /* prevent text overflow */
  .hero-title,
  .statement-text {
    word-break: break-word;
  }

}

/* ── TOUCH DEVICE FIX ── */
@media (pointer: coarse) {
  #cursor {
    display: none;
  }

  html {
    cursor: auto;
  }

  .strip-view-more {
    align-items: flex-end;
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-bottom: var(--s32);
  }

  .strip-view-label {
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.22);
  }
}

/* ── RENDERING STABILITY ── */
.strip-card,
.preview-img,
.expanded-img {
  transform: translateZ(0);
  will-change: transform;
}

/* ── OVERFLOW SAFETY ── */

/* ══════════════════════════════════════════════════════════════
   RATE CARD PAGE — PREMIUM PRICING LAYOUT
   ══════════════════════════════════════════════════════════════ */

/* ── HERO INTRO TEXT (RATE CARD SPECIFIC) ── */
.rate-hero-intro {
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-top: var(--s16);
}

/* ── RATE CARDS SECTION ── */
.section-rate-cards {
  background: var(--bg);
  padding: var(--s96) 0;
}

.rate-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ── SECTION HEADER ── */
.rate-header {
  margin-bottom: var(--s96);
  text-align: center;
}

.rate-subtitle {
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--gray-1);
  line-height: 1.6;
  max-width: 700px;
  margin: var(--s32) auto 0;
}

/* ── PRICING CARDS GRID ── */
.rate-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--s64);
  margin-bottom: var(--s64);
}

/* ── INDIVIDUAL RATE CARD ── */
.rate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s64);
  border: 1px solid var(--gray-3);
  background: transparent;
  transition: all var(--dur-mid) var(--ease);
}

.rate-card:hover {
  border-color: var(--gray-2);
  background: rgba(255, 255, 255, 0.02);
}

.rate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-3), transparent);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease);
}

.rate-card:hover::before {
  opacity: 1;
}

/* ── FEATURED CARD (Custom Project) ── */
.rate-card--featured {
  border: 1px solid var(--gray-2);
  background: rgba(255, 255, 255, 0.03);
}

.rate-card--featured:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

/* ── CARD HEADER ── */
.rate-card-header {
  margin-bottom: var(--s32);
  flex-grow: 1;
}

.rate-card-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--s8);
  line-height: 1.2;
}

.rate-card-desc {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--gray-1);
  line-height: 1.5;
}

/* ── PRICE SECTION ── */
.rate-card-price {
  padding: var(--s32) 0;
  border-top: 1px solid var(--gray-3);
  border-bottom: 1px solid var(--gray-3);
  margin-bottom: var(--s32);
}

.rate-price-label {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: var(--s8);
}

.rate-price {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

/* ── ITEMS LIST ── */
.rate-card-items {
  list-style: none;
  margin-bottom: var(--s32);
  flex-grow: 1;
}

.rate-card-items li {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--gray-1);
  line-height: 1.8;
  padding-left: var(--s16);
  position: relative;
}

.rate-card-items li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray-2);
}

/* ── CTA BUTTON (RATE CARD) ── */
.rate-card-cta {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-1);
  padding: var(--s16) var(--s32);
  border: 1px solid var(--gray-2);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.rate-card-cta:hover {
  color: var(--white);
  border-color: var(--white);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

/* ── NOTES SECTION ── */
.section-rate-notes {
  background: var(--bg);
  padding: var(--s96) 0;
  border-top: 1px solid var(--gray-3);
}

.rate-notes {
  max-width: 900px;
  margin: 0 auto;
}

.rate-notes-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--s64);
  text-align: center;
}

.rate-notes-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s64);
}

.rate-notes-text {
  padding: var(--s32);
  border-left: 1px solid var(--gray-3);
  transition: all var(--dur-mid) var(--ease);
}

.rate-notes-text:hover {
  border-left-color: var(--gray-1);
  background: rgba(255, 255, 255, 0.01);
}

.rate-notes-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--s16);
}

.rate-notes-text p {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--gray-1);
  line-height: 1.7;
}

/* ── FADE-IN ANIMATION (for notes section) ── */
[data-animate="fade-in"] {
  opacity: 0;
}

[data-animate="fade-in"].visible {
  animation: fadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — RATE CARD
   ══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .section-rate-cards {
    padding: var(--s64) 0;
  }

  .rate-container {
    padding: 0 var(--s32);
  }

  .rate-header {
    margin-bottom: var(--s64);
  }

  .rate-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--s32);
  }

  .rate-card {
    padding: var(--s32);
  }

  .rate-notes-content {
    grid-template-columns: 1fr;
    gap: var(--s32);
  }

  .section-rate-notes {
    padding: var(--s64) 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .section-rate-cards {
    padding: var(--s64) 0;
  }

  .rate-container {
    padding: 0 var(--s16);
  }

  .rate-header {
    margin-bottom: var(--s32);
  }

  .rate-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--s32);
  }

  .rate-card {
    padding: var(--s32);
  }

  .rate-card-title {
    font-size: 1.1rem;
  }

  .rate-price {
    font-size: 1.4rem;
  }

  .rate-card-items li {
    font-size: 0.8rem;
  }

  .rate-notes-text {
    padding: var(--s16);
    border-left: none;
    border-top: 1px solid var(--gray-3);
  }

  .rate-notes-text:hover {
    border-left-color: transparent;
    border-top-color: var(--gray-1);
  }

  .section-rate-notes {
    padding: var(--s32) 0;
  }
}
